[03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:05]ConnectInit Can't connect to host [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]accept exits with 9 [03:45:58]New connection [03:45:58]New thread 3066817892 created [03:45:58]Thread 3066961252 joined [03:45:58]Waiting for new connection... [03:45:58] Sock 9.Parse request [03:45:58]Sock 9.Check first char [03:45:58]Sock 9.First char is OK [03:45:58]request: POST /json_proto HTTP/1.0 [03:45:58]Method: POST [03:45:58]URL: /json_proto [03:45:58]Method is POST - this is cgi request [03:45:58]url: /json_proto [03:45:58]query_string will be loaded in cgi processing [03:45:58]execute_cgi json_proto POST (null) [03:45:58]execute_cgi path=json_proto method=POST [03:45:58]POST find Content-Length [03:45:58]Host: 172.17.63.131:8080 [03:45:58]Content-Length: 781 [03:45:58]Content-Type: application/json [03:45:58] [03:45:58]POST finish read [03:45:58]Found Content-Length = 781 [03:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3948583", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:58]execute_script... [03:45: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)30560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3948583", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:58]POST & json_proto [03:45:58]process_json_proto [03:45:58]json parsed OK: [03:45:58]protocol is kg_v1.0 [03:45:58]action value=close_receipt [03:45:58]process_action close_receipt [03:45:58]cmd_close_receipt [03:45:58]MH_GetDate [03:45:58]Write to MH i2c: F0 00 00 BC 6E 19 [03:45:58]Write i2c OK [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: F0 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: F0 09 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: F0 09 00 BC 6E 00 7D 14 1B 67 22 05 6E 64 2E [03:45:58]GetLastDocTimeStamp 1729822001 [03:45:58]current date 1729827965 [03:45:58]FM_GetShiftState [03:45:58]SAM_PROTO_GetShiftState [03:45:58]wFMCommunicate request_size=4 [03:45:58]MH_SAM_APDU [03:45:58]CAPDU: 80 13 01 00 [03:45:58]Write to MH i2c: E2 08 00 BD 6E 80 13 01 00 00 00 00 00 A8 [03:45:58]Write i2c OK [03:45:58]MH_I2C_Read... [03:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:58]Read from MH i2c: E2 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 0E 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 0E 00 BD 6E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6B [03:45:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [03:45:58]wFMCommunicate OK [03:45:58]SAM_PROTO_GetShiftState done [03:45:58]FM_GetShiftState done [03:45:58]opened in 1729816399 [03:45:58]opened+sec_in_day 1729902799 [03:45:58]quantity*price = 0 [03:45:58]sum+1 = 1 [03:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 8 25.10.2024 03:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 3948583 ФМ: 0000000000871754 ФД: 191269 ФПД: 115821884590439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T034605&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191269&fm=115821884590439&tin=02508201610067®Number=0000000000091776&sum=0 [03:45:59]StoreToDocumentArchive [03:45:59]shift 540 fd 191269 [03:45:59]save to /storage/0540/doc_00191269 [03:45:59]save last doc name /storage/0540/doc_00191269 to /storage/kkm_last_doc_name [03:45:59]save OK [03:45:59]Clear old archive folders... [03:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:45:59]tlvbuf is 0173DE40 [03:45:59]SAM_PROTO_ClearQueue [03:45:59]wFMCommunicate request_size=4 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 09 00 00 [03:45:59]Write to MH i2c: E2 08 00 CA 6E 80 09 00 00 00 00 00 00 AA [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 CA 6E 00 90 00 AC [03:45:59]RAPDU: 90 00 [03:45:59]wFMCommunicate OK [03:45:59]SAM_PROTO_ClearQueue done [03:45:59]KKMCreateOFDPacket [03:45:59]OFDProtocolAddRootSTLVToBuf [03:45:59]FM_MakeSignedData [03:45:59]FM_MakeSignedData [03:45:59]SAM_PROTO_SignData [03:45:59]wFMCommunicate request_size=4 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 0D 01 02 [03:45:59]Write to MH i2c: E2 08 00 CB 6E 80 0D 01 02 00 00 00 00 B2 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 CB 6E 00 90 00 AD [03:45:59]RAPDU: 90 00 [03:45:59]wFMCommunicate OK [03:45:59]wFMCommunicate request_size=255 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7D 14 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EB 02 00 35 04 06 00 69 [03:45:59]Write to MH i2c: E2 02 01 CC 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7D 14 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EB 02 00 35 04 06 00 69 00 00 E3 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 CC 6E 00 90 00 AE [03:45:59]RAPDU: 90 00 [03:45:59]wFMCommunicate OK [03:45:59]wFMCommunicate request_size=10 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 0D 02 02 05 56 E2 49 C9 67 [03:45:59]Write to MH i2c: E2 0D 00 CD 6E 80 0D 02 02 05 00 56 E2 49 C9 67 00 00 70 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 03 00 CD 6E 00 90 00 AF [03:45:59]RAPDU: 90 00 [03:45:59]wFMCommunicate OK [03:45:59]wFMCommunicate request_size=4 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 0D 03 02 [03:45:59]Write to MH i2c: E2 08 00 CE 6E 80 0D 03 02 00 00 00 00 B7 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:45:59]Read from MH i2c: E2 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 0B 00 [03:45:59]MH_I2C_Read... [03:45:59]Read from MH i2c: E2 0B 00 CE 6E 00 63 C7 57 42 C8 49 8D 31 90 00 4A [03:45:59]RAPDU: 63 C7 57 42 C8 49 8D 31 90 00 [03:45:59]wFMCommunicate OK [03:45:59]SAM_PROTO_SignData done [03:45:59]FM_MakeSignedData done [03:45:59]CreateOFDProtocolMessage [03:45:59]wFMCommunicate request_size=4 [03:45:59]MH_SAM_APDU [03:45:59]CAPDU: 80 11 00 00 [03:45:59]Write to MH i2c: E2 08 00 CF 6E 80 11 00 00 00 00 00 00 B7 [03:45:59]Write i2c OK [03:45:59]MH_I2C_Read... [03:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:00]Read from MH i2c: E2 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 17 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: E2 17 00 CF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [03:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [03:46:00]wFMCommunicate OK [03:46:00]CreateOFDProtocolMessage done [03:46:00]OFDSenderStorePacket 191269 [03:46:00]StoreOFDPacket docnum=191269 [03:46:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 08 07 01 A8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7D 14 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EB 02 00 35 04 06 00 69 56 E2 49 C9 67 63 C7 57 42 C8 49 8D 31 [03:46:00]CheckFolder [03:46:00]dirname=/storage/ofd_packets [03:46:00]CheckFolder done [03:46:00]ProducePacketName [03:46:00]name=ofd_packets/00191269 [03:46:00]NVStorageSaveData ofd_packets/00191269 [03:46:00]File name is /storage/ofd_packets/00191269 [03:46:00]Write 301 bytes [03:46:00]NVStorageSaveData done [03:46:00]OFDSenderStorePacket done [03:46:00]KKMCreateOFDPacket done [03:46:00]NVStorageSaveData kkm_last_timestamp [03:46:00]File name is /storage/kkm_last_timestamp [03:46:00]Write 4 bytes [03:46:00]NVStorageSaveData done [03:46:00]ExternCall_PrintAddStr [03:46:00]wPrintStart [03:46:00]Write to MH i2c: 01 00 00 D0 6E 3E [03:46:00]OFD Sender: Processing packet 191269 [packets to send 75, broken 74] [03:46:00]ProducePacketName [03:46:00]name=ofd_packets/00191269 [03:46:00]OFD Sender: To server: pG, [03:46:00]CommunicateWithHost lk.salyk.kg:30040 [03:46:00]ConnectInit lk.salyk.kg [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 D0 6E 00 00 00 00 00 FF 0F 53 [03:46:00]RasterBufferAndPrint [03:46:00]line Счет N : (1)30560 [03:46:00]line ИНН: 02508201610067 [03:46:00]line Контрольно-Кассовый Чек [03:46:00]line ПРОДАЖА [03:46:00]line ТРК (МРК, ГНК) : 12 [03:46:00]line Товар: 2710124130 [03:46:00]line Аи-92-К-5 [03:46:00]line 20.000 * 0.00 [03:46:00]line = 0.00 [03:46:00]line НДС 12% НСП 1% [03:46:00]line > о реализуемом товаре [03:46:00]line ИТОГО: 0.00 [03:46:00]line НСП 1% : 0.00 [03:46:00]line НДС 12% : 0.00 [03:46:00]line Наличными: 0.00 [03:46:00]line Безнал.: 0.00 [03:46:00]line Место: АЗС № 170 "Партнер Нефть" [03:46:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [03:46:00]line СНО: Общий режим [03:46:00]line Чек 8 25.10.2024 03:46 [03:46:00]line Смена: 540 ФФД: 1.0 [03:46:00]line ЗНМ: 0300000110 [03:46:00]line РНМ: 0000000000091776 [03:46:00]line Версия ККМ: 001 [03:46:00]line Талоны: Партнер нефть [03:46:00]line 3948583 [03:46:00]line ФМ: 0000000000871754 [03:46:00]line ФД: 191269 [03:46:00]line ФПД: 115821884590439 [03:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T034605&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191269&fm=115821884590439&tin=02508201610067®Number=0000000000091776&sum=0 [03:46:00]written 0, free lines is 4095 [03:46:00]Connected sock=10 [03:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 08 07 01 A8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7D 14 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EB 02 00 35 04 06 00 69 56 E2 49 C9 67 63 C7 57 42 C8 49 8D 31 [03:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 99 47 00 25 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EB 02 00 F4 03 04 00 4C B9 1A 67 B6 04 01 00 00 1C C8 93 F0 6D 60 AD 80 [03:46:00]CommunicateWithHost err = 0 [03:46:00]CheckOFDResponse [03:46:00]1017 (14) - 77093643461234 [03:46:00]1041 (16) - 0000000000871754 [03:46:00]1040 (4) - 191269 [03:46:00]1012 (4) - 24.10.2024 21:17 [03:46:00]1206 (1) - 0 [03:46:00]OFD Sender: Remove packet 191269 [03:46:00]ProducePacketName [03:46:00]name=ofd_packets/00191269 [03:46:00]NVStorageDeleteData [03:46:00]Write to MH i2c: 01 00 00 FA 6E 68 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: 01 07 00 FA 6E 00 00 00 00 00 B6 0C 31 [03:46:00]RasterBufferAndPrint [03:46:00]line [03:46:00]line [03:46:00]line [03:46:00]line [03:46:00]line [03:46:00]written 0, free lines is 3258 [03:46:00]MH_Cut [03:46:00]Write to MH i2c: D1 01 00 01 6F 01 42 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: D1 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: D1 01 00 [03:46:00]MH_I2C_Read... [03:46:00]Read from MH i2c: D1 01 00 01 6F 00 41 [03:46:00]Write to MH i2c: 01 00 00 02 6F 71 [03:46:00]Write i2c OK [03:46:00]MH_I2C_Read... [03:46:00]OFD Sender: No OFD packet to send [03:46:01]*** Cut start [03:46:01]*** Partial cut [03:46:01]*** CUTSNS_PIN = 1 [03:46:01]*** CUTSNS_PIN = 0 [03:46:01]*** Brake cut motor [03:46:01]Read from MH i2c: 01 [03:46:01]MH_I2C_Read... [03:46:01]*** Stop cut motor [03:46:01]*** Cut end [03:46:01]Read from MH i2c: 01 07 00 [03:46:01]MH_I2C_Read... [03:46:01]Read from MH i2c: 01 07 00 02 6F 00 00 00 00 00 FF 0F 86 [03:46:01]process_action close_receipt done [03:46:01]requested_data is exist [03:46:01]produce_requested_data [03:46:01]requested_item fm.sn is exist - process it [03:46:01]wFMCommunicate request_size=4 [03:46:01]MH_SAM_APDU [03:46:01]CAPDU: 80 11 00 00 [03:46:01]Write to MH i2c: E2 08 00 03 6F 80 11 00 00 00 00 00 00 EC [03:46:01]Write i2c OK [03:46:01]MH_I2C_Read... [03:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:02]Read from MH i2c: E2 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 17 00 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 17 00 03 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [03:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [03:46:02]wFMCommunicate OK [03:46:02]requested_item fd.num is exist - process it [03:46:02]SAM_PROTO_GetFieldsCounters [03:46:02]wFMCommunicate request_size=4 [03:46:02]MH_SAM_APDU [03:46:02]CAPDU: 80 13 00 00 [03:46:02]Write to MH i2c: E2 08 00 04 6F 80 13 00 00 00 00 00 00 EF [03:46:02]Write i2c OK [03:46:02]MH_I2C_Read... [03:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:02]Read from MH i2c: E2 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 62 00 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 62 00 04 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [03:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:02]wFMCommunicate OK [03:46:02]SAM_PROTO_GetFieldsCounters done [03:46:02]requested_item shift.num is exist - process it [03:46:02]requested_item shift.opened is exist - process it [03:46:02]req_shift_opened [03:46:02]FM_GetShiftState [03:46:02]SAM_PROTO_GetShiftState [03:46:02]wFMCommunicate request_size=4 [03:46:02]MH_SAM_APDU [03:46:02]CAPDU: 80 13 01 00 [03:46:02]Write to MH i2c: E2 08 00 05 6F 80 13 01 00 00 00 00 00 F1 [03:46:02]Write i2c OK [03:46:02]MH_I2C_Read... [03:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:02]Read from MH i2c: E2 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 0E 00 [03:46:02]MH_I2C_Read... [03:46:02]Read from MH i2c: E2 0E 00 05 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B4 [03:46:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [03:46:02]wFMCommunicate OK [03:46:02]SAM_PROTO_GetShiftState done [03:46:02]FM_GetShiftState done [03:46:02]req_shift_opened done [03:46:02]requested_item shift.open_date is exist - process it [03:46:02]req_shift_open_date [03:46:02]req_shift_open_date done [03:46:02]produce_requested_data done [03:46:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191269,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [03:46:02]process_action_free close_receipt [03:46:02]json_value_free [03:46:02]json_value_free done [03:46:02]process_json_proto returns [03:46:02]Send response to host [03:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191269,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [03:46:02]free response buf [03:46:02]execute_script done [03:46:02]execute_script returns [03:46:02]free content buf [03:46:02]Sock 9.Close socket [03:46:02]Sock 9.Thread stoped [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:23]accept exits with 8 [03:54:23]New connection [03:54:23]New thread 3066961252 created [03:54:23]Thread 3066817892 joined [03:54:23]Waiting for new connection... [03:54:23] Sock 8.Parse request [03:54:23]Sock 8.Check first char [03:54:23]Sock 8.First char is OK [03:54:23]request: POST /json_proto HTTP/1.0 [03:54:23]Method: POST [03:54:23]URL: /json_proto [03:54:23]Method is POST - this is cgi request [03:54:23]url: /json_proto [03:54:23]query_string will be loaded in cgi processing [03:54:23]execute_cgi json_proto POST (null) [03:54:23]execute_cgi path=json_proto method=POST [03:54:23]POST find Content-Length [03:54:23]Host: 172.17.63.131:8080 [03:54:23]Content-Length: 804 [03:54:23]Content-Type: application/json [03:54:23] [03:54:23]POST finish read [03:54:23]Found Content-Length = 804 [03:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:23]execute_script... [03:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:23]POST & json_proto [03:54:23]process_json_proto [03:54:23]json parsed OK: [03:54:23]protocol is kg_v1.0 [03:54:23]action value=close_receipt [03:54:23]process_action close_receipt [03:54:23]cmd_close_receipt [03:54:23]MH_GetDate [03:54:23]Write to MH i2c: F0 00 00 06 6F 64 [03:54:23]Write i2c OK [03:54:23]MH_I2C_Read... [03:54:23]Read from MH i2c: F0 [03:54:23]MH_I2C_Read... [03:54:23]Read from MH i2c: F0 09 00 [03:54:23]MH_I2C_Read... [03:54:23]Read from MH i2c: F0 09 00 06 6F 00 76 16 1B 67 22 05 6E 64 74 [03:54:23]GetLastDocTimeStamp 1729827965 [03:54:23]current date 1729828470 [03:54:23]FM_GetShiftState [03:54:23]SAM_PROTO_GetShiftState [03:54:23]wFMCommunicate request_size=4 [03:54:23]MH_SAM_APDU [03:54:23]CAPDU: 80 13 01 00 [03:54:23]Write to MH i2c: E2 08 00 07 6F 80 13 01 00 00 00 00 00 F3 [03:54:23]Write i2c OK [03:54:23]MH_I2C_Read... [03:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:23]Read from MH i2c: E2 [03:54:23]MH_I2C_Read... [03:54:23]Read from MH i2c: E2 0E 00 [03:54:23]MH_I2C_Read... [03:54:23]Read from MH i2c: E2 0E 00 07 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B6 [03:54:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [03:54:23]wFMCommunicate OK [03:54:23]SAM_PROTO_GetShiftState done [03:54:23]FM_GetShiftState done [03:54:23]opened in 1729816399 [03:54:23]opened+sec_in_day 1729902799 [03:54:23]quantity*price = 20003 [03:54:23]sum+1 = 20004 [03:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 9 25.10.2024 03:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 191270 ФПД: 146867078416998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T035430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191270&fm=146867078416998&tin=02508201610067®Number=0000000000091776&sum=20003 [03:54:24]StoreToDocumentArchive [03:54:24]shift 540 fd 191270 [03:54:24]save to /storage/0540/doc_00191270 [03:54:24]save last doc name /storage/0540/doc_00191270 to /storage/kkm_last_doc_name [03:54:24]save OK [03:54:24]Clear old archive folders... [03:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:54:24]tlvbuf is 01750250 [03:54:24]SAM_PROTO_ClearQueue [03:54:24]wFMCommunicate request_size=4 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 09 00 00 [03:54:24]Write to MH i2c: E2 08 00 14 6F 80 09 00 00 00 00 00 00 F5 [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 14 6F 00 90 00 F7 [03:54:24]RAPDU: 90 00 [03:54:24]wFMCommunicate OK [03:54:24]SAM_PROTO_ClearQueue done [03:54:24]KKMCreateOFDPacket [03:54:24]OFDProtocolAddRootSTLVToBuf [03:54:24]FM_MakeSignedData [03:54:24]FM_MakeSignedData [03:54:24]SAM_PROTO_SignData [03:54:24]wFMCommunicate request_size=4 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 0D 01 02 [03:54:24]Write to MH i2c: E2 08 00 15 6F 80 0D 01 02 00 00 00 00 FD [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 15 6F 00 90 00 F8 [03:54:24]RAPDU: 90 00 [03:54:24]wFMCommunicate OK [03:54:24]wFMCommunicate request_size=255 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 16 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EB 02 00 35 04 06 00 85 [03:54:24]Write to MH i2c: E2 02 01 16 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 16 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EB 02 00 35 04 06 00 85 00 00 26 [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 16 6F 00 90 00 F9 [03:54:24]RAPDU: 90 00 [03:54:24]wFMCommunicate OK [03:54:24]wFMCommunicate request_size=10 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 0D 02 02 05 93 28 09 CA 66 [03:54:24]Write to MH i2c: E2 0D 00 17 6F 80 0D 02 02 05 00 93 28 09 CA 66 00 00 FE [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 03 00 17 6F 00 90 00 FA [03:54:24]RAPDU: 90 00 [03:54:24]wFMCommunicate OK [03:54:24]wFMCommunicate request_size=4 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 0D 03 02 [03:54:24]Write to MH i2c: E2 08 00 18 6F 80 0D 03 02 00 00 00 00 02 [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 0B 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 0B 00 18 6F 00 31 88 F1 33 20 4B F3 3A 90 00 78 [03:54:24]RAPDU: 31 88 F1 33 20 4B F3 3A 90 00 [03:54:24]wFMCommunicate OK [03:54:24]SAM_PROTO_SignData done [03:54:24]FM_MakeSignedData done [03:54:24]CreateOFDProtocolMessage [03:54:24]wFMCommunicate request_size=4 [03:54:24]MH_SAM_APDU [03:54:24]CAPDU: 80 11 00 00 [03:54:24]Write to MH i2c: E2 08 00 19 6F 80 11 00 00 00 00 00 00 02 [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:24]Read from MH i2c: E2 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 17 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: E2 17 00 19 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [03:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [03:54:24]wFMCommunicate OK [03:54:24]CreateOFDProtocolMessage done [03:54:24]OFDSenderStorePacket 191270 [03:54:24]StoreOFDPacket docnum=191270 [03:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 8E 07 01 53 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 16 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EB 02 00 35 04 06 00 85 93 28 09 CA 66 31 88 F1 33 20 4B F3 3A [03:54:24]CheckFolder [03:54:24]dirname=/storage/ofd_packets [03:54:24]CheckFolder done [03:54:24]ProducePacketName [03:54:24]name=ofd_packets/00191270 [03:54:24]NVStorageSaveData ofd_packets/00191270 [03:54:24]File name is /storage/ofd_packets/00191270 [03:54:24]Write 301 bytes [03:54:24]NVStorageSaveData done [03:54:24]OFDSenderStorePacket done [03:54:24]KKMCreateOFDPacket done [03:54:24]NVStorageSaveData kkm_last_timestamp [03:54:24]File name is /storage/kkm_last_timestamp [03:54:24]Write 4 bytes [03:54:24]NVStorageSaveData done [03:54:24]ExternCall_PrintAddStr [03:54:24]wPrintStart [03:54:24]Write to MH i2c: 01 00 00 1A 6F 89 [03:54:24]Write i2c OK [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: 01 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: 01 07 00 [03:54:24]MH_I2C_Read... [03:54:24]Read from MH i2c: 01 07 00 1A 6F 00 00 00 00 00 FF 0F 9E [03:54:24]RasterBufferAndPrint [03:54:24]line Счет N : (1)30561 [03:54:24]line ИНН: 02508201610067 [03:54:24]line Контрольно-Кассовый Чек [03:54:24]line ПРОДАЖА [03:54:24]line ТРК (МРК, ГНК) : 21 [03:54:24]line Товар: 2710124130 [03:54:24]line Аи-92-К-5 [03:54:24]line 2.990 * 66.90 [03:54:24]line = 200.03 [03:54:24]line НДС 12% НСП 1% [03:54:24]line > о реализуемом товаре [03:54:24]line ИТОГО: 200.03 [03:54:24]line НСП 1% : 1.77 [03:54:24]line НДС 12% : 21.24 [03:54:24]line Наличными: 0.00 [03:54:24]line Безнал.: 200.03 [03:54:24]line Место: АЗС № 170 "Партнер Нефть" [03:54:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [03:54:24]line СНО: Общий режим [03:54:24]line Чек 9 25.10.2024 03:54 [03:54:24]line Смена: 540 ФФД: 1.0 [03:54:24]line ЗНМ: 0300000110 [03:54:24]line РНМ: 0000000000091776 [03:54:24]line Версия ККМ: 001 [03:54:24]line Платежная система: О! деньги [03:54:24]line ФМ: 0000000000871754 [03:54:24]line ФД: 191270 [03:54:24]line ФПД: 146867078416998 [03:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T035430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191270&fm=146867078416998&tin=02508201610067®Number=0000000000091776&sum=20003 [03:54:25]OFD Sender: Processing packet 191270 [packets to send 75, broken 74] [03:54:25]ProducePacketName [03:54:25]name=ofd_packets/00191270 [03:54:25]OFD Sender: To server: pG, [03:54:25]CommunicateWithHost lk.salyk.kg:30040 [03:54:25]ConnectInit lk.salyk.kg [03:54:25]written 0, free lines is 4095 [03:54:25]Connected sock=10 [03:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 8E 07 01 53 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 16 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EB 02 00 35 04 06 00 85 93 28 09 CA 66 31 88 F1 33 20 4B F3 3A [03:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 DE 47 00 D6 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EB 02 00 F4 03 04 00 45 BB 1A 67 B6 04 01 00 00 AC E6 C3 5D 07 94 1E 22 [03:54:25]CommunicateWithHost err = 0 [03:54:25]CheckOFDResponse [03:54:25]1017 (14) - 77093643461234 [03:54:25]1041 (16) - 0000000000871754 [03:54:25]1040 (4) - 191270 [03:54:25]1012 (4) - 24.10.2024 21:25 [03:54:25]1206 (1) - 0 [03:54:25]OFD Sender: Remove packet 191270 [03:54:25]ProducePacketName [03:54:25]name=ofd_packets/00191270 [03:54:25]NVStorageDeleteData [03:54:25]Write to MH i2c: 01 00 00 44 6F B3 [03:54:25]Write i2c OK [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: 01 [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: 01 07 00 [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: 01 07 00 44 6F 00 00 00 00 00 A8 0C 6E [03:54:25]RasterBufferAndPrint [03:54:25]line [03:54:25]line [03:54:25]line [03:54:25]line [03:54:25]line [03:54:25]written 0, free lines is 3243 [03:54:25]MH_Cut [03:54:25]Write to MH i2c: D1 01 00 4B 6F 01 8C [03:54:25]Write i2c OK [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: D1 [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: D1 01 00 [03:54:25]MH_I2C_Read... [03:54:25]Read from MH i2c: D1 01 00 4B 6F 00 8B [03:54:25]Write to MH i2c: 01 00 00 4C 6F BB [03:54:25]Write i2c OK [03:54:25]MH_I2C_Read... [03:54:25]OFD Sender: No OFD packet to send [03:54:26]*** Cut start [03:54:26]*** Partial cut [03:54:26]*** CUTSNS_PIN = 1 [03:54:26]*** CUTSNS_PIN = 0 [03:54:26]*** Brake cut motor [03:54:27]Read from MH i2c: 01 [03:54:27]MH_I2C_Read... [03:54:27]*** Stop cut motor [03:54:27]*** Cut end [03:54:27]Read from MH i2c: 01 07 00 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: 01 07 00 4C 6F 00 00 00 00 00 FF 0F D0 [03:54:27]process_action close_receipt done [03:54:27]requested_data is exist [03:54:27]produce_requested_data [03:54:27]requested_item fm.sn is exist - process it [03:54:27]wFMCommunicate request_size=4 [03:54:27]MH_SAM_APDU [03:54:27]CAPDU: 80 11 00 00 [03:54:27]Write to MH i2c: E2 08 00 4D 6F 80 11 00 00 00 00 00 00 36 [03:54:27]Write i2c OK [03:54:27]MH_I2C_Read... [03:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:27]Read from MH i2c: E2 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 17 00 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 17 00 4D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [03:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [03:54:27]wFMCommunicate OK [03:54:27]requested_item fd.num is exist - process it [03:54:27]SAM_PROTO_GetFieldsCounters [03:54:27]wFMCommunicate request_size=4 [03:54:27]MH_SAM_APDU [03:54:27]CAPDU: 80 13 00 00 [03:54:27]Write to MH i2c: E2 08 00 4E 6F 80 13 00 00 00 00 00 00 39 [03:54:27]Write i2c OK [03:54:27]MH_I2C_Read... [03:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:54:27]Read from MH i2c: E2 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 62 00 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 62 00 4E 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [03:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:54:27]wFMCommunicate OK [03:54:27]SAM_PROTO_GetFieldsCounters done [03:54:27]requested_item shift.num is exist - process it [03:54:27]requested_item shift.opened is exist - process it [03:54:27]req_shift_opened [03:54:27]FM_GetShiftState [03:54:27]SAM_PROTO_GetShiftState [03:54:27]wFMCommunicate request_size=4 [03:54:27]MH_SAM_APDU [03:54:27]CAPDU: 80 13 01 00 [03:54:27]Write to MH i2c: E2 08 00 4F 6F 80 13 01 00 00 00 00 00 3B [03:54:27]Write i2c OK [03:54:27]MH_I2C_Read... [03:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:27]Read from MH i2c: E2 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 0E 00 [03:54:27]MH_I2C_Read... [03:54:27]Read from MH i2c: E2 0E 00 4F 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FE [03:54:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [03:54:27]wFMCommunicate OK [03:54:27]SAM_PROTO_GetShiftState done [03:54:27]FM_GetShiftState done [03:54:27]req_shift_opened done [03:54:27]requested_item shift.open_date is exist - process it [03:54:27]req_shift_open_date [03:54:27]req_shift_open_date done [03:54:27]produce_requested_data done [03:54:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191270,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [03:54:27]process_action_free close_receipt [03:54:27]json_value_free [03:54:27]json_value_free done [03:54:27]process_json_proto returns [03:54:27]Send response to host [03:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191270,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [03:54:27]free response buf [03:54:27]execute_script done [03:54:27]execute_script returns [03:54:27]free content buf [03:54:27]Sock 8.Close socket [03:54:27]Sock 8.Thread stoped [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:24]ConnectInit Can't connect to host [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:24]accept exits with 9 [05:56:24]New connection [05:56:24]New thread 3066817892 created [05:56:24]Thread 3066961252 joined [05:56:24]Waiting for new connection... [05:56:24] Sock 9.Parse request [05:56:24]Sock 9.Check first char [05:56:24]Sock 9.First char is OK [05:56:24]request: POST /json_proto HTTP/1.0 [05:56:24]Method: POST [05:56:24]URL: /json_proto [05:56:24]Method is POST - this is cgi request [05:56:24]url: /json_proto [05:56:24]query_string will be loaded in cgi processing [05:56:24]execute_cgi json_proto POST (null) [05:56:24]execute_cgi path=json_proto method=POST [05:56:24]POST find Content-Length [05:56:24]Host: 172.17.63.131:8080 [05:56:24]Content-Length: 681 [05:56:24]Content-Type: application/json [05:56:24] [05:56:24]POST finish read [05:56:24]Found Content-Length = 681 [05:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:24]execute_script... [05:56: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)30562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:24]POST & json_proto [05:56:24]process_json_proto [05:56:24]json parsed OK: [05:56:24]protocol is kg_v1.0 [05:56:24]action value=close_receipt [05:56:24]process_action close_receipt [05:56:24]cmd_close_receipt [05:56:24]MH_GetDate [05:56:24]Write to MH i2c: F0 00 00 50 6F AE [05:56:24]Write i2c OK [05:56:24]MH_I2C_Read... [05:56:24]Read from MH i2c: F0 [05:56:24]MH_I2C_Read... [05:56:24]Read from MH i2c: F0 09 00 [05:56:24]MH_I2C_Read... [05:56:24]Read from MH i2c: F0 09 00 50 6F 00 0F 33 1B 67 22 05 6E 64 74 [05:56:24]GetLastDocTimeStamp 1729828470 [05:56:24]current date 1729835791 [05:56:24]FM_GetShiftState [05:56:24]SAM_PROTO_GetShiftState [05:56:24]wFMCommunicate request_size=4 [05:56:24]MH_SAM_APDU [05:56:24]CAPDU: 80 13 01 00 [05:56:24]Write to MH i2c: E2 08 00 51 6F 80 13 01 00 00 00 00 00 3D [05:56:24]Write i2c OK [05:56:24]MH_I2C_Read... [05:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:24]Read from MH i2c: E2 [05:56:24]MH_I2C_Read... [05:56:24]Read from MH i2c: E2 0E 00 [05:56:24]MH_I2C_Read... [05:56:24]Read from MH i2c: E2 0E 00 51 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 00 [05:56:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [05:56:24]wFMCommunicate OK [05:56:24]SAM_PROTO_GetShiftState done [05:56:24]FM_GetShiftState done [05:56:24]opened in 1729816399 [05:56:24]opened+sec_in_day 1729902799 [05:56:24]quantity*price = 160024 [05:56:24]sum+1 = 160026 [05:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 10 25.10.2024 05:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191271 ФПД: 208740505516952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T055631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191271&fm=208740505516952&tin=02508201610067®Number=0000000000091776&sum=160000 [05:56:25]StoreToDocumentArchive [05:56:25]shift 540 fd 191271 [05:56:25]save to /storage/0540/doc_00191271 [05:56:25]save last doc name /storage/0540/doc_00191271 to /storage/kkm_last_doc_name [05:56:25]save OK [05:56:25]Clear old archive folders... [05:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:56:25]tlvbuf is 01839DD0 [05:56:25]SAM_PROTO_ClearQueue [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 09 00 00 [05:56:25]Write to MH i2c: E2 08 00 5E 6F 80 09 00 00 00 00 00 00 3F [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 5E 6F 00 90 00 41 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]SAM_PROTO_ClearQueue done [05:56:25]KKMCreateOFDPacket [05:56:25]OFDProtocolAddRootSTLVToBuf [05:56:25]FM_MakeSignedData [05:56:25]FM_MakeSignedData [05:56:25]SAM_PROTO_SignData [05:56:25]wFMCommunicate request_size=4 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 01 02 [05:56:25]Write to MH i2c: E2 08 00 5F 6F 80 0D 01 02 00 00 00 00 47 [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:25]Read from MH i2c: E2 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 [05:56:25]MH_I2C_Read... [05:56:25]Read from MH i2c: E2 03 00 5F 6F 00 90 00 42 [05:56:25]RAPDU: 90 00 [05:56:25]wFMCommunicate OK [05:56:25]wFMCommunicate request_size=255 [05:56:25]MH_SAM_APDU [05:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0F 33 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EB 02 00 35 04 06 00 BD [05:56:25]Write to MH i2c: E2 02 01 60 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0F 33 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EB 02 00 35 04 06 00 BD 00 00 BF [05:56:25]Write i2c OK [05:56:25]MH_I2C_Read... [05:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:26]Read from MH i2c: E2 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 03 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 03 00 60 6F 00 90 00 43 [05:56:26]RAPDU: 90 00 [05:56:26]wFMCommunicate OK [05:56:26]wFMCommunicate request_size=10 [05:56:26]MH_SAM_APDU [05:56:26]CAPDU: 80 0D 02 02 05 D9 2F AE 7B 98 [05:56:26]Write to MH i2c: E2 0D 00 61 6F 80 0D 02 02 05 00 D9 2F AE 7B 98 00 00 1D [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:26]Read from MH i2c: E2 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 03 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 03 00 61 6F 00 90 00 44 [05:56:26]RAPDU: 90 00 [05:56:26]wFMCommunicate OK [05:56:26]wFMCommunicate request_size=4 [05:56:26]MH_SAM_APDU [05:56:26]CAPDU: 80 0D 03 02 [05:56:26]Write to MH i2c: E2 08 00 62 6F 80 0D 03 02 00 00 00 00 4C [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:26]Read from MH i2c: E2 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 0B 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 0B 00 62 6F 00 FC 94 0B CF 14 87 F9 D2 90 00 1D [05:56:26]RAPDU: FC 94 0B CF 14 87 F9 D2 90 00 [05:56:26]wFMCommunicate OK [05:56:26]SAM_PROTO_SignData done [05:56:26]FM_MakeSignedData done [05:56:26]CreateOFDProtocolMessage [05:56:26]wFMCommunicate request_size=4 [05:56:26]MH_SAM_APDU [05:56:26]CAPDU: 80 11 00 00 [05:56:26]Write to MH i2c: E2 08 00 63 6F 80 11 00 00 00 00 00 00 4C [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:26]Read from MH i2c: E2 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 17 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: E2 17 00 63 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [05:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:56:26]wFMCommunicate OK [05:56:26]CreateOFDProtocolMessage done [05:56:26]OFDSenderStorePacket 191271 [05:56:26]StoreOFDPacket docnum=191271 [05:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 8F 07 01 0A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0F 33 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EB 02 00 35 04 06 00 BD D9 2F AE 7B 98 FC 94 0B CF 14 87 F9 D2 [05:56:26]CheckFolder [05:56:26]dirname=/storage/ofd_packets [05:56:26]CheckFolder done [05:56:26]ProducePacketName [05:56:26]name=ofd_packets/00191271 [05:56:26]NVStorageSaveData ofd_packets/00191271 [05:56:26]File name is /storage/ofd_packets/00191271 [05:56:26]Write 301 bytes [05:56:26]NVStorageSaveData done [05:56:26]OFDSenderStorePacket done [05:56:26]KKMCreateOFDPacket done [05:56:26]NVStorageSaveData kkm_last_timestamp [05:56:26]File name is /storage/kkm_last_timestamp [05:56:26]Write 4 bytes [05:56:26]NVStorageSaveData done [05:56:26]ExternCall_PrintAddStr [05:56:26]wPrintStart [05:56:26]Write to MH i2c: 01 00 00 64 6F D3 [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 64 6F 00 00 00 00 00 FF 0F E8 [05:56:26]RasterBufferAndPrint [05:56:26]line Счет N : (1)30562 [05:56:26]line ИНН: 02508201610067 [05:56:26]line Контрольно-Кассовый Чек [05:56:26]line ПРОДАЖА [05:56:26]line ТРК (МРК, ГНК) : 12 [05:56:26]line Товар: 2710124130 [05:56:26]line Аи-92-К-5 [05:56:26]line 23.920 * 66.90 [05:56:26]line = 1600.25 [05:56:26]line НДС 12% НСП 1% [05:56:26]line > о реализуемом товаре [05:56:26]line ОКРУГЛЕНИЕ: -0.25 [05:56:26]line ИТОГО: 1600.00 [05:56:26]line Внесено: 1600.00 [05:56:26]line СДАЧА: 0.00 [05:56:26]line НСП 1% : 14.16 [05:56:26]line НДС 12% : 169.94 [05:56:26]line Наличными: 1600.00 [05:56:26]line Безнал.: 0.00 [05:56:26]line Место: АЗС № 170 "Партнер Нефть" [05:56:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [05:56:26]line СНО: Общий режим [05:56:26]line Чек 10 25.10.2024 05:56 [05:56:26]line Смена: 540 ФФД: 1.0 [05:56:26]line ЗНМ: 0300000110 [05:56:26]line РНМ: 0000000000091776 [05:56:26]line Версия ККМ: 001 [05:56:26]line ФМ: 0000000000871754 [05:56:26]line ФД: 191271 [05:56:26]line ФПД: 208740505516952 [05:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T055631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191271&fm=208740505516952&tin=02508201610067®Number=0000000000091776&sum=160000 [05:56:26]OFD Sender: Processing packet 191271 [packets to send 75, broken 74] [05:56:26]ProducePacketName [05:56:26]name=ofd_packets/00191271 [05:56:26]OFD Sender: To server: pG, [05:56:26]CommunicateWithHost lk.salyk.kg:30040 [05:56:26]ConnectInit lk.salyk.kg [05:56:26]written 0, free lines is 4095 [05:56:26]Connected sock=8 [05:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 8F 07 01 0A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0F 33 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EB 02 00 35 04 06 00 BD D9 2F AE 7B 98 FC 94 0B CF 14 87 F9 D2 [05:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4D 51 47 00 02 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EB 02 00 F4 03 04 00 DF D7 1A 67 B6 04 01 00 00 4E A2 AD A1 80 C5 79 B8 [05:56:26]CommunicateWithHost err = 0 [05:56:26]CheckOFDResponse [05:56:26]1017 (14) - 77093643461234 [05:56:26]1041 (16) - 0000000000871754 [05:56:26]1040 (4) - 191271 [05:56:26]1012 (4) - 24.10.2024 23:27 [05:56:26]1206 (1) - 0 [05:56:26]OFD Sender: Remove packet 191271 [05:56:26]ProducePacketName [05:56:26]name=ofd_packets/00191271 [05:56:26]NVStorageDeleteData [05:56:26]Write to MH i2c: 01 00 00 8F 6F FE [05:56:26]Write i2c OK [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 [05:56:26]MH_I2C_Read... [05:56:26]Read from MH i2c: 01 07 00 8F 6F 00 00 00 00 00 9A 0C AB [05:56:26]RasterBufferAndPrint [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]line [05:56:26]written 0, free lines is 3233 [05:56:27]MH_Cut [05:56:27]Write to MH i2c: D1 01 00 96 6F 01 D7 [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: D1 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: D1 01 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: D1 01 00 96 6F 00 D6 [05:56:27]Write to MH i2c: 01 00 00 97 6F 06 [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]OFD Sender: No OFD packet to send [05:56:27]*** Cut start [05:56:27]*** Partial cut [05:56:27]*** CUTSNS_PIN = 1 [05:56:27]*** CUTSNS_PIN = 0 [05:56:28]*** Brake cut motor [05:56:28]Read from MH i2c: 01 [05:56:28]MH_I2C_Read... [05:56:28]*** Stop cut motor [05:56:28]*** Cut end [05:56:28]Read from MH i2c: 01 07 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: 01 07 00 97 6F 00 00 00 00 00 FF 0F 1B [05:56:28]process_action close_receipt done [05:56:28]requested_data is exist [05:56:28]produce_requested_data [05:56:28]requested_item fm.sn is exist - process it [05:56:28]wFMCommunicate request_size=4 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 11 00 00 [05:56:28]Write to MH i2c: E2 08 00 98 6F 80 11 00 00 00 00 00 00 81 [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:28]Read from MH i2c: E2 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 17 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 17 00 98 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [05:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:56:28]wFMCommunicate OK [05:56:28]requested_item fd.num is exist - process it [05:56:28]SAM_PROTO_GetFieldsCounters [05:56:28]wFMCommunicate request_size=4 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 13 00 00 [05:56:28]Write to MH i2c: E2 08 00 99 6F 80 13 00 00 00 00 00 00 84 [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:28]Read from MH i2c: E2 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 62 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 62 00 99 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [05:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:56:28]wFMCommunicate OK [05:56:28]SAM_PROTO_GetFieldsCounters done [05:56:28]requested_item shift.num is exist - process it [05:56:28]requested_item shift.opened is exist - process it [05:56:28]req_shift_opened [05:56:28]FM_GetShiftState [05:56:28]SAM_PROTO_GetShiftState [05:56:28]wFMCommunicate request_size=4 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 13 01 00 [05:56:28]Write to MH i2c: E2 08 00 9A 6F 80 13 01 00 00 00 00 00 86 [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:28]Read from MH i2c: E2 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 0E 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 0E 00 9A 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 49 [05:56:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [05:56:28]wFMCommunicate OK [05:56:28]SAM_PROTO_GetShiftState done [05:56:28]FM_GetShiftState done [05:56:28]req_shift_opened done [05:56:28]requested_item shift.open_date is exist - process it [05:56:28]req_shift_open_date [05:56:28]req_shift_open_date done [05:56:28]produce_requested_data done [05:56:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191271,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [05:56:28]process_action_free close_receipt [05:56:28]json_value_free [05:56:28]json_value_free done [05:56:28]process_json_proto returns [05:56:28]Send response to host [05:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191271,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [05:56:28]free response buf [05:56:28]execute_script done [05:56:28]execute_script returns [05:56:28]free content buf [05:56:28]Sock 9.Close socket [05:56:28]Sock 9.Thread stoped [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59: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:55]accept exits with 10 [06:03:55]New connection [06:03:55]New thread 3066961252 created [06:03:55]Thread 3066817892 joined [06:03:55]Waiting for new connection... [06:03:55] Sock 10.Parse request [06:03:55]Sock 10.Check first char [06:03:55]Sock 10.First char is OK [06:03:55]request: POST /json_proto HTTP/1.0 [06:03:55]Method: POST [06:03:55]URL: /json_proto [06:03:55]Method is POST - this is cgi request [06:03:55]url: /json_proto [06:03:55]query_string will be loaded in cgi processing [06:03:55]execute_cgi json_proto POST (null) [06:03:55]execute_cgi path=json_proto method=POST [06:03:55]POST find Content-Length [06:03:55]Host: 172.17.63.131:8080 [06:03:55]Content-Length: 676 [06:03:55]Content-Type: application/json [06:03:55] [06:03:55]POST finish read [06:03:55]Found Content-Length = 676 [06:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:55]execute_script... [06: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)30563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:55]POST & json_proto [06:03:55]process_json_proto [06:03:55]json parsed OK: [06:03:55]protocol is kg_v1.0 [06:03:55]action value=close_receipt [06:03:55]process_action close_receipt [06:03:55]cmd_close_receipt [06:03:55]MH_GetDate [06:03:55]Write to MH i2c: F0 00 00 9B 6F F9 [06:03:55]Write i2c OK [06:03:55]MH_I2C_Read... [06:03:55]Read from MH i2c: F0 [06:03:55]MH_I2C_Read... [06:03:55]Read from MH i2c: F0 09 00 [06:03:55]MH_I2C_Read... [06:03:55]Read from MH i2c: F0 09 00 9B 6F 00 D2 34 1B 67 22 05 6E 64 83 [06:03:55]GetLastDocTimeStamp 1729835791 [06:03:55]current date 1729836242 [06:03:55]FM_GetShiftState [06:03:55]SAM_PROTO_GetShiftState [06:03:55]wFMCommunicate request_size=4 [06:03:55]MH_SAM_APDU [06:03:55]CAPDU: 80 13 01 00 [06:03:55]Write to MH i2c: E2 08 00 9C 6F 80 13 01 00 00 00 00 00 88 [06:03:55]Write i2c OK [06:03:55]MH_I2C_Read... [06:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:55]Read from MH i2c: E2 [06:03:55]MH_I2C_Read... [06:03:55]Read from MH i2c: E2 0E 00 [06:03:55]MH_I2C_Read... [06:03:55]Read from MH i2c: E2 0E 00 9C 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4B [06:03:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:03:55]wFMCommunicate OK [06:03:55]SAM_PROTO_GetShiftState done [06:03:55]FM_GetShiftState done [06:03:55]opened in 1729816399 [06:03:55]opened+sec_in_day 1729902799 [06:03:55]quantity*price = 50041 [06:03:55]sum+1 = 50042 [06:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 11 25.10.2024 06:04 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191272 ФПД: 235296427734416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191272&fm=235296427734416&tin=02508201610067®Number=0000000000091776&sum=50000 [06:03:56]StoreToDocumentArchive [06:03:56]shift 540 fd 191272 [06:03:56]save to /storage/0540/doc_00191272 [06:03:56]save last doc name /storage/0540/doc_00191272 to /storage/kkm_last_doc_name [06:03:56]save OK [06:03:56]Clear old archive folders... [06:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:56]tlvbuf is 0160AFB0 [06:03:56]SAM_PROTO_ClearQueue [06:03:56]wFMCommunicate request_size=4 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 09 00 00 [06:03:56]Write to MH i2c: E2 08 00 A9 6F 80 09 00 00 00 00 00 00 8A [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 A9 6F 00 90 00 8C [06:03:56]RAPDU: 90 00 [06:03:56]wFMCommunicate OK [06:03:56]SAM_PROTO_ClearQueue done [06:03:56]KKMCreateOFDPacket [06:03:56]OFDProtocolAddRootSTLVToBuf [06:03:56]FM_MakeSignedData [06:03:56]FM_MakeSignedData [06:03:56]SAM_PROTO_SignData [06:03:56]wFMCommunicate request_size=4 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 0D 01 02 [06:03:56]Write to MH i2c: E2 08 00 AA 6F 80 0D 01 02 00 00 00 00 92 [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 AA 6F 00 90 00 8D [06:03:56]RAPDU: 90 00 [06:03:56]wFMCommunicate OK [06:03:56]wFMCommunicate request_size=255 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D2 34 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EB 02 00 35 04 06 00 D6 [06:03:56]Write to MH i2c: E2 02 01 AB 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D2 34 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EB 02 00 35 04 06 00 D6 00 00 C2 [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:56]Read from MH i2c: E2 03 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 AB 6F 00 90 00 8E [06:03:56]RAPDU: 90 00 [06:03:56]wFMCommunicate OK [06:03:56]wFMCommunicate request_size=10 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 0D 02 02 05 00 37 FD F5 90 [06:03:56]Write to MH i2c: E2 0D 00 AC 6F 80 0D 02 02 05 00 00 37 FD F5 90 00 00 58 [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 03 00 AC 6F 00 90 00 8F [06:03:56]RAPDU: 90 00 [06:03:56]wFMCommunicate OK [06:03:56]wFMCommunicate request_size=4 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 0D 03 02 [06:03:56]Write to MH i2c: E2 08 00 AD 6F 80 0D 03 02 00 00 00 00 97 [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 0B 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 0B 00 AD 6F 00 C3 5D 16 4D A1 96 D9 67 90 00 92 [06:03:56]RAPDU: C3 5D 16 4D A1 96 D9 67 90 00 [06:03:56]wFMCommunicate OK [06:03:56]SAM_PROTO_SignData done [06:03:56]FM_MakeSignedData done [06:03:56]CreateOFDProtocolMessage [06:03:56]wFMCommunicate request_size=4 [06:03:56]MH_SAM_APDU [06:03:56]CAPDU: 80 11 00 00 [06:03:56]Write to MH i2c: E2 08 00 AE 6F 80 11 00 00 00 00 00 00 97 [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:56]Read from MH i2c: E2 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 17 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: E2 17 00 AE 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [06:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:03:56]wFMCommunicate OK [06:03:56]CreateOFDProtocolMessage done [06:03:56]OFDSenderStorePacket 191272 [06:03:56]StoreOFDPacket docnum=191272 [06:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DF 96 07 01 6C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D2 34 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EB 02 00 35 04 06 00 D6 00 37 FD F5 90 C3 5D 16 4D A1 96 D9 67 [06:03:56]CheckFolder [06:03:56]dirname=/storage/ofd_packets [06:03:56]CheckFolder done [06:03:56]ProducePacketName [06:03:56]name=ofd_packets/00191272 [06:03:56]NVStorageSaveData ofd_packets/00191272 [06:03:56]File name is /storage/ofd_packets/00191272 [06:03:56]Write 301 bytes [06:03:56]NVStorageSaveData done [06:03:56]OFDSenderStorePacket done [06:03:56]KKMCreateOFDPacket done [06:03:56]NVStorageSaveData kkm_last_timestamp [06:03:56]File name is /storage/kkm_last_timestamp [06:03:56]Write 4 bytes [06:03:56]NVStorageSaveData done [06:03:56]ExternCall_PrintAddStr [06:03:56]wPrintStart [06:03:56]Write to MH i2c: 01 00 00 AF 6F 1E [06:03:56]Write i2c OK [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: 01 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: 01 07 00 [06:03:56]MH_I2C_Read... [06:03:56]Read from MH i2c: 01 07 00 AF 6F 00 00 00 00 00 FF 0F 33 [06:03:56]RasterBufferAndPrint [06:03:56]line Счет N : (1)30563 [06:03:56]line ИНН: 02508201610067 [06:03:56]line Контрольно-Кассовый Чек [06:03:56]line ПРОДАЖА [06:03:56]line ТРК (МРК, ГНК) : 21 [06:03:56]line Товар: 2710124130 [06:03:56]line Аи-92-К-5 [06:03:56]line 7.480 * 66.90 [06:03:56]line = 500.41 [06:03:56]line НДС 12% НСП 1% [06:03:56]line > о реализуемом товаре [06:03:56]line ОКРУГЛЕНИЕ: -0.41 [06:03:56]line ИТОГО: 500.00 [06:03:56]line Внесено: 500.00 [06:03:56]line СДАЧА: 0.00 [06:03:56]line НСП 1% : 4.43 [06:03:56]line НДС 12% : 53.14 [06:03:56]line Наличными: 500.00 [06:03:56]line Безнал.: 0.00 [06:03:56]line Место: АЗС № 170 "Партнер Нефть" [06:03:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:03:56]line СНО: Общий режим [06:03:56]line Чек 11 25.10.2024 06:04 [06:03:56]line Смена: 540 ФФД: 1.0 [06:03:56]line ЗНМ: 0300000110 [06:03:56]line РНМ: 0000000000091776 [06:03:56]line Версия ККМ: 001 [06:03:56]line ФМ: 0000000000871754 [06:03:56]line ФД: 191272 [06:03:56]line ФПД: 235296427734416 [06:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191272&fm=235296427734416&tin=02508201610067®Number=0000000000091776&sum=50000 [06:03:57]OFD Sender: Processing packet 191272 [packets to send 75, broken 74] [06:03:57]ProducePacketName [06:03:57]name=ofd_packets/00191272 [06:03:57]OFD Sender: To server: pG, [06:03:57]CommunicateWithHost lk.salyk.kg:30040 [06:03:57]ConnectInit lk.salyk.kg [06:03:57]written 0, free lines is 4095 [06:03:57]Connected sock=9 [06: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 31 37 35 34 0F 01 00 00 DF 96 07 01 6C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D2 34 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EB 02 00 35 04 06 00 D6 00 37 FD F5 90 C3 5D 16 4D A1 96 D9 67 [06:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 CA 47 00 89 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EB 02 00 F4 03 04 00 A2 D9 1A 67 B6 04 01 00 00 94 C4 D7 CB DD 2A B5 5F [06:03:57]CommunicateWithHost err = 0 [06:03:57]CheckOFDResponse [06:03:57]1017 (14) - 77093643461234 [06:03:57]1041 (16) - 0000000000871754 [06:03:57]1040 (4) - 191272 [06:03:57]1012 (4) - 24.10.2024 23:34 [06:03:57]1206 (1) - 0 [06:03:57]OFD Sender: Remove packet 191272 [06:03:57]ProducePacketName [06:03:57]name=ofd_packets/00191272 [06:03:57]NVStorageDeleteData [06:03:57]Write to MH i2c: 01 00 00 DA 6F 49 [06:03:57]Write i2c OK [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: 01 [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: 01 07 00 [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: 01 07 00 DA 6F 00 00 00 00 00 93 0C EF [06:03:57]RasterBufferAndPrint [06:03:57]line [06:03:57]line [06:03:57]line [06:03:57]line [06:03:57]line [06:03:57]written 0, free lines is 3225 [06:03:57]MH_Cut [06:03:57]Write to MH i2c: D1 01 00 E1 6F 01 22 [06:03:57]Write i2c OK [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: D1 [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: D1 01 00 [06:03:57]MH_I2C_Read... [06:03:57]Read from MH i2c: D1 01 00 E1 6F 00 21 [06:03:57]Write to MH i2c: 01 00 00 E2 6F 51 [06:03:57]Write i2c OK [06:03:57]MH_I2C_Read... [06:03:57]OFD Sender: No OFD packet to send [06:03:58]*** Cut start [06:03:58]*** Partial cut [06:03:58]*** CUTSNS_PIN = 1 [06:03:58]*** CUTSNS_PIN = 0 [06:03:58]*** Brake cut motor [06:03:59]Read from MH i2c: 01 [06:03:59]MH_I2C_Read... [06:03:59]*** Stop cut motor [06:03:59]*** Cut end [06:03:59]Read from MH i2c: 01 07 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 E2 6F 00 00 00 00 00 FF 0F 66 [06:03:59]process_action close_receipt done [06:03:59]requested_data is exist [06:03:59]produce_requested_data [06:03:59]requested_item fm.sn is exist - process it [06:03:59]wFMCommunicate request_size=4 [06:03:59]MH_SAM_APDU [06:03:59]CAPDU: 80 11 00 00 [06:03:59]Write to MH i2c: E2 08 00 E3 6F 80 11 00 00 00 00 00 00 CC [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:59]Read from MH i2c: E2 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 17 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 17 00 E3 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [06:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:03:59]wFMCommunicate OK [06:03:59]requested_item fd.num is exist - process it [06:03:59]SAM_PROTO_GetFieldsCounters [06:03:59]wFMCommunicate request_size=4 [06:03:59]MH_SAM_APDU [06:03:59]CAPDU: 80 13 00 00 [06:03:59]Write to MH i2c: E2 08 00 E4 6F 80 13 00 00 00 00 00 00 CF [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:59]Read from MH i2c: E2 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 62 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 62 00 E4 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [06: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:59]wFMCommunicate OK [06:03:59]SAM_PROTO_GetFieldsCounters done [06:03:59]requested_item shift.num is exist - process it [06:03:59]requested_item shift.opened is exist - process it [06:03:59]req_shift_opened [06:03:59]FM_GetShiftState [06:03:59]SAM_PROTO_GetShiftState [06:03:59]wFMCommunicate request_size=4 [06:03:59]MH_SAM_APDU [06:03:59]CAPDU: 80 13 01 00 [06:03:59]Write to MH i2c: E2 08 00 E5 6F 80 13 01 00 00 00 00 00 D1 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:59]Read from MH i2c: E2 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 0E 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: E2 0E 00 E5 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 94 [06:03:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:03:59]wFMCommunicate OK [06:03:59]SAM_PROTO_GetShiftState done [06:03:59]FM_GetShiftState done [06:03:59]req_shift_opened done [06:03:59]requested_item shift.open_date is exist - process it [06:03:59]req_shift_open_date [06:03:59]req_shift_open_date done [06:03:59]produce_requested_data done [06:03:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191272,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [06:03:59]process_action_free close_receipt [06:03:59]json_value_free [06:03:59]json_value_free done [06:03:59]process_json_proto returns [06:03:59]Send response to host [06:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191272,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [06:03:59]free response buf [06:03:59]execute_script done [06:03:59]execute_script returns [06:03:59]free content buf [06:03:59]Sock 10.Close socket [06:03:59]Sock 10.Thread stoped [06:04:02]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13: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:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17: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:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:41]accept exits with 8 [06:31:41]New connection [06:31:41]New thread 3066817892 created [06:31:41]Thread 3066961252 joined [06:31:41]Waiting for new connection... [06:31:41] Sock 8.Parse request [06:31:41]Sock 8.Check first char [06:31:41]Sock 8.First char is OK [06:31:41]request: POST /json_proto HTTP/1.0 [06:31:41]Method: POST [06:31:41]URL: /json_proto [06:31:41]Method is POST - this is cgi request [06:31:41]url: /json_proto [06:31:41]query_string will be loaded in cgi processing [06:31:41]execute_cgi json_proto POST (null) [06:31:41]execute_cgi path=json_proto method=POST [06:31:41]POST find Content-Length [06:31:41]Host: 172.17.63.131:8080 [06:31:41]Content-Length: 676 [06:31:41]Content-Type: application/json [06:31:41] [06:31:41]POST finish read [06:31:41]Found Content-Length = 676 [06:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:41]execute_script... [06:31: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)30564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:41]POST & json_proto [06:31:41]process_json_proto [06:31:41]json parsed OK: [06:31:41]protocol is kg_v1.0 [06:31:41]action value=close_receipt [06:31:41]process_action close_receipt [06:31:41]cmd_close_receipt [06:31:41]MH_GetDate [06:31:41]Write to MH i2c: F0 00 00 E6 6F 44 [06:31:41]Write i2c OK [06:31:41]MH_I2C_Read... [06:31:41]Read from MH i2c: F0 [06:31:41]MH_I2C_Read... [06:31:41]Read from MH i2c: F0 09 00 [06:31:41]MH_I2C_Read... [06:31:41]Read from MH i2c: F0 09 00 E6 6F 00 55 3B 1B 67 22 05 6E 64 58 [06:31:41]GetLastDocTimeStamp 1729836242 [06:31:41]current date 1729837909 [06:31:41]FM_GetShiftState [06:31:41]SAM_PROTO_GetShiftState [06:31:41]wFMCommunicate request_size=4 [06:31:41]MH_SAM_APDU [06:31:41]CAPDU: 80 13 01 00 [06:31:41]Write to MH i2c: E2 08 00 E7 6F 80 13 01 00 00 00 00 00 D3 [06:31:41]Write i2c OK [06:31:41]MH_I2C_Read... [06:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:41]Read from MH i2c: E2 [06:31:41]MH_I2C_Read... [06:31:41]Read from MH i2c: E2 0E 00 [06:31:41]MH_I2C_Read... [06:31:41]Read from MH i2c: E2 0E 00 E7 6F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 96 [06:31:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:31:41]wFMCommunicate OK [06:31:41]SAM_PROTO_GetShiftState done [06:31:41]FM_GetShiftState done [06:31:41]opened in 1729816399 [06:31:41]opened+sec_in_day 1729902799 [06:31:41]quantity*price = 40006 [06:31:41]sum+1 = 40007 [06:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 12 25.10.2024 06:31 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191273 ФПД: 72848728221936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T063149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191273&fm=72848728221936&tin=02508201610067®Number=0000000000091776&sum=40000 [06:31:42]StoreToDocumentArchive [06:31:42]shift 540 fd 191273 [06:31:42]save to /storage/0540/doc_00191273 [06:31:42]save last doc name /storage/0540/doc_00191273 to /storage/kkm_last_doc_name [06:31:42]save OK [06:31:42]Clear old archive folders... [06:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:42]tlvbuf is 0175F7E0 [06:31:42]SAM_PROTO_ClearQueue [06:31:42]wFMCommunicate request_size=4 [06:31:42]MH_SAM_APDU [06:31:42]CAPDU: 80 09 00 00 [06:31:42]Write to MH i2c: E2 08 00 F4 6F 80 09 00 00 00 00 00 00 D5 [06:31:42]Write i2c OK [06:31:42]MH_I2C_Read... [06:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:42]Read from MH i2c: E2 [06:31:42]MH_I2C_Read... [06:31:42]Read from MH i2c: E2 03 00 [06:31:42]MH_I2C_Read... [06:31:42]Read from MH i2c: E2 03 00 F4 6F 00 90 00 D7 [06:31:42]RAPDU: 90 00 [06:31:42]wFMCommunicate OK [06:31:42]SAM_PROTO_ClearQueue done [06:31:42]KKMCreateOFDPacket [06:31:42]OFDProtocolAddRootSTLVToBuf [06:31:42]FM_MakeSignedData [06:31:42]FM_MakeSignedData [06:31:42]SAM_PROTO_SignData [06:31:42]wFMCommunicate request_size=4 [06:31:42]MH_SAM_APDU [06:31:42]CAPDU: 80 0D 01 02 [06:31:42]Write to MH i2c: E2 08 00 F5 6F 80 0D 01 02 00 00 00 00 DD [06:31:42]Write i2c OK [06:31:42]MH_I2C_Read... [06:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:42]Read from MH i2c: E2 [06:31:42]MH_I2C_Read... [06:31:42]Read from MH i2c: E2 03 00 [06:31:42]MH_I2C_Read... [06:31:42]Read from MH i2c: E2 03 00 F5 6F 00 90 00 D8 [06:31:42]RAPDU: 90 00 [06:31:42]wFMCommunicate OK [06:31:42]wFMCommunicate request_size=255 [06:31:42]MH_SAM_APDU [06:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EB 02 00 35 04 06 00 42 [06:31:42]Write to MH i2c: E2 02 01 F6 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EB 02 00 35 04 06 00 42 00 00 D4 [06:31:42]Write i2c OK [06:31:42]MH_I2C_Read... [06:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:43]Read from MH i2c: E2 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 03 00 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 03 00 F6 6F 00 90 00 D9 [06:31:43]RAPDU: 90 00 [06:31:43]wFMCommunicate OK [06:31:43]wFMCommunicate request_size=10 [06:31:43]MH_SAM_APDU [06:31:43]CAPDU: 80 0D 02 02 05 41 6A 91 68 F0 [06:31:43]Write to MH i2c: E2 0D 00 F7 6F 80 0D 02 02 05 00 41 6A 91 68 F0 00 00 7E [06:31:43]Write i2c OK [06:31:43]MH_I2C_Read... [06:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:43]Read from MH i2c: E2 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 03 00 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 03 00 F7 6F 00 90 00 DA [06:31:43]RAPDU: 90 00 [06:31:43]wFMCommunicate OK [06:31:43]wFMCommunicate request_size=4 [06:31:43]MH_SAM_APDU [06:31:43]CAPDU: 80 0D 03 02 [06:31:43]Write to MH i2c: E2 08 00 F8 6F 80 0D 03 02 00 00 00 00 E2 [06:31:43]Write i2c OK [06:31:43]MH_I2C_Read... [06:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:43]Read from MH i2c: E2 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 0B 00 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 0B 00 F8 6F 00 16 7C 1D F7 86 55 E7 E5 90 00 30 [06:31:43]RAPDU: 16 7C 1D F7 86 55 E7 E5 90 00 [06:31:43]wFMCommunicate OK [06:31:43]SAM_PROTO_SignData done [06:31:43]FM_MakeSignedData done [06:31:43]CreateOFDProtocolMessage [06:31:43]wFMCommunicate request_size=4 [06:31:43]MH_SAM_APDU [06:31:43]CAPDU: 80 11 00 00 [06:31:43]Write to MH i2c: E2 08 00 F9 6F 80 11 00 00 00 00 00 00 E2 [06:31:43]Write i2c OK [06:31:43]MH_I2C_Read... [06:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:43]Read from MH i2c: E2 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 17 00 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: E2 17 00 F9 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [06:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:31:43]wFMCommunicate OK [06:31:43]CreateOFDProtocolMessage done [06:31:43]OFDSenderStorePacket 191273 [06:31:43]StoreOFDPacket docnum=191273 [06:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 29 07 01 5A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EB 02 00 35 04 06 00 42 41 6A 91 68 F0 16 7C 1D F7 86 55 E7 E5 [06:31:43]CheckFolder [06:31:43]dirname=/storage/ofd_packets [06:31:43]CheckFolder done [06:31:43]ProducePacketName [06:31:43]name=ofd_packets/00191273 [06:31:43]NVStorageSaveData ofd_packets/00191273 [06:31:43]File name is /storage/ofd_packets/00191273 [06:31:43]Write 301 bytes [06:31:43]NVStorageSaveData done [06:31:43]OFDSenderStorePacket done [06:31:43]KKMCreateOFDPacket done [06:31:43]NVStorageSaveData kkm_last_timestamp [06:31:43]File name is /storage/kkm_last_timestamp [06:31:43]Write 4 bytes [06:31:43]NVStorageSaveData done [06:31:43]ExternCall_PrintAddStr [06:31:43]wPrintStart [06:31:43]Write to MH i2c: 01 00 00 FA 6F 69 [06:31:43]Write i2c OK [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: 01 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: 01 07 00 [06:31:43]MH_I2C_Read... [06:31:43]Read from MH i2c: 01 07 00 FA 6F 00 00 00 00 00 FF 0F 7E [06:31:43]RasterBufferAndPrint [06:31:43]line Счет N : (1)30564 [06:31:43]line ИНН: 02508201610067 [06:31:43]line Контрольно-Кассовый Чек [06:31:43]line ПРОДАЖА [06:31:43]line ТРК (МРК, ГНК) : 12 [06:31:43]line Товар: 2710124130 [06:31:43]line Аи-92-К-5 [06:31:43]line 5.980 * 66.90 [06:31:43]line = 400.06 [06:31:43]line НДС 12% НСП 1% [06:31:43]line > о реализуемом товаре [06:31:43]line ОКРУГЛЕНИЕ: -0.06 [06:31:43]line ИТОГО: 400.00 [06:31:43]line Внесено: 400.00 [06:31:43]line СДАЧА: 0.00 [06:31:43]line НСП 1% : 3.54 [06:31:43]line НДС 12% : 42.48 [06:31:43]line Наличными: 400.00 [06:31:43]line Безнал.: 0.00 [06:31:43]line Место: АЗС № 170 "Партнер Нефть" [06:31:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:31:43]line СНО: Общий режим [06:31:43]line Чек 12 25.10.2024 06:31 [06:31:43]line Смена: 540 ФФД: 1.0 [06:31:43]line ЗНМ: 0300000110 [06:31:43]line РНМ: 0000000000091776 [06:31:43]line Версия ККМ: 001 [06:31:43]line ФМ: 0000000000871754 [06:31:43]line ФД: 191273 [06:31:43]line ФПД: 72848728221936 [06:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T063149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191273&fm=72848728221936&tin=02508201610067®Number=0000000000091776&sum=40000 [06:31:43]OFD Sender: Processing packet 191273 [packets to send 75, broken 74] [06:31:43]ProducePacketName [06:31:43]name=ofd_packets/00191273 [06:31:43]OFD Sender: To server: pG, [06:31:43]CommunicateWithHost lk.salyk.kg:30040 [06:31:43]ConnectInit lk.salyk.kg [06:31:43]written 0, free lines is 4095 [06:31:43]Connected sock=10 [06:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 29 07 01 5A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EB 02 00 35 04 06 00 42 41 6A 91 68 F0 16 7C 1D F7 86 55 E7 E5 [06:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 DA 47 00 4D 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EB 02 00 F4 03 04 00 24 E0 1A 67 B6 04 01 00 00 06 43 0F 06 B9 D1 46 B2 [06:31:43]CommunicateWithHost err = 0 [06:31:43]CheckOFDResponse [06:31:43]1017 (14) - 77093643461234 [06:31:43]1041 (16) - 0000000000871754 [06:31:43]1040 (4) - 191273 [06:31:43]1012 (4) - 25.10.2024 00:02 [06:31:43]1206 (1) - 0 [06:31:43]OFD Sender: Remove packet 191273 [06:31:43]ProducePacketName [06:31:43]name=ofd_packets/00191273 [06:31:43]NVStorageDeleteData [06:31:44]Write to MH i2c: 01 00 00 25 70 95 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: 01 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: 01 07 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: 01 07 00 25 70 00 00 00 00 00 93 0C 3B [06:31:44]RasterBufferAndPrint [06:31:44]line [06:31:44]line [06:31:44]line [06:31:44]line [06:31:44]line [06:31:44]written 0, free lines is 3225 [06:31:44]MH_Cut [06:31:44]Write to MH i2c: D1 01 00 2C 70 01 6E [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: D1 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: D1 01 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: D1 01 00 2C 70 00 6D [06:31:44]Write to MH i2c: 01 00 00 2D 70 9D [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]OFD Sender: No OFD packet to send [06:31:44]*** Cut start [06:31:44]*** Partial cut [06:31:44]*** CUTSNS_PIN = 1 [06:31:44]*** CUTSNS_PIN = 0 [06:31:45]*** Brake cut motor [06:31:45]Read from MH i2c: 01 [06:31:45]MH_I2C_Read... [06:31:45]*** Stop cut motor [06:31:45]*** Cut end [06:31:45]Read from MH i2c: 01 07 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: 01 07 00 2D 70 00 00 00 00 00 FF 0F B2 [06:31:45]process_action close_receipt done [06:31:45]requested_data is exist [06:31:45]produce_requested_data [06:31:45]requested_item fm.sn is exist - process it [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 11 00 00 [06:31:45]Write to MH i2c: E2 08 00 2E 70 80 11 00 00 00 00 00 00 18 [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 17 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 17 00 2E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [06:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:31:45]wFMCommunicate OK [06:31:45]requested_item fd.num is exist - process it [06:31:45]SAM_PROTO_GetFieldsCounters [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 13 00 00 [06:31:45]Write to MH i2c: E2 08 00 2F 70 80 13 00 00 00 00 00 00 1B [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 62 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 62 00 2F 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [06:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:45]wFMCommunicate OK [06:31:45]SAM_PROTO_GetFieldsCounters done [06:31:45]requested_item shift.num is exist - process it [06:31:45]requested_item shift.opened is exist - process it [06:31:45]req_shift_opened [06:31:45]FM_GetShiftState [06:31:45]SAM_PROTO_GetShiftState [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 13 01 00 [06:31:45]Write to MH i2c: E2 08 00 30 70 80 13 01 00 00 00 00 00 1D [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 0E 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 0E 00 30 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [06:31:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:31:45]wFMCommunicate OK [06:31:45]SAM_PROTO_GetShiftState done [06:31:45]FM_GetShiftState done [06:31:45]req_shift_opened done [06:31:45]requested_item shift.open_date is exist - process it [06:31:45]req_shift_open_date [06:31:45]req_shift_open_date done [06:31:45]produce_requested_data done [06:31:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191273,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [06:31:45]process_action_free close_receipt [06:31:45]json_value_free [06:31:45]json_value_free done [06:31:45]process_json_proto returns [06:31:45]Send response to host [06:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191273,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [06:31:45]free response buf [06:31:45]execute_script done [06:31:45]execute_script returns [06:31:45]free content buf [06:31:45]Sock 8.Close socket [06:31:45]Sock 8.Thread stoped [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:15]accept exits with 9 [06:33:15]New connection [06:33:15]New thread 3066961252 created [06:33:15]Thread 3066817892 joined [06:33:15]Waiting for new connection... [06:33:15] Sock 9.Parse request [06:33:15]Sock 9.Check first char [06:33:15]Sock 9.First char is OK [06:33:15]request: POST /json_proto HTTP/1.0 [06:33:15]Method: POST [06:33:15]URL: /json_proto [06:33:15]Method is POST - this is cgi request [06:33:15]url: /json_proto [06:33:15]query_string will be loaded in cgi processing [06:33:15]execute_cgi json_proto POST (null) [06:33:15]execute_cgi path=json_proto method=POST [06:33:15]POST find Content-Length [06:33:15]Host: 172.17.63.131:8080 [06:33:15]Content-Length: 676 [06:33:15]Content-Type: application/json [06:33:15] [06:33:15]POST finish read [06:33:15]Found Content-Length = 676 [06:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:15]execute_script... [06:33: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)30565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:15]POST & json_proto [06:33:15]process_json_proto [06:33:15]json parsed OK: [06:33:15]protocol is kg_v1.0 [06:33:15]action value=close_receipt [06:33:15]process_action close_receipt [06:33:15]cmd_close_receipt [06:33:15]MH_GetDate [06:33:15]Write to MH i2c: F0 00 00 31 70 90 [06:33:15]Write i2c OK [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: F0 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: F0 09 00 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: F0 09 00 31 70 00 B3 3B 1B 67 22 05 6E 64 02 [06:33:15]GetLastDocTimeStamp 1729837909 [06:33:15]current date 1729838003 [06:33:15]FM_GetShiftState [06:33:15]SAM_PROTO_GetShiftState [06:33:15]wFMCommunicate request_size=4 [06:33:15]MH_SAM_APDU [06:33:15]CAPDU: 80 13 01 00 [06:33:15]Write to MH i2c: E2 08 00 32 70 80 13 01 00 00 00 00 00 1F [06:33:15]Write i2c OK [06:33:15]MH_I2C_Read... [06:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:15]Read from MH i2c: E2 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: E2 0E 00 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: E2 0E 00 32 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E2 [06:33:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:33:15]wFMCommunicate OK [06:33:15]SAM_PROTO_GetShiftState done [06:33:15]FM_GetShiftState done [06:33:15]opened in 1729816399 [06:33:15]opened+sec_in_day 1729902799 [06:33:15]quantity*price = 50041 [06:33:15]sum+1 = 50042 [06:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 13 25.10.2024 06:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191274 ФПД: 165890411474009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T063323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191274&fm=165890411474009&tin=02508201610067®Number=0000000000091776&sum=50000 [06:33:16]StoreToDocumentArchive [06:33:16]shift 540 fd 191274 [06:33:16]save to /storage/0540/doc_00191274 [06:33:16]save last doc name /storage/0540/doc_00191274 to /storage/kkm_last_doc_name [06:33:16]save OK [06:33:16]Clear old archive folders... [06:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:33:16]tlvbuf is 017E2540 [06:33:16]SAM_PROTO_ClearQueue [06:33:16]wFMCommunicate request_size=4 [06:33:16]MH_SAM_APDU [06:33:16]CAPDU: 80 09 00 00 [06:33:16]Write to MH i2c: E2 08 00 3F 70 80 09 00 00 00 00 00 00 21 [06:33:16]Write i2c OK [06:33:16]MH_I2C_Read... [06:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:16]Read from MH i2c: E2 [06:33:16]MH_I2C_Read... [06:33:16]Read from MH i2c: E2 03 00 [06:33:16]MH_I2C_Read... [06:33:16]Read from MH i2c: E2 03 00 3F 70 00 90 00 23 [06:33:16]RAPDU: 90 00 [06:33:16]wFMCommunicate OK [06:33:16]SAM_PROTO_ClearQueue done [06:33:16]KKMCreateOFDPacket [06:33:16]OFDProtocolAddRootSTLVToBuf [06:33:16]FM_MakeSignedData [06:33:16]FM_MakeSignedData [06:33:16]SAM_PROTO_SignData [06:33:16]wFMCommunicate request_size=4 [06:33:16]MH_SAM_APDU [06:33:16]CAPDU: 80 0D 01 02 [06:33:16]Write to MH i2c: E2 08 00 40 70 80 0D 01 02 00 00 00 00 29 [06:33:16]Write i2c OK [06:33:16]MH_I2C_Read... [06:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:16]Read from MH i2c: E2 [06:33:16]MH_I2C_Read... [06:33:16]Read from MH i2c: E2 03 00 [06:33:16]MH_I2C_Read... [06:33:16]Read from MH i2c: E2 03 00 40 70 00 90 00 24 [06:33:16]RAPDU: 90 00 [06:33:16]wFMCommunicate OK [06:33:16]wFMCommunicate request_size=255 [06:33:16]MH_SAM_APDU [06:33:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B3 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EB 02 00 35 04 06 00 96 [06:33:16]Write to MH i2c: E2 02 01 41 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B3 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EB 02 00 35 04 06 00 96 00 00 05 [06:33:16]Write i2c OK [06:33:16]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 03 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 03 00 41 70 00 90 00 25 [06:33:17]RAPDU: 90 00 [06:33:17]wFMCommunicate OK [06:33:17]wFMCommunicate request_size=10 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 0D 02 02 05 E0 5F 0C 2C 59 [06:33:17]Write to MH i2c: E2 0D 00 42 70 80 0D 02 02 05 00 E0 5F 0C 2C 59 00 00 06 [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 03 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 03 00 42 70 00 90 00 26 [06:33:17]RAPDU: 90 00 [06:33:17]wFMCommunicate OK [06:33:17]wFMCommunicate request_size=4 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 0D 03 02 [06:33:17]Write to MH i2c: E2 08 00 43 70 80 0D 03 02 00 00 00 00 2E [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 0B 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 0B 00 43 70 00 10 D8 E5 7F 17 EF B8 F9 90 00 32 [06:33:17]RAPDU: 10 D8 E5 7F 17 EF B8 F9 90 00 [06:33:17]wFMCommunicate OK [06:33:17]SAM_PROTO_SignData done [06:33:17]FM_MakeSignedData done [06:33:17]CreateOFDProtocolMessage [06:33:17]wFMCommunicate request_size=4 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 11 00 00 [06:33:17]Write to MH i2c: E2 08 00 44 70 80 11 00 00 00 00 00 00 2E [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 17 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 17 00 44 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [06:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:33:17]wFMCommunicate OK [06:33:17]CreateOFDProtocolMessage done [06:33:17]OFDSenderStorePacket 191274 [06:33:17]StoreOFDPacket docnum=191274 [06:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 54 07 01 64 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B3 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EB 02 00 35 04 06 00 96 E0 5F 0C 2C 59 10 D8 E5 7F 17 EF B8 F9 [06:33:17]CheckFolder [06:33:17]dirname=/storage/ofd_packets [06:33:17]CheckFolder done [06:33:17]ProducePacketName [06:33:17]name=ofd_packets/00191274 [06:33:17]NVStorageSaveData ofd_packets/00191274 [06:33:17]File name is /storage/ofd_packets/00191274 [06:33:17]Write 301 bytes [06:33:17]NVStorageSaveData done [06:33:17]OFDSenderStorePacket done [06:33:17]KKMCreateOFDPacket done [06:33:17]NVStorageSaveData kkm_last_timestamp [06:33:17]File name is /storage/kkm_last_timestamp [06:33:17]Write 4 bytes [06:33:17]NVStorageSaveData done [06:33:17]ExternCall_PrintAddStr [06:33:17]wPrintStart [06:33:17]Write to MH i2c: 01 00 00 45 70 B5 [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: 01 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: 01 07 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: 01 07 00 45 70 00 00 00 00 00 FF 0F CA [06:33:17]RasterBufferAndPrint [06:33:17]line Счет N : (1)30565 [06:33:17]line ИНН: 02508201610067 [06:33:17]line Контрольно-Кассовый Чек [06:33:17]line ПРОДАЖА [06:33:17]line ТРК (МРК, ГНК) : 21 [06:33:17]line Товар: 2710124130 [06:33:17]line Аи-92-К-5 [06:33:17]line 7.480 * 66.90 [06:33:17]line = 500.41 [06:33:17]line НДС 12% НСП 1% [06:33:17]line > о реализуемом товаре [06:33:17]line ОКРУГЛЕНИЕ: -0.41 [06:33:17]line ИТОГО: 500.00 [06:33:17]line Внесено: 500.00 [06:33:17]line СДАЧА: 0.00 [06:33:17]line НСП 1% : 4.43 [06:33:17]line НДС 12% : 53.14 [06:33:17]line Наличными: 500.00 [06:33:17]line Безнал.: 0.00 [06:33:17]line Место: АЗС № 170 "Партнер Нефть" [06:33:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:33:17]line СНО: Общий режим [06:33:17]line Чек 13 25.10.2024 06:33 [06:33:17]line Смена: 540 ФФД: 1.0 [06:33:17]line ЗНМ: 0300000110 [06:33:17]line РНМ: 0000000000091776 [06:33:17]line Версия ККМ: 001 [06:33:17]line ФМ: 0000000000871754 [06:33:17]line ФД: 191274 [06:33:17]line ФПД: 165890411474009 [06:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T063323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191274&fm=165890411474009&tin=02508201610067®Number=0000000000091776&sum=50000 [06:33:17]OFD Sender: Processing packet 191274 [packets to send 75, broken 74] [06:33:17]ProducePacketName [06:33:17]name=ofd_packets/00191274 [06:33:17]OFD Sender: To server: pG, [06:33:17]CommunicateWithHost lk.salyk.kg:30040 [06:33:17]ConnectInit lk.salyk.kg [06:33:17]written 0, free lines is 4095 [06:33:17]Connected sock=10 [06:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 54 07 01 64 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B3 3B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EB 02 00 35 04 06 00 96 E0 5F 0C 2C 59 10 D8 E5 7F 17 EF B8 F9 [06:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 90 47 00 2F D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EB 02 00 F4 03 04 00 82 E0 1A 67 B6 04 01 00 00 73 38 EA 8C FF 3F 3C D0 [06:33:18]CommunicateWithHost err = 0 [06:33:18]CheckOFDResponse [06:33:18]1017 (14) - 77093643461234 [06:33:18]1041 (16) - 0000000000871754 [06:33:18]1040 (4) - 191274 [06:33:18]1012 (4) - 25.10.2024 00:04 [06:33:18]1206 (1) - 0 [06:33:18]OFD Sender: Remove packet 191274 [06:33:18]ProducePacketName [06:33:18]name=ofd_packets/00191274 [06:33:18]NVStorageDeleteData [06:33:18]Write to MH i2c: 01 00 00 70 70 E0 [06:33:18]Write i2c OK [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: 01 [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: 01 07 00 [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: 01 07 00 70 70 00 00 00 00 00 93 0C 86 [06:33:18]RasterBufferAndPrint [06:33:18]line [06:33:18]line [06:33:18]line [06:33:18]line [06:33:18]line [06:33:18]written 0, free lines is 3223 [06:33:18]MH_Cut [06:33:18]Write to MH i2c: D1 01 00 77 70 01 B9 [06:33:18]Write i2c OK [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: D1 [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: D1 01 00 [06:33:18]MH_I2C_Read... [06:33:18]Read from MH i2c: D1 01 00 77 70 00 B8 [06:33:18]Write to MH i2c: 01 00 00 78 70 E8 [06:33:18]Write i2c OK [06:33:18]MH_I2C_Read... [06:33:18]OFD Sender: No OFD packet to send [06:33:19]*** Cut start [06:33:19]*** Partial cut [06:33:19]*** CUTSNS_PIN = 1 [06:33:19]*** CUTSNS_PIN = 0 [06:33:19]*** Brake cut motor [06:33:19]Read from MH i2c: 01 [06:33:19]MH_I2C_Read... [06:33:19]*** Stop cut motor [06:33:19]*** Cut end [06:33:19]Read from MH i2c: 01 07 00 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: 01 07 00 78 70 00 00 00 00 00 FF 0F FD [06:33:19]process_action close_receipt done [06:33:19]requested_data is exist [06:33:19]produce_requested_data [06:33:19]requested_item fm.sn is exist - process it [06:33:19]wFMCommunicate request_size=4 [06:33:19]MH_SAM_APDU [06:33:19]CAPDU: 80 11 00 00 [06:33:19]Write to MH i2c: E2 08 00 79 70 80 11 00 00 00 00 00 00 63 [06:33:19]Write i2c OK [06:33:19]MH_I2C_Read... [06:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:19]Read from MH i2c: E2 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 17 00 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 17 00 79 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [06:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:33:19]wFMCommunicate OK [06:33:19]requested_item fd.num is exist - process it [06:33:19]SAM_PROTO_GetFieldsCounters [06:33:19]wFMCommunicate request_size=4 [06:33:19]MH_SAM_APDU [06:33:19]CAPDU: 80 13 00 00 [06:33:19]Write to MH i2c: E2 08 00 7A 70 80 13 00 00 00 00 00 00 66 [06:33:19]Write i2c OK [06:33:19]MH_I2C_Read... [06:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:19]Read from MH i2c: E2 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 62 00 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 62 00 7A 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [06:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:33:19]wFMCommunicate OK [06:33:19]SAM_PROTO_GetFieldsCounters done [06:33:19]requested_item shift.num is exist - process it [06:33:19]requested_item shift.opened is exist - process it [06:33:19]req_shift_opened [06:33:19]FM_GetShiftState [06:33:19]SAM_PROTO_GetShiftState [06:33:19]wFMCommunicate request_size=4 [06:33:19]MH_SAM_APDU [06:33:19]CAPDU: 80 13 01 00 [06:33:19]Write to MH i2c: E2 08 00 7B 70 80 13 01 00 00 00 00 00 68 [06:33:19]Write i2c OK [06:33:19]MH_I2C_Read... [06:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:19]Read from MH i2c: E2 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 0E 00 [06:33:19]MH_I2C_Read... [06:33:19]Read from MH i2c: E2 0E 00 7B 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2B [06:33:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [06:33:19]wFMCommunicate OK [06:33:19]SAM_PROTO_GetShiftState done [06:33:19]FM_GetShiftState done [06:33:19]req_shift_opened done [06:33:19]requested_item shift.open_date is exist - process it [06:33:19]req_shift_open_date [06:33:19]req_shift_open_date done [06:33:19]produce_requested_data done [06:33:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191274,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [06:33:19]process_action_free close_receipt [06:33:19]json_value_free [06:33:19]json_value_free done [06:33:19]process_json_proto returns [06:33:19]Send response to host [06:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191274,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [06:33:19]free response buf [06:33:19]execute_script done [06:33:19]execute_script returns [06:33:19]free content buf [06:33:19]Sock 9.Close socket [06:33:19]Sock 9.Thread stoped [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:06:59]accept exits with 8 [07:06:59]New connection [07:06:59]New thread 3066817892 created [07:06:59]Thread 3066961252 joined [07:06:59]Waiting for new connection... [07:06:59] Sock 8.Parse request [07:06:59]Sock 8.Check first char [07:06:59]Sock 8.First char is OK [07:06:59]request: POST /json_proto HTTP/1.0 [07:06:59]Method: POST [07:06:59]URL: /json_proto [07:06:59]Method is POST - this is cgi request [07:06:59]url: /json_proto [07:06:59]query_string will be loaded in cgi processing [07:06:59]execute_cgi json_proto POST (null) [07:06:59]execute_cgi path=json_proto method=POST [07:06:59]POST find Content-Length [07:06:59]Host: 172.17.63.131:8080 [07:06:59]Content-Length: 676 [07:06:59]Content-Type: application/json [07:06:59] [07:06:59]POST finish read [07:06:59]Found Content-Length = 676 [07:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:59]execute_script... [07:06: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)30566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:59]POST & json_proto [07:06:59]process_json_proto [07:06:59]json parsed OK: [07:06:59]protocol is kg_v1.0 [07:06:59]action value=close_receipt [07:06:59]process_action close_receipt [07:06:59]cmd_close_receipt [07:06:59]MH_GetDate [07:06:59]Write to MH i2c: F0 00 00 7C 70 DB [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: F0 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: F0 09 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: F0 09 00 7C 70 00 9B 43 1B 67 22 05 6E 64 3D [07:06:59]GetLastDocTimeStamp 1729838003 [07:06:59]current date 1729840027 [07:06:59]FM_GetShiftState [07:06:59]SAM_PROTO_GetShiftState [07:06:59]wFMCommunicate request_size=4 [07:06:59]MH_SAM_APDU [07:06:59]CAPDU: 80 13 01 00 [07:06:59]Write to MH i2c: E2 08 00 7D 70 80 13 01 00 00 00 00 00 6A [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:59]Read from MH i2c: E2 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 0E 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 0E 00 7D 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2D [07:06:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:06:59]wFMCommunicate OK [07:06:59]SAM_PROTO_GetShiftState done [07:06:59]FM_GetShiftState done [07:06:59]opened in 1729816399 [07:06:59]opened+sec_in_day 1729902799 [07:06:59]quantity*price = 50041 [07:06:59]sum+1 = 50042 [07:06:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 14 25.10.2024 07:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191275 ФПД: 247661547455256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T070707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191275&fm=247661547455256&tin=02508201610067®Number=0000000000091776&sum=50000 [07:07:01]StoreToDocumentArchive [07:07:01]shift 540 fd 191275 [07:07:01]save to /storage/0540/doc_00191275 [07:07:01]save last doc name /storage/0540/doc_00191275 to /storage/kkm_last_doc_name [07:07:01]save OK [07:07:01]Clear old archive folders... [07:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:01]tlvbuf is 017B8B10 [07:07:01]SAM_PROTO_ClearQueue [07:07:01]wFMCommunicate request_size=4 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 09 00 00 [07:07:01]Write to MH i2c: E2 08 00 8A 70 80 09 00 00 00 00 00 00 6C [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 8A 70 00 90 00 6E [07:07:01]RAPDU: 90 00 [07:07:01]wFMCommunicate OK [07:07:01]SAM_PROTO_ClearQueue done [07:07:01]KKMCreateOFDPacket [07:07:01]OFDProtocolAddRootSTLVToBuf [07:07:01]FM_MakeSignedData [07:07:01]FM_MakeSignedData [07:07:01]SAM_PROTO_SignData [07:07:01]wFMCommunicate request_size=4 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 0D 01 02 [07:07:01]Write to MH i2c: E2 08 00 8B 70 80 0D 01 02 00 00 00 00 74 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 8B 70 00 90 00 6F [07:07:01]RAPDU: 90 00 [07:07:01]wFMCommunicate OK [07:07:01]wFMCommunicate request_size=255 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 43 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EB 02 00 35 04 06 00 E1 [07:07:01]Write to MH i2c: E2 02 01 8C 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 43 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EB 02 00 35 04 06 00 E1 00 00 8D [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 8C 70 00 90 00 70 [07:07:01]RAPDU: 90 00 [07:07:01]wFMCommunicate OK [07:07:01]wFMCommunicate request_size=10 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 0D 02 02 05 3F 32 8F 83 18 [07:07:01]Write to MH i2c: E2 0D 00 8D 70 80 0D 02 02 05 00 3F 32 8F 83 18 00 00 1C [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 03 00 8D 70 00 90 00 71 [07:07:01]RAPDU: 90 00 [07:07:01]wFMCommunicate OK [07:07:01]wFMCommunicate request_size=4 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 0D 03 02 [07:07:01]Write to MH i2c: E2 08 00 8E 70 80 0D 03 02 00 00 00 00 79 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 0B 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 0B 00 8E 70 00 9A 40 C6 0C 62 7B 12 E3 90 00 F8 [07:07:01]RAPDU: 9A 40 C6 0C 62 7B 12 E3 90 00 [07:07:01]wFMCommunicate OK [07:07:01]SAM_PROTO_SignData done [07:07:01]FM_MakeSignedData done [07:07:01]CreateOFDProtocolMessage [07:07:01]wFMCommunicate request_size=4 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 11 00 00 [07:07:01]Write to MH i2c: E2 08 00 8F 70 80 11 00 00 00 00 00 00 79 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 17 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 17 00 8F 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [07:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:07:01]wFMCommunicate OK [07:07:01]CreateOFDProtocolMessage done [07:07:01]OFDSenderStorePacket 191275 [07:07:01]StoreOFDPacket docnum=191275 [07:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 36 07 01 97 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 43 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EB 02 00 35 04 06 00 E1 3F 32 8F 83 18 9A 40 C6 0C 62 7B 12 E3 [07:07:01]CheckFolder [07:07:01]dirname=/storage/ofd_packets [07:07:01]CheckFolder done [07:07:01]ProducePacketName [07:07:01]name=ofd_packets/00191275 [07:07:01]NVStorageSaveData ofd_packets/00191275 [07:07:01]File name is /storage/ofd_packets/00191275 [07:07:01]Write 301 bytes [07:07:01]NVStorageSaveData done [07:07:01]OFDSenderStorePacket done [07:07:01]KKMCreateOFDPacket done [07:07:01]NVStorageSaveData kkm_last_timestamp [07:07:01]File name is /storage/kkm_last_timestamp [07:07:01]Write 4 bytes [07:07:01]NVStorageSaveData done [07:07:01]ExternCall_PrintAddStr [07:07:01]wPrintStart [07:07:01]Write to MH i2c: 01 00 00 90 70 00 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 90 70 00 00 00 00 00 FF 0F 15 [07:07:01]RasterBufferAndPrint [07:07:01]line Счет N : (1)30566 [07:07:01]line ИНН: 02508201610067 [07:07:01]line Контрольно-Кассовый Чек [07:07:01]line ПРОДАЖА [07:07:01]line ТРК (МРК, ГНК) : 21 [07:07:01]line Товар: 2710124130 [07:07:01]line Аи-92-К-5 [07:07:01]line 7.480 * 66.90 [07:07:01]line = 500.41 [07:07:01]line НДС 12% НСП 1% [07:07:01]line > о реализуемом товаре [07:07:01]line ОКРУГЛЕНИЕ: -0.41 [07:07:01]line ИТОГО: 500.00 [07:07:01]line Внесено: 500.00 [07:07:01]line СДАЧА: 0.00 [07:07:01]line НСП 1% : 4.43 [07:07:01]line НДС 12% : 53.14 [07:07:01]line Наличными: 500.00 [07:07:01]line Безнал.: 0.00 [07:07:01]line Место: АЗС № 170 "Партнер Нефть" [07:07:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:07:01]line СНО: Общий режим [07:07:01]line Чек 14 25.10.2024 07:07 [07:07:01]line Смена: 540 ФФД: 1.0 [07:07:01]line ЗНМ: 0300000110 [07:07:01]line РНМ: 0000000000091776 [07:07:01]line Версия ККМ: 001 [07:07:01]line ФМ: 0000000000871754 [07:07:01]line ФД: 191275 [07:07:01]line ФПД: 247661547455256 [07:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T070707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191275&fm=247661547455256&tin=02508201610067®Number=0000000000091776&sum=50000 [07:07:01]OFD Sender: Processing packet 191275 [packets to send 75, broken 74] [07:07:01]ProducePacketName [07:07:01]name=ofd_packets/00191275 [07:07:01]OFD Sender: To server: pG, [07:07:01]CommunicateWithHost lk.salyk.kg:30040 [07:07:01]ConnectInit lk.salyk.kg [07:07:01]written 0, free lines is 4095 [07:07:02]Connected sock=10 [07:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 36 07 01 97 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 43 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EB 02 00 35 04 06 00 E1 3F 32 8F 83 18 9A 40 C6 0C 62 7B 12 E3 [07:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B9 28 47 00 15 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EB 02 00 F4 03 04 00 6B E8 1A 67 B6 04 01 00 00 9F 5B 93 2D E5 1F 51 0B [07:07:02]CommunicateWithHost err = 0 [07:07:02]CheckOFDResponse [07:07:02]1017 (14) - 77093643461234 [07:07:02]1041 (16) - 0000000000871754 [07:07:02]1040 (4) - 191275 [07:07:02]1012 (4) - 25.10.2024 00:38 [07:07:02]1206 (1) - 0 [07:07:02]OFD Sender: Remove packet 191275 [07:07:02]ProducePacketName [07:07:02]name=ofd_packets/00191275 [07:07:02]NVStorageDeleteData [07:07:02]Write to MH i2c: 01 00 00 BB 70 2B [07:07:02]Write i2c OK [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: 01 [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: 01 07 00 [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: 01 07 00 BB 70 00 00 00 00 00 99 0C D7 [07:07:02]RasterBufferAndPrint [07:07:02]line [07:07:02]line [07:07:02]line [07:07:02]line [07:07:02]line [07:07:02]written 0, free lines is 3232 [07:07:02]MH_Cut [07:07:02]Write to MH i2c: D1 01 00 C2 70 01 04 [07:07:02]Write i2c OK [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: D1 [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: D1 01 00 [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: D1 01 00 C2 70 00 03 [07:07:02]Write to MH i2c: 01 00 00 C3 70 33 [07:07:02]Write i2c OK [07:07:02]MH_I2C_Read... [07:07:02]OFD Sender: No OFD packet to send [07:07:03]*** Cut start [07:07:03]*** Partial cut [07:07:03]*** CUTSNS_PIN = 1 [07:07:03]*** CUTSNS_PIN = 0 [07:07:03]*** Brake cut motor [07:07:03]Read from MH i2c: 01 [07:07:03]MH_I2C_Read... [07:07:03]*** Stop cut motor [07:07:03]*** Cut end [07:07:03]Read from MH i2c: 01 07 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: 01 07 00 C3 70 00 00 00 00 00 FF 0F 48 [07:07:03]process_action close_receipt done [07:07:03]requested_data is exist [07:07:03]produce_requested_data [07:07:03]requested_item fm.sn is exist - process it [07:07:03]wFMCommunicate request_size=4 [07:07:03]MH_SAM_APDU [07:07:03]CAPDU: 80 11 00 00 [07:07:03]Write to MH i2c: E2 08 00 C4 70 80 11 00 00 00 00 00 00 AE [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:03]Read from MH i2c: E2 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 17 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 17 00 C4 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [07:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:07:03]wFMCommunicate OK [07:07:03]requested_item fd.num is exist - process it [07:07:03]SAM_PROTO_GetFieldsCounters [07:07:03]wFMCommunicate request_size=4 [07:07:03]MH_SAM_APDU [07:07:03]CAPDU: 80 13 00 00 [07:07:03]Write to MH i2c: E2 08 00 C5 70 80 13 00 00 00 00 00 00 B1 [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 62 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 62 00 C5 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [07:07:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:04]wFMCommunicate OK [07:07:04]SAM_PROTO_GetFieldsCounters done [07:07:04]requested_item shift.num is exist - process it [07:07:04]requested_item shift.opened is exist - process it [07:07:04]req_shift_opened [07:07:04]FM_GetShiftState [07:07:04]SAM_PROTO_GetShiftState [07:07:04]wFMCommunicate request_size=4 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 13 01 00 [07:07:04]Write to MH i2c: E2 08 00 C6 70 80 13 01 00 00 00 00 00 B3 [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 0E 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 0E 00 C6 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 76 [07:07:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:07:04]wFMCommunicate OK [07:07:04]SAM_PROTO_GetShiftState done [07:07:04]FM_GetShiftState done [07:07:04]req_shift_opened done [07:07:04]requested_item shift.open_date is exist - process it [07:07:04]req_shift_open_date [07:07:04]req_shift_open_date done [07:07:04]produce_requested_data done [07:07:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191275,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:07:04]process_action_free close_receipt [07:07:04]json_value_free [07:07:04]json_value_free done [07:07:04]process_json_proto returns [07:07:04]Send response to host [07:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191275,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:07:04]free response buf [07:07:04]execute_script done [07:07:04]execute_script returns [07:07:04]free content buf [07:07:04]Sock 8.Close socket [07:07:04]Sock 8.Thread stoped [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:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:24]accept exits with 9 [07:16:24]New connection [07:16:24]New thread 3066961252 created [07:16:24]Thread 3066817892 joined [07:16:24]Waiting for new connection... [07:16:24] Sock 9.Parse request [07:16:24]Sock 9.Check first char [07:16:24]Sock 9.First char is OK [07:16:24]request: POST /json_proto HTTP/1.0 [07:16:24]Method: POST [07:16:24]URL: /json_proto [07:16:24]Method is POST - this is cgi request [07:16:24]url: /json_proto [07:16:24]query_string will be loaded in cgi processing [07:16:24]execute_cgi json_proto POST (null) [07:16:24]execute_cgi path=json_proto method=POST [07:16:24]POST find Content-Length [07:16:24]Host: 172.17.63.131:8080 [07:16:24]Content-Length: 681 [07:16:24]Content-Type: application/json [07:16:24] [07:16:24]POST finish read [07:16:24]Found Content-Length = 681 [07:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:24]execute_script... [07:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:24]POST & json_proto [07:16:24]process_json_proto [07:16:24]json parsed OK: [07:16:24]protocol is kg_v1.0 [07:16:24]action value=close_receipt [07:16:24]process_action close_receipt [07:16:24]cmd_close_receipt [07:16:24]MH_GetDate [07:16:24]Write to MH i2c: F0 00 00 C7 70 26 [07:16:24]Write i2c OK [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: F0 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: F0 09 00 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: F0 09 00 C7 70 00 D0 45 1B 67 22 05 6E 64 BF [07:16:24]GetLastDocTimeStamp 1729840027 [07:16:24]current date 1729840592 [07:16:24]FM_GetShiftState [07:16:24]SAM_PROTO_GetShiftState [07:16:24]wFMCommunicate request_size=4 [07:16:24]MH_SAM_APDU [07:16:24]CAPDU: 80 13 01 00 [07:16:24]Write to MH i2c: E2 08 00 C8 70 80 13 01 00 00 00 00 00 B5 [07:16:24]Write i2c OK [07:16:24]MH_I2C_Read... [07:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:24]Read from MH i2c: E2 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: E2 0E 00 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: E2 0E 00 C8 70 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 78 [07:16:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:16:24]wFMCommunicate OK [07:16:24]SAM_PROTO_GetShiftState done [07:16:24]FM_GetShiftState done [07:16:24]opened in 1729816399 [07:16:24]opened+sec_in_day 1729902799 [07:16:24]quantity*price = 200031 [07:16:24]sum+1 = 200032 [07:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 15 25.10.2024 07:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191276 ФПД: 224499911719259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T071632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191276&fm=224499911719259&tin=02508201610067®Number=0000000000091776&sum=200000 [07:16:25]StoreToDocumentArchive [07:16:25]shift 540 fd 191276 [07:16:25]save to /storage/0540/doc_00191276 [07:16:25]save last doc name /storage/0540/doc_00191276 to /storage/kkm_last_doc_name [07:16:25]save OK [07:16:25]Clear old archive folders... [07:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:25]tlvbuf is 0167A320 [07:16:25]SAM_PROTO_ClearQueue [07:16:25]wFMCommunicate request_size=4 [07:16:25]MH_SAM_APDU [07:16:25]CAPDU: 80 09 00 00 [07:16:25]Write to MH i2c: E2 08 00 D5 70 80 09 00 00 00 00 00 00 B7 [07:16:25]Write i2c OK [07:16:25]MH_I2C_Read... [07:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:25]Read from MH i2c: E2 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 03 00 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 03 00 D5 70 00 90 00 B9 [07:16:25]RAPDU: 90 00 [07:16:25]wFMCommunicate OK [07:16:25]SAM_PROTO_ClearQueue done [07:16:25]KKMCreateOFDPacket [07:16:25]OFDProtocolAddRootSTLVToBuf [07:16:25]FM_MakeSignedData [07:16:25]FM_MakeSignedData [07:16:25]SAM_PROTO_SignData [07:16:25]wFMCommunicate request_size=4 [07:16:25]MH_SAM_APDU [07:16:25]CAPDU: 80 0D 01 02 [07:16:25]Write to MH i2c: E2 08 00 D6 70 80 0D 01 02 00 00 00 00 BF [07:16:25]Write i2c OK [07:16:25]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 D6 70 00 90 00 BA [07:16:26]RAPDU: 90 00 [07:16:26]wFMCommunicate OK [07:16:26]wFMCommunicate request_size=255 [07:16:26]MH_SAM_APDU [07:16:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D0 45 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EB 02 00 35 04 06 00 CC [07:16:26]Write to MH i2c: E2 02 01 D7 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D0 45 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EB 02 00 35 04 06 00 CC 00 00 3E [07:16:26]Write i2c OK [07:16:26]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 D7 70 00 90 00 BB [07:16:26]RAPDU: 90 00 [07:16:26]wFMCommunicate OK [07:16:26]wFMCommunicate request_size=10 [07:16:26]MH_SAM_APDU [07:16:26]CAPDU: 80 0D 02 02 05 2E 75 7D 79 5B [07:16:26]Write to MH i2c: E2 0D 00 D8 70 80 0D 02 02 05 00 2E 75 7D 79 5B 00 00 C0 [07:16:26]Write i2c OK [07:16:26]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 03 00 D8 70 00 90 00 BC [07:16:26]RAPDU: 90 00 [07:16:26]wFMCommunicate OK [07:16:26]wFMCommunicate request_size=4 [07:16:26]MH_SAM_APDU [07:16:26]CAPDU: 80 0D 03 02 [07:16:26]Write to MH i2c: E2 08 00 D9 70 80 0D 03 02 00 00 00 00 C4 [07:16:26]Write i2c OK [07:16:26]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 0B 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 0B 00 D9 70 00 17 50 0D B1 60 45 BE 32 90 00 7F [07:16:26]RAPDU: 17 50 0D B1 60 45 BE 32 90 00 [07:16:26]wFMCommunicate OK [07:16:26]SAM_PROTO_SignData done [07:16:26]FM_MakeSignedData done [07:16:26]CreateOFDProtocolMessage [07:16:26]wFMCommunicate request_size=4 [07:16:26]MH_SAM_APDU [07:16:26]CAPDU: 80 11 00 00 [07:16:26]Write to MH i2c: E2 08 00 DA 70 80 11 00 00 00 00 00 00 C4 [07:16:26]Write i2c OK [07:16:26]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 17 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 17 00 DA 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [07:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:16:26]wFMCommunicate OK [07:16:26]CreateOFDProtocolMessage done [07:16:26]OFDSenderStorePacket 191276 [07:16:26]StoreOFDPacket docnum=191276 [07:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 3D 07 01 0F 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D0 45 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EB 02 00 35 04 06 00 CC 2E 75 7D 79 5B 17 50 0D B1 60 45 BE 32 [07:16:26]CheckFolder [07:16:26]dirname=/storage/ofd_packets [07:16:26]CheckFolder done [07:16:26]ProducePacketName [07:16:26]name=ofd_packets/00191276 [07:16:26]NVStorageSaveData ofd_packets/00191276 [07:16:26]File name is /storage/ofd_packets/00191276 [07:16:26]Write 301 bytes [07:16:26]NVStorageSaveData done [07:16:26]OFDSenderStorePacket done [07:16:26]KKMCreateOFDPacket done [07:16:26]NVStorageSaveData kkm_last_timestamp [07:16:26]File name is /storage/kkm_last_timestamp [07:16:26]Write 4 bytes [07:16:26]NVStorageSaveData done [07:16:26]ExternCall_PrintAddStr [07:16:26]wPrintStart [07:16:26]Write to MH i2c: 01 00 00 DB 70 4B [07:16:26]Write i2c OK [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: 01 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: 01 07 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: 01 07 00 DB 70 00 00 00 00 00 FF 0F 60 [07:16:26]RasterBufferAndPrint [07:16:26]line Счет N : (1)30567 [07:16:26]line ИНН: 02508201610067 [07:16:26]line Контрольно-Кассовый Чек [07:16:26]line ПРОДАЖА [07:16:26]line ТРК (МРК, ГНК) : 12 [07:16:26]line Товар: 2710124130 [07:16:26]line Аи-92-К-5 [07:16:26]line 29.900 * 66.90 [07:16:26]line = 2000.31 [07:16:26]line НДС 12% НСП 1% [07:16:26]line > о реализуемом товаре [07:16:26]line ОКРУГЛЕНИЕ: -0.31 [07:16:26]line ИТОГО: 2000.00 [07:16:26]line Внесено: 2000.00 [07:16:26]line СДАЧА: 0.00 [07:16:26]line НСП 1% : 17.70 [07:16:26]line НДС 12% : 212.42 [07:16:26]line Наличными: 2000.00 [07:16:26]line Безнал.: 0.00 [07:16:26]line Место: АЗС № 170 "Партнер Нефть" [07:16:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:16:26]line СНО: Общий режим [07:16:26]line Чек 15 25.10.2024 07:16 [07:16:26]line Смена: 540 ФФД: 1.0 [07:16:26]line ЗНМ: 0300000110 [07:16:26]line РНМ: 0000000000091776 [07:16:26]line Версия ККМ: 001 [07:16:26]line ФМ: 0000000000871754 [07:16:26]line ФД: 191276 [07:16:26]line ФПД: 224499911719259 [07:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T071632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191276&fm=224499911719259&tin=02508201610067®Number=0000000000091776&sum=200000 [07:16:26]OFD Sender: Processing packet 191276 [packets to send 75, broken 74] [07:16:26]ProducePacketName [07:16:26]name=ofd_packets/00191276 [07:16:26]OFD Sender: To server: pG, [07:16:26]CommunicateWithHost lk.salyk.kg:30040 [07:16:26]ConnectInit lk.salyk.kg [07:16:26]written 0, free lines is 4095 [07:16:26]Connected sock=11 [07:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 3D 07 01 0F 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D0 45 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EB 02 00 35 04 06 00 CC 2E 75 7D 79 5B 17 50 0D B1 60 45 BE 32 [07:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 7A 47 00 8C CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EB 02 00 F4 03 04 00 9F EA 1A 67 B6 04 01 00 00 8E F0 6F 5C 57 06 30 68 [07:16:27]CommunicateWithHost err = 0 [07:16:27]CheckOFDResponse [07:16:27]1017 (14) - 77093643461234 [07:16:27]1041 (16) - 0000000000871754 [07:16:27]1040 (4) - 191276 [07:16:27]1012 (4) - 25.10.2024 00:47 [07:16:27]1206 (1) - 0 [07:16:27]OFD Sender: Remove packet 191276 [07:16:27]ProducePacketName [07:16:27]name=ofd_packets/00191276 [07:16:27]NVStorageDeleteData [07:16:27]Write to MH i2c: 01 00 00 06 71 77 [07:16:27]Write i2c OK [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: 01 [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: 01 07 00 [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: 01 07 00 06 71 00 00 00 00 00 99 0C 23 [07:16:27]RasterBufferAndPrint [07:16:27]line [07:16:27]line [07:16:27]line [07:16:27]line [07:16:27]line [07:16:27]written 0, free lines is 3229 [07:16:27]MH_Cut [07:16:27]Write to MH i2c: D1 01 00 0D 71 01 50 [07:16:27]Write i2c OK [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: D1 [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: D1 01 00 [07:16:27]MH_I2C_Read... [07:16:27]Read from MH i2c: D1 01 00 0D 71 00 4F [07:16:27]Write to MH i2c: 01 00 00 0E 71 7F [07:16:27]Write i2c OK [07:16:27]MH_I2C_Read... [07:16:27]OFD Sender: No OFD packet to send [07:16:28]*** Cut start [07:16:28]*** Partial cut [07:16:28]*** CUTSNS_PIN = 1 [07:16:28]*** CUTSNS_PIN = 0 [07:16:28]*** Brake cut motor [07:16:28]Read from MH i2c: 01 [07:16:28]MH_I2C_Read... [07:16:28]*** Stop cut motor [07:16:28]*** Cut end [07:16:28]Read from MH i2c: 01 07 00 [07:16:28]MH_I2C_Read... [07:16:28]Read from MH i2c: 01 07 00 0E 71 00 00 00 00 00 FF 0F 94 [07:16:28]process_action close_receipt done [07:16:28]requested_data is exist [07:16:28]produce_requested_data [07:16:28]requested_item fm.sn is exist - process it [07:16:28]wFMCommunicate request_size=4 [07:16:28]MH_SAM_APDU [07:16:28]CAPDU: 80 11 00 00 [07:16:28]Write to MH i2c: E2 08 00 0F 71 80 11 00 00 00 00 00 00 FA [07:16:28]Write i2c OK [07:16:28]MH_I2C_Read... [07:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:28]Read from MH i2c: E2 [07:16:28]MH_I2C_Read... [07:16:28]Read from MH i2c: E2 17 00 [07:16:28]MH_I2C_Read... [07:16:28]Read from MH i2c: E2 17 00 0F 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [07:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:16:28]wFMCommunicate OK [07:16:28]requested_item fd.num is exist - process it [07:16:28]SAM_PROTO_GetFieldsCounters [07:16:28]wFMCommunicate request_size=4 [07:16:28]MH_SAM_APDU [07:16:28]CAPDU: 80 13 00 00 [07:16:28]Write to MH i2c: E2 08 00 10 71 80 13 00 00 00 00 00 00 FD [07:16:28]Write i2c OK [07:16:28]MH_I2C_Read... [07:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:28]Read from MH i2c: E2 [07:16:28]MH_I2C_Read... [07:16:28]Read from MH i2c: E2 62 00 [07:16:28]MH_I2C_Read... [07:16:28]Read from MH i2c: E2 62 00 10 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [07:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:28]wFMCommunicate OK [07:16:28]SAM_PROTO_GetFieldsCounters done [07:16:28]requested_item shift.num is exist - process it [07:16:28]requested_item shift.opened is exist - process it [07:16:28]req_shift_opened [07:16:28]FM_GetShiftState [07:16:28]SAM_PROTO_GetShiftState [07:16:28]wFMCommunicate request_size=4 [07:16:28]MH_SAM_APDU [07:16:28]CAPDU: 80 13 01 00 [07:16:29]Write to MH i2c: E2 08 00 11 71 80 13 01 00 00 00 00 00 FF [07:16:29]Write i2c OK [07:16:29]MH_I2C_Read... [07:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:29]Read from MH i2c: E2 [07:16:29]MH_I2C_Read... [07:16:29]Read from MH i2c: E2 0E 00 [07:16:29]MH_I2C_Read... [07:16:29]Read from MH i2c: E2 0E 00 11 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C2 [07:16:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:16:29]wFMCommunicate OK [07:16:29]SAM_PROTO_GetShiftState done [07:16:29]FM_GetShiftState done [07:16:29]req_shift_opened done [07:16:29]requested_item shift.open_date is exist - process it [07:16:29]req_shift_open_date [07:16:29]req_shift_open_date done [07:16:29]produce_requested_data done [07:16:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191276,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:16:29]process_action_free close_receipt [07:16:29]json_value_free [07:16:29]json_value_free done [07:16:29]process_json_proto returns [07:16:29]Send response to host [07:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191276,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:16:29]free response buf [07:16:29]execute_script done [07:16:29]execute_script returns [07:16:29]free content buf [07:16:29]Sock 9.Close socket [07:16:29]Sock 9.Thread stoped [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:39]accept exits with 8 [07:19:39]New connection [07:19:39]New thread 3066817892 created [07:19:39]Thread 3066961252 joined [07:19:39]Waiting for new connection... [07:19:39] Sock 8.Parse request [07:19:39]Sock 8.Check first char [07:19:39]Sock 8.First char is OK [07:19:39]request: POST /json_proto HTTP/1.0 [07:19:39]Method: POST [07:19:39]URL: /json_proto [07:19:39]Method is POST - this is cgi request [07:19:39]url: /json_proto [07:19:39]query_string will be loaded in cgi processing [07:19:39]execute_cgi json_proto POST (null) [07:19:39]execute_cgi path=json_proto method=POST [07:19:39]POST find Content-Length [07:19:39]Host: 172.17.63.131:8080 [07:19:39]Content-Length: 676 [07:19:39]Content-Type: application/json [07:19:39] [07:19:39]POST finish read [07:19:39]Found Content-Length = 676 [07:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:39]execute_script... [07:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:39]POST & json_proto [07:19:39]process_json_proto [07:19:39]json parsed OK: [07:19:39]protocol is kg_v1.0 [07:19:39]action value=close_receipt [07:19:39]process_action close_receipt [07:19:39]cmd_close_receipt [07:19:39]MH_GetDate [07:19:39]Write to MH i2c: F0 00 00 12 71 72 [07:19:39]Write i2c OK [07:19:39]MH_I2C_Read... [07:19:39]Read from MH i2c: F0 [07:19:39]MH_I2C_Read... [07:19:39]Read from MH i2c: F0 09 00 [07:19:39]MH_I2C_Read... [07:19:39]Read from MH i2c: F0 09 00 12 71 00 93 46 1B 67 22 05 6E 64 CF [07:19:39]GetLastDocTimeStamp 1729840592 [07:19:39]current date 1729840787 [07:19:39]FM_GetShiftState [07:19:39]SAM_PROTO_GetShiftState [07:19:39]wFMCommunicate request_size=4 [07:19:39]MH_SAM_APDU [07:19:39]CAPDU: 80 13 01 00 [07:19:39]Write to MH i2c: E2 08 00 13 71 80 13 01 00 00 00 00 00 01 [07:19:39]Write i2c OK [07:19:39]MH_I2C_Read... [07:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:39]Read from MH i2c: E2 [07:19:39]MH_I2C_Read... [07:19:39]Read from MH i2c: E2 0E 00 [07:19:39]MH_I2C_Read... [07:19:39]Read from MH i2c: E2 0E 00 13 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C4 [07:19:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:19:39]wFMCommunicate OK [07:19:39]SAM_PROTO_GetShiftState done [07:19:39]FM_GetShiftState done [07:19:39]opened in 1729816399 [07:19:39]opened+sec_in_day 1729902799 [07:19:39]quantity*price = 50041 [07:19:39]sum+1 = 50042 [07:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 16 25.10.2024 07:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191277 ФПД: 23528951076555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T071947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191277&fm=23528951076555&tin=02508201610067®Number=0000000000091776&sum=50000 [07:19:40]StoreToDocumentArchive [07:19:40]shift 540 fd 191277 [07:19:40]save to /storage/0540/doc_00191277 [07:19:40]save last doc name /storage/0540/doc_00191277 to /storage/kkm_last_doc_name [07:19:40]save OK [07:19:40]Clear old archive folders... [07:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:40]tlvbuf is 0176EB90 [07:19:40]SAM_PROTO_ClearQueue [07:19:40]wFMCommunicate request_size=4 [07:19:40]MH_SAM_APDU [07:19:40]CAPDU: 80 09 00 00 [07:19:40]Write to MH i2c: E2 08 00 20 71 80 09 00 00 00 00 00 00 03 [07:19:40]Write i2c OK [07:19:40]MH_I2C_Read... [07:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:40]Read from MH i2c: E2 [07:19:40]MH_I2C_Read... [07:19:40]Read from MH i2c: E2 03 00 [07:19:40]MH_I2C_Read... [07:19:40]Read from MH i2c: E2 03 00 20 71 00 90 00 05 [07:19:40]RAPDU: 90 00 [07:19:40]wFMCommunicate OK [07:19:40]SAM_PROTO_ClearQueue done [07:19:40]KKMCreateOFDPacket [07:19:40]OFDProtocolAddRootSTLVToBuf [07:19:40]FM_MakeSignedData [07:19:40]FM_MakeSignedData [07:19:40]SAM_PROTO_SignData [07:19:40]wFMCommunicate request_size=4 [07:19:40]MH_SAM_APDU [07:19:40]CAPDU: 80 0D 01 02 [07:19:40]Write to MH i2c: E2 08 00 21 71 80 0D 01 02 00 00 00 00 0B [07:19:40]Write i2c OK [07:19:40]MH_I2C_Read... [07:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:40]Read from MH i2c: E2 [07:19:40]MH_I2C_Read... [07:19:40]Read from MH i2c: E2 03 00 [07:19:40]MH_I2C_Read... [07:19:40]Read from MH i2c: E2 03 00 21 71 00 90 00 06 [07:19:40]RAPDU: 90 00 [07:19:40]wFMCommunicate OK [07:19:40]wFMCommunicate request_size=255 [07:19:40]MH_SAM_APDU [07:19:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 46 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EB 02 00 35 04 06 00 15 [07:19:40]Write to MH i2c: E2 02 01 22 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 46 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EB 02 00 35 04 06 00 15 00 00 57 [07:19:40]Write i2c OK [07:19:40]MH_I2C_Read... [07:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:41]Read from MH i2c: E2 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 03 00 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 03 00 22 71 00 90 00 07 [07:19:41]RAPDU: 90 00 [07:19:41]wFMCommunicate OK [07:19:41]wFMCommunicate request_size=10 [07:19:41]MH_SAM_APDU [07:19:41]CAPDU: 80 0D 02 02 05 66 42 C5 56 CB [07:19:41]Write to MH i2c: E2 0D 00 23 71 80 0D 02 02 05 00 66 42 C5 56 CB 00 00 A6 [07:19:41]Write i2c OK [07:19:41]MH_I2C_Read... [07:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:41]Read from MH i2c: E2 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 03 00 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 03 00 23 71 00 90 00 08 [07:19:41]RAPDU: 90 00 [07:19:41]wFMCommunicate OK [07:19:41]wFMCommunicate request_size=4 [07:19:41]MH_SAM_APDU [07:19:41]CAPDU: 80 0D 03 02 [07:19:41]Write to MH i2c: E2 08 00 24 71 80 0D 03 02 00 00 00 00 10 [07:19:41]Write i2c OK [07:19:41]MH_I2C_Read... [07:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:41]Read from MH i2c: E2 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 0B 00 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 0B 00 24 71 00 ED 2C 5B B5 14 43 87 A7 90 00 BF [07:19:41]RAPDU: ED 2C 5B B5 14 43 87 A7 90 00 [07:19:41]wFMCommunicate OK [07:19:41]SAM_PROTO_SignData done [07:19:41]FM_MakeSignedData done [07:19:41]CreateOFDProtocolMessage [07:19:41]wFMCommunicate request_size=4 [07:19:41]MH_SAM_APDU [07:19:41]CAPDU: 80 11 00 00 [07:19:41]Write to MH i2c: E2 08 00 25 71 80 11 00 00 00 00 00 00 10 [07:19:41]Write i2c OK [07:19:41]MH_I2C_Read... [07:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:41]Read from MH i2c: E2 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 17 00 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: E2 17 00 25 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [07:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:19:41]wFMCommunicate OK [07:19:41]CreateOFDProtocolMessage done [07:19:41]OFDSenderStorePacket 191277 [07:19:41]StoreOFDPacket docnum=191277 [07:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 7D 07 01 10 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 46 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EB 02 00 35 04 06 00 15 66 42 C5 56 CB ED 2C 5B B5 14 43 87 A7 [07:19:41]CheckFolder [07:19:41]dirname=/storage/ofd_packets [07:19:41]CheckFolder done [07:19:41]ProducePacketName [07:19:41]name=ofd_packets/00191277 [07:19:41]NVStorageSaveData ofd_packets/00191277 [07:19:41]File name is /storage/ofd_packets/00191277 [07:19:41]Write 301 bytes [07:19:41]NVStorageSaveData done [07:19:41]OFDSenderStorePacket done [07:19:41]KKMCreateOFDPacket done [07:19:41]NVStorageSaveData kkm_last_timestamp [07:19:41]File name is /storage/kkm_last_timestamp [07:19:41]Write 4 bytes [07:19:41]NVStorageSaveData done [07:19:41]ExternCall_PrintAddStr [07:19:41]wPrintStart [07:19:41]Write to MH i2c: 01 00 00 26 71 97 [07:19:41]Write i2c OK [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: 01 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: 01 07 00 [07:19:41]MH_I2C_Read... [07:19:41]Read from MH i2c: 01 07 00 26 71 00 00 00 00 00 FF 0F AC [07:19:41]RasterBufferAndPrint [07:19:41]line Счет N : (1)30569 [07:19:41]line ИНН: 02508201610067 [07:19:41]line Контрольно-Кассовый Чек [07:19:41]line ПРОДАЖА [07:19:41]line ТРК (МРК, ГНК) : 21 [07:19:41]line Товар: 2710124130 [07:19:41]line Аи-92-К-5 [07:19:41]line 7.480 * 66.90 [07:19:41]line = 500.41 [07:19:41]line НДС 12% НСП 1% [07:19:41]line > о реализуемом товаре [07:19:41]line ОКРУГЛЕНИЕ: -0.41 [07:19:41]line ИТОГО: 500.00 [07:19:41]line Внесено: 500.00 [07:19:41]line СДАЧА: 0.00 [07:19:41]line НСП 1% : 4.43 [07:19:41]line НДС 12% : 53.14 [07:19:41]line Наличными: 500.00 [07:19:41]line Безнал.: 0.00 [07:19:41]line Место: АЗС № 170 "Партнер Нефть" [07:19:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:19:41]line СНО: Общий режим [07:19:41]line Чек 16 25.10.2024 07:19 [07:19:41]line Смена: 540 ФФД: 1.0 [07:19:41]line ЗНМ: 0300000110 [07:19:41]line РНМ: 0000000000091776 [07:19:41]line Версия ККМ: 001 [07:19:41]line ФМ: 0000000000871754 [07:19:41]line ФД: 191277 [07:19:41]line ФПД: 23528951076555 [07:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T071947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191277&fm=23528951076555&tin=02508201610067®Number=0000000000091776&sum=50000 [07:19:41]OFD Sender: Processing packet 191277 [packets to send 75, broken 74] [07:19:41]ProducePacketName [07:19:41]name=ofd_packets/00191277 [07:19:41]OFD Sender: To server: pG, [07:19:41]CommunicateWithHost lk.salyk.kg:30040 [07:19:41]ConnectInit lk.salyk.kg [07:19:41]written 0, free lines is 4095 [07:19:41]Connected sock=10 [07:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 7D 07 01 10 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 46 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EB 02 00 35 04 06 00 15 66 42 C5 56 CB ED 2C 5B B5 14 43 87 A7 [07:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C AA 47 00 45 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 31 37 35 34 10 04 04 00 2D EB 02 00 F4 03 04 00 62 EB 1A 67 B6 04 01 00 00 98 6F 38 D4 E7 B9 B7 68 [07:19:42]CommunicateWithHost err = 0 [07:19:42]CheckOFDResponse [07:19:42]1017 (14) - 77093643461234 [07:19:42]1041 (16) - 0000000000871754 [07:19:42]1040 (4) - 191277 [07:19:42]1012 (4) - 25.10.2024 00:50 [07:19:42]1206 (1) - 0 [07:19:42]OFD Sender: Remove packet 191277 [07:19:42]ProducePacketName [07:19:42]name=ofd_packets/00191277 [07:19:42]NVStorageDeleteData [07:19:42]Write to MH i2c: 01 00 00 51 71 C2 [07:19:42]Write i2c OK [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: 01 [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: 01 07 00 [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: 01 07 00 51 71 00 00 00 00 00 93 0C 68 [07:19:42]RasterBufferAndPrint [07:19:42]line [07:19:42]line [07:19:42]line [07:19:42]line [07:19:42]line [07:19:42]written 0, free lines is 3225 [07:19:42]MH_Cut [07:19:42]Write to MH i2c: D1 01 00 58 71 01 9B [07:19:42]Write i2c OK [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: D1 [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: D1 01 00 [07:19:42]MH_I2C_Read... [07:19:42]Read from MH i2c: D1 01 00 58 71 00 9A [07:19:42]Write to MH i2c: 01 00 00 59 71 CA [07:19:42]Write i2c OK [07:19:42]MH_I2C_Read... [07:19:42]OFD Sender: No OFD packet to send [07:19:42]*** Cut start [07:19:42]*** Partial cut [07:19:42]*** CUTSNS_PIN = 1 [07:19:43]*** CUTSNS_PIN = 0 [07:19:43]*** Brake cut motor [07:19:43]Read from MH i2c: 01 [07:19:43]MH_I2C_Read... [07:19:43]*** Stop cut motor [07:19:43]*** Cut end [07:19:43]Read from MH i2c: 01 07 00 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: 01 07 00 59 71 00 00 00 00 00 FF 0F DF [07:19:43]process_action close_receipt done [07:19:43]requested_data is exist [07:19:43]produce_requested_data [07:19:43]requested_item fm.sn is exist - process it [07:19:43]wFMCommunicate request_size=4 [07:19:43]MH_SAM_APDU [07:19:43]CAPDU: 80 11 00 00 [07:19:43]Write to MH i2c: E2 08 00 5A 71 80 11 00 00 00 00 00 00 45 [07:19:43]Write i2c OK [07:19:43]MH_I2C_Read... [07:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:43]Read from MH i2c: E2 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 17 00 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 17 00 5A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [07:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:19:43]wFMCommunicate OK [07:19:43]requested_item fd.num is exist - process it [07:19:43]SAM_PROTO_GetFieldsCounters [07:19:43]wFMCommunicate request_size=4 [07:19:43]MH_SAM_APDU [07:19:43]CAPDU: 80 13 00 00 [07:19:43]Write to MH i2c: E2 08 00 5B 71 80 13 00 00 00 00 00 00 48 [07:19:43]Write i2c OK [07:19:43]MH_I2C_Read... [07:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:43]Read from MH i2c: E2 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 62 00 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 62 00 5B 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [07:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:43]wFMCommunicate OK [07:19:43]SAM_PROTO_GetFieldsCounters done [07:19:43]requested_item shift.num is exist - process it [07:19:43]requested_item shift.opened is exist - process it [07:19:43]req_shift_opened [07:19:43]FM_GetShiftState [07:19:43]SAM_PROTO_GetShiftState [07:19:43]wFMCommunicate request_size=4 [07:19:43]MH_SAM_APDU [07:19:43]CAPDU: 80 13 01 00 [07:19:43]Write to MH i2c: E2 08 00 5C 71 80 13 01 00 00 00 00 00 4A [07:19:43]Write i2c OK [07:19:43]MH_I2C_Read... [07:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:43]Read from MH i2c: E2 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 0E 00 [07:19:43]MH_I2C_Read... [07:19:43]Read from MH i2c: E2 0E 00 5C 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [07:19:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:19:43]wFMCommunicate OK [07:19:43]SAM_PROTO_GetShiftState done [07:19:43]FM_GetShiftState done [07:19:43]req_shift_opened done [07:19:43]requested_item shift.open_date is exist - process it [07:19:43]req_shift_open_date [07:19:43]req_shift_open_date done [07:19:43]produce_requested_data done [07:19:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191277,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:19:43]process_action_free close_receipt [07:19:43]json_value_free [07:19:43]json_value_free done [07:19:43]process_json_proto returns [07:19:43]Send response to host [07:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191277,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:19:43]free response buf [07:19:43]execute_script done [07:19:43]execute_script returns [07:19:43]free content buf [07:19:43]Sock 8.Close socket [07:19:43]Sock 8.Thread stoped [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]accept exits with 9 [07:23:52]New connection [07:23:52]New thread 3066961252 created [07:23:52]Thread 3066817892 joined [07:23:52]Waiting for new connection... [07:23:52] Sock 9.Parse request [07:23:52]Sock 9.Check first char [07:23:52]Sock 9.First char is OK [07:23:52]request: POST /json_proto HTTP/1.0 [07:23:52]Method: POST [07:23:52]URL: /json_proto [07:23:52]Method is POST - this is cgi request [07:23:52]url: /json_proto [07:23:52]query_string will be loaded in cgi processing [07:23:52]execute_cgi json_proto POST (null) [07:23:52]execute_cgi path=json_proto method=POST [07:23:52]POST find Content-Length [07:23:52]Host: 172.17.63.131:8080 [07:23:52]Content-Length: 676 [07:23:52]Content-Type: application/json [07:23:52] [07:23:52]POST finish read [07:23:52]Found Content-Length = 676 [07:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:52]execute_script... [07:23: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)30570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:52]POST & json_proto [07:23:52]process_json_proto [07:23:52]json parsed OK: [07:23:52]protocol is kg_v1.0 [07:23:52]action value=close_receipt [07:23:52]process_action close_receipt [07:23:52]cmd_close_receipt [07:23:52]MH_GetDate [07:23:52]Write to MH i2c: F0 00 00 5D 71 BD [07:23:52]Write i2c OK [07:23:52]MH_I2C_Read... [07:23:52]Read from MH i2c: F0 [07:23:52]MH_I2C_Read... [07:23:52]Read from MH i2c: F0 09 00 [07:23:52]MH_I2C_Read... [07:23:52]Read from MH i2c: F0 09 00 5D 71 00 90 47 1B 67 22 05 6E 64 18 [07:23:52]GetLastDocTimeStamp 1729840787 [07:23:52]current date 1729841040 [07:23:52]FM_GetShiftState [07:23:52]SAM_PROTO_GetShiftState [07:23:52]wFMCommunicate request_size=4 [07:23:52]MH_SAM_APDU [07:23:52]CAPDU: 80 13 01 00 [07:23:52]Write to MH i2c: E2 08 00 5E 71 80 13 01 00 00 00 00 00 4C [07:23:52]Write i2c OK [07:23:52]MH_I2C_Read... [07:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:52]Read from MH i2c: E2 [07:23:52]MH_I2C_Read... [07:23:52]Read from MH i2c: E2 0E 00 [07:23:52]MH_I2C_Read... [07:23:52]Read from MH i2c: E2 0E 00 5E 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0F [07:23:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:23:52]wFMCommunicate OK [07:23:52]SAM_PROTO_GetShiftState done [07:23:52]FM_GetShiftState done [07:23:52]opened in 1729816399 [07:23:52]opened+sec_in_day 1729902799 [07:23:52]quantity*price = 60009 [07:23:52]sum+1 = 60010 [07:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 17 25.10.2024 07:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191278 ФПД: 108508703204791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191278&fm=108508703204791&tin=02508201610067®Number=0000000000091776&sum=60000 [07:23:53]StoreToDocumentArchive [07:23:53]shift 540 fd 191278 [07:23:53]save to /storage/0540/doc_00191278 [07:23:53]save last doc name /storage/0540/doc_00191278 to /storage/kkm_last_doc_name [07:23:53]save OK [07:23:53]Clear old archive folders... [07:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:23:53]tlvbuf is 016ADE00 [07:23:53]SAM_PROTO_ClearQueue [07:23:53]wFMCommunicate request_size=4 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 09 00 00 [07:23:53]Write to MH i2c: E2 08 00 6B 71 80 09 00 00 00 00 00 00 4E [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 6B 71 00 90 00 50 [07:23:53]RAPDU: 90 00 [07:23:53]wFMCommunicate OK [07:23:53]SAM_PROTO_ClearQueue done [07:23:53]KKMCreateOFDPacket [07:23:53]OFDProtocolAddRootSTLVToBuf [07:23:53]FM_MakeSignedData [07:23:53]FM_MakeSignedData [07:23:53]SAM_PROTO_SignData [07:23:53]wFMCommunicate request_size=4 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 0D 01 02 [07:23:53]Write to MH i2c: E2 08 00 6C 71 80 0D 01 02 00 00 00 00 56 [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 6C 71 00 90 00 51 [07:23:53]RAPDU: 90 00 [07:23:53]wFMCommunicate OK [07:23:53]wFMCommunicate request_size=255 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 90 47 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EB 02 00 35 04 06 00 62 [07:23:53]Write to MH i2c: E2 02 01 6D 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 90 47 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EB 02 00 35 04 06 00 62 00 00 CC [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 6D 71 00 90 00 52 [07:23:53]RAPDU: 90 00 [07:23:53]wFMCommunicate OK [07:23:53]wFMCommunicate request_size=10 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 0D 02 02 05 B0 26 B5 A5 B7 [07:23:53]Write to MH i2c: E2 0D 00 6E 71 80 0D 02 02 05 00 B0 26 B5 A5 B7 00 00 4A [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 03 00 6E 71 00 90 00 53 [07:23:53]RAPDU: 90 00 [07:23:53]wFMCommunicate OK [07:23:53]wFMCommunicate request_size=4 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 0D 03 02 [07:23:53]Write to MH i2c: E2 08 00 6F 71 80 0D 03 02 00 00 00 00 5B [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 0B 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 0B 00 6F 71 00 49 26 0E 78 C7 AE FF 1D 90 00 E2 [07:23:53]RAPDU: 49 26 0E 78 C7 AE FF 1D 90 00 [07:23:53]wFMCommunicate OK [07:23:53]SAM_PROTO_SignData done [07:23:53]FM_MakeSignedData done [07:23:53]CreateOFDProtocolMessage [07:23:53]wFMCommunicate request_size=4 [07:23:53]MH_SAM_APDU [07:23:53]CAPDU: 80 11 00 00 [07:23:53]Write to MH i2c: E2 08 00 70 71 80 11 00 00 00 00 00 00 5B [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:53]Read from MH i2c: E2 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 17 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: E2 17 00 70 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [07:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:23:53]wFMCommunicate OK [07:23:53]CreateOFDProtocolMessage done [07:23:53]OFDSenderStorePacket 191278 [07:23:53]StoreOFDPacket docnum=191278 [07:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 40 C9 07 01 24 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 90 47 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EB 02 00 35 04 06 00 62 B0 26 B5 A5 B7 49 26 0E 78 C7 AE FF 1D [07:23:53]CheckFolder [07:23:53]dirname=/storage/ofd_packets [07:23:53]CheckFolder done [07:23:53]ProducePacketName [07:23:53]name=ofd_packets/00191278 [07:23:53]NVStorageSaveData ofd_packets/00191278 [07:23:53]File name is /storage/ofd_packets/00191278 [07:23:53]Write 301 bytes [07:23:53]NVStorageSaveData done [07:23:53]OFDSenderStorePacket done [07:23:53]KKMCreateOFDPacket done [07:23:53]NVStorageSaveData kkm_last_timestamp [07:23:53]File name is /storage/kkm_last_timestamp [07:23:53]Write 4 bytes [07:23:53]NVStorageSaveData done [07:23:53]ExternCall_PrintAddStr [07:23:53]wPrintStart [07:23:53]Write to MH i2c: 01 00 00 71 71 E2 [07:23:53]Write i2c OK [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: 01 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: 01 07 00 [07:23:53]MH_I2C_Read... [07:23:53]Read from MH i2c: 01 07 00 71 71 00 00 00 00 00 FF 0F F7 [07:23:53]RasterBufferAndPrint [07:23:53]line Счет N : (1)30570 [07:23:53]line ИНН: 02508201610067 [07:23:53]line Контрольно-Кассовый Чек [07:23:53]line ПРОДАЖА [07:23:53]line ТРК (МРК, ГНК) : 21 [07:23:53]line Товар: 2710124130 [07:23:53]line Аи-92-К-5 [07:23:53]line 8.970 * 66.90 [07:23:53]line = 600.09 [07:23:53]line НДС 12% НСП 1% [07:23:53]line > о реализуемом товаре [07:23:53]line ОКРУГЛЕНИЕ: -0.09 [07:23:53]line ИТОГО: 600.00 [07:23:53]line Внесено: 600.00 [07:23:53]line СДАЧА: 0.00 [07:23:53]line НСП 1% : 5.31 [07:23:53]line НДС 12% : 63.73 [07:23:53]line Наличными: 600.00 [07:23:53]line Безнал.: 0.00 [07:23:53]line Место: АЗС № 170 "Партнер Нефть" [07:23:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:23:53]line СНО: Общий режим [07:23:53]line Чек 17 25.10.2024 07:24 [07:23:53]line Смена: 540 ФФД: 1.0 [07:23:53]line ЗНМ: 0300000110 [07:23:53]line РНМ: 0000000000091776 [07:23:53]line Версия ККМ: 001 [07:23:53]line ФМ: 0000000000871754 [07:23:53]line ФД: 191278 [07:23:53]line ФПД: 108508703204791 [07:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191278&fm=108508703204791&tin=02508201610067®Number=0000000000091776&sum=60000 [07:23:54]OFD Sender: Processing packet 191278 [packets to send 75, broken 74] [07:23:54]ProducePacketName [07:23:54]name=ofd_packets/00191278 [07:23:54]OFD Sender: To server: pG, [07:23:54]CommunicateWithHost lk.salyk.kg:30040 [07:23:54]ConnectInit lk.salyk.kg [07:23:54]written 0, free lines is 4095 [07:23:54]Connected sock=10 [07:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 40 C9 07 01 24 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 90 47 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EB 02 00 35 04 06 00 62 B0 26 B5 A5 B7 49 26 0E 78 C7 AE FF 1D [07:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 64 A0 47 00 3C DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EB 02 00 F4 03 04 00 5F EC 1A 67 B6 04 01 00 00 4A F2 57 7B E8 F9 20 78 [07:23:54]CommunicateWithHost err = 0 [07:23:54]CheckOFDResponse [07:23:54]1017 (14) - 77093643461234 [07:23:54]1041 (16) - 0000000000871754 [07:23:54]1040 (4) - 191278 [07:23:54]1012 (4) - 25.10.2024 00:54 [07:23:54]1206 (1) - 0 [07:23:54]OFD Sender: Remove packet 191278 [07:23:54]ProducePacketName [07:23:54]name=ofd_packets/00191278 [07:23:54]NVStorageDeleteData [07:23:54]Write to MH i2c: 01 00 00 9C 71 0D [07:23:54]Write i2c OK [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: 01 [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: 01 07 00 [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: 01 07 00 9C 71 00 00 00 00 00 9B 0C BB [07:23:54]RasterBufferAndPrint [07:23:54]line [07:23:54]line [07:23:54]line [07:23:54]line [07:23:54]line [07:23:54]written 0, free lines is 3232 [07:23:54]MH_Cut [07:23:54]Write to MH i2c: D1 01 00 A3 71 01 E6 [07:23:54]Write i2c OK [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: D1 [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: D1 01 00 [07:23:54]MH_I2C_Read... [07:23:54]Read from MH i2c: D1 01 00 A3 71 00 E5 [07:23:54]Write to MH i2c: 01 00 00 A4 71 15 [07:23:54]Write i2c OK [07:23:54]MH_I2C_Read... [07:23:55]OFD Sender: No OFD packet to send [07:23:55]*** Cut start [07:23:55]*** Partial cut [07:23:55]*** CUTSNS_PIN = 1 [07:23:55]*** CUTSNS_PIN = 0 [07:23:55]*** Brake cut motor [07:23:56]Read from MH i2c: 01 [07:23:56]MH_I2C_Read... [07:23:56]*** Stop cut motor [07:23:56]*** Cut end [07:23:56]Read from MH i2c: 01 07 00 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: 01 07 00 A4 71 00 00 00 00 00 FF 0F 2A [07:23:56]process_action close_receipt done [07:23:56]requested_data is exist [07:23:56]produce_requested_data [07:23:56]requested_item fm.sn is exist - process it [07:23:56]wFMCommunicate request_size=4 [07:23:56]MH_SAM_APDU [07:23:56]CAPDU: 80 11 00 00 [07:23:56]Write to MH i2c: E2 08 00 A5 71 80 11 00 00 00 00 00 00 90 [07:23:56]Write i2c OK [07:23:56]MH_I2C_Read... [07:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:56]Read from MH i2c: E2 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 17 00 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 17 00 A5 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [07:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:23:56]wFMCommunicate OK [07:23:56]requested_item fd.num is exist - process it [07:23:56]SAM_PROTO_GetFieldsCounters [07:23:56]wFMCommunicate request_size=4 [07:23:56]MH_SAM_APDU [07:23:56]CAPDU: 80 13 00 00 [07:23:56]Write to MH i2c: E2 08 00 A6 71 80 13 00 00 00 00 00 00 93 [07:23:56]Write i2c OK [07:23:56]MH_I2C_Read... [07:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:56]Read from MH i2c: E2 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 62 00 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 62 00 A6 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [07:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:23:56]wFMCommunicate OK [07:23:56]SAM_PROTO_GetFieldsCounters done [07:23:56]requested_item shift.num is exist - process it [07:23:56]requested_item shift.opened is exist - process it [07:23:56]req_shift_opened [07:23:56]FM_GetShiftState [07:23:56]SAM_PROTO_GetShiftState [07:23:56]wFMCommunicate request_size=4 [07:23:56]MH_SAM_APDU [07:23:56]CAPDU: 80 13 01 00 [07:23:56]Write to MH i2c: E2 08 00 A7 71 80 13 01 00 00 00 00 00 95 [07:23:56]Write i2c OK [07:23:56]MH_I2C_Read... [07:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:56]Read from MH i2c: E2 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 0E 00 [07:23:56]MH_I2C_Read... [07:23:56]Read from MH i2c: E2 0E 00 A7 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 58 [07:23:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:23:56]wFMCommunicate OK [07:23:56]SAM_PROTO_GetShiftState done [07:23:56]FM_GetShiftState done [07:23:56]req_shift_opened done [07:23:56]requested_item shift.open_date is exist - process it [07:23:56]req_shift_open_date [07:23:56]req_shift_open_date done [07:23:56]produce_requested_data done [07:23:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191278,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:23:56]process_action_free close_receipt [07:23:56]json_value_free [07:23:56]json_value_free done [07:23:56]process_json_proto returns [07:23:56]Send response to host [07:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191278,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:23:56]free response buf [07:23:56]execute_script done [07:23:56]execute_script returns [07:23:56]free content buf [07:23:56]Sock 9.Close socket [07:23:56]Sock 9.Thread stoped [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:22]accept exits with 8 [07:28:22]New connection [07:28:22]New thread 3066817892 created [07:28:22]Thread 3066961252 joined [07:28:22]Waiting for new connection... [07:28:22] Sock 8.Parse request [07:28:22]Sock 8.Check first char [07:28:22]Sock 8.First char is OK [07:28:22]request: POST /json_proto HTTP/1.0 [07:28:22]Method: POST [07:28:22]URL: /json_proto [07:28:22]Method is POST - this is cgi request [07:28:22]url: /json_proto [07:28:22]query_string will be loaded in cgi processing [07:28:22]execute_cgi json_proto POST (null) [07:28:22]execute_cgi path=json_proto method=POST [07:28:22]POST find Content-Length [07:28:22]Host: 172.17.63.131:8080 [07:28:22]Content-Length: 676 [07:28:22]Content-Type: application/json [07:28:22] [07:28:22]POST finish read [07:28:22]Found Content-Length = 676 [07:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:22]execute_script... [07:28: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)30571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:22]POST & json_proto [07:28:22]process_json_proto [07:28:22]json parsed OK: [07:28:22]protocol is kg_v1.0 [07:28:22]action value=close_receipt [07:28:22]process_action close_receipt [07:28:22]cmd_close_receipt [07:28:22]MH_GetDate [07:28:22]Write to MH i2c: F0 00 00 A8 71 08 [07:28:22]Write i2c OK [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 09 00 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 09 00 A8 71 00 9E 48 1B 67 22 05 6E 64 72 [07:28:22]GetLastDocTimeStamp 1729841040 [07:28:22]current date 1729841310 [07:28:22]FM_GetShiftState [07:28:22]SAM_PROTO_GetShiftState [07:28:22]wFMCommunicate request_size=4 [07:28:22]MH_SAM_APDU [07:28:22]CAPDU: 80 13 01 00 [07:28:22]Write to MH i2c: E2 08 00 A9 71 80 13 01 00 00 00 00 00 97 [07:28:22]Write i2c OK [07:28:22]MH_I2C_Read... [07:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:22]Read from MH i2c: E2 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: E2 0E 00 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: E2 0E 00 A9 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5A [07:28:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:28:22]wFMCommunicate OK [07:28:22]SAM_PROTO_GetShiftState done [07:28:22]FM_GetShiftState done [07:28:22]opened in 1729816399 [07:28:22]opened+sec_in_day 1729902799 [07:28:22]quantity*price = 60009 [07:28:22]sum+1 = 60010 [07:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 18 25.10.2024 07:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191279 ФПД: 275452979357693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072830&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191279&fm=275452979357693&tin=02508201610067®Number=0000000000091776&sum=60000 [07:28:23]StoreToDocumentArchive [07:28:23]shift 540 fd 191279 [07:28:23]save to /storage/0540/doc_00191279 [07:28:23]save last doc name /storage/0540/doc_00191279 to /storage/kkm_last_doc_name [07:28:23]save OK [07:28:23]Clear old archive folders... [07:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:23]tlvbuf is 016AD9C0 [07:28:23]SAM_PROTO_ClearQueue [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 09 00 00 [07:28:23]Write to MH i2c: E2 08 00 B6 71 80 09 00 00 00 00 00 00 99 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 B6 71 00 90 00 9B [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]SAM_PROTO_ClearQueue done [07:28:23]KKMCreateOFDPacket [07:28:23]OFDProtocolAddRootSTLVToBuf [07:28:23]FM_MakeSignedData [07:28:23]FM_MakeSignedData [07:28:23]SAM_PROTO_SignData [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 01 02 [07:28:23]Write to MH i2c: E2 08 00 B7 71 80 0D 01 02 00 00 00 00 A1 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 B7 71 00 90 00 9C [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]wFMCommunicate request_size=255 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 48 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EB 02 00 35 04 06 00 FA [07:28:23]Write to MH i2c: E2 02 01 B8 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 48 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EB 02 00 35 04 06 00 FA 00 00 C0 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:24]Read from MH i2c: E2 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 03 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 03 00 B8 71 00 90 00 9D [07:28:24]RAPDU: 90 00 [07:28:24]wFMCommunicate OK [07:28:24]wFMCommunicate request_size=10 [07:28:24]MH_SAM_APDU [07:28:24]CAPDU: 80 0D 02 02 05 85 E4 FC A7 FD [07:28:24]Write to MH i2c: E2 0D 00 B9 71 80 0D 02 02 05 00 85 E4 FC A7 FD 00 00 B7 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:24]Read from MH i2c: E2 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 03 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 03 00 B9 71 00 90 00 9E [07:28:24]RAPDU: 90 00 [07:28:24]wFMCommunicate OK [07:28:24]wFMCommunicate request_size=4 [07:28:24]MH_SAM_APDU [07:28:24]CAPDU: 80 0D 03 02 [07:28:24]Write to MH i2c: E2 08 00 BA 71 80 0D 03 02 00 00 00 00 A6 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:24]Read from MH i2c: E2 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 0B 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 0B 00 BA 71 00 52 BC A7 3E CA 4F E3 DB 90 00 71 [07:28:24]RAPDU: 52 BC A7 3E CA 4F E3 DB 90 00 [07:28:24]wFMCommunicate OK [07:28:24]SAM_PROTO_SignData done [07:28:24]FM_MakeSignedData done [07:28:24]CreateOFDProtocolMessage [07:28:24]wFMCommunicate request_size=4 [07:28:24]MH_SAM_APDU [07:28:24]CAPDU: 80 11 00 00 [07:28:24]Write to MH i2c: E2 08 00 BB 71 80 11 00 00 00 00 00 00 A6 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:24]Read from MH i2c: E2 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 17 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: E2 17 00 BB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [07:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:28:24]wFMCommunicate OK [07:28:24]CreateOFDProtocolMessage done [07:28:24]OFDSenderStorePacket 191279 [07:28:24]StoreOFDPacket docnum=191279 [07:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 05 07 01 F0 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 48 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EB 02 00 35 04 06 00 FA 85 E4 FC A7 FD 52 BC A7 3E CA 4F E3 DB [07:28:24]CheckFolder [07:28:24]dirname=/storage/ofd_packets [07:28:24]CheckFolder done [07:28:24]ProducePacketName [07:28:24]name=ofd_packets/00191279 [07:28:24]NVStorageSaveData ofd_packets/00191279 [07:28:24]File name is /storage/ofd_packets/00191279 [07:28:24]Write 301 bytes [07:28:24]NVStorageSaveData done [07:28:24]OFDSenderStorePacket done [07:28:24]KKMCreateOFDPacket done [07:28:24]NVStorageSaveData kkm_last_timestamp [07:28:24]File name is /storage/kkm_last_timestamp [07:28:24]Write 4 bytes [07:28:24]NVStorageSaveData done [07:28:24]ExternCall_PrintAddStr [07:28:24]wPrintStart [07:28:24]Write to MH i2c: 01 00 00 BC 71 2D [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 BC 71 00 00 00 00 00 FF 0F 42 [07:28:24]RasterBufferAndPrint [07:28:24]line Счет N : (1)30571 [07:28:24]line ИНН: 02508201610067 [07:28:24]line Контрольно-Кассовый Чек [07:28:24]line ПРОДАЖА [07:28:24]line ТРК (МРК, ГНК) : 21 [07:28:24]line Товар: 2710124130 [07:28:24]line Аи-92-К-5 [07:28:24]line 8.970 * 66.90 [07:28:24]line = 600.09 [07:28:24]line НДС 12% НСП 1% [07:28:24]line > о реализуемом товаре [07:28:24]line ОКРУГЛЕНИЕ: -0.09 [07:28:24]line ИТОГО: 600.00 [07:28:24]line Внесено: 600.00 [07:28:24]line СДАЧА: 0.00 [07:28:24]line НСП 1% : 5.31 [07:28:24]line НДС 12% : 63.73 [07:28:24]line Наличными: 600.00 [07:28:24]line Безнал.: 0.00 [07:28:24]line Место: АЗС № 170 "Партнер Нефть" [07:28:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:28:24]line СНО: Общий режим [07:28:24]line Чек 18 25.10.2024 07:28 [07:28:24]line Смена: 540 ФФД: 1.0 [07:28:24]line ЗНМ: 0300000110 [07:28:24]line РНМ: 0000000000091776 [07:28:24]line Версия ККМ: 001 [07:28:24]line ФМ: 0000000000871754 [07:28:24]line ФД: 191279 [07:28:24]line ФПД: 275452979357693 [07:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072830&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191279&fm=275452979357693&tin=02508201610067®Number=0000000000091776&sum=60000 [07:28:24]OFD Sender: Processing packet 191279 [packets to send 75, broken 74] [07:28:24]ProducePacketName [07:28:24]name=ofd_packets/00191279 [07:28:24]OFD Sender: To server: pG, [07:28:24]CommunicateWithHost lk.salyk.kg:30040 [07:28:24]ConnectInit lk.salyk.kg [07:28:24]written 0, free lines is 4095 [07:28:24]Connected sock=10 [07:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 05 07 01 F0 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 48 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EB 02 00 35 04 06 00 FA 85 E4 FC A7 FD 52 BC A7 3E CA 4F E3 DB [07:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD F4 47 00 A8 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EB 02 00 F4 03 04 00 6D ED 1A 67 B6 04 01 00 00 1A 3C 20 BD C6 A4 DE 00 [07:28:24]CommunicateWithHost err = 0 [07:28:24]CheckOFDResponse [07:28:24]1017 (14) - 77093643461234 [07:28:24]1041 (16) - 0000000000871754 [07:28:24]1040 (4) - 191279 [07:28:24]1012 (4) - 25.10.2024 00:59 [07:28:24]1206 (1) - 0 [07:28:24]OFD Sender: Remove packet 191279 [07:28:24]ProducePacketName [07:28:24]name=ofd_packets/00191279 [07:28:24]NVStorageDeleteData [07:28:24]Write to MH i2c: 01 00 00 E7 71 58 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 E7 71 00 00 00 00 00 AA 0C 15 [07:28:24]RasterBufferAndPrint [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]written 0, free lines is 3248 [07:28:24]MH_Cut [07:28:24]Write to MH i2c: D1 01 00 EE 71 01 31 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 01 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 01 00 EE 71 00 30 [07:28:24]Write to MH i2c: 01 00 00 EF 71 60 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:25]OFD Sender: No OFD packet to send [07:28:25]*** Cut start [07:28:25]*** Partial cut [07:28:25]*** CUTSNS_PIN = 1 [07:28:25]*** CUTSNS_PIN = 0 [07:28:26]*** Brake cut motor [07:28:26]Read from MH i2c: 01 [07:28:26]MH_I2C_Read... [07:28:26]*** Stop cut motor [07:28:26]*** Cut end [07:28:26]Read from MH i2c: 01 07 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: 01 07 00 EF 71 00 00 00 00 00 FF 0F 75 [07:28:26]process_action close_receipt done [07:28:26]requested_data is exist [07:28:26]produce_requested_data [07:28:26]requested_item fm.sn is exist - process it [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 11 00 00 [07:28:26]Write to MH i2c: E2 08 00 F0 71 80 11 00 00 00 00 00 00 DB [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 17 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 17 00 F0 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [07:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:28:26]wFMCommunicate OK [07:28:26]requested_item fd.num is exist - process it [07:28:26]SAM_PROTO_GetFieldsCounters [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 13 00 00 [07:28:26]Write to MH i2c: E2 08 00 F1 71 80 13 00 00 00 00 00 00 DE [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 62 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 62 00 F1 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [07:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_GetFieldsCounters done [07:28:26]requested_item shift.num is exist - process it [07:28:26]requested_item shift.opened is exist - process it [07:28:26]req_shift_opened [07:28:26]FM_GetShiftState [07:28:26]SAM_PROTO_GetShiftState [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 13 01 00 [07:28:26]Write to MH i2c: E2 08 00 F2 71 80 13 01 00 00 00 00 00 E0 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 F2 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A3 [07:28:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_GetShiftState done [07:28:26]FM_GetShiftState done [07:28:26]req_shift_opened done [07:28:26]requested_item shift.open_date is exist - process it [07:28:26]req_shift_open_date [07:28:26]req_shift_open_date done [07:28:26]produce_requested_data done [07:28:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191279,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:28:26]process_action_free close_receipt [07:28:26]json_value_free [07:28:26]json_value_free done [07:28:26]process_json_proto returns [07:28:26]Send response to host [07:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191279,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:28:26]free response buf [07:28:26]execute_script done [07:28:26]execute_script returns [07:28:26]free content buf [07:28:26]Sock 8.Close socket [07:28:26]Sock 8.Thread stoped [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:01]accept exits with 9 [07:35:01]New connection [07:35:01]New thread 3066961252 created [07:35:01]Thread 3066817892 joined [07:35:01]Waiting for new connection... [07:35:01] Sock 9.Parse request [07:35:01]Sock 9.Check first char [07:35:01]Sock 9.First char is OK [07:35:01]request: POST /json_proto HTTP/1.0 [07:35:01]Method: POST [07:35:01]URL: /json_proto [07:35:01]Method is POST - this is cgi request [07:35:01]url: /json_proto [07:35:01]query_string will be loaded in cgi processing [07:35:01]execute_cgi json_proto POST (null) [07:35:01]execute_cgi path=json_proto method=POST [07:35:01]POST find Content-Length [07:35:01]Host: 172.17.63.131:8080 [07:35:01]Content-Length: 678 [07:35:01]Content-Type: application/json [07:35:01] [07:35:01]POST finish read [07:35:01]Found Content-Length = 678 [07:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:35:01]execute_script... [07:35: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)30572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:35:01]POST & json_proto [07:35:01]process_json_proto [07:35:01]json parsed OK: [07:35:01]protocol is kg_v1.0 [07:35:01]action value=close_receipt [07:35:01]process_action close_receipt [07:35:01]cmd_close_receipt [07:35:01]MH_GetDate [07:35:01]Write to MH i2c: F0 00 00 F3 71 53 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: F0 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: F0 09 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: F0 09 00 F3 71 00 2D 4A 1B 67 22 05 6E 64 4E [07:35:01]GetLastDocTimeStamp 1729841310 [07:35:01]current date 1729841709 [07:35:01]FM_GetShiftState [07:35:01]SAM_PROTO_GetShiftState [07:35:01]wFMCommunicate request_size=4 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 13 01 00 [07:35:01]Write to MH i2c: E2 08 00 F4 71 80 13 01 00 00 00 00 00 E2 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 0E 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 0E 00 F4 71 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A5 [07:35:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:35:01]wFMCommunicate OK [07:35:01]SAM_PROTO_GetShiftState done [07:35:01]FM_GetShiftState done [07:35:01]opened in 1729816399 [07:35:01]opened+sec_in_day 1729902799 [07:35:01]quantity*price = 150037 [07:35:01]sum+1 = 150039 [07:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 19 25.10.2024 07:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191280 ФПД: 97525607401192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191280&fm=97525607401192&tin=02508201610067®Number=0000000000091776&sum=150000 [07:35:03]StoreToDocumentArchive [07:35:03]shift 540 fd 191280 [07:35:03]save to /storage/0540/doc_00191280 [07:35:03]save last doc name /storage/0540/doc_00191280 to /storage/kkm_last_doc_name [07:35:03]save OK [07:35:03]Clear old archive folders... [07:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:35:03]tlvbuf is 01702E80 [07:35:03]SAM_PROTO_ClearQueue [07:35:03]wFMCommunicate request_size=4 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 09 00 00 [07:35:03]Write to MH i2c: E2 08 00 01 72 80 09 00 00 00 00 00 00 E5 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 01 72 00 90 00 E7 [07:35:03]RAPDU: 90 00 [07:35:03]wFMCommunicate OK [07:35:03]SAM_PROTO_ClearQueue done [07:35:03]KKMCreateOFDPacket [07:35:03]OFDProtocolAddRootSTLVToBuf [07:35:03]FM_MakeSignedData [07:35:03]FM_MakeSignedData [07:35:03]SAM_PROTO_SignData [07:35:03]wFMCommunicate request_size=4 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 0D 01 02 [07:35:03]Write to MH i2c: E2 08 00 02 72 80 0D 01 02 00 00 00 00 ED [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 02 72 00 90 00 E8 [07:35:03]RAPDU: 90 00 [07:35:03]wFMCommunicate OK [07:35:03]wFMCommunicate request_size=255 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 2D 4A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EB 02 00 35 04 06 00 58 B2 F3 2F [07:35:03]Write to MH i2c: E2 02 01 03 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 13 00 00 00 F4 03 04 00 2D 4A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EB 02 00 35 04 06 00 58 B2 F3 2F 00 00 61 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 03 72 00 90 00 E9 [07:35:03]RAPDU: 90 00 [07:35:03]wFMCommunicate OK [07:35:03]wFMCommunicate request_size=7 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 0D 02 02 02 86 E8 [07:35:03]Write to MH i2c: E2 0A 00 04 72 80 0D 02 02 02 00 86 E8 00 00 62 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 03 00 04 72 00 90 00 EA [07:35:03]RAPDU: 90 00 [07:35:03]wFMCommunicate OK [07:35:03]wFMCommunicate request_size=4 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 0D 03 02 [07:35:03]Write to MH i2c: E2 08 00 05 72 80 0D 03 02 00 00 00 00 F2 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 0B 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 0B 00 05 72 00 C8 A9 70 36 F4 96 7F 6C 90 00 7F [07:35:03]RAPDU: C8 A9 70 36 F4 96 7F 6C 90 00 [07:35:03]wFMCommunicate OK [07:35:03]SAM_PROTO_SignData done [07:35:03]FM_MakeSignedData done [07:35:03]CreateOFDProtocolMessage [07:35:03]wFMCommunicate request_size=4 [07:35:03]MH_SAM_APDU [07:35:03]CAPDU: 80 11 00 00 [07:35:03]Write to MH i2c: E2 08 00 06 72 80 11 00 00 00 00 00 00 F2 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:03]Read from MH i2c: E2 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 17 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: E2 17 00 06 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [07:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:35:03]wFMCommunicate OK [07:35:03]CreateOFDProtocolMessage done [07:35:03]OFDSenderStorePacket 191280 [07:35:03]StoreOFDPacket docnum=191280 [07:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 12 EA 04 01 82 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 13 00 00 00 F4 03 04 00 2D 4A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EB 02 00 35 04 06 00 58 B2 F3 2F 86 E8 C8 A9 70 36 F4 96 7F 6C [07:35:03]CheckFolder [07:35:03]dirname=/storage/ofd_packets [07:35:03]CheckFolder done [07:35:03]ProducePacketName [07:35:03]name=ofd_packets/00191280 [07:35:03]NVStorageSaveData ofd_packets/00191280 [07:35:03]File name is /storage/ofd_packets/00191280 [07:35:03]Write 298 bytes [07:35:03]NVStorageSaveData done [07:35:03]OFDSenderStorePacket done [07:35:03]KKMCreateOFDPacket done [07:35:03]NVStorageSaveData kkm_last_timestamp [07:35:03]File name is /storage/kkm_last_timestamp [07:35:03]Write 4 bytes [07:35:03]NVStorageSaveData done [07:35:03]ExternCall_PrintAddStr [07:35:03]wPrintStart [07:35:03]Write to MH i2c: 01 00 00 07 72 79 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 07 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 07 00 07 72 00 00 00 00 00 FF 0F 8E [07:35:03]RasterBufferAndPrint [07:35:03]line Счет N : (1)30572 [07:35:03]line ИНН: 02508201610067 [07:35:03]line Контрольно-Кассовый Чек [07:35:03]line ПРОДАЖА [07:35:03]line ТРК (МРК, ГНК) : 22 [07:35:03]line Товар: 2710194210 [07:35:03]line ДТ-К-5 [07:35:03]line 19.690 * 76.20 [07:35:03]line = 1500.38 [07:35:03]line НДС 12% НСП 1% [07:35:03]line > о реализуемом товаре [07:35:03]line ОКРУГЛЕНИЕ: -0.38 [07:35:03]line ИТОГО: 1500.00 [07:35:03]line Внесено: 1500.00 [07:35:03]line СДАЧА: 0.00 [07:35:03]line НСП 1% : 13.28 [07:35:03]line НДС 12% : 159.33 [07:35:03]line Наличными: 1500.00 [07:35:03]line Безнал.: 0.00 [07:35:03]line Место: АЗС № 170 "Партнер Нефть" [07:35:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:35:03]line СНО: Общий режим [07:35:03]line Чек 19 25.10.2024 07:35 [07:35:03]line Смена: 540 ФФД: 1.0 [07:35:03]line ЗНМ: 0300000110 [07:35:03]line РНМ: 0000000000091776 [07:35:03]line Версия ККМ: 001 [07:35:03]line ФМ: 0000000000871754 [07:35:03]line ФД: 191280 [07:35:03]line ФПД: 97525607401192 [07:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191280&fm=97525607401192&tin=02508201610067®Number=0000000000091776&sum=150000 [07:35:03]OFD Sender: Processing packet 191280 [packets to send 75, broken 74] [07:35:03]ProducePacketName [07:35:03]name=ofd_packets/00191280 [07:35:03]OFD Sender: To server: pG, [07:35:03]CommunicateWithHost lk.salyk.kg:30040 [07:35:03]ConnectInit lk.salyk.kg [07:35:03]written 0, free lines is 4095 [07:35:04]Connected sock=10 [07:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 12 EA 04 01 82 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 13 00 00 00 F4 03 04 00 2D 4A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EB 02 00 35 04 06 00 58 B2 F3 2F 86 E8 C8 A9 70 36 F4 96 7F 6C [07:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 78 A4 47 00 70 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EB 02 00 F4 03 04 00 FD EE 1A 67 B6 04 01 00 00 18 2B 80 0F E2 2A 7B 73 [07:35:04]CommunicateWithHost err = 0 [07:35:04]CheckOFDResponse [07:35:04]1017 (14) - 77093643461234 [07:35:04]1041 (16) - 0000000000871754 [07:35:04]1040 (4) - 191280 [07:35:04]1012 (4) - 25.10.2024 01:06 [07:35:04]1206 (1) - 0 [07:35:04]OFD Sender: Remove packet 191280 [07:35:04]ProducePacketName [07:35:04]name=ofd_packets/00191280 [07:35:04]NVStorageDeleteData [07:35:04]Write to MH i2c: 01 00 00 32 72 A4 [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: 01 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: 01 07 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: 01 07 00 32 72 00 00 00 00 00 9B 0C 52 [07:35:04]RasterBufferAndPrint [07:35:04]line [07:35:04]line [07:35:04]line [07:35:04]line [07:35:04]line [07:35:04]written 0, free lines is 3232 [07:35:04]MH_Cut [07:35:04]Write to MH i2c: D1 01 00 39 72 01 7D [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: D1 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: D1 01 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: D1 01 00 39 72 00 7C [07:35:04]Write to MH i2c: 01 00 00 3A 72 AC [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]OFD Sender: No OFD packet to send [07:35:05]*** Cut start [07:35:05]*** Partial cut [07:35:05]*** CUTSNS_PIN = 1 [07:35:05]*** CUTSNS_PIN = 0 [07:35:05]*** Brake cut motor [07:35:05]Read from MH i2c: 01 [07:35:05]MH_I2C_Read... [07:35:05]*** Stop cut motor [07:35:05]*** Cut end [07:35:05]Read from MH i2c: 01 07 00 [07:35:05]MH_I2C_Read... [07:35:05]Read from MH i2c: 01 07 00 3A 72 00 00 00 00 00 FF 0F C1 [07:35:05]process_action close_receipt done [07:35:05]requested_data is exist [07:35:05]produce_requested_data [07:35:05]requested_item fm.sn is exist - process it [07:35:05]wFMCommunicate request_size=4 [07:35:05]MH_SAM_APDU [07:35:05]CAPDU: 80 11 00 00 [07:35:05]Write to MH i2c: E2 08 00 3B 72 80 11 00 00 00 00 00 00 27 [07:35:05]Write i2c OK [07:35:05]MH_I2C_Read... [07:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:05]Read from MH i2c: E2 [07:35:05]MH_I2C_Read... [07:35:05]Read from MH i2c: E2 17 00 [07:35:05]MH_I2C_Read... [07:35:05]Read from MH i2c: E2 17 00 3B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [07:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:35:05]wFMCommunicate OK [07:35:05]requested_item fd.num is exist - process it [07:35:05]SAM_PROTO_GetFieldsCounters [07:35:05]wFMCommunicate request_size=4 [07:35:05]MH_SAM_APDU [07:35:05]CAPDU: 80 13 00 00 [07:35:05]Write to MH i2c: E2 08 00 3C 72 80 13 00 00 00 00 00 00 2A [07:35:05]Write i2c OK [07:35:05]MH_I2C_Read... [07:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:06]Read from MH i2c: E2 [07:35:06]MH_I2C_Read... [07:35:06]Read from MH i2c: E2 62 00 [07:35:06]MH_I2C_Read... [07:35:06]Read from MH i2c: E2 62 00 3C 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [07:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:06]wFMCommunicate OK [07:35:06]SAM_PROTO_GetFieldsCounters done [07:35:06]requested_item shift.num is exist - process it [07:35:06]requested_item shift.opened is exist - process it [07:35:06]req_shift_opened [07:35:06]FM_GetShiftState [07:35:06]SAM_PROTO_GetShiftState [07:35:06]wFMCommunicate request_size=4 [07:35:06]MH_SAM_APDU [07:35:06]CAPDU: 80 13 01 00 [07:35:06]Write to MH i2c: E2 08 00 3D 72 80 13 01 00 00 00 00 00 2C [07:35:06]Write i2c OK [07:35:06]MH_I2C_Read... [07:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:06]Read from MH i2c: E2 [07:35:06]MH_I2C_Read... [07:35:06]Read from MH i2c: E2 0E 00 [07:35:06]MH_I2C_Read... [07:35:06]Read from MH i2c: E2 0E 00 3D 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EF [07:35:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:35:06]wFMCommunicate OK [07:35:06]SAM_PROTO_GetShiftState done [07:35:06]FM_GetShiftState done [07:35:06]req_shift_opened done [07:35:06]requested_item shift.open_date is exist - process it [07:35:06]req_shift_open_date [07:35:06]req_shift_open_date done [07:35:06]produce_requested_data done [07:35:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191280,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:35:06]process_action_free close_receipt [07:35:06]json_value_free [07:35:06]json_value_free done [07:35:06]process_json_proto returns [07:35:06]Send response to host [07:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191280,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:35:06]free response buf [07:35:06]execute_script done [07:35:06]execute_script returns [07:35:06]free content buf [07:35:06]Sock 9.Close socket [07:35:06]Sock 9.Thread stoped [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49: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:27]accept exits with 8 [07:51:27]New connection [07:51:27]New thread 3066817892 created [07:51:27]Thread 3066961252 joined [07:51:27]Waiting for new connection... [07:51:27] Sock 8.Parse request [07:51:27]Sock 8.Check first char [07:51:27]Sock 8.First char is OK [07:51:27]request: POST /json_proto HTTP/1.0 [07:51:27]Method: POST [07:51:27]URL: /json_proto [07:51:27]Method is POST - this is cgi request [07:51:27]url: /json_proto [07:51:27]query_string will be loaded in cgi processing [07:51:27]execute_cgi json_proto POST (null) [07:51:27]execute_cgi path=json_proto method=POST [07:51:27]POST find Content-Length [07:51:27]Host: 172.17.63.131:8080 [07:51:27]Content-Length: 673 [07:51:27]Content-Type: application/json [07:51:27] [07:51:27]POST finish read [07:51:27]Found Content-Length = 673 [07:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:51:27]execute_script... [07:51: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)30573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:51:27]POST & json_proto [07:51:27]process_json_proto [07:51:27]json parsed OK: [07:51:27]protocol is kg_v1.0 [07:51:27]action value=close_receipt [07:51:27]process_action close_receipt [07:51:27]cmd_close_receipt [07:51:27]MH_GetDate [07:51:27]Write to MH i2c: F0 00 00 3E 72 9F [07:51:27]Write i2c OK [07:51:27]MH_I2C_Read... [07:51:27]Read from MH i2c: F0 [07:51:27]MH_I2C_Read... [07:51:27]Read from MH i2c: F0 09 00 [07:51:27]MH_I2C_Read... [07:51:27]Read from MH i2c: F0 09 00 3E 72 00 07 4E 1B 67 22 05 6E 64 78 [07:51:27]GetLastDocTimeStamp 1729841709 [07:51:27]current date 1729842695 [07:51:27]FM_GetShiftState [07:51:27]SAM_PROTO_GetShiftState [07:51:27]wFMCommunicate request_size=4 [07:51:27]MH_SAM_APDU [07:51:27]CAPDU: 80 13 01 00 [07:51:27]Write to MH i2c: E2 08 00 3F 72 80 13 01 00 00 00 00 00 2E [07:51:27]Write i2c OK [07:51:27]MH_I2C_Read... [07:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:27]Read from MH i2c: E2 [07:51:27]MH_I2C_Read... [07:51:27]Read from MH i2c: E2 0E 00 [07:51:27]MH_I2C_Read... [07:51:27]Read from MH i2c: E2 0E 00 3F 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F1 [07:51:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:51:27]wFMCommunicate OK [07:51:27]SAM_PROTO_GetShiftState done [07:51:27]FM_GetShiftState done [07:51:27]opened in 1729816399 [07:51:27]opened+sec_in_day 1729902799 [07:51:27]quantity*price = 50063 [07:51:27]sum+1 = 50064 [07:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 20 25.10.2024 07:51 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191281 ФПД: 201757357286689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191281&fm=201757357286689&tin=02508201610067®Number=0000000000091776&sum=50000 [07:51:28]StoreToDocumentArchive [07:51:28]shift 540 fd 191281 [07:51:28]save to /storage/0540/doc_00191281 [07:51:28]save last doc name /storage/0540/doc_00191281 to /storage/kkm_last_doc_name [07:51:28]save OK [07:51:28]Clear old archive folders... [07:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:51:28]tlvbuf is 016A0130 [07:51:28]SAM_PROTO_ClearQueue [07:51:28]wFMCommunicate request_size=4 [07:51:28]MH_SAM_APDU [07:51:28]CAPDU: 80 09 00 00 [07:51:28]Write to MH i2c: E2 08 00 4C 72 80 09 00 00 00 00 00 00 30 [07:51:28]Write i2c OK [07:51:28]MH_I2C_Read... [07:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:28]Read from MH i2c: E2 [07:51:28]MH_I2C_Read... [07:51:28]Read from MH i2c: E2 03 00 [07:51:28]MH_I2C_Read... [07:51:28]Read from MH i2c: E2 03 00 4C 72 00 90 00 32 [07:51:28]RAPDU: 90 00 [07:51:28]wFMCommunicate OK [07:51:28]SAM_PROTO_ClearQueue done [07:51:28]KKMCreateOFDPacket [07:51:28]OFDProtocolAddRootSTLVToBuf [07:51:28]FM_MakeSignedData [07:51:28]FM_MakeSignedData [07:51:28]SAM_PROTO_SignData [07:51:28]wFMCommunicate request_size=4 [07:51:28]MH_SAM_APDU [07:51:28]CAPDU: 80 0D 01 02 [07:51:28]Write to MH i2c: E2 08 00 4D 72 80 0D 01 02 00 00 00 00 38 [07:51:28]Write i2c OK [07:51:28]MH_I2C_Read... [07:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:29]Read from MH i2c: E2 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 4D 72 00 90 00 33 [07:51:29]RAPDU: 90 00 [07:51:29]wFMCommunicate OK [07:51:29]wFMCommunicate request_size=255 [07:51:29]MH_SAM_APDU [07:51:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 07 4E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EB 02 00 35 04 06 00 B7 7F 4B 9C [07:51:29]Write to MH i2c: E2 02 01 4E 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 14 00 00 00 F4 03 04 00 07 4E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EB 02 00 35 04 06 00 B7 7F 4B 9C 00 00 8E [07:51:29]Write i2c OK [07:51:29]MH_I2C_Read... [07:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:29]Read from MH i2c: E2 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 4E 72 00 90 00 34 [07:51:29]RAPDU: 90 00 [07:51:29]wFMCommunicate OK [07:51:29]wFMCommunicate request_size=7 [07:51:29]MH_SAM_APDU [07:51:29]CAPDU: 80 0D 02 02 02 A5 21 [07:51:29]Write to MH i2c: E2 0A 00 4F 72 80 0D 02 02 02 00 A5 21 00 00 05 [07:51:29]Write i2c OK [07:51:29]MH_I2C_Read... [07:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:29]Read from MH i2c: E2 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 03 00 4F 72 00 90 00 35 [07:51:29]RAPDU: 90 00 [07:51:29]wFMCommunicate OK [07:51:29]wFMCommunicate request_size=4 [07:51:29]MH_SAM_APDU [07:51:29]CAPDU: 80 0D 03 02 [07:51:29]Write to MH i2c: E2 08 00 50 72 80 0D 03 02 00 00 00 00 3D [07:51:29]Write i2c OK [07:51:29]MH_I2C_Read... [07:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:29]Read from MH i2c: E2 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 0B 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 0B 00 50 72 00 AC 07 0F EC 8F A1 68 0B 90 00 8F [07:51:29]RAPDU: AC 07 0F EC 8F A1 68 0B 90 00 [07:51:29]wFMCommunicate OK [07:51:29]SAM_PROTO_SignData done [07:51:29]FM_MakeSignedData done [07:51:29]CreateOFDProtocolMessage [07:51:29]wFMCommunicate request_size=4 [07:51:29]MH_SAM_APDU [07:51:29]CAPDU: 80 11 00 00 [07:51:29]Write to MH i2c: E2 08 00 51 72 80 11 00 00 00 00 00 00 3D [07:51:29]Write i2c OK [07:51:29]MH_I2C_Read... [07:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:29]Read from MH i2c: E2 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 17 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: E2 17 00 51 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [07:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:51:29]wFMCommunicate OK [07:51:29]CreateOFDProtocolMessage done [07:51:29]OFDSenderStorePacket 191281 [07:51:29]StoreOFDPacket docnum=191281 [07:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 54 12 04 01 96 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 07 4E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EB 02 00 35 04 06 00 B7 7F 4B 9C A5 21 AC 07 0F EC 8F A1 68 0B [07:51:29]CheckFolder [07:51:29]dirname=/storage/ofd_packets [07:51:29]CheckFolder done [07:51:29]ProducePacketName [07:51:29]name=ofd_packets/00191281 [07:51:29]NVStorageSaveData ofd_packets/00191281 [07:51:29]File name is /storage/ofd_packets/00191281 [07:51:29]Write 298 bytes [07:51:29]NVStorageSaveData done [07:51:29]OFDSenderStorePacket done [07:51:29]KKMCreateOFDPacket done [07:51:29]NVStorageSaveData kkm_last_timestamp [07:51:29]File name is /storage/kkm_last_timestamp [07:51:29]Write 4 bytes [07:51:29]NVStorageSaveData done [07:51:29]ExternCall_PrintAddStr [07:51:29]wPrintStart [07:51:29]Write to MH i2c: 01 00 00 52 72 C4 [07:51:29]Write i2c OK [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: 01 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: 01 07 00 [07:51:29]MH_I2C_Read... [07:51:29]Read from MH i2c: 01 07 00 52 72 00 00 00 00 00 FF 0F D9 [07:51:29]RasterBufferAndPrint [07:51:29]line Счет N : (1)30573 [07:51:29]line ИНН: 02508201610067 [07:51:29]line Контрольно-Кассовый Чек [07:51:29]line ПРОДАЖА [07:51:29]line ТРК (МРК, ГНК) : 22 [07:51:29]line Товар: 2710194210 [07:51:29]line ДТ-К-5 [07:51:29]line 6.570 * 76.20 [07:51:29]line = 500.63 [07:51:29]line НДС 12% НСП 1% [07:51:29]line > о реализуемом товаре [07:51:29]line ОКРУГЛЕНИЕ: -0.63 [07:51:29]line ИТОГО: 500.00 [07:51:29]line Внесено: 500.00 [07:51:29]line СДАЧА: 0.00 [07:51:29]line НСП 1% : 4.43 [07:51:29]line НДС 12% : 53.16 [07:51:29]line Наличными: 500.00 [07:51:29]line Безнал.: 0.00 [07:51:29]line Место: АЗС № 170 "Партнер Нефть" [07:51:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:51:29]line СНО: Общий режим [07:51:29]line Чек 20 25.10.2024 07:51 [07:51:29]line Смена: 540 ФФД: 1.0 [07:51:29]line ЗНМ: 0300000110 [07:51:29]line РНМ: 0000000000091776 [07:51:29]line Версия ККМ: 001 [07:51:29]line ФМ: 0000000000871754 [07:51:29]line ФД: 191281 [07:51:29]line ФПД: 201757357286689 [07:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191281&fm=201757357286689&tin=02508201610067®Number=0000000000091776&sum=50000 [07:51:29]OFD Sender: Processing packet 191281 [packets to send 75, broken 74] [07:51:29]ProducePacketName [07:51:29]name=ofd_packets/00191281 [07:51:29]OFD Sender: To server: pG, [07:51:29]CommunicateWithHost lk.salyk.kg:30040 [07:51:29]ConnectInit lk.salyk.kg [07:51:29]written 0, free lines is 4095 [07:51:29]Connected sock=9 [07:51:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 54 12 04 01 96 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 07 4E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EB 02 00 35 04 06 00 B7 7F 4B 9C A5 21 AC 07 0F EC 8F A1 68 0B [07:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD 02 47 00 F9 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EB 02 00 F4 03 04 00 D6 F2 1A 67 B6 04 01 00 00 64 6D 6B 2A 6F 85 70 02 [07:51:30]CommunicateWithHost err = 0 [07:51:30]CheckOFDResponse [07:51:30]1017 (14) - 77093643461234 [07:51:30]1041 (16) - 0000000000871754 [07:51:30]1040 (4) - 191281 [07:51:30]1012 (4) - 25.10.2024 01:22 [07:51:30]1206 (1) - 0 [07:51:30]OFD Sender: Remove packet 191281 [07:51:30]ProducePacketName [07:51:30]name=ofd_packets/00191281 [07:51:30]NVStorageDeleteData [07:51:30]Write to MH i2c: 01 00 00 7D 72 EF [07:51:30]Write i2c OK [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: 01 [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: 01 07 00 [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: 01 07 00 7D 72 00 00 00 00 00 93 0C 95 [07:51:30]RasterBufferAndPrint [07:51:30]line [07:51:30]line [07:51:30]line [07:51:30]line [07:51:30]line [07:51:30]written 0, free lines is 3225 [07:51:30]MH_Cut [07:51:30]Write to MH i2c: D1 01 00 84 72 01 C8 [07:51:30]Write i2c OK [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: D1 [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: D1 01 00 [07:51:30]MH_I2C_Read... [07:51:30]Read from MH i2c: D1 01 00 84 72 00 C7 [07:51:30]Write to MH i2c: 01 00 00 85 72 F7 [07:51:30]Write i2c OK [07:51:30]MH_I2C_Read... [07:51:30]OFD Sender: No OFD packet to send [07:51:31]*** Cut start [07:51:31]*** Partial cut [07:51:31]*** CUTSNS_PIN = 1 [07:51:31]*** CUTSNS_PIN = 0 [07:51:31]*** Brake cut motor [07:51:31]Read from MH i2c: 01 [07:51:31]MH_I2C_Read... [07:51:31]*** Stop cut motor [07:51:31]*** Cut end [07:51:31]Read from MH i2c: 01 07 00 [07:51:31]MH_I2C_Read... [07:51:31]Read from MH i2c: 01 07 00 85 72 00 00 00 00 00 FF 0F 0C [07:51:31]process_action close_receipt done [07:51:31]requested_data is exist [07:51:31]produce_requested_data [07:51:31]requested_item fm.sn is exist - process it [07:51:31]wFMCommunicate request_size=4 [07:51:31]MH_SAM_APDU [07:51:31]CAPDU: 80 11 00 00 [07:51:31]Write to MH i2c: E2 08 00 86 72 80 11 00 00 00 00 00 00 72 [07:51:31]Write i2c OK [07:51:31]MH_I2C_Read... [07:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:31]Read from MH i2c: E2 [07:51:31]MH_I2C_Read... [07:51:31]Read from MH i2c: E2 17 00 [07:51:31]MH_I2C_Read... [07:51:31]Read from MH i2c: E2 17 00 86 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [07:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:51:31]wFMCommunicate OK [07:51:31]requested_item fd.num is exist - process it [07:51:31]SAM_PROTO_GetFieldsCounters [07:51:31]wFMCommunicate request_size=4 [07:51:31]MH_SAM_APDU [07:51:31]CAPDU: 80 13 00 00 [07:51:31]Write to MH i2c: E2 08 00 87 72 80 13 00 00 00 00 00 00 75 [07:51:31]Write i2c OK [07:51:31]MH_I2C_Read... [07:51:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:31]Read from MH i2c: E2 [07:51:31]MH_I2C_Read... [07:51:31]Read from MH i2c: E2 62 00 [07:51:31]MH_I2C_Read... [07:51:31]Read from MH i2c: E2 62 00 87 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:51:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:31]wFMCommunicate OK [07:51:31]SAM_PROTO_GetFieldsCounters done [07:51:31]requested_item shift.num is exist - process it [07:51:31]requested_item shift.opened is exist - process it [07:51:31]req_shift_opened [07:51:31]FM_GetShiftState [07:51:31]SAM_PROTO_GetShiftState [07:51:31]wFMCommunicate request_size=4 [07:51:31]MH_SAM_APDU [07:51:31]CAPDU: 80 13 01 00 [07:51:31]Write to MH i2c: E2 08 00 88 72 80 13 01 00 00 00 00 00 77 [07:51:31]Write i2c OK [07:51:31]MH_I2C_Read... [07:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:32]Read from MH i2c: E2 [07:51:32]MH_I2C_Read... [07:51:32]Read from MH i2c: E2 0E 00 [07:51:32]MH_I2C_Read... [07:51:32]Read from MH i2c: E2 0E 00 88 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3A [07:51:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:51:32]wFMCommunicate OK [07:51:32]SAM_PROTO_GetShiftState done [07:51:32]FM_GetShiftState done [07:51:32]req_shift_opened done [07:51:32]requested_item shift.open_date is exist - process it [07:51:32]req_shift_open_date [07:51:32]req_shift_open_date done [07:51:32]produce_requested_data done [07:51:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191281,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:51:32]process_action_free close_receipt [07:51:32]json_value_free [07:51:32]json_value_free done [07:51:32]process_json_proto returns [07:51:32]Send response to host [07:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191281,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:51:32]free response buf [07:51:32]execute_script done [07:51:32]execute_script returns [07:51:32]free content buf [07:51:32]Sock 8.Close socket [07:51:32]Sock 8.Thread stoped [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:09]accept exits with 10 [07:57:09]New connection [07:57:09]New thread 3066961252 created [07:57:09]Thread 3066817892 joined [07:57:09]Waiting for new connection... [07:57:09] Sock 10.Parse request [07:57:09]Sock 10.Check first char [07:57:09]Sock 10.First char is OK [07:57:09]request: POST /json_proto HTTP/1.0 [07:57:09]Method: POST [07:57:09]URL: /json_proto [07:57:09]Method is POST - this is cgi request [07:57:09]url: /json_proto [07:57:09]query_string will be loaded in cgi processing [07:57:09]execute_cgi json_proto POST (null) [07:57:09]execute_cgi path=json_proto method=POST [07:57:09]POST find Content-Length [07:57:09]Host: 172.17.63.131:8080 [07:57:09]Content-Length: 804 [07:57:09]Content-Type: application/json [07:57:09] [07:57:09]POST finish read [07:57:09]Found Content-Length = 804 [07:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:09]execute_script... [07:57: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)30574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:09]POST & json_proto [07:57:09]process_json_proto [07:57:09]json parsed OK: [07:57:09]protocol is kg_v1.0 [07:57:09]action value=close_receipt [07:57:09]process_action close_receipt [07:57:09]cmd_close_receipt [07:57:09]MH_GetDate [07:57:09]Write to MH i2c: F0 00 00 89 72 EA [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 09 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 09 00 89 72 00 5D 4F 1B 67 22 05 6E 64 1A [07:57:09]GetLastDocTimeStamp 1729842695 [07:57:09]current date 1729843037 [07:57:09]FM_GetShiftState [07:57:09]SAM_PROTO_GetShiftState [07:57:09]wFMCommunicate request_size=4 [07:57:09]MH_SAM_APDU [07:57:09]CAPDU: 80 13 01 00 [07:57:09]Write to MH i2c: E2 08 00 8A 72 80 13 01 00 00 00 00 00 79 [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:09]Read from MH i2c: E2 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 0E 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 0E 00 8A 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3C [07:57:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:57:09]wFMCommunicate OK [07:57:09]SAM_PROTO_GetShiftState done [07:57:09]FM_GetShiftState done [07:57:09]opened in 1729816399 [07:57:09]opened+sec_in_day 1729902799 [07:57:09]quantity*price = 300075 [07:57:09]sum+1 = 300077 [07:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 21 25.10.2024 07:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 191282 ФПД: 170560095262854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191282&fm=170560095262854&tin=02508201610067®Number=0000000000091776&sum=300076 [07:57:10]StoreToDocumentArchive [07:57:10]shift 540 fd 191282 [07:57:10]save to /storage/0540/doc_00191282 [07:57:10]save last doc name /storage/0540/doc_00191282 to /storage/kkm_last_doc_name [07:57:10]save OK [07:57:10]Clear old archive folders... [07:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:57:10]tlvbuf is 017CE6F0 [07:57:10]SAM_PROTO_ClearQueue [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 09 00 00 [07:57:10]Write to MH i2c: E2 08 00 97 72 80 09 00 00 00 00 00 00 7B [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 97 72 00 90 00 7D [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]SAM_PROTO_ClearQueue done [07:57:10]KKMCreateOFDPacket [07:57:10]OFDProtocolAddRootSTLVToBuf [07:57:10]FM_MakeSignedData [07:57:10]FM_MakeSignedData [07:57:10]SAM_PROTO_SignData [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 01 02 [07:57:10]Write to MH i2c: E2 08 00 98 72 80 0D 01 02 00 00 00 00 83 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 98 72 00 90 00 7E [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]wFMCommunicate request_size=255 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 5D 4F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EB 02 00 35 04 06 00 9B 1F 9D E4 [07:57:10]Write to MH i2c: E2 02 01 99 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 5D 4F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EB 02 00 35 04 06 00 9B 1F 9D E4 00 00 99 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 99 72 00 90 00 7F [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]wFMCommunicate request_size=7 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 02 02 02 18 86 [07:57:10]Write to MH i2c: E2 0A 00 9A 72 80 0D 02 02 02 00 18 86 00 00 28 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 9A 72 00 90 00 80 [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 03 02 [07:57:10]Write to MH i2c: E2 08 00 9B 72 80 0D 03 02 00 00 00 00 88 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 0B 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 0B 00 9B 72 00 0B F9 25 4E A0 ED 49 C7 90 00 9D [07:57:10]RAPDU: 0B F9 25 4E A0 ED 49 C7 90 00 [07:57:10]wFMCommunicate OK [07:57:10]SAM_PROTO_SignData done [07:57:10]FM_MakeSignedData done [07:57:10]CreateOFDProtocolMessage [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 11 00 00 [07:57:10]Write to MH i2c: E2 08 00 9C 72 80 11 00 00 00 00 00 00 88 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 17 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 17 00 9C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [07:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:57:10]wFMCommunicate OK [07:57:10]CreateOFDProtocolMessage done [07:57:10]OFDSenderStorePacket 191282 [07:57:10]StoreOFDPacket docnum=191282 [07:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 28 4A 04 01 58 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 5D 4F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EB 02 00 35 04 06 00 9B 1F 9D E4 18 86 0B F9 25 4E A0 ED 49 C7 [07:57:10]CheckFolder [07:57:10]dirname=/storage/ofd_packets [07:57:10]CheckFolder done [07:57:10]ProducePacketName [07:57:10]name=ofd_packets/00191282 [07:57:10]NVStorageSaveData ofd_packets/00191282 [07:57:10]File name is /storage/ofd_packets/00191282 [07:57:10]Write 298 bytes [07:57:10]NVStorageSaveData done [07:57:10]OFDSenderStorePacket done [07:57:10]KKMCreateOFDPacket done [07:57:10]NVStorageSaveData kkm_last_timestamp [07:57:10]File name is /storage/kkm_last_timestamp [07:57:10]Write 4 bytes [07:57:10]NVStorageSaveData done [07:57:10]ExternCall_PrintAddStr [07:57:10]wPrintStart [07:57:10]Write to MH i2c: 01 00 00 9D 72 0F [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 9D 72 00 00 00 00 00 FF 0F 24 [07:57:10]RasterBufferAndPrint [07:57:10]line Счет N : (1)30574 [07:57:10]line ИНН: 02508201610067 [07:57:10]line Контрольно-Кассовый Чек [07:57:10]line ПРОДАЖА [07:57:10]line ТРК (МРК, ГНК) : 22 [07:57:10]line Товар: 2710194210 [07:57:10]line ДТ-К-5 [07:57:10]line 39.380 * 76.20 [07:57:10]line = 3000.76 [07:57:10]line НДС 12% НСП 1% [07:57:10]line > о реализуемом товаре [07:57:10]line ИТОГО: 3000.76 [07:57:10]line НСП 1% : 26.55 [07:57:10]line НДС 12% : 318.66 [07:57:10]line Наличными: 0.00 [07:57:10]line Безнал.: 3000.76 [07:57:10]line Место: АЗС № 170 "Партнер Нефть" [07:57:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:57:10]line СНО: Общий режим [07:57:10]line Чек 21 25.10.2024 07:57 [07:57:10]line Смена: 540 ФФД: 1.0 [07:57:10]line ЗНМ: 0300000110 [07:57:10]line РНМ: 0000000000091776 [07:57:10]line Версия ККМ: 001 [07:57:10]line Платежная система: О! деньги [07:57:10]line ФМ: 0000000000871754 [07:57:10]line ФД: 191282 [07:57:10]line ФПД: 170560095262854 [07:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191282&fm=170560095262854&tin=02508201610067®Number=0000000000091776&sum=300076 [07:57:11]OFD Sender: Processing packet 191282 [packets to send 75, broken 74] [07:57:11]ProducePacketName [07:57:11]name=ofd_packets/00191282 [07:57:11]OFD Sender: To server: pG, [07:57:11]CommunicateWithHost lk.salyk.kg:30040 [07:57:11]ConnectInit lk.salyk.kg [07:57:11]written 0, free lines is 4095 [07:57:11]Connected sock=9 [07:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 28 4A 04 01 58 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 5D 4F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EB 02 00 35 04 06 00 9B 1F 9D E4 18 86 0B F9 25 4E A0 ED 49 C7 [07:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E B4 47 00 AD 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EB 02 00 F4 03 04 00 2C F4 1A 67 B6 04 01 00 00 B6 F5 C9 81 7C C6 01 B0 [07:57:11]CommunicateWithHost err = 0 [07:57:11]CheckOFDResponse [07:57:11]1017 (14) - 77093643461234 [07:57:11]1041 (16) - 0000000000871754 [07:57:11]1040 (4) - 191282 [07:57:11]1012 (4) - 25.10.2024 01:28 [07:57:11]1206 (1) - 0 [07:57:11]OFD Sender: Remove packet 191282 [07:57:11]ProducePacketName [07:57:11]name=ofd_packets/00191282 [07:57:11]NVStorageDeleteData [07:57:11]Write to MH i2c: 01 00 00 C7 72 39 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 07 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 07 00 C7 72 00 00 00 00 00 B0 0C FC [07:57:11]RasterBufferAndPrint [07:57:11]line [07:57:11]line [07:57:11]line [07:57:11]line [07:57:11]line [07:57:11]written 0, free lines is 3254 [07:57:11]MH_Cut [07:57:11]Write to MH i2c: D1 01 00 CE 72 01 12 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 01 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 01 00 CE 72 00 11 [07:57:11]Write to MH i2c: 01 00 00 CF 72 41 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:12]OFD Sender: No OFD packet to send [07:57:12]*** Cut start [07:57:12]*** Partial cut [07:57:12]*** CUTSNS_PIN = 1 [07:57:12]*** CUTSNS_PIN = 0 [07:57:12]*** Brake cut motor [07:57:13]Read from MH i2c: 01 [07:57:13]MH_I2C_Read... [07:57:13]*** Stop cut motor [07:57:13]*** Cut end [07:57:13]Read from MH i2c: 01 07 00 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: 01 07 00 CF 72 00 00 00 00 00 FF 0F 56 [07:57:13]process_action close_receipt done [07:57:13]requested_data is exist [07:57:13]produce_requested_data [07:57:13]requested_item fm.sn is exist - process it [07:57:13]wFMCommunicate request_size=4 [07:57:13]MH_SAM_APDU [07:57:13]CAPDU: 80 11 00 00 [07:57:13]Write to MH i2c: E2 08 00 D0 72 80 11 00 00 00 00 00 00 BC [07:57:13]Write i2c OK [07:57:13]MH_I2C_Read... [07:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:13]Read from MH i2c: E2 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 17 00 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 17 00 D0 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [07:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:57:13]wFMCommunicate OK [07:57:13]requested_item fd.num is exist - process it [07:57:13]SAM_PROTO_GetFieldsCounters [07:57:13]wFMCommunicate request_size=4 [07:57:13]MH_SAM_APDU [07:57:13]CAPDU: 80 13 00 00 [07:57:13]Write to MH i2c: E2 08 00 D1 72 80 13 00 00 00 00 00 00 BF [07:57:13]Write i2c OK [07:57:13]MH_I2C_Read... [07:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:13]Read from MH i2c: E2 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 62 00 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 62 00 D1 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [07:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:13]wFMCommunicate OK [07:57:13]SAM_PROTO_GetFieldsCounters done [07:57:13]requested_item shift.num is exist - process it [07:57:13]requested_item shift.opened is exist - process it [07:57:13]req_shift_opened [07:57:13]FM_GetShiftState [07:57:13]SAM_PROTO_GetShiftState [07:57:13]wFMCommunicate request_size=4 [07:57:13]MH_SAM_APDU [07:57:13]CAPDU: 80 13 01 00 [07:57:13]Write to MH i2c: E2 08 00 D2 72 80 13 01 00 00 00 00 00 C1 [07:57:13]Write i2c OK [07:57:13]MH_I2C_Read... [07:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:13]Read from MH i2c: E2 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 0E 00 [07:57:13]MH_I2C_Read... [07:57:13]Read from MH i2c: E2 0E 00 D2 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 84 [07:57:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [07:57:13]wFMCommunicate OK [07:57:13]SAM_PROTO_GetShiftState done [07:57:13]FM_GetShiftState done [07:57:13]req_shift_opened done [07:57:13]requested_item shift.open_date is exist - process it [07:57:13]req_shift_open_date [07:57:13]req_shift_open_date done [07:57:13]produce_requested_data done [07:57:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191282,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [07:57:13]process_action_free close_receipt [07:57:13]json_value_free [07:57:13]json_value_free done [07:57:13]process_json_proto returns [07:57:13]Send response to host [07:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191282,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [07:57:13]free response buf [07:57:13]execute_script done [07:57:13]execute_script returns [07:57:13]free content buf [07:57:13]Sock 10.Close socket [07:57:13]Sock 10.Thread stoped [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [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:13]accept exits with 8 [08:07:13]New connection [08:07:13]New thread 3066817892 created [08:07:13]Thread 3066961252 joined [08:07:13]Waiting for new connection... [08:07:13] Sock 8.Parse request [08:07:13]Sock 8.Check first char [08:07:13]Sock 8.First char is OK [08:07:13]request: POST /json_proto HTTP/1.0 [08:07:13]Method: POST [08:07:13]URL: /json_proto [08:07:13]Method is POST - this is cgi request [08:07:13]url: /json_proto [08:07:13]query_string will be loaded in cgi processing [08:07:13]execute_cgi json_proto POST (null) [08:07:13]execute_cgi path=json_proto method=POST [08:07:13]POST find Content-Length [08:07:13]Host: 172.17.63.131:8080 [08:07:13]Content-Length: 862 [08:07:13]Content-Type: application/json [08:07:13] [08:07:13]POST finish read [08:07:13]Found Content-Length = 862 [08:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.310, "sum" : 355.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 355.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:13]execute_script... [08:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.310, "sum" : 355.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 355.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:13]POST & json_proto [08:07:13]process_json_proto [08:07:13]json parsed OK: [08:07:13]protocol is kg_v1.0 [08:07:13]action value=close_receipt [08:07:13]process_action close_receipt [08:07:13]cmd_close_receipt [08:07:13]MH_GetDate [08:07:13]Write to MH i2c: F0 00 00 D3 72 34 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 D3 72 00 B9 51 1B 67 22 05 6E 64 C2 [08:07:13]GetLastDocTimeStamp 1729843037 [08:07:13]current date 1729843641 [08:07:13]FM_GetShiftState [08:07:13]SAM_PROTO_GetShiftState [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 13 01 00 [08:07:13]Write to MH i2c: E2 08 00 D4 72 80 13 01 00 00 00 00 00 C3 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 D4 72 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 86 [08:07:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetShiftState done [08:07:13]FM_GetShiftState done [08:07:13]opened in 1729816399 [08:07:13]opened+sec_in_day 1729902799 [08:07:13]quantity*price = 35523 [08:07:13]sum+1 = 35525 [08:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 355.24 НСП 1% : 3.14 НДС 12% : 37.72 Наличными: 0.00 Безнал.: 355.24 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 22 25.10.2024 08:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191283 ФПД: 180700176324700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191283&fm=180700176324700&tin=02508201610067®Number=0000000000091776&sum=35524 [08:07:14]StoreToDocumentArchive [08:07:14]shift 540 fd 191283 [08:07:14]save to /storage/0540/doc_00191283 [08:07:14]save last doc name /storage/0540/doc_00191283 to /storage/kkm_last_doc_name [08:07:14]save OK [08:07:14]Clear old archive folders... [08:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:14]tlvbuf is 01777A90 [08:07:14]SAM_PROTO_ClearQueue [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 09 00 00 [08:07:14]Write to MH i2c: E2 08 00 E1 72 80 09 00 00 00 00 00 00 C5 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 E1 72 00 90 00 C7 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_ClearQueue done [08:07:14]KKMCreateOFDPacket [08:07:14]OFDProtocolAddRootSTLVToBuf [08:07:14]FM_MakeSignedData [08:07:14]FM_MakeSignedData [08:07:14]SAM_PROTO_SignData [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 01 02 [08:07:14]Write to MH i2c: E2 08 00 E2 72 80 0D 01 02 00 00 00 00 CD [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 E2 72 00 90 00 C8 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=255 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B9 51 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EB 02 00 35 04 06 00 A4 [08:07:14]Write to MH i2c: E2 02 01 E3 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B9 51 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EB 02 00 35 04 06 00 A4 00 00 5D [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 E3 72 00 90 00 C9 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=10 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 05 58 89 D2 18 5C [08:07:14]Write to MH i2c: E2 0D 00 E4 72 80 0D 02 02 05 00 58 89 D2 18 5C 00 00 01 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 E4 72 00 90 00 CA [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 03 02 [08:07:14]Write to MH i2c: E2 08 00 E5 72 80 0D 03 02 00 00 00 00 D2 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0B 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0B 00 E5 72 00 BC 93 12 7D 55 70 8E 5C 90 00 60 [08:07:14]RAPDU: BC 93 12 7D 55 70 8E 5C 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_SignData done [08:07:14]FM_MakeSignedData done [08:07:14]CreateOFDProtocolMessage [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 11 00 00 [08:07:14]Write to MH i2c: E2 08 00 E6 72 80 11 00 00 00 00 00 00 D2 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 E6 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [08:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:07:14]wFMCommunicate OK [08:07:14]CreateOFDProtocolMessage done [08:07:14]OFDSenderStorePacket 191283 [08:07:14]StoreOFDPacket docnum=191283 [08:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8A B1 07 01 97 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B9 51 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EB 02 00 35 04 06 00 A4 58 89 D2 18 5C BC 93 12 7D 55 70 8E 5C [08:07:14]CheckFolder [08:07:14]dirname=/storage/ofd_packets [08:07:14]CheckFolder done [08:07:14]ProducePacketName [08:07:14]name=ofd_packets/00191283 [08:07:14]NVStorageSaveData ofd_packets/00191283 [08:07:14]File name is /storage/ofd_packets/00191283 [08:07:14]Write 301 bytes [08:07:14]NVStorageSaveData done [08:07:14]OFDSenderStorePacket done [08:07:14]KKMCreateOFDPacket done [08:07:14]NVStorageSaveData kkm_last_timestamp [08:07:14]File name is /storage/kkm_last_timestamp [08:07:14]Write 4 bytes [08:07:14]NVStorageSaveData done [08:07:14]ExternCall_PrintAddStr [08:07:14]wPrintStart [08:07:14]Write to MH i2c: 01 00 00 E7 72 59 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 07 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 07 00 E7 72 00 00 00 00 00 FF 0F 6E [08:07:14]RasterBufferAndPrint [08:07:14]line Счет N : (1)30575 [08:07:14]line ИНН: 02508201610067 [08:07:14]line Контрольно-Кассовый Чек [08:07:14]line ПРОДАЖА [08:07:14]line ТРК (МРК, ГНК) : 21 [08:07:14]line Товар: 2710124130 [08:07:14]line Аи-92-К-5 [08:07:14]line 5.310 * 66.90 [08:07:14]line = 355.24 [08:07:14]line НДС 12% НСП 1% [08:07:14]line > о реализуемом товаре [08:07:14]line ИТОГО: 355.24 [08:07:14]line НСП 1% : 3.14 [08:07:14]line НДС 12% : 37.72 [08:07:14]line Наличными: 0.00 [08:07:14]line Безнал.: 355.24 [08:07:14]line Место: АЗС № 170 "Партнер Нефть" [08:07:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:07:14]line СНО: Общий режим [08:07:14]line Чек 22 25.10.2024 08:07 [08:07:14]line Смена: 540 ФФД: 1.0 [08:07:14]line ЗНМ: 0300000110 [08:07:14]line РНМ: 0000000000091776 [08:07:14]line Версия ККМ: 001 [08:07:14]line Платежная система: Кыргызкоммерцбанк [08:07:14]line ФМ: 0000000000871754 [08:07:14]line ФД: 191283 [08:07:14]line ФПД: 180700176324700 [08:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191283&fm=180700176324700&tin=02508201610067®Number=0000000000091776&sum=35524 [08:07:15]written 0, free lines is 4095 [08:07:15]OFD Sender: Processing packet 191283 [packets to send 75, broken 74] [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00191283 [08:07:15]OFD Sender: To server: pG, [08:07:15]CommunicateWithHost lk.salyk.kg:30040 [08:07:15]ConnectInit lk.salyk.kg [08:07:15]Connected sock=10 [08:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8A B1 07 01 97 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B9 51 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EB 02 00 35 04 06 00 A4 58 89 D2 18 5C BC 93 12 7D 55 70 8E 5C [08:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 1C 47 00 0B 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EB 02 00 F4 03 04 00 88 F6 1A 67 B6 04 01 00 00 C4 F2 C0 F2 2A 71 C4 DB [08:07:15]CommunicateWithHost err = 0 [08:07:15]CheckOFDResponse [08:07:15]1017 (14) - 77093643461234 [08:07:15]1041 (16) - 0000000000871754 [08:07:15]1040 (4) - 191283 [08:07:15]1012 (4) - 25.10.2024 01:38 [08:07:15]1206 (1) - 0 [08:07:15]OFD Sender: Remove packet 191283 [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00191283 [08:07:15]NVStorageDeleteData [08:07:15]Write to MH i2c: 01 00 00 11 73 84 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 11 73 00 00 00 00 00 B1 0C 48 [08:07:15]RasterBufferAndPrint [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]line [08:07:15]written 0, free lines is 3256 [08:07:15]MH_Cut [08:07:15]Write to MH i2c: D1 01 00 18 73 01 5D [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: D1 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: D1 01 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: D1 01 00 18 73 00 5C [08:07:15]Write to MH i2c: 01 00 00 19 73 8C [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]OFD Sender: No OFD packet to send [08:07:16]*** Cut start [08:07:16]*** Partial cut [08:07:16]*** CUTSNS_PIN = 1 [08:07:16]*** CUTSNS_PIN = 0 [08:07:16]*** Brake cut motor [08:07:17]*** Stop cut motor [08:07:17]*** Cut end [08:07:17]Read from MH i2c: 01 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 19 73 00 00 00 00 00 FF 0F A1 [08:07:17]process_action close_receipt done [08:07:17]requested_data is exist [08:07:17]produce_requested_data [08:07:17]requested_item fm.sn is exist - process it [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 11 00 00 [08:07:17]Write to MH i2c: E2 08 00 1A 73 80 11 00 00 00 00 00 00 07 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 1A 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [08:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:07:17]wFMCommunicate OK [08:07:17]requested_item fd.num is exist - process it [08:07:17]SAM_PROTO_GetFieldsCounters [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 00 00 [08:07:17]Write to MH i2c: E2 08 00 1B 73 80 13 00 00 00 00 00 00 0A [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 62 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 62 00 1B 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [08:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetFieldsCounters done [08:07:17]requested_item shift.num is exist - process it [08:07:17]requested_item shift.opened is exist - process it [08:07:17]req_shift_opened [08:07:17]FM_GetShiftState [08:07:17]SAM_PROTO_GetShiftState [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 01 00 [08:07:17]Write to MH i2c: E2 08 00 1C 73 80 13 01 00 00 00 00 00 0C [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 1C 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CF [08:07:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetShiftState done [08:07:17]FM_GetShiftState done [08:07:17]req_shift_opened done [08:07:17]requested_item shift.open_date is exist - process it [08:07:17]req_shift_open_date [08:07:17]req_shift_open_date done [08:07:17]produce_requested_data done [08:07:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191283,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:07:17]process_action_free close_receipt [08:07:17]json_value_free [08:07:17]json_value_free done [08:07:17]process_json_proto returns [08:07:17]Send response to host [08:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191283,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:07:17]free response buf [08:07:17]execute_script done [08:07:17]execute_script returns [08:07:17]free content buf [08:07:17]Sock 8.Close socket [08:07:17]Sock 8.Thread stoped [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:37]accept exits with 9 [08:10:37]New connection [08:10:37]New thread 3066961252 created [08:10:37]Thread 3066817892 joined [08:10:37]Waiting for new connection... [08:10:37] Sock 9.Parse request [08:10:37]Sock 9.Check first char [08:10:37]Sock 9.First char is OK [08:10:37]request: POST /json_proto HTTP/1.0 [08:10:37]Method: POST [08:10:37]URL: /json_proto [08:10:37]Method is POST - this is cgi request [08:10:37]url: /json_proto [08:10:37]query_string will be loaded in cgi processing [08:10:37]execute_cgi json_proto POST (null) [08:10:37]execute_cgi path=json_proto method=POST [08:10:37]POST find Content-Length [08:10:37]Host: 172.17.63.131:8080 [08:10:37]Content-Length: 676 [08:10:37]Content-Type: application/json [08:10:37] [08:10:37]POST finish read [08:10:37]Found Content-Length = 676 [08:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:37]execute_script... [08:10: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)30576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:37]POST & json_proto [08:10:37]process_json_proto [08:10:37]json parsed OK: [08:10:37]protocol is kg_v1.0 [08:10:37]action value=close_receipt [08:10:37]process_action close_receipt [08:10:37]cmd_close_receipt [08:10:37]MH_GetDate [08:10:37]Write to MH i2c: F0 00 00 1D 73 7F [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 09 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 09 00 1D 73 00 85 52 1B 67 22 05 6E 64 DA [08:10:37]GetLastDocTimeStamp 1729843641 [08:10:37]current date 1729843845 [08:10:37]FM_GetShiftState [08:10:37]SAM_PROTO_GetShiftState [08:10:37]wFMCommunicate request_size=4 [08:10:37]MH_SAM_APDU [08:10:37]CAPDU: 80 13 01 00 [08:10:37]Write to MH i2c: E2 08 00 1E 73 80 13 01 00 00 00 00 00 0E [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:37]Read from MH i2c: E2 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: E2 0E 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: E2 0E 00 1E 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D1 [08:10:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:10:37]wFMCommunicate OK [08:10:37]SAM_PROTO_GetShiftState done [08:10:37]FM_GetShiftState done [08:10:37]opened in 1729816399 [08:10:37]opened+sec_in_day 1729902799 [08:10:37]quantity*price = 40006 [08:10:37]sum+1 = 40007 [08:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 23 25.10.2024 08:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191284 ФПД: 145660741596479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191284&fm=145660741596479&tin=02508201610067®Number=0000000000091776&sum=40000 [08:10:38]StoreToDocumentArchive [08:10:38]shift 540 fd 191284 [08:10:38]save to /storage/0540/doc_00191284 [08:10:38]save last doc name /storage/0540/doc_00191284 to /storage/kkm_last_doc_name [08:10:38]save OK [08:10:38]Clear old archive folders... [08:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:38]tlvbuf is B6F57790 [08:10:38]SAM_PROTO_ClearQueue [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 09 00 00 [08:10:38]Write to MH i2c: E2 08 00 2B 73 80 09 00 00 00 00 00 00 10 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 2B 73 00 90 00 12 [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]SAM_PROTO_ClearQueue done [08:10:38]KKMCreateOFDPacket [08:10:38]OFDProtocolAddRootSTLVToBuf [08:10:38]FM_MakeSignedData [08:10:38]FM_MakeSignedData [08:10:38]SAM_PROTO_SignData [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 01 02 [08:10:38]Write to MH i2c: E2 08 00 2C 73 80 0D 01 02 00 00 00 00 18 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 2C 73 00 90 00 13 [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=255 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 85 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EB 02 00 35 04 06 00 84 [08:10:38]Write to MH i2c: E2 02 01 2D 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 85 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EB 02 00 35 04 06 00 84 00 00 AE [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 2D 73 00 90 00 14 [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=10 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 02 02 05 7A 48 C2 B5 3F [08:10:38]Write to MH i2c: E2 0D 00 2E 73 80 0D 02 02 05 00 7A 48 C2 B5 3F 00 00 9D [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 2E 73 00 90 00 15 [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 03 02 [08:10:38]Write to MH i2c: E2 08 00 2F 73 80 0D 03 02 00 00 00 00 1D [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 0B 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 0B 00 2F 73 00 70 AC D9 1B B9 9E ED EB 90 00 5D [08:10:38]RAPDU: 70 AC D9 1B B9 9E ED EB 90 00 [08:10:38]wFMCommunicate OK [08:10:38]SAM_PROTO_SignData done [08:10:38]FM_MakeSignedData done [08:10:38]CreateOFDProtocolMessage [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 11 00 00 [08:10:38]Write to MH i2c: E2 08 00 30 73 80 11 00 00 00 00 00 00 1D [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 17 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 17 00 30 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [08:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:10:38]wFMCommunicate OK [08:10:38]CreateOFDProtocolMessage done [08:10:38]OFDSenderStorePacket 191284 [08:10:38]StoreOFDPacket docnum=191284 [08:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 01 07 01 00 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 85 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EB 02 00 35 04 06 00 84 7A 48 C2 B5 3F 70 AC D9 1B B9 9E ED EB [08:10:38]CheckFolder [08:10:38]dirname=/storage/ofd_packets [08:10:38]CheckFolder done [08:10:38]ProducePacketName [08:10:38]name=ofd_packets/00191284 [08:10:38]NVStorageSaveData ofd_packets/00191284 [08:10:38]File name is /storage/ofd_packets/00191284 [08:10:38]Write 301 bytes [08:10:38]NVStorageSaveData done [08:10:38]OFDSenderStorePacket done [08:10:38]KKMCreateOFDPacket done [08:10:38]NVStorageSaveData kkm_last_timestamp [08:10:38]File name is /storage/kkm_last_timestamp [08:10:38]Write 4 bytes [08:10:38]NVStorageSaveData done [08:10:38]ExternCall_PrintAddStr [08:10:38]wPrintStart [08:10:38]Write to MH i2c: 01 00 00 31 73 A4 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: 01 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: 01 07 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: 01 07 00 31 73 00 00 00 00 00 FF 0F B9 [08:10:38]RasterBufferAndPrint [08:10:38]line Счет N : (1)30576 [08:10:38]line ИНН: 02508201610067 [08:10:38]line Контрольно-Кассовый Чек [08:10:38]line ПРОДАЖА [08:10:38]line ТРК (МРК, ГНК) : 12 [08:10:38]line Товар: 2710124130 [08:10:38]line Аи-92-К-5 [08:10:38]line 5.980 * 66.90 [08:10:38]line = 400.06 [08:10:38]line НДС 12% НСП 1% [08:10:38]line > о реализуемом товаре [08:10:38]line ОКРУГЛЕНИЕ: -0.06 [08:10:38]line ИТОГО: 400.00 [08:10:38]line Внесено: 400.00 [08:10:38]line СДАЧА: 0.00 [08:10:38]line НСП 1% : 3.54 [08:10:38]line НДС 12% : 42.48 [08:10:38]line Наличными: 400.00 [08:10:38]line Безнал.: 0.00 [08:10:38]line Место: АЗС № 170 "Партнер Нефть" [08:10:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:10:38]line СНО: Общий режим [08:10:38]line Чек 23 25.10.2024 08:10 [08:10:38]line Смена: 540 ФФД: 1.0 [08:10:38]line ЗНМ: 0300000110 [08:10:38]line РНМ: 0000000000091776 [08:10:38]line Версия ККМ: 001 [08:10:38]line ФМ: 0000000000871754 [08:10:38]line ФД: 191284 [08:10:38]line ФПД: 145660741596479 [08:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191284&fm=145660741596479&tin=02508201610067®Number=0000000000091776&sum=40000 [08:10:39]OFD Sender: Processing packet 191284 [packets to send 75, broken 74] [08:10:39]ProducePacketName [08:10:39]name=ofd_packets/00191284 [08:10:39]OFD Sender: To server: pG, [08:10:39]CommunicateWithHost lk.salyk.kg:30040 [08:10:39]ConnectInit lk.salyk.kg [08:10:39]written 0, free lines is 4095 [08:10:39]Connected sock=10 [08:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 01 07 01 00 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 85 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EB 02 00 35 04 06 00 84 7A 48 C2 B5 3F 70 AC D9 1B B9 9E ED EB [08:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 0D 47 00 92 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EB 02 00 F4 03 04 00 54 F7 1A 67 B6 04 01 00 00 83 BE 52 7C BA F7 78 63 [08:10:39]CommunicateWithHost err = 0 [08:10:39]CheckOFDResponse [08:10:39]1017 (14) - 77093643461234 [08:10:39]1041 (16) - 0000000000871754 [08:10:39]1040 (4) - 191284 [08:10:39]1012 (4) - 25.10.2024 01:41 [08:10:39]1206 (1) - 0 [08:10:39]OFD Sender: Remove packet 191284 [08:10:39]ProducePacketName [08:10:39]name=ofd_packets/00191284 [08:10:39]NVStorageDeleteData [08:10:39]Write to MH i2c: 01 00 00 5C 73 CF [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 5C 73 00 00 00 00 00 A0 0C 82 [08:10:39]RasterBufferAndPrint [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]written 0, free lines is 3236 [08:10:39]MH_Cut [08:10:39]Write to MH i2c: D1 01 00 63 73 01 A8 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 01 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 01 00 63 73 00 A7 [08:10:39]Write to MH i2c: 01 00 00 64 73 D7 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:40]OFD Sender: No OFD packet to send [08:10:40]*** Cut start [08:10:40]*** Partial cut [08:10:40]*** CUTSNS_PIN = 1 [08:10:40]*** CUTSNS_PIN = 0 [08:10:40]*** Brake cut motor [08:10:41]Read from MH i2c: 01 [08:10:41]MH_I2C_Read... [08:10:41]*** Stop cut motor [08:10:41]*** Cut end [08:10:41]Read from MH i2c: 01 07 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: 01 07 00 64 73 00 00 00 00 00 FF 0F EC [08:10:41]process_action close_receipt done [08:10:41]requested_data is exist [08:10:41]produce_requested_data [08:10:41]requested_item fm.sn is exist - process it [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 11 00 00 [08:10:41]Write to MH i2c: E2 08 00 65 73 80 11 00 00 00 00 00 00 52 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 65 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [08:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:10:41]wFMCommunicate OK [08:10:41]requested_item fd.num is exist - process it [08:10:41]SAM_PROTO_GetFieldsCounters [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 13 00 00 [08:10:41]Write to MH i2c: E2 08 00 66 73 80 13 00 00 00 00 00 00 55 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 62 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 62 00 66 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [08:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_GetFieldsCounters done [08:10:41]requested_item shift.num is exist - process it [08:10:41]requested_item shift.opened is exist - process it [08:10:41]req_shift_opened [08:10:41]FM_GetShiftState [08:10:41]SAM_PROTO_GetShiftState [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 13 01 00 [08:10:41]Write to MH i2c: E2 08 00 67 73 80 13 01 00 00 00 00 00 57 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0E 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0E 00 67 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1A [08:10:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_GetShiftState done [08:10:41]FM_GetShiftState done [08:10:41]req_shift_opened done [08:10:41]requested_item shift.open_date is exist - process it [08:10:41]req_shift_open_date [08:10:41]req_shift_open_date done [08:10:41]produce_requested_data done [08:10:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191284,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:10:41]process_action_free close_receipt [08:10:41]json_value_free [08:10:41]json_value_free done [08:10:41]process_json_proto returns [08:10:41]Send response to host [08:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191284,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:10:41]free response buf [08:10:41]execute_script done [08:10:41]execute_script returns [08:10:41]free content buf [08:10:41]Sock 9.Close socket [08:10:41]Sock 9.Thread stoped [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:54]accept exits with 8 [08:10:54]New connection [08:10:54]New thread 3066817892 created [08:10:54]Thread 3066961252 joined [08:10:54]Waiting for new connection... [08:10:54] Sock 8.Parse request [08:10:54]Sock 8.Check first char [08:10:54]Sock 8.First char is OK [08:10:54]request: POST /json_proto HTTP/1.0 [08:10:54]Method: POST [08:10:54]URL: /json_proto [08:10:54]Method is POST - this is cgi request [08:10:54]url: /json_proto [08:10:54]query_string will be loaded in cgi processing [08:10:54]execute_cgi json_proto POST (null) [08:10:54]execute_cgi path=json_proto method=POST [08:10:54]POST find Content-Length [08:10:54]Host: 172.17.63.131:8080 [08:10:54]Content-Length: 676 [08:10:54]Content-Type: application/json [08:10:54] [08:10:54]POST finish read [08:10:54]Found Content-Length = 676 [08:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:54]execute_script... [08:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:54]POST & json_proto [08:10:54]process_json_proto [08:10:54]json parsed OK: [08:10:54]protocol is kg_v1.0 [08:10:54]action value=close_receipt [08:10:54]process_action close_receipt [08:10:54]cmd_close_receipt [08:10:54]MH_GetDate [08:10:54]Write to MH i2c: F0 00 00 68 73 CA [08:10:54]Write i2c OK [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: F0 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: F0 09 00 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: F0 09 00 68 73 00 96 52 1B 67 22 05 6E 64 36 [08:10:54]GetLastDocTimeStamp 1729843845 [08:10:54]current date 1729843862 [08:10:54]FM_GetShiftState [08:10:54]SAM_PROTO_GetShiftState [08:10:54]wFMCommunicate request_size=4 [08:10:54]MH_SAM_APDU [08:10:54]CAPDU: 80 13 01 00 [08:10:54]Write to MH i2c: E2 08 00 69 73 80 13 01 00 00 00 00 00 59 [08:10:54]Write i2c OK [08:10:54]MH_I2C_Read... [08:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:54]Read from MH i2c: E2 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: E2 0E 00 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: E2 0E 00 69 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1C [08:10:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:10:54]wFMCommunicate OK [08:10:54]SAM_PROTO_GetShiftState done [08:10:54]FM_GetShiftState done [08:10:54]opened in 1729816399 [08:10:54]opened+sec_in_day 1729902799 [08:10:54]quantity*price = 50041 [08:10:54]sum+1 = 50042 [08:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 24 25.10.2024 08:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191285 ФПД: 116130175402700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081102&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191285&fm=116130175402700&tin=02508201610067®Number=0000000000091776&sum=50000 [08:10:55]StoreToDocumentArchive [08:10:55]shift 540 fd 191285 [08:10:55]save to /storage/0540/doc_00191285 [08:10:55]save last doc name /storage/0540/doc_00191285 to /storage/kkm_last_doc_name [08:10:55]save OK [08:10:55]Clear old archive folders... [08:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:55]tlvbuf is 016334B0 [08:10:55]SAM_PROTO_ClearQueue [08:10:55]wFMCommunicate request_size=4 [08:10:55]MH_SAM_APDU [08:10:55]CAPDU: 80 09 00 00 [08:10:55]Write to MH i2c: E2 08 00 76 73 80 09 00 00 00 00 00 00 5B [08:10:55]Write i2c OK [08:10:55]MH_I2C_Read... [08:10:55]Read from MH i2c: E2 [08:10:55]MH_I2C_Read... [08:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:55]Read from MH i2c: E2 03 00 [08:10:55]MH_I2C_Read... [08:10:55]Read from MH i2c: E2 03 00 76 73 00 90 00 5D [08:10:55]RAPDU: 90 00 [08:10:55]wFMCommunicate OK [08:10:55]SAM_PROTO_ClearQueue done [08:10:55]KKMCreateOFDPacket [08:10:55]OFDProtocolAddRootSTLVToBuf [08:10:55]FM_MakeSignedData [08:10:55]FM_MakeSignedData [08:10:55]SAM_PROTO_SignData [08:10:55]wFMCommunicate request_size=4 [08:10:55]MH_SAM_APDU [08:10:55]CAPDU: 80 0D 01 02 [08:10:55]Write to MH i2c: E2 08 00 77 73 80 0D 01 02 00 00 00 00 63 [08:10:55]Write i2c OK [08:10:55]MH_I2C_Read... [08:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:55]Read from MH i2c: E2 [08:10:55]MH_I2C_Read... [08:10:55]Read from MH i2c: E2 03 00 [08:10:55]MH_I2C_Read... [08:10:55]Read from MH i2c: E2 03 00 77 73 00 90 00 5E [08:10:55]RAPDU: 90 00 [08:10:55]wFMCommunicate OK [08:10:55]wFMCommunicate request_size=255 [08:10:55]MH_SAM_APDU [08:10:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 96 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EB 02 00 35 04 06 00 69 [08:10:55]Write to MH i2c: E2 02 01 78 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 96 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EB 02 00 35 04 06 00 69 00 00 22 [08:10:55]Write i2c OK [08:10:55]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 03 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 03 00 78 73 00 90 00 5F [08:10:56]RAPDU: 90 00 [08:10:56]wFMCommunicate OK [08:10:56]wFMCommunicate request_size=10 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 0D 02 02 05 9E A9 DA 42 CC [08:10:56]Write to MH i2c: E2 0D 00 79 73 80 0D 02 02 05 00 9E A9 DA 42 CC 00 00 9F [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 03 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 03 00 79 73 00 90 00 60 [08:10:56]RAPDU: 90 00 [08:10:56]wFMCommunicate OK [08:10:56]wFMCommunicate request_size=4 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 0D 03 02 [08:10:56]Write to MH i2c: E2 08 00 7A 73 80 0D 03 02 00 00 00 00 68 [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 0B 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 0B 00 7A 73 00 84 80 0A FC 3D 95 E6 59 90 00 84 [08:10:56]RAPDU: 84 80 0A FC 3D 95 E6 59 90 00 [08:10:56]wFMCommunicate OK [08:10:56]SAM_PROTO_SignData done [08:10:56]FM_MakeSignedData done [08:10:56]CreateOFDProtocolMessage [08:10:56]wFMCommunicate request_size=4 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 11 00 00 [08:10:56]Write to MH i2c: E2 08 00 7B 73 80 11 00 00 00 00 00 00 68 [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 17 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 17 00 7B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [08:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:10:56]wFMCommunicate OK [08:10:56]CreateOFDProtocolMessage done [08:10:56]OFDSenderStorePacket 191285 [08:10:56]StoreOFDPacket docnum=191285 [08:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 8A 07 01 93 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 96 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EB 02 00 35 04 06 00 69 9E A9 DA 42 CC 84 80 0A FC 3D 95 E6 59 [08:10:56]CheckFolder [08:10:56]dirname=/storage/ofd_packets [08:10:56]CheckFolder done [08:10:56]ProducePacketName [08:10:56]name=ofd_packets/00191285 [08:10:56]NVStorageSaveData ofd_packets/00191285 [08:10:56]File name is /storage/ofd_packets/00191285 [08:10:56]Write 301 bytes [08:10:56]NVStorageSaveData done [08:10:56]OFDSenderStorePacket done [08:10:56]KKMCreateOFDPacket done [08:10:56]NVStorageSaveData kkm_last_timestamp [08:10:56]File name is /storage/kkm_last_timestamp [08:10:56]Write 4 bytes [08:10:56]NVStorageSaveData done [08:10:56]ExternCall_PrintAddStr [08:10:56]wPrintStart [08:10:56]Write to MH i2c: 01 00 00 7C 73 EF [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: 01 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: 01 07 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: 01 07 00 7C 73 00 00 00 00 00 FF 0F 04 [08:10:56]RasterBufferAndPrint [08:10:56]line Счет N : (1)30577 [08:10:56]line ИНН: 02508201610067 [08:10:56]line Контрольно-Кассовый Чек [08:10:56]line ПРОДАЖА [08:10:56]line ТРК (МРК, ГНК) : 21 [08:10:56]line Товар: 2710124130 [08:10:56]line Аи-92-К-5 [08:10:56]line 7.480 * 66.90 [08:10:56]line = 500.41 [08:10:56]line НДС 12% НСП 1% [08:10:56]line > о реализуемом товаре [08:10:56]line ОКРУГЛЕНИЕ: -0.41 [08:10:56]line ИТОГО: 500.00 [08:10:56]line Внесено: 500.00 [08:10:56]line СДАЧА: 0.00 [08:10:56]line НСП 1% : 4.43 [08:10:56]line НДС 12% : 53.14 [08:10:56]line Наличными: 500.00 [08:10:56]line Безнал.: 0.00 [08:10:56]line Место: АЗС № 170 "Партнер Нефть" [08:10:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:10:56]line СНО: Общий режим [08:10:56]line Чек 24 25.10.2024 08:11 [08:10:56]line Смена: 540 ФФД: 1.0 [08:10:56]line ЗНМ: 0300000110 [08:10:56]line РНМ: 0000000000091776 [08:10:56]line Версия ККМ: 001 [08:10:56]line ФМ: 0000000000871754 [08:10:56]line ФД: 191285 [08:10:56]line ФПД: 116130175402700 [08:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081102&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191285&fm=116130175402700&tin=02508201610067®Number=0000000000091776&sum=50000 [08:10:56]OFD Sender: Processing packet 191285 [packets to send 75, broken 74] [08:10:56]ProducePacketName [08:10:56]name=ofd_packets/00191285 [08:10:56]OFD Sender: To server: pG, [08:10:56]CommunicateWithHost lk.salyk.kg:30040 [08:10:56]ConnectInit lk.salyk.kg [08:10:56]written 0, free lines is 4095 [08:10:56]Connected sock=9 [08:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 8A 07 01 93 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 96 52 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EB 02 00 35 04 06 00 69 9E A9 DA 42 CC 84 80 0A FC 3D 95 E6 59 [08:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C A5 47 00 89 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EB 02 00 F4 03 04 00 65 F7 1A 67 B6 04 01 00 00 03 D5 06 62 B1 C5 07 EB [08:10:57]CommunicateWithHost err = 0 [08:10:57]CheckOFDResponse [08:10:57]1017 (14) - 77093643461234 [08:10:57]1041 (16) - 0000000000871754 [08:10:57]1040 (4) - 191285 [08:10:57]1012 (4) - 25.10.2024 01:41 [08:10:57]1206 (1) - 0 [08:10:57]OFD Sender: Remove packet 191285 [08:10:57]ProducePacketName [08:10:57]name=ofd_packets/00191285 [08:10:57]NVStorageDeleteData [08:10:57]Write to MH i2c: 01 00 00 A7 73 1A [08:10:57]Write i2c OK [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: 01 [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: 01 07 00 [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: 01 07 00 A7 73 00 00 00 00 00 91 0C BE [08:10:57]RasterBufferAndPrint [08:10:57]line [08:10:57]line [08:10:57]line [08:10:57]line [08:10:57]line [08:10:57]written 0, free lines is 3223 [08:10:57]MH_Cut [08:10:57]Write to MH i2c: D1 01 00 AE 73 01 F3 [08:10:57]Write i2c OK [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: D1 [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: D1 01 00 [08:10:57]MH_I2C_Read... [08:10:57]Read from MH i2c: D1 01 00 AE 73 00 F2 [08:10:57]Write to MH i2c: 01 00 00 AF 73 22 [08:10:57]Write i2c OK [08:10:57]MH_I2C_Read... [08:10:57]OFD Sender: No OFD packet to send [08:10:58]*** Cut start [08:10:58]*** Partial cut [08:10:58]*** CUTSNS_PIN = 1 [08:10:58]*** CUTSNS_PIN = 0 [08:10:58]*** Brake cut motor [08:10:58]Read from MH i2c: 01 [08:10:58]MH_I2C_Read... [08:10:58]*** Stop cut motor [08:10:58]*** Cut end [08:10:58]Read from MH i2c: 01 07 00 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: 01 07 00 AF 73 00 00 00 00 00 FF 0F 37 [08:10:58]process_action close_receipt done [08:10:58]requested_data is exist [08:10:58]produce_requested_data [08:10:58]requested_item fm.sn is exist - process it [08:10:58]wFMCommunicate request_size=4 [08:10:58]MH_SAM_APDU [08:10:58]CAPDU: 80 11 00 00 [08:10:58]Write to MH i2c: E2 08 00 B0 73 80 11 00 00 00 00 00 00 9D [08:10:58]Write i2c OK [08:10:58]MH_I2C_Read... [08:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:58]Read from MH i2c: E2 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 17 00 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 17 00 B0 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [08:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:10:58]wFMCommunicate OK [08:10:58]requested_item fd.num is exist - process it [08:10:58]SAM_PROTO_GetFieldsCounters [08:10:58]wFMCommunicate request_size=4 [08:10:58]MH_SAM_APDU [08:10:58]CAPDU: 80 13 00 00 [08:10:58]Write to MH i2c: E2 08 00 B1 73 80 13 00 00 00 00 00 00 A0 [08:10:58]Write i2c OK [08:10:58]MH_I2C_Read... [08:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:58]Read from MH i2c: E2 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 62 00 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 62 00 B1 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [08:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:58]wFMCommunicate OK [08:10:58]SAM_PROTO_GetFieldsCounters done [08:10:58]requested_item shift.num is exist - process it [08:10:58]requested_item shift.opened is exist - process it [08:10:58]req_shift_opened [08:10:58]FM_GetShiftState [08:10:58]SAM_PROTO_GetShiftState [08:10:58]wFMCommunicate request_size=4 [08:10:58]MH_SAM_APDU [08:10:58]CAPDU: 80 13 01 00 [08:10:58]Write to MH i2c: E2 08 00 B2 73 80 13 01 00 00 00 00 00 A2 [08:10:58]Write i2c OK [08:10:58]MH_I2C_Read... [08:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:58]Read from MH i2c: E2 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 0E 00 [08:10:58]MH_I2C_Read... [08:10:58]Read from MH i2c: E2 0E 00 B2 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 65 [08:10:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:10:58]wFMCommunicate OK [08:10:58]SAM_PROTO_GetShiftState done [08:10:58]FM_GetShiftState done [08:10:58]req_shift_opened done [08:10:58]requested_item shift.open_date is exist - process it [08:10:58]req_shift_open_date [08:10:58]req_shift_open_date done [08:10:58]produce_requested_data done [08:10:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191285,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:10:58]process_action_free close_receipt [08:10:58]json_value_free [08:10:58]json_value_free done [08:10:58]process_json_proto returns [08:10:58]Send response to host [08:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191285,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:10:58]free response buf [08:10:58]execute_script done [08:10:58]execute_script returns [08:10:58]free content buf [08:10:58]Sock 8.Close socket [08:10:58]Sock 8.Thread stoped [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:48]accept exits with 10 [08:16:48]New connection [08:16:48]New thread 3066961252 created [08:16:48]Thread 3066817892 joined [08:16:48]Waiting for new connection... [08:16:48] Sock 10.Parse request [08:16:48]Sock 10.Check first char [08:16:48]Sock 10.First char is OK [08:16:48]request: POST /json_proto HTTP/1.0 [08:16:48]Method: POST [08:16:48]URL: /json_proto [08:16:48]Method is POST - this is cgi request [08:16:48]url: /json_proto [08:16:48]query_string will be loaded in cgi processing [08:16:48]execute_cgi json_proto POST (null) [08:16:48]execute_cgi path=json_proto method=POST [08:16:48]POST find Content-Length [08:16:48]Host: 172.17.63.131:8080 [08:16:48]Content-Length: 681 [08:16:48]Content-Type: application/json [08:16:48] [08:16:48]POST finish read [08:16:48]Found Content-Length = 681 [08:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]execute_script... [08:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]POST & json_proto [08:16:48]process_json_proto [08:16:48]json parsed OK: [08:16:48]protocol is kg_v1.0 [08:16:48]action value=close_receipt [08:16:48]process_action close_receipt [08:16:48]cmd_close_receipt [08:16:48]MH_GetDate [08:16:48]Write to MH i2c: F0 00 00 B3 73 15 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 B3 73 00 F8 53 1B 67 22 05 6E 64 E4 [08:16:48]GetLastDocTimeStamp 1729843862 [08:16:48]current date 1729844216 [08:16:48]FM_GetShiftState [08:16:48]SAM_PROTO_GetShiftState [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 13 01 00 [08:16:48]Write to MH i2c: E2 08 00 B4 73 80 13 01 00 00 00 00 00 A4 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 B4 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 67 [08:16:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:16:48]wFMCommunicate OK [08:16:48]SAM_PROTO_GetShiftState done [08:16:48]FM_GetShiftState done [08:16:48]opened in 1729816399 [08:16:48]opened+sec_in_day 1729902799 [08:16:48]quantity*price = 100015 [08:16:48]sum+1 = 100017 [08:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 25 25.10.2024 08:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191286 ФПД: 267181622860009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191286&fm=267181622860009&tin=02508201610067®Number=0000000000091776&sum=100000 [08:16:49]StoreToDocumentArchive [08:16:49]shift 540 fd 191286 [08:16:49]save to /storage/0540/doc_00191286 [08:16:49]save last doc name /storage/0540/doc_00191286 to /storage/kkm_last_doc_name [08:16:49]save OK [08:16:49]Clear old archive folders... [08:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:49]tlvbuf is 016A0290 [08:16:49]SAM_PROTO_ClearQueue [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 09 00 00 [08:16:49]Write to MH i2c: E2 08 00 C1 73 80 09 00 00 00 00 00 00 A6 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 C1 73 00 90 00 A8 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]SAM_PROTO_ClearQueue done [08:16:49]KKMCreateOFDPacket [08:16:49]OFDProtocolAddRootSTLVToBuf [08:16:49]FM_MakeSignedData [08:16:49]FM_MakeSignedData [08:16:49]SAM_PROTO_SignData [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 01 02 [08:16:49]Write to MH i2c: E2 08 00 C2 73 80 0D 01 02 00 00 00 00 AE [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 C2 73 00 90 00 A9 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]wFMCommunicate request_size=255 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F8 53 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EB 02 00 35 04 06 00 F3 [08:16:49]Write to MH i2c: E2 02 01 C3 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F8 53 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EB 02 00 35 04 06 00 F3 00 00 56 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 C3 73 00 90 00 AA [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=10 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 02 02 05 00 11 B8 98 E9 [08:16:50]Write to MH i2c: E2 0D 00 C4 73 80 0D 02 02 05 00 00 11 B8 98 E9 00 00 05 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 C4 73 00 90 00 AB [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 03 02 [08:16:50]Write to MH i2c: E2 08 00 C5 73 80 0D 03 02 00 00 00 00 B3 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 C5 73 00 43 A6 9E 96 B0 C0 05 C5 90 00 0B [08:16:50]RAPDU: 43 A6 9E 96 B0 C0 05 C5 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_SignData done [08:16:50]FM_MakeSignedData done [08:16:50]CreateOFDProtocolMessage [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 11 00 00 [08:16:50]Write to MH i2c: E2 08 00 C6 73 80 11 00 00 00 00 00 00 B3 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 C6 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [08:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:50]wFMCommunicate OK [08:16:50]CreateOFDProtocolMessage done [08:16:50]OFDSenderStorePacket 191286 [08:16:50]StoreOFDPacket docnum=191286 [08:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E 80 07 01 DC C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F8 53 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EB 02 00 35 04 06 00 F3 00 11 B8 98 E9 43 A6 9E 96 B0 C0 05 C5 [08:16:50]CheckFolder [08:16:50]dirname=/storage/ofd_packets [08:16:50]CheckFolder done [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00191286 [08:16:50]NVStorageSaveData ofd_packets/00191286 [08:16:50]File name is /storage/ofd_packets/00191286 [08:16:50]Write 301 bytes [08:16:50]NVStorageSaveData done [08:16:50]OFDSenderStorePacket done [08:16:50]KKMCreateOFDPacket done [08:16:50]NVStorageSaveData kkm_last_timestamp [08:16:50]File name is /storage/kkm_last_timestamp [08:16:50]Write 4 bytes [08:16:50]NVStorageSaveData done [08:16:50]ExternCall_PrintAddStr [08:16:50]wPrintStart [08:16:50]Write to MH i2c: 01 00 00 C7 73 3A [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 C7 73 00 00 00 00 00 FF 0F 4F [08:16:50]RasterBufferAndPrint [08:16:50]line Счет N : (1)30578 [08:16:50]line ИНН: 02508201610067 [08:16:50]line Контрольно-Кассовый Чек [08:16:50]line ПРОДАЖА [08:16:50]line ТРК (МРК, ГНК) : 12 [08:16:50]line Товар: 2710124130 [08:16:50]line Аи-92-К-5 [08:16:50]line 14.950 * 66.90 [08:16:50]line = 1000.16 [08:16:50]line НДС 12% НСП 1% [08:16:50]line > о реализуемом товаре [08:16:50]line ОКРУГЛЕНИЕ: -0.16 [08:16:50]line ИТОГО: 1000.00 [08:16:50]line Внесено: 1000.00 [08:16:50]line СДАЧА: 0.00 [08:16:50]line НСП 1% : 8.85 [08:16:50]line НДС 12% : 106.21 [08:16:50]line Наличными: 1000.00 [08:16:50]line Безнал.: 0.00 [08:16:50]line Место: АЗС № 170 "Партнер Нефть" [08:16:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:16:50]line СНО: Общий режим [08:16:50]line Чек 25 25.10.2024 08:16 [08:16:50]line Смена: 540 ФФД: 1.0 [08:16:50]line ЗНМ: 0300000110 [08:16:50]line РНМ: 0000000000091776 [08:16:50]line Версия ККМ: 001 [08:16:50]line ФМ: 0000000000871754 [08:16:50]line ФД: 191286 [08:16:50]line ФПД: 267181622860009 [08:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191286&fm=267181622860009&tin=02508201610067®Number=0000000000091776&sum=100000 [08:16:50]OFD Sender: Processing packet 191286 [packets to send 75, broken 74] [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00191286 [08:16:50]OFD Sender: To server: pG, [08:16:50]CommunicateWithHost lk.salyk.kg:30040 [08:16:50]ConnectInit lk.salyk.kg [08:16:50]written 0, free lines is 4095 [08:16:50]Connected sock=9 [08:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E 80 07 01 DC C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F8 53 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EB 02 00 35 04 06 00 F3 00 11 B8 98 E9 43 A6 9E 96 B0 C0 05 C5 [08:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BE 07 47 00 BA 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EB 02 00 F4 03 04 00 C7 F8 1A 67 B6 04 01 00 00 63 55 05 76 B6 4F 31 CA [08:16:50]CommunicateWithHost err = 0 [08:16:50]CheckOFDResponse [08:16:50]1017 (14) - 77093643461234 [08:16:50]1041 (16) - 0000000000871754 [08:16:50]1040 (4) - 191286 [08:16:50]1012 (4) - 25.10.2024 01:47 [08:16:50]1206 (1) - 0 [08:16:50]OFD Sender: Remove packet 191286 [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00191286 [08:16:50]NVStorageDeleteData [08:16:50]Write to MH i2c: 01 00 00 F2 73 65 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 F2 73 00 00 00 00 00 9F 0C 17 [08:16:50]RasterBufferAndPrint [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]written 0, free lines is 3238 [08:16:50]MH_Cut [08:16:50]Write to MH i2c: D1 01 00 F9 73 01 3E [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 01 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 01 00 F9 73 00 3D [08:16:50]Write to MH i2c: 01 00 00 FA 73 6D [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:51]OFD Sender: No OFD packet to send [08:16:51]*** Cut start [08:16:51]*** Partial cut [08:16:51]*** CUTSNS_PIN = 1 [08:16:51]*** CUTSNS_PIN = 0 [08:16:52]*** Brake cut motor [08:16:52]Read from MH i2c: 01 [08:16:52]MH_I2C_Read... [08:16:52]*** Stop cut motor [08:16:52]*** Cut end [08:16:52]Read from MH i2c: 01 07 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: 01 07 00 FA 73 00 00 00 00 00 FF 0F 82 [08:16:52]process_action close_receipt done [08:16:52]requested_data is exist [08:16:52]produce_requested_data [08:16:52]requested_item fm.sn is exist - process it [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 11 00 00 [08:16:52]Write to MH i2c: E2 08 00 FB 73 80 11 00 00 00 00 00 00 E8 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 FB 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [08:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:52]wFMCommunicate OK [08:16:52]requested_item fd.num is exist - process it [08:16:52]SAM_PROTO_GetFieldsCounters [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 00 00 [08:16:52]Write to MH i2c: E2 08 00 FC 73 80 13 00 00 00 00 00 00 EB [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 62 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 62 00 FC 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [08:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:52]wFMCommunicate OK [08:16:52]SAM_PROTO_GetFieldsCounters done [08:16:52]requested_item shift.num is exist - process it [08:16:52]requested_item shift.opened is exist - process it [08:16:52]req_shift_opened [08:16:52]FM_GetShiftState [08:16:52]SAM_PROTO_GetShiftState [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 01 00 [08:16:52]Write to MH i2c: E2 08 00 FD 73 80 13 01 00 00 00 00 00 ED [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 0E 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 0E 00 FD 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B0 [08:16:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:16:52]wFMCommunicate OK [08:16:52]SAM_PROTO_GetShiftState done [08:16:52]FM_GetShiftState done [08:16:52]req_shift_opened done [08:16:52]requested_item shift.open_date is exist - process it [08:16:52]req_shift_open_date [08:16:52]req_shift_open_date done [08:16:52]produce_requested_data done [08:16:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191286,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:16:52]process_action_free close_receipt [08:16:52]json_value_free [08:16:52]json_value_free done [08:16:52]process_json_proto returns [08:16:52]Send response to host [08:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191286,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:16:52]free response buf [08:16:52]execute_script done [08:16:52]execute_script returns [08:16:52]free content buf [08:16:52]Sock 10.Close socket [08:16:52]Sock 10.Thread stoped [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:20]accept exits with 8 [08:17:20]New connection [08:17:20]New thread 3066817892 created [08:17:20]Thread 3066961252 joined [08:17:20]Waiting for new connection... [08:17:20] Sock 8.Parse request [08:17:20]Sock 8.Check first char [08:17:20]Sock 8.First char is OK [08:17:20]request: POST /json_proto HTTP/1.0 [08:17:20]Method: POST [08:17:20]URL: /json_proto [08:17:20]Method is POST - this is cgi request [08:17:20]url: /json_proto [08:17:20]query_string will be loaded in cgi processing [08:17:20]execute_cgi json_proto POST (null) [08:17:20]execute_cgi path=json_proto method=POST [08:17:20]POST find Content-Length [08:17:20]Host: 172.17.63.131:8080 [08:17:20]Content-Length: 681 [08:17:20]Content-Type: application/json [08:17:20] [08:17:20]POST finish read [08:17:20]Found Content-Length = 681 [08:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:20]execute_script... [08: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)30579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:20]POST & json_proto [08:17:20]process_json_proto [08:17:20]json parsed OK: [08:17:20]protocol is kg_v1.0 [08:17:20]action value=close_receipt [08:17:20]process_action close_receipt [08:17:20]cmd_close_receipt [08:17:20]MH_GetDate [08:17:20]Write to MH i2c: F0 00 00 FE 73 60 [08:17:20]Write i2c OK [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 09 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 09 00 FE 73 00 18 54 1B 67 22 05 6E 64 50 [08:17:20]GetLastDocTimeStamp 1729844216 [08:17:20]current date 1729844248 [08:17:20]FM_GetShiftState [08:17:20]SAM_PROTO_GetShiftState [08:17:20]wFMCommunicate request_size=4 [08:17:20]MH_SAM_APDU [08:17:20]CAPDU: 80 13 01 00 [08:17:20]Write to MH i2c: E2 08 00 FF 73 80 13 01 00 00 00 00 00 EF [08:17:20]Write i2c OK [08:17:20]MH_I2C_Read... [08:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:20]Read from MH i2c: E2 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 FF 73 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B2 [08:17:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:17:20]wFMCommunicate OK [08:17:20]SAM_PROTO_GetShiftState done [08:17:20]FM_GetShiftState done [08:17:20]opened in 1729816399 [08:17:20]opened+sec_in_day 1729902799 [08:17:20]quantity*price = 100015 [08:17:20]sum+1 = 100017 [08:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 26 25.10.2024 08:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191287 ФПД: 276645880581286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191287&fm=276645880581286&tin=02508201610067®Number=0000000000091776&sum=100000 [08:17:21]StoreToDocumentArchive [08:17:21]shift 540 fd 191287 [08:17:21]save to /storage/0540/doc_00191287 [08:17:21]save last doc name /storage/0540/doc_00191287 to /storage/kkm_last_doc_name [08:17:21]save OK [08:17:21]Clear old archive folders... [08:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:21]tlvbuf is 017CE7B0 [08:17:21]SAM_PROTO_ClearQueue [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 09 00 00 [08:17:21]Write to MH i2c: E2 08 00 0C 74 80 09 00 00 00 00 00 00 F2 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:21]OFD Sender: No OFD packet to send [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 0C 74 00 90 00 F4 [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]SAM_PROTO_ClearQueue done [08:17:21]KKMCreateOFDPacket [08:17:21]OFDProtocolAddRootSTLVToBuf [08:17:21]FM_MakeSignedData [08:17:21]FM_MakeSignedData [08:17:21]SAM_PROTO_SignData [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 01 02 [08:17:21]Write to MH i2c: E2 08 00 0D 74 80 0D 01 02 00 00 00 00 FA [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 0D 74 00 90 00 F5 [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]wFMCommunicate request_size=255 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 18 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EB 02 00 35 04 06 00 FB [08:17:21]Write to MH i2c: E2 02 01 0E 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 18 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EB 02 00 35 04 06 00 FB 00 00 CD [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 0E 74 00 90 00 F6 [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]wFMCommunicate request_size=10 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 02 02 05 9B A3 70 CC A6 [08:17:21]Write to MH i2c: E2 0D 00 0F 74 80 0D 02 02 05 00 9B A3 70 CC A6 00 00 27 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 0F 74 00 90 00 F7 [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 03 02 [08:17:21]Write to MH i2c: E2 08 00 10 74 80 0D 03 02 00 00 00 00 FF [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 0B 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 0B 00 10 74 00 CD 6A 24 F5 60 AB BD 79 90 00 91 [08:17:21]RAPDU: CD 6A 24 F5 60 AB BD 79 90 00 [08:17:21]wFMCommunicate OK [08:17:21]SAM_PROTO_SignData done [08:17:21]FM_MakeSignedData done [08:17:21]CreateOFDProtocolMessage [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 11 00 00 [08:17:21]Write to MH i2c: E2 08 00 11 74 80 11 00 00 00 00 00 00 FF [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 17 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 17 00 11 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [08:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:17:21]wFMCommunicate OK [08:17:21]CreateOFDProtocolMessage done [08:17:21]OFDSenderStorePacket 191287 [08:17:21]StoreOFDPacket docnum=191287 [08:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 49 1E 07 01 0E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 18 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EB 02 00 35 04 06 00 FB 9B A3 70 CC A6 CD 6A 24 F5 60 AB BD 79 [08:17:21]CheckFolder [08:17:21]dirname=/storage/ofd_packets [08:17:21]CheckFolder done [08:17:21]ProducePacketName [08:17:21]name=ofd_packets/00191287 [08:17:21]NVStorageSaveData ofd_packets/00191287 [08:17:21]File name is /storage/ofd_packets/00191287 [08:17:21]Write 301 bytes [08:17:21]NVStorageSaveData done [08:17:21]OFDSenderStorePacket done [08:17:21]KKMCreateOFDPacket done [08:17:21]NVStorageSaveData kkm_last_timestamp [08:17:21]File name is /storage/kkm_last_timestamp [08:17:21]Write 4 bytes [08:17:21]NVStorageSaveData done [08:17:21]ExternCall_PrintAddStr [08:17:21]wPrintStart [08:17:21]Write to MH i2c: 01 00 00 12 74 86 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: 01 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: 01 07 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: 01 07 00 12 74 00 00 00 00 00 FF 0F 9B [08:17:21]RasterBufferAndPrint [08:17:21]line Счет N : (1)30579 [08:17:21]line ИНН: 02508201610067 [08:17:21]line Контрольно-Кассовый Чек [08:17:21]line ПРОДАЖА [08:17:21]line ТРК (МРК, ГНК) : 21 [08:17:21]line Товар: 2710124130 [08:17:21]line Аи-92-К-5 [08:17:21]line 14.950 * 66.90 [08:17:21]line = 1000.16 [08:17:21]line НДС 12% НСП 1% [08:17:21]line > о реализуемом товаре [08:17:21]line ОКРУГЛЕНИЕ: -0.16 [08:17:21]line ИТОГО: 1000.00 [08:17:21]line Внесено: 1000.00 [08:17:21]line СДАЧА: 0.00 [08:17:21]line НСП 1% : 8.85 [08:17:21]line НДС 12% : 106.21 [08:17:21]line Наличными: 1000.00 [08:17:21]line Безнал.: 0.00 [08:17:21]line Место: АЗС № 170 "Партнер Нефть" [08:17:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:17:21]line СНО: Общий режим [08:17:21]line Чек 26 25.10.2024 08:17 [08:17:21]line Смена: 540 ФФД: 1.0 [08:17:21]line ЗНМ: 0300000110 [08:17:21]line РНМ: 0000000000091776 [08:17:21]line Версия ККМ: 001 [08:17:21]line ФМ: 0000000000871754 [08:17:21]line ФД: 191287 [08:17:21]line ФПД: 276645880581286 [08:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191287&fm=276645880581286&tin=02508201610067®Number=0000000000091776&sum=100000 [08:17:22]OFD Sender: Processing packet 191287 [packets to send 75, broken 74] [08:17:22]ProducePacketName [08:17:22]name=ofd_packets/00191287 [08:17:22]OFD Sender: To server: pG, [08:17:22]CommunicateWithHost lk.salyk.kg:30040 [08:17:22]ConnectInit lk.salyk.kg [08:17:22]written 0, free lines is 4095 [08:17:22]Connected sock=10 [08: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 31 37 35 34 0F 01 00 00 49 1E 07 01 0E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 18 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EB 02 00 35 04 06 00 FB 9B A3 70 CC A6 CD 6A 24 F5 60 AB BD 79 [08:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B 6C 47 00 24 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EB 02 00 F4 03 04 00 E7 F8 1A 67 B6 04 01 00 00 65 1B 43 D1 29 1A 59 84 [08:17:22]CommunicateWithHost err = 0 [08:17:22]CheckOFDResponse [08:17:22]1017 (14) - 77093643461234 [08:17:22]1041 (16) - 0000000000871754 [08:17:22]1040 (4) - 191287 [08:17:22]1012 (4) - 25.10.2024 01:48 [08:17:22]1206 (1) - 0 [08:17:22]OFD Sender: Remove packet 191287 [08:17:22]ProducePacketName [08:17:22]name=ofd_packets/00191287 [08:17:22]NVStorageDeleteData [08:17:22]Write to MH i2c: 01 00 00 3D 74 B1 [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 07 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 07 00 3D 74 00 00 00 00 00 A0 0C 64 [08:17:22]RasterBufferAndPrint [08:17:22]line [08:17:22]line [08:17:22]line [08:17:22]line [08:17:22]line [08:17:22]written 0, free lines is 3239 [08:17:22]MH_Cut [08:17:22]Write to MH i2c: D1 01 00 44 74 01 8A [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: D1 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: D1 01 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: D1 01 00 44 74 00 89 [08:17:22]Write to MH i2c: 01 00 00 45 74 B9 [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:23]OFD Sender: No OFD packet to send [08:17:23]*** Cut start [08:17:23]*** Partial cut [08:17:23]*** CUTSNS_PIN = 1 [08:17:23]*** CUTSNS_PIN = 0 [08:17:23]*** Brake cut motor [08:17:24]Read from MH i2c: 01 [08:17:24]MH_I2C_Read... [08:17:24]*** Stop cut motor [08:17:24]*** Cut end [08:17:24]Read from MH i2c: 01 07 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: 01 07 00 45 74 00 00 00 00 00 FF 0F CE [08:17:24]process_action close_receipt done [08:17:24]requested_data is exist [08:17:24]produce_requested_data [08:17:24]requested_item fm.sn is exist - process it [08:17:24]wFMCommunicate request_size=4 [08:17:24]MH_SAM_APDU [08:17:24]CAPDU: 80 11 00 00 [08:17:24]Write to MH i2c: E2 08 00 46 74 80 11 00 00 00 00 00 00 34 [08:17:24]Write i2c OK [08:17:24]MH_I2C_Read... [08:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:24]Read from MH i2c: E2 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 17 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 17 00 46 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [08:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:17:24]wFMCommunicate OK [08:17:24]requested_item fd.num is exist - process it [08:17:24]SAM_PROTO_GetFieldsCounters [08:17:24]wFMCommunicate request_size=4 [08:17:24]MH_SAM_APDU [08:17:24]CAPDU: 80 13 00 00 [08:17:24]Write to MH i2c: E2 08 00 47 74 80 13 00 00 00 00 00 00 37 [08:17:24]Write i2c OK [08:17:24]MH_I2C_Read... [08:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:24]Read from MH i2c: E2 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 62 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 62 00 47 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:24]wFMCommunicate OK [08:17:24]SAM_PROTO_GetFieldsCounters done [08:17:24]requested_item shift.num is exist - process it [08:17:24]requested_item shift.opened is exist - process it [08:17:24]req_shift_opened [08:17:24]FM_GetShiftState [08:17:24]SAM_PROTO_GetShiftState [08:17:24]wFMCommunicate request_size=4 [08:17:24]MH_SAM_APDU [08:17:24]CAPDU: 80 13 01 00 [08:17:24]Write to MH i2c: E2 08 00 48 74 80 13 01 00 00 00 00 00 39 [08:17:24]Write i2c OK [08:17:24]MH_I2C_Read... [08:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:24]Read from MH i2c: E2 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 0E 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 0E 00 48 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FC [08:17:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:17:24]wFMCommunicate OK [08:17:24]SAM_PROTO_GetShiftState done [08:17:24]FM_GetShiftState done [08:17:24]req_shift_opened done [08:17:24]requested_item shift.open_date is exist - process it [08:17:24]req_shift_open_date [08:17:24]req_shift_open_date done [08:17:24]produce_requested_data done [08:17:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191287,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:17:24]process_action_free close_receipt [08:17:24]json_value_free [08:17:24]json_value_free done [08:17:24]process_json_proto returns [08:17:24]Send response to host [08:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191287,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:17:24]free response buf [08:17:24]execute_script done [08:17:24]execute_script returns [08:17:24]free content buf [08:17:24]Sock 8.Close socket [08:17:24]Sock 8.Thread stoped [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:42]accept exits with 9 [08:18:42]New connection [08:18:42]New thread 3066961252 created [08:18:42]Thread 3066817892 joined [08:18:42]Waiting for new connection... [08:18:42] Sock 9.Parse request [08:18:42]Sock 9.Check first char [08:18:42]Sock 9.First char is OK [08:18:42]request: POST /json_proto HTTP/1.0 [08:18:42]Method: POST [08:18:42]URL: /json_proto [08:18:42]Method is POST - this is cgi request [08:18:42]url: /json_proto [08:18:42]query_string will be loaded in cgi processing [08:18:42]execute_cgi json_proto POST (null) [08:18:42]execute_cgi path=json_proto method=POST [08:18:42]POST find Content-Length [08:18:42]Host: 172.17.63.131:8080 [08:18:42]Content-Length: 673 [08:18:42]Content-Type: application/json [08:18:42] [08:18:42]POST finish read [08:18:42]Found Content-Length = 673 [08:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:18:42]execute_script... [08:18:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:18:42]POST & json_proto [08:18:42]process_json_proto [08:18:42]json parsed OK: [08:18:42]protocol is kg_v1.0 [08:18:42]action value=close_receipt [08:18:42]process_action close_receipt [08:18:42]cmd_close_receipt [08:18:42]MH_GetDate [08:18:42]Write to MH i2c: F0 00 00 49 74 AC [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 09 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: F0 09 00 49 74 00 6A 54 1B 67 22 05 6E 64 EE [08:18:42]GetLastDocTimeStamp 1729844248 [08:18:42]current date 1729844330 [08:18:42]FM_GetShiftState [08:18:42]SAM_PROTO_GetShiftState [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 13 01 00 [08:18:42]Write to MH i2c: E2 08 00 4A 74 80 13 01 00 00 00 00 00 3B [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 0E 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 0E 00 4A 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FE [08:18:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:18:42]wFMCommunicate OK [08:18:42]SAM_PROTO_GetShiftState done [08:18:42]FM_GetShiftState done [08:18:42]opened in 1729816399 [08:18:42]opened+sec_in_day 1729902799 [08:18:42]quantity*price = 50063 [08:18:42]sum+1 = 50064 [08:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 27 25.10.2024 08:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191288 ФПД: 212011234929361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191288&fm=212011234929361&tin=02508201610067®Number=0000000000091776&sum=50000 [08:18:43]StoreToDocumentArchive [08:18:43]shift 540 fd 191288 [08:18:43]save to /storage/0540/doc_00191288 [08:18:43]save last doc name /storage/0540/doc_00191288 to /storage/kkm_last_doc_name [08:18:43]save OK [08:18:43]Clear old archive folders... [08:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:18:43]tlvbuf is 01698E00 [08:18:43]SAM_PROTO_ClearQueue [08:18:43]wFMCommunicate request_size=4 [08:18:43]MH_SAM_APDU [08:18:43]CAPDU: 80 09 00 00 [08:18:43]Write to MH i2c: E2 08 00 57 74 80 09 00 00 00 00 00 00 3D [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 57 74 00 90 00 3F [08:18:43]RAPDU: 90 00 [08:18:43]wFMCommunicate OK [08:18:43]SAM_PROTO_ClearQueue done [08:18:43]KKMCreateOFDPacket [08:18:43]OFDProtocolAddRootSTLVToBuf [08:18:43]FM_MakeSignedData [08:18:43]FM_MakeSignedData [08:18:43]SAM_PROTO_SignData [08:18:43]wFMCommunicate request_size=4 [08:18:43]MH_SAM_APDU [08:18:43]CAPDU: 80 0D 01 02 [08:18:43]Write to MH i2c: E2 08 00 58 74 80 0D 01 02 00 00 00 00 45 [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 58 74 00 90 00 40 [08:18:43]RAPDU: 90 00 [08:18:43]wFMCommunicate OK [08:18:43]wFMCommunicate request_size=255 [08:18:43]MH_SAM_APDU [08:18:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 6A 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EB 02 00 35 04 06 00 C0 D2 B6 58 [08:18:43]Write to MH i2c: E2 02 01 59 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 1B 00 00 00 F4 03 04 00 6A 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EB 02 00 35 04 06 00 C0 D2 B6 58 00 00 95 [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 59 74 00 90 00 41 [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]wFMCommunicate request_size=7 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 02 02 02 AA D1 [08:18:44]Write to MH i2c: E2 0A 00 5A 74 80 0D 02 02 02 00 AA D1 00 00 C7 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 03 00 5A 74 00 90 00 42 [08:18:44]RAPDU: 90 00 [08:18:44]wFMCommunicate OK [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 0D 03 02 [08:18:44]Write to MH i2c: E2 08 00 5B 74 80 0D 03 02 00 00 00 00 4A [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 0B 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 0B 00 5B 74 00 82 E0 28 3B B7 E9 D0 76 90 00 F6 [08:18:44]RAPDU: 82 E0 28 3B B7 E9 D0 76 90 00 [08:18:44]wFMCommunicate OK [08:18:44]SAM_PROTO_SignData done [08:18:44]FM_MakeSignedData done [08:18:44]CreateOFDProtocolMessage [08:18:44]wFMCommunicate request_size=4 [08:18:44]MH_SAM_APDU [08:18:44]CAPDU: 80 11 00 00 [08:18:44]Write to MH i2c: E2 08 00 5C 74 80 11 00 00 00 00 00 00 4A [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:44]Read from MH i2c: E2 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 17 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: E2 17 00 5C 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [08:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:18:44]wFMCommunicate OK [08:18:44]CreateOFDProtocolMessage done [08:18:44]OFDSenderStorePacket 191288 [08:18:44]StoreOFDPacket docnum=191288 [08:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 99 40 04 01 52 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 32 31 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 1B 00 00 00 F4 03 04 00 6A 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EB 02 00 35 04 06 00 C0 D2 B6 58 AA D1 82 E0 28 3B B7 E9 D0 76 [08:18:44]CheckFolder [08:18:44]dirname=/storage/ofd_packets [08:18:44]CheckFolder done [08:18:44]ProducePacketName [08:18:44]name=ofd_packets/00191288 [08:18:44]NVStorageSaveData ofd_packets/00191288 [08:18:44]File name is /storage/ofd_packets/00191288 [08:18:44]Write 298 bytes [08:18:44]NVStorageSaveData done [08:18:44]OFDSenderStorePacket done [08:18:44]KKMCreateOFDPacket done [08:18:44]NVStorageSaveData kkm_last_timestamp [08:18:44]File name is /storage/kkm_last_timestamp [08:18:44]Write 4 bytes [08:18:44]NVStorageSaveData done [08:18:44]ExternCall_PrintAddStr [08:18:44]wPrintStart [08:18:44]Write to MH i2c: 01 00 00 5D 74 D1 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 5D 74 00 00 00 00 00 FF 0F E6 [08:18:44]RasterBufferAndPrint [08:18:44]line Счет N : (1)30580 [08:18:44]line ИНН: 02508201610067 [08:18:44]line Контрольно-Кассовый Чек [08:18:44]line ПРОДАЖА [08:18:44]line ТРК (МРК, ГНК) : 22 [08:18:44]line Товар: 2710194210 [08:18:44]line ДТ-К-5 [08:18:44]line 6.570 * 76.20 [08:18:44]line = 500.63 [08:18:44]line НДС 12% НСП 1% [08:18:44]line > о реализуемом товаре [08:18:44]line ОКРУГЛЕНИЕ: -0.63 [08:18:44]line ИТОГО: 500.00 [08:18:44]line Внесено: 500.00 [08:18:44]line СДАЧА: 0.00 [08:18:44]line НСП 1% : 4.43 [08:18:44]line НДС 12% : 53.16 [08:18:44]line Наличными: 500.00 [08:18:44]line Безнал.: 0.00 [08:18:44]line Место: АЗС № 170 "Партнер Нефть" [08:18:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:18:44]line СНО: Общий режим [08:18:44]line Чек 27 25.10.2024 08:18 [08:18:44]line Смена: 540 ФФД: 1.0 [08:18:44]line ЗНМ: 0300000110 [08:18:44]line РНМ: 0000000000091776 [08:18:44]line Версия ККМ: 001 [08:18:44]line ФМ: 0000000000871754 [08:18:44]line ФД: 191288 [08:18:44]line ФПД: 212011234929361 [08:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191288&fm=212011234929361&tin=02508201610067®Number=0000000000091776&sum=50000 [08:18:44]OFD Sender: Processing packet 191288 [packets to send 75, broken 74] [08:18:44]ProducePacketName [08:18:44]name=ofd_packets/00191288 [08:18:44]OFD Sender: To server: pG, [08:18:44]CommunicateWithHost lk.salyk.kg:30040 [08:18:44]ConnectInit lk.salyk.kg [08:18:44]written 0, free lines is 4095 [08:18:44]Connected sock=10 [08:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 99 40 04 01 52 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 32 31 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 1B 00 00 00 F4 03 04 00 6A 54 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EB 02 00 35 04 06 00 C0 D2 B6 58 AA D1 82 E0 28 3B B7 E9 D0 76 [08:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B D8 47 00 A7 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EB 02 00 F4 03 04 00 39 F9 1A 67 B6 04 01 00 00 EB 6C CF 72 75 0B 27 D4 [08:18:44]CommunicateWithHost err = 0 [08:18:44]CheckOFDResponse [08:18:44]1017 (14) - 77093643461234 [08:18:44]1041 (16) - 0000000000871754 [08:18:44]1040 (4) - 191288 [08:18:44]1012 (4) - 25.10.2024 01:49 [08:18:44]1206 (1) - 0 [08:18:44]OFD Sender: Remove packet 191288 [08:18:44]ProducePacketName [08:18:44]name=ofd_packets/00191288 [08:18:44]NVStorageDeleteData [08:18:44]Write to MH i2c: 01 00 00 88 74 FC [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 88 74 00 00 00 00 00 97 0C A6 [08:18:44]RasterBufferAndPrint [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]written 0, free lines is 3227 [08:18:44]MH_Cut [08:18:44]Write to MH i2c: D1 01 00 8F 74 01 D5 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: D1 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: D1 01 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: D1 01 00 8F 74 00 D4 [08:18:44]Write to MH i2c: 01 00 00 90 74 04 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:45]OFD Sender: No OFD packet to send [08:18:45]*** Cut start [08:18:45]*** Partial cut [08:18:45]*** CUTSNS_PIN = 1 [08:18:45]*** CUTSNS_PIN = 0 [08:18:46]*** Brake cut motor [08:18:46]Read from MH i2c: 01 [08:18:46]MH_I2C_Read... [08:18:46]*** Stop cut motor [08:18:46]*** Cut end [08:18:46]Read from MH i2c: 01 07 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: 01 07 00 90 74 00 00 00 00 00 FF 0F 19 [08:18:46]process_action close_receipt done [08:18:46]requested_data is exist [08:18:46]produce_requested_data [08:18:46]requested_item fm.sn is exist - process it [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 11 00 00 [08:18:46]Write to MH i2c: E2 08 00 91 74 80 11 00 00 00 00 00 00 7F [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:46]Read from MH i2c: E2 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 17 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 17 00 91 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [08:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:18:46]wFMCommunicate OK [08:18:46]requested_item fd.num is exist - process it [08:18:46]SAM_PROTO_GetFieldsCounters [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 13 00 00 [08:18:46]Write to MH i2c: E2 08 00 92 74 80 13 00 00 00 00 00 00 82 [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:46]Read from MH i2c: E2 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 62 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 62 00 92 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [08:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:46]wFMCommunicate OK [08:18:46]SAM_PROTO_GetFieldsCounters done [08:18:46]requested_item shift.num is exist - process it [08:18:46]requested_item shift.opened is exist - process it [08:18:46]req_shift_opened [08:18:46]FM_GetShiftState [08:18:46]SAM_PROTO_GetShiftState [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 13 01 00 [08:18:46]Write to MH i2c: E2 08 00 93 74 80 13 01 00 00 00 00 00 84 [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:46]Read from MH i2c: E2 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 0E 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: E2 0E 00 93 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 47 [08:18:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:18:46]wFMCommunicate OK [08:18:46]SAM_PROTO_GetShiftState done [08:18:46]FM_GetShiftState done [08:18:46]req_shift_opened done [08:18:46]requested_item shift.open_date is exist - process it [08:18:46]req_shift_open_date [08:18:46]req_shift_open_date done [08:18:46]produce_requested_data done [08:18:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191288,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:18:46]process_action_free close_receipt [08:18:46]json_value_free [08:18:46]json_value_free done [08:18:46]process_json_proto returns [08:18:46]Send response to host [08:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191288,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:18:46]free response buf [08:18:46]execute_script done [08:18:46]execute_script returns [08:18:46]free content buf [08:18:46]Sock 9.Close socket [08:18:46]Sock 9.Thread stoped [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22: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:32]accept exits with 8 [08:22:32]New connection [08:22:32]New thread 3066817892 created [08:22:32]Thread 3066961252 joined [08:22:32]Waiting for new connection... [08:22:32] Sock 8.Parse request [08:22:32]Sock 8.Check first char [08:22:32]Sock 8.First char is OK [08:22:32]request: POST /json_proto HTTP/1.0 [08:22:32]Method: POST [08:22:32]URL: /json_proto [08:22:32]Method is POST - this is cgi request [08:22:32]url: /json_proto [08:22:32]query_string will be loaded in cgi processing [08:22:32]execute_cgi json_proto POST (null) [08:22:32]execute_cgi path=json_proto method=POST [08:22:32]POST find Content-Length [08:22:32]Host: 172.17.63.131:8080 [08:22:32]Content-Length: 676 [08:22:32]Content-Type: application/json [08:22:32] [08:22:32]POST finish read [08:22:32]Found Content-Length = 676 [08:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:32]execute_script... [08:22: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)30582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:32]POST & json_proto [08:22:32]process_json_proto [08:22:32]json parsed OK: [08:22:32]protocol is kg_v1.0 [08:22:32]action value=close_receipt [08:22:32]process_action close_receipt [08:22:32]cmd_close_receipt [08:22:32]MH_GetDate [08:22:32]Write to MH i2c: F0 00 00 94 74 F7 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: F0 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: F0 09 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: F0 09 00 94 74 00 50 55 1B 67 22 05 6E 64 20 [08:22:32]GetLastDocTimeStamp 1729844330 [08:22:32]current date 1729844560 [08:22:32]FM_GetShiftState [08:22:32]SAM_PROTO_GetShiftState [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 13 01 00 [08:22:32]Write to MH i2c: E2 08 00 95 74 80 13 01 00 00 00 00 00 86 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0E 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0E 00 95 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 49 [08:22:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:22:32]wFMCommunicate OK [08:22:32]SAM_PROTO_GetShiftState done [08:22:32]FM_GetShiftState done [08:22:32]opened in 1729816399 [08:22:32]opened+sec_in_day 1729902799 [08:22:32]quantity*price = 30038 [08:22:32]sum+1 = 30039 [08:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 28 25.10.2024 08:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191289 ФПД: 207673079024436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191289&fm=207673079024436&tin=02508201610067®Number=0000000000091776&sum=30000 [08:22:33]StoreToDocumentArchive [08:22:33]shift 540 fd 191289 [08:22:33]save to /storage/0540/doc_00191289 [08:22:33]save last doc name /storage/0540/doc_00191289 to /storage/kkm_last_doc_name [08:22:33]save OK [08:22:33]Clear old archive folders... [08:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:33]tlvbuf is 017500A0 [08:22:33]SAM_PROTO_ClearQueue [08:22:33]wFMCommunicate request_size=4 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 09 00 00 [08:22:33]Write to MH i2c: E2 08 00 A2 74 80 09 00 00 00 00 00 00 88 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 A2 74 00 90 00 8A [08:22:33]RAPDU: 90 00 [08:22:33]wFMCommunicate OK [08:22:33]SAM_PROTO_ClearQueue done [08:22:33]KKMCreateOFDPacket [08:22:33]OFDProtocolAddRootSTLVToBuf [08:22:33]FM_MakeSignedData [08:22:33]FM_MakeSignedData [08:22:33]SAM_PROTO_SignData [08:22:33]wFMCommunicate request_size=4 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 0D 01 02 [08:22:33]Write to MH i2c: E2 08 00 A3 74 80 0D 01 02 00 00 00 00 90 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 A3 74 00 90 00 8B [08:22:33]RAPDU: 90 00 [08:22:33]wFMCommunicate OK [08:22:33]wFMCommunicate request_size=255 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EB 02 00 35 04 06 00 BC [08:22:33]Write to MH i2c: E2 02 01 A4 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EB 02 00 35 04 06 00 BC 00 00 5B [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 A4 74 00 90 00 8C [08:22:33]RAPDU: 90 00 [08:22:33]wFMCommunicate OK [08:22:33]wFMCommunicate request_size=10 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 0D 02 02 05 E0 A8 1A CB 34 [08:22:33]Write to MH i2c: E2 0D 00 A5 74 80 0D 02 02 05 00 E0 A8 1A CB 34 00 00 3E [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 03 00 A5 74 00 90 00 8D [08:22:33]RAPDU: 90 00 [08:22:33]wFMCommunicate OK [08:22:33]wFMCommunicate request_size=4 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 0D 03 02 [08:22:33]Write to MH i2c: E2 08 00 A6 74 80 0D 03 02 00 00 00 00 95 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 0B 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 0B 00 A6 74 00 62 B8 6D 6E 5F B9 2D 8E 90 00 5E [08:22:33]RAPDU: 62 B8 6D 6E 5F B9 2D 8E 90 00 [08:22:33]wFMCommunicate OK [08:22:33]SAM_PROTO_SignData done [08:22:33]FM_MakeSignedData done [08:22:33]CreateOFDProtocolMessage [08:22:33]wFMCommunicate request_size=4 [08:22:33]MH_SAM_APDU [08:22:33]CAPDU: 80 11 00 00 [08:22:33]Write to MH i2c: E2 08 00 A7 74 80 11 00 00 00 00 00 00 95 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:33]Read from MH i2c: E2 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 17 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: E2 17 00 A7 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [08:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:22:33]wFMCommunicate OK [08:22:33]CreateOFDProtocolMessage done [08:22:33]OFDSenderStorePacket 191289 [08:22:33]StoreOFDPacket docnum=191289 [08:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 99 07 01 AA 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EB 02 00 35 04 06 00 BC E0 A8 1A CB 34 62 B8 6D 6E 5F B9 2D 8E [08:22:33]CheckFolder [08:22:33]dirname=/storage/ofd_packets [08:22:33]CheckFolder done [08:22:33]ProducePacketName [08:22:33]name=ofd_packets/00191289 [08:22:33]NVStorageSaveData ofd_packets/00191289 [08:22:33]File name is /storage/ofd_packets/00191289 [08:22:33]Write 301 bytes [08:22:33]NVStorageSaveData done [08:22:33]OFDSenderStorePacket done [08:22:33]KKMCreateOFDPacket done [08:22:33]NVStorageSaveData kkm_last_timestamp [08:22:33]File name is /storage/kkm_last_timestamp [08:22:33]Write 4 bytes [08:22:33]NVStorageSaveData done [08:22:33]ExternCall_PrintAddStr [08:22:33]wPrintStart [08:22:33]Write to MH i2c: 01 00 00 A8 74 1C [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 07 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 07 00 A8 74 00 00 00 00 00 FF 0F 31 [08:22:33]RasterBufferAndPrint [08:22:33]line Счет N : (1)30582 [08:22:33]line ИНН: 02508201610067 [08:22:33]line Контрольно-Кассовый Чек [08:22:33]line ПРОДАЖА [08:22:33]line ТРК (МРК, ГНК) : 12 [08:22:33]line Товар: 2710124130 [08:22:33]line Аи-92-К-5 [08:22:33]line 4.490 * 66.90 [08:22:33]line = 300.38 [08:22:33]line НДС 12% НСП 1% [08:22:33]line > о реализуемом товаре [08:22:33]line ОКРУГЛЕНИЕ: -0.38 [08:22:33]line ИТОГО: 300.00 [08:22:33]line Внесено: 300.00 [08:22:33]line СДАЧА: 0.00 [08:22:33]line НСП 1% : 2.66 [08:22:33]line НДС 12% : 31.90 [08:22:33]line Наличными: 300.00 [08:22:33]line Безнал.: 0.00 [08:22:33]line Место: АЗС № 170 "Партнер Нефть" [08:22:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:22:33]line СНО: Общий режим [08:22:33]line Чек 28 25.10.2024 08:22 [08:22:33]line Смена: 540 ФФД: 1.0 [08:22:33]line ЗНМ: 0300000110 [08:22:33]line РНМ: 0000000000091776 [08:22:33]line Версия ККМ: 001 [08:22:33]line ФМ: 0000000000871754 [08:22:33]line ФД: 191289 [08:22:33]line ФПД: 207673079024436 [08:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191289&fm=207673079024436&tin=02508201610067®Number=0000000000091776&sum=30000 [08:22:33]written 0, free lines is 4095 [08:22:33]OFD Sender: Processing packet 191289 [packets to send 75, broken 74] [08:22:33]ProducePacketName [08:22:33]name=ofd_packets/00191289 [08:22:33]OFD Sender: To server: pG, [08:22:33]CommunicateWithHost lk.salyk.kg:30040 [08:22:33]ConnectInit lk.salyk.kg [08:22:33]Connected sock=10 [08:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 99 07 01 AA 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EB 02 00 35 04 06 00 BC E0 A8 1A CB 34 62 B8 6D 6E 5F B9 2D 8E [08:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 89 47 00 F9 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EB 02 00 F4 03 04 00 1E FA 1A 67 B6 04 01 00 00 A6 D2 E2 B4 94 29 ED C7 [08:22:34]CommunicateWithHost err = 0 [08:22:34]CheckOFDResponse [08:22:34]1017 (14) - 77093643461234 [08:22:34]1041 (16) - 0000000000871754 [08:22:34]1040 (4) - 191289 [08:22:34]1012 (4) - 25.10.2024 01:53 [08:22:34]1206 (1) - 0 [08:22:34]OFD Sender: Remove packet 191289 [08:22:34]ProducePacketName [08:22:34]name=ofd_packets/00191289 [08:22:34]NVStorageDeleteData [08:22:34]Write to MH i2c: 01 00 00 D3 74 47 [08:22:34]Write i2c OK [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: 01 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: 01 07 00 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: 01 07 00 D3 74 00 00 00 00 00 A6 0C 00 [08:22:34]RasterBufferAndPrint [08:22:34]line [08:22:34]line [08:22:34]line [08:22:34]line [08:22:34]line [08:22:34]written 0, free lines is 3244 [08:22:34]MH_Cut [08:22:34]Write to MH i2c: D1 01 00 DA 74 01 20 [08:22:34]Write i2c OK [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: D1 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: D1 01 00 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: D1 01 00 DA 74 00 1F [08:22:34]Write to MH i2c: 01 00 00 DB 74 4F [08:22:34]Write i2c OK [08:22:34]MH_I2C_Read... [08:22:34]OFD Sender: No OFD packet to send [08:22:35]*** Cut start [08:22:35]*** Partial cut [08:22:35]*** CUTSNS_PIN = 1 [08:22:35]*** CUTSNS_PIN = 0 [08:22:35]*** Brake cut motor [08:22:35]Read from MH i2c: 01 [08:22:35]MH_I2C_Read... [08:22:35]*** Stop cut motor [08:22:35]*** Cut end [08:22:35]Read from MH i2c: 01 07 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: 01 07 00 DB 74 00 00 00 00 00 FF 0F 64 [08:22:35]process_action close_receipt done [08:22:35]requested_data is exist [08:22:35]produce_requested_data [08:22:35]requested_item fm.sn is exist - process it [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 11 00 00 [08:22:35]Write to MH i2c: E2 08 00 DC 74 80 11 00 00 00 00 00 00 CA [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 17 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 17 00 DC 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [08:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:22:35]wFMCommunicate OK [08:22:35]requested_item fd.num is exist - process it [08:22:35]SAM_PROTO_GetFieldsCounters [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 13 00 00 [08:22:35]Write to MH i2c: E2 08 00 DD 74 80 13 00 00 00 00 00 00 CD [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 62 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 62 00 DD 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [08:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:35]wFMCommunicate OK [08:22:35]SAM_PROTO_GetFieldsCounters done [08:22:35]requested_item shift.num is exist - process it [08:22:35]requested_item shift.opened is exist - process it [08:22:35]req_shift_opened [08:22:35]FM_GetShiftState [08:22:35]SAM_PROTO_GetShiftState [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 13 01 00 [08:22:35]Write to MH i2c: E2 08 00 DE 74 80 13 01 00 00 00 00 00 CF [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0E 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0E 00 DE 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 92 [08:22:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:22:36]wFMCommunicate OK [08:22:36]SAM_PROTO_GetShiftState done [08:22:36]FM_GetShiftState done [08:22:36]req_shift_opened done [08:22:36]requested_item shift.open_date is exist - process it [08:22:36]req_shift_open_date [08:22:36]req_shift_open_date done [08:22:36]produce_requested_data done [08:22:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191289,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:22:36]process_action_free close_receipt [08:22:36]json_value_free [08:22:36]json_value_free done [08:22:36]process_json_proto returns [08:22:36]Send response to host [08:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191289,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:22:36]free response buf [08:22:36]execute_script done [08:22:36]execute_script returns [08:22:36]free content buf [08:22:36]Sock 8.Close socket [08:22:36]Sock 8.Thread stoped [08:22:36]accept exits with 9 [08:22:36]New connection [08:22:36]New thread 3066961252 created [08:22:36]Thread 3066817892 joined [08:22:36]Waiting for new connection... [08:22:36] Sock 9.Parse request [08:22:36]Sock 9.Check first char [08:22:36]Sock 9.First char is OK [08:22:36]request: POST /json_proto HTTP/1.0 [08:22:36]Method: POST [08:22:36]URL: /json_proto [08:22:36]Method is POST - this is cgi request [08:22:36]url: /json_proto [08:22:36]query_string will be loaded in cgi processing [08:22:36]execute_cgi json_proto POST (null) [08:22:36]execute_cgi path=json_proto method=POST [08:22:36]POST find Content-Length [08:22:36]Host: 172.17.63.131:8080 [08:22:36]Content-Length: 681 [08:22:36]Content-Type: application/json [08:22:36] [08:22:36]POST finish read [08:22:36]Found Content-Length = 681 [08:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:36]execute_script... [08:22: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)30581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:36]POST & json_proto [08:22:36]process_json_proto [08:22:36]json parsed OK: [08:22:36]protocol is kg_v1.0 [08:22:36]action value=close_receipt [08:22:36]process_action close_receipt [08:22:36]cmd_close_receipt [08:22:36]MH_GetDate [08:22:36]Write to MH i2c: F0 00 00 DF 74 42 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: F0 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: F0 09 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: F0 09 00 DF 74 00 54 55 1B 67 22 05 6E 64 6F [08:22:36]GetLastDocTimeStamp 1729844560 [08:22:36]current date 1729844564 [08:22:36]FM_GetShiftState [08:22:36]SAM_PROTO_GetShiftState [08:22:36]wFMCommunicate request_size=4 [08:22:36]MH_SAM_APDU [08:22:36]CAPDU: 80 13 01 00 [08:22:36]Write to MH i2c: E2 08 00 E0 74 80 13 01 00 00 00 00 00 D1 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0E 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0E 00 E0 74 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 94 [08:22:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:22:36]wFMCommunicate OK [08:22:36]SAM_PROTO_GetShiftState done [08:22:36]FM_GetShiftState done [08:22:36]opened in 1729816399 [08:22:36]opened+sec_in_day 1729902799 [08:22:36]quantity*price = 100015 [08:22:36]sum+1 = 100017 [08:22:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 29 25.10.2024 08:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191290 ФПД: 214647107708624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082244&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191290&fm=214647107708624&tin=02508201610067®Number=0000000000091776&sum=100000 [08:22:37]StoreToDocumentArchive [08:22:37]shift 540 fd 191290 [08:22:37]save to /storage/0540/doc_00191290 [08:22:37]save last doc name /storage/0540/doc_00191290 to /storage/kkm_last_doc_name [08:22:37]save OK [08:22:37]Clear old archive folders... [08:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:37]tlvbuf is 01642C60 [08:22:37]SAM_PROTO_ClearQueue [08:22:37]wFMCommunicate request_size=4 [08:22:37]MH_SAM_APDU [08:22:37]CAPDU: 80 09 00 00 [08:22:37]Write to MH i2c: E2 08 00 ED 74 80 09 00 00 00 00 00 00 D3 [08:22:37]Write i2c OK [08:22:37]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 ED 74 00 90 00 D5 [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_ClearQueue done [08:22:38]KKMCreateOFDPacket [08:22:38]OFDProtocolAddRootSTLVToBuf [08:22:38]FM_MakeSignedData [08:22:38]FM_MakeSignedData [08:22:38]SAM_PROTO_SignData [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 01 02 [08:22:38]Write to MH i2c: E2 08 00 EE 74 80 0D 01 02 00 00 00 00 DB [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 EE 74 00 90 00 D6 [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=255 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 54 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EB 02 00 35 04 06 00 C3 [08:22:38]Write to MH i2c: E2 02 01 EF 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 54 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EB 02 00 35 04 06 00 C3 00 00 B9 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 EF 74 00 90 00 D7 [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=10 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 02 02 05 38 6C 9B 66 D0 [08:22:38]Write to MH i2c: E2 0D 00 F0 74 80 0D 02 02 05 00 38 6C 9B 66 D0 00 00 5D [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 03 00 F0 74 00 90 00 D8 [08:22:38]RAPDU: 90 00 [08:22:38]wFMCommunicate OK [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 0D 03 02 [08:22:38]Write to MH i2c: E2 08 00 F1 74 80 0D 03 02 00 00 00 00 E0 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0B 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0B 00 F1 74 00 A3 5D 02 56 5A 56 66 2B 90 00 7A [08:22:38]RAPDU: A3 5D 02 56 5A 56 66 2B 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_SignData done [08:22:38]FM_MakeSignedData done [08:22:38]CreateOFDProtocolMessage [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 11 00 00 [08:22:38]Write to MH i2c: E2 08 00 F2 74 80 11 00 00 00 00 00 00 E0 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 F2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [08:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:22:38]wFMCommunicate OK [08:22:38]CreateOFDProtocolMessage done [08:22:38]OFDSenderStorePacket 191290 [08:22:38]StoreOFDPacket docnum=191290 [08:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 CF 07 01 35 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 54 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EB 02 00 35 04 06 00 C3 38 6C 9B 66 D0 A3 5D 02 56 5A 56 66 2B [08:22:38]CheckFolder [08:22:38]dirname=/storage/ofd_packets [08:22:38]CheckFolder done [08:22:38]ProducePacketName [08:22:38]name=ofd_packets/00191290 [08:22:38]NVStorageSaveData ofd_packets/00191290 [08:22:38]File name is /storage/ofd_packets/00191290 [08:22:38]Write 301 bytes [08:22:38]NVStorageSaveData done [08:22:38]OFDSenderStorePacket done [08:22:38]KKMCreateOFDPacket done [08:22:38]NVStorageSaveData kkm_last_timestamp [08:22:38]File name is /storage/kkm_last_timestamp [08:22:38]Write 4 bytes [08:22:38]NVStorageSaveData done [08:22:38]ExternCall_PrintAddStr [08:22:38]wPrintStart [08:22:38]Write to MH i2c: 01 00 00 F3 74 67 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 07 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 07 00 F3 74 00 00 00 00 00 FF 0F 7C [08:22:38]RasterBufferAndPrint [08:22:38]line Счет N : (1)30581 [08:22:38]line ИНН: 02508201610067 [08:22:38]line Контрольно-Кассовый Чек [08:22:38]line ПРОДАЖА [08:22:38]line ТРК (МРК, ГНК) : 21 [08:22:38]line Товар: 2710124130 [08:22:38]line Аи-92-К-5 [08:22:38]line 14.950 * 66.90 [08:22:38]line = 1000.16 [08:22:38]line НДС 12% НСП 1% [08:22:38]line > о реализуемом товаре [08:22:38]line ОКРУГЛЕНИЕ: -0.16 [08:22:38]line ИТОГО: 1000.00 [08:22:38]line Внесено: 1000.00 [08:22:38]line СДАЧА: 0.00 [08:22:38]line НСП 1% : 8.85 [08:22:38]line НДС 12% : 106.21 [08:22:38]line Наличными: 1000.00 [08:22:38]line Безнал.: 0.00 [08:22:38]line Место: АЗС № 170 "Партнер Нефть" [08:22:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:22:38]line СНО: Общий режим [08:22:38]line Чек 29 25.10.2024 08:22 [08:22:38]line Смена: 540 ФФД: 1.0 [08:22:38]line ЗНМ: 0300000110 [08:22:38]line РНМ: 0000000000091776 [08:22:38]line Версия ККМ: 001 [08:22:38]line ФМ: 0000000000871754 [08:22:38]line ФД: 191290 [08:22:38]line ФПД: 214647107708624 [08:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082244&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191290&fm=214647107708624&tin=02508201610067®Number=0000000000091776&sum=100000 [08:22:38]written 0, free lines is 4095 [08:22:38]OFD Sender: Processing packet 191290 [packets to send 75, broken 74] [08:22:38]ProducePacketName [08:22:38]name=ofd_packets/00191290 [08:22:38]OFD Sender: To server: pG, [08:22:38]CommunicateWithHost lk.salyk.kg:30040 [08:22:38]ConnectInit lk.salyk.kg [08:22:38]Connected sock=10 [08:22:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 CF 07 01 35 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 54 55 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EB 02 00 35 04 06 00 C3 38 6C 9B 66 D0 A3 5D 02 56 5A 56 66 2B [08:22:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 21 47 00 46 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EB 02 00 F4 03 04 00 23 FA 1A 67 B6 04 01 00 00 0B 46 43 F8 BC 96 DB A9 [08:22:39]CommunicateWithHost err = 0 [08:22:39]CheckOFDResponse [08:22:39]1017 (14) - 77093643461234 [08:22:39]1041 (16) - 0000000000871754 [08:22:39]1040 (4) - 191290 [08:22:39]1012 (4) - 25.10.2024 01:53 [08:22:39]1206 (1) - 0 [08:22:39]OFD Sender: Remove packet 191290 [08:22:39]ProducePacketName [08:22:39]name=ofd_packets/00191290 [08:22:39]NVStorageDeleteData [08:22:39]Write to MH i2c: 01 00 00 1E 75 93 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 07 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: 01 07 00 1E 75 00 00 00 00 00 B0 0C 56 [08:22:39]RasterBufferAndPrint [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]line [08:22:39]written 0, free lines is 3262 [08:22:39]MH_Cut [08:22:39]Write to MH i2c: D1 01 00 25 75 01 6C [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: D1 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: D1 01 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: D1 01 00 25 75 00 6B [08:22:39]Write to MH i2c: 01 00 00 26 75 9B [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]OFD Sender: No OFD packet to send [08:22:39]*** Cut start [08:22:39]*** Partial cut [08:22:39]*** CUTSNS_PIN = 1 [08:22:40]*** CUTSNS_PIN = 0 [08:22:40]*** Brake cut motor [08:22:40]Read from MH i2c: 01 [08:22:40]MH_I2C_Read... [08:22:40]*** Stop cut motor [08:22:40]*** Cut end [08:22:40]Read from MH i2c: 01 07 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: 01 07 00 26 75 00 00 00 00 00 FF 0F B0 [08:22:40]process_action close_receipt done [08:22:40]requested_data is exist [08:22:40]produce_requested_data [08:22:40]requested_item fm.sn is exist - process it [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 11 00 00 [08:22:40]Write to MH i2c: E2 08 00 27 75 80 11 00 00 00 00 00 00 16 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 17 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 17 00 27 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [08:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:22:40]wFMCommunicate OK [08:22:40]requested_item fd.num is exist - process it [08:22:40]SAM_PROTO_GetFieldsCounters [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 13 00 00 [08:22:40]Write to MH i2c: E2 08 00 28 75 80 13 00 00 00 00 00 00 19 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 62 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 62 00 28 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [08:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_GetFieldsCounters done [08:22:40]requested_item shift.num is exist - process it [08:22:40]requested_item shift.opened is exist - process it [08:22:40]req_shift_opened [08:22:40]FM_GetShiftState [08:22:40]SAM_PROTO_GetShiftState [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 13 01 00 [08:22:40]Write to MH i2c: E2 08 00 29 75 80 13 01 00 00 00 00 00 1B [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 29 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DE [08:22:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_GetShiftState done [08:22:40]FM_GetShiftState done [08:22:40]req_shift_opened done [08:22:40]requested_item shift.open_date is exist - process it [08:22:40]req_shift_open_date [08:22:40]req_shift_open_date done [08:22:40]produce_requested_data done [08:22:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191290,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:22:40]process_action_free close_receipt [08:22:40]json_value_free [08:22:40]json_value_free done [08:22:40]process_json_proto returns [08:22:40]Send response to host [08:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191290,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:22:40]free response buf [08:22:40]execute_script done [08:22:40]execute_script returns [08:22:40]free content buf [08:22:40]Sock 9.Close socket [08:22:40]Sock 9.Thread stoped [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:10]accept exits with 8 [08:28:10]New connection [08:28:10]New thread 3066817892 created [08:28:10]Thread 3066961252 joined [08:28:10]Waiting for new connection... [08:28:10] Sock 8.Parse request [08:28:10]Sock 8.Check first char [08:28:10]Sock 8.First char is OK [08:28:10]request: POST /json_proto HTTP/1.0 [08:28:10]Method: POST [08:28:10]URL: /json_proto [08:28:10]Method is POST - this is cgi request [08:28:10]url: /json_proto [08:28:10]query_string will be loaded in cgi processing [08:28:10]execute_cgi json_proto POST (null) [08:28:10]execute_cgi path=json_proto method=POST [08:28:10]POST find Content-Length [08:28:10]Host: 172.17.63.131:8080 [08:28:10]Content-Length: 676 [08:28:10]Content-Type: application/json [08:28:10] [08:28:10]POST finish read [08:28:10]Found Content-Length = 676 [08:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:10]execute_script... [08:28: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)30583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:10]POST & json_proto [08:28:10]process_json_proto [08:28:10]json parsed OK: [08:28:10]protocol is kg_v1.0 [08:28:10]action value=close_receipt [08:28:10]process_action close_receipt [08:28:10]cmd_close_receipt [08:28:10]MH_GetDate [08:28:10]Write to MH i2c: F0 00 00 2A 75 8E [08:28:10]Write i2c OK [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 09 00 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 09 00 2A 75 00 A2 56 1B 67 22 05 6E 64 0A [08:28:10]GetLastDocTimeStamp 1729844564 [08:28:10]current date 1729844898 [08:28:10]FM_GetShiftState [08:28:10]SAM_PROTO_GetShiftState [08:28:10]wFMCommunicate request_size=4 [08:28:10]MH_SAM_APDU [08:28:10]CAPDU: 80 13 01 00 [08:28:10]Write to MH i2c: E2 08 00 2B 75 80 13 01 00 00 00 00 00 1D [08:28:10]Write i2c OK [08:28:10]MH_I2C_Read... [08:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:10]Read from MH i2c: E2 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 0E 00 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 0E 00 2B 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [08:28:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:28:10]wFMCommunicate OK [08:28:10]SAM_PROTO_GetShiftState done [08:28:10]FM_GetShiftState done [08:28:10]opened in 1729816399 [08:28:10]opened+sec_in_day 1729902799 [08:28:10]quantity*price = 60009 [08:28:10]sum+1 = 60010 [08:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 30 25.10.2024 08:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191291 ФПД: 70508827041080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191291&fm=70508827041080&tin=02508201610067®Number=0000000000091776&sum=60000 [08:28:12]StoreToDocumentArchive [08:28:12]shift 540 fd 191291 [08:28:12]save to /storage/0540/doc_00191291 [08:28:12]save last doc name /storage/0540/doc_00191291 to /storage/kkm_last_doc_name [08:28:12]save OK [08:28:12]Clear old archive folders... [08:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:12]tlvbuf is 016C0670 [08:28:12]SAM_PROTO_ClearQueue [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 09 00 00 [08:28:12]Write to MH i2c: E2 08 00 38 75 80 09 00 00 00 00 00 00 1F [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 38 75 00 90 00 21 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]SAM_PROTO_ClearQueue done [08:28:12]KKMCreateOFDPacket [08:28:12]OFDProtocolAddRootSTLVToBuf [08:28:12]FM_MakeSignedData [08:28:12]FM_MakeSignedData [08:28:12]SAM_PROTO_SignData [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 01 02 [08:28:12]Write to MH i2c: E2 08 00 39 75 80 0D 01 02 00 00 00 00 27 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 39 75 00 90 00 22 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]wFMCommunicate request_size=255 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A3 56 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EB 02 00 35 04 06 00 40 [08:28:12]Write to MH i2c: E2 02 01 3A 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A3 56 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EB 02 00 35 04 06 00 40 00 00 B7 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 3A 75 00 90 00 23 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]wFMCommunicate request_size=10 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 02 02 05 20 9D 96 DD 38 [08:28:12]Write to MH i2c: E2 0D 00 3B 75 80 0D 02 02 05 00 20 9D 96 DD 38 00 00 9C [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 3B 75 00 90 00 24 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 03 02 [08:28:12]Write to MH i2c: E2 08 00 3C 75 80 0D 03 02 00 00 00 00 2C [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 0B 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 0B 00 3C 75 00 80 42 7F 86 BB 07 BA 67 90 00 D7 [08:28:12]RAPDU: 80 42 7F 86 BB 07 BA 67 90 00 [08:28:12]wFMCommunicate OK [08:28:12]SAM_PROTO_SignData done [08:28:12]FM_MakeSignedData done [08:28:12]CreateOFDProtocolMessage [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 11 00 00 [08:28:12]Write to MH i2c: E2 08 00 3D 75 80 11 00 00 00 00 00 00 2C [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 17 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 17 00 3D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [08:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:28:12]wFMCommunicate OK [08:28:12]CreateOFDProtocolMessage done [08:28:12]OFDSenderStorePacket 191291 [08:28:12]StoreOFDPacket docnum=191291 [08:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 41 07 01 D3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A3 56 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EB 02 00 35 04 06 00 40 20 9D 96 DD 38 80 42 7F 86 BB 07 BA 67 [08:28:12]CheckFolder [08:28:12]dirname=/storage/ofd_packets [08:28:12]CheckFolder done [08:28:12]ProducePacketName [08:28:12]name=ofd_packets/00191291 [08:28:12]NVStorageSaveData ofd_packets/00191291 [08:28:12]File name is /storage/ofd_packets/00191291 [08:28:12]Write 301 bytes [08:28:12]NVStorageSaveData done [08:28:12]OFDSenderStorePacket done [08:28:12]KKMCreateOFDPacket done [08:28:12]NVStorageSaveData kkm_last_timestamp [08:28:12]File name is /storage/kkm_last_timestamp [08:28:12]Write 4 bytes [08:28:12]NVStorageSaveData done [08:28:12]ExternCall_PrintAddStr [08:28:12]wPrintStart [08:28:12]Write to MH i2c: 01 00 00 3E 75 B3 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 3E 75 00 00 00 00 00 FF 0F C8 [08:28:12]RasterBufferAndPrint [08:28:12]line Счет N : (1)30583 [08:28:12]line ИНН: 02508201610067 [08:28:12]line Контрольно-Кассовый Чек [08:28:12]line ПРОДАЖА [08:28:12]line ТРК (МРК, ГНК) : 12 [08:28:12]line Товар: 2710124130 [08:28:12]line Аи-92-К-5 [08:28:12]line 8.970 * 66.90 [08:28:12]line = 600.09 [08:28:12]line НДС 12% НСП 1% [08:28:12]line > о реализуемом товаре [08:28:12]line ОКРУГЛЕНИЕ: -0.09 [08:28:12]line ИТОГО: 600.00 [08:28:12]line Внесено: 600.00 [08:28:12]line СДАЧА: 0.00 [08:28:12]line НСП 1% : 5.31 [08:28:12]line НДС 12% : 63.73 [08:28:12]line Наличными: 600.00 [08:28:12]line Безнал.: 0.00 [08:28:12]line Место: АЗС № 170 "Партнер Нефть" [08:28:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:28:12]line СНО: Общий режим [08:28:12]line Чек 30 25.10.2024 08:28 [08:28:12]line Смена: 540 ФФД: 1.0 [08:28:12]line ЗНМ: 0300000110 [08:28:12]line РНМ: 0000000000091776 [08:28:12]line Версия ККМ: 001 [08:28:12]line ФМ: 0000000000871754 [08:28:12]line ФД: 191291 [08:28:12]line ФПД: 70508827041080 [08:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191291&fm=70508827041080&tin=02508201610067®Number=0000000000091776&sum=60000 [08:28:12]OFD Sender: Processing packet 191291 [packets to send 75, broken 74] [08:28:12]ProducePacketName [08:28:12]name=ofd_packets/00191291 [08:28:12]OFD Sender: To server: pG, [08:28:12]CommunicateWithHost lk.salyk.kg:30040 [08:28:12]ConnectInit lk.salyk.kg [08:28:12]written 0, free lines is 4095 [08:28:13]Connected sock=11 [08:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 41 07 01 D3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A3 56 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EB 02 00 35 04 06 00 40 20 9D 96 DD 38 80 42 7F 86 BB 07 BA 67 [08:28:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA C5 47 00 22 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EB 02 00 F4 03 04 00 72 FB 1A 67 B6 04 01 00 00 72 70 40 11 8A 36 F6 D6 [08:28:13]CommunicateWithHost err = 0 [08:28:13]CheckOFDResponse [08:28:13]1017 (14) - 77093643461234 [08:28:13]1041 (16) - 0000000000871754 [08:28:13]1040 (4) - 191291 [08:28:13]1012 (4) - 25.10.2024 01:59 [08:28:13]1206 (1) - 0 [08:28:13]OFD Sender: Remove packet 191291 [08:28:13]ProducePacketName [08:28:13]name=ofd_packets/00191291 [08:28:13]NVStorageDeleteData [08:28:13]Write to MH i2c: 01 00 00 69 75 DE [08:28:13]Write i2c OK [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: 01 [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: 01 07 00 [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: 01 07 00 69 75 00 00 00 00 00 91 0C 82 [08:28:13]RasterBufferAndPrint [08:28:13]line [08:28:13]line [08:28:13]line [08:28:13]line [08:28:13]line [08:28:13]written 0, free lines is 3223 [08:28:13]MH_Cut [08:28:13]Write to MH i2c: D1 01 00 70 75 01 B7 [08:28:13]Write i2c OK [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: D1 [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: D1 01 00 [08:28:13]MH_I2C_Read... [08:28:13]Read from MH i2c: D1 01 00 70 75 00 B6 [08:28:13]Write to MH i2c: 01 00 00 71 75 E6 [08:28:13]Write i2c OK [08:28:13]MH_I2C_Read... [08:28:13]OFD Sender: No OFD packet to send [08:28:14]*** Cut start [08:28:14]*** Partial cut [08:28:14]*** CUTSNS_PIN = 1 [08:28:14]*** CUTSNS_PIN = 0 [08:28:14]*** Brake cut motor [08:28:14]Read from MH i2c: 01 [08:28:14]MH_I2C_Read... [08:28:14]*** Stop cut motor [08:28:14]*** Cut end [08:28:14]Read from MH i2c: 01 07 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: 01 07 00 71 75 00 00 00 00 00 FF 0F FB [08:28:14]process_action close_receipt done [08:28:14]requested_data is exist [08:28:14]produce_requested_data [08:28:14]requested_item fm.sn is exist - process it [08:28:14]wFMCommunicate request_size=4 [08:28:14]MH_SAM_APDU [08:28:14]CAPDU: 80 11 00 00 [08:28:14]Write to MH i2c: E2 08 00 72 75 80 11 00 00 00 00 00 00 61 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 17 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 17 00 72 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [08:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:28:15]wFMCommunicate OK [08:28:15]requested_item fd.num is exist - process it [08:28:15]SAM_PROTO_GetFieldsCounters [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 13 00 00 [08:28:15]Write to MH i2c: E2 08 00 73 75 80 13 00 00 00 00 00 00 64 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 62 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 62 00 73 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:15]wFMCommunicate OK [08:28:15]SAM_PROTO_GetFieldsCounters done [08:28:15]requested_item shift.num is exist - process it [08:28:15]requested_item shift.opened is exist - process it [08:28:15]req_shift_opened [08:28:15]FM_GetShiftState [08:28:15]SAM_PROTO_GetShiftState [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 13 01 00 [08:28:15]Write to MH i2c: E2 08 00 74 75 80 13 01 00 00 00 00 00 66 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0E 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0E 00 74 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 29 [08:28:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:28:15]wFMCommunicate OK [08:28:15]SAM_PROTO_GetShiftState done [08:28:15]FM_GetShiftState done [08:28:15]req_shift_opened done [08:28:15]requested_item shift.open_date is exist - process it [08:28:15]req_shift_open_date [08:28:15]req_shift_open_date done [08:28:15]produce_requested_data done [08:28:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191291,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:28:15]process_action_free close_receipt [08:28:15]json_value_free [08:28:15]json_value_free done [08:28:15]process_json_proto returns [08:28:15]Send response to host [08:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191291,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:28:15]free response buf [08:28:15]execute_script done [08:28:15]execute_script returns [08:28:15]free content buf [08:28:15]Sock 8.Close socket [08:28:15]Sock 8.Thread stoped [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:24]ConnectInit Can't connect to host [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:07]accept exits with 10 [08:30:07]New connection [08:30:07]New thread 3066961252 created [08:30:07]Thread 3066817892 joined [08:30:07]Waiting for new connection... [08:30:07] Sock 10.Parse request [08:30:07]Sock 10.Check first char [08:30:07]Sock 10.First char is OK [08:30:07]request: POST /json_proto HTTP/1.0 [08:30:07]Method: POST [08:30:07]URL: /json_proto [08:30:07]Method is POST - this is cgi request [08:30:07]url: /json_proto [08:30:07]query_string will be loaded in cgi processing [08:30:07]execute_cgi json_proto POST (null) [08:30:07]execute_cgi path=json_proto method=POST [08:30:07]POST find Content-Length [08:30:07]Host: 172.17.63.131:8080 [08:30:07]Content-Length: 681 [08:30:07]Content-Type: application/json [08:30:07] [08:30:07]POST finish read [08:30:07]Found Content-Length = 681 [08:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:07]execute_script... [08:30:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:07]POST & json_proto [08:30:07]process_json_proto [08:30:07]json parsed OK: [08:30:07]protocol is kg_v1.0 [08:30:07]action value=close_receipt [08:30:07]process_action close_receipt [08:30:07]cmd_close_receipt [08:30:07]MH_GetDate [08:30:07]Write to MH i2c: F0 00 00 75 75 D9 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 09 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 09 00 75 75 00 17 57 1B 67 22 05 6E 64 CB [08:30:07]GetLastDocTimeStamp 1729844899 [08:30:07]current date 1729845015 [08:30:07]FM_GetShiftState [08:30:07]SAM_PROTO_GetShiftState [08:30:07]wFMCommunicate request_size=4 [08:30:07]MH_SAM_APDU [08:30:07]CAPDU: 80 13 01 00 [08:30:07]Write to MH i2c: E2 08 00 76 75 80 13 01 00 00 00 00 00 68 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:07]Read from MH i2c: E2 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 76 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2B [08:30:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:30:07]wFMCommunicate OK [08:30:07]SAM_PROTO_GetShiftState done [08:30:07]FM_GetShiftState done [08:30:07]opened in 1729816399 [08:30:07]opened+sec_in_day 1729902799 [08:30:07]quantity*price = 120018 [08:30:07]sum+1 = 120020 [08:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 31 25.10.2024 08:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191292 ФПД: 158403378118708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T083015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191292&fm=158403378118708&tin=02508201610067®Number=0000000000091776&sum=120000 [08:30:08]StoreToDocumentArchive [08:30:08]shift 540 fd 191292 [08:30:08]save to /storage/0540/doc_00191292 [08:30:08]save last doc name /storage/0540/doc_00191292 to /storage/kkm_last_doc_name [08:30:08]save OK [08:30:08]Clear old archive folders... [08:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:08]tlvbuf is 01633710 [08:30:08]SAM_PROTO_ClearQueue [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 09 00 00 [08:30:08]Write to MH i2c: E2 08 00 83 75 80 09 00 00 00 00 00 00 6A [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 83 75 00 90 00 6C [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]SAM_PROTO_ClearQueue done [08:30:08]KKMCreateOFDPacket [08:30:08]OFDProtocolAddRootSTLVToBuf [08:30:08]FM_MakeSignedData [08:30:08]FM_MakeSignedData [08:30:08]SAM_PROTO_SignData [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 0D 01 02 [08:30:08]Write to MH i2c: E2 08 00 84 75 80 0D 01 02 00 00 00 00 72 [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 84 75 00 90 00 6D [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]wFMCommunicate request_size=255 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 57 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EB 02 00 35 04 06 00 90 [08:30:08]Write to MH i2c: E2 02 01 85 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 57 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EB 02 00 35 04 06 00 90 00 00 F3 [08:30:08]OFD Sender: No OFD packet to send [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 85 75 00 90 00 6E [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=10 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 02 02 05 11 29 15 80 34 [08:30:09]Write to MH i2c: E2 0D 00 86 75 80 0D 02 02 05 00 11 29 15 80 34 00 00 82 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 86 75 00 90 00 6F [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 03 02 [08:30:09]Write to MH i2c: E2 08 00 87 75 80 0D 03 02 00 00 00 00 77 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 87 75 00 F9 32 BB C6 26 B2 CE 41 90 00 0B [08:30:09]RAPDU: F9 32 BB C6 26 B2 CE 41 90 00 [08:30:09]wFMCommunicate OK [08:30:09]SAM_PROTO_SignData done [08:30:09]FM_MakeSignedData done [08:30:09]CreateOFDProtocolMessage [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 11 00 00 [08:30:09]Write to MH i2c: E2 08 00 88 75 80 11 00 00 00 00 00 00 77 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 88 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [08:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:09]wFMCommunicate OK [08:30:09]CreateOFDProtocolMessage done [08:30:09]OFDSenderStorePacket 191292 [08:30:09]StoreOFDPacket docnum=191292 [08:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 0B 07 01 7C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 57 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EB 02 00 35 04 06 00 90 11 29 15 80 34 F9 32 BB C6 26 B2 CE 41 [08:30:09]CheckFolder [08:30:09]dirname=/storage/ofd_packets [08:30:09]CheckFolder done [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00191292 [08:30:09]NVStorageSaveData ofd_packets/00191292 [08:30:09]File name is /storage/ofd_packets/00191292 [08:30:09]Write 301 bytes [08:30:09]NVStorageSaveData done [08:30:09]OFDSenderStorePacket done [08:30:09]KKMCreateOFDPacket done [08:30:09]NVStorageSaveData kkm_last_timestamp [08:30:09]File name is /storage/kkm_last_timestamp [08:30:09]Write 4 bytes [08:30:09]NVStorageSaveData done [08:30:09]ExternCall_PrintAddStr [08:30:09]wPrintStart [08:30:09]Write to MH i2c: 01 00 00 89 75 FE [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 89 75 00 00 00 00 00 FF 0F 13 [08:30:09]RasterBufferAndPrint [08:30:09]line Счет N : (1)30584 [08:30:09]line ИНН: 02508201610067 [08:30:09]line Контрольно-Кассовый Чек [08:30:09]line ПРОДАЖА [08:30:09]line ТРК (МРК, ГНК) : 12 [08:30:09]line Товар: 2710124130 [08:30:09]line Аи-92-К-5 [08:30:09]line 17.940 * 66.90 [08:30:09]line = 1200.19 [08:30:09]line НДС 12% НСП 1% [08:30:09]line > о реализуемом товаре [08:30:09]line ОКРУГЛЕНИЕ: -0.19 [08:30:09]line ИТОГО: 1200.00 [08:30:09]line Внесено: 1200.00 [08:30:09]line СДАЧА: 0.00 [08:30:09]line НСП 1% : 10.62 [08:30:09]line НДС 12% : 127.45 [08:30:09]line Наличными: 1200.00 [08:30:09]line Безнал.: 0.00 [08:30:09]line Место: АЗС № 170 "Партнер Нефть" [08:30:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:30:09]line СНО: Общий режим [08:30:09]line Чек 31 25.10.2024 08:30 [08:30:09]line Смена: 540 ФФД: 1.0 [08:30:09]line ЗНМ: 0300000110 [08:30:09]line РНМ: 0000000000091776 [08:30:09]line Версия ККМ: 001 [08:30:09]line ФМ: 0000000000871754 [08:30:09]line ФД: 191292 [08:30:09]line ФПД: 158403378118708 [08:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T083015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191292&fm=158403378118708&tin=02508201610067®Number=0000000000091776&sum=120000 [08:30:09]written 0, free lines is 4095 [08:30:09]OFD Sender: Processing packet 191292 [packets to send 75, broken 74] [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00191292 [08:30:09]OFD Sender: To server: pG, [08:30:09]CommunicateWithHost lk.salyk.kg:30040 [08:30:09]ConnectInit lk.salyk.kg [08:30:09]Connected sock=9 [08:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 0B 07 01 7C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 57 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EB 02 00 35 04 06 00 90 11 29 15 80 34 F9 32 BB C6 26 B2 CE 41 [08:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 16 47 00 09 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EB 02 00 F4 03 04 00 E6 FB 1A 67 B6 04 01 00 00 CB 5C 04 8F C7 C1 7E 69 [08:30:09]CommunicateWithHost err = 0 [08:30:09]CheckOFDResponse [08:30:09]1017 (14) - 77093643461234 [08:30:09]1041 (16) - 0000000000871754 [08:30:09]1040 (4) - 191292 [08:30:09]1012 (4) - 25.10.2024 02:01 [08:30:09]1206 (1) - 0 [08:30:09]OFD Sender: Remove packet 191292 [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00191292 [08:30:09]NVStorageDeleteData [08:30:09]Write to MH i2c: 01 00 00 B4 75 29 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 B4 75 00 00 00 00 00 A8 0C E4 [08:30:09]RasterBufferAndPrint [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]line [08:30:09]written 0, free lines is 3248 [08:30:09]MH_Cut [08:30:09]Write to MH i2c: D1 01 00 BB 75 01 02 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 01 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: D1 01 00 BB 75 00 01 [08:30:09]Write to MH i2c: 01 00 00 BC 75 31 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:10]OFD Sender: No OFD packet to send [08:30:10]*** Cut start [08:30:10]*** Partial cut [08:30:10]*** CUTSNS_PIN = 1 [08:30:10]*** CUTSNS_PIN = 0 [08:30:11]*** Brake cut motor [08:30:11]Read from MH i2c: 01 [08:30:11]MH_I2C_Read... [08:30:11]*** Stop cut motor [08:30:11]*** Cut end [08:30:11]Read from MH i2c: 01 07 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: 01 07 00 BC 75 00 00 00 00 00 FF 0F 46 [08:30:11]process_action close_receipt done [08:30:11]requested_data is exist [08:30:11]produce_requested_data [08:30:11]requested_item fm.sn is exist - process it [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 11 00 00 [08:30:11]Write to MH i2c: E2 08 00 BD 75 80 11 00 00 00 00 00 00 AC [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 17 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 17 00 BD 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [08:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:11]wFMCommunicate OK [08:30:11]requested_item fd.num is exist - process it [08:30:11]SAM_PROTO_GetFieldsCounters [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 00 00 [08:30:11]Write to MH i2c: E2 08 00 BE 75 80 13 00 00 00 00 00 00 AF [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 62 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 62 00 BE 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetFieldsCounters done [08:30:11]requested_item shift.num is exist - process it [08:30:11]requested_item shift.opened is exist - process it [08:30:11]req_shift_opened [08:30:11]FM_GetShiftState [08:30:11]SAM_PROTO_GetShiftState [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 01 00 [08:30:11]Write to MH i2c: E2 08 00 BF 75 80 13 01 00 00 00 00 00 B1 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 BF 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 74 [08:30:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetShiftState done [08:30:11]FM_GetShiftState done [08:30:11]req_shift_opened done [08:30:11]requested_item shift.open_date is exist - process it [08:30:11]req_shift_open_date [08:30:11]req_shift_open_date done [08:30:11]produce_requested_data done [08:30:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191292,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:30:11]process_action_free close_receipt [08:30:11]json_value_free [08:30:11]json_value_free done [08:30:11]process_json_proto returns [08:30:11]Send response to host [08:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191292,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:30:11]free response buf [08:30:11]execute_script done [08:30:11]execute_script returns [08:30:11]free content buf [08:30:11]Sock 10.Close socket [08:30:11]Sock 10.Thread stoped [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:06]accept exits with 8 [08:35:06]New connection [08:35:06]New thread 3066817892 created [08:35:06]Thread 3066961252 joined [08:35:06]Waiting for new connection... [08:35:06] Sock 8.Parse request [08:35:06]Sock 8.Check first char [08:35:06]Sock 8.First char is OK [08:35:06]request: POST /json_proto HTTP/1.0 [08:35:06]Method: POST [08:35:06]URL: /json_proto [08:35:06]Method is POST - this is cgi request [08:35:06]url: /json_proto [08:35:06]query_string will be loaded in cgi processing [08:35:06]execute_cgi json_proto POST (null) [08:35:06]execute_cgi path=json_proto method=POST [08:35:06]POST find Content-Length [08:35:06]Host: 172.17.63.131:8080 [08:35:06]Content-Length: 676 [08:35:06]Content-Type: application/json [08:35:06] [08:35:06]POST finish read [08:35:06]Found Content-Length = 676 [08:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:06]execute_script... [08:35: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)30585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:06]POST & json_proto [08:35:06]process_json_proto [08:35:06]json parsed OK: [08:35:06]protocol is kg_v1.0 [08:35:06]action value=close_receipt [08:35:06]process_action close_receipt [08:35:06]cmd_close_receipt [08:35:06]MH_GetDate [08:35:06]Write to MH i2c: F0 00 00 C0 75 24 [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 09 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: F0 09 00 C0 75 00 42 58 1B 67 22 05 6E 64 42 [08:35:06]GetLastDocTimeStamp 1729845015 [08:35:06]current date 1729845314 [08:35:06]FM_GetShiftState [08:35:06]SAM_PROTO_GetShiftState [08:35:06]wFMCommunicate request_size=4 [08:35:06]MH_SAM_APDU [08:35:06]CAPDU: 80 13 01 00 [08:35:06]Write to MH i2c: E2 08 00 C1 75 80 13 01 00 00 00 00 00 B3 [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:06]Read from MH i2c: E2 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 C1 75 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 76 [08:35:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:35:06]wFMCommunicate OK [08:35:06]SAM_PROTO_GetShiftState done [08:35:06]FM_GetShiftState done [08:35:06]opened in 1729816399 [08:35:06]opened+sec_in_day 1729902799 [08:35:06]quantity*price = 20003 [08:35:06]sum+1 = 20004 [08:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 32 25.10.2024 08:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191293 ФПД: 145033188820717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T083514&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191293&fm=145033188820717&tin=02508201610067®Number=0000000000091776&sum=20000 [08:35:07]StoreToDocumentArchive [08:35:07]shift 540 fd 191293 [08:35:07]save to /storage/0540/doc_00191293 [08:35:07]save last doc name /storage/0540/doc_00191293 to /storage/kkm_last_doc_name [08:35:07]save OK [08:35:07]Clear old archive folders... [08:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:07]tlvbuf is 01679CF0 [08:35:07]SAM_PROTO_ClearQueue [08:35:07]wFMCommunicate request_size=4 [08:35:07]MH_SAM_APDU [08:35:07]CAPDU: 80 09 00 00 [08:35:07]Write to MH i2c: E2 08 00 CE 75 80 09 00 00 00 00 00 00 B5 [08:35:07]Write i2c OK [08:35:07]MH_I2C_Read... [08:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:07]Read from MH i2c: E2 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 03 00 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 03 00 CE 75 00 90 00 B7 [08:35:07]RAPDU: 90 00 [08:35:07]wFMCommunicate OK [08:35:07]SAM_PROTO_ClearQueue done [08:35:07]KKMCreateOFDPacket [08:35:07]OFDProtocolAddRootSTLVToBuf [08:35:07]FM_MakeSignedData [08:35:07]FM_MakeSignedData [08:35:07]SAM_PROTO_SignData [08:35:07]wFMCommunicate request_size=4 [08:35:07]MH_SAM_APDU [08:35:07]CAPDU: 80 0D 01 02 [08:35:07]Write to MH i2c: E2 08 00 CF 75 80 0D 01 02 00 00 00 00 BD [08:35:07]Write i2c OK [08:35:07]MH_I2C_Read... [08:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:07]Read from MH i2c: E2 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 03 00 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 03 00 CF 75 00 90 00 B8 [08:35:07]RAPDU: 90 00 [08:35:07]wFMCommunicate OK [08:35:07]wFMCommunicate request_size=255 [08:35:07]MH_SAM_APDU [08:35:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 42 58 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EB 02 00 35 04 06 00 83 [08:35:07]Write to MH i2c: E2 02 01 D0 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 42 58 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EB 02 00 35 04 06 00 83 00 00 1A [08:35:07]Write i2c OK [08:35:07]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 D0 75 00 90 00 B9 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=10 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 02 02 05 E8 2B B3 46 ED [08:35:08]Write to MH i2c: E2 0D 00 D1 75 80 0D 02 02 05 00 E8 2B B3 46 ED 00 00 C3 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 D1 75 00 90 00 BA [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 03 02 [08:35:08]Write to MH i2c: E2 08 00 D2 75 80 0D 03 02 00 00 00 00 C2 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 D2 75 00 13 00 CB 8A 9A F2 AB 7E 90 00 E0 [08:35:08]RAPDU: 13 00 CB 8A 9A F2 AB 7E 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_SignData done [08:35:08]FM_MakeSignedData done [08:35:08]CreateOFDProtocolMessage [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 11 00 00 [08:35:08]Write to MH i2c: E2 08 00 D3 75 80 11 00 00 00 00 00 00 C2 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 D3 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [08:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:35:08]wFMCommunicate OK [08:35:08]CreateOFDProtocolMessage done [08:35:08]OFDSenderStorePacket 191293 [08:35:08]StoreOFDPacket docnum=191293 [08:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 29 56 07 01 B2 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 42 58 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EB 02 00 35 04 06 00 83 E8 2B B3 46 ED 13 00 CB 8A 9A F2 AB 7E [08:35:08]CheckFolder [08:35:08]dirname=/storage/ofd_packets [08:35:08]CheckFolder done [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00191293 [08:35:08]NVStorageSaveData ofd_packets/00191293 [08:35:08]File name is /storage/ofd_packets/00191293 [08:35:08]Write 301 bytes [08:35:08]NVStorageSaveData done [08:35:08]OFDSenderStorePacket done [08:35:08]KKMCreateOFDPacket done [08:35:08]NVStorageSaveData kkm_last_timestamp [08:35:08]File name is /storage/kkm_last_timestamp [08:35:08]Write 4 bytes [08:35:08]NVStorageSaveData done [08:35:08]ExternCall_PrintAddStr [08:35:08]wPrintStart [08:35:08]Write to MH i2c: 01 00 00 D4 75 49 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 D4 75 00 00 00 00 00 FF 0F 5E [08:35:08]RasterBufferAndPrint [08:35:08]line Счет N : (1)30585 [08:35:08]line ИНН: 02508201610067 [08:35:08]line Контрольно-Кассовый Чек [08:35:08]line ПРОДАЖА [08:35:08]line ТРК (МРК, ГНК) : 12 [08:35:08]line Товар: 2710124130 [08:35:08]line Аи-92-К-5 [08:35:08]line 2.990 * 66.90 [08:35:08]line = 200.03 [08:35:08]line НДС 12% НСП 1% [08:35:08]line > о реализуемом товаре [08:35:08]line ОКРУГЛЕНИЕ: -0.03 [08:35:08]line ИТОГО: 200.00 [08:35:08]line Внесено: 200.00 [08:35:08]line СДАЧА: 0.00 [08:35:08]line НСП 1% : 1.77 [08:35:08]line НДС 12% : 21.24 [08:35:08]line Наличными: 200.00 [08:35:08]line Безнал.: 0.00 [08:35:08]line Место: АЗС № 170 "Партнер Нефть" [08:35:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:35:08]line СНО: Общий режим [08:35:08]line Чек 32 25.10.2024 08:35 [08:35:08]line Смена: 540 ФФД: 1.0 [08:35:08]line ЗНМ: 0300000110 [08:35:08]line РНМ: 0000000000091776 [08:35:08]line Версия ККМ: 001 [08:35:08]line ФМ: 0000000000871754 [08:35:08]line ФД: 191293 [08:35:08]line ФПД: 145033188820717 [08:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T083514&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191293&fm=145033188820717&tin=02508201610067®Number=0000000000091776&sum=20000 [08:35:08]OFD Sender: Processing packet 191293 [packets to send 75, broken 74] [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00191293 [08:35:08]OFD Sender: To server: pG, [08:35:08]CommunicateWithHost lk.salyk.kg:30040 [08:35:08]ConnectInit lk.salyk.kg [08:35:08]written 0, free lines is 4095 [08:35:08]Connected sock=10 [08:35:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 29 56 07 01 B2 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 42 58 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EB 02 00 35 04 06 00 83 E8 2B B3 46 ED 13 00 CB 8A 9A F2 AB 7E [08:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 04 47 00 4D A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EB 02 00 F4 03 04 00 11 FD 1A 67 B6 04 01 00 00 EA 6E 98 B0 9A 24 BA 84 [08:35:08]CommunicateWithHost err = 0 [08:35:08]CheckOFDResponse [08:35:08]1017 (14) - 77093643461234 [08:35:08]1041 (16) - 0000000000871754 [08:35:08]1040 (4) - 191293 [08:35:08]1012 (4) - 25.10.2024 02:06 [08:35:08]1206 (1) - 0 [08:35:08]OFD Sender: Remove packet 191293 [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00191293 [08:35:08]NVStorageDeleteData [08:35:08]Write to MH i2c: 01 00 00 FF 75 74 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 FF 75 00 00 00 00 00 93 0C 1A [08:35:08]RasterBufferAndPrint [08:35:08]line [08:35:08]line [08:35:08]line [08:35:08]line [08:35:08]line [08:35:08]written 0, free lines is 3225 [08:35:09]MH_Cut [08:35:09]Write to MH i2c: D1 01 00 06 76 01 4E [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 06 76 00 4D [08:35:09]Write to MH i2c: 01 00 00 07 76 7D [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]OFD Sender: No OFD packet to send [08:35:09]*** Cut start [08:35:09]*** Partial cut [08:35:09]*** CUTSNS_PIN = 1 [08:35:09]*** CUTSNS_PIN = 0 [08:35:10]*** Brake cut motor [08:35:10]Read from MH i2c: 01 [08:35:10]MH_I2C_Read... [08:35:10]*** Stop cut motor [08:35:10]*** Cut end [08:35:10]Read from MH i2c: 01 07 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: 01 07 00 07 76 00 00 00 00 00 FF 0F 92 [08:35:10]process_action close_receipt done [08:35:10]requested_data is exist [08:35:10]produce_requested_data [08:35:10]requested_item fm.sn is exist - process it [08:35:10]wFMCommunicate request_size=4 [08:35:10]MH_SAM_APDU [08:35:10]CAPDU: 80 11 00 00 [08:35:10]Write to MH i2c: E2 08 00 08 76 80 11 00 00 00 00 00 00 F8 [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:10]Read from MH i2c: E2 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 17 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 17 00 08 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [08:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:35:10]wFMCommunicate OK [08:35:10]requested_item fd.num is exist - process it [08:35:10]SAM_PROTO_GetFieldsCounters [08:35:10]wFMCommunicate request_size=4 [08:35:10]MH_SAM_APDU [08:35:10]CAPDU: 80 13 00 00 [08:35:10]Write to MH i2c: E2 08 00 09 76 80 13 00 00 00 00 00 00 FB [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:10]Read from MH i2c: E2 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 62 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 62 00 09 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [08:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:10]wFMCommunicate OK [08:35:10]SAM_PROTO_GetFieldsCounters done [08:35:10]requested_item shift.num is exist - process it [08:35:10]requested_item shift.opened is exist - process it [08:35:10]req_shift_opened [08:35:10]FM_GetShiftState [08:35:10]SAM_PROTO_GetShiftState [08:35:10]wFMCommunicate request_size=4 [08:35:10]MH_SAM_APDU [08:35:10]CAPDU: 80 13 01 00 [08:35:10]Write to MH i2c: E2 08 00 0A 76 80 13 01 00 00 00 00 00 FD [08:35:10]Write i2c OK [08:35:10]MH_I2C_Read... [08:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:10]Read from MH i2c: E2 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 0E 00 [08:35:10]MH_I2C_Read... [08:35:10]Read from MH i2c: E2 0E 00 0A 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C0 [08:35:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:35:10]wFMCommunicate OK [08:35:10]SAM_PROTO_GetShiftState done [08:35:10]FM_GetShiftState done [08:35:10]req_shift_opened done [08:35:10]requested_item shift.open_date is exist - process it [08:35:10]req_shift_open_date [08:35:10]req_shift_open_date done [08:35:10]produce_requested_data done [08:35:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191293,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:35:10]process_action_free close_receipt [08:35:10]json_value_free [08:35:10]json_value_free done [08:35:10]process_json_proto returns [08:35:10]Send response to host [08:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191293,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:35:10]free response buf [08:35:10]execute_script done [08:35:10]execute_script returns [08:35:10]free content buf [08:35:10]Sock 8.Close socket [08:35:10]Sock 8.Thread stoped [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:33]accept exits with 9 [08:48:33]New connection [08:48:33]New thread 3066961252 created [08:48:33]Thread 3066817892 joined [08:48:33]Waiting for new connection... [08:48:33] Sock 9.Parse request [08:48:33]Sock 9.Check first char [08:48:33]Sock 9.First char is OK [08:48:33]request: POST /json_proto HTTP/1.0 [08:48:33]Method: POST [08:48:33]URL: /json_proto [08:48:33]Method is POST - this is cgi request [08:48:33]url: /json_proto [08:48:33]query_string will be loaded in cgi processing [08:48:33]execute_cgi json_proto POST (null) [08:48:33]execute_cgi path=json_proto method=POST [08:48:33]POST find Content-Length [08:48:33]Host: 172.17.63.131:8080 [08:48:33]Content-Length: 676 [08:48:33]Content-Type: application/json [08:48:33] [08:48:33]POST finish read [08:48:33]Found Content-Length = 676 [08:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:33]execute_script... [08:48: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)30586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:33]POST & json_proto [08:48:33]process_json_proto [08:48:33]json parsed OK: [08:48:33]protocol is kg_v1.0 [08:48:33]action value=close_receipt [08:48:33]process_action close_receipt [08:48:33]cmd_close_receipt [08:48:33]MH_GetDate [08:48:33]Write to MH i2c: F0 00 00 0B 76 70 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: F0 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: F0 09 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: F0 09 00 0B 76 00 69 5B 1B 67 22 05 6E 64 B8 [08:48:33]GetLastDocTimeStamp 1729845314 [08:48:33]current date 1729846121 [08:48:33]FM_GetShiftState [08:48:33]SAM_PROTO_GetShiftState [08:48:33]wFMCommunicate request_size=4 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 13 01 00 [08:48:33]Write to MH i2c: E2 08 00 0C 76 80 13 01 00 00 00 00 00 FF [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 0E 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 0E 00 0C 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C2 [08:48:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:48:33]wFMCommunicate OK [08:48:33]SAM_PROTO_GetShiftState done [08:48:33]FM_GetShiftState done [08:48:33]opened in 1729816399 [08:48:33]opened+sec_in_day 1729902799 [08:48:33]quantity*price = 50041 [08:48:33]sum+1 = 50042 [08:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 33 25.10.2024 08:48 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191294 ФПД: 221245290375762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191294&fm=221245290375762&tin=02508201610067®Number=0000000000091776&sum=50000 [08:48:34]StoreToDocumentArchive [08:48:34]shift 540 fd 191294 [08:48:34]save to /storage/0540/doc_00191294 [08:48:34]save last doc name /storage/0540/doc_00191294 to /storage/kkm_last_doc_name [08:48:34]save OK [08:48:34]Clear old archive folders... [08:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:34]tlvbuf is 0160B730 [08:48:34]SAM_PROTO_ClearQueue [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 09 00 00 [08:48:34]Write to MH i2c: E2 08 00 19 76 80 09 00 00 00 00 00 00 01 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 19 76 00 90 00 03 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]SAM_PROTO_ClearQueue done [08:48:34]KKMCreateOFDPacket [08:48:34]OFDProtocolAddRootSTLVToBuf [08:48:34]FM_MakeSignedData [08:48:34]FM_MakeSignedData [08:48:34]SAM_PROTO_SignData [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 01 02 [08:48:34]Write to MH i2c: E2 08 00 1A 76 80 0D 01 02 00 00 00 00 09 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 1A 76 00 90 00 04 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=255 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 69 5B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EB 02 00 35 04 06 00 C9 [08:48:34]Write to MH i2c: E2 02 01 1B 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 69 5B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EB 02 00 35 04 06 00 C9 00 00 16 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 03 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 03 00 1B 76 00 90 00 05 [08:48:35]RAPDU: 90 00 [08:48:35]wFMCommunicate OK [08:48:35]wFMCommunicate request_size=10 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 0D 02 02 05 38 AE F0 EA 52 [08:48:35]Write to MH i2c: E2 0D 00 1C 76 80 0D 02 02 05 00 38 AE F0 EA 52 00 00 28 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 03 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 03 00 1C 76 00 90 00 06 [08:48:35]RAPDU: 90 00 [08:48:35]wFMCommunicate OK [08:48:35]wFMCommunicate request_size=4 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 0D 03 02 [08:48:35]Write to MH i2c: E2 08 00 1D 76 80 0D 03 02 00 00 00 00 0E [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 0B 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 0B 00 1D 76 00 41 16 96 A6 D8 41 96 B5 90 00 06 [08:48:35]RAPDU: 41 16 96 A6 D8 41 96 B5 90 00 [08:48:35]wFMCommunicate OK [08:48:35]SAM_PROTO_SignData done [08:48:35]FM_MakeSignedData done [08:48:35]CreateOFDProtocolMessage [08:48:35]wFMCommunicate request_size=4 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 11 00 00 [08:48:35]Write to MH i2c: E2 08 00 1E 76 80 11 00 00 00 00 00 00 0E [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 17 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 17 00 1E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [08:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:48:35]wFMCommunicate OK [08:48:35]CreateOFDProtocolMessage done [08:48:35]OFDSenderStorePacket 191294 [08:48:35]StoreOFDPacket docnum=191294 [08:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 07 41 07 01 1B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 69 5B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EB 02 00 35 04 06 00 C9 38 AE F0 EA 52 41 16 96 A6 D8 41 96 B5 [08:48:35]CheckFolder [08:48:35]dirname=/storage/ofd_packets [08:48:35]CheckFolder done [08:48:35]ProducePacketName [08:48:35]name=ofd_packets/00191294 [08:48:35]NVStorageSaveData ofd_packets/00191294 [08:48:35]File name is /storage/ofd_packets/00191294 [08:48:35]Write 301 bytes [08:48:35]NVStorageSaveData done [08:48:35]OFDSenderStorePacket done [08:48:35]KKMCreateOFDPacket done [08:48:35]NVStorageSaveData kkm_last_timestamp [08:48:35]File name is /storage/kkm_last_timestamp [08:48:35]Write 4 bytes [08:48:35]NVStorageSaveData done [08:48:35]ExternCall_PrintAddStr [08:48:35]wPrintStart [08:48:35]Write to MH i2c: 01 00 00 1F 76 95 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 1F 76 00 00 00 00 00 FF 0F AA [08:48:35]RasterBufferAndPrint [08:48:35]line Счет N : (1)30586 [08:48:35]line ИНН: 02508201610067 [08:48:35]line Контрольно-Кассовый Чек [08:48:35]line ПРОДАЖА [08:48:35]line ТРК (МРК, ГНК) : 12 [08:48:35]line Товар: 2710124130 [08:48:35]line Аи-92-К-5 [08:48:35]line 7.480 * 66.90 [08:48:35]line = 500.41 [08:48:35]line НДС 12% НСП 1% [08:48:35]line > о реализуемом товаре [08:48:35]line ОКРУГЛЕНИЕ: -0.41 [08:48:35]line ИТОГО: 500.00 [08:48:35]line Внесено: 500.00 [08:48:35]line СДАЧА: 0.00 [08:48:35]line НСП 1% : 4.43 [08:48:35]line НДС 12% : 53.14 [08:48:35]line Наличными: 500.00 [08:48:35]line Безнал.: 0.00 [08:48:35]line Место: АЗС № 170 "Партнер Нефть" [08:48:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:48:35]line СНО: Общий режим [08:48:35]line Чек 33 25.10.2024 08:48 [08:48:35]line Смена: 540 ФФД: 1.0 [08:48:35]line ЗНМ: 0300000110 [08:48:35]line РНМ: 0000000000091776 [08:48:35]line Версия ККМ: 001 [08:48:35]line ФМ: 0000000000871754 [08:48:35]line ФД: 191294 [08:48:35]line ФПД: 221245290375762 [08:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191294&fm=221245290375762&tin=02508201610067®Number=0000000000091776&sum=50000 [08:48:35]OFD Sender: Processing packet 191294 [packets to send 75, broken 74] [08:48:35]ProducePacketName [08:48:35]name=ofd_packets/00191294 [08:48:35]OFD Sender: To server: pG, [08:48:35]CommunicateWithHost lk.salyk.kg:30040 [08:48:35]ConnectInit lk.salyk.kg [08:48:35]written 0, free lines is 4095 [08:48:35]Connected sock=10 [08:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 07 41 07 01 1B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 69 5B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EB 02 00 35 04 06 00 C9 38 AE F0 EA 52 41 16 96 A6 D8 41 96 B5 [08:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AD A3 47 00 ED 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EB 02 00 F4 03 04 00 38 00 1B 67 B6 04 01 00 00 50 D4 23 20 E2 87 1B A8 [08:48:35]CommunicateWithHost err = 0 [08:48:35]CheckOFDResponse [08:48:35]1017 (14) - 77093643461234 [08:48:35]1041 (16) - 0000000000871754 [08:48:35]1040 (4) - 191294 [08:48:35]1012 (4) - 25.10.2024 02:19 [08:48:35]1206 (1) - 0 [08:48:35]OFD Sender: Remove packet 191294 [08:48:35]ProducePacketName [08:48:35]name=ofd_packets/00191294 [08:48:35]NVStorageDeleteData [08:48:35]Write to MH i2c: 01 00 00 4A 76 C0 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 4A 76 00 00 00 00 00 95 0C 68 [08:48:35]RasterBufferAndPrint [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]written 0, free lines is 3225 [08:48:35]MH_Cut [08:48:35]Write to MH i2c: D1 01 00 51 76 01 99 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 51 76 00 98 [08:48:35]Write to MH i2c: 01 00 00 52 76 C8 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:36]OFD Sender: No OFD packet to send [08:48:36]*** Cut start [08:48:36]*** Partial cut [08:48:36]*** CUTSNS_PIN = 1 [08:48:36]*** CUTSNS_PIN = 0 [08:48:37]*** Brake cut motor [08:48:37]Read from MH i2c: 01 [08:48:37]MH_I2C_Read... [08:48:37]*** Stop cut motor [08:48:37]*** Cut end [08:48:37]Read from MH i2c: 01 07 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: 01 07 00 52 76 00 00 00 00 00 FF 0F DD [08:48:37]process_action close_receipt done [08:48:37]requested_data is exist [08:48:37]produce_requested_data [08:48:37]requested_item fm.sn is exist - process it [08:48:37]wFMCommunicate request_size=4 [08:48:37]MH_SAM_APDU [08:48:37]CAPDU: 80 11 00 00 [08:48:37]Write to MH i2c: E2 08 00 53 76 80 11 00 00 00 00 00 00 43 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:37]Read from MH i2c: E2 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 17 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 17 00 53 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [08:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:48:37]wFMCommunicate OK [08:48:37]requested_item fd.num is exist - process it [08:48:37]SAM_PROTO_GetFieldsCounters [08:48:37]wFMCommunicate request_size=4 [08:48:37]MH_SAM_APDU [08:48:37]CAPDU: 80 13 00 00 [08:48:37]Write to MH i2c: E2 08 00 54 76 80 13 00 00 00 00 00 00 46 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:37]Read from MH i2c: E2 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 62 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 62 00 54 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [08:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:37]wFMCommunicate OK [08:48:37]SAM_PROTO_GetFieldsCounters done [08:48:37]requested_item shift.num is exist - process it [08:48:37]requested_item shift.opened is exist - process it [08:48:37]req_shift_opened [08:48:37]FM_GetShiftState [08:48:37]SAM_PROTO_GetShiftState [08:48:37]wFMCommunicate request_size=4 [08:48:37]MH_SAM_APDU [08:48:37]CAPDU: 80 13 01 00 [08:48:37]Write to MH i2c: E2 08 00 55 76 80 13 01 00 00 00 00 00 48 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:37]Read from MH i2c: E2 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 55 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [08:48:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:48:37]wFMCommunicate OK [08:48:37]SAM_PROTO_GetShiftState done [08:48:37]FM_GetShiftState done [08:48:37]req_shift_opened done [08:48:37]requested_item shift.open_date is exist - process it [08:48:37]req_shift_open_date [08:48:37]req_shift_open_date done [08:48:37]produce_requested_data done [08:48:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191294,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:48:37]process_action_free close_receipt [08:48:37]json_value_free [08:48:37]json_value_free done [08:48:37]process_json_proto returns [08:48:37]Send response to host [08:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191294,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:48:37]free response buf [08:48:37]execute_script done [08:48:37]execute_script returns [08:48:37]free content buf [08:48:37]Sock 9.Close socket [08:48:37]Sock 9.Thread stoped [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]accept exits with 8 [08:55:01]New connection [08:55:01]New thread 3066817892 created [08:55:01]Thread 3066961252 joined [08:55:01]Waiting for new connection... [08:55:01] Sock 8.Parse request [08:55:01]Sock 8.Check first char [08:55:01]Sock 8.First char is OK [08:55:01]request: POST /json_proto HTTP/1.0 [08:55:01]Method: POST [08:55:01]URL: /json_proto [08:55:01]Method is POST - this is cgi request [08:55:01]url: /json_proto [08:55:01]query_string will be loaded in cgi processing [08:55:01]execute_cgi json_proto POST (null) [08:55:01]execute_cgi path=json_proto method=POST [08:55:01]POST find Content-Length [08:55:01]Host: 172.17.63.131:8080 [08:55:01]Content-Length: 676 [08:55:01]Content-Type: application/json [08:55:01] [08:55:01]POST finish read [08:55:01]Found Content-Length = 676 [08:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:01]execute_script... [08:55: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)30587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:01]POST & json_proto [08:55:01]process_json_proto [08:55:01]json parsed OK: [08:55:01]protocol is kg_v1.0 [08:55:01]action value=close_receipt [08:55:01]process_action close_receipt [08:55:01]cmd_close_receipt [08:55:01]MH_GetDate [08:55:01]Write to MH i2c: F0 00 00 56 76 BB [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: F0 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: F0 09 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: F0 09 00 56 76 00 ED 5C 1B 67 22 05 6E 64 88 [08:55:01]GetLastDocTimeStamp 1729846121 [08:55:01]current date 1729846509 [08:55:01]FM_GetShiftState [08:55:01]SAM_PROTO_GetShiftState [08:55:01]wFMCommunicate request_size=4 [08:55:01]MH_SAM_APDU [08:55:01]CAPDU: 80 13 01 00 [08:55:01]Write to MH i2c: E2 08 00 57 76 80 13 01 00 00 00 00 00 4A [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:01]Read from MH i2c: E2 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 0E 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 0E 00 57 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [08:55:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:55:01]wFMCommunicate OK [08:55:01]SAM_PROTO_GetShiftState done [08:55:01]FM_GetShiftState done [08:55:01]opened in 1729816399 [08:55:01]opened+sec_in_day 1729902799 [08:55:01]quantity*price = 40006 [08:55:01]sum+1 = 40007 [08:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 34 25.10.2024 08:55 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191295 ФПД: 153968087620830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191295&fm=153968087620830&tin=02508201610067®Number=0000000000091776&sum=40000 [08:55:02]StoreToDocumentArchive [08:55:02]shift 540 fd 191295 [08:55:02]save to /storage/0540/doc_00191295 [08:55:02]save last doc name /storage/0540/doc_00191295 to /storage/kkm_last_doc_name [08:55:02]save OK [08:55:02]Clear old archive folders... [08:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:02]tlvbuf is B6F5A230 [08:55:02]SAM_PROTO_ClearQueue [08:55:02]wFMCommunicate request_size=4 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 09 00 00 [08:55:02]Write to MH i2c: E2 08 00 64 76 80 09 00 00 00 00 00 00 4C [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:02]Read from MH i2c: E2 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 03 00 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 03 00 64 76 00 90 00 4E [08:55:02]RAPDU: 90 00 [08:55:02]wFMCommunicate OK [08:55:02]SAM_PROTO_ClearQueue done [08:55:02]KKMCreateOFDPacket [08:55:02]OFDProtocolAddRootSTLVToBuf [08:55:02]FM_MakeSignedData [08:55:02]FM_MakeSignedData [08:55:02]SAM_PROTO_SignData [08:55:02]wFMCommunicate request_size=4 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 0D 01 02 [08:55:02]Write to MH i2c: E2 08 00 65 76 80 0D 01 02 00 00 00 00 54 [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:02]Read from MH i2c: E2 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 03 00 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 03 00 65 76 00 90 00 4F [08:55:02]RAPDU: 90 00 [08:55:02]wFMCommunicate OK [08:55:02]wFMCommunicate request_size=255 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 5C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EB 02 00 35 04 06 00 8C [08:55:02]Write to MH i2c: E2 02 01 66 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 5C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EB 02 00 35 04 06 00 8C 00 00 7A [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:03]Read from MH i2c: E2 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 03 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 03 00 66 76 00 90 00 50 [08:55:03]RAPDU: 90 00 [08:55:03]wFMCommunicate OK [08:55:03]wFMCommunicate request_size=10 [08:55:03]MH_SAM_APDU [08:55:03]CAPDU: 80 0D 02 02 05 08 7D 2B 5C DE [08:55:03]Write to MH i2c: E2 0D 00 67 76 80 0D 02 02 05 00 08 7D 2B 5C DE 00 00 4B [08:55:03]Write i2c OK [08:55:03]MH_I2C_Read... [08:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:03]Read from MH i2c: E2 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 03 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 03 00 67 76 00 90 00 51 [08:55:03]RAPDU: 90 00 [08:55:03]wFMCommunicate OK [08:55:03]wFMCommunicate request_size=4 [08:55:03]MH_SAM_APDU [08:55:03]CAPDU: 80 0D 03 02 [08:55:03]Write to MH i2c: E2 08 00 68 76 80 0D 03 02 00 00 00 00 59 [08:55:03]Write i2c OK [08:55:03]MH_I2C_Read... [08:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:03]Read from MH i2c: E2 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 0B 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 0B 00 68 76 00 5B BE B7 41 82 A9 99 3B 90 00 6A [08:55:03]RAPDU: 5B BE B7 41 82 A9 99 3B 90 00 [08:55:03]wFMCommunicate OK [08:55:03]SAM_PROTO_SignData done [08:55:03]FM_MakeSignedData done [08:55:03]CreateOFDProtocolMessage [08:55:03]wFMCommunicate request_size=4 [08:55:03]MH_SAM_APDU [08:55:03]CAPDU: 80 11 00 00 [08:55:03]Write to MH i2c: E2 08 00 69 76 80 11 00 00 00 00 00 00 59 [08:55:03]Write i2c OK [08:55:03]MH_I2C_Read... [08:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:03]Read from MH i2c: E2 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 17 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: E2 17 00 69 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [08:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:55:03]wFMCommunicate OK [08:55:03]CreateOFDProtocolMessage done [08:55:03]OFDSenderStorePacket 191295 [08:55:03]StoreOFDPacket docnum=191295 [08:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 EB 07 01 50 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 5C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EB 02 00 35 04 06 00 8C 08 7D 2B 5C DE 5B BE B7 41 82 A9 99 3B [08:55:03]CheckFolder [08:55:03]dirname=/storage/ofd_packets [08:55:03]CheckFolder done [08:55:03]ProducePacketName [08:55:03]name=ofd_packets/00191295 [08:55:03]NVStorageSaveData ofd_packets/00191295 [08:55:03]File name is /storage/ofd_packets/00191295 [08:55:03]Write 301 bytes [08:55:03]NVStorageSaveData done [08:55:03]OFDSenderStorePacket done [08:55:03]KKMCreateOFDPacket done [08:55:03]NVStorageSaveData kkm_last_timestamp [08:55:03]File name is /storage/kkm_last_timestamp [08:55:03]Write 4 bytes [08:55:03]NVStorageSaveData done [08:55:03]ExternCall_PrintAddStr [08:55:03]wPrintStart [08:55:03]Write to MH i2c: 01 00 00 6A 76 E0 [08:55:03]Write i2c OK [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 07 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 07 00 6A 76 00 00 00 00 00 FF 0F F5 [08:55:03]RasterBufferAndPrint [08:55:03]line Счет N : (1)30587 [08:55:03]line ИНН: 02508201610067 [08:55:03]line Контрольно-Кассовый Чек [08:55:03]line ПРОДАЖА [08:55:03]line ТРК (МРК, ГНК) : 21 [08:55:03]line Товар: 2710124130 [08:55:03]line Аи-92-К-5 [08:55:03]line 5.980 * 66.90 [08:55:03]line = 400.06 [08:55:03]line НДС 12% НСП 1% [08:55:03]line > о реализуемом товаре [08:55:03]line ОКРУГЛЕНИЕ: -0.06 [08:55:03]line ИТОГО: 400.00 [08:55:03]line Внесено: 400.00 [08:55:03]line СДАЧА: 0.00 [08:55:03]line НСП 1% : 3.54 [08:55:03]line НДС 12% : 42.48 [08:55:03]line Наличными: 400.00 [08:55:03]line Безнал.: 0.00 [08:55:03]line Место: АЗС № 170 "Партнер Нефть" [08:55:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:55:03]line СНО: Общий режим [08:55:03]line Чек 34 25.10.2024 08:55 [08:55:03]line Смена: 540 ФФД: 1.0 [08:55:03]line ЗНМ: 0300000110 [08:55:03]line РНМ: 0000000000091776 [08:55:03]line Версия ККМ: 001 [08:55:03]line ФМ: 0000000000871754 [08:55:03]line ФД: 191295 [08:55:03]line ФПД: 153968087620830 [08:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191295&fm=153968087620830&tin=02508201610067®Number=0000000000091776&sum=40000 [08:55:03]OFD Sender: Processing packet 191295 [packets to send 75, broken 74] [08:55:03]ProducePacketName [08:55:03]name=ofd_packets/00191295 [08:55:03]OFD Sender: To server: pG, [08:55:03]CommunicateWithHost lk.salyk.kg:30040 [08:55:03]ConnectInit lk.salyk.kg [08:55:03]written 0, free lines is 4095 [08:55:03]Connected sock=11 [08:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 EB 07 01 50 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 ED 5C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EB 02 00 35 04 06 00 8C 08 7D 2B 5C DE 5B BE B7 41 82 A9 99 3B [08:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4D F7 47 00 E7 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EB 02 00 F4 03 04 00 BC 01 1B 67 B6 04 01 00 00 16 A8 2A 84 48 BB DB AE [08:55:03]CommunicateWithHost err = 0 [08:55:03]CheckOFDResponse [08:55:03]1017 (14) - 77093643461234 [08:55:03]1041 (16) - 0000000000871754 [08:55:03]1040 (4) - 191295 [08:55:03]1012 (4) - 25.10.2024 02:26 [08:55:03]1206 (1) - 0 [08:55:03]OFD Sender: Remove packet 191295 [08:55:03]ProducePacketName [08:55:03]name=ofd_packets/00191295 [08:55:03]NVStorageDeleteData [08:55:04]Write to MH i2c: 01 00 00 95 76 0B [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 07 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 07 00 95 76 00 00 00 00 00 95 0C B3 [08:55:04]RasterBufferAndPrint [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]written 0, free lines is 3225 [08:55:04]MH_Cut [08:55:04]Write to MH i2c: D1 01 00 9C 76 01 E4 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 01 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 01 00 9C 76 00 E3 [08:55:04]Write to MH i2c: 01 00 00 9D 76 13 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]OFD Sender: No OFD packet to send [08:55:04]*** Cut start [08:55:04]*** Partial cut [08:55:04]*** CUTSNS_PIN = 1 [08:55:04]*** CUTSNS_PIN = 0 [08:55:05]*** Brake cut motor [08:55:05]Read from MH i2c: 01 [08:55:05]MH_I2C_Read... [08:55:05]*** Stop cut motor [08:55:05]*** Cut end [08:55:05]Read from MH i2c: 01 07 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: 01 07 00 9D 76 00 00 00 00 00 FF 0F 28 [08:55:05]process_action close_receipt done [08:55:05]requested_data is exist [08:55:05]produce_requested_data [08:55:05]requested_item fm.sn is exist - process it [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 11 00 00 [08:55:05]Write to MH i2c: E2 08 00 9E 76 80 11 00 00 00 00 00 00 8E [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 9E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [08:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:55:05]wFMCommunicate OK [08:55:05]requested_item fd.num is exist - process it [08:55:05]SAM_PROTO_GetFieldsCounters [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 13 00 00 [08:55:05]Write to MH i2c: E2 08 00 9F 76 80 13 00 00 00 00 00 00 91 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 62 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 62 00 9F 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [08:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_GetFieldsCounters done [08:55:05]requested_item shift.num is exist - process it [08:55:05]requested_item shift.opened is exist - process it [08:55:05]req_shift_opened [08:55:05]FM_GetShiftState [08:55:05]SAM_PROTO_GetShiftState [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 13 01 00 [08:55:05]Write to MH i2c: E2 08 00 A0 76 80 13 01 00 00 00 00 00 93 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0E 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0E 00 A0 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 56 [08:55:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_GetShiftState done [08:55:05]FM_GetShiftState done [08:55:05]req_shift_opened done [08:55:05]requested_item shift.open_date is exist - process it [08:55:05]req_shift_open_date [08:55:05]req_shift_open_date done [08:55:05]produce_requested_data done [08:55:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191295,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:55:05]process_action_free close_receipt [08:55:05]json_value_free [08:55:05]json_value_free done [08:55:05]process_json_proto returns [08:55:05]Send response to host [08:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191295,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:55:05]free response buf [08:55:05]execute_script done [08:55:05]execute_script returns [08:55:05]free content buf [08:55:05]Sock 8.Close socket [08:55:05]Sock 8.Thread stoped [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]accept exits with 9 [08:57:24]New connection [08:57:24]New thread 3066961252 created [08:57:24]Thread 3066817892 joined [08:57:24]Waiting for new connection... [08:57:24] Sock 9.Parse request [08:57:24]Sock 9.Check first char [08:57:24]Sock 9.First char is OK [08:57:24]request: POST /json_proto HTTP/1.0 [08:57:24]Method: POST [08:57:24]URL: /json_proto [08:57:24]Method is POST - this is cgi request [08:57:24]url: /json_proto [08:57:24]query_string will be loaded in cgi processing [08:57:24]execute_cgi json_proto POST (null) [08:57:24]execute_cgi path=json_proto method=POST [08:57:24]POST find Content-Length [08:57:24]Host: 172.17.63.131:8080 [08:57:24]Content-Length: 681 [08:57:24]Content-Type: application/json [08:57:24] [08:57:24]POST finish read [08:57:24]Found Content-Length = 681 [08:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.480, "sum" : 1370.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:24]execute_script... [08:57: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)30588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.480, "sum" : 1370.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:24]POST & json_proto [08:57:24]process_json_proto [08:57:24]json parsed OK: [08:57:24]protocol is kg_v1.0 [08:57:24]action value=close_receipt [08:57:24]process_action close_receipt [08:57:24]cmd_close_receipt [08:57:24]MH_GetDate [08:57:24]Write to MH i2c: F0 00 00 A1 76 06 [08:57:24]Write i2c OK [08:57:24]MH_I2C_Read... [08:57:24]Read from MH i2c: F0 [08:57:24]MH_I2C_Read... [08:57:24]Read from MH i2c: F0 09 00 [08:57:24]MH_I2C_Read... [08:57:24]Read from MH i2c: F0 09 00 A1 76 00 7C 5D 1B 67 22 05 6E 64 63 [08:57:24]GetLastDocTimeStamp 1729846509 [08:57:24]current date 1729846652 [08:57:24]FM_GetShiftState [08:57:24]SAM_PROTO_GetShiftState [08:57:24]wFMCommunicate request_size=4 [08:57:24]MH_SAM_APDU [08:57:24]CAPDU: 80 13 01 00 [08:57:24]Write to MH i2c: E2 08 00 A2 76 80 13 01 00 00 00 00 00 95 [08:57:24]Write i2c OK [08:57:24]MH_I2C_Read... [08:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:24]Read from MH i2c: E2 [08:57:24]MH_I2C_Read... [08:57:24]Read from MH i2c: E2 0E 00 [08:57:24]MH_I2C_Read... [08:57:24]Read from MH i2c: E2 0E 00 A2 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 58 [08:57:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:57:24]wFMCommunicate OK [08:57:24]SAM_PROTO_GetShiftState done [08:57:24]FM_GetShiftState done [08:57:24]opened in 1729816399 [08:57:24]opened+sec_in_day 1729902799 [08:57:24]quantity*price = 137011 [08:57:24]sum+1 = 137012 [08:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1370.00 Внесено: 1370.00 СДАЧА: 0.00 НСП 1% : 12.12 НДС 12% : 145.50 Наличными: 1370.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 35 25.10.2024 08:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191296 ФПД: 140128525428230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191296&fm=140128525428230&tin=02508201610067®Number=0000000000091776&sum=137000 [08:57:25]StoreToDocumentArchive [08:57:25]shift 540 fd 191296 [08:57:25]save to /storage/0540/doc_00191296 [08:57:25]save last doc name /storage/0540/doc_00191296 to /storage/kkm_last_doc_name [08:57:25]save OK [08:57:25]Clear old archive folders... [08:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:25]tlvbuf is 01600F80 [08:57:25]SAM_PROTO_ClearQueue [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 09 00 00 [08:57:25]Write to MH i2c: E2 08 00 AF 76 80 09 00 00 00 00 00 00 97 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 AF 76 00 90 00 99 [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]SAM_PROTO_ClearQueue done [08:57:25]KKMCreateOFDPacket [08:57:25]OFDProtocolAddRootSTLVToBuf [08:57:25]FM_MakeSignedData [08:57:25]FM_MakeSignedData [08:57:25]SAM_PROTO_SignData [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 01 02 [08:57:25]Write to MH i2c: E2 08 00 B0 76 80 0D 01 02 00 00 00 00 9F [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 B0 76 00 90 00 9A [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=255 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 38 00 00 00 00 07 04 06 00 28 17 02 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 7C 5D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EB 02 00 35 04 06 00 7F [08:57:25]Write to MH i2c: E2 02 01 B1 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 38 00 00 00 00 07 04 06 00 28 17 02 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 7C 5D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EB 02 00 35 04 06 00 7F 00 00 1E [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 B1 76 00 90 00 9B [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=10 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 02 02 05 72 36 FB 26 06 [08:57:25]Write to MH i2c: E2 0D 00 B2 76 80 0D 02 02 05 00 72 36 FB 26 06 00 00 7B [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 03 00 B2 76 00 90 00 9C [08:57:25]RAPDU: 90 00 [08:57:25]wFMCommunicate OK [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 0D 03 02 [08:57:25]Write to MH i2c: E2 08 00 B3 76 80 0D 03 02 00 00 00 00 A4 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 0B 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 0B 00 B3 76 00 F6 8D 3B 4F 61 28 58 E8 90 00 7B [08:57:25]RAPDU: F6 8D 3B 4F 61 28 58 E8 90 00 [08:57:25]wFMCommunicate OK [08:57:25]SAM_PROTO_SignData done [08:57:25]FM_MakeSignedData done [08:57:25]CreateOFDProtocolMessage [08:57:25]wFMCommunicate request_size=4 [08:57:25]MH_SAM_APDU [08:57:25]CAPDU: 80 11 00 00 [08:57:25]Write to MH i2c: E2 08 00 B4 76 80 11 00 00 00 00 00 00 A4 [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:25]Read from MH i2c: E2 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 17 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: E2 17 00 B4 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [08:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:57:25]wFMCommunicate OK [08:57:25]CreateOFDProtocolMessage done [08:57:25]OFDSenderStorePacket 191296 [08:57:25]StoreOFDPacket docnum=191296 [08:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 C4 07 01 F0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 38 00 00 00 00 07 04 06 00 28 17 02 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 7C 5D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EB 02 00 35 04 06 00 7F 72 36 FB 26 06 F6 8D 3B 4F 61 28 58 E8 [08:57:25]CheckFolder [08:57:25]dirname=/storage/ofd_packets [08:57:25]CheckFolder done [08:57:25]ProducePacketName [08:57:25]name=ofd_packets/00191296 [08:57:25]NVStorageSaveData ofd_packets/00191296 [08:57:25]File name is /storage/ofd_packets/00191296 [08:57:25]Write 301 bytes [08:57:25]NVStorageSaveData done [08:57:25]OFDSenderStorePacket done [08:57:25]KKMCreateOFDPacket done [08:57:25]NVStorageSaveData kkm_last_timestamp [08:57:25]File name is /storage/kkm_last_timestamp [08:57:25]Write 4 bytes [08:57:25]NVStorageSaveData done [08:57:25]ExternCall_PrintAddStr [08:57:25]wPrintStart [08:57:25]Write to MH i2c: 01 00 00 B5 76 2B [08:57:25]Write i2c OK [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 07 00 [08:57:25]MH_I2C_Read... [08:57:25]Read from MH i2c: 01 07 00 B5 76 00 00 00 00 00 FF 0F 40 [08:57:25]RasterBufferAndPrint [08:57:25]line Счет N : (1)30588 [08:57:25]line ИНН: 02508201610067 [08:57:25]line Контрольно-Кассовый Чек [08:57:25]line ПРОДАЖА [08:57:25]line ТРК (МРК, ГНК) : 21 [08:57:25]line Товар: 2710124130 [08:57:25]line Аи-92-К-5 [08:57:25]line 20.480 * 66.90 [08:57:25]line = 1370.11 [08:57:25]line НДС 12% НСП 1% [08:57:25]line > о реализуемом товаре [08:57:25]line ОКРУГЛЕНИЕ: -0.11 [08:57:25]line ИТОГО: 1370.00 [08:57:25]line Внесено: 1370.00 [08:57:25]line СДАЧА: 0.00 [08:57:25]line НСП 1% : 12.12 [08:57:25]line НДС 12% : 145.50 [08:57:25]line Наличными: 1370.00 [08:57:25]line Безнал.: 0.00 [08:57:25]line Место: АЗС № 170 "Партнер Нефть" [08:57:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:57:25]line СНО: Общий режим [08:57:25]line Чек 35 25.10.2024 08:57 [08:57:25]line Смена: 540 ФФД: 1.0 [08:57:25]line ЗНМ: 0300000110 [08:57:25]line РНМ: 0000000000091776 [08:57:25]line Версия ККМ: 001 [08:57:25]line ФМ: 0000000000871754 [08:57:25]line ФД: 191296 [08:57:25]line ФПД: 140128525428230 [08:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191296&fm=140128525428230&tin=02508201610067®Number=0000000000091776&sum=137000 [08:57:25]written 0, free lines is 4095 [08:57:25]OFD Sender: Processing packet 191296 [packets to send 75, broken 74] [08:57:25]ProducePacketName [08:57:25]name=ofd_packets/00191296 [08:57:25]OFD Sender: To server: pG, [08:57:25]CommunicateWithHost lk.salyk.kg:30040 [08:57:25]ConnectInit lk.salyk.kg [08:57:26]Connected sock=10 [08:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 C4 07 01 F0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 38 00 00 00 00 07 04 06 00 28 17 02 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 7C 5D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EB 02 00 35 04 06 00 7F 72 36 FB 26 06 F6 8D 3B 4F 61 28 58 E8 [08:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 FB 47 00 E0 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EB 02 00 F4 03 04 00 4B 02 1B 67 B6 04 01 00 00 56 91 8E 02 1C 2A C2 18 [08:57:26]CommunicateWithHost err = 0 [08:57:26]CheckOFDResponse [08:57:26]1017 (14) - 77093643461234 [08:57:26]1041 (16) - 0000000000871754 [08:57:26]1040 (4) - 191296 [08:57:26]1012 (4) - 25.10.2024 02:28 [08:57:26]1206 (1) - 0 [08:57:26]OFD Sender: Remove packet 191296 [08:57:26]ProducePacketName [08:57:26]name=ofd_packets/00191296 [08:57:26]NVStorageDeleteData [08:57:26]Write to MH i2c: 01 00 00 E0 76 56 [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 E0 76 00 00 00 00 00 A8 0C 11 [08:57:26]RasterBufferAndPrint [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]line [08:57:26]written 0, free lines is 3245 [08:57:26]MH_Cut [08:57:26]Write to MH i2c: D1 01 00 E7 76 01 2F [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 01 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D1 01 00 E7 76 00 2E [08:57:26]Write to MH i2c: 01 00 00 E8 76 5E [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]OFD Sender: No OFD packet to send [08:57:27]*** Cut start [08:57:27]*** Partial cut [08:57:27]*** CUTSNS_PIN = 1 [08:57:27]*** CUTSNS_PIN = 0 [08:57:27]*** Brake cut motor [08:57:27]Read from MH i2c: 01 [08:57:27]MH_I2C_Read... [08:57:27]*** Stop cut motor [08:57:27]*** Cut end [08:57:27]Read from MH i2c: 01 07 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: 01 07 00 E8 76 00 00 00 00 00 FF 0F 73 [08:57:27]process_action close_receipt done [08:57:27]requested_data is exist [08:57:27]produce_requested_data [08:57:27]requested_item fm.sn is exist - process it [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 11 00 00 [08:57:27]Write to MH i2c: E2 08 00 E9 76 80 11 00 00 00 00 00 00 D9 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:27]Read from MH i2c: E2 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 17 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 17 00 E9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [08:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:57:27]wFMCommunicate OK [08:57:27]requested_item fd.num is exist - process it [08:57:27]SAM_PROTO_GetFieldsCounters [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 13 00 00 [08:57:27]Write to MH i2c: E2 08 00 EA 76 80 13 00 00 00 00 00 00 DC [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 62 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 62 00 EA 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:28]wFMCommunicate OK [08:57:28]SAM_PROTO_GetFieldsCounters done [08:57:28]requested_item shift.num is exist - process it [08:57:28]requested_item shift.opened is exist - process it [08:57:28]req_shift_opened [08:57:28]FM_GetShiftState [08:57:28]SAM_PROTO_GetShiftState [08:57:28]wFMCommunicate request_size=4 [08:57:28]MH_SAM_APDU [08:57:28]CAPDU: 80 13 01 00 [08:57:28]Write to MH i2c: E2 08 00 EB 76 80 13 01 00 00 00 00 00 DE [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 0E 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 0E 00 EB 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A1 [08:57:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [08:57:28]wFMCommunicate OK [08:57:28]SAM_PROTO_GetShiftState done [08:57:28]FM_GetShiftState done [08:57:28]req_shift_opened done [08:57:28]requested_item shift.open_date is exist - process it [08:57:28]req_shift_open_date [08:57:28]req_shift_open_date done [08:57:28]produce_requested_data done [08:57:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191296,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [08:57:28]process_action_free close_receipt [08:57:28]json_value_free [08:57:28]json_value_free done [08:57:28]process_json_proto returns [08:57:28]Send response to host [08:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191296,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [08:57:28]free response buf [08:57:28]execute_script done [08:57:28]execute_script returns [08:57:28]free content buf [08:57:28]Sock 9.Close socket [08:57:28]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:06]accept exits with 8 [09:04:06]New connection [09:04:06]New thread 3066817892 created [09:04:06]Thread 3066961252 joined [09:04:06]Waiting for new connection... [09:04:06] Sock 8.Parse request [09:04:06]Sock 8.Check first char [09:04:06]Sock 8.First char is OK [09:04:06]request: POST /json_proto HTTP/1.0 [09:04:06]Method: POST [09:04:06]URL: /json_proto [09:04:06]Method is POST - this is cgi request [09:04:06]url: /json_proto [09:04:06]query_string will be loaded in cgi processing [09:04:06]execute_cgi json_proto POST (null) [09:04:06]execute_cgi path=json_proto method=POST [09:04:06]POST find Content-Length [09:04:06]Host: 172.17.63.131:8080 [09:04:06]Content-Length: 676 [09:04:06]Content-Type: application/json [09:04:06] [09:04:06]POST finish read [09:04:06]Found Content-Length = 676 [09:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:06]execute_script... [09:04: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)30589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:06]POST & json_proto [09:04:06]process_json_proto [09:04:06]json parsed OK: [09:04:06]protocol is kg_v1.0 [09:04:06]action value=close_receipt [09:04:06]process_action close_receipt [09:04:06]cmd_close_receipt [09:04:06]MH_GetDate [09:04:06]Write to MH i2c: F0 00 00 EC 76 51 [09:04:06]Write i2c OK [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: F0 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: F0 09 00 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: F0 09 00 EC 76 00 0E 5F 1B 67 22 05 6E 64 42 [09:04:06]GetLastDocTimeStamp 1729846652 [09:04:06]current date 1729847054 [09:04:06]FM_GetShiftState [09:04:06]SAM_PROTO_GetShiftState [09:04:06]wFMCommunicate request_size=4 [09:04:06]MH_SAM_APDU [09:04:06]CAPDU: 80 13 01 00 [09:04:06]Write to MH i2c: E2 08 00 ED 76 80 13 01 00 00 00 00 00 E0 [09:04:06]Write i2c OK [09:04:06]MH_I2C_Read... [09:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:06]Read from MH i2c: E2 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: E2 0E 00 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: E2 0E 00 ED 76 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A3 [09:04:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:04:06]wFMCommunicate OK [09:04:06]SAM_PROTO_GetShiftState done [09:04:06]FM_GetShiftState done [09:04:06]opened in 1729816399 [09:04:06]opened+sec_in_day 1729902799 [09:04:06]quantity*price = 36059 [09:04:06]sum+1 = 36060 [09:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 36 25.10.2024 09:04 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191297 ФПД: 202202398885867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090414&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191297&fm=202202398885867&tin=02508201610067®Number=0000000000091776&sum=36000 [09:04:07]StoreToDocumentArchive [09:04:07]shift 540 fd 191297 [09:04:07]save to /storage/0540/doc_00191297 [09:04:07]save last doc name /storage/0540/doc_00191297 to /storage/kkm_last_doc_name [09:04:07]save OK [09:04:07]Clear old archive folders... [09:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:07]tlvbuf is 01750100 [09:04:07]SAM_PROTO_ClearQueue [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 09 00 00 [09:04:07]Write to MH i2c: E2 08 00 FA 76 80 09 00 00 00 00 00 00 E2 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 FA 76 00 90 00 E4 [09:04:07]RAPDU: 90 00 [09:04:07]wFMCommunicate OK [09:04:07]SAM_PROTO_ClearQueue done [09:04:07]KKMCreateOFDPacket [09:04:07]OFDProtocolAddRootSTLVToBuf [09:04:07]FM_MakeSignedData [09:04:07]FM_MakeSignedData [09:04:07]SAM_PROTO_SignData [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 0D 01 02 [09:04:07]Write to MH i2c: E2 08 00 FB 76 80 0D 01 02 00 00 00 00 EA [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 FB 76 00 90 00 E5 [09:04:07]RAPDU: 90 00 [09:04:07]wFMCommunicate OK [09:04:07]wFMCommunicate request_size=255 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0E 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EB 02 00 35 04 06 00 B7 [09:04:07]Write to MH i2c: E2 02 01 FC 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0E 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EB 02 00 35 04 06 00 B7 00 00 70 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 03 00 FC 76 00 90 00 E6 [09:04:07]RAPDU: 90 00 [09:04:07]wFMCommunicate OK [09:04:07]wFMCommunicate request_size=10 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 0D 02 02 05 E6 EA 28 87 EB [09:04:07]Write to MH i2c: E2 0D 00 FD 76 80 0D 02 02 05 00 E6 EA 28 87 EB 00 00 61 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 FD 76 00 90 00 E7 [09:04:08]RAPDU: 90 00 [09:04:08]wFMCommunicate OK [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 0D 03 02 [09:04:08]Write to MH i2c: E2 08 00 FE 76 80 0D 03 02 00 00 00 00 EF [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0B 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0B 00 FE 76 00 D2 96 27 C0 16 93 86 96 90 00 04 [09:04:08]RAPDU: D2 96 27 C0 16 93 86 96 90 00 [09:04:08]wFMCommunicate OK [09:04:08]SAM_PROTO_SignData done [09:04:08]FM_MakeSignedData done [09:04:08]CreateOFDProtocolMessage [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 11 00 00 [09:04:08]Write to MH i2c: E2 08 00 FF 76 80 11 00 00 00 00 00 00 EF [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 FF 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [09:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:04:08]wFMCommunicate OK [09:04:08]CreateOFDProtocolMessage done [09:04:08]OFDSenderStorePacket 191297 [09:04:08]StoreOFDPacket docnum=191297 [09:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 9B 07 01 74 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 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0E 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EB 02 00 35 04 06 00 B7 E6 EA 28 87 EB D2 96 27 C0 16 93 86 96 [09:04:08]CheckFolder [09:04:08]dirname=/storage/ofd_packets [09:04:08]CheckFolder done [09:04:08]ProducePacketName [09:04:08]name=ofd_packets/00191297 [09:04:08]NVStorageSaveData ofd_packets/00191297 [09:04:08]File name is /storage/ofd_packets/00191297 [09:04:08]Write 301 bytes [09:04:08]NVStorageSaveData done [09:04:08]OFDSenderStorePacket done [09:04:08]KKMCreateOFDPacket done [09:04:08]NVStorageSaveData kkm_last_timestamp [09:04:08]File name is /storage/kkm_last_timestamp [09:04:08]Write 4 bytes [09:04:08]NVStorageSaveData done [09:04:08]ExternCall_PrintAddStr [09:04:08]wPrintStart [09:04:08]Write to MH i2c: 01 00 00 00 77 77 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 00 77 00 00 00 00 00 FF 0F 8C [09:04:08]RasterBufferAndPrint [09:04:08]line Счет N : (1)30589 [09:04:08]line ИНН: 02508201610067 [09:04:08]line Контрольно-Кассовый Чек [09:04:08]line ПРОДАЖА [09:04:08]line ТРК (МРК, ГНК) : 21 [09:04:08]line Товар: 2710124130 [09:04:08]line Аи-92-К-5 [09:04:08]line 5.390 * 66.90 [09:04:08]line = 360.59 [09:04:08]line НДС 12% НСП 1% [09:04:08]line > о реализуемом товаре [09:04:08]line ОКРУГЛЕНИЕ: -0.59 [09:04:08]line ИТОГО: 360.00 [09:04:08]line Внесено: 360.00 [09:04:08]line СДАЧА: 0.00 [09:04:08]line НСП 1% : 3.19 [09:04:08]line НДС 12% : 38.29 [09:04:08]line Наличными: 360.00 [09:04:08]line Безнал.: 0.00 [09:04:08]line Место: АЗС № 170 "Партнер Нефть" [09:04:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:04:08]line СНО: Общий режим [09:04:08]line Чек 36 25.10.2024 09:04 [09:04:08]line Смена: 540 ФФД: 1.0 [09:04:08]line ЗНМ: 0300000110 [09:04:08]line РНМ: 0000000000091776 [09:04:08]line Версия ККМ: 001 [09:04:08]line ФМ: 0000000000871754 [09:04:08]line ФД: 191297 [09:04:08]line ФПД: 202202398885867 [09:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090414&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191297&fm=202202398885867&tin=02508201610067®Number=0000000000091776&sum=36000 [09:04:08]written 0, free lines is 4095 [09:04:08]OFD Sender: Processing packet 191297 [packets to send 75, broken 74] [09:04:08]ProducePacketName [09:04:08]name=ofd_packets/00191297 [09:04:08]OFD Sender: To server: pG, [09:04:08]CommunicateWithHost lk.salyk.kg:30040 [09:04:08]ConnectInit lk.salyk.kg [09:04:08]Connected sock=10 [09:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 9B 07 01 74 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 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0E 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EB 02 00 35 04 06 00 B7 E6 EA 28 87 EB D2 96 27 C0 16 93 86 96 [09:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE 23 47 00 5E 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EB 02 00 F4 03 04 00 DD 03 1B 67 B6 04 01 00 00 8F 3F 56 EA 7E 9B 70 73 [09:04:08]CommunicateWithHost err = 0 [09:04:08]CheckOFDResponse [09:04:08]1017 (14) - 77093643461234 [09:04:08]1041 (16) - 0000000000871754 [09:04:08]1040 (4) - 191297 [09:04:08]1012 (4) - 25.10.2024 02:35 [09:04:08]1206 (1) - 0 [09:04:08]OFD Sender: Remove packet 191297 [09:04:08]ProducePacketName [09:04:08]name=ofd_packets/00191297 [09:04:08]NVStorageDeleteData [09:04:08]Write to MH i2c: 01 00 00 2B 77 A2 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 2B 77 00 00 00 00 00 BA 0C 6F [09:04:08]RasterBufferAndPrint [09:04:08]line [09:04:08]line [09:04:08]line [09:04:08]line [09:04:08]line [09:04:08]written 0, free lines is 3266 [09:04:08]MH_Cut [09:04:08]Write to MH i2c: D1 01 00 32 77 01 7B [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: D1 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: D1 01 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: D1 01 00 32 77 00 7A [09:04:08]Write to MH i2c: 01 00 00 33 77 AA [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:09]OFD Sender: No OFD packet to send [09:04:09]*** Cut start [09:04:09]*** Partial cut [09:04:09]*** CUTSNS_PIN = 1 [09:04:09]*** CUTSNS_PIN = 0 [09:04:09]*** Brake cut motor [09:04:10]Read from MH i2c: 01 [09:04:10]MH_I2C_Read... [09:04:10]*** Stop cut motor [09:04:10]*** Cut end [09:04:10]Read from MH i2c: 01 07 00 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: 01 07 00 33 77 00 00 00 00 00 FF 0F BF [09:04:10]process_action close_receipt done [09:04:10]requested_data is exist [09:04:10]produce_requested_data [09:04:10]requested_item fm.sn is exist - process it [09:04:10]wFMCommunicate request_size=4 [09:04:10]MH_SAM_APDU [09:04:10]CAPDU: 80 11 00 00 [09:04:10]Write to MH i2c: E2 08 00 34 77 80 11 00 00 00 00 00 00 25 [09:04:10]Write i2c OK [09:04:10]MH_I2C_Read... [09:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:10]Read from MH i2c: E2 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 17 00 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 17 00 34 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [09:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:04:10]wFMCommunicate OK [09:04:10]requested_item fd.num is exist - process it [09:04:10]SAM_PROTO_GetFieldsCounters [09:04:10]wFMCommunicate request_size=4 [09:04:10]MH_SAM_APDU [09:04:10]CAPDU: 80 13 00 00 [09:04:10]Write to MH i2c: E2 08 00 35 77 80 13 00 00 00 00 00 00 28 [09:04:10]Write i2c OK [09:04:10]MH_I2C_Read... [09:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:10]Read from MH i2c: E2 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 62 00 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 62 00 35 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:04:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:10]wFMCommunicate OK [09:04:10]SAM_PROTO_GetFieldsCounters done [09:04:10]requested_item shift.num is exist - process it [09:04:10]requested_item shift.opened is exist - process it [09:04:10]req_shift_opened [09:04:10]FM_GetShiftState [09:04:10]SAM_PROTO_GetShiftState [09:04:10]wFMCommunicate request_size=4 [09:04:10]MH_SAM_APDU [09:04:10]CAPDU: 80 13 01 00 [09:04:10]Write to MH i2c: E2 08 00 36 77 80 13 01 00 00 00 00 00 2A [09:04:10]Write i2c OK [09:04:10]MH_I2C_Read... [09:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:10]Read from MH i2c: E2 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 0E 00 [09:04:10]MH_I2C_Read... [09:04:10]Read from MH i2c: E2 0E 00 36 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [09:04:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:04:10]wFMCommunicate OK [09:04:10]SAM_PROTO_GetShiftState done [09:04:10]FM_GetShiftState done [09:04:10]req_shift_opened done [09:04:10]requested_item shift.open_date is exist - process it [09:04:10]req_shift_open_date [09:04:10]req_shift_open_date done [09:04:10]produce_requested_data done [09:04:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191297,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:04:10]process_action_free close_receipt [09:04:10]json_value_free [09:04:10]json_value_free done [09:04:10]process_json_proto returns [09:04:10]Send response to host [09:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191297,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:04:10]free response buf [09:04:10]execute_script done [09:04:10]execute_script returns [09:04:10]free content buf [09:04:10]Sock 8.Close socket [09:04:10]Sock 8.Thread stoped [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:24]accept exits with 9 [09:06:24]New connection [09:06:24]New thread 3066961252 created [09:06:24]Thread 3066817892 joined [09:06:24]Waiting for new connection... [09:06:24] Sock 9.Parse request [09:06:24]Sock 9.Check first char [09:06:24]Sock 9.First char is OK [09:06:24]request: POST /json_proto HTTP/1.0 [09:06:24]Method: POST [09:06:24]URL: /json_proto [09:06:24]Method is POST - this is cgi request [09:06:24]url: /json_proto [09:06:24]query_string will be loaded in cgi processing [09:06:24]execute_cgi json_proto POST (null) [09:06:24]execute_cgi path=json_proto method=POST [09:06:24]POST find Content-Length [09:06:24]Host: 172.17.63.131:8080 [09:06:24]Content-Length: 676 [09:06:24]Content-Type: application/json [09:06:24] [09:06:24]POST finish read [09:06:24]Found Content-Length = 676 [09:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:24]execute_script... [09:06: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)30590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:24]POST & json_proto [09:06:24]process_json_proto [09:06:24]json parsed OK: [09:06:24]protocol is kg_v1.0 [09:06:24]action value=close_receipt [09:06:24]process_action close_receipt [09:06:24]cmd_close_receipt [09:06:24]MH_GetDate [09:06:24]Write to MH i2c: F0 00 00 37 77 9D [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 09 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 09 00 37 77 00 98 5F 1B 67 22 05 6E 64 18 [09:06:24]GetLastDocTimeStamp 1729847054 [09:06:24]current date 1729847192 [09:06:24]FM_GetShiftState [09:06:24]SAM_PROTO_GetShiftState [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 01 00 [09:06:24]Write to MH i2c: E2 08 00 38 77 80 13 01 00 00 00 00 00 2C [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 38 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EF [09:06:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetShiftState done [09:06:24]FM_GetShiftState done [09:06:24]opened in 1729816399 [09:06:24]opened+sec_in_day 1729902799 [09:06:24]quantity*price = 50041 [09:06:24]sum+1 = 50042 [09:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 37 25.10.2024 09:06 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191298 ФПД: 87675894085543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191298&fm=87675894085543&tin=02508201610067®Number=0000000000091776&sum=50000 [09:06:25]StoreToDocumentArchive [09:06:25]shift 540 fd 191298 [09:06:25]save to /storage/0540/doc_00191298 [09:06:25]save last doc name /storage/0540/doc_00191298 to /storage/kkm_last_doc_name [09:06:25]save OK [09:06:25]Clear old archive folders... [09:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:25]tlvbuf is 016EB6C0 [09:06:25]SAM_PROTO_ClearQueue [09:06:25]wFMCommunicate request_size=4 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 09 00 00 [09:06:25]Write to MH i2c: E2 08 00 45 77 80 09 00 00 00 00 00 00 2E [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 45 77 00 90 00 30 [09:06:25]RAPDU: 90 00 [09:06:25]wFMCommunicate OK [09:06:25]SAM_PROTO_ClearQueue done [09:06:25]KKMCreateOFDPacket [09:06:25]OFDProtocolAddRootSTLVToBuf [09:06:25]FM_MakeSignedData [09:06:25]FM_MakeSignedData [09:06:25]SAM_PROTO_SignData [09:06:25]wFMCommunicate request_size=4 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 0D 01 02 [09:06:25]Write to MH i2c: E2 08 00 46 77 80 0D 01 02 00 00 00 00 36 [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 46 77 00 90 00 31 [09:06:25]RAPDU: 90 00 [09:06:25]wFMCommunicate OK [09:06:25]wFMCommunicate request_size=255 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 98 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EB 02 00 35 04 06 00 4F [09:06:25]Write to MH i2c: E2 02 01 47 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 98 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EB 02 00 35 04 06 00 4F 00 00 04 [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 47 77 00 90 00 32 [09:06:26]RAPDU: 90 00 [09:06:26]wFMCommunicate OK [09:06:26]wFMCommunicate request_size=10 [09:06:26]MH_SAM_APDU [09:06:26]CAPDU: 80 0D 02 02 05 BD A2 85 B7 A7 [09:06:26]Write to MH i2c: E2 0D 00 48 77 80 0D 02 02 05 00 BD A2 85 B7 A7 00 00 85 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 48 77 00 90 00 33 [09:06:26]RAPDU: 90 00 [09:06:26]wFMCommunicate OK [09:06:26]wFMCommunicate request_size=4 [09:06:26]MH_SAM_APDU [09:06:26]CAPDU: 80 0D 03 02 [09:06:26]Write to MH i2c: E2 08 00 49 77 80 0D 03 02 00 00 00 00 3B [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 0B 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 0B 00 49 77 00 DA B7 E8 9E B4 A4 81 65 90 00 91 [09:06:26]RAPDU: DA B7 E8 9E B4 A4 81 65 90 00 [09:06:26]wFMCommunicate OK [09:06:26]SAM_PROTO_SignData done [09:06:26]FM_MakeSignedData done [09:06:26]CreateOFDProtocolMessage [09:06:26]wFMCommunicate request_size=4 [09:06:26]MH_SAM_APDU [09:06:26]CAPDU: 80 11 00 00 [09:06:26]Write to MH i2c: E2 08 00 4A 77 80 11 00 00 00 00 00 00 3B [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 17 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 17 00 4A 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [09:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:06:26]wFMCommunicate OK [09:06:26]CreateOFDProtocolMessage done [09:06:26]OFDSenderStorePacket 191298 [09:06:26]StoreOFDPacket docnum=191298 [09:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 5E 07 01 37 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 98 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EB 02 00 35 04 06 00 4F BD A2 85 B7 A7 DA B7 E8 9E B4 A4 81 65 [09:06:26]CheckFolder [09:06:26]dirname=/storage/ofd_packets [09:06:26]CheckFolder done [09:06:26]ProducePacketName [09:06:26]name=ofd_packets/00191298 [09:06:26]NVStorageSaveData ofd_packets/00191298 [09:06:26]File name is /storage/ofd_packets/00191298 [09:06:26]Write 301 bytes [09:06:26]NVStorageSaveData done [09:06:26]OFDSenderStorePacket done [09:06:26]KKMCreateOFDPacket done [09:06:26]NVStorageSaveData kkm_last_timestamp [09:06:26]File name is /storage/kkm_last_timestamp [09:06:26]Write 4 bytes [09:06:26]NVStorageSaveData done [09:06:26]ExternCall_PrintAddStr [09:06:26]wPrintStart [09:06:26]Write to MH i2c: 01 00 00 4B 77 C2 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 4B 77 00 00 00 00 00 FF 0F D7 [09:06:26]RasterBufferAndPrint [09:06:26]line Счет N : (1)30590 [09:06:26]line ИНН: 02508201610067 [09:06:26]line Контрольно-Кассовый Чек [09:06:26]line ПРОДАЖА [09:06:26]line ТРК (МРК, ГНК) : 12 [09:06:26]line Товар: 2710124130 [09:06:26]line Аи-92-К-5 [09:06:26]line 7.480 * 66.90 [09:06:26]line = 500.41 [09:06:26]line НДС 12% НСП 1% [09:06:26]line > о реализуемом товаре [09:06:26]line ОКРУГЛЕНИЕ: -0.41 [09:06:26]line ИТОГО: 500.00 [09:06:26]line Внесено: 500.00 [09:06:26]line СДАЧА: 0.00 [09:06:26]line НСП 1% : 4.43 [09:06:26]line НДС 12% : 53.14 [09:06:26]line Наличными: 500.00 [09:06:26]line Безнал.: 0.00 [09:06:26]line Место: АЗС № 170 "Партнер Нефть" [09:06:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:06:26]line СНО: Общий режим [09:06:26]line Чек 37 25.10.2024 09:06 [09:06:26]line Смена: 540 ФФД: 1.0 [09:06:26]line ЗНМ: 0300000110 [09:06:26]line РНМ: 0000000000091776 [09:06:26]line Версия ККМ: 001 [09:06:26]line ФМ: 0000000000871754 [09:06:26]line ФД: 191298 [09:06:26]line ФПД: 87675894085543 [09:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191298&fm=87675894085543&tin=02508201610067®Number=0000000000091776&sum=50000 [09:06:26]OFD Sender: Processing packet 191298 [packets to send 75, broken 74] [09:06:26]ProducePacketName [09:06:26]name=ofd_packets/00191298 [09:06:26]OFD Sender: To server: pG, [09:06:26]CommunicateWithHost lk.salyk.kg:30040 [09:06:26]ConnectInit lk.salyk.kg [09:06:26]written 0, free lines is 4095 [09:06:26]Connected sock=10 [09:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 5E 07 01 37 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 98 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EB 02 00 35 04 06 00 4F BD A2 85 B7 A7 DA B7 E8 9E B4 A4 81 65 [09:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 68 47 00 01 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EB 02 00 F4 03 04 00 67 04 1B 67 B6 04 01 00 00 50 D0 6F 66 07 64 DD 48 [09:06:27]CommunicateWithHost err = 0 [09:06:27]CheckOFDResponse [09:06:27]1017 (14) - 77093643461234 [09:06:27]1041 (16) - 0000000000871754 [09:06:27]1040 (4) - 191298 [09:06:27]1012 (4) - 25.10.2024 02:37 [09:06:27]1206 (1) - 0 [09:06:27]OFD Sender: Remove packet 191298 [09:06:27]ProducePacketName [09:06:27]name=ofd_packets/00191298 [09:06:27]NVStorageDeleteData [09:06:27]Write to MH i2c: 01 00 00 76 77 ED [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: 01 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: 01 07 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: 01 07 00 76 77 00 00 00 00 00 A9 0C A9 [09:06:27]RasterBufferAndPrint [09:06:27]line [09:06:27]line [09:06:27]line [09:06:27]line [09:06:27]line [09:06:27]written 0, free lines is 3248 [09:06:27]MH_Cut [09:06:27]Write to MH i2c: D1 01 00 7D 77 01 C6 [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: D1 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: D1 01 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: D1 01 00 7D 77 00 C5 [09:06:27]Write to MH i2c: 01 00 00 7E 77 F5 [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]OFD Sender: No OFD packet to send [09:06:28]*** Cut start [09:06:28]*** Partial cut [09:06:28]*** CUTSNS_PIN = 1 [09:06:28]*** CUTSNS_PIN = 0 [09:06:28]*** Brake cut motor [09:06:28]Read from MH i2c: 01 [09:06:28]MH_I2C_Read... [09:06:28]*** Stop cut motor [09:06:28]*** Cut end [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 7E 77 00 00 00 00 00 FF 0F 0A [09:06:28]process_action close_receipt done [09:06:28]requested_data is exist [09:06:28]produce_requested_data [09:06:28]requested_item fm.sn is exist - process it [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 7F 77 80 11 00 00 00 00 00 00 70 [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 7F 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [09:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:06:28]wFMCommunicate OK [09:06:28]requested_item fd.num is exist - process it [09:06:28]SAM_PROTO_GetFieldsCounters [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 13 00 00 [09:06:28]Write to MH i2c: E2 08 00 80 77 80 13 00 00 00 00 00 00 73 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 62 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 62 00 80 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_GetFieldsCounters done [09:06:28]requested_item shift.num is exist - process it [09:06:28]requested_item shift.opened is exist - process it [09:06:28]req_shift_opened [09:06:28]FM_GetShiftState [09:06:28]SAM_PROTO_GetShiftState [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 13 01 00 [09:06:28]Write to MH i2c: E2 08 00 81 77 80 13 01 00 00 00 00 00 75 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0E 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0E 00 81 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 38 [09:06:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_GetShiftState done [09:06:28]FM_GetShiftState done [09:06:28]req_shift_opened done [09:06:28]requested_item shift.open_date is exist - process it [09:06:28]req_shift_open_date [09:06:28]req_shift_open_date done [09:06:28]produce_requested_data done [09:06:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191298,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:06:28]process_action_free close_receipt [09:06:28]json_value_free [09:06:28]json_value_free done [09:06:28]process_json_proto returns [09:06:28]Send response to host [09:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191298,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:06:28]free response buf [09:06:28]execute_script done [09:06:28]execute_script returns [09:06:28]free content buf [09:06:28]Sock 9.Close socket [09:06:28]Sock 9.Thread stoped [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:07:59]accept exits with 8 [09:07:59]New connection [09:07:59]New thread 3066817892 created [09:07:59]Thread 3066961252 joined [09:07:59]Waiting for new connection... [09:07:59] Sock 8.Parse request [09:07:59]Sock 8.Check first char [09:07:59]Sock 8.First char is OK [09:07:59]request: POST /json_proto HTTP/1.0 [09:07:59]Method: POST [09:07:59]URL: /json_proto [09:07:59]Method is POST - this is cgi request [09:07:59]url: /json_proto [09:07:59]query_string will be loaded in cgi processing [09:07:59]execute_cgi json_proto POST (null) [09:07:59]execute_cgi path=json_proto method=POST [09:07:59]POST find Content-Length [09:07:59]Host: 172.17.63.131:8080 [09:07:59]Content-Length: 676 [09:07:59]Content-Type: application/json [09:07:59] [09:07:59]POST finish read [09:07:59]Found Content-Length = 676 [09:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:59]execute_script... [09:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:59]POST & json_proto [09:07:59]process_json_proto [09:07:59]json parsed OK: [09:07:59]protocol is kg_v1.0 [09:07:59]action value=close_receipt [09:07:59]process_action close_receipt [09:07:59]cmd_close_receipt [09:07:59]MH_GetDate [09:07:59]Write to MH i2c: F0 00 00 82 77 E8 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: F0 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: F0 09 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: F0 09 00 82 77 00 F8 5F 1B 67 22 05 6E 64 C3 [09:07:59]GetLastDocTimeStamp 1729847192 [09:07:59]current date 1729847288 [09:07:59]FM_GetShiftState [09:07:59]SAM_PROTO_GetShiftState [09:07:59]wFMCommunicate request_size=4 [09:07:59]MH_SAM_APDU [09:07:59]CAPDU: 80 13 01 00 [09:07:59]Write to MH i2c: E2 08 00 83 77 80 13 01 00 00 00 00 00 77 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:59]Read from MH i2c: E2 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 0E 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 0E 00 83 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3A [09:07:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:07:59]wFMCommunicate OK [09:07:59]SAM_PROTO_GetShiftState done [09:07:59]FM_GetShiftState done [09:07:59]opened in 1729816399 [09:07:59]opened+sec_in_day 1729902799 [09:07:59]quantity*price = 50041 [09:07:59]sum+1 = 50042 [09:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 38 25.10.2024 09:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191299 ФПД: 232630820799271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191299&fm=232630820799271&tin=02508201610067®Number=0000000000091776&sum=50000 [09:08:01]StoreToDocumentArchive [09:08:01]shift 540 fd 191299 [09:08:01]save to /storage/0540/doc_00191299 [09:08:01]save last doc name /storage/0540/doc_00191299 to /storage/kkm_last_doc_name [09:08:01]save OK [09:08:01]Clear old archive folders... [09:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:01]tlvbuf is 01831510 [09:08:01]SAM_PROTO_ClearQueue [09:08:01]wFMCommunicate request_size=4 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 09 00 00 [09:08:01]Write to MH i2c: E2 08 00 90 77 80 09 00 00 00 00 00 00 79 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 90 77 00 90 00 7B [09:08:01]RAPDU: 90 00 [09:08:01]wFMCommunicate OK [09:08:01]SAM_PROTO_ClearQueue done [09:08:01]KKMCreateOFDPacket [09:08:01]OFDProtocolAddRootSTLVToBuf [09:08:01]FM_MakeSignedData [09:08:01]FM_MakeSignedData [09:08:01]SAM_PROTO_SignData [09:08:01]wFMCommunicate request_size=4 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 0D 01 02 [09:08:01]Write to MH i2c: E2 08 00 91 77 80 0D 01 02 00 00 00 00 81 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 91 77 00 90 00 7C [09:08:01]RAPDU: 90 00 [09:08:01]wFMCommunicate OK [09:08:01]wFMCommunicate request_size=255 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F8 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EB 02 00 35 04 06 00 D3 [09:08:01]Write to MH i2c: E2 02 01 92 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F8 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EB 02 00 35 04 06 00 D3 00 00 35 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 92 77 00 90 00 7D [09:08:01]RAPDU: 90 00 [09:08:01]wFMCommunicate OK [09:08:01]wFMCommunicate request_size=10 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 0D 02 02 05 93 95 70 03 27 [09:08:01]Write to MH i2c: E2 0D 00 93 77 80 0D 02 02 05 00 93 95 70 03 27 00 00 50 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 03 00 93 77 00 90 00 7E [09:08:01]RAPDU: 90 00 [09:08:01]wFMCommunicate OK [09:08:01]wFMCommunicate request_size=4 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 0D 03 02 [09:08:01]Write to MH i2c: E2 08 00 94 77 80 0D 03 02 00 00 00 00 86 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 0B 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 0B 00 94 77 00 63 A8 B4 2B D6 52 79 17 90 00 29 [09:08:01]RAPDU: 63 A8 B4 2B D6 52 79 17 90 00 [09:08:01]wFMCommunicate OK [09:08:01]SAM_PROTO_SignData done [09:08:01]FM_MakeSignedData done [09:08:01]CreateOFDProtocolMessage [09:08:01]wFMCommunicate request_size=4 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 11 00 00 [09:08:01]Write to MH i2c: E2 08 00 95 77 80 11 00 00 00 00 00 00 86 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 17 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 17 00 95 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [09:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:01]wFMCommunicate OK [09:08:01]CreateOFDProtocolMessage done [09:08:01]OFDSenderStorePacket 191299 [09:08:01]StoreOFDPacket docnum=191299 [09:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 40 FC 07 01 F3 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F8 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EB 02 00 35 04 06 00 D3 93 95 70 03 27 63 A8 B4 2B D6 52 79 17 [09:08:01]CheckFolder [09:08:01]dirname=/storage/ofd_packets [09:08:01]CheckFolder done [09:08:01]ProducePacketName [09:08:01]name=ofd_packets/00191299 [09:08:01]NVStorageSaveData ofd_packets/00191299 [09:08:01]File name is /storage/ofd_packets/00191299 [09:08:01]Write 301 bytes [09:08:01]NVStorageSaveData done [09:08:01]OFDSenderStorePacket done [09:08:01]KKMCreateOFDPacket done [09:08:01]NVStorageSaveData kkm_last_timestamp [09:08:01]File name is /storage/kkm_last_timestamp [09:08:01]Write 4 bytes [09:08:01]NVStorageSaveData done [09:08:01]ExternCall_PrintAddStr [09:08:01]wPrintStart [09:08:01]Write to MH i2c: 01 00 00 96 77 0D [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 96 77 00 00 00 00 00 FF 0F 22 [09:08:01]RasterBufferAndPrint [09:08:01]line Счет N : (1)30591 [09:08:01]line ИНН: 02508201610067 [09:08:01]line Контрольно-Кассовый Чек [09:08:01]line ПРОДАЖА [09:08:01]line ТРК (МРК, ГНК) : 12 [09:08:01]line Товар: 2710124130 [09:08:01]line Аи-92-К-5 [09:08:01]line 7.480 * 66.90 [09:08:01]line = 500.41 [09:08:01]line НДС 12% НСП 1% [09:08:01]line > о реализуемом товаре [09:08:01]line ОКРУГЛЕНИЕ: -0.41 [09:08:01]line ИТОГО: 500.00 [09:08:01]line Внесено: 500.00 [09:08:01]line СДАЧА: 0.00 [09:08:01]line НСП 1% : 4.43 [09:08:01]line НДС 12% : 53.14 [09:08:01]line Наличными: 500.00 [09:08:01]line Безнал.: 0.00 [09:08:01]line Место: АЗС № 170 "Партнер Нефть" [09:08:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:08:01]line СНО: Общий режим [09:08:01]line Чек 38 25.10.2024 09:08 [09:08:01]line Смена: 540 ФФД: 1.0 [09:08:01]line ЗНМ: 0300000110 [09:08:01]line РНМ: 0000000000091776 [09:08:01]line Версия ККМ: 001 [09:08:01]line ФМ: 0000000000871754 [09:08:01]line ФД: 191299 [09:08:01]line ФПД: 232630820799271 [09:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191299&fm=232630820799271&tin=02508201610067®Number=0000000000091776&sum=50000 [09:08:01]OFD Sender: Processing packet 191299 [packets to send 75, broken 74] [09:08:01]ProducePacketName [09:08:01]name=ofd_packets/00191299 [09:08:01]OFD Sender: To server: pG, [09:08:01]CommunicateWithHost lk.salyk.kg:30040 [09:08:02]ConnectInit lk.salyk.kg [09:08:02]written 0, free lines is 4095 [09:08:02]Connected sock=10 [09:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 40 FC 07 01 F3 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F8 5F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EB 02 00 35 04 06 00 D3 93 95 70 03 27 63 A8 B4 2B D6 52 79 17 [09:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 B9 47 00 1D 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EB 02 00 F4 03 04 00 C7 04 1B 67 B6 04 01 00 00 F0 12 7D 27 D3 2D BF 4E [09:08:02]CommunicateWithHost err = 0 [09:08:02]CheckOFDResponse [09:08:02]1017 (14) - 77093643461234 [09:08:02]1041 (16) - 0000000000871754 [09:08:02]1040 (4) - 191299 [09:08:02]1012 (4) - 25.10.2024 02:39 [09:08:02]1206 (1) - 0 [09:08:02]OFD Sender: Remove packet 191299 [09:08:02]ProducePacketName [09:08:02]name=ofd_packets/00191299 [09:08:02]NVStorageDeleteData [09:08:02]Write to MH i2c: 01 00 00 C1 77 38 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 07 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 07 00 C1 77 00 00 00 00 00 A6 0C F1 [09:08:02]RasterBufferAndPrint [09:08:02]line [09:08:02]line [09:08:02]line [09:08:02]line [09:08:02]line [09:08:02]written 0, free lines is 3245 [09:08:02]MH_Cut [09:08:02]Write to MH i2c: D1 01 00 C8 77 01 11 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: D1 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: D1 01 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: D1 01 00 C8 77 00 10 [09:08:02]Write to MH i2c: 01 00 00 C9 77 40 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]OFD Sender: No OFD packet to send [09:08:03]*** Cut start [09:08:03]*** Partial cut [09:08:03]*** CUTSNS_PIN = 1 [09:08:03]*** CUTSNS_PIN = 0 [09:08:03]*** Brake cut motor [09:08:03]Read from MH i2c: 01 [09:08:03]MH_I2C_Read... [09:08:03]*** Stop cut motor [09:08:03]*** Cut end [09:08:03]Read from MH i2c: 01 07 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: 01 07 00 C9 77 00 00 00 00 00 FF 0F 55 [09:08:03]process_action close_receipt done [09:08:03]requested_data is exist [09:08:03]produce_requested_data [09:08:03]requested_item fm.sn is exist - process it [09:08:03]wFMCommunicate request_size=4 [09:08:03]MH_SAM_APDU [09:08:03]CAPDU: 80 11 00 00 [09:08:03]Write to MH i2c: E2 08 00 CA 77 80 11 00 00 00 00 00 00 BB [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:04]Read from MH i2c: E2 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 17 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 17 00 CA 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [09:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:04]wFMCommunicate OK [09:08:04]requested_item fd.num is exist - process it [09:08:04]SAM_PROTO_GetFieldsCounters [09:08:04]wFMCommunicate request_size=4 [09:08:04]MH_SAM_APDU [09:08:04]CAPDU: 80 13 00 00 [09:08:04]Write to MH i2c: E2 08 00 CB 77 80 13 00 00 00 00 00 00 BE [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:04]Read from MH i2c: E2 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 62 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 62 00 CB 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:04]wFMCommunicate OK [09:08:04]SAM_PROTO_GetFieldsCounters done [09:08:04]requested_item shift.num is exist - process it [09:08:04]requested_item shift.opened is exist - process it [09:08:04]req_shift_opened [09:08:04]FM_GetShiftState [09:08:04]SAM_PROTO_GetShiftState [09:08:04]wFMCommunicate request_size=4 [09:08:04]MH_SAM_APDU [09:08:04]CAPDU: 80 13 01 00 [09:08:04]Write to MH i2c: E2 08 00 CC 77 80 13 01 00 00 00 00 00 C0 [09:08:04]Write i2c OK [09:08:04]MH_I2C_Read... [09:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:04]Read from MH i2c: E2 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 0E 00 [09:08:04]MH_I2C_Read... [09:08:04]Read from MH i2c: E2 0E 00 CC 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 83 [09:08:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:08:04]wFMCommunicate OK [09:08:04]SAM_PROTO_GetShiftState done [09:08:04]FM_GetShiftState done [09:08:04]req_shift_opened done [09:08:04]requested_item shift.open_date is exist - process it [09:08:04]req_shift_open_date [09:08:04]req_shift_open_date done [09:08:04]produce_requested_data done [09:08:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191299,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:08:04]process_action_free close_receipt [09:08:04]json_value_free [09:08:04]json_value_free done [09:08:04]process_json_proto returns [09:08:04]Send response to host [09:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191299,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:08:04]free response buf [09:08:04]execute_script done [09:08:04]execute_script returns [09:08:04]free content buf [09:08:04]Sock 8.Close socket [09:08:04]Sock 8.Thread stoped [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:01]accept exits with 9 [09:10:01]New connection [09:10:01]New thread 3066961252 created [09:10:01]Thread 3066817892 joined [09:10:01]Waiting for new connection... [09:10:01] Sock 9.Parse request [09:10:01]Sock 9.Check first char [09:10:01]Sock 9.First char is OK [09:10:01]request: POST /json_proto HTTP/1.0 [09:10:01]Method: POST [09:10:01]URL: /json_proto [09:10:01]Method is POST - this is cgi request [09:10:01]url: /json_proto [09:10:01]query_string will be loaded in cgi processing [09:10:01]execute_cgi json_proto POST (null) [09:10:01]execute_cgi path=json_proto method=POST [09:10:01]POST find Content-Length [09:10:01]Host: 172.17.63.131:8080 [09:10:01]Content-Length: 859 [09:10:01]Content-Type: application/json [09:10:01] [09:10:01]POST finish read [09:10:01]Found Content-Length = 859 [09:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:01]execute_script... [09:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:01]POST & json_proto [09:10:01]process_json_proto [09:10:01]json parsed OK: [09:10:01]protocol is kg_v1.0 [09:10:01]action value=close_receipt [09:10:01]process_action close_receipt [09:10:01]cmd_close_receipt [09:10:01]MH_GetDate [09:10:01]Write to MH i2c: F0 00 00 CD 77 33 [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 09 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 09 00 CD 77 00 71 60 1B 67 22 05 6E 64 88 [09:10:01]GetLastDocTimeStamp 1729847288 [09:10:01]current date 1729847409 [09:10:01]FM_GetShiftState [09:10:01]SAM_PROTO_GetShiftState [09:10:01]wFMCommunicate request_size=4 [09:10:01]MH_SAM_APDU [09:10:01]CAPDU: 80 13 01 00 [09:10:01]Write to MH i2c: E2 08 00 CE 77 80 13 01 00 00 00 00 00 C2 [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:01]Read from MH i2c: E2 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: E2 0E 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: E2 0E 00 CE 77 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 85 [09:10:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:10:01]wFMCommunicate OK [09:10:01]SAM_PROTO_GetShiftState done [09:10:01]FM_GetShiftState done [09:10:01]opened in 1729816399 [09:10:01]opened+sec_in_day 1729902799 [09:10:01]quantity*price = 50063 [09:10:01]sum+1 = 50064 [09:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 39 25.10.2024 09:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191300 ФПД: 251538004446689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091009&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191300&fm=251538004446689&tin=02508201610067®Number=0000000000091776&sum=50063 [09:10:02]StoreToDocumentArchive [09:10:02]shift 540 fd 191300 [09:10:02]save to /storage/0540/doc_00191300 [09:10:02]save last doc name /storage/0540/doc_00191300 to /storage/kkm_last_doc_name [09:10:02]save OK [09:10:02]Clear old archive folders... [09:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:10:02]tlvbuf is 0169FFD0 [09:10:02]SAM_PROTO_ClearQueue [09:10:02]wFMCommunicate request_size=4 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 09 00 00 [09:10:02]Write to MH i2c: E2 08 00 DB 77 80 09 00 00 00 00 00 00 C4 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 DB 77 00 90 00 C6 [09:10:02]RAPDU: 90 00 [09:10:02]wFMCommunicate OK [09:10:02]SAM_PROTO_ClearQueue done [09:10:02]KKMCreateOFDPacket [09:10:02]OFDProtocolAddRootSTLVToBuf [09:10:02]FM_MakeSignedData [09:10:02]FM_MakeSignedData [09:10:02]SAM_PROTO_SignData [09:10:02]wFMCommunicate request_size=4 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 0D 01 02 [09:10:02]Write to MH i2c: E2 08 00 DC 77 80 0D 01 02 00 00 00 00 CC [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 DC 77 00 90 00 C7 [09:10:02]RAPDU: 90 00 [09:10:02]wFMCommunicate OK [09:10:02]wFMCommunicate request_size=255 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EB 02 00 35 04 06 00 E4 C5 C1 67 [09:10:02]Write to MH i2c: E2 02 01 DD 77 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EB 02 00 35 04 06 00 E4 C5 C1 67 00 00 F6 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 DD 77 00 90 00 C8 [09:10:02]RAPDU: 90 00 [09:10:02]wFMCommunicate OK [09:10:02]wFMCommunicate request_size=7 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 0D 02 02 02 0D E1 [09:10:02]Write to MH i2c: E2 0A 00 DE 77 80 0D 02 02 02 00 0D E1 00 00 C1 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 03 00 DE 77 00 90 00 C9 [09:10:02]RAPDU: 90 00 [09:10:02]wFMCommunicate OK [09:10:02]wFMCommunicate request_size=4 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 0D 03 02 [09:10:02]Write to MH i2c: E2 08 00 DF 77 80 0D 03 02 00 00 00 00 D1 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 0B 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 0B 00 DF 77 00 6E 72 18 44 51 2C BC A1 90 00 E8 [09:10:02]RAPDU: 6E 72 18 44 51 2C BC A1 90 00 [09:10:02]wFMCommunicate OK [09:10:02]SAM_PROTO_SignData done [09:10:02]FM_MakeSignedData done [09:10:02]CreateOFDProtocolMessage [09:10:02]wFMCommunicate request_size=4 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 11 00 00 [09:10:02]Write to MH i2c: E2 08 00 E0 77 80 11 00 00 00 00 00 00 D1 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:02]Read from MH i2c: E2 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 17 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: E2 17 00 E0 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [09:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:02]wFMCommunicate OK [09:10:02]CreateOFDProtocolMessage done [09:10:02]OFDSenderStorePacket 191300 [09:10:02]StoreOFDPacket docnum=191300 [09:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 49 7B 04 01 D9 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EB 02 00 35 04 06 00 E4 C5 C1 67 0D E1 6E 72 18 44 51 2C BC A1 [09:10:02]CheckFolder [09:10:02]dirname=/storage/ofd_packets [09:10:02]CheckFolder done [09:10:02]ProducePacketName [09:10:02]name=ofd_packets/00191300 [09:10:02]NVStorageSaveData ofd_packets/00191300 [09:10:02]File name is /storage/ofd_packets/00191300 [09:10:02]Write 298 bytes [09:10:02]NVStorageSaveData done [09:10:02]OFDSenderStorePacket done [09:10:02]KKMCreateOFDPacket done [09:10:02]NVStorageSaveData kkm_last_timestamp [09:10:02]File name is /storage/kkm_last_timestamp [09:10:02]Write 4 bytes [09:10:02]NVStorageSaveData done [09:10:02]ExternCall_PrintAddStr [09:10:02]wPrintStart [09:10:02]Write to MH i2c: 01 00 00 E1 77 58 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: 01 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: 01 07 00 [09:10:02]MH_I2C_Read... [09:10:02]Read from MH i2c: 01 07 00 E1 77 00 00 00 00 00 FF 0F 6D [09:10:02]RasterBufferAndPrint [09:10:02]line Счет N : (1)30592 [09:10:02]line ИНН: 02508201610067 [09:10:02]line Контрольно-Кассовый Чек [09:10:02]line ПРОДАЖА [09:10:02]line ТРК (МРК, ГНК) : 22 [09:10:02]line Товар: 2710194210 [09:10:02]line ДТ-К-5 [09:10:02]line 6.570 * 76.20 [09:10:02]line = 500.63 [09:10:02]line НДС 12% НСП 1% [09:10:02]line > о реализуемом товаре [09:10:02]line ИТОГО: 500.63 [09:10:02]line НСП 1% : 4.43 [09:10:02]line НДС 12% : 53.16 [09:10:02]line Наличными: 0.00 [09:10:02]line Безнал.: 500.63 [09:10:02]line Место: АЗС № 170 "Партнер Нефть" [09:10:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:10:02]line СНО: Общий режим [09:10:02]line Чек 39 25.10.2024 09:10 [09:10:02]line Смена: 540 ФФД: 1.0 [09:10:02]line ЗНМ: 0300000110 [09:10:02]line РНМ: 0000000000091776 [09:10:02]line Версия ККМ: 001 [09:10:02]line Платежная система: Кыргызкоммерцбанк [09:10:02]line ФМ: 0000000000871754 [09:10:02]line ФД: 191300 [09:10:02]line ФПД: 251538004446689 [09:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091009&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191300&fm=251538004446689&tin=02508201610067®Number=0000000000091776&sum=50063 [09:10:03]OFD Sender: Processing packet 191300 [packets to send 75, broken 74] [09:10:03]ProducePacketName [09:10:03]name=ofd_packets/00191300 [09:10:03]OFD Sender: To server: pG, [09:10:03]CommunicateWithHost lk.salyk.kg:30040 [09:10:03]ConnectInit lk.salyk.kg [09:10:03]written 0, free lines is 4095 [09:10:03]Connected sock=10 [09:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 49 7B 04 01 D9 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EB 02 00 35 04 06 00 E4 C5 C1 67 0D E1 6E 72 18 44 51 2C BC A1 [09:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C B2 47 00 8E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EB 02 00 F4 03 04 00 40 05 1B 67 B6 04 01 00 00 EE BB 2B 77 91 45 49 86 [09:10:03]CommunicateWithHost err = 0 [09:10:03]CheckOFDResponse [09:10:03]1017 (14) - 77093643461234 [09:10:03]1041 (16) - 0000000000871754 [09:10:03]1040 (4) - 191300 [09:10:03]1012 (4) - 25.10.2024 02:41 [09:10:03]1206 (1) - 0 [09:10:03]OFD Sender: Remove packet 191300 [09:10:03]ProducePacketName [09:10:03]name=ofd_packets/00191300 [09:10:03]NVStorageDeleteData [09:10:03]Write to MH i2c: 01 00 00 0B 78 83 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 0B 78 00 00 00 00 00 CC 0C 62 [09:10:03]RasterBufferAndPrint [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]written 0, free lines is 3283 [09:10:03]MH_Cut [09:10:03]Write to MH i2c: D1 01 00 12 78 01 5C [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 01 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 01 00 12 78 00 5B [09:10:03]Write to MH i2c: 01 00 00 13 78 8B [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]OFD Sender: No OFD packet to send [09:10:04]*** Cut start [09:10:04]*** Partial cut [09:10:04]*** CUTSNS_PIN = 1 [09:10:04]*** CUTSNS_PIN = 0 [09:10:04]*** Brake cut motor [09:10:05]Read from MH i2c: 01 [09:10:05]MH_I2C_Read... [09:10:05]*** Stop cut motor [09:10:05]*** Cut end [09:10:05]Read from MH i2c: 01 07 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 13 78 00 00 00 00 00 FF 0F A0 [09:10:05]process_action close_receipt done [09:10:05]requested_data is exist [09:10:05]produce_requested_data [09:10:05]requested_item fm.sn is exist - process it [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 11 00 00 [09:10:05]Write to MH i2c: E2 08 00 14 78 80 11 00 00 00 00 00 00 06 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 14 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [09:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:05]wFMCommunicate OK [09:10:05]requested_item fd.num is exist - process it [09:10:05]SAM_PROTO_GetFieldsCounters [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 00 00 [09:10:05]Write to MH i2c: E2 08 00 15 78 80 13 00 00 00 00 00 00 09 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 62 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 62 00 15 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetFieldsCounters done [09:10:05]requested_item shift.num is exist - process it [09:10:05]requested_item shift.opened is exist - process it [09:10:05]req_shift_opened [09:10:05]FM_GetShiftState [09:10:05]SAM_PROTO_GetShiftState [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 01 00 [09:10:05]Write to MH i2c: E2 08 00 16 78 80 13 01 00 00 00 00 00 0B [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 16 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CE [09:10:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetShiftState done [09:10:05]FM_GetShiftState done [09:10:05]req_shift_opened done [09:10:05]requested_item shift.open_date is exist - process it [09:10:05]req_shift_open_date [09:10:05]req_shift_open_date done [09:10:05]produce_requested_data done [09:10:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191300,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:10:05]process_action_free close_receipt [09:10:05]json_value_free [09:10:05]json_value_free done [09:10:05]process_json_proto returns [09:10:05]Send response to host [09:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191300,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:10:05]free response buf [09:10:05]execute_script done [09:10:05]execute_script returns [09:10:05]free content buf [09:10:05]Sock 9.Close socket [09:10:05]Sock 9.Thread stoped [09:10:08]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:33]accept exits with 8 [09:11:33]New connection [09:11:33]New thread 3066817892 created [09:11:33]Thread 3066961252 joined [09:11:33]Waiting for new connection... [09:11:33] Sock 8.Parse request [09:11:33]Sock 8.Check first char [09:11:33]Sock 8.First char is OK [09:11:33]request: POST /json_proto HTTP/1.0 [09:11:33]Method: POST [09:11:33]URL: /json_proto [09:11:33]Method is POST - this is cgi request [09:11:33]url: /json_proto [09:11:33]query_string will be loaded in cgi processing [09:11:33]execute_cgi json_proto POST (null) [09:11:33]execute_cgi path=json_proto method=POST [09:11:33]POST find Content-Length [09:11:33]Host: 172.17.63.131:8080 [09:11:33]Content-Length: 681 [09:11:33]Content-Type: application/json [09:11:33] [09:11:33]POST finish read [09:11:33]Found Content-Length = 681 [09:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:33]execute_script... [09:11:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:33]POST & json_proto [09:11:33]process_json_proto [09:11:33]json parsed OK: [09:11:33]protocol is kg_v1.0 [09:11:33]action value=close_receipt [09:11:33]process_action close_receipt [09:11:33]cmd_close_receipt [09:11:33]MH_GetDate [09:11:33]Write to MH i2c: F0 00 00 17 78 7E [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 09 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 09 00 17 78 00 CE 60 1B 67 22 05 6E 64 30 [09:11:33]GetLastDocTimeStamp 1729847409 [09:11:33]current date 1729847502 [09:11:33]FM_GetShiftState [09:11:33]SAM_PROTO_GetShiftState [09:11:33]wFMCommunicate request_size=4 [09:11:33]MH_SAM_APDU [09:11:33]CAPDU: 80 13 01 00 [09:11:33]Write to MH i2c: E2 08 00 18 78 80 13 01 00 00 00 00 00 0D [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:33]Read from MH i2c: E2 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 18 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D0 [09:11:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:11:33]wFMCommunicate OK [09:11:33]SAM_PROTO_GetShiftState done [09:11:33]FM_GetShiftState done [09:11:33]opened in 1729816399 [09:11:33]opened+sec_in_day 1729902799 [09:11:33]quantity*price = 150056 [09:11:33]sum+1 = 150058 [09:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 40 25.10.2024 09:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191301 ФПД: 26833185880999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191301&fm=26833185880999&tin=02508201610067®Number=0000000000091776&sum=150000 [09:11:35]StoreToDocumentArchive [09:11:35]shift 540 fd 191301 [09:11:35]save to /storage/0540/doc_00191301 [09:11:35]save last doc name /storage/0540/doc_00191301 to /storage/kkm_last_doc_name [09:11:35]save OK [09:11:35]Clear old archive folders... [09:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:35]tlvbuf is 01750090 [09:11:35]SAM_PROTO_ClearQueue [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 09 00 00 [09:11:35]Write to MH i2c: E2 08 00 25 78 80 09 00 00 00 00 00 00 0F [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 25 78 00 90 00 11 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]SAM_PROTO_ClearQueue done [09:11:35]KKMCreateOFDPacket [09:11:35]OFDProtocolAddRootSTLVToBuf [09:11:35]FM_MakeSignedData [09:11:35]FM_MakeSignedData [09:11:35]SAM_PROTO_SignData [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 01 02 [09:11:35]Write to MH i2c: E2 08 00 26 78 80 0D 01 02 00 00 00 00 17 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 26 78 00 90 00 12 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=255 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CE 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EB 02 00 35 04 06 00 18 [09:11:35]Write to MH i2c: E2 02 01 27 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CE 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EB 02 00 35 04 06 00 18 00 00 34 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 27 78 00 90 00 13 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=10 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 02 02 05 67 96 83 3B A7 [09:11:35]Write to MH i2c: E2 0D 00 28 78 80 0D 02 02 05 00 67 96 83 3B A7 00 00 86 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 28 78 00 90 00 14 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 03 02 [09:11:35]Write to MH i2c: E2 08 00 29 78 80 0D 03 02 00 00 00 00 1C [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0B 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0B 00 29 78 00 36 87 18 EE 37 DB FB 75 90 00 62 [09:11:35]RAPDU: 36 87 18 EE 37 DB FB 75 90 00 [09:11:35]wFMCommunicate OK [09:11:35]SAM_PROTO_SignData done [09:11:35]FM_MakeSignedData done [09:11:35]CreateOFDProtocolMessage [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 11 00 00 [09:11:35]Write to MH i2c: E2 08 00 2A 78 80 11 00 00 00 00 00 00 1C [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 17 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 17 00 2A 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [09:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:35]wFMCommunicate OK [09:11:35]CreateOFDProtocolMessage done [09:11:35]OFDSenderStorePacket 191301 [09:11:35]StoreOFDPacket docnum=191301 [09:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 BB 07 01 C3 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CE 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EB 02 00 35 04 06 00 18 67 96 83 3B A7 36 87 18 EE 37 DB FB 75 [09:11:35]CheckFolder [09:11:35]dirname=/storage/ofd_packets [09:11:35]CheckFolder done [09:11:35]ProducePacketName [09:11:35]name=ofd_packets/00191301 [09:11:35]NVStorageSaveData ofd_packets/00191301 [09:11:35]File name is /storage/ofd_packets/00191301 [09:11:35]Write 301 bytes [09:11:35]NVStorageSaveData done [09:11:35]OFDSenderStorePacket done [09:11:35]KKMCreateOFDPacket done [09:11:35]NVStorageSaveData kkm_last_timestamp [09:11:35]File name is /storage/kkm_last_timestamp [09:11:35]Write 4 bytes [09:11:35]NVStorageSaveData done [09:11:35]ExternCall_PrintAddStr [09:11:35]wPrintStart [09:11:35]Write to MH i2c: 01 00 00 2B 78 A3 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 2B 78 00 00 00 00 00 FF 0F B8 [09:11:35]RasterBufferAndPrint [09:11:35]line Счет N : (1)30593 [09:11:35]line ИНН: 02508201610067 [09:11:35]line Контрольно-Кассовый Чек [09:11:35]line ПРОДАЖА [09:11:35]line ТРК (МРК, ГНК) : 12 [09:11:35]line Товар: 2710124130 [09:11:35]line Аи-92-К-5 [09:11:35]line 22.430 * 66.90 [09:11:35]line = 1500.57 [09:11:35]line НДС 12% НСП 1% [09:11:35]line > о реализуемом товаре [09:11:35]line ОКРУГЛЕНИЕ: -0.57 [09:11:35]line ИТОГО: 1500.00 [09:11:35]line Внесено: 1500.00 [09:11:35]OFD Sender: Processing packet 191301 [packets to send 75, broken 74] [09:11:35]ProducePacketName [09:11:35]name=ofd_packets/00191301 [09:11:35]OFD Sender: To server: pG, [09:11:35]CommunicateWithHost lk.salyk.kg:30040 [09:11:35]ConnectInit lk.salyk.kg [09:11:35]line СДАЧА: 0.00 [09:11:35]line НСП 1% : 13.28 [09:11:35]line НДС 12% : 159.35 [09:11:35]line Наличными: 1500.00 [09:11:35]line Безнал.: 0.00 [09:11:35]line Место: АЗС № 170 "Партнер Нефть" [09:11:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:11:35]line СНО: Общий режим [09:11:35]line Чек 40 25.10.2024 09:11 [09:11:35]line Смена: 540 ФФД: 1.0 [09:11:35]line ЗНМ: 0300000110 [09:11:35]line РНМ: 0000000000091776 [09:11:35]line Версия ККМ: 001 [09:11:35]line ФМ: 0000000000871754 [09:11:35]line ФД: 191301 [09:11:35]line ФПД: 26833185880999 [09:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191301&fm=26833185880999&tin=02508201610067®Number=0000000000091776&sum=150000 [09:11:35]Connected sock=10 [09:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 BB 07 01 C3 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CE 60 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EB 02 00 35 04 06 00 18 67 96 83 3B A7 36 87 18 EE 37 DB FB 75 [09:11:36]written 0, free lines is 4095 [09:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CE 74 47 00 9D E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EB 02 00 F4 03 04 00 9D 05 1B 67 B6 04 01 00 00 39 DF 97 48 87 5D C6 1C [09:11:36]CommunicateWithHost err = 0 [09:11:36]CheckOFDResponse [09:11:36]1017 (14) - 77093643461234 [09:11:36]1041 (16) - 0000000000871754 [09:11:36]1040 (4) - 191301 [09:11:36]1012 (4) - 25.10.2024 02:42 [09:11:36]1206 (1) - 0 [09:11:36]OFD Sender: Remove packet 191301 [09:11:36]ProducePacketName [09:11:36]name=ofd_packets/00191301 [09:11:36]NVStorageDeleteData [09:11:36]Write to MH i2c: 01 00 00 56 78 CE [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 07 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 07 00 56 78 00 00 00 00 00 A6 0C 87 [09:11:36]RasterBufferAndPrint [09:11:36]line [09:11:36]line [09:11:36]line [09:11:36]line [09:11:36]line [09:11:36]written 0, free lines is 3242 [09:11:36]MH_Cut [09:11:36]Write to MH i2c: D1 01 00 5D 78 01 A7 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: D1 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: D1 01 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: D1 01 00 5D 78 00 A6 [09:11:36]Write to MH i2c: 01 00 00 5E 78 D6 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]OFD Sender: No OFD packet to send [09:11:37]*** Cut start [09:11:37]*** Partial cut [09:11:37]*** CUTSNS_PIN = 1 [09:11:37]*** CUTSNS_PIN = 0 [09:11:37]*** Brake cut motor [09:11:37]Read from MH i2c: 01 [09:11:37]MH_I2C_Read... [09:11:37]*** Stop cut motor [09:11:37]*** Cut end [09:11:37]Read from MH i2c: 01 07 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 5E 78 00 00 00 00 00 FF 0F EB [09:11:37]process_action close_receipt done [09:11:37]requested_data is exist [09:11:37]produce_requested_data [09:11:37]requested_item fm.sn is exist - process it [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 11 00 00 [09:11:37]Write to MH i2c: E2 08 00 5F 78 80 11 00 00 00 00 00 00 51 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 17 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 17 00 5F 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [09:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:38]wFMCommunicate OK [09:11:38]requested_item fd.num is exist - process it [09:11:38]SAM_PROTO_GetFieldsCounters [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 13 00 00 [09:11:38]Write to MH i2c: E2 08 00 60 78 80 13 00 00 00 00 00 00 54 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 62 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 62 00 60 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [09:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:38]wFMCommunicate OK [09:11:38]SAM_PROTO_GetFieldsCounters done [09:11:38]requested_item shift.num is exist - process it [09:11:38]requested_item shift.opened is exist - process it [09:11:38]req_shift_opened [09:11:38]FM_GetShiftState [09:11:38]SAM_PROTO_GetShiftState [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 13 01 00 [09:11:38]Write to MH i2c: E2 08 00 61 78 80 13 01 00 00 00 00 00 56 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 61 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 19 [09:11:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:11:38]wFMCommunicate OK [09:11:38]SAM_PROTO_GetShiftState done [09:11:38]FM_GetShiftState done [09:11:38]req_shift_opened done [09:11:38]requested_item shift.open_date is exist - process it [09:11:38]req_shift_open_date [09:11:38]req_shift_open_date done [09:11:38]produce_requested_data done [09:11:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191301,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:11:38]process_action_free close_receipt [09:11:38]json_value_free [09:11:38]json_value_free done [09:11:38]process_json_proto returns [09:11:38]Send response to host [09:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191301,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:11:38]free response buf [09:11:38]execute_script done [09:11:38]execute_script returns [09:11:38]free content buf [09:11:38]Sock 8.Close socket [09:11:38]Sock 8.Thread stoped [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:17]accept exits with 9 [09:13:17]New connection [09:13:17]New thread 3066961252 created [09:13:17]Thread 3066817892 joined [09:13:17]Waiting for new connection... [09:13:17] Sock 9.Parse request [09:13:17]Sock 9.Check first char [09:13:17]Sock 9.First char is OK [09:13:17]request: POST /json_proto HTTP/1.0 [09:13:17]Method: POST [09:13:17]URL: /json_proto [09:13:17]Method is POST - this is cgi request [09:13:17]url: /json_proto [09:13:17]query_string will be loaded in cgi processing [09:13:17]execute_cgi json_proto POST (null) [09:13:17]execute_cgi path=json_proto method=POST [09:13:17]POST find Content-Length [09:13:17]Host: 172.17.63.131:8080 [09:13:17]Content-Length: 676 [09:13:17]Content-Type: application/json [09:13:17] [09:13:17]POST finish read [09:13:17]Found Content-Length = 676 [09:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:17]execute_script... [09:13:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:17]POST & json_proto [09:13:17]process_json_proto [09:13:17]json parsed OK: [09:13:17]protocol is kg_v1.0 [09:13:17]action value=close_receipt [09:13:17]process_action close_receipt [09:13:17]cmd_close_receipt [09:13:17]MH_GetDate [09:13:17]Write to MH i2c: F0 00 00 62 78 C9 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: F0 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: F0 09 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: F0 09 00 62 78 00 36 61 1B 67 22 05 6E 64 E4 [09:13:17]GetLastDocTimeStamp 1729847502 [09:13:17]current date 1729847606 [09:13:17]FM_GetShiftState [09:13:17]SAM_PROTO_GetShiftState [09:13:17]wFMCommunicate request_size=4 [09:13:17]MH_SAM_APDU [09:13:17]CAPDU: 80 13 01 00 [09:13:17]Write to MH i2c: E2 08 00 63 78 80 13 01 00 00 00 00 00 58 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:17]Read from MH i2c: E2 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0E 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0E 00 63 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1B [09:13:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:13:17]wFMCommunicate OK [09:13:17]SAM_PROTO_GetShiftState done [09:13:17]FM_GetShiftState done [09:13:17]opened in 1729816399 [09:13:17]opened+sec_in_day 1729902799 [09:13:17]quantity*price = 40006 [09:13:17]sum+1 = 40007 [09:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 41 25.10.2024 09:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191302 ФПД: 255661757571028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191302&fm=255661757571028&tin=02508201610067®Number=0000000000091776&sum=40000 [09:13:19]StoreToDocumentArchive [09:13:19]shift 540 fd 191302 [09:13:19]save to /storage/0540/doc_00191302 [09:13:19]save last doc name /storage/0540/doc_00191302 to /storage/kkm_last_doc_name [09:13:19]save OK [09:13:19]Clear old archive folders... [09:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:19]tlvbuf is 016331D0 [09:13:19]SAM_PROTO_ClearQueue [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 09 00 00 [09:13:19]Write to MH i2c: E2 08 00 70 78 80 09 00 00 00 00 00 00 5A [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 70 78 00 90 00 5C [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]SAM_PROTO_ClearQueue done [09:13:19]KKMCreateOFDPacket [09:13:19]OFDProtocolAddRootSTLVToBuf [09:13:19]FM_MakeSignedData [09:13:19]FM_MakeSignedData [09:13:19]SAM_PROTO_SignData [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 01 02 [09:13:19]Write to MH i2c: E2 08 00 71 78 80 0D 01 02 00 00 00 00 62 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=255 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EB 02 00 35 04 06 00 E8 [09:13:19]Write to MH i2c: E2 02 01 72 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EB 02 00 35 04 06 00 E8 00 00 40 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 72 78 00 90 00 5E [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=10 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 02 02 05 85 E4 3E 1F D4 [09:13:19]Write to MH i2c: E2 0D 00 73 78 80 0D 02 02 05 00 85 E4 3E 1F D4 00 00 09 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 73 78 00 90 00 5F [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 03 02 [09:13:19]Write to MH i2c: E2 08 00 74 78 80 0D 03 02 00 00 00 00 67 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0B 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0B 00 74 78 00 50 C5 5D AB 06 8F 23 CB 90 00 08 [09:13:19]RAPDU: 50 C5 5D AB 06 8F 23 CB 90 00 [09:13:19]wFMCommunicate OK [09:13:19]SAM_PROTO_SignData done [09:13:19]FM_MakeSignedData done [09:13:19]CreateOFDProtocolMessage [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 11 00 00 [09:13:19]Write to MH i2c: E2 08 00 75 78 80 11 00 00 00 00 00 00 67 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 17 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 17 00 75 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [09:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:13:19]wFMCommunicate OK [09:13:19]CreateOFDProtocolMessage done [09:13:19]OFDSenderStorePacket 191302 [09:13:19]StoreOFDPacket docnum=191302 [09:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 62 07 01 B2 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EB 02 00 35 04 06 00 E8 85 E4 3E 1F D4 50 C5 5D AB 06 8F 23 CB [09:13:19]CheckFolder [09:13:19]dirname=/storage/ofd_packets [09:13:19]CheckFolder done [09:13:19]ProducePacketName [09:13:19]name=ofd_packets/00191302 [09:13:19]NVStorageSaveData ofd_packets/00191302 [09:13:19]File name is /storage/ofd_packets/00191302 [09:13:19]Write 301 bytes [09:13:19]NVStorageSaveData done [09:13:19]OFDSenderStorePacket done [09:13:19]KKMCreateOFDPacket done [09:13:19]NVStorageSaveData kkm_last_timestamp [09:13:19]File name is /storage/kkm_last_timestamp [09:13:19]Write 4 bytes [09:13:19]NVStorageSaveData done [09:13:19]ExternCall_PrintAddStr [09:13:19]wPrintStart [09:13:19]Write to MH i2c: 01 00 00 76 78 EE [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 76 78 00 00 00 00 00 FF 0F 03 [09:13:19]RasterBufferAndPrint [09:13:19]line Счет N : (1)30594 [09:13:19]line ИНН: 02508201610067 [09:13:19]line Контрольно-Кассовый Чек [09:13:19]line ПРОДАЖА [09:13:19]line ТРК (МРК, ГНК) : 21 [09:13:19]line Товар: 2710124130 [09:13:19]line Аи-92-К-5 [09:13:19]line 5.980 * 66.90 [09:13:19]line = 400.06 [09:13:19]line НДС 12% НСП 1% [09:13:19]line > о реализуемом товаре [09:13:19]line ОКРУГЛЕНИЕ: -0.06 [09:13:19]line ИТОГО: 400.00 [09:13:19]line Внесено: 400.00 [09:13:19]line СДАЧА: 0.00 [09:13:19]line НСП 1% : 3.54 [09:13:19]line НДС 12% : 42.48 [09:13:19]line Наличными: 400.00 [09:13:19]line Безнал.: 0.00 [09:13:19]line Место: АЗС № 170 "Партнер Нефть" [09:13:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:13:19]line СНО: Общий режим [09:13:19]line Чек 41 25.10.2024 09:13 [09:13:19]line Смена: 540 ФФД: 1.0 [09:13:19]line ЗНМ: 0300000110 [09:13:19]line РНМ: 0000000000091776 [09:13:19]line Версия ККМ: 001 [09:13:19]line ФМ: 0000000000871754 [09:13:19]line ФД: 191302 [09:13:19]line ФПД: 255661757571028 [09:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191302&fm=255661757571028&tin=02508201610067®Number=0000000000091776&sum=40000 [09:13:19]OFD Sender: Processing packet 191302 [packets to send 75, broken 74] [09:13:19]ProducePacketName [09:13:19]name=ofd_packets/00191302 [09:13:19]OFD Sender: To server: pG, [09:13:19]CommunicateWithHost lk.salyk.kg:30040 [09:13:19]ConnectInit lk.salyk.kg [09:13:19]written 0, free lines is 4095 [09:13:20]Connected sock=10 [09:13:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 62 07 01 B2 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EB 02 00 35 04 06 00 E8 85 E4 3E 1F D4 50 C5 5D AB 06 8F 23 CB [09:13:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF 4A 47 00 0D 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EB 02 00 F4 03 04 00 05 06 1B 67 B6 04 01 00 00 F3 4E F0 3C 3E A2 88 37 [09:13:20]CommunicateWithHost err = 0 [09:13:20]CheckOFDResponse [09:13:20]1017 (14) - 77093643461234 [09:13:20]1041 (16) - 0000000000871754 [09:13:20]1040 (4) - 191302 [09:13:20]1012 (4) - 25.10.2024 02:44 [09:13:20]1206 (1) - 0 [09:13:20]OFD Sender: Remove packet 191302 [09:13:20]ProducePacketName [09:13:20]name=ofd_packets/00191302 [09:13:20]NVStorageDeleteData [09:13:20]Write to MH i2c: 01 00 00 A1 78 19 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 A1 78 00 00 00 00 00 A9 0C D5 [09:13:20]RasterBufferAndPrint [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]written 0, free lines is 3248 [09:13:20]MH_Cut [09:13:20]Write to MH i2c: D1 01 00 A8 78 01 F2 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 01 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 01 00 A8 78 00 F1 [09:13:20]Write to MH i2c: 01 00 00 A9 78 21 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]OFD Sender: No OFD packet to send [09:13:21]*** Cut start [09:13:21]*** Partial cut [09:13:21]*** CUTSNS_PIN = 1 [09:13:21]*** CUTSNS_PIN = 0 [09:13:21]*** Brake cut motor [09:13:21]Read from MH i2c: 01 [09:13:21]MH_I2C_Read... [09:13:21]*** Stop cut motor [09:13:21]*** Cut end [09:13:21]Read from MH i2c: 01 07 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: 01 07 00 A9 78 00 00 00 00 00 FF 0F 36 [09:13:21]process_action close_receipt done [09:13:21]requested_data is exist [09:13:21]produce_requested_data [09:13:21]requested_item fm.sn is exist - process it [09:13:21]wFMCommunicate request_size=4 [09:13:21]MH_SAM_APDU [09:13:21]CAPDU: 80 11 00 00 [09:13:21]Write to MH i2c: E2 08 00 AA 78 80 11 00 00 00 00 00 00 9C [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 17 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 17 00 AA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [09:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:13:21]wFMCommunicate OK [09:13:21]requested_item fd.num is exist - process it [09:13:21]SAM_PROTO_GetFieldsCounters [09:13:21]wFMCommunicate request_size=4 [09:13:21]MH_SAM_APDU [09:13:21]CAPDU: 80 13 00 00 [09:13:21]Write to MH i2c: E2 08 00 AB 78 80 13 00 00 00 00 00 00 9F [09:13:21]Write i2c OK [09:13:21]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 62 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 62 00 AB 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [09:13:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:22]wFMCommunicate OK [09:13:22]SAM_PROTO_GetFieldsCounters done [09:13:22]requested_item shift.num is exist - process it [09:13:22]requested_item shift.opened is exist - process it [09:13:22]req_shift_opened [09:13:22]FM_GetShiftState [09:13:22]SAM_PROTO_GetShiftState [09:13:22]wFMCommunicate request_size=4 [09:13:22]MH_SAM_APDU [09:13:22]CAPDU: 80 13 01 00 [09:13:22]Write to MH i2c: E2 08 00 AC 78 80 13 01 00 00 00 00 00 A1 [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 AC 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 64 [09:13:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:13:22]wFMCommunicate OK [09:13:22]SAM_PROTO_GetShiftState done [09:13:22]FM_GetShiftState done [09:13:22]req_shift_opened done [09:13:22]requested_item shift.open_date is exist - process it [09:13:22]req_shift_open_date [09:13:22]req_shift_open_date done [09:13:22]produce_requested_data done [09:13:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191302,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:13:22]process_action_free close_receipt [09:13:22]json_value_free [09:13:22]json_value_free done [09:13:22]process_json_proto returns [09:13:22]Send response to host [09:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191302,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:13:22]free response buf [09:13:22]execute_script done [09:13:22]execute_script returns [09:13:22]free content buf [09:13:22]Sock 9.Close socket [09:13:22]Sock 9.Thread stoped [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13: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]accept exits with 8 [09:16:20]New connection [09:16:20]New thread 3066817892 created [09:16:20]Thread 3066961252 joined [09:16:20]Waiting for new connection... [09:16:20] Sock 8.Parse request [09:16:20]Sock 8.Check first char [09:16:20]Sock 8.First char is OK [09:16:20]request: POST /json_proto HTTP/1.0 [09:16:20]Method: POST [09:16:20]URL: /json_proto [09:16:20]Method is POST - this is cgi request [09:16:20]url: /json_proto [09:16:20]query_string will be loaded in cgi processing [09:16:20]execute_cgi json_proto POST (null) [09:16:20]execute_cgi path=json_proto method=POST [09:16:20]POST find Content-Length [09:16:20]Host: 172.17.63.131:8080 [09:16:20]Content-Length: 676 [09:16:20]Content-Type: application/json [09:16:20] [09:16:20]POST finish read [09:16:20]Found Content-Length = 676 [09:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:20]execute_script... [09:16: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)30595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:20]POST & json_proto [09:16:20]process_json_proto [09:16:20]json parsed OK: [09:16:20]protocol is kg_v1.0 [09:16:20]action value=close_receipt [09:16:20]process_action close_receipt [09:16:20]cmd_close_receipt [09:16:20]MH_GetDate [09:16:20]Write to MH i2c: F0 00 00 AD 78 14 [09:16:20]Write i2c OK [09:16:20]MH_I2C_Read... [09:16:20]Read from MH i2c: F0 [09:16:20]MH_I2C_Read... [09:16:20]Read from MH i2c: F0 09 00 [09:16:20]MH_I2C_Read... [09:16:20]Read from MH i2c: F0 09 00 AD 78 00 EC 61 1B 67 22 05 6E 64 E5 [09:16:20]GetLastDocTimeStamp 1729847606 [09:16:20]current date 1729847788 [09:16:20]FM_GetShiftState [09:16:20]SAM_PROTO_GetShiftState [09:16:20]wFMCommunicate request_size=4 [09:16:20]MH_SAM_APDU [09:16:20]CAPDU: 80 13 01 00 [09:16:20]Write to MH i2c: E2 08 00 AE 78 80 13 01 00 00 00 00 00 A3 [09:16:20]Write i2c OK [09:16:20]MH_I2C_Read... [09:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:20]Read from MH i2c: E2 [09:16:20]MH_I2C_Read... [09:16:20]Read from MH i2c: E2 0E 00 [09:16:20]MH_I2C_Read... [09:16:20]Read from MH i2c: E2 0E 00 AE 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 66 [09:16:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:16:20]wFMCommunicate OK [09:16:20]SAM_PROTO_GetShiftState done [09:16:20]FM_GetShiftState done [09:16:20]opened in 1729816399 [09:16:20]opened+sec_in_day 1729902799 [09:16:20]quantity*price = 50041 [09:16:20]sum+1 = 50042 [09:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 42 25.10.2024 09:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191303 ФПД: 104529891583189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191303&fm=104529891583189&tin=02508201610067®Number=0000000000091776&sum=50000 [09:16:21]StoreToDocumentArchive [09:16:21]shift 540 fd 191303 [09:16:21]save to /storage/0540/doc_00191303 [09:16:21]save last doc name /storage/0540/doc_00191303 to /storage/kkm_last_doc_name [09:16:21]save OK [09:16:21]Clear old archive folders... [09:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:21]tlvbuf is 016CEB30 [09:16:21]SAM_PROTO_ClearQueue [09:16:21]wFMCommunicate request_size=4 [09:16:21]MH_SAM_APDU [09:16:21]CAPDU: 80 09 00 00 [09:16:21]Write to MH i2c: E2 08 00 BB 78 80 09 00 00 00 00 00 00 A5 [09:16:21]Write i2c OK [09:16:21]MH_I2C_Read... [09:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:21]Read from MH i2c: E2 [09:16:21]MH_I2C_Read... [09:16:21]Read from MH i2c: E2 03 00 [09:16:21]MH_I2C_Read... [09:16:21]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [09:16:21]RAPDU: 90 00 [09:16:21]wFMCommunicate OK [09:16:21]SAM_PROTO_ClearQueue done [09:16:21]KKMCreateOFDPacket [09:16:21]OFDProtocolAddRootSTLVToBuf [09:16:21]FM_MakeSignedData [09:16:21]FM_MakeSignedData [09:16:21]SAM_PROTO_SignData [09:16:21]wFMCommunicate request_size=4 [09:16:21]MH_SAM_APDU [09:16:21]CAPDU: 80 0D 01 02 [09:16:21]Write to MH i2c: E2 08 00 BC 78 80 0D 01 02 00 00 00 00 AD [09:16:21]Write i2c OK [09:16:21]MH_I2C_Read... [09:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:21]Read from MH i2c: E2 [09:16:21]MH_I2C_Read... [09:16:21]Read from MH i2c: E2 03 00 [09:16:21]MH_I2C_Read... [09:16:21]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [09:16:21]RAPDU: 90 00 [09:16:21]wFMCommunicate OK [09:16:21]wFMCommunicate request_size=255 [09:16:21]MH_SAM_APDU [09:16:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EB 02 00 35 04 06 00 5F [09:16:21]Write to MH i2c: E2 02 01 BD 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EB 02 00 35 04 06 00 5F 00 00 EB [09:16:21]Write i2c OK [09:16:21]MH_I2C_Read... [09:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:22]Read from MH i2c: E2 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 03 00 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 03 00 BD 78 00 90 00 A9 [09:16:22]RAPDU: 90 00 [09:16:22]wFMCommunicate OK [09:16:22]wFMCommunicate request_size=10 [09:16:22]MH_SAM_APDU [09:16:22]CAPDU: 80 0D 02 02 05 11 C3 0E 64 D5 [09:16:22]Write to MH i2c: E2 0D 00 BE 78 80 0D 02 02 05 00 11 C3 0E 64 D5 00 00 D5 [09:16:22]Write i2c OK [09:16:22]MH_I2C_Read... [09:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:22]Read from MH i2c: E2 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 03 00 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 03 00 BE 78 00 90 00 AA [09:16:22]RAPDU: 90 00 [09:16:22]wFMCommunicate OK [09:16:22]wFMCommunicate request_size=4 [09:16:22]MH_SAM_APDU [09:16:22]CAPDU: 80 0D 03 02 [09:16:22]Write to MH i2c: E2 08 00 BF 78 80 0D 03 02 00 00 00 00 B2 [09:16:22]Write i2c OK [09:16:22]MH_I2C_Read... [09:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:22]Read from MH i2c: E2 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 0B 00 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 0B 00 BF 78 00 F5 43 51 E1 7D F5 DF 16 90 00 84 [09:16:22]RAPDU: F5 43 51 E1 7D F5 DF 16 90 00 [09:16:22]wFMCommunicate OK [09:16:22]SAM_PROTO_SignData done [09:16:22]FM_MakeSignedData done [09:16:22]CreateOFDProtocolMessage [09:16:22]wFMCommunicate request_size=4 [09:16:22]MH_SAM_APDU [09:16:22]CAPDU: 80 11 00 00 [09:16:22]Write to MH i2c: E2 08 00 C0 78 80 11 00 00 00 00 00 00 B2 [09:16:22]Write i2c OK [09:16:22]MH_I2C_Read... [09:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:22]Read from MH i2c: E2 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 17 00 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: E2 17 00 C0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [09:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:16:22]wFMCommunicate OK [09:16:22]CreateOFDProtocolMessage done [09:16:22]OFDSenderStorePacket 191303 [09:16:22]StoreOFDPacket docnum=191303 [09:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 F7 07 01 1B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EB 02 00 35 04 06 00 5F 11 C3 0E 64 D5 F5 43 51 E1 7D F5 DF 16 [09:16:22]CheckFolder [09:16:22]dirname=/storage/ofd_packets [09:16:22]CheckFolder done [09:16:22]ProducePacketName [09:16:22]name=ofd_packets/00191303 [09:16:22]NVStorageSaveData ofd_packets/00191303 [09:16:22]File name is /storage/ofd_packets/00191303 [09:16:22]Write 301 bytes [09:16:22]NVStorageSaveData done [09:16:22]OFDSenderStorePacket done [09:16:22]KKMCreateOFDPacket done [09:16:22]NVStorageSaveData kkm_last_timestamp [09:16:22]File name is /storage/kkm_last_timestamp [09:16:22]Write 4 bytes [09:16:22]NVStorageSaveData done [09:16:22]ExternCall_PrintAddStr [09:16:22]wPrintStart [09:16:22]Write to MH i2c: 01 00 00 C1 78 39 [09:16:22]Write i2c OK [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: 01 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: 01 07 00 [09:16:22]MH_I2C_Read... [09:16:22]Read from MH i2c: 01 07 00 C1 78 00 00 00 00 00 FF 0F 4E [09:16:22]RasterBufferAndPrint [09:16:22]line Счет N : (1)30595 [09:16:22]line ИНН: 02508201610067 [09:16:22]line Контрольно-Кассовый Чек [09:16:22]line ПРОДАЖА [09:16:22]line ТРК (МРК, ГНК) : 12 [09:16:22]line Товар: 2710124130 [09:16:22]line Аи-92-К-5 [09:16:22]line 7.480 * 66.90 [09:16:22]line = 500.41 [09:16:22]line НДС 12% НСП 1% [09:16:22]line > о реализуемом товаре [09:16:22]line ОКРУГЛЕНИЕ: -0.41 [09:16:22]line ИТОГО: 500.00 [09:16:22]line Внесено: 500.00 [09:16:22]line СДАЧА: 0.00 [09:16:22]line НСП 1% : 4.43 [09:16:22]line НДС 12% : 53.14 [09:16:22]line Наличными: 500.00 [09:16:22]line Безнал.: 0.00 [09:16:22]line Место: АЗС № 170 "Партнер Нефть" [09:16:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:16:22]line СНО: Общий режим [09:16:22]line Чек 42 25.10.2024 09:16 [09:16:22]line Смена: 540 ФФД: 1.0 [09:16:22]line ЗНМ: 0300000110 [09:16:22]line РНМ: 0000000000091776 [09:16:22]line Версия ККМ: 001 [09:16:22]line ФМ: 0000000000871754 [09:16:22]line ФД: 191303 [09:16:22]line ФПД: 104529891583189 [09:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191303&fm=104529891583189&tin=02508201610067®Number=0000000000091776&sum=50000 [09:16:22]OFD Sender: Processing packet 191303 [packets to send 75, broken 74] [09:16:22]ProducePacketName [09:16:22]name=ofd_packets/00191303 [09:16:22]OFD Sender: To server: pG, [09:16:22]CommunicateWithHost lk.salyk.kg:30040 [09:16:22]ConnectInit lk.salyk.kg [09:16:22]written 0, free lines is 4095 [09:16:22]Connected sock=10 [09: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 31 37 35 34 0F 01 00 00 72 F7 07 01 1B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 EC 61 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EB 02 00 35 04 06 00 5F 11 C3 0E 64 D5 F5 43 51 E1 7D F5 DF 16 [09:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 63 47 00 CC 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 31 37 35 34 10 04 04 00 47 EB 02 00 F4 03 04 00 BB 06 1B 67 B6 04 01 00 00 CE 0F BB 80 19 B7 F9 1D [09:16:22]CommunicateWithHost err = 0 [09:16:22]CheckOFDResponse [09:16:22]1017 (14) - 77093643461234 [09:16:22]1041 (16) - 0000000000871754 [09:16:22]1040 (4) - 191303 [09:16:22]1012 (4) - 25.10.2024 02:47 [09:16:22]1206 (1) - 0 [09:16:22]OFD Sender: Remove packet 191303 [09:16:22]ProducePacketName [09:16:22]name=ofd_packets/00191303 [09:16:22]NVStorageDeleteData [09:16:23]Write to MH i2c: 01 00 00 EC 78 64 [09:16:23]Write i2c OK [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: 01 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: 01 07 00 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: 01 07 00 EC 78 00 00 00 00 00 A4 0C 1B [09:16:23]RasterBufferAndPrint [09:16:23]line [09:16:23]line [09:16:23]line [09:16:23]line [09:16:23]line [09:16:23]written 0, free lines is 3242 [09:16:23]MH_Cut [09:16:23]Write to MH i2c: D1 01 00 F3 78 01 3D [09:16:23]Write i2c OK [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: D1 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: D1 01 00 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: D1 01 00 F3 78 00 3C [09:16:23]Write to MH i2c: 01 00 00 F4 78 6C [09:16:23]Write i2c OK [09:16:23]MH_I2C_Read... [09:16:23]OFD Sender: No OFD packet to send [09:16:23]*** Cut start [09:16:23]*** Partial cut [09:16:23]*** CUTSNS_PIN = 1 [09:16:23]*** CUTSNS_PIN = 0 [09:16:24]*** Brake cut motor [09:16:24]Read from MH i2c: 01 [09:16:24]MH_I2C_Read... [09:16:24]*** Stop cut motor [09:16:24]*** Cut end [09:16:24]Read from MH i2c: 01 07 00 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: 01 07 00 F4 78 00 00 00 00 00 FF 0F 81 [09:16:24]process_action close_receipt done [09:16:24]requested_data is exist [09:16:24]produce_requested_data [09:16:24]requested_item fm.sn is exist - process it [09:16:24]wFMCommunicate request_size=4 [09:16:24]MH_SAM_APDU [09:16:24]CAPDU: 80 11 00 00 [09:16:24]Write to MH i2c: E2 08 00 F5 78 80 11 00 00 00 00 00 00 E7 [09:16:24]Write i2c OK [09:16:24]MH_I2C_Read... [09:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:24]Read from MH i2c: E2 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 17 00 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 17 00 F5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [09:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:16:24]wFMCommunicate OK [09:16:24]requested_item fd.num is exist - process it [09:16:24]SAM_PROTO_GetFieldsCounters [09:16:24]wFMCommunicate request_size=4 [09:16:24]MH_SAM_APDU [09:16:24]CAPDU: 80 13 00 00 [09:16:24]Write to MH i2c: E2 08 00 F6 78 80 13 00 00 00 00 00 00 EA [09:16:24]Write i2c OK [09:16:24]MH_I2C_Read... [09:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:24]Read from MH i2c: E2 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 62 00 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 62 00 F6 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:24]wFMCommunicate OK [09:16:24]SAM_PROTO_GetFieldsCounters done [09:16:24]requested_item shift.num is exist - process it [09:16:24]requested_item shift.opened is exist - process it [09:16:24]req_shift_opened [09:16:24]FM_GetShiftState [09:16:24]SAM_PROTO_GetShiftState [09:16:24]wFMCommunicate request_size=4 [09:16:24]MH_SAM_APDU [09:16:24]CAPDU: 80 13 01 00 [09:16:24]Write to MH i2c: E2 08 00 F7 78 80 13 01 00 00 00 00 00 EC [09:16:24]Write i2c OK [09:16:24]MH_I2C_Read... [09:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:24]Read from MH i2c: E2 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 0E 00 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: E2 0E 00 F7 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AF [09:16:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:16:24]wFMCommunicate OK [09:16:24]SAM_PROTO_GetShiftState done [09:16:24]FM_GetShiftState done [09:16:24]req_shift_opened done [09:16:24]requested_item shift.open_date is exist - process it [09:16:24]req_shift_open_date [09:16:24]req_shift_open_date done [09:16:24]produce_requested_data done [09:16:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191303,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:16:24]process_action_free close_receipt [09:16:24]json_value_free [09:16:24]json_value_free done [09:16:24]process_json_proto returns [09:16:24]Send response to host [09:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191303,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:16:24]free response buf [09:16:24]execute_script done [09:16:24]execute_script returns [09:16:24]free content buf [09:16:24]Sock 8.Close socket [09:16:24]Sock 8.Thread stoped [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:39]accept exits with 9 [09:17:39]New connection [09:17:39]New thread 3066961252 created [09:17:39]Thread 3066817892 joined [09:17:39]Waiting for new connection... [09:17:39] Sock 9.Parse request [09:17:39]Sock 9.Check first char [09:17:39]Sock 9.First char is OK [09:17:39]request: POST /json_proto HTTP/1.0 [09:17:39]Method: POST [09:17:39]URL: /json_proto [09:17:39]Method is POST - this is cgi request [09:17:39]url: /json_proto [09:17:39]query_string will be loaded in cgi processing [09:17:39]execute_cgi json_proto POST (null) [09:17:39]execute_cgi path=json_proto method=POST [09:17:39]POST find Content-Length [09:17:39]Host: 172.17.63.131:8080 [09:17:39]Content-Length: 676 [09:17:39]Content-Type: application/json [09:17:39] [09:17:39]POST finish read [09:17:39]Found Content-Length = 676 [09:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:39]execute_script... [09:17: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)30596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:39]POST & json_proto [09:17:39]process_json_proto [09:17:39]json parsed OK: [09:17:39]protocol is kg_v1.0 [09:17:39]action value=close_receipt [09:17:39]process_action close_receipt [09:17:39]cmd_close_receipt [09:17:39]MH_GetDate [09:17:39]Write to MH i2c: F0 00 00 F8 78 5F [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 09 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 09 00 F8 78 00 3B 62 1B 67 22 05 6E 64 80 [09:17:39]GetLastDocTimeStamp 1729847788 [09:17:39]current date 1729847867 [09:17:39]FM_GetShiftState [09:17:39]SAM_PROTO_GetShiftState [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 13 01 00 [09:17:39]Write to MH i2c: E2 08 00 F9 78 80 13 01 00 00 00 00 00 EE [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 F9 78 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B1 [09:17:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_GetShiftState done [09:17:39]FM_GetShiftState done [09:17:39]opened in 1729816399 [09:17:39]opened+sec_in_day 1729902799 [09:17:39]quantity*price = 50041 [09:17:39]sum+1 = 50042 [09:17:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 43 25.10.2024 09:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191304 ФПД: 247947716017895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191304&fm=247947716017895&tin=02508201610067®Number=0000000000091776&sum=50000 [09:17:40]StoreToDocumentArchive [09:17:40]shift 540 fd 191304 [09:17:40]save to /storage/0540/doc_00191304 [09:17:40]save last doc name /storage/0540/doc_00191304 to /storage/kkm_last_doc_name [09:17:40]save OK [09:17:40]Clear old archive folders... [09:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:40]tlvbuf is 01777740 [09:17:40]SAM_PROTO_ClearQueue [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 09 00 00 [09:17:40]Write to MH i2c: E2 08 00 06 79 80 09 00 00 00 00 00 00 F1 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 06 79 00 90 00 F3 [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]SAM_PROTO_ClearQueue done [09:17:40]KKMCreateOFDPacket [09:17:40]OFDProtocolAddRootSTLVToBuf [09:17:40]FM_MakeSignedData [09:17:40]FM_MakeSignedData [09:17:40]SAM_PROTO_SignData [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 0D 01 02 [09:17:40]Write to MH i2c: E2 08 00 07 79 80 0D 01 02 00 00 00 00 F9 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 07 79 00 90 00 F4 [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]wFMCommunicate request_size=255 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EB 02 00 35 04 06 00 E1 [09:17:40]Write to MH i2c: E2 02 01 08 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EB 02 00 35 04 06 00 E1 00 00 0B [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 08 79 00 90 00 F5 [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]wFMCommunicate request_size=10 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 0D 02 02 05 81 D3 89 3E E7 [09:17:40]Write to MH i2c: E2 0D 00 09 79 80 0D 02 02 05 00 81 D3 89 3E E7 00 00 08 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 09 79 00 90 00 F6 [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 0D 03 02 [09:17:40]Write to MH i2c: E2 08 00 0A 79 80 0D 03 02 00 00 00 00 FE [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 0B 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 0B 00 0A 79 00 45 71 71 89 0E 42 7A 1F 90 00 98 [09:17:40]RAPDU: 45 71 71 89 0E 42 7A 1F 90 00 [09:17:40]wFMCommunicate OK [09:17:40]SAM_PROTO_SignData done [09:17:40]FM_MakeSignedData done [09:17:40]CreateOFDProtocolMessage [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 11 00 00 [09:17:40]Write to MH i2c: E2 08 00 0B 79 80 11 00 00 00 00 00 00 FE [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 0B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [09:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:17:41]wFMCommunicate OK [09:17:41]CreateOFDProtocolMessage done [09:17:41]OFDSenderStorePacket 191304 [09:17:41]StoreOFDPacket docnum=191304 [09:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 39 EC 07 01 CC 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EB 02 00 35 04 06 00 E1 81 D3 89 3E E7 45 71 71 89 0E 42 7A 1F [09:17:41]CheckFolder [09:17:41]dirname=/storage/ofd_packets [09:17:41]CheckFolder done [09:17:41]ProducePacketName [09:17:41]name=ofd_packets/00191304 [09:17:41]NVStorageSaveData ofd_packets/00191304 [09:17:41]File name is /storage/ofd_packets/00191304 [09:17:41]Write 301 bytes [09:17:41]NVStorageSaveData done [09:17:41]OFDSenderStorePacket done [09:17:41]KKMCreateOFDPacket done [09:17:41]NVStorageSaveData kkm_last_timestamp [09:17:41]File name is /storage/kkm_last_timestamp [09:17:41]Write 4 bytes [09:17:41]NVStorageSaveData done [09:17:41]ExternCall_PrintAddStr [09:17:41]wPrintStart [09:17:41]Write to MH i2c: 01 00 00 0C 79 85 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 0C 79 00 00 00 00 00 FF 0F 9A [09:17:41]RasterBufferAndPrint [09:17:41]line Счет N : (1)30596 [09:17:41]line ИНН: 02508201610067 [09:17:41]line Контрольно-Кассовый Чек [09:17:41]line ПРОДАЖА [09:17:41]line ТРК (МРК, ГНК) : 21 [09:17:41]line Товар: 2710124130 [09:17:41]line Аи-92-К-5 [09:17:41]line 7.480 * 66.90 [09:17:41]line = 500.41 [09:17:41]line НДС 12% НСП 1% [09:17:41]line > о реализуемом товаре [09:17:41]line ОКРУГЛЕНИЕ: -0.41 [09:17:41]line ИТОГО: 500.00 [09:17:41]line Внесено: 500.00 [09:17:41]line СДАЧА: 0.00 [09:17:41]line НСП 1% : 4.43 [09:17:41]line НДС 12% : 53.14 [09:17:41]line Наличными: 500.00 [09:17:41]line Безнал.: 0.00 [09:17:41]line Место: АЗС № 170 "Партнер Нефть" [09:17:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:17:41]line СНО: Общий режим [09:17:41]line Чек 43 25.10.2024 09:17 [09:17:41]line Смена: 540 ФФД: 1.0 [09:17:41]line ЗНМ: 0300000110 [09:17:41]line РНМ: 0000000000091776 [09:17:41]line Версия ККМ: 001 [09:17:41]line ФМ: 0000000000871754 [09:17:41]line ФД: 191304 [09:17:41]line ФПД: 247947716017895 [09:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191304&fm=247947716017895&tin=02508201610067®Number=0000000000091776&sum=50000 [09:17:41]OFD Sender: Processing packet 191304 [packets to send 75, broken 74] [09:17:41]ProducePacketName [09:17:41]name=ofd_packets/00191304 [09:17:41]OFD Sender: To server: pG, [09:17:41]CommunicateWithHost lk.salyk.kg:30040 [09:17:41]ConnectInit lk.salyk.kg [09:17:41]written 0, free lines is 4095 [09:17:41]Connected sock=11 [09:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 39 EC 07 01 CC 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3B 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EB 02 00 35 04 06 00 E1 81 D3 89 3E E7 45 71 71 89 0E 42 7A 1F [09:17:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 2F 47 00 72 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EB 02 00 F4 03 04 00 0A 07 1B 67 B6 04 01 00 00 AE 30 F0 1B FB DE 0F AE [09:17:41]CommunicateWithHost err = 0 [09:17:41]CheckOFDResponse [09:17:41]1017 (14) - 77093643461234 [09:17:41]1041 (16) - 0000000000871754 [09:17:41]1040 (4) - 191304 [09:17:41]1012 (4) - 25.10.2024 02:48 [09:17:41]1206 (1) - 0 [09:17:41]OFD Sender: Remove packet 191304 [09:17:41]ProducePacketName [09:17:41]name=ofd_packets/00191304 [09:17:41]NVStorageDeleteData [09:17:41]Write to MH i2c: 01 00 00 37 79 B0 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 37 79 00 00 00 00 00 9D 0C 60 [09:17:41]RasterBufferAndPrint [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]written 0, free lines is 3236 [09:17:41]MH_Cut [09:17:41]Write to MH i2c: D1 01 00 3E 79 01 89 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 01 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 01 00 3E 79 00 88 [09:17:41]Write to MH i2c: 01 00 00 3F 79 B8 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:42]OFD Sender: No OFD packet to send [09:17:42]*** Cut start [09:17:42]*** Partial cut [09:17:42]*** CUTSNS_PIN = 1 [09:17:42]*** CUTSNS_PIN = 0 [09:17:42]*** Brake cut motor [09:17:43]Read from MH i2c: 01 [09:17:43]MH_I2C_Read... [09:17:43]*** Stop cut motor [09:17:43]*** Cut end [09:17:43]Read from MH i2c: 01 07 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: 01 07 00 3F 79 00 00 00 00 00 FF 0F CD [09:17:43]process_action close_receipt done [09:17:43]requested_data is exist [09:17:43]produce_requested_data [09:17:43]requested_item fm.sn is exist - process it [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 11 00 00 [09:17:43]Write to MH i2c: E2 08 00 40 79 80 11 00 00 00 00 00 00 33 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 40 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [09:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:17:43]wFMCommunicate OK [09:17:43]requested_item fd.num is exist - process it [09:17:43]SAM_PROTO_GetFieldsCounters [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 13 00 00 [09:17:43]Write to MH i2c: E2 08 00 41 79 80 13 00 00 00 00 00 00 36 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 62 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 62 00 41 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_GetFieldsCounters done [09:17:43]requested_item shift.num is exist - process it [09:17:43]requested_item shift.opened is exist - process it [09:17:43]req_shift_opened [09:17:43]FM_GetShiftState [09:17:43]SAM_PROTO_GetShiftState [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 13 01 00 [09:17:43]Write to MH i2c: E2 08 00 42 79 80 13 01 00 00 00 00 00 38 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 0E 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 0E 00 42 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FB [09:17:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_GetShiftState done [09:17:43]FM_GetShiftState done [09:17:43]req_shift_opened done [09:17:43]requested_item shift.open_date is exist - process it [09:17:43]req_shift_open_date [09:17:43]req_shift_open_date done [09:17:43]produce_requested_data done [09:17:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191304,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:17:43]process_action_free close_receipt [09:17:43]json_value_free [09:17:43]json_value_free done [09:17:43]process_json_proto returns [09:17:43]Send response to host [09:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191304,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:17:43]free response buf [09:17:43]execute_script done [09:17:43]execute_script returns [09:17:43]free content buf [09:17:43]Sock 9.Close socket [09:17:43]Sock 9.Thread stoped [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:18]accept exits with 8 [09:18:18]New connection [09:18:18]New thread 3066817892 created [09:18:18]Thread 3066961252 joined [09:18:18]Waiting for new connection... [09:18:18] Sock 8.Parse request [09:18:18]Sock 8.Check first char [09:18:18]Sock 8.First char is OK [09:18:18]request: POST /json_proto HTTP/1.0 [09:18:18]Method: POST [09:18:18]URL: /json_proto [09:18:18]Method is POST - this is cgi request [09:18:18]url: /json_proto [09:18:18]query_string will be loaded in cgi processing [09:18:18]execute_cgi json_proto POST (null) [09:18:18]execute_cgi path=json_proto method=POST [09:18:18]POST find Content-Length [09:18:18]Host: 172.17.63.131:8080 [09:18:18]Content-Length: 676 [09:18:18]Content-Type: application/json [09:18:18] [09:18:18]POST finish read [09:18:18]Found Content-Length = 676 [09:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:18]execute_script... [09:18:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:18]POST & json_proto [09:18:18]process_json_proto [09:18:18]json parsed OK: [09:18:18]protocol is kg_v1.0 [09:18:18]action value=close_receipt [09:18:18]process_action close_receipt [09:18:18]cmd_close_receipt [09:18:18]MH_GetDate [09:18:18]Write to MH i2c: F0 00 00 43 79 AB [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 09 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 09 00 43 79 00 62 62 1B 67 22 05 6E 64 F3 [09:18:18]GetLastDocTimeStamp 1729847867 [09:18:18]current date 1729847906 [09:18:18]FM_GetShiftState [09:18:18]SAM_PROTO_GetShiftState [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 13 01 00 [09:18:18]Write to MH i2c: E2 08 00 44 79 80 13 01 00 00 00 00 00 3A [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 44 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FD [09:18:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:18:18]wFMCommunicate OK [09:18:18]SAM_PROTO_GetShiftState done [09:18:18]FM_GetShiftState done [09:18:18]opened in 1729816399 [09:18:18]opened+sec_in_day 1729902799 [09:18:18]quantity*price = 40006 [09:18:18]sum+1 = 40007 [09:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 44 25.10.2024 09:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191305 ФПД: 246655219961541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191305&fm=246655219961541&tin=02508201610067®Number=0000000000091776&sum=40000 [09:18:19]StoreToDocumentArchive [09:18:19]shift 540 fd 191305 [09:18:19]save to /storage/0540/doc_00191305 [09:18:19]save last doc name /storage/0540/doc_00191305 to /storage/kkm_last_doc_name [09:18:19]save OK [09:18:19]Clear old archive folders... [09:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:19]tlvbuf is 015D8F30 [09:18:19]SAM_PROTO_ClearQueue [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 09 00 00 [09:18:19]Write to MH i2c: E2 08 00 51 79 80 09 00 00 00 00 00 00 3C [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 51 79 00 90 00 3E [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]SAM_PROTO_ClearQueue done [09:18:19]KKMCreateOFDPacket [09:18:19]OFDProtocolAddRootSTLVToBuf [09:18:19]FM_MakeSignedData [09:18:19]FM_MakeSignedData [09:18:19]SAM_PROTO_SignData [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 01 02 [09:18:19]Write to MH i2c: E2 08 00 52 79 80 0D 01 02 00 00 00 00 44 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 52 79 00 90 00 3F [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=255 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 62 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EB 02 00 35 04 06 00 E0 [09:18:19]Write to MH i2c: E2 02 01 53 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 62 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EB 02 00 35 04 06 00 E0 00 00 4D [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 53 79 00 90 00 40 [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=10 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 02 02 05 54 E4 C4 8E C5 [09:18:19]Write to MH i2c: E2 0D 00 54 79 80 0D 02 02 05 00 54 E4 C4 8E C5 00 00 A0 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 54 79 00 90 00 41 [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 03 02 [09:18:19]Write to MH i2c: E2 08 00 55 79 80 0D 03 02 00 00 00 00 49 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0B 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0B 00 55 79 00 75 8A 9A 6C 06 76 41 A9 90 00 B5 [09:18:20]RAPDU: 75 8A 9A 6C 06 76 41 A9 90 00 [09:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_SignData done [09:18:20]FM_MakeSignedData done [09:18:20]CreateOFDProtocolMessage [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 11 00 00 [09:18:20]Write to MH i2c: E2 08 00 56 79 80 11 00 00 00 00 00 00 49 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 17 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 17 00 56 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [09:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:18:20]wFMCommunicate OK [09:18:20]CreateOFDProtocolMessage done [09:18:20]OFDSenderStorePacket 191305 [09:18:20]StoreOFDPacket docnum=191305 [09:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D C1 07 01 96 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 62 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EB 02 00 35 04 06 00 E0 54 E4 C4 8E C5 75 8A 9A 6C 06 76 41 A9 [09:18:20]CheckFolder [09:18:20]dirname=/storage/ofd_packets [09:18:20]CheckFolder done [09:18:20]ProducePacketName [09:18:20]name=ofd_packets/00191305 [09:18:20]NVStorageSaveData ofd_packets/00191305 [09:18:20]File name is /storage/ofd_packets/00191305 [09:18:20]Write 301 bytes [09:18:20]NVStorageSaveData done [09:18:20]OFDSenderStorePacket done [09:18:20]KKMCreateOFDPacket done [09:18:20]NVStorageSaveData kkm_last_timestamp [09:18:20]File name is /storage/kkm_last_timestamp [09:18:20]Write 4 bytes [09:18:20]NVStorageSaveData done [09:18:20]ExternCall_PrintAddStr [09:18:20]wPrintStart [09:18:20]Write to MH i2c: 01 00 00 57 79 D0 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 57 79 00 00 00 00 00 FF 0F E5 [09:18:20]RasterBufferAndPrint [09:18:20]line Счет N : (1)30597 [09:18:20]line ИНН: 02508201610067 [09:18:20]line Контрольно-Кассовый Чек [09:18:20]line ПРОДАЖА [09:18:20]line ТРК (МРК, ГНК) : 21 [09:18:20]line Товар: 2710124130 [09:18:20]line Аи-92-К-5 [09:18:20]line 5.980 * 66.90 [09:18:20]line = 400.06 [09:18:20]line НДС 12% НСП 1% [09:18:20]line > о реализуемом товаре [09:18:20]line ОКРУГЛЕНИЕ: -0.06 [09:18:20]line ИТОГО: 400.00 [09:18:20]line Внесено: 400.00 [09:18:20]line СДАЧА: 0.00 [09:18:20]line НСП 1% : 3.54 [09:18:20]line НДС 12% : 42.48 [09:18:20]line Наличными: 400.00 [09:18:20]line Безнал.: 0.00 [09:18:20]line Место: АЗС № 170 "Партнер Нефть" [09:18:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:18:20]line СНО: Общий режим [09:18:20]line Чек 44 25.10.2024 09:18 [09:18:20]line Смена: 540 ФФД: 1.0 [09:18:20]line ЗНМ: 0300000110 [09:18:20]line РНМ: 0000000000091776 [09:18:20]line Версия ККМ: 001 [09:18:20]line ФМ: 0000000000871754 [09:18:20]line ФД: 191305 [09:18:20]line ФПД: 246655219961541 [09:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191305&fm=246655219961541&tin=02508201610067®Number=0000000000091776&sum=40000 [09:18:20]OFD Sender: Processing packet 191305 [packets to send 75, broken 74] [09:18:20]ProducePacketName [09:18:20]name=ofd_packets/00191305 [09:18:20]OFD Sender: To server: pG, [09:18:20]CommunicateWithHost lk.salyk.kg:30040 [09:18:20]ConnectInit lk.salyk.kg [09:18:20]written 0, free lines is 4095 [09:18:20]Connected sock=10 [09: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 31 37 35 34 0F 01 00 00 4D C1 07 01 96 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 62 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EB 02 00 35 04 06 00 E0 54 E4 C4 8E C5 75 8A 9A 6C 06 76 41 A9 [09:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 90 47 00 D9 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EB 02 00 F4 03 04 00 31 07 1B 67 B6 04 01 00 00 8D 74 EE D6 84 24 12 92 [09:18:20]CommunicateWithHost err = 0 [09:18:20]CheckOFDResponse [09:18:20]1017 (14) - 77093643461234 [09:18:20]1041 (16) - 0000000000871754 [09:18:20]1040 (4) - 191305 [09:18:20]1012 (4) - 25.10.2024 02:49 [09:18:20]1206 (1) - 0 [09:18:20]OFD Sender: Remove packet 191305 [09:18:20]ProducePacketName [09:18:20]name=ofd_packets/00191305 [09:18:20]NVStorageDeleteData [09:18:20]Write to MH i2c: 01 00 00 82 79 FB [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 82 79 00 00 00 00 00 B3 0C C1 [09:18:20]RasterBufferAndPrint [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]written 0, free lines is 3258 [09:18:20]MH_Cut [09:18:20]Write to MH i2c: D1 01 00 89 79 01 D4 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 01 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 01 00 89 79 00 D3 [09:18:20]Write to MH i2c: 01 00 00 8A 79 03 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:21]OFD Sender: No OFD packet to send [09:18:21]*** Cut start [09:18:21]*** Partial cut [09:18:21]*** CUTSNS_PIN = 1 [09:18:21]*** CUTSNS_PIN = 0 [09:18:22]*** Brake cut motor [09:18:22]Read from MH i2c: 01 [09:18:22]MH_I2C_Read... [09:18:22]*** Stop cut motor [09:18:22]*** Cut end [09:18:22]Read from MH i2c: 01 07 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 8A 79 00 00 00 00 00 FF 0F 18 [09:18:22]process_action close_receipt done [09:18:22]requested_data is exist [09:18:22]produce_requested_data [09:18:22]requested_item fm.sn is exist - process it [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 11 00 00 [09:18:22]Write to MH i2c: E2 08 00 8B 79 80 11 00 00 00 00 00 00 7E [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 17 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 17 00 8B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [09:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:18:22]wFMCommunicate OK [09:18:22]requested_item fd.num is exist - process it [09:18:22]SAM_PROTO_GetFieldsCounters [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 13 00 00 [09:18:22]Write to MH i2c: E2 08 00 8C 79 80 13 00 00 00 00 00 00 81 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 62 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 62 00 8C 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:22]wFMCommunicate OK [09:18:22]SAM_PROTO_GetFieldsCounters done [09:18:22]requested_item shift.num is exist - process it [09:18:22]requested_item shift.opened is exist - process it [09:18:22]req_shift_opened [09:18:22]FM_GetShiftState [09:18:22]SAM_PROTO_GetShiftState [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 13 01 00 [09:18:22]Write to MH i2c: E2 08 00 8D 79 80 13 01 00 00 00 00 00 83 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 0E 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 0E 00 8D 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 46 [09:18:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:18:22]wFMCommunicate OK [09:18:22]SAM_PROTO_GetShiftState done [09:18:22]FM_GetShiftState done [09:18:22]req_shift_opened done [09:18:22]requested_item shift.open_date is exist - process it [09:18:22]req_shift_open_date [09:18:22]req_shift_open_date done [09:18:22]produce_requested_data done [09:18:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191305,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:18:22]process_action_free close_receipt [09:18:22]json_value_free [09:18:22]json_value_free done [09:18:22]process_json_proto returns [09:18:22]Send response to host [09:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191305,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:18:22]free response buf [09:18:22]execute_script done [09:18:22]execute_script returns [09:18:22]free content buf [09:18:22]Sock 8.Close socket [09:18:22]Sock 8.Thread stoped [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:42]accept exits with 9 [09:19:42]New connection [09:19:42]New thread 3066961252 created [09:19:42]Thread 3066817892 joined [09:19:42]Waiting for new connection... [09:19:42] Sock 9.Parse request [09:19:42]Sock 9.Check first char [09:19:42]Sock 9.First char is OK [09:19:42]request: POST /json_proto HTTP/1.0 [09:19:42]Method: POST [09:19:42]URL: /json_proto [09:19:42]Method is POST - this is cgi request [09:19:42]url: /json_proto [09:19:42]query_string will be loaded in cgi processing [09:19:42]execute_cgi json_proto POST (null) [09:19:42]execute_cgi path=json_proto method=POST [09:19:42]POST find Content-Length [09:19:42]Host: 172.17.63.131:8080 [09:19:42]Content-Length: 681 [09:19:42]Content-Type: application/json [09:19:42] [09:19:42]POST finish read [09:19:42]Found Content-Length = 681 [09:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:42]execute_script... [09:19: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)30598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:42]POST & json_proto [09:19:42]process_json_proto [09:19:42]json parsed OK: [09:19:42]protocol is kg_v1.0 [09:19:42]action value=close_receipt [09:19:42]process_action close_receipt [09:19:42]cmd_close_receipt [09:19:42]MH_GetDate [09:19:42]Write to MH i2c: F0 00 00 8E 79 F6 [09:19:42]Write i2c OK [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: F0 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: F0 09 00 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: F0 09 00 8E 79 00 B6 62 1B 67 22 05 6E 64 92 [09:19:42]GetLastDocTimeStamp 1729847906 [09:19:42]current date 1729847990 [09:19:42]FM_GetShiftState [09:19:42]SAM_PROTO_GetShiftState [09:19:42]wFMCommunicate request_size=4 [09:19:42]MH_SAM_APDU [09:19:42]CAPDU: 80 13 01 00 [09:19:42]Write to MH i2c: E2 08 00 8F 79 80 13 01 00 00 00 00 00 85 [09:19:42]Write i2c OK [09:19:42]MH_I2C_Read... [09:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:42]Read from MH i2c: E2 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: E2 0E 00 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: E2 0E 00 8F 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 48 [09:19:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:19:42]wFMCommunicate OK [09:19:42]SAM_PROTO_GetShiftState done [09:19:42]FM_GetShiftState done [09:19:42]opened in 1729816399 [09:19:42]opened+sec_in_day 1729902799 [09:19:42]quantity*price = 100015 [09:19:42]sum+1 = 100017 [09:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 45 25.10.2024 09:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191306 ФПД: 248996238508933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191306&fm=248996238508933&tin=02508201610067®Number=0000000000091776&sum=100000 [09:19:43]StoreToDocumentArchive [09:19:43]shift 540 fd 191306 [09:19:43]save to /storage/0540/doc_00191306 [09:19:43]save last doc name /storage/0540/doc_00191306 to /storage/kkm_last_doc_name [09:19:43]save OK [09:19:43]Clear old archive folders... [09:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:43]tlvbuf is 017E2640 [09:19:43]SAM_PROTO_ClearQueue [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 09 00 00 [09:19:43]Write to MH i2c: E2 08 00 9C 79 80 09 00 00 00 00 00 00 87 [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [09:19:43]RAPDU: 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_ClearQueue done [09:19:43]KKMCreateOFDPacket [09:19:43]OFDProtocolAddRootSTLVToBuf [09:19:43]FM_MakeSignedData [09:19:43]FM_MakeSignedData [09:19:43]SAM_PROTO_SignData [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 0D 01 02 [09:19:43]Write to MH i2c: E2 08 00 9D 79 80 0D 01 02 00 00 00 00 8F [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 9D 79 00 90 00 8A [09:19:43]RAPDU: 90 00 [09:19:43]wFMCommunicate OK [09:19:43]wFMCommunicate request_size=255 [09:19:43]MH_SAM_APDU [09:19: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B6 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EB 02 00 35 04 06 00 E2 [09:19:43]Write to MH i2c: E2 02 01 9E 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B6 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EB 02 00 35 04 06 00 E2 00 00 1B [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 9E 79 00 90 00 8B [09:19:43]RAPDU: 90 00 [09:19:43]wFMCommunicate OK [09:19:43]wFMCommunicate request_size=10 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 0D 02 02 05 75 F4 58 C3 85 [09:19:43]Write to MH i2c: E2 0D 00 9F 79 80 0D 02 02 05 00 75 F4 58 C3 85 00 00 A5 [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 03 00 9F 79 00 90 00 8C [09:19:43]RAPDU: 90 00 [09:19:43]wFMCommunicate OK [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 0D 03 02 [09:19:43]Write to MH i2c: E2 08 00 A0 79 80 0D 03 02 00 00 00 00 94 [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0B 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0B 00 A0 79 00 AA C2 0A 47 99 08 BB FF 90 00 AD [09:19:43]RAPDU: AA C2 0A 47 99 08 BB FF 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_SignData done [09:19:43]FM_MakeSignedData done [09:19:43]CreateOFDProtocolMessage [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 11 00 00 [09:19:43]Write to MH i2c: E2 08 00 A1 79 80 11 00 00 00 00 00 00 94 [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 A1 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [09:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:43]wFMCommunicate OK [09:19:43]CreateOFDProtocolMessage done [09:19:43]OFDSenderStorePacket 191306 [09:19:43]StoreOFDPacket docnum=191306 [09:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A B2 07 01 F2 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B6 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EB 02 00 35 04 06 00 E2 75 F4 58 C3 85 AA C2 0A 47 99 08 BB FF [09:19:43]CheckFolder [09:19:43]dirname=/storage/ofd_packets [09:19:43]CheckFolder done [09:19:43]ProducePacketName [09:19:43]name=ofd_packets/00191306 [09:19:43]NVStorageSaveData ofd_packets/00191306 [09:19:43]File name is /storage/ofd_packets/00191306 [09:19:43]Write 301 bytes [09:19:43]NVStorageSaveData done [09:19:43]OFDSenderStorePacket done [09:19:43]KKMCreateOFDPacket done [09:19:43]NVStorageSaveData kkm_last_timestamp [09:19:43]File name is /storage/kkm_last_timestamp [09:19:43]Write 4 bytes [09:19:43]NVStorageSaveData done [09:19:43]ExternCall_PrintAddStr [09:19:43]wPrintStart [09:19:43]Write to MH i2c: 01 00 00 A2 79 1B [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: 01 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: 01 07 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: 01 07 00 A2 79 00 00 00 00 00 FF 0F 30 [09:19:43]RasterBufferAndPrint [09:19:43]line Счет N : (1)30598 [09:19:43]line ИНН: 02508201610067 [09:19:43]line Контрольно-Кассовый Чек [09:19:43]line ПРОДАЖА [09:19:43]line ТРК (МРК, ГНК) : 21 [09:19:43]line Товар: 2710124130 [09:19:43]line Аи-92-К-5 [09:19:43]line 14.950 * 66.90 [09:19:43]line = 1000.16 [09:19:43]line НДС 12% НСП 1% [09:19:43]line > о реализуемом товаре [09:19:43]line ОКРУГЛЕНИЕ: -0.16 [09:19:43]line ИТОГО: 1000.00 [09:19:43]line Внесено: 1000.00 [09:19:43]line СДАЧА: 0.00 [09:19:43]line НСП 1% : 8.85 [09:19:43]line НДС 12% : 106.21 [09:19:43]line Наличными: 1000.00 [09:19:43]line Безнал.: 0.00 [09:19:43]line Место: АЗС № 170 "Партнер Нефть" [09:19:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:19:43]line СНО: Общий режим [09:19:43]line Чек 45 25.10.2024 09:19 [09:19:43]line Смена: 540 ФФД: 1.0 [09:19:43]line ЗНМ: 0300000110 [09:19:43]line РНМ: 0000000000091776 [09:19:43]line Версия ККМ: 001 [09:19:43]line ФМ: 0000000000871754 [09:19:43]line ФД: 191306 [09:19:43]line ФПД: 248996238508933 [09:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191306&fm=248996238508933&tin=02508201610067®Number=0000000000091776&sum=100000 [09:19:44]OFD Sender: Processing packet 191306 [packets to send 75, broken 74] [09:19:44]ProducePacketName [09:19:44]name=ofd_packets/00191306 [09:19:44]OFD Sender: To server: pG, [09:19:44]CommunicateWithHost lk.salyk.kg:30040 [09:19:44]ConnectInit lk.salyk.kg [09:19:44]written 0, free lines is 4095 [09:19:44]Connected sock=10 [09:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A B2 07 01 F2 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B6 62 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EB 02 00 35 04 06 00 E2 75 F4 58 C3 85 AA C2 0A 47 99 08 BB FF [09:19:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8D DC 47 00 32 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EB 02 00 F4 03 04 00 85 07 1B 67 B6 04 01 00 00 6D 80 44 D1 32 A8 3D D0 [09:19:44]CommunicateWithHost err = 0 [09:19:44]CheckOFDResponse [09:19:44]1017 (14) - 77093643461234 [09:19:44]1041 (16) - 0000000000871754 [09:19:44]1040 (4) - 191306 [09:19:44]1012 (4) - 25.10.2024 02:50 [09:19:44]1206 (1) - 0 [09:19:44]OFD Sender: Remove packet 191306 [09:19:44]ProducePacketName [09:19:44]name=ofd_packets/00191306 [09:19:44]NVStorageDeleteData [09:19:44]Write to MH i2c: 01 00 00 CD 79 46 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 07 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 07 00 CD 79 00 00 00 00 00 B6 0C 0F [09:19:44]RasterBufferAndPrint [09:19:44]line [09:19:44]line [09:19:44]line [09:19:44]line [09:19:44]line [09:19:44]written 0, free lines is 3260 [09:19:44]MH_Cut [09:19:44]Write to MH i2c: D1 01 00 D4 79 01 1F [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: D1 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: D1 01 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: D1 01 00 D4 79 00 1E [09:19:44]Write to MH i2c: 01 00 00 D5 79 4E [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]OFD Sender: No OFD packet to send [09:19:45]*** Cut start [09:19:45]*** Partial cut [09:19:45]*** CUTSNS_PIN = 1 [09:19:45]*** CUTSNS_PIN = 0 [09:19:45]*** Brake cut motor [09:19:46]Read from MH i2c: 01 [09:19:46]MH_I2C_Read... [09:19:46]*** Stop cut motor [09:19:46]*** Cut end [09:19:46]Read from MH i2c: 01 07 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 07 00 D5 79 00 00 00 00 00 FF 0F 63 [09:19:46]process_action close_receipt done [09:19:46]requested_data is exist [09:19:46]produce_requested_data [09:19:46]requested_item fm.sn is exist - process it [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 11 00 00 [09:19:46]Write to MH i2c: E2 08 00 D6 79 80 11 00 00 00 00 00 00 C9 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 17 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 17 00 D6 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [09:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:46]wFMCommunicate OK [09:19:46]requested_item fd.num is exist - process it [09:19:46]SAM_PROTO_GetFieldsCounters [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 13 00 00 [09:19:46]Write to MH i2c: E2 08 00 D7 79 80 13 00 00 00 00 00 00 CC [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 62 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 62 00 D7 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:46]wFMCommunicate OK [09:19:46]SAM_PROTO_GetFieldsCounters done [09:19:46]requested_item shift.num is exist - process it [09:19:46]requested_item shift.opened is exist - process it [09:19:46]req_shift_opened [09:19:46]FM_GetShiftState [09:19:46]SAM_PROTO_GetShiftState [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 13 01 00 [09:19:46]Write to MH i2c: E2 08 00 D8 79 80 13 01 00 00 00 00 00 CE [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 0E 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 0E 00 D8 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 91 [09:19:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:19:46]wFMCommunicate OK [09:19:46]SAM_PROTO_GetShiftState done [09:19:46]FM_GetShiftState done [09:19:46]req_shift_opened done [09:19:46]requested_item shift.open_date is exist - process it [09:19:46]req_shift_open_date [09:19:46]req_shift_open_date done [09:19:46]produce_requested_data done [09:19:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191306,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:19:46]process_action_free close_receipt [09:19:46]json_value_free [09:19:46]json_value_free done [09:19:46]process_json_proto returns [09:19:46]Send response to host [09:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191306,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:19:46]free response buf [09:19:46]execute_script done [09:19:46]execute_script returns [09:19:46]free content buf [09:19:46]Sock 9.Close socket [09:19:46]Sock 9.Thread stoped [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:27]accept exits with 8 [09:26:27]New connection [09:26:27]New thread 3066817892 created [09:26:27]Thread 3066961252 joined [09:26:27]Waiting for new connection... [09:26:27] Sock 8.Parse request [09:26:27]Sock 8.Check first char [09:26:27]Sock 8.First char is OK [09:26:27]request: POST /json_proto HTTP/1.0 [09:26:27]Method: POST [09:26:27]URL: /json_proto [09:26:27]Method is POST - this is cgi request [09:26:27]url: /json_proto [09:26:27]query_string will be loaded in cgi processing [09:26:27]execute_cgi json_proto POST (null) [09:26:27]execute_cgi path=json_proto method=POST [09:26:27]POST find Content-Length [09:26:27]Host: 172.17.63.131:8080 [09:26:27]Content-Length: 676 [09:26:27]Content-Type: application/json [09:26:27] [09:26:27]POST finish read [09:26:27]Found Content-Length = 676 [09:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:27]execute_script... [09:26: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)30599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:27]POST & json_proto [09:26:27]process_json_proto [09:26:27]json parsed OK: [09:26:27]protocol is kg_v1.0 [09:26:27]action value=close_receipt [09:26:27]process_action close_receipt [09:26:27]cmd_close_receipt [09:26:27]MH_GetDate [09:26:27]Write to MH i2c: F0 00 00 D9 79 41 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 D9 79 00 4B 64 1B 67 22 05 6E 64 74 [09:26:27]GetLastDocTimeStamp 1729847990 [09:26:27]current date 1729848395 [09:26:27]FM_GetShiftState [09:26:27]SAM_PROTO_GetShiftState [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 13 01 00 [09:26:27]Write to MH i2c: E2 08 00 DA 79 80 13 01 00 00 00 00 00 D0 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 DA 79 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 93 [09:26:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:26:27]wFMCommunicate OK [09:26:27]SAM_PROTO_GetShiftState done [09:26:27]FM_GetShiftState done [09:26:27]opened in 1729816399 [09:26:27]opened+sec_in_day 1729902799 [09:26:27]quantity*price = 40006 [09:26:27]sum+1 = 40007 [09:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 46 25.10.2024 09:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191307 ФПД: 60267107123818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191307&fm=60267107123818&tin=02508201610067®Number=0000000000091776&sum=40000 [09:26:28]StoreToDocumentArchive [09:26:28]shift 540 fd 191307 [09:26:28]save to /storage/0540/doc_00191307 [09:26:28]save last doc name /storage/0540/doc_00191307 to /storage/kkm_last_doc_name [09:26:28]save OK [09:26:28]Clear old archive folders... [09:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:28]tlvbuf is B6EDC4A0 [09:26:28]SAM_PROTO_ClearQueue [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 09 00 00 [09:26:28]Write to MH i2c: E2 08 00 E7 79 80 09 00 00 00 00 00 00 D2 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 E7 79 00 90 00 D4 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_ClearQueue done [09:26:28]KKMCreateOFDPacket [09:26:28]OFDProtocolAddRootSTLVToBuf [09:26:28]FM_MakeSignedData [09:26:28]FM_MakeSignedData [09:26:28]SAM_PROTO_SignData [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 01 02 [09:26:28]Write to MH i2c: E2 08 00 E8 79 80 0D 01 02 00 00 00 00 DA [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 E8 79 00 90 00 D5 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]wFMCommunicate request_size=255 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EB 02 00 35 04 06 00 36 [09:26:28]Write to MH i2c: E2 02 01 E9 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EB 02 00 35 04 06 00 36 00 00 28 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 E9 79 00 90 00 D6 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]wFMCommunicate request_size=10 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 02 02 05 D0 07 83 02 6A [09:26:28]Write to MH i2c: E2 0D 00 EA 79 80 0D 02 02 05 00 D0 07 83 02 6A 00 00 AD [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 EA 79 00 90 00 D7 [09:26:29]RAPDU: 90 00 [09:26:29]wFMCommunicate OK [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 0D 03 02 [09:26:29]Write to MH i2c: E2 08 00 EB 79 80 0D 03 02 00 00 00 00 DF [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 EB 79 00 EC 40 C0 AF E3 95 52 F8 90 00 3D [09:26:29]RAPDU: EC 40 C0 AF E3 95 52 F8 90 00 [09:26:29]wFMCommunicate OK [09:26:29]SAM_PROTO_SignData done [09:26:29]FM_MakeSignedData done [09:26:29]CreateOFDProtocolMessage [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 11 00 00 [09:26:29]Write to MH i2c: E2 08 00 EC 79 80 11 00 00 00 00 00 00 DF [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 EC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [09:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:29]wFMCommunicate OK [09:26:29]CreateOFDProtocolMessage done [09:26:29]OFDSenderStorePacket 191307 [09:26:29]StoreOFDPacket docnum=191307 [09:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 2A 07 01 18 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EB 02 00 35 04 06 00 36 D0 07 83 02 6A EC 40 C0 AF E3 95 52 F8 [09:26:29]CheckFolder [09:26:29]dirname=/storage/ofd_packets [09:26:29]CheckFolder done [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00191307 [09:26:29]NVStorageSaveData ofd_packets/00191307 [09:26:29]File name is /storage/ofd_packets/00191307 [09:26:29]Write 301 bytes [09:26:29]NVStorageSaveData done [09:26:29]OFDSenderStorePacket done [09:26:29]KKMCreateOFDPacket done [09:26:29]NVStorageSaveData kkm_last_timestamp [09:26:29]File name is /storage/kkm_last_timestamp [09:26:29]Write 4 bytes [09:26:29]NVStorageSaveData done [09:26:29]ExternCall_PrintAddStr [09:26:29]wPrintStart [09:26:29]Write to MH i2c: 01 00 00 ED 79 66 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 ED 79 00 00 00 00 00 FF 0F 7B [09:26:29]RasterBufferAndPrint [09:26:29]line Счет N : (1)30599 [09:26:29]line ИНН: 02508201610067 [09:26:29]line Контрольно-Кассовый Чек [09:26:29]line ПРОДАЖА [09:26:29]line ТРК (МРК, ГНК) : 12 [09:26:29]line Товар: 2710124130 [09:26:29]line Аи-92-К-5 [09:26:29]line 5.980 * 66.90 [09:26:29]line = 400.06 [09:26:29]line НДС 12% НСП 1% [09:26:29]line > о реализуемом товаре [09:26:29]line ОКРУГЛЕНИЕ: -0.06 [09:26:29]line ИТОГО: 400.00 [09:26:29]line Внесено: 400.00 [09:26:29]line СДАЧА: 0.00 [09:26:29]line НСП 1% : 3.54 [09:26:29]line НДС 12% : 42.48 [09:26:29]line Наличными: 400.00 [09:26:29]line Безнал.: 0.00 [09:26:29]line Место: АЗС № 170 "Партнер Нефть" [09:26:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:26:29]line СНО: Общий режим [09:26:29]line Чек 46 25.10.2024 09:26 [09:26:29]line Смена: 540 ФФД: 1.0 [09:26:29]line ЗНМ: 0300000110 [09:26:29]line РНМ: 0000000000091776 [09:26:29]line Версия ККМ: 001 [09:26:29]line ФМ: 0000000000871754 [09:26:29]line ФД: 191307 [09:26:29]line ФПД: 60267107123818 [09:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191307&fm=60267107123818&tin=02508201610067®Number=0000000000091776&sum=40000 [09:26:29]OFD Sender: Processing packet 191307 [packets to send 75, broken 74] [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00191307 [09:26:29]OFD Sender: To server: pG, [09:26:29]CommunicateWithHost lk.salyk.kg:30040 [09:26:29]ConnectInit lk.salyk.kg [09:26:29]written 0, free lines is 4095 [09:26:29]Connected sock=10 [09:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 2A 07 01 18 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4B 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EB 02 00 35 04 06 00 36 D0 07 83 02 6A EC 40 C0 AF E3 95 52 F8 [09:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F 62 47 00 2C D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EB 02 00 F4 03 04 00 1A 09 1B 67 B6 04 01 00 00 DE 42 1E EE D6 79 29 2B [09:26:29]CommunicateWithHost err = 0 [09:26:29]CheckOFDResponse [09:26:29]1017 (14) - 77093643461234 [09:26:29]1041 (16) - 0000000000871754 [09:26:29]1040 (4) - 191307 [09:26:29]1012 (4) - 25.10.2024 02:57 [09:26:29]1206 (1) - 0 [09:26:29]OFD Sender: Remove packet 191307 [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00191307 [09:26:29]NVStorageDeleteData [09:26:29]Write to MH i2c: 01 00 00 18 7A 92 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 18 7A 00 00 00 00 00 B5 0C 5A [09:26:29]RasterBufferAndPrint [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]written 0, free lines is 3264 [09:26:29]MH_Cut [09:26:29]Write to MH i2c: D1 01 00 1F 7A 01 6B [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 01 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 01 00 1F 7A 00 6A [09:26:29]Write to MH i2c: 01 00 00 20 7A 9A [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:30]OFD Sender: No OFD packet to send [09:26:30]*** Cut start [09:26:30]*** Partial cut [09:26:30]*** CUTSNS_PIN = 1 [09:26:30]*** CUTSNS_PIN = 0 [09:26:31]*** Brake cut motor [09:26:31]Read from MH i2c: 01 [09:26:31]MH_I2C_Read... [09:26:31]*** Stop cut motor [09:26:31]*** Cut end [09:26:31]Read from MH i2c: 01 07 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: 01 07 00 20 7A 00 00 00 00 00 FF 0F AF [09:26:31]process_action close_receipt done [09:26:31]requested_data is exist [09:26:31]produce_requested_data [09:26:31]requested_item fm.sn is exist - process it [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 11 00 00 [09:26:31]Write to MH i2c: E2 08 00 21 7A 80 11 00 00 00 00 00 00 15 [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 21 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [09:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:31]wFMCommunicate OK [09:26:31]requested_item fd.num is exist - process it [09:26:31]SAM_PROTO_GetFieldsCounters [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 13 00 00 [09:26:31]Write to MH i2c: E2 08 00 22 7A 80 13 00 00 00 00 00 00 18 [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 62 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 62 00 22 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:31]wFMCommunicate OK [09:26:31]SAM_PROTO_GetFieldsCounters done [09:26:31]requested_item shift.num is exist - process it [09:26:31]requested_item shift.opened is exist - process it [09:26:31]req_shift_opened [09:26:31]FM_GetShiftState [09:26:31]SAM_PROTO_GetShiftState [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 13 01 00 [09:26:31]Write to MH i2c: E2 08 00 23 7A 80 13 01 00 00 00 00 00 1A [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 0E 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 0E 00 23 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DD [09:26:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:26:31]wFMCommunicate OK [09:26:31]SAM_PROTO_GetShiftState done [09:26:31]FM_GetShiftState done [09:26:31]req_shift_opened done [09:26:31]requested_item shift.open_date is exist - process it [09:26:31]req_shift_open_date [09:26:31]req_shift_open_date done [09:26:31]produce_requested_data done [09:26:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191307,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:26:31]process_action_free close_receipt [09:26:31]json_value_free [09:26:31]json_value_free done [09:26:31]process_json_proto returns [09:26:31]Send response to host [09:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191307,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:26:31]free response buf [09:26:31]execute_script done [09:26:31]execute_script returns [09:26:31]free content buf [09:26:31]Sock 8.Close socket [09:26:31]Sock 8.Thread stoped [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:26:55]accept exits with 9 [09:26:55]New connection [09:26:55]New thread 3066961252 created [09:26:55]Thread 3066817892 joined [09:26:55]Waiting for new connection... [09:26:55] Sock 9.Parse request [09:26:55]Sock 9.Check first char [09:26:55]Sock 9.First char is OK [09:26:55]request: POST /json_proto HTTP/1.0 [09:26:55]Method: POST [09:26:55]URL: /json_proto [09:26:55]Method is POST - this is cgi request [09:26:55]url: /json_proto [09:26:55]query_string will be loaded in cgi processing [09:26:55]execute_cgi json_proto POST (null) [09:26:55]execute_cgi path=json_proto method=POST [09:26:55]POST find Content-Length [09:26:55]Host: 172.17.63.131:8080 [09:26:55]Content-Length: 676 [09:26:55]Content-Type: application/json [09:26:55] [09:26:55]POST finish read [09:26:55]Found Content-Length = 676 [09:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:55]execute_script... [09:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:55]POST & json_proto [09:26:55]process_json_proto [09:26:55]json parsed OK: [09:26:55]protocol is kg_v1.0 [09:26:55]action value=close_receipt [09:26:55]process_action close_receipt [09:26:55]cmd_close_receipt [09:26:55]MH_GetDate [09:26:55]Write to MH i2c: F0 00 00 24 7A 8D [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 09 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 09 00 24 7A 00 67 64 1B 67 22 05 6E 64 DC [09:26:55]GetLastDocTimeStamp 1729848395 [09:26:55]current date 1729848423 [09:26:55]FM_GetShiftState [09:26:55]SAM_PROTO_GetShiftState [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 01 00 [09:26:55]Write to MH i2c: E2 08 00 25 7A 80 13 01 00 00 00 00 00 1C [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 25 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DF [09:26:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetShiftState done [09:26:55]FM_GetShiftState done [09:26:55]opened in 1729816399 [09:26:55]opened+sec_in_day 1729902799 [09:26:55]quantity*price = 30038 [09:26:55]sum+1 = 30039 [09:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 47 25.10.2024 09:27 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191308 ФПД: 126274871253188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191308&fm=126274871253188&tin=02508201610067®Number=0000000000091776&sum=30000 [09:26:56]StoreToDocumentArchive [09:26:56]shift 540 fd 191308 [09:26:56]save to /storage/0540/doc_00191308 [09:26:56]save last doc name /storage/0540/doc_00191308 to /storage/kkm_last_doc_name [09:26:56]save OK [09:26:56]Clear old archive folders... [09:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:56]tlvbuf is 017068B0 [09:26:56]SAM_PROTO_ClearQueue [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 09 00 00 [09:26:56]Write to MH i2c: E2 08 00 32 7A 80 09 00 00 00 00 00 00 1E [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [09:26:56]RAPDU: 90 00 [09:26:56]wFMCommunicate OK [09:26:56]SAM_PROTO_ClearQueue done [09:26:56]KKMCreateOFDPacket [09:26:56]OFDProtocolAddRootSTLVToBuf [09:26:56]FM_MakeSignedData [09:26:56]FM_MakeSignedData [09:26:56]SAM_PROTO_SignData [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 0D 01 02 [09:26:56]Write to MH i2c: E2 08 00 33 7A 80 0D 01 02 00 00 00 00 26 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 33 7A 00 90 00 21 [09:26:56]RAPDU: 90 00 [09:26:56]wFMCommunicate OK [09:26:56]wFMCommunicate request_size=255 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 67 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EB 02 00 35 04 06 00 72 [09:26:56]Write to MH i2c: E2 02 01 34 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 67 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EB 02 00 35 04 06 00 72 00 00 F3 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 34 7A 00 90 00 22 [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]wFMCommunicate request_size=10 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 02 02 05 D8 A8 D8 58 C4 [09:26:57]Write to MH i2c: E2 0D 00 35 7A 80 0D 02 02 05 00 D8 A8 D8 58 C4 00 00 A7 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 35 7A 00 90 00 23 [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 03 02 [09:26:57]Write to MH i2c: E2 08 00 36 7A 80 0D 03 02 00 00 00 00 2B [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 0B 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 0B 00 36 7A 00 E8 A0 2C 14 06 3F 7C 35 90 00 EA [09:26:57]RAPDU: E8 A0 2C 14 06 3F 7C 35 90 00 [09:26:57]wFMCommunicate OK [09:26:57]SAM_PROTO_SignData done [09:26:57]FM_MakeSignedData done [09:26:57]CreateOFDProtocolMessage [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 11 00 00 [09:26:57]Write to MH i2c: E2 08 00 37 7A 80 11 00 00 00 00 00 00 2B [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 37 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [09:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:57]wFMCommunicate OK [09:26:57]CreateOFDProtocolMessage done [09:26:57]OFDSenderStorePacket 191308 [09:26:57]StoreOFDPacket docnum=191308 [09:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 C2 07 01 6B 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 67 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EB 02 00 35 04 06 00 72 D8 A8 D8 58 C4 E8 A0 2C 14 06 3F 7C 35 [09:26:57]CheckFolder [09:26:57]dirname=/storage/ofd_packets [09:26:57]CheckFolder done [09:26:57]ProducePacketName [09:26:57]name=ofd_packets/00191308 [09:26:57]NVStorageSaveData ofd_packets/00191308 [09:26:57]File name is /storage/ofd_packets/00191308 [09:26:57]Write 301 bytes [09:26:57]NVStorageSaveData done [09:26:57]OFDSenderStorePacket done [09:26:57]KKMCreateOFDPacket done [09:26:57]NVStorageSaveData kkm_last_timestamp [09:26:57]File name is /storage/kkm_last_timestamp [09:26:57]Write 4 bytes [09:26:57]NVStorageSaveData done [09:26:57]ExternCall_PrintAddStr [09:26:57]wPrintStart [09:26:57]Write to MH i2c: 01 00 00 38 7A B2 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 07 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 07 00 38 7A 00 00 00 00 00 FF 0F C7 [09:26:57]RasterBufferAndPrint [09:26:57]line Счет N : (1)30600 [09:26:57]line ИНН: 02508201610067 [09:26:57]line Контрольно-Кассовый Чек [09:26:57]line ПРОДАЖА [09:26:57]line ТРК (МРК, ГНК) : 12 [09:26:57]line Товар: 2710124130 [09:26:57]line Аи-92-К-5 [09:26:57]line 4.490 * 66.90 [09:26:57]line = 300.38 [09:26:57]line НДС 12% НСП 1% [09:26:57]line > о реализуемом товаре [09:26:57]line ОКРУГЛЕНИЕ: -0.38 [09:26:57]line ИТОГО: 300.00 [09:26:57]line Внесено: 300.00 [09:26:57]line СДАЧА: 0.00 [09:26:57]line НСП 1% : 2.66 [09:26:57]line НДС 12% : 31.90 [09:26:57]line Наличными: 300.00 [09:26:57]line Безнал.: 0.00 [09:26:57]line Место: АЗС № 170 "Партнер Нефть" [09:26:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:26:57]line СНО: Общий режим [09:26:57]line Чек 47 25.10.2024 09:27 [09:26:57]line Смена: 540 ФФД: 1.0 [09:26:57]line ЗНМ: 0300000110 [09:26:57]line РНМ: 0000000000091776 [09:26:57]line Версия ККМ: 001 [09:26:57]line ФМ: 0000000000871754 [09:26:57]line ФД: 191308 [09:26:57]line ФПД: 126274871253188 [09:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191308&fm=126274871253188&tin=02508201610067®Number=0000000000091776&sum=30000 [09:26:57]OFD Sender: Processing packet 191308 [packets to send 75, broken 74] [09:26:57]ProducePacketName [09:26:57]name=ofd_packets/00191308 [09:26:57]OFD Sender: To server: pG, [09:26:57]CommunicateWithHost lk.salyk.kg:30040 [09:26:57]ConnectInit lk.salyk.kg [09:26:57]written 0, free lines is 4095 [09:26:57]Connected sock=10 [09:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 C2 07 01 6B 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 67 64 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EB 02 00 35 04 06 00 72 D8 A8 D8 58 C4 E8 A0 2C 14 06 3F 7C 35 [09:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 97 47 00 12 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EB 02 00 F4 03 04 00 36 09 1B 67 B6 04 01 00 00 55 94 96 C0 4A 2E 89 DB [09:26:57]CommunicateWithHost err = 0 [09:26:57]CheckOFDResponse [09:26:57]1017 (14) - 77093643461234 [09:26:57]1041 (16) - 0000000000871754 [09:26:57]1040 (4) - 191308 [09:26:57]1012 (4) - 25.10.2024 02:57 [09:26:57]1206 (1) - 0 [09:26:57]OFD Sender: Remove packet 191308 [09:26:57]ProducePacketName [09:26:57]name=ofd_packets/00191308 [09:26:57]NVStorageDeleteData [09:26:58]Write to MH i2c: 01 00 00 63 7A DD [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 63 7A 00 00 00 00 00 B8 0C A8 [09:26:58]RasterBufferAndPrint [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]written 0, free lines is 3267 [09:26:58]MH_Cut [09:26:58]Write to MH i2c: D1 01 00 6A 7A 01 B6 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 6A 7A 00 B5 [09:26:58]Write to MH i2c: 01 00 00 6B 7A E5 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]OFD Sender: No OFD packet to send [09:26:58]*** Cut start [09:26:58]*** Partial cut [09:26:58]*** CUTSNS_PIN = 1 [09:26:58]*** CUTSNS_PIN = 0 [09:26:59]*** Brake cut motor [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]*** Stop cut motor [09:26:59]*** Cut end [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 6B 7A 00 00 00 00 00 FF 0F FA [09:26:59]process_action close_receipt done [09:26:59]requested_data is exist [09:26:59]produce_requested_data [09:26:59]requested_item fm.sn is exist - process it [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 11 00 00 [09:26:59]Write to MH i2c: E2 08 00 6C 7A 80 11 00 00 00 00 00 00 60 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 17 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 17 00 6C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [09:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:59]wFMCommunicate OK [09:26:59]requested_item fd.num is exist - process it [09:26:59]SAM_PROTO_GetFieldsCounters [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 13 00 00 [09:26:59]Write to MH i2c: E2 08 00 6D 7A 80 13 00 00 00 00 00 00 63 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 62 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 62 00 6D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [09:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:59]wFMCommunicate OK [09:26:59]SAM_PROTO_GetFieldsCounters done [09:26:59]requested_item shift.num is exist - process it [09:26:59]requested_item shift.opened is exist - process it [09:26:59]req_shift_opened [09:26:59]FM_GetShiftState [09:26:59]SAM_PROTO_GetShiftState [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 13 01 00 [09:26:59]Write to MH i2c: E2 08 00 6E 7A 80 13 01 00 00 00 00 00 65 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 6E 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 28 [09:26:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:26:59]wFMCommunicate OK [09:26:59]SAM_PROTO_GetShiftState done [09:26:59]FM_GetShiftState done [09:26:59]req_shift_opened done [09:26:59]requested_item shift.open_date is exist - process it [09:26:59]req_shift_open_date [09:26:59]req_shift_open_date done [09:26:59]produce_requested_data done [09:26:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191308,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:26:59]process_action_free close_receipt [09:26:59]json_value_free [09:26:59]json_value_free done [09:26:59]process_json_proto returns [09:26:59]Send response to host [09:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191308,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:26:59]free response buf [09:26:59]execute_script done [09:26:59]execute_script returns [09:26:59]free content buf [09:26:59]Sock 9.Close socket [09:26:59]Sock 9.Thread stoped [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [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:01]accept exits with 8 [09:33:01]New connection [09:33:01]New thread 3066817892 created [09:33:01]Thread 3066961252 joined [09:33:01]Waiting for new connection... [09:33:01] Sock 8.Parse request [09:33:01]Sock 8.Check first char [09:33:01]Sock 8.First char is OK [09:33:01]request: POST /json_proto HTTP/1.0 [09:33:01]Method: POST [09:33:01]URL: /json_proto [09:33:01]Method is POST - this is cgi request [09:33:01]url: /json_proto [09:33:01]query_string will be loaded in cgi processing [09:33:01]execute_cgi json_proto POST (null) [09:33:01]execute_cgi path=json_proto method=POST [09:33:01]POST find Content-Length [09:33:01]Host: 172.17.63.131:8080 [09:33:01]Content-Length: 676 [09:33:01]Content-Type: application/json [09:33:01] [09:33:01]POST finish read [09:33:01]Found Content-Length = 676 [09:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:01]execute_script... [09:33: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)30601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:01]POST & json_proto [09:33:01]process_json_proto [09:33:01]json parsed OK: [09:33:01]protocol is kg_v1.0 [09:33:01]action value=close_receipt [09:33:01]process_action close_receipt [09:33:01]cmd_close_receipt [09:33:01]MH_GetDate [09:33:01]Write to MH i2c: F0 00 00 6F 7A D8 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: F0 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: F0 09 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: F0 09 00 6F 7A 00 D5 65 1B 67 22 05 6E 64 96 [09:33:01]GetLastDocTimeStamp 1729848423 [09:33:01]current date 1729848789 [09:33:01]FM_GetShiftState [09:33:01]SAM_PROTO_GetShiftState [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 13 01 00 [09:33:01]Write to MH i2c: E2 08 00 70 7A 80 13 01 00 00 00 00 00 67 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 70 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2A [09:33:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_GetShiftState done [09:33:01]FM_GetShiftState done [09:33:01]opened in 1729816399 [09:33:01]opened+sec_in_day 1729902799 [09:33:01]quantity*price = 22010 [09:33:01]sum+1 = 22011 [09:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 48 25.10.2024 09:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191309 ФПД: 94217515503784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191309&fm=94217515503784&tin=02508201610067®Number=0000000000091776&sum=22000 [09:33:02]StoreToDocumentArchive [09:33:02]shift 540 fd 191309 [09:33:02]save to /storage/0540/doc_00191309 [09:33:02]save last doc name /storage/0540/doc_00191309 to /storage/kkm_last_doc_name [09:33:02]save OK [09:33:02]Clear old archive folders... [09:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:02]tlvbuf is 0183C3A0 [09:33:02]SAM_PROTO_ClearQueue [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 09 00 00 [09:33:02]Write to MH i2c: E2 08 00 7D 7A 80 09 00 00 00 00 00 00 69 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 7D 7A 00 90 00 6B [09:33:02]RAPDU: 90 00 [09:33:02]wFMCommunicate OK [09:33:02]SAM_PROTO_ClearQueue done [09:33:02]KKMCreateOFDPacket [09:33:02]OFDProtocolAddRootSTLVToBuf [09:33:02]FM_MakeSignedData [09:33:02]FM_MakeSignedData [09:33:02]SAM_PROTO_SignData [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 0D 01 02 [09:33:02]Write to MH i2c: E2 08 00 7E 7A 80 0D 01 02 00 00 00 00 71 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 7E 7A 00 90 00 6C [09:33:02]RAPDU: 90 00 [09:33:02]wFMCommunicate OK [09:33:02]wFMCommunicate request_size=255 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EB 02 00 35 04 06 00 55 [09:33:02]Write to MH i2c: E2 02 01 7F 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EB 02 00 35 04 06 00 55 00 00 01 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 7F 7A 00 90 00 6D [09:33:02]RAPDU: 90 00 [09:33:02]wFMCommunicate OK [09:33:02]wFMCommunicate request_size=10 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 0D 02 02 05 B0 B9 8B 10 A8 [09:33:02]Write to MH i2c: E2 0D 00 80 7A 80 0D 02 02 05 00 B0 B9 8B 10 A8 00 00 2A [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 03 00 80 7A 00 90 00 6E [09:33:02]RAPDU: 90 00 [09:33:02]wFMCommunicate OK [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 0D 03 02 [09:33:02]Write to MH i2c: E2 08 00 81 7A 80 0D 03 02 00 00 00 00 76 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 0B 00 [09:33:02]MH_I2C_Read... [09:33:03]Read from MH i2c: E2 0B 00 81 7A 00 5A 42 26 0B 25 00 FF 38 90 00 A0 [09:33:03]RAPDU: 5A 42 26 0B 25 00 FF 38 90 00 [09:33:03]wFMCommunicate OK [09:33:03]SAM_PROTO_SignData done [09:33:03]FM_MakeSignedData done [09:33:03]CreateOFDProtocolMessage [09:33:03]wFMCommunicate request_size=4 [09:33:03]MH_SAM_APDU [09:33:03]CAPDU: 80 11 00 00 [09:33:03]Write to MH i2c: E2 08 00 82 7A 80 11 00 00 00 00 00 00 76 [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:03]Read from MH i2c: E2 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: E2 17 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: E2 17 00 82 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [09:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:03]wFMCommunicate OK [09:33:03]CreateOFDProtocolMessage done [09:33:03]OFDSenderStorePacket 191309 [09:33:03]StoreOFDPacket docnum=191309 [09:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 77 07 01 74 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EB 02 00 35 04 06 00 55 B0 B9 8B 10 A8 5A 42 26 0B 25 00 FF 38 [09:33:03]CheckFolder [09:33:03]dirname=/storage/ofd_packets [09:33:03]CheckFolder done [09:33:03]ProducePacketName [09:33:03]name=ofd_packets/00191309 [09:33:03]NVStorageSaveData ofd_packets/00191309 [09:33:03]File name is /storage/ofd_packets/00191309 [09:33:03]Write 301 bytes [09:33:03]NVStorageSaveData done [09:33:03]OFDSenderStorePacket done [09:33:03]KKMCreateOFDPacket done [09:33:03]NVStorageSaveData kkm_last_timestamp [09:33:03]File name is /storage/kkm_last_timestamp [09:33:03]Write 4 bytes [09:33:03]NVStorageSaveData done [09:33:03]ExternCall_PrintAddStr [09:33:03]wPrintStart [09:33:03]Write to MH i2c: 01 00 00 83 7A FD [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 07 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 07 00 83 7A 00 00 00 00 00 FF 0F 12 [09:33:03]RasterBufferAndPrint [09:33:03]line Счет N : (1)30601 [09:33:03]line ИНН: 02508201610067 [09:33:03]line Контрольно-Кассовый Чек [09:33:03]line ПРОДАЖА [09:33:03]line ТРК (МРК, ГНК) : 21 [09:33:03]line Товар: 2710124130 [09:33:03]line Аи-92-К-5 [09:33:03]line 3.290 * 66.90 [09:33:03]line = 220.10 [09:33:03]line НДС 12% НСП 1% [09:33:03]line > о реализуемом товаре [09:33:03]line ОКРУГЛЕНИЕ: -0.10 [09:33:03]line ИТОГО: 220.00 [09:33:03]line Внесено: 220.00 [09:33:03]line СДАЧА: 0.00 [09:33:03]line НСП 1% : 1.95 [09:33:03]line НДС 12% : 23.37 [09:33:03]line Наличными: 220.00 [09:33:03]line Безнал.: 0.00 [09:33:03]line Место: АЗС № 170 "Партнер Нефть" [09:33:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:33:03]line СНО: Общий режим [09:33:03]line Чек 48 25.10.2024 09:33 [09:33:03]line Смена: 540 ФФД: 1.0 [09:33:03]line ЗНМ: 0300000110 [09:33:03]line РНМ: 0000000000091776 [09:33:03]line Версия ККМ: 001 [09:33:03]line ФМ: 0000000000871754 [09:33:03]line ФД: 191309 [09:33:03]line ФПД: 94217515503784 [09:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191309&fm=94217515503784&tin=02508201610067®Number=0000000000091776&sum=22000 [09:33:03]OFD Sender: Processing packet 191309 [packets to send 75, broken 74] [09:33:03]ProducePacketName [09:33:03]name=ofd_packets/00191309 [09:33:03]OFD Sender: To server: pG, [09:33:03]CommunicateWithHost lk.salyk.kg:30040 [09:33:03]ConnectInit lk.salyk.kg [09:33:03]written 0, free lines is 4095 [09:33:03]Connected sock=10 [09:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 77 07 01 74 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EB 02 00 35 04 06 00 55 B0 B9 8B 10 A8 5A 42 26 0B 25 00 FF 38 [09:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 4E 47 00 71 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EB 02 00 F4 03 04 00 A4 0A 1B 67 B6 04 01 00 00 70 72 DD 68 89 B9 04 5A [09:33:03]CommunicateWithHost err = 0 [09:33:03]CheckOFDResponse [09:33:03]1017 (14) - 77093643461234 [09:33:03]1041 (16) - 0000000000871754 [09:33:03]1040 (4) - 191309 [09:33:03]1012 (4) - 25.10.2024 03:04 [09:33:03]1206 (1) - 0 [09:33:03]OFD Sender: Remove packet 191309 [09:33:03]ProducePacketName [09:33:03]name=ofd_packets/00191309 [09:33:03]NVStorageDeleteData [09:33:03]Write to MH i2c: 01 00 00 AE 7A 28 [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 07 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: 01 07 00 AE 7A 00 00 00 00 00 AA 0C E5 [09:33:03]RasterBufferAndPrint [09:33:03]line [09:33:03]line [09:33:03]line [09:33:03]line [09:33:03]line [09:33:03]written 0, free lines is 3251 [09:33:03]MH_Cut [09:33:03]Write to MH i2c: D1 01 00 B5 7A 01 01 [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: D1 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: D1 01 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: D1 01 00 B5 7A 00 00 [09:33:03]Write to MH i2c: 01 00 00 B6 7A 30 [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:04]OFD Sender: No OFD packet to send [09:33:04]*** Cut start [09:33:04]*** Partial cut [09:33:04]*** CUTSNS_PIN = 1 [09:33:04]*** CUTSNS_PIN = 0 [09:33:05]*** Brake cut motor [09:33:05]Read from MH i2c: 01 [09:33:05]MH_I2C_Read... [09:33:05]*** Stop cut motor [09:33:05]*** Cut end [09:33:05]Read from MH i2c: 01 07 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 B6 7A 00 00 00 00 00 FF 0F 45 [09:33:05]process_action close_receipt done [09:33:05]requested_data is exist [09:33:05]produce_requested_data [09:33:05]requested_item fm.sn is exist - process it [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 11 00 00 [09:33:05]Write to MH i2c: E2 08 00 B7 7A 80 11 00 00 00 00 00 00 AB [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 B7 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [09:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:05]wFMCommunicate OK [09:33:05]requested_item fd.num is exist - process it [09:33:05]SAM_PROTO_GetFieldsCounters [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 13 00 00 [09:33:05]Write to MH i2c: E2 08 00 B8 7A 80 13 00 00 00 00 00 00 AE [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 62 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 62 00 B8 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_GetFieldsCounters done [09:33:05]requested_item shift.num is exist - process it [09:33:05]requested_item shift.opened is exist - process it [09:33:05]req_shift_opened [09:33:05]FM_GetShiftState [09:33:05]SAM_PROTO_GetShiftState [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 13 01 00 [09:33:05]Write to MH i2c: E2 08 00 B9 7A 80 13 01 00 00 00 00 00 B0 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 B9 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 73 [09:33:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_GetShiftState done [09:33:05]FM_GetShiftState done [09:33:05]req_shift_opened done [09:33:05]requested_item shift.open_date is exist - process it [09:33:05]req_shift_open_date [09:33:05]req_shift_open_date done [09:33:05]produce_requested_data done [09:33:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191309,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:33:05]process_action_free close_receipt [09:33:05]json_value_free [09:33:05]json_value_free done [09:33:05]process_json_proto returns [09:33:05]Send response to host [09:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191309,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:33:05]free response buf [09:33:05]execute_script done [09:33:05]execute_script returns [09:33:05]free content buf [09:33:05]Sock 8.Close socket [09:33:05]Sock 8.Thread stoped [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:39]accept exits with 9 [09:33:39]New connection [09:33:39]New thread 3066961252 created [09:33:39]Thread 3066817892 joined [09:33:39]Waiting for new connection... [09:33:39] Sock 9.Parse request [09:33:39]Sock 9.Check first char [09:33:39]Sock 9.First char is OK [09:33:39]request: POST /json_proto HTTP/1.0 [09:33:39]Method: POST [09:33:39]URL: /json_proto [09:33:39]Method is POST - this is cgi request [09:33:39]url: /json_proto [09:33:39]query_string will be loaded in cgi processing [09:33:39]execute_cgi json_proto POST (null) [09:33:39]execute_cgi path=json_proto method=POST [09:33:39]POST find Content-Length [09:33:39]Host: 172.17.63.131:8080 [09:33:39]Content-Length: 678 [09:33:39]Content-Type: application/json [09:33:39] [09:33:39]POST finish read [09:33:39]Found Content-Length = 678 [09:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:33:39]execute_script... [09: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)30602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:33:39]POST & json_proto [09:33:39]process_json_proto [09:33:39]json parsed OK: [09:33:39]protocol is kg_v1.0 [09:33:39]action value=close_receipt [09:33:39]process_action close_receipt [09:33:39]cmd_close_receipt [09:33:39]MH_GetDate [09:33:39]Write to MH i2c: F0 00 00 BA 7A 23 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: F0 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: F0 09 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: F0 09 00 BA 7A 00 FC 65 1B 67 22 05 6E 64 08 [09:33:39]GetLastDocTimeStamp 1729848789 [09:33:39]current date 1729848828 [09:33:39]FM_GetShiftState [09:33:39]SAM_PROTO_GetShiftState [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 01 00 [09:33:39]Write to MH i2c: E2 08 00 BB 7A 80 13 01 00 00 00 00 00 B2 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 BB 7A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 75 [09:33:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetShiftState done [09:33:39]FM_GetShiftState done [09:33:39]opened in 1729816399 [09:33:39]opened+sec_in_day 1729902799 [09:33:39]quantity*price = 200025 [09:33:39]sum+1 = 200026 [09:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 49 25.10.2024 09:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191310 ФПД: 189518788742587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191310&fm=189518788742587&tin=02508201610067®Number=0000000000091776&sum=200000 [09:33:40]StoreToDocumentArchive [09:33:40]shift 540 fd 191310 [09:33:40]save to /storage/0540/doc_00191310 [09:33:40]save last doc name /storage/0540/doc_00191310 to /storage/kkm_last_doc_name [09:33:40]save OK [09:33:40]Clear old archive folders... [09:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:40]tlvbuf is 01795D10 [09:33:40]SAM_PROTO_ClearQueue [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 09 00 00 [09:33:40]Write to MH i2c: E2 08 00 C8 7A 80 09 00 00 00 00 00 00 B4 [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 03 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 03 00 C8 7A 00 90 00 B6 [09:33:40]RAPDU: 90 00 [09:33:40]wFMCommunicate OK [09:33:40]SAM_PROTO_ClearQueue done [09:33:40]KKMCreateOFDPacket [09:33:40]OFDProtocolAddRootSTLVToBuf [09:33:40]FM_MakeSignedData [09:33:40]FM_MakeSignedData [09:33:40]SAM_PROTO_SignData [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 0D 01 02 [09:33:40]Write to MH i2c: E2 08 00 C9 7A 80 0D 01 02 00 00 00 00 BC [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 C9 7A 00 90 00 B7 [09:33:41]RAPDU: 90 00 [09:33:41]wFMCommunicate OK [09:33:41]wFMCommunicate request_size=255 [09:33:41]MH_SAM_APDU [09: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FC 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EB 02 00 35 04 06 00 AC 5D C8 14 [09:33:41]Write to MH i2c: E2 02 01 CA 7A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FC 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EB 02 00 35 04 06 00 AC 5D C8 14 00 00 86 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 CA 7A 00 90 00 B8 [09:33:41]RAPDU: 90 00 [09:33:41]wFMCommunicate OK [09:33:41]wFMCommunicate request_size=7 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 0D 02 02 02 CD BB [09:33:41]Write to MH i2c: E2 0A 00 CB 7A 80 0D 02 02 02 00 CD BB 00 00 4B [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 03 00 CB 7A 00 90 00 B9 [09:33:41]RAPDU: 90 00 [09:33:41]wFMCommunicate OK [09:33:41]wFMCommunicate request_size=4 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 0D 03 02 [09:33:41]Write to MH i2c: E2 08 00 CC 7A 80 0D 03 02 00 00 00 00 C1 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 0B 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 0B 00 CC 7A 00 6D 34 E2 E5 B2 79 0F 36 90 00 9A [09:33:41]RAPDU: 6D 34 E2 E5 B2 79 0F 36 90 00 [09:33:41]wFMCommunicate OK [09:33:41]SAM_PROTO_SignData done [09:33:41]FM_MakeSignedData done [09:33:41]CreateOFDProtocolMessage [09:33:41]wFMCommunicate request_size=4 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 11 00 00 [09:33:41]Write to MH i2c: E2 08 00 CD 7A 80 11 00 00 00 00 00 00 C1 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 17 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 17 00 CD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [09:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:41]wFMCommunicate OK [09:33:41]CreateOFDProtocolMessage done [09:33:41]OFDSenderStorePacket 191310 [09:33:41]StoreOFDPacket docnum=191310 [09:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E C0 04 01 C7 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 FC 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EB 02 00 35 04 06 00 AC 5D C8 14 CD BB 6D 34 E2 E5 B2 79 0F 36 [09:33:41]CheckFolder [09:33:41]dirname=/storage/ofd_packets [09:33:41]CheckFolder done [09:33:41]ProducePacketName [09:33:41]name=ofd_packets/00191310 [09:33:41]NVStorageSaveData ofd_packets/00191310 [09:33:41]File name is /storage/ofd_packets/00191310 [09:33:41]Write 298 bytes [09:33:41]NVStorageSaveData done [09:33:41]OFDSenderStorePacket done [09:33:41]KKMCreateOFDPacket done [09:33:41]NVStorageSaveData kkm_last_timestamp [09:33:41]File name is /storage/kkm_last_timestamp [09:33:41]Write 4 bytes [09:33:41]NVStorageSaveData done [09:33:41]ExternCall_PrintAddStr [09:33:41]wPrintStart [09:33:41]Write to MH i2c: 01 00 00 CE 7A 48 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: 01 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: 01 07 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: 01 07 00 CE 7A 00 00 00 00 00 FF 0F 5D [09:33:41]RasterBufferAndPrint [09:33:41]line Счет N : (1)30602 [09:33:41]line ИНН: 02508201610067 [09:33:41]line Контрольно-Кассовый Чек [09:33:41]line ПРОДАЖА [09:33:41]line ТРК (МРК, ГНК) : 22 [09:33:41]line Товар: 2710194210 [09:33:41]line ДТ-К-5 [09:33:41]line 26.250 * 76.20 [09:33:41]line = 2000.25 [09:33:41]line НДС 12% НСП 1% [09:33:41]line > о реализуемом товаре [09:33:41]line ОКРУГЛЕНИЕ: -0.25 [09:33:41]line ИТОГО: 2000.00 [09:33:41]line Внесено: 2000.00 [09:33:41]line СДАЧА: 0.00 [09:33:41]line НСП 1% : 17.70 [09:33:41]line НДС 12% : 212.42 [09:33:41]line Наличными: 2000.00 [09:33:41]line Безнал.: 0.00 [09:33:41]line Место: АЗС № 170 "Партнер Нефть" [09:33:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:33:41]line СНО: Общий режим [09:33:41]line Чек 49 25.10.2024 09:33 [09:33:41]line Смена: 540 ФФД: 1.0 [09:33:41]line ЗНМ: 0300000110 [09:33:41]line РНМ: 0000000000091776 [09:33:41]line Версия ККМ: 001 [09:33:41]line ФМ: 0000000000871754 [09:33:41]line ФД: 191310 [09:33:41]line ФПД: 189518788742587 [09:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191310&fm=189518788742587&tin=02508201610067®Number=0000000000091776&sum=200000 [09:33:41]OFD Sender: Processing packet 191310 [packets to send 75, broken 74] [09:33:41]ProducePacketName [09:33:41]name=ofd_packets/00191310 [09:33:41]OFD Sender: To server: pG, [09:33:41]CommunicateWithHost lk.salyk.kg:30040 [09:33:41]ConnectInit lk.salyk.kg [09:33:41]written 0, free lines is 4095 [09:33:41]Connected sock=10 [09:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E C0 04 01 C7 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 FC 65 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EB 02 00 35 04 06 00 AC 5D C8 14 CD BB 6D 34 E2 E5 B2 79 0F 36 [09:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 F5 47 00 85 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 31 37 35 34 10 04 04 00 4E EB 02 00 F4 03 04 00 CB 0A 1B 67 B6 04 01 00 00 16 6F 81 7A 88 7F 3A B1 [09:33:42]CommunicateWithHost err = 0 [09:33:42]CheckOFDResponse [09:33:42]1017 (14) - 77093643461234 [09:33:42]1041 (16) - 0000000000871754 [09:33:42]1040 (4) - 191310 [09:33:42]1012 (4) - 25.10.2024 03:04 [09:33:42]1206 (1) - 0 [09:33:42]OFD Sender: Remove packet 191310 [09:33:42]ProducePacketName [09:33:42]name=ofd_packets/00191310 [09:33:42]NVStorageDeleteData [09:33:42]Write to MH i2c: 01 00 00 F9 7A 73 [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: 01 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: 01 07 00 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: 01 07 00 F9 7A 00 00 00 00 00 B8 0C 3E [09:33:42]RasterBufferAndPrint [09:33:42]line [09:33:42]line [09:33:42]line [09:33:42]line [09:33:42]line [09:33:42]written 0, free lines is 3260 [09:33:42]MH_Cut [09:33:42]Write to MH i2c: D1 01 00 00 7B 01 4D [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: D1 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: D1 01 00 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: D1 01 00 00 7B 00 4C [09:33:42]Write to MH i2c: 01 00 00 01 7B 7C [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:42]OFD Sender: No OFD packet to send [09:33:43]*** Cut start [09:33:43]*** Partial cut [09:33:43]*** CUTSNS_PIN = 1 [09:33:43]*** CUTSNS_PIN = 0 [09:33:43]*** Brake cut motor [09:33:43]Read from MH i2c: 01 [09:33:43]MH_I2C_Read... [09:33:43]*** Stop cut motor [09:33:43]*** Cut end [09:33:43]Read from MH i2c: 01 07 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: 01 07 00 01 7B 00 00 00 00 00 FF 0F 91 [09:33:43]process_action close_receipt done [09:33:43]requested_data is exist [09:33:43]produce_requested_data [09:33:43]requested_item fm.sn is exist - process it [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 11 00 00 [09:33:43]Write to MH i2c: E2 08 00 02 7B 80 11 00 00 00 00 00 00 F7 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 17 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 17 00 02 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [09:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:43]wFMCommunicate OK [09:33:43]requested_item fd.num is exist - process it [09:33:43]SAM_PROTO_GetFieldsCounters [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 13 00 00 [09:33:43]Write to MH i2c: E2 08 00 03 7B 80 13 00 00 00 00 00 00 FA [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 62 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 62 00 03 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:43]wFMCommunicate OK [09:33:43]SAM_PROTO_GetFieldsCounters done [09:33:43]requested_item shift.num is exist - process it [09:33:43]requested_item shift.opened is exist - process it [09:33:43]req_shift_opened [09:33:43]FM_GetShiftState [09:33:43]SAM_PROTO_GetShiftState [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 13 01 00 [09:33:43]Write to MH i2c: E2 08 00 04 7B 80 13 01 00 00 00 00 00 FC [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 0E 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 0E 00 04 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [09:33:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:33:44]wFMCommunicate OK [09:33:44]SAM_PROTO_GetShiftState done [09:33:44]FM_GetShiftState done [09:33:44]req_shift_opened done [09:33:44]requested_item shift.open_date is exist - process it [09:33:44]req_shift_open_date [09:33:44]req_shift_open_date done [09:33:44]produce_requested_data done [09:33:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191310,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:33:44]process_action_free close_receipt [09:33:44]json_value_free [09:33:44]json_value_free done [09:33:44]process_json_proto returns [09:33:44]Send response to host [09:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191310,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:33:44]free response buf [09:33:44]execute_script done [09:33:44]execute_script returns [09:33:44]free content buf [09:33:44]Sock 9.Close socket [09:33:44]Sock 9.Thread stoped [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:25]accept exits with 8 [09:36:25]New connection [09:36:25]New thread 3066817892 created [09:36:25]Thread 3066961252 joined [09:36:25]Waiting for new connection... [09:36:25] Sock 8.Parse request [09:36:25]Sock 8.Check first char [09:36:25]Sock 8.First char is OK [09:36:25]request: POST /json_proto HTTP/1.0 [09:36:25]Method: POST [09:36:25]URL: /json_proto [09:36:25]Method is POST - this is cgi request [09:36:25]url: /json_proto [09:36:25]query_string will be loaded in cgi processing [09:36:25]execute_cgi json_proto POST (null) [09:36:25]execute_cgi path=json_proto method=POST [09:36:25]POST find Content-Length [09:36:25]Host: 172.17.63.131:8080 [09:36:25]Content-Length: 865 [09:36:25]Content-Type: application/json [09:36:25] [09:36:25]POST finish read [09:36:25]Found Content-Length = 865 [09:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:25]execute_script... [09:36: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)30603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:25]POST & json_proto [09:36:25]process_json_proto [09:36:25]json parsed OK: [09:36:25]protocol is kg_v1.0 [09:36:25]action value=close_receipt [09:36:25]process_action close_receipt [09:36:25]cmd_close_receipt [09:36:25]MH_GetDate [09:36:25]Write to MH i2c: F0 00 00 05 7B 6F [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: F0 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: F0 09 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: F0 09 00 05 7B 00 A1 66 1B 67 22 05 6E 64 FA [09:36:25]GetLastDocTimeStamp 1729848828 [09:36:25]current date 1729848993 [09:36:25]FM_GetShiftState [09:36:25]SAM_PROTO_GetShiftState [09:36:25]wFMCommunicate request_size=4 [09:36:25]MH_SAM_APDU [09:36:25]CAPDU: 80 13 01 00 [09:36:25]Write to MH i2c: E2 08 00 06 7B 80 13 01 00 00 00 00 00 FE [09:36:25]Write i2c OK [09:36:25]MH_I2C_Read... [09:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:25]Read from MH i2c: E2 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 0E 00 [09:36:25]MH_I2C_Read... [09:36:25]Read from MH i2c: E2 0E 00 06 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C1 [09:36:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:36:25]wFMCommunicate OK [09:36:25]SAM_PROTO_GetShiftState done [09:36:25]FM_GetShiftState done [09:36:25]opened in 1729816399 [09:36:25]opened+sec_in_day 1729902799 [09:36:25]quantity*price = 100015 [09:36:25]sum+1 = 100017 [09:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 50 25.10.2024 09:36 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191311 ФПД: 55495360920338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191311&fm=55495360920338&tin=02508201610067®Number=0000000000091776&sum=100016 [09:36:26]StoreToDocumentArchive [09:36:26]shift 540 fd 191311 [09:36:26]save to /storage/0540/doc_00191311 [09:36:26]save last doc name /storage/0540/doc_00191311 to /storage/kkm_last_doc_name [09:36:26]save OK [09:36:26]Clear old archive folders... [09:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:26]tlvbuf is 015D8910 [09:36:26]SAM_PROTO_ClearQueue [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 09 00 00 [09:36:26]Write to MH i2c: E2 08 00 13 7B 80 09 00 00 00 00 00 00 00 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 13 7B 00 90 00 02 [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]SAM_PROTO_ClearQueue done [09:36:26]KKMCreateOFDPacket [09:36:26]OFDProtocolAddRootSTLVToBuf [09:36:26]FM_MakeSignedData [09:36:26]FM_MakeSignedData [09:36:26]SAM_PROTO_SignData [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 01 02 [09:36:26]Write to MH i2c: E2 08 00 14 7B 80 0D 01 02 00 00 00 00 08 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 14 7B 00 90 00 03 [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]wFMCommunicate request_size=255 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A2 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EB 02 00 35 04 06 00 32 [09:36:26]Write to MH i2c: E2 02 01 15 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A2 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EB 02 00 35 04 06 00 32 00 00 FE [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:27]Read from MH i2c: E2 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 03 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 03 00 15 7B 00 90 00 04 [09:36:27]RAPDU: 90 00 [09:36:27]wFMCommunicate OK [09:36:27]wFMCommunicate request_size=10 [09:36:27]MH_SAM_APDU [09:36:27]CAPDU: 80 0D 02 02 05 79 05 46 3B 12 [09:36:27]Write to MH i2c: E2 0D 00 16 7B 80 0D 02 02 05 00 79 05 46 3B 12 00 00 26 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:27]Read from MH i2c: E2 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 03 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 03 00 16 7B 00 90 00 05 [09:36:27]RAPDU: 90 00 [09:36:27]wFMCommunicate OK [09:36:27]wFMCommunicate request_size=4 [09:36:27]MH_SAM_APDU [09:36:27]CAPDU: 80 0D 03 02 [09:36:27]Write to MH i2c: E2 08 00 17 7B 80 0D 03 02 00 00 00 00 0D [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:27]Read from MH i2c: E2 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 0B 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 0B 00 17 7B 00 E3 6F 40 24 69 23 FC 20 90 00 6C [09:36:27]RAPDU: E3 6F 40 24 69 23 FC 20 90 00 [09:36:27]wFMCommunicate OK [09:36:27]SAM_PROTO_SignData done [09:36:27]FM_MakeSignedData done [09:36:27]CreateOFDProtocolMessage [09:36:27]wFMCommunicate request_size=4 [09:36:27]MH_SAM_APDU [09:36:27]CAPDU: 80 11 00 00 [09:36:27]Write to MH i2c: E2 08 00 18 7B 80 11 00 00 00 00 00 00 0D [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:27]Read from MH i2c: E2 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 17 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: E2 17 00 18 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [09:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:27]wFMCommunicate OK [09:36:27]CreateOFDProtocolMessage done [09:36:27]OFDSenderStorePacket 191311 [09:36:27]StoreOFDPacket docnum=191311 [09:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 5D 07 01 80 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A2 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EB 02 00 35 04 06 00 32 79 05 46 3B 12 E3 6F 40 24 69 23 FC 20 [09:36:27]CheckFolder [09:36:27]dirname=/storage/ofd_packets [09:36:27]CheckFolder done [09:36:27]ProducePacketName [09:36:27]name=ofd_packets/00191311 [09:36:27]NVStorageSaveData ofd_packets/00191311 [09:36:27]File name is /storage/ofd_packets/00191311 [09:36:27]Write 301 bytes [09:36:27]NVStorageSaveData done [09:36:27]OFDSenderStorePacket done [09:36:27]KKMCreateOFDPacket done [09:36:27]NVStorageSaveData kkm_last_timestamp [09:36:27]File name is /storage/kkm_last_timestamp [09:36:27]Write 4 bytes [09:36:27]NVStorageSaveData done [09:36:27]ExternCall_PrintAddStr [09:36:27]wPrintStart [09:36:27]Write to MH i2c: 01 00 00 19 7B 94 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 19 7B 00 00 00 00 00 FF 0F A9 [09:36:27]RasterBufferAndPrint [09:36:27]line Счет N : (1)30603 [09:36:27]line ИНН: 02508201610067 [09:36:27]line Контрольно-Кассовый Чек [09:36:27]line ПРОДАЖА [09:36:27]line ТРК (МРК, ГНК) : 21 [09:36:27]line Товар: 2710124130 [09:36:27]line Аи-92-К-5 [09:36:27]line 14.950 * 66.90 [09:36:27]line = 1000.16 [09:36:27]line НДС 12% НСП 1% [09:36:27]line > о реализуемом товаре [09:36:27]line ИТОГО: 1000.16 [09:36:27]line НСП 1% : 8.85 [09:36:27]line НДС 12% : 106.21 [09:36:27]line Наличными: 0.00 [09:36:27]line Безнал.: 1000.16 [09:36:27]line Место: АЗС № 170 "Партнер Нефть" [09:36:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:36:27]line СНО: Общий режим [09:36:27]line Чек 50 25.10.2024 09:36 [09:36:27]line Смена: 540 ФФД: 1.0 [09:36:27]line ЗНМ: 0300000110 [09:36:27]line РНМ: 0000000000091776 [09:36:27]line Версия ККМ: 001 [09:36:27]line Платежная система: Кыргызкоммерцбанк [09:36:27]line ФМ: 0000000000871754 [09:36:27]line ФД: 191311 [09:36:27]line ФПД: 55495360920338 [09:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191311&fm=55495360920338&tin=02508201610067®Number=0000000000091776&sum=100016 [09:36:27]OFD Sender: Processing packet 191311 [packets to send 75, broken 74] [09:36:27]ProducePacketName [09:36:27]name=ofd_packets/00191311 [09:36:27]OFD Sender: To server: pG, [09:36:27]CommunicateWithHost lk.salyk.kg:30040 [09:36:27]ConnectInit lk.salyk.kg [09:36:27]written 0, free lines is 4095 [09:36:27]Connected sock=9 [09:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 5D 07 01 80 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A2 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EB 02 00 35 04 06 00 32 79 05 46 3B 12 E3 6F 40 24 69 23 FC 20 [09:36:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 8A 47 00 9E 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 31 37 35 34 10 04 04 00 4F EB 02 00 F4 03 04 00 71 0B 1B 67 B6 04 01 00 00 E5 24 00 9B 91 A1 87 D1 [09:36:28]CommunicateWithHost err = 0 [09:36:28]CheckOFDResponse [09:36:28]1017 (14) - 77093643461234 [09:36:28]1041 (16) - 0000000000871754 [09:36:28]1040 (4) - 191311 [09:36:28]1012 (4) - 25.10.2024 03:07 [09:36:28]1206 (1) - 0 [09:36:28]OFD Sender: Remove packet 191311 [09:36:28]ProducePacketName [09:36:28]name=ofd_packets/00191311 [09:36:28]NVStorageDeleteData [09:36:28]Write to MH i2c: 01 00 00 43 7B BE [09:36:28]Write i2c OK [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: 01 [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: 01 07 00 [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: 01 07 00 43 7B 00 00 00 00 00 C6 0C 97 [09:36:28]RasterBufferAndPrint [09:36:28]line [09:36:28]line [09:36:28]line [09:36:28]line [09:36:28]line [09:36:28]written 0, free lines is 3279 [09:36:28]MH_Cut [09:36:28]Write to MH i2c: D1 01 00 4A 7B 01 97 [09:36:28]Write i2c OK [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: D1 [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: D1 01 00 [09:36:28]MH_I2C_Read... [09:36:28]Read from MH i2c: D1 01 00 4A 7B 00 96 [09:36:28]Write to MH i2c: 01 00 00 4B 7B C6 [09:36:28]Write i2c OK [09:36:28]MH_I2C_Read... [09:36:28]OFD Sender: No OFD packet to send [09:36:29]*** Cut start [09:36:29]*** Partial cut [09:36:29]*** CUTSNS_PIN = 1 [09:36:29]*** CUTSNS_PIN = 0 [09:36:29]*** Brake cut motor [09:36:29]Read from MH i2c: 01 [09:36:29]MH_I2C_Read... [09:36:29]*** Stop cut motor [09:36:29]*** Cut end [09:36:29]Read from MH i2c: 01 07 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 4B 7B 00 00 00 00 00 FF 0F DB [09:36:29]process_action close_receipt done [09:36:29]requested_data is exist [09:36:29]produce_requested_data [09:36:29]requested_item fm.sn is exist - process it [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 11 00 00 [09:36:29]Write to MH i2c: E2 08 00 4C 7B 80 11 00 00 00 00 00 00 41 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 4C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [09:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:29]wFMCommunicate OK [09:36:29]requested_item fd.num is exist - process it [09:36:29]SAM_PROTO_GetFieldsCounters [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 00 00 [09:36:29]Write to MH i2c: E2 08 00 4D 7B 80 13 00 00 00 00 00 00 44 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 4D 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:36:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetFieldsCounters done [09:36:29]requested_item shift.num is exist - process it [09:36:29]requested_item shift.opened is exist - process it [09:36:29]req_shift_opened [09:36:29]FM_GetShiftState [09:36:29]SAM_PROTO_GetShiftState [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 01 00 [09:36:29]Write to MH i2c: E2 08 00 4E 7B 80 13 01 00 00 00 00 00 46 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 4E 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 09 [09:36:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetShiftState done [09:36:29]FM_GetShiftState done [09:36:29]req_shift_opened done [09:36:29]requested_item shift.open_date is exist - process it [09:36:29]req_shift_open_date [09:36:29]req_shift_open_date done [09:36:29]produce_requested_data done [09:36:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191311,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:36:29]process_action_free close_receipt [09:36:29]json_value_free [09:36:29]json_value_free done [09:36:29]process_json_proto returns [09:36:29]Send response to host [09:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191311,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:36:29]free response buf [09:36:29]execute_script done [09:36:29]execute_script returns [09:36:29]free content buf [09:36:29]Sock 8.Close socket [09:36:29]Sock 8.Thread stoped [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:47]accept exits with 10 [09:37:47]New connection [09:37:47]New thread 3066961252 created [09:37:47]Thread 3066817892 joined [09:37:47]Waiting for new connection... [09:37:47] Sock 10.Parse request [09:37:47]Sock 10.Check first char [09:37:47]Sock 10.First char is OK [09:37:47]request: POST /json_proto HTTP/1.0 [09:37:47]Method: POST [09:37:47]URL: /json_proto [09:37:47]Method is POST - this is cgi request [09:37:47]url: /json_proto [09:37:47]query_string will be loaded in cgi processing [09:37:47]execute_cgi json_proto POST (null) [09:37:47]execute_cgi path=json_proto method=POST [09:37:47]POST find Content-Length [09:37:47]Host: 172.17.63.131:8080 [09:37:47]Content-Length: 862 [09:37:47]Content-Type: application/json [09:37:47] [09:37:47]POST finish read [09:37:47]Found Content-Length = 862 [09:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:47]execute_script... [09:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:47]POST & json_proto [09:37:47]process_json_proto [09:37:47]json parsed OK: [09:37:47]protocol is kg_v1.0 [09:37:47]action value=close_receipt [09:37:47]process_action close_receipt [09:37:47]cmd_close_receipt [09:37:47]MH_GetDate [09:37:47]Write to MH i2c: F0 00 00 4F 7B B9 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: F0 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: F0 09 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: F0 09 00 4F 7B 00 F4 66 1B 67 22 05 6E 64 97 [09:37:47]GetLastDocTimeStamp 1729848994 [09:37:47]current date 1729849076 [09:37:47]FM_GetShiftState [09:37:47]SAM_PROTO_GetShiftState [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 13 01 00 [09:37:47]Write to MH i2c: E2 08 00 50 7B 80 13 01 00 00 00 00 00 48 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 50 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [09:37:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]opened in 1729816399 [09:37:48]opened+sec_in_day 1729902799 [09:37:48]quantity*price = 50041 [09:37:48]sum+1 = 50042 [09:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 51 25.10.2024 09:37 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191312 ФПД: 260675906788847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191312&fm=260675906788847&tin=02508201610067®Number=0000000000091776&sum=50041 [09:37:49]StoreToDocumentArchive [09:37:49]shift 540 fd 191312 [09:37:49]save to /storage/0540/doc_00191312 [09:37:49]save last doc name /storage/0540/doc_00191312 to /storage/kkm_last_doc_name [09:37:49]save OK [09:37:49]Clear old archive folders... [09:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:49]tlvbuf is 01625250 [09:37:49]SAM_PROTO_ClearQueue [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 09 00 00 [09:37:49]Write to MH i2c: E2 08 00 5D 7B 80 09 00 00 00 00 00 00 4A [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 5D 7B 00 90 00 4C [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]SAM_PROTO_ClearQueue done [09:37:49]KKMCreateOFDPacket [09:37:49]OFDProtocolAddRootSTLVToBuf [09:37:49]FM_MakeSignedData [09:37:49]FM_MakeSignedData [09:37:49]SAM_PROTO_SignData [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 0D 01 02 [09:37:49]Write to MH i2c: E2 08 00 5E 7B 80 0D 01 02 00 00 00 00 52 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 5E 7B 00 90 00 4D [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]wFMCommunicate request_size=255 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F4 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EB 02 00 35 04 06 00 ED [09:37:49]Write to MH i2c: E2 02 01 5F 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F4 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EB 02 00 35 04 06 00 ED 00 00 8F [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 5F 7B 00 90 00 4E [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]wFMCommunicate request_size=10 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 0D 02 02 05 15 56 D3 5D EF [09:37:49]Write to MH i2c: E2 0D 00 60 7B 80 0D 02 02 05 00 15 56 D3 5D EF 00 00 E9 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 03 00 60 7B 00 90 00 4F [09:37:49]RAPDU: 90 00 [09:37:49]wFMCommunicate OK [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 0D 03 02 [09:37:49]Write to MH i2c: E2 08 00 61 7B 80 0D 03 02 00 00 00 00 57 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 0B 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 0B 00 61 7B 00 22 95 D4 60 67 04 C4 65 90 00 D7 [09:37:49]RAPDU: 22 95 D4 60 67 04 C4 65 90 00 [09:37:49]wFMCommunicate OK [09:37:49]SAM_PROTO_SignData done [09:37:49]FM_MakeSignedData done [09:37:49]CreateOFDProtocolMessage [09:37:49]wFMCommunicate request_size=4 [09:37:49]MH_SAM_APDU [09:37:49]CAPDU: 80 11 00 00 [09:37:49]Write to MH i2c: E2 08 00 62 7B 80 11 00 00 00 00 00 00 57 [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:49]Read from MH i2c: E2 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 17 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: E2 17 00 62 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [09:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:37:49]wFMCommunicate OK [09:37:49]CreateOFDProtocolMessage done [09:37:49]OFDSenderStorePacket 191312 [09:37:49]StoreOFDPacket docnum=191312 [09:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 FB 07 01 1A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F4 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EB 02 00 35 04 06 00 ED 15 56 D3 5D EF 22 95 D4 60 67 04 C4 65 [09:37:49]CheckFolder [09:37:49]dirname=/storage/ofd_packets [09:37:49]CheckFolder done [09:37:49]ProducePacketName [09:37:49]name=ofd_packets/00191312 [09:37:49]NVStorageSaveData ofd_packets/00191312 [09:37:49]File name is /storage/ofd_packets/00191312 [09:37:49]Write 301 bytes [09:37:49]NVStorageSaveData done [09:37:49]OFDSenderStorePacket done [09:37:49]KKMCreateOFDPacket done [09:37:49]NVStorageSaveData kkm_last_timestamp [09:37:49]File name is /storage/kkm_last_timestamp [09:37:49]Write 4 bytes [09:37:49]NVStorageSaveData done [09:37:49]ExternCall_PrintAddStr [09:37:49]wPrintStart [09:37:49]Write to MH i2c: 01 00 00 63 7B DE [09:37:49]Write i2c OK [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: 01 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: 01 07 00 [09:37:49]MH_I2C_Read... [09:37:49]Read from MH i2c: 01 07 00 63 7B 00 00 00 00 00 FF 0F F3 [09:37:49]RasterBufferAndPrint [09:37:49]line Счет N : (1)30605 [09:37:49]line ИНН: 02508201610067 [09:37:49]line Контрольно-Кассовый Чек [09:37:49]line ПРОДАЖА [09:37:49]line ТРК (МРК, ГНК) : 21 [09:37:49]line Товар: 2710124130 [09:37:49]line Аи-92-К-5 [09:37:49]line 7.480 * 66.90 [09:37:49]line = 500.41 [09:37:49]line НДС 12% НСП 1% [09:37:49]line > о реализуемом товаре [09:37:49]line ИТОГО: 500.41 [09:37:49]line НСП 1% : 4.43 [09:37:49]line НДС 12% : 53.14 [09:37:49]line Наличными: 0.00 [09:37:49]line Безнал.: 500.41 [09:37:49]line Место: АЗС № 170 "Партнер Нефть" [09:37:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:37:49]line СНО: Общий режим [09:37:49]line Чек 51 25.10.2024 09:37 [09:37:49]line Смена: 540 ФФД: 1.0 [09:37:49]line ЗНМ: 0300000110 [09:37:49]line РНМ: 0000000000091776 [09:37:49]line Версия ККМ: 001 [09:37:49]line Платежная система: Кыргызкоммерцбанк [09:37:49]line ФМ: 0000000000871754 [09:37:49]line ФД: 191312 [09:37:49]line ФПД: 260675906788847 [09:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191312&fm=260675906788847&tin=02508201610067®Number=0000000000091776&sum=50041 [09:37:50]written 0, free lines is 4095 [09:37:50]OFD Sender: Processing packet 191312 [packets to send 75, broken 74] [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00191312 [09:37:50]OFD Sender: To server: pG, [09:37:50]CommunicateWithHost lk.salyk.kg:30040 [09:37:50]ConnectInit lk.salyk.kg [09:37:50]Connected sock=9 [09:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 FB 07 01 1A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F4 66 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EB 02 00 35 04 06 00 ED 15 56 D3 5D EF 22 95 D4 60 67 04 C4 65 [09:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C C8 47 00 55 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EB 02 00 F4 03 04 00 C3 0B 1B 67 B6 04 01 00 00 37 15 24 84 4A 7D 1B B2 [09:37:50]CommunicateWithHost err = 0 [09:37:50]CheckOFDResponse [09:37:50]1017 (14) - 77093643461234 [09:37:50]1041 (16) - 0000000000871754 [09:37:50]1040 (4) - 191312 [09:37:50]1012 (4) - 25.10.2024 03:08 [09:37:50]1206 (1) - 0 [09:37:50]OFD Sender: Remove packet 191312 [09:37:50]ProducePacketName [09:37:50]name=ofd_packets/00191312 [09:37:50]NVStorageDeleteData [09:37:50]Write to MH i2c: 01 00 00 8D 7B 08 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: 01 07 00 8D 7B 00 00 00 00 00 C3 0C DE [09:37:50]RasterBufferAndPrint [09:37:50]line [09:37:50]line [09:37:50]line [09:37:50]line [09:37:50]line [09:37:50]written 0, free lines is 3273 [09:37:50]MH_Cut [09:37:50]Write to MH i2c: D1 01 00 94 7B 01 E1 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: D1 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: D1 01 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: D1 01 00 94 7B 00 E0 [09:37:50]Write to MH i2c: 01 00 00 95 7B 10 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]OFD Sender: No OFD packet to send [09:37:51]*** Cut start [09:37:51]*** Partial cut [09:37:51]*** CUTSNS_PIN = 1 [09:37:51]*** CUTSNS_PIN = 0 [09:37:51]*** Brake cut motor [09:37:51]Read from MH i2c: 01 [09:37:51]MH_I2C_Read... [09:37:51]*** Stop cut motor [09:37:51]*** Cut end [09:37:51]Read from MH i2c: 01 07 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 95 7B 00 00 00 00 00 FF 0F 25 [09:37:51]process_action close_receipt done [09:37:51]requested_data is exist [09:37:51]produce_requested_data [09:37:51]requested_item fm.sn is exist - process it [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 11 00 00 [09:37:51]Write to MH i2c: E2 08 00 96 7B 80 11 00 00 00 00 00 00 8B [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 96 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [09:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:37:52]wFMCommunicate OK [09:37:52]requested_item fd.num is exist - process it [09:37:52]SAM_PROTO_GetFieldsCounters [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 13 00 00 [09:37:52]Write to MH i2c: E2 08 00 97 7B 80 13 00 00 00 00 00 00 8E [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 62 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 62 00 97 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_GetFieldsCounters done [09:37:52]requested_item shift.num is exist - process it [09:37:52]requested_item shift.opened is exist - process it [09:37:52]req_shift_opened [09:37:52]FM_GetShiftState [09:37:52]SAM_PROTO_GetShiftState [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 13 01 00 [09:37:52]Write to MH i2c: E2 08 00 98 7B 80 13 01 00 00 00 00 00 90 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 98 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 53 [09:37:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_GetShiftState done [09:37:52]FM_GetShiftState done [09:37:52]req_shift_opened done [09:37:52]requested_item shift.open_date is exist - process it [09:37:52]req_shift_open_date [09:37:52]req_shift_open_date done [09:37:52]produce_requested_data done [09:37:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191312,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:37:52]process_action_free close_receipt [09:37:52]json_value_free [09:37:52]json_value_free done [09:37:52]process_json_proto returns [09:37:52]Send response to host [09:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191312,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:37:52]free response buf [09:37:52]execute_script done [09:37:52]execute_script returns [09:37:52]free content buf [09:37:52]Sock 10.Close socket [09:37:52]Sock 10.Thread stoped [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:25]accept exits with 8 [09:43:25]New connection [09:43:25]New thread 3066817892 created [09:43:25]Thread 3066961252 joined [09:43:25]Waiting for new connection... [09:43:25] Sock 8.Parse request [09:43:25]Sock 8.Check first char [09:43:25]Sock 8.First char is OK [09:43:25]request: POST /json_proto HTTP/1.0 [09:43:25]Method: POST [09:43:25]URL: /json_proto [09:43:25]Method is POST - this is cgi request [09:43:25]url: /json_proto [09:43:25]query_string will be loaded in cgi processing [09:43:25]execute_cgi json_proto POST (null) [09:43:25]execute_cgi path=json_proto method=POST [09:43:25]POST find Content-Length [09:43:25]Host: 172.17.63.131:8080 [09:43:25]Content-Length: 862 [09:43:25]Content-Type: application/json [09:43:25] [09:43:25]POST finish read [09:43:25]Found Content-Length = 862 [09:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:25]execute_script... [09:43: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)30606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:25]POST & json_proto [09:43:25]process_json_proto [09:43:25]json parsed OK: [09:43:25]protocol is kg_v1.0 [09:43:25]action value=close_receipt [09:43:25]process_action close_receipt [09:43:25]cmd_close_receipt [09:43:25]MH_GetDate [09:43:25]Write to MH i2c: F0 00 00 99 7B 03 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 09 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 09 00 99 7B 00 45 68 1B 67 22 05 6E 64 34 [09:43:25]GetLastDocTimeStamp 1729849076 [09:43:25]current date 1729849413 [09:43:25]FM_GetShiftState [09:43:25]SAM_PROTO_GetShiftState [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 13 01 00 [09:43:25]Write to MH i2c: E2 08 00 9A 7B 80 13 01 00 00 00 00 00 92 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 9A 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 55 [09:43:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_GetShiftState done [09:43:25]FM_GetShiftState done [09:43:25]opened in 1729816399 [09:43:25]opened+sec_in_day 1729902799 [09:43:25]quantity*price = 50041 [09:43:25]sum+1 = 50042 [09:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 52 25.10.2024 09:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191313 ФПД: 76878180598821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191313&fm=76878180598821&tin=02508201610067®Number=0000000000091776&sum=50041 [09:43:26]StoreToDocumentArchive [09:43:26]shift 540 fd 191313 [09:43:26]save to /storage/0540/doc_00191313 [09:43:26]save last doc name /storage/0540/doc_00191313 to /storage/kkm_last_doc_name [09:43:26]save OK [09:43:26]Clear old archive folders... [09:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:26]tlvbuf is 016EB230 [09:43:26]SAM_PROTO_ClearQueue [09:43:26]wFMCommunicate request_size=4 [09:43:26]MH_SAM_APDU [09:43:26]CAPDU: 80 09 00 00 [09:43:26]Write to MH i2c: E2 08 00 A7 7B 80 09 00 00 00 00 00 00 94 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:26]Read from MH i2c: E2 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 A7 7B 00 90 00 96 [09:43:26]RAPDU: 90 00 [09:43:26]wFMCommunicate OK [09:43:26]SAM_PROTO_ClearQueue done [09:43:26]KKMCreateOFDPacket [09:43:26]OFDProtocolAddRootSTLVToBuf [09:43:26]FM_MakeSignedData [09:43:26]FM_MakeSignedData [09:43:26]SAM_PROTO_SignData [09:43:26]wFMCommunicate request_size=4 [09:43:26]MH_SAM_APDU [09:43:26]CAPDU: 80 0D 01 02 [09:43:26]Write to MH i2c: E2 08 00 A8 7B 80 0D 01 02 00 00 00 00 9C [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:26]Read from MH i2c: E2 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 A8 7B 00 90 00 97 [09:43:26]RAPDU: 90 00 [09:43:26]wFMCommunicate OK [09:43:26]wFMCommunicate request_size=255 [09:43:26]MH_SAM_APDU [09:43:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EB 02 00 35 04 06 00 45 [09:43:26]Write to MH i2c: E2 02 01 A9 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EB 02 00 35 04 06 00 45 00 00 86 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 A9 7B 00 90 00 98 [09:43:27]RAPDU: 90 00 [09:43:27]wFMCommunicate OK [09:43:27]wFMCommunicate request_size=10 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 0D 02 02 05 EB 98 A5 44 25 [09:43:27]Write to MH i2c: E2 0D 00 AA 7B 80 0D 02 02 05 00 EB 98 A5 44 25 00 00 3A [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 AA 7B 00 90 00 99 [09:43:27]RAPDU: 90 00 [09:43:27]wFMCommunicate OK [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 0D 03 02 [09:43:27]Write to MH i2c: E2 08 00 AB 7B 80 0D 03 02 00 00 00 00 A1 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0B 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0B 00 AB 7B 00 62 50 AA A6 E6 84 DD 70 90 00 5B [09:43:27]RAPDU: 62 50 AA A6 E6 84 DD 70 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_SignData done [09:43:27]FM_MakeSignedData done [09:43:27]CreateOFDProtocolMessage [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 11 00 00 [09:43:27]Write to MH i2c: E2 08 00 AC 7B 80 11 00 00 00 00 00 00 A1 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 AC 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [09:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:27]wFMCommunicate OK [09:43:27]CreateOFDProtocolMessage done [09:43:27]OFDSenderStorePacket 191313 [09:43:27]StoreOFDPacket docnum=191313 [09:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 1A 07 01 4A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EB 02 00 35 04 06 00 45 EB 98 A5 44 25 62 50 AA A6 E6 84 DD 70 [09:43:27]CheckFolder [09:43:27]dirname=/storage/ofd_packets [09:43:27]CheckFolder done [09:43:27]ProducePacketName [09:43:27]name=ofd_packets/00191313 [09:43:27]NVStorageSaveData ofd_packets/00191313 [09:43:27]File name is /storage/ofd_packets/00191313 [09:43:27]Write 301 bytes [09:43:27]NVStorageSaveData done [09:43:27]OFDSenderStorePacket done [09:43:27]KKMCreateOFDPacket done [09:43:27]NVStorageSaveData kkm_last_timestamp [09:43:27]File name is /storage/kkm_last_timestamp [09:43:27]Write 4 bytes [09:43:27]NVStorageSaveData done [09:43:27]ExternCall_PrintAddStr [09:43:27]wPrintStart [09:43:27]Write to MH i2c: 01 00 00 AD 7B 28 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 AD 7B 00 00 00 00 00 FF 0F 3D [09:43:27]RasterBufferAndPrint [09:43:27]line Счет N : (1)30606 [09:43:27]line ИНН: 02508201610067 [09:43:27]line Контрольно-Кассовый Чек [09:43:27]line ПРОДАЖА [09:43:27]line ТРК (МРК, ГНК) : 21 [09:43:27]line Товар: 2710124130 [09:43:27]line Аи-92-К-5 [09:43:27]line 7.480 * 66.90 [09:43:27]line = 500.41 [09:43:27]line НДС 12% НСП 1% [09:43:27]line > о реализуемом товаре [09:43:27]line ИТОГО: 500.41 [09:43:27]line НСП 1% : 4.43 [09:43:27]line НДС 12% : 53.14 [09:43:27]line Наличными: 0.00 [09:43:27]line Безнал.: 500.41 [09:43:27]line Место: АЗС № 170 "Партнер Нефть" [09:43:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:43:27]line СНО: Общий режим [09:43:27]line Чек 52 25.10.2024 09:43 [09:43:27]line Смена: 540 ФФД: 1.0 [09:43:27]line ЗНМ: 0300000110 [09:43:27]line РНМ: 0000000000091776 [09:43:27]line Версия ККМ: 001 [09:43:27]line Платежная система: Кыргызкоммерцбанк [09:43:27]line ФМ: 0000000000871754 [09:43:27]line ФД: 191313 [09:43:27]line ФПД: 76878180598821 [09:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191313&fm=76878180598821&tin=02508201610067®Number=0000000000091776&sum=50041 [09:43:27]written 0, free lines is 4095 [09:43:27]OFD Sender: Processing packet 191313 [packets to send 75, broken 74] [09:43:27]ProducePacketName [09:43:27]name=ofd_packets/00191313 [09:43:27]OFD Sender: To server: pG, [09:43:27]CommunicateWithHost lk.salyk.kg:30040 [09:43:27]ConnectInit lk.salyk.kg [09:43:27]Connected sock=10 [09:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 1A 07 01 4A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EB 02 00 35 04 06 00 45 EB 98 A5 44 25 62 50 AA A6 E6 84 DD 70 [09:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F 0E 47 00 2F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EB 02 00 F4 03 04 00 14 0D 1B 67 B6 04 01 00 00 10 69 47 3F 35 1A DB 3B [09:43:27]CommunicateWithHost err = 0 [09:43:27]CheckOFDResponse [09:43:27]1017 (14) - 77093643461234 [09:43:27]1041 (16) - 0000000000871754 [09:43:27]1040 (4) - 191313 [09:43:27]1012 (4) - 25.10.2024 03:14 [09:43:27]1206 (1) - 0 [09:43:27]OFD Sender: Remove packet 191313 [09:43:27]ProducePacketName [09:43:27]name=ofd_packets/00191313 [09:43:27]NVStorageDeleteData [09:43:27]Write to MH i2c: 01 00 00 D7 7B 52 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 D7 7B 00 00 00 00 00 C1 0C 26 [09:43:27]RasterBufferAndPrint [09:43:27]line [09:43:27]line [09:43:27]line [09:43:27]line [09:43:27]line [09:43:27]written 0, free lines is 3271 [09:43:27]MH_Cut [09:43:27]Write to MH i2c: D1 01 00 DE 7B 01 2B [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: D1 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: D1 01 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: D1 01 00 DE 7B 00 2A [09:43:27]Write to MH i2c: 01 00 00 DF 7B 5A [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:28]OFD Sender: No OFD packet to send [09:43:28]*** Cut start [09:43:28]*** Partial cut [09:43:28]*** CUTSNS_PIN = 1 [09:43:28]*** CUTSNS_PIN = 0 [09:43:29]*** Brake cut motor [09:43:29]Read from MH i2c: 01 [09:43:29]MH_I2C_Read... [09:43:29]*** Stop cut motor [09:43:29]*** Cut end [09:43:29]Read from MH i2c: 01 07 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 DF 7B 00 00 00 00 00 FF 0F 6F [09:43:29]process_action close_receipt done [09:43:29]requested_data is exist [09:43:29]produce_requested_data [09:43:29]requested_item fm.sn is exist - process it [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 11 00 00 [09:43:29]Write to MH i2c: E2 08 00 E0 7B 80 11 00 00 00 00 00 00 D5 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 E0 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [09:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:29]wFMCommunicate OK [09:43:29]requested_item fd.num is exist - process it [09:43:29]SAM_PROTO_GetFieldsCounters [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 13 00 00 [09:43:29]Write to MH i2c: E2 08 00 E1 7B 80 13 00 00 00 00 00 00 D8 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 62 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 62 00 E1 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:29]wFMCommunicate OK [09:43:29]SAM_PROTO_GetFieldsCounters done [09:43:29]requested_item shift.num is exist - process it [09:43:29]requested_item shift.opened is exist - process it [09:43:29]req_shift_opened [09:43:29]FM_GetShiftState [09:43:29]SAM_PROTO_GetShiftState [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 13 01 00 [09:43:29]Write to MH i2c: E2 08 00 E2 7B 80 13 01 00 00 00 00 00 DA [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0E 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0E 00 E2 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9D [09:43:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:43:29]wFMCommunicate OK [09:43:29]SAM_PROTO_GetShiftState done [09:43:29]FM_GetShiftState done [09:43:29]req_shift_opened done [09:43:29]requested_item shift.open_date is exist - process it [09:43:29]req_shift_open_date [09:43:29]req_shift_open_date done [09:43:29]produce_requested_data done [09:43:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191313,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:43:29]process_action_free close_receipt [09:43:29]json_value_free [09:43:29]json_value_free done [09:43:29]process_json_proto returns [09:43:29]Send response to host [09:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191313,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:43:29]free response buf [09:43:29]execute_script done [09:43:29]execute_script returns [09:43:29]free content buf [09:43:29]Sock 8.Close socket [09:43:29]Sock 8.Thread stoped [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:26]accept exits with 9 [09:44:26]New connection [09:44:26]New thread 3066961252 created [09:44:26]Thread 3066817892 joined [09:44:26]Waiting for new connection... [09:44:26] Sock 9.Parse request [09:44:26]Sock 9.Check first char [09:44:26]Sock 9.First char is OK [09:44:26]request: POST /json_proto HTTP/1.0 [09:44:26]Method: POST [09:44:26]URL: /json_proto [09:44:26]Method is POST - this is cgi request [09:44:26]url: /json_proto [09:44:26]query_string will be loaded in cgi processing [09:44:26]execute_cgi json_proto POST (null) [09:44:26]execute_cgi path=json_proto method=POST [09:44:26]POST find Content-Length [09:44:26]Host: 172.17.63.131:8080 [09:44:26]Content-Length: 676 [09:44:26]Content-Type: application/json [09:44:26] [09:44:26]POST finish read [09:44:26]Found Content-Length = 676 [09:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:26]execute_script... [09:44:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:26]POST & json_proto [09:44:26]process_json_proto [09:44:26]json parsed OK: [09:44:26]protocol is kg_v1.0 [09:44:26]action value=close_receipt [09:44:26]process_action close_receipt [09:44:26]cmd_close_receipt [09:44:26]MH_GetDate [09:44:26]Write to MH i2c: F0 00 00 E3 7B 4D [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 E3 7B 00 82 68 1B 67 22 05 6E 64 BB [09:44:26]GetLastDocTimeStamp 1729849413 [09:44:26]current date 1729849474 [09:44:26]FM_GetShiftState [09:44:26]SAM_PROTO_GetShiftState [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 01 00 [09:44:26]Write to MH i2c: E2 08 00 E4 7B 80 13 01 00 00 00 00 00 DC [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 E4 7B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9F [09:44:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetShiftState done [09:44:26]FM_GetShiftState done [09:44:26]opened in 1729816399 [09:44:26]opened+sec_in_day 1729902799 [09:44:26]quantity*price = 50041 [09:44:26]sum+1 = 50042 [09:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 53 25.10.2024 09:44 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191314 ФПД: 268373403887972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191314&fm=268373403887972&tin=02508201610067®Number=0000000000091776&sum=50000 [09:44:27]StoreToDocumentArchive [09:44:27]shift 540 fd 191314 [09:44:27]save to /storage/0540/doc_00191314 [09:44:27]save last doc name /storage/0540/doc_00191314 to /storage/kkm_last_doc_name [09:44:27]save OK [09:44:27]Clear old archive folders... [09:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:27]tlvbuf is 017CE090 [09:44:27]SAM_PROTO_ClearQueue [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 09 00 00 [09:44:27]Write to MH i2c: E2 08 00 F1 7B 80 09 00 00 00 00 00 00 DE [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 F1 7B 00 90 00 E0 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_ClearQueue done [09:44:27]KKMCreateOFDPacket [09:44:27]OFDProtocolAddRootSTLVToBuf [09:44:27]FM_MakeSignedData [09:44:27]FM_MakeSignedData [09:44:27]SAM_PROTO_SignData [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 01 02 [09:44:27]Write to MH i2c: E2 08 00 F2 7B 80 0D 01 02 00 00 00 00 E6 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 F2 7B 00 90 00 E1 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=255 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EB 02 00 35 04 06 00 F4 [09:44:27]Write to MH i2c: E2 02 01 F3 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EB 02 00 35 04 06 00 F4 00 00 6C [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 F3 7B 00 90 00 E2 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=10 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 02 02 05 15 8D 67 E9 64 [09:44:27]Write to MH i2c: E2 0D 00 F4 7B 80 0D 02 02 05 00 15 8D 67 E9 64 00 00 49 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 F4 7B 00 90 00 E3 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 03 02 [09:44:27]Write to MH i2c: E2 08 00 F5 7B 80 0D 03 02 00 00 00 00 EB [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 F5 7B 00 FF 12 53 31 5D FC 75 17 90 00 66 [09:44:27]RAPDU: FF 12 53 31 5D FC 75 17 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_SignData done [09:44:27]FM_MakeSignedData done [09:44:27]CreateOFDProtocolMessage [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 11 00 00 [09:44:27]Write to MH i2c: E2 08 00 F6 7B 80 11 00 00 00 00 00 00 EB [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 F6 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [09:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:28]wFMCommunicate OK [09:44:28]CreateOFDProtocolMessage done [09:44:28]OFDSenderStorePacket 191314 [09:44:28]StoreOFDPacket docnum=191314 [09:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 B1 07 01 BC 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EB 02 00 35 04 06 00 F4 15 8D 67 E9 64 FF 12 53 31 5D FC 75 17 [09:44:28]CheckFolder [09:44:28]dirname=/storage/ofd_packets [09:44:28]CheckFolder done [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00191314 [09:44:28]NVStorageSaveData ofd_packets/00191314 [09:44:28]File name is /storage/ofd_packets/00191314 [09:44:28]Write 301 bytes [09:44:28]NVStorageSaveData done [09:44:28]OFDSenderStorePacket done [09:44:28]KKMCreateOFDPacket done [09:44:28]NVStorageSaveData kkm_last_timestamp [09:44:28]File name is /storage/kkm_last_timestamp [09:44:28]Write 4 bytes [09:44:28]NVStorageSaveData done [09:44:28]ExternCall_PrintAddStr [09:44:28]wPrintStart [09:44:28]Write to MH i2c: 01 00 00 F7 7B 72 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 F7 7B 00 00 00 00 00 FF 0F 87 [09:44:28]RasterBufferAndPrint [09:44:28]line Счет N : (1)30607 [09:44:28]line ИНН: 02508201610067 [09:44:28]line Контрольно-Кассовый Чек [09:44:28]line ПРОДАЖА [09:44:28]line ТРК (МРК, ГНК) : 21 [09:44:28]line Товар: 2710124130 [09:44:28]line Аи-92-К-5 [09:44:28]line 7.480 * 66.90 [09:44:28]line = 500.41 [09:44:28]line НДС 12% НСП 1% [09:44:28]line > о реализуемом товаре [09:44:28]line ОКРУГЛЕНИЕ: -0.41 [09:44:28]line ИТОГО: 500.00 [09:44:28]line Внесено: 500.00 [09:44:28]line СДАЧА: 0.00 [09:44:28]line НСП 1% : 4.43 [09:44:28]line НДС 12% : 53.14 [09:44:28]line Наличными: 500.00 [09:44:28]line Безнал.: 0.00 [09:44:28]line Место: АЗС № 170 "Партнер Нефть" [09:44:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:44:28]line СНО: Общий режим [09:44:28]line Чек 53 25.10.2024 09:44 [09:44:28]line Смена: 540 ФФД: 1.0 [09:44:28]line ЗНМ: 0300000110 [09:44:28]line РНМ: 0000000000091776 [09:44:28]line Версия ККМ: 001 [09:44:28]line ФМ: 0000000000871754 [09:44:28]line ФД: 191314 [09:44:28]line ФПД: 268373403887972 [09:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191314&fm=268373403887972&tin=02508201610067®Number=0000000000091776&sum=50000 [09:44:28]OFD Sender: Processing packet 191314 [packets to send 75, broken 74] [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00191314 [09:44:28]OFD Sender: To server: pG, [09:44:28]CommunicateWithHost lk.salyk.kg:30040 [09:44:28]ConnectInit lk.salyk.kg [09:44:28]written 0, free lines is 4095 [09:44:28]Connected sock=11 [09:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 B1 07 01 BC 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EB 02 00 35 04 06 00 F4 15 8D 67 E9 64 FF 12 53 31 5D FC 75 17 [09:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 52 47 00 BE 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EB 02 00 F4 03 04 00 51 0D 1B 67 B6 04 01 00 00 1D 0C 30 B8 02 9E 8C C1 [09:44:28]CommunicateWithHost err = 0 [09:44:28]CheckOFDResponse [09:44:28]1017 (14) - 77093643461234 [09:44:28]1041 (16) - 0000000000871754 [09:44:28]1040 (4) - 191314 [09:44:28]1012 (4) - 25.10.2024 03:15 [09:44:28]1206 (1) - 0 [09:44:28]OFD Sender: Remove packet 191314 [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00191314 [09:44:28]NVStorageDeleteData [09:44:28]Write to MH i2c: 01 00 00 22 7C 9E [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 22 7C 00 00 00 00 00 AD 0C 5E [09:44:28]RasterBufferAndPrint [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]written 0, free lines is 3251 [09:44:28]MH_Cut [09:44:28]Write to MH i2c: D1 01 00 29 7C 01 77 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 29 7C 00 76 [09:44:28]Write to MH i2c: 01 00 00 2A 7C A6 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:29]OFD Sender: No OFD packet to send [09:44:29]*** Cut start [09:44:29]*** Partial cut [09:44:29]*** CUTSNS_PIN = 1 [09:44:29]*** CUTSNS_PIN = 0 [09:44:29]*** Brake cut motor [09:44:30]Read from MH i2c: 01 [09:44:30]MH_I2C_Read... [09:44:30]*** Stop cut motor [09:44:30]*** Cut end [09:44:30]Read from MH i2c: 01 07 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 07 00 2A 7C 00 00 00 00 00 FF 0F BB [09:44:30]process_action close_receipt done [09:44:30]requested_data is exist [09:44:30]produce_requested_data [09:44:30]requested_item fm.sn is exist - process it [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 11 00 00 [09:44:30]Write to MH i2c: E2 08 00 2B 7C 80 11 00 00 00 00 00 00 21 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 17 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 17 00 2B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [09:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:30]wFMCommunicate OK [09:44:30]requested_item fd.num is exist - process it [09:44:30]SAM_PROTO_GetFieldsCounters [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 13 00 00 [09:44:30]Write to MH i2c: E2 08 00 2C 7C 80 13 00 00 00 00 00 00 24 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 2C 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:44:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetFieldsCounters done [09:44:30]requested_item shift.num is exist - process it [09:44:30]requested_item shift.opened is exist - process it [09:44:30]req_shift_opened [09:44:30]FM_GetShiftState [09:44:30]SAM_PROTO_GetShiftState [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 13 01 00 [09:44:30]Write to MH i2c: E2 08 00 2D 7C 80 13 01 00 00 00 00 00 26 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 2D 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E9 [09:44:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetShiftState done [09:44:30]FM_GetShiftState done [09:44:30]req_shift_opened done [09:44:30]requested_item shift.open_date is exist - process it [09:44:30]req_shift_open_date [09:44:30]req_shift_open_date done [09:44:30]produce_requested_data done [09:44:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191314,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:44:30]process_action_free close_receipt [09:44:30]json_value_free [09:44:30]json_value_free done [09:44:30]process_json_proto returns [09:44:30]Send response to host [09:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191314,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:44:30]free response buf [09:44:30]execute_script done [09:44:30]execute_script returns [09:44:30]free content buf [09:44:30]Sock 9.Close socket [09:44:30]Sock 9.Thread stoped [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:10]accept exits with 8 [09:45:10]New connection [09:45:10]New thread 3066817892 created [09:45:10]Thread 3066961252 joined [09:45:10]Waiting for new connection... [09:45:10] Sock 8.Parse request [09:45:10]Sock 8.Check first char [09:45:10]Sock 8.First char is OK [09:45:10]request: POST /json_proto HTTP/1.0 [09:45:10]Method: POST [09:45:10]URL: /json_proto [09:45:10]Method is POST - this is cgi request [09:45:10]url: /json_proto [09:45:10]query_string will be loaded in cgi processing [09:45:10]execute_cgi json_proto POST (null) [09:45:10]execute_cgi path=json_proto method=POST [09:45:10]POST find Content-Length [09:45:10]Host: 172.17.63.131:8080 [09:45:10]Content-Length: 676 [09:45:10]Content-Type: application/json [09:45:10] [09:45:10]POST finish read [09:45:10]Found Content-Length = 676 [09:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:10]execute_script... [09:45: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)30608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:10]POST & json_proto [09:45:10]process_json_proto [09:45:10]json parsed OK: [09:45:10]protocol is kg_v1.0 [09:45:10]action value=close_receipt [09:45:10]process_action close_receipt [09:45:10]cmd_close_receipt [09:45:10]MH_GetDate [09:45:10]Write to MH i2c: F0 00 00 2E 7C 99 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 09 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 09 00 2E 7C 00 AE 68 1B 67 22 05 6E 64 33 [09:45:10]GetLastDocTimeStamp 1729849474 [09:45:10]current date 1729849518 [09:45:10]FM_GetShiftState [09:45:10]SAM_PROTO_GetShiftState [09:45:10]wFMCommunicate request_size=4 [09:45:10]MH_SAM_APDU [09:45:10]CAPDU: 80 13 01 00 [09:45:10]Write to MH i2c: E2 08 00 2F 7C 80 13 01 00 00 00 00 00 28 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:10]Read from MH i2c: E2 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0E 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0E 00 2F 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EB [09:45:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:45:10]wFMCommunicate OK [09:45:10]SAM_PROTO_GetShiftState done [09:45:10]FM_GetShiftState done [09:45:10]opened in 1729816399 [09:45:10]opened+sec_in_day 1729902799 [09:45:10]quantity*price = 50041 [09:45:10]sum+1 = 50042 [09:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 54 25.10.2024 09:45 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191315 ФПД: 276105393748217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094518&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191315&fm=276105393748217&tin=02508201610067®Number=0000000000091776&sum=50000 [09:45:11]StoreToDocumentArchive [09:45:11]shift 540 fd 191315 [09:45:11]save to /storage/0540/doc_00191315 [09:45:11]save last doc name /storage/0540/doc_00191315 to /storage/kkm_last_doc_name [09:45:11]save OK [09:45:11]Clear old archive folders... [09:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:11]tlvbuf is 01849AD0 [09:45:11]SAM_PROTO_ClearQueue [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 09 00 00 [09:45:11]Write to MH i2c: E2 08 00 3C 7C 80 09 00 00 00 00 00 00 2A [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 3C 7C 00 90 00 2C [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_ClearQueue done [09:45:11]KKMCreateOFDPacket [09:45:11]OFDProtocolAddRootSTLVToBuf [09:45:11]FM_MakeSignedData [09:45:11]FM_MakeSignedData [09:45:11]SAM_PROTO_SignData [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 01 02 [09:45:11]Write to MH i2c: E2 08 00 3D 7C 80 0D 01 02 00 00 00 00 32 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 3D 7C 00 90 00 2D [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=255 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EB 02 00 35 04 06 00 FB [09:45:11]Write to MH i2c: E2 02 01 3E 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EB 02 00 35 04 06 00 FB 00 00 ED [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 3E 7C 00 90 00 2E [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=10 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 02 02 05 1D CB EA 38 F9 [09:45:11]Write to MH i2c: E2 0D 00 3F 7C 80 0D 02 02 05 00 1D CB EA 38 F9 00 00 42 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 3F 7C 00 90 00 2F [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 03 02 [09:45:11]Write to MH i2c: E2 08 00 40 7C 80 0D 03 02 00 00 00 00 37 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0B 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0B 00 40 7C 00 29 4C 55 81 31 E5 2D 5F 90 00 25 [09:45:11]RAPDU: 29 4C 55 81 31 E5 2D 5F 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_SignData done [09:45:11]FM_MakeSignedData done [09:45:11]CreateOFDProtocolMessage [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 11 00 00 [09:45:11]Write to MH i2c: E2 08 00 41 7C 80 11 00 00 00 00 00 00 37 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 41 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [09:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:11]wFMCommunicate OK [09:45:11]CreateOFDProtocolMessage done [09:45:11]OFDSenderStorePacket 191315 [09:45:11]StoreOFDPacket docnum=191315 [09:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 62 07 01 C9 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EB 02 00 35 04 06 00 FB 1D CB EA 38 F9 29 4C 55 81 31 E5 2D 5F [09:45:11]CheckFolder [09:45:11]dirname=/storage/ofd_packets [09:45:11]CheckFolder done [09:45:11]ProducePacketName [09:45:11]name=ofd_packets/00191315 [09:45:11]NVStorageSaveData ofd_packets/00191315 [09:45:11]File name is /storage/ofd_packets/00191315 [09:45:11]Write 301 bytes [09:45:11]NVStorageSaveData done [09:45:11]OFDSenderStorePacket done [09:45:11]KKMCreateOFDPacket done [09:45:11]NVStorageSaveData kkm_last_timestamp [09:45:11]File name is /storage/kkm_last_timestamp [09:45:11]Write 4 bytes [09:45:11]NVStorageSaveData done [09:45:11]ExternCall_PrintAddStr [09:45:11]wPrintStart [09:45:11]Write to MH i2c: 01 00 00 42 7C BE [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 42 7C 00 00 00 00 00 FF 0F D3 [09:45:11]RasterBufferAndPrint [09:45:11]line Счет N : (1)30608 [09:45:11]line ИНН: 02508201610067 [09:45:11]line Контрольно-Кассовый Чек [09:45:11]line ПРОДАЖА [09:45:11]line ТРК (МРК, ГНК) : 12 [09:45:11]line Товар: 2710124130 [09:45:11]line Аи-92-К-5 [09:45:11]line 7.480 * 66.90 [09:45:11]line = 500.41 [09:45:11]line НДС 12% НСП 1% [09:45:11]line > о реализуемом товаре [09:45:11]line ОКРУГЛЕНИЕ: -0.41 [09:45:11]line ИТОГО: 500.00 [09:45:11]line Внесено: 500.00 [09:45:11]line СДАЧА: 0.00 [09:45:11]line НСП 1% : 4.43 [09:45:11]line НДС 12% : 53.14 [09:45:11]line Наличными: 500.00 [09:45:11]line Безнал.: 0.00 [09:45:11]line Место: АЗС № 170 "Партнер Нефть" [09:45:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:45:11]line СНО: Общий режим [09:45:11]line Чек 54 25.10.2024 09:45 [09:45:11]line Смена: 540 ФФД: 1.0 [09:45:11]line ЗНМ: 0300000110 [09:45:11]line РНМ: 0000000000091776 [09:45:11]line Версия ККМ: 001 [09:45:11]line ФМ: 0000000000871754 [09:45:11]line ФД: 191315 [09:45:11]line ФПД: 276105393748217 [09:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094518&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191315&fm=276105393748217&tin=02508201610067®Number=0000000000091776&sum=50000 [09:45:12]OFD Sender: Processing packet 191315 [packets to send 75, broken 74] [09:45:12]ProducePacketName [09:45:12]name=ofd_packets/00191315 [09:45:12]OFD Sender: To server: pG, [09:45:12]CommunicateWithHost lk.salyk.kg:30040 [09:45:12]ConnectInit lk.salyk.kg [09:45:12]written 0, free lines is 4095 [09:45:12]Connected sock=10 [09:45:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 62 07 01 C9 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 68 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EB 02 00 35 04 06 00 FB 1D CB EA 38 F9 29 4C 55 81 31 E5 2D 5F [09:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 E2 47 00 95 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 31 37 35 34 10 04 04 00 53 EB 02 00 F4 03 04 00 7D 0D 1B 67 B6 04 01 00 00 04 DD 51 63 E5 2D E1 45 [09:45:12]CommunicateWithHost err = 0 [09:45:12]CheckOFDResponse [09:45:12]1017 (14) - 77093643461234 [09:45:12]1041 (16) - 0000000000871754 [09:45:12]1040 (4) - 191315 [09:45:12]1012 (4) - 25.10.2024 03:16 [09:45:12]1206 (1) - 0 [09:45:12]OFD Sender: Remove packet 191315 [09:45:12]ProducePacketName [09:45:12]name=ofd_packets/00191315 [09:45:12]NVStorageDeleteData [09:45:12]Write to MH i2c: 01 00 00 6D 7C E9 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 07 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 07 00 6D 7C 00 00 00 00 00 B7 0C B3 [09:45:12]RasterBufferAndPrint [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]written 0, free lines is 3262 [09:45:12]MH_Cut [09:45:12]Write to MH i2c: D1 01 00 74 7C 01 C2 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 01 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 01 00 74 7C 00 C1 [09:45:12]Write to MH i2c: 01 00 00 75 7C F1 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:13]OFD Sender: No OFD packet to send [09:45:13]*** Cut start [09:45:13]*** Partial cut [09:45:13]*** CUTSNS_PIN = 1 [09:45:13]*** CUTSNS_PIN = 0 [09:45:13]*** Brake cut motor [09:45:14]Read from MH i2c: 01 [09:45:14]MH_I2C_Read... [09:45:14]*** Stop cut motor [09:45:14]*** Cut end [09:45:14]Read from MH i2c: 01 07 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: 01 07 00 75 7C 00 00 00 00 00 FF 0F 06 [09:45:14]process_action close_receipt done [09:45:14]requested_data is exist [09:45:14]produce_requested_data [09:45:14]requested_item fm.sn is exist - process it [09:45:14]wFMCommunicate request_size=4 [09:45:14]MH_SAM_APDU [09:45:14]CAPDU: 80 11 00 00 [09:45:14]Write to MH i2c: E2 08 00 76 7C 80 11 00 00 00 00 00 00 6C [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 17 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 17 00 76 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [09:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:14]wFMCommunicate OK [09:45:14]requested_item fd.num is exist - process it [09:45:14]SAM_PROTO_GetFieldsCounters [09:45:14]wFMCommunicate request_size=4 [09:45:14]MH_SAM_APDU [09:45:14]CAPDU: 80 13 00 00 [09:45:14]Write to MH i2c: E2 08 00 77 7C 80 13 00 00 00 00 00 00 6F [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 62 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 62 00 77 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:45:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:14]wFMCommunicate OK [09:45:14]SAM_PROTO_GetFieldsCounters done [09:45:14]requested_item shift.num is exist - process it [09:45:14]requested_item shift.opened is exist - process it [09:45:14]req_shift_opened [09:45:14]FM_GetShiftState [09:45:14]SAM_PROTO_GetShiftState [09:45:14]wFMCommunicate request_size=4 [09:45:14]MH_SAM_APDU [09:45:14]CAPDU: 80 13 01 00 [09:45:14]Write to MH i2c: E2 08 00 78 7C 80 13 01 00 00 00 00 00 71 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 78 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 34 [09:45:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:45:14]wFMCommunicate OK [09:45:14]SAM_PROTO_GetShiftState done [09:45:14]FM_GetShiftState done [09:45:14]req_shift_opened done [09:45:14]requested_item shift.open_date is exist - process it [09:45:14]req_shift_open_date [09:45:14]req_shift_open_date done [09:45:14]produce_requested_data done [09:45:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191315,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:45:14]process_action_free close_receipt [09:45:14]json_value_free [09:45:14]json_value_free done [09:45:14]process_json_proto returns [09:45:14]Send response to host [09:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191315,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:45:14]free response buf [09:45:14]execute_script done [09:45:14]execute_script returns [09:45:14]free content buf [09:45:14]Sock 8.Close socket [09:45:14]Sock 8.Thread stoped [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:54]accept exits with 9 [09:46:54]New connection [09:46:54]New thread 3066961252 created [09:46:54]Thread 3066817892 joined [09:46:54]Waiting for new connection... [09:46:54] Sock 9.Parse request [09:46:54]Sock 9.Check first char [09:46:54]Sock 9.First char is OK [09:46:54]request: POST /json_proto HTTP/1.0 [09:46:54]Method: POST [09:46:54]URL: /json_proto [09:46:54]Method is POST - this is cgi request [09:46:54]url: /json_proto [09:46:54]query_string will be loaded in cgi processing [09:46:54]execute_cgi json_proto POST (null) [09:46:54]execute_cgi path=json_proto method=POST [09:46:54]POST find Content-Length [09:46:54]Host: 172.17.63.131:8080 [09:46:54]Content-Length: 673 [09:46:54]Content-Type: application/json [09:46:54] [09:46:54]POST finish read [09:46:54]Found Content-Length = 673 [09:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.440, "sum" : 490.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:54]execute_script... [09:46: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)30609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.440, "sum" : 490.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:54]POST & json_proto [09:46:54]process_json_proto [09:46:54]json parsed OK: [09:46:54]protocol is kg_v1.0 [09:46:54]action value=close_receipt [09:46:54]process_action close_receipt [09:46:54]cmd_close_receipt [09:46:54]MH_GetDate [09:46:54]Write to MH i2c: F0 00 00 79 7C E4 [09:46:54]Write i2c OK [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: F0 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: F0 09 00 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: F0 09 00 79 7C 00 16 69 1B 67 22 05 6E 64 E7 [09:46:54]GetLastDocTimeStamp 1729849518 [09:46:54]current date 1729849622 [09:46:54]FM_GetShiftState [09:46:54]SAM_PROTO_GetShiftState [09:46:54]wFMCommunicate request_size=4 [09:46:54]MH_SAM_APDU [09:46:54]CAPDU: 80 13 01 00 [09:46:54]Write to MH i2c: E2 08 00 7A 7C 80 13 01 00 00 00 00 00 73 [09:46:54]Write i2c OK [09:46:54]MH_I2C_Read... [09:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:54]Read from MH i2c: E2 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 0E 00 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 0E 00 7A 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 36 [09:46:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:46:54]wFMCommunicate OK [09:46:54]SAM_PROTO_GetShiftState done [09:46:54]FM_GetShiftState done [09:46:54]opened in 1729816399 [09:46:54]opened+sec_in_day 1729902799 [09:46:54]quantity*price = 49072 [09:46:54]sum+1 = 49074 [09:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.11 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 55 25.10.2024 09:47 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191316 ФПД: 131345473885894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094702&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191316&fm=131345473885894&tin=02508201610067®Number=0000000000091776&sum=49000 [09:46:55]StoreToDocumentArchive [09:46:55]shift 540 fd 191316 [09:46:55]save to /storage/0540/doc_00191316 [09:46:55]save last doc name /storage/0540/doc_00191316 to /storage/kkm_last_doc_name [09:46:55]save OK [09:46:55]Clear old archive folders... [09:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:55]tlvbuf is 01777710 [09:46:55]SAM_PROTO_ClearQueue [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 09 00 00 [09:46:55]Write to MH i2c: E2 08 00 87 7C 80 09 00 00 00 00 00 00 75 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 87 7C 00 90 00 77 [09:46:55]RAPDU: 90 00 [09:46:55]wFMCommunicate OK [09:46:55]SAM_PROTO_ClearQueue done [09:46:55]KKMCreateOFDPacket [09:46:55]OFDProtocolAddRootSTLVToBuf [09:46:55]FM_MakeSignedData [09:46:55]FM_MakeSignedData [09:46:55]SAM_PROTO_SignData [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 0D 01 02 [09:46:55]Write to MH i2c: E2 08 00 88 7C 80 0D 01 02 00 00 00 00 7D [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 88 7C 00 90 00 78 [09:46:55]RAPDU: 90 00 [09:46:55]wFMCommunicate OK [09:46:55]wFMCommunicate request_size=255 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 16 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EB 02 00 35 04 06 00 77 75 40 50 [09:46:55]Write to MH i2c: E2 02 01 89 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 16 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EB 02 00 35 04 06 00 77 75 40 50 00 00 F4 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 89 7C 00 90 00 79 [09:46:55]RAPDU: 90 00 [09:46:55]wFMCommunicate OK [09:46:55]wFMCommunicate request_size=7 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 0D 02 02 02 56 C6 [09:46:55]Write to MH i2c: E2 0A 00 8A 7C 80 0D 02 02 02 00 56 C6 00 00 A0 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 03 00 8A 7C 00 90 00 7A [09:46:55]RAPDU: 90 00 [09:46:55]wFMCommunicate OK [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 0D 03 02 [09:46:55]Write to MH i2c: E2 08 00 8B 7C 80 0D 03 02 00 00 00 00 82 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0B 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0B 00 8B 7C 00 58 2E AD E0 81 32 B2 91 90 00 8C [09:46:55]RAPDU: 58 2E AD E0 81 32 B2 91 90 00 [09:46:55]wFMCommunicate OK [09:46:55]SAM_PROTO_SignData done [09:46:55]FM_MakeSignedData done [09:46:55]CreateOFDProtocolMessage [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 11 00 00 [09:46:55]Write to MH i2c: E2 08 00 8C 7C 80 11 00 00 00 00 00 00 82 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 17 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 17 00 8C 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [09:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:46:56]wFMCommunicate OK [09:46:56]CreateOFDProtocolMessage done [09:46:56]OFDSenderStorePacket 191316 [09:46:56]StoreOFDPacket docnum=191316 [09:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CE D7 04 01 4C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 16 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EB 02 00 35 04 06 00 77 75 40 50 56 C6 58 2E AD E0 81 32 B2 91 [09:46:56]CheckFolder [09:46:56]dirname=/storage/ofd_packets [09:46:56]CheckFolder done [09:46:56]ProducePacketName [09:46:56]name=ofd_packets/00191316 [09:46:56]NVStorageSaveData ofd_packets/00191316 [09:46:56]File name is /storage/ofd_packets/00191316 [09:46:56]Write 298 bytes [09:46:56]NVStorageSaveData done [09:46:56]OFDSenderStorePacket done [09:46:56]KKMCreateOFDPacket done [09:46:56]NVStorageSaveData kkm_last_timestamp [09:46:56]File name is /storage/kkm_last_timestamp [09:46:56]Write 4 bytes [09:46:56]NVStorageSaveData done [09:46:56]ExternCall_PrintAddStr [09:46:56]wPrintStart [09:46:56]Write to MH i2c: 01 00 00 8D 7C 09 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 8D 7C 00 00 00 00 00 FF 0F 1E [09:46:56]RasterBufferAndPrint [09:46:56]line Счет N : (1)30609 [09:46:56]line ИНН: 02508201610067 [09:46:56]line Контрольно-Кассовый Чек [09:46:56]line ПРОДАЖА [09:46:56]line ТРК (МРК, ГНК) : 22 [09:46:56]line Товар: 2710194210 [09:46:56]line ДТ-К-5 [09:46:56]line 6.440 * 76.20 [09:46:56]line = 490.73 [09:46:56]line НДС 12% НСП 1% [09:46:56]line > о реализуемом товаре [09:46:56]line ОКРУГЛЕНИЕ: -0.73 [09:46:56]line ИТОГО: 490.00 [09:46:56]line Внесено: 490.00 [09:46:56]line СДАЧА: 0.00 [09:46:56]line НСП 1% : 4.34 [09:46:56]line НДС 12% : 52.11 [09:46:56]line Наличными: 490.00 [09:46:56]line Безнал.: 0.00 [09:46:56]line Место: АЗС № 170 "Партнер Нефть" [09:46:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:46:56]line СНО: Общий режим [09:46:56]line Чек 55 25.10.2024 09:47 [09:46:56]line Смена: 540 ФФД: 1.0 [09:46:56]line ЗНМ: 0300000110 [09:46:56]line РНМ: 0000000000091776 [09:46:56]line Версия ККМ: 001 [09:46:56]line ФМ: 0000000000871754 [09:46:56]line ФД: 191316 [09:46:56]line ФПД: 131345473885894 [09:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094702&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191316&fm=131345473885894&tin=02508201610067®Number=0000000000091776&sum=49000 [09:46:56]OFD Sender: Processing packet 191316 [packets to send 75, broken 74] [09:46:56]ProducePacketName [09:46:56]name=ofd_packets/00191316 [09:46:56]OFD Sender: To server: pG, [09:46:56]CommunicateWithHost lk.salyk.kg:30040 [09:46:56]ConnectInit lk.salyk.kg [09:46:56]written 0, free lines is 4095 [09:46:56]Connected sock=10 [09:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CE D7 04 01 4C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 16 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EB 02 00 35 04 06 00 77 75 40 50 56 C6 58 2E AD E0 81 32 B2 91 [09:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 13 65 47 00 D2 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 31 37 35 34 10 04 04 00 54 EB 02 00 F4 03 04 00 E5 0D 1B 67 B6 04 01 00 00 34 86 02 3B 4D CD 43 27 [09:46:56]CommunicateWithHost err = 0 [09:46:56]CheckOFDResponse [09:46:56]1017 (14) - 77093643461234 [09:46:56]1041 (16) - 0000000000871754 [09:46:56]1040 (4) - 191316 [09:46:56]1012 (4) - 25.10.2024 03:17 [09:46:56]1206 (1) - 0 [09:46:56]OFD Sender: Remove packet 191316 [09:46:56]ProducePacketName [09:46:56]name=ofd_packets/00191316 [09:46:56]NVStorageDeleteData [09:46:56]Write to MH i2c: 01 00 00 B8 7C 34 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 B8 7C 00 00 00 00 00 BC 0C 03 [09:46:56]RasterBufferAndPrint [09:46:56]line [09:46:56]line [09:46:56]line [09:46:56]line [09:46:56]line [09:46:56]written 0, free lines is 3267 [09:46:56]MH_Cut [09:46:56]Write to MH i2c: D1 01 00 BF 7C 01 0D [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D1 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D1 01 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D1 01 00 BF 7C 00 0C [09:46:56]Write to MH i2c: 01 00 00 C0 7C 3C [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:57]OFD Sender: No OFD packet to send [09:46:57]*** Cut start [09:46:57]*** Partial cut [09:46:57]*** CUTSNS_PIN = 1 [09:46:57]*** CUTSNS_PIN = 0 [09:46:57]*** Brake cut motor [09:46:58]Read from MH i2c: 01 [09:46:58]MH_I2C_Read... [09:46:58]*** Stop cut motor [09:46:58]*** Cut end [09:46:58]Read from MH i2c: 01 07 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 C0 7C 00 00 00 00 00 FF 0F 51 [09:46:58]process_action close_receipt done [09:46:58]requested_data is exist [09:46:58]produce_requested_data [09:46:58]requested_item fm.sn is exist - process it [09:46:58]wFMCommunicate request_size=4 [09:46:58]MH_SAM_APDU [09:46:58]CAPDU: 80 11 00 00 [09:46:58]Write to MH i2c: E2 08 00 C1 7C 80 11 00 00 00 00 00 00 B7 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:58]Read from MH i2c: E2 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 17 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 17 00 C1 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [09:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:46:58]wFMCommunicate OK [09:46:58]requested_item fd.num is exist - process it [09:46:58]SAM_PROTO_GetFieldsCounters [09:46:58]wFMCommunicate request_size=4 [09:46:58]MH_SAM_APDU [09:46:58]CAPDU: 80 13 00 00 [09:46:58]Write to MH i2c: E2 08 00 C2 7C 80 13 00 00 00 00 00 00 BA [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:58]Read from MH i2c: E2 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 62 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 62 00 C2 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [09:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:58]wFMCommunicate OK [09:46:58]SAM_PROTO_GetFieldsCounters done [09:46:58]requested_item shift.num is exist - process it [09:46:58]requested_item shift.opened is exist - process it [09:46:58]req_shift_opened [09:46:58]FM_GetShiftState [09:46:58]SAM_PROTO_GetShiftState [09:46:58]wFMCommunicate request_size=4 [09:46:58]MH_SAM_APDU [09:46:58]CAPDU: 80 13 01 00 [09:46:58]Write to MH i2c: E2 08 00 C3 7C 80 13 01 00 00 00 00 00 BC [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:58]Read from MH i2c: E2 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 0E 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 0E 00 C3 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7F [09:46:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:46:58]wFMCommunicate OK [09:46:58]SAM_PROTO_GetShiftState done [09:46:58]FM_GetShiftState done [09:46:58]req_shift_opened done [09:46:58]requested_item shift.open_date is exist - process it [09:46:58]req_shift_open_date [09:46:58]req_shift_open_date done [09:46:58]produce_requested_data done [09:46:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191316,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:46:58]process_action_free close_receipt [09:46:58]json_value_free [09:46:58]json_value_free done [09:46:58]process_json_proto returns [09:46:58]Send response to host [09:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191316,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:46:58]free response buf [09:46:58]execute_script done [09:46:58]execute_script returns [09:46:58]free content buf [09:46:58]Sock 9.Close socket [09:46:58]Sock 9.Thread stoped [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]accept exits with 8 [09:48:47]New connection [09:48:47]New thread 3066817892 created [09:48:47]Thread 3066961252 joined [09:48:47]Waiting for new connection... [09:48:47] Sock 8.Parse request [09:48:47]Sock 8.Check first char [09:48:47]Sock 8.First char is OK [09:48:47]request: POST /json_proto HTTP/1.0 [09:48:47]Method: POST [09:48:47]URL: /json_proto [09:48:47]Method is POST - this is cgi request [09:48:47]url: /json_proto [09:48:47]query_string will be loaded in cgi processing [09:48:47]execute_cgi json_proto POST (null) [09:48:47]execute_cgi path=json_proto method=POST [09:48:47]POST find Content-Length [09:48:47]Host: 172.17.63.131:8080 [09:48:47]Content-Length: 676 [09:48:47]Content-Type: application/json [09:48:47] [09:48:47]POST finish read [09:48:47]Found Content-Length = 676 [09:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:47]execute_script... [09:48: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)30611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:47]POST & json_proto [09:48:47]process_json_proto [09:48:47]json parsed OK: [09:48:47]protocol is kg_v1.0 [09:48:47]action value=close_receipt [09:48:47]process_action close_receipt [09:48:47]cmd_close_receipt [09:48:47]MH_GetDate [09:48:47]Write to MH i2c: F0 00 00 C4 7C 2F [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 09 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 09 00 C4 7C 00 87 69 1B 67 22 05 6E 64 A3 [09:48:47]GetLastDocTimeStamp 1729849622 [09:48:47]current date 1729849735 [09:48:47]FM_GetShiftState [09:48:47]SAM_PROTO_GetShiftState [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 01 00 [09:48:47]Write to MH i2c: E2 08 00 C5 7C 80 13 01 00 00 00 00 00 BE [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]OFD Sender: No OFD packet to send [09:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 C5 7C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 81 [09:48:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetShiftState done [09:48:47]FM_GetShiftState done [09:48:47]opened in 1729816399 [09:48:47]opened+sec_in_day 1729902799 [09:48:47]quantity*price = 50041 [09:48:47]sum+1 = 50042 [09:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 56 25.10.2024 09:48 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191317 ФПД: 208830687457111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094855&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191317&fm=208830687457111&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:48]StoreToDocumentArchive [09:48:48]shift 540 fd 191317 [09:48:48]save to /storage/0540/doc_00191317 [09:48:48]save last doc name /storage/0540/doc_00191317 to /storage/kkm_last_doc_name [09:48:48]save OK [09:48:48]Clear old archive folders... [09:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:48]tlvbuf is 01708F40 [09:48:48]SAM_PROTO_ClearQueue [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 09 00 00 [09:48:48]Write to MH i2c: E2 08 00 D2 7C 80 09 00 00 00 00 00 00 C0 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 D2 7C 00 90 00 C2 [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_ClearQueue done [09:48:48]KKMCreateOFDPacket [09:48:48]OFDProtocolAddRootSTLVToBuf [09:48:48]FM_MakeSignedData [09:48:48]FM_MakeSignedData [09:48:48]SAM_PROTO_SignData [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 01 02 [09:48:48]Write to MH i2c: E2 08 00 D3 7C 80 0D 01 02 00 00 00 00 C8 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 D3 7C 00 90 00 C3 [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=255 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 87 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EB 02 00 35 04 06 00 BD [09:48:48]Write to MH i2c: E2 02 01 D4 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 87 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EB 02 00 35 04 06 00 BD 00 00 23 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 D4 7C 00 90 00 C4 [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=10 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 02 02 05 EE 2E F1 AF 57 [09:48:48]Write to MH i2c: E2 0D 00 D5 7C 80 0D 02 02 05 00 EE 2E F1 AF 57 00 00 E8 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 D5 7C 00 90 00 C5 [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 03 02 [09:48:48]Write to MH i2c: E2 08 00 D6 7C 80 0D 03 02 00 00 00 00 CD [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0B 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0B 00 D6 7C 00 2F AA 52 83 92 17 F4 1C 90 00 35 [09:48:48]RAPDU: 2F AA 52 83 92 17 F4 1C 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_SignData done [09:48:48]FM_MakeSignedData done [09:48:48]CreateOFDProtocolMessage [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 11 00 00 [09:48:48]Write to MH i2c: E2 08 00 D7 7C 80 11 00 00 00 00 00 00 CD [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:49]Read from MH i2c: E2 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: E2 17 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: E2 17 00 D7 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [09:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:49]wFMCommunicate OK [09:48:49]CreateOFDProtocolMessage done [09:48:49]OFDSenderStorePacket 191317 [09:48:49]StoreOFDPacket docnum=191317 [09:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 F7 07 01 F8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 87 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EB 02 00 35 04 06 00 BD EE 2E F1 AF 57 2F AA 52 83 92 17 F4 1C [09:48:49]CheckFolder [09:48:49]dirname=/storage/ofd_packets [09:48:49]CheckFolder done [09:48:49]ProducePacketName [09:48:49]name=ofd_packets/00191317 [09:48:49]NVStorageSaveData ofd_packets/00191317 [09:48:49]File name is /storage/ofd_packets/00191317 [09:48:49]Write 301 bytes [09:48:49]NVStorageSaveData done [09:48:49]OFDSenderStorePacket done [09:48:49]KKMCreateOFDPacket done [09:48:49]NVStorageSaveData kkm_last_timestamp [09:48:49]File name is /storage/kkm_last_timestamp [09:48:49]Write 4 bytes [09:48:49]NVStorageSaveData done [09:48:49]ExternCall_PrintAddStr [09:48:49]wPrintStart [09:48:49]Write to MH i2c: 01 00 00 D8 7C 54 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 D8 7C 00 00 00 00 00 FF 0F 69 [09:48:49]RasterBufferAndPrint [09:48:49]line Счет N : (1)30611 [09:48:49]line ИНН: 02508201610067 [09:48:49]line Контрольно-Кассовый Чек [09:48:49]line ПРОДАЖА [09:48:49]line ТРК (МРК, ГНК) : 21 [09:48:49]line Товар: 2710124130 [09:48:49]line Аи-92-К-5 [09:48:49]line 7.480 * 66.90 [09:48:49]line = 500.41 [09:48:49]line НДС 12% НСП 1% [09:48:49]line > о реализуемом товаре [09:48:49]line ОКРУГЛЕНИЕ: -0.41 [09:48:49]line ИТОГО: 500.00 [09:48:49]line Внесено: 500.00 [09:48:49]line СДАЧА: 0.00 [09:48:49]line НСП 1% : 4.43 [09:48:49]line НДС 12% : 53.14 [09:48:49]line Наличными: 500.00 [09:48:49]line Безнал.: 0.00 [09:48:49]line Место: АЗС № 170 "Партнер Нефть" [09:48:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:48:49]line СНО: Общий режим [09:48:49]line Чек 56 25.10.2024 09:48 [09:48:49]line Смена: 540 ФФД: 1.0 [09:48:49]line ЗНМ: 0300000110 [09:48:49]line РНМ: 0000000000091776 [09:48:49]line Версия ККМ: 001 [09:48:49]line ФМ: 0000000000871754 [09:48:49]line ФД: 191317 [09:48:49]line ФПД: 208830687457111 [09:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094855&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191317&fm=208830687457111&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:49]OFD Sender: Processing packet 191317 [packets to send 75, broken 74] [09:48:49]ProducePacketName [09:48:49]name=ofd_packets/00191317 [09:48:49]OFD Sender: To server: pG, [09:48:49]CommunicateWithHost lk.salyk.kg:30040 [09:48:49]ConnectInit lk.salyk.kg [09:48:49]written 0, free lines is 4095 [09:48:49]Connected sock=10 [09:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 F7 07 01 F8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 87 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EB 02 00 35 04 06 00 BD EE 2E F1 AF 57 2F AA 52 83 92 17 F4 1C [09:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 8A 47 00 06 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EB 02 00 F4 03 04 00 56 0E 1B 67 B6 04 01 00 00 25 9E 9C CC 73 0C 02 3B [09:48:49]CommunicateWithHost err = 0 [09:48:49]CheckOFDResponse [09:48:49]1017 (14) - 77093643461234 [09:48:49]1041 (16) - 0000000000871754 [09:48:49]1040 (4) - 191317 [09:48:49]1012 (4) - 25.10.2024 03:19 [09:48:49]1206 (1) - 0 [09:48:49]OFD Sender: Remove packet 191317 [09:48:49]ProducePacketName [09:48:49]name=ofd_packets/00191317 [09:48:49]NVStorageDeleteData [09:48:49]Write to MH i2c: 01 00 00 03 7D 80 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 03 7D 00 00 00 00 00 AA 0C 3D [09:48:49]RasterBufferAndPrint [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]written 0, free lines is 3248 [09:48:49]MH_Cut [09:48:49]Write to MH i2c: D1 01 00 0A 7D 01 59 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 01 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 01 00 0A 7D 00 58 [09:48:49]Write to MH i2c: 01 00 00 0B 7D 88 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:50]OFD Sender: No OFD packet to send [09:48:50]*** Cut start [09:48:50]*** Partial cut [09:48:50]*** CUTSNS_PIN = 1 [09:48:50]*** CUTSNS_PIN = 0 [09:48:50]*** Brake cut motor [09:48:51]Read from MH i2c: 01 [09:48:51]MH_I2C_Read... [09:48:51]*** Stop cut motor [09:48:51]*** Cut end [09:48:51]Read from MH i2c: 01 07 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 0B 7D 00 00 00 00 00 FF 0F 9D [09:48:51]process_action close_receipt done [09:48:51]requested_data is exist [09:48:51]produce_requested_data [09:48:51]requested_item fm.sn is exist - process it [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 11 00 00 [09:48:51]Write to MH i2c: E2 08 00 0C 7D 80 11 00 00 00 00 00 00 03 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 0C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [09:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:51]wFMCommunicate OK [09:48:51]requested_item fd.num is exist - process it [09:48:51]SAM_PROTO_GetFieldsCounters [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 00 00 [09:48:51]Write to MH i2c: E2 08 00 0D 7D 80 13 00 00 00 00 00 00 06 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 0D 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetFieldsCounters done [09:48:51]requested_item shift.num is exist - process it [09:48:51]requested_item shift.opened is exist - process it [09:48:51]req_shift_opened [09:48:51]FM_GetShiftState [09:48:51]SAM_PROTO_GetShiftState [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 01 00 [09:48:51]Write to MH i2c: E2 08 00 0E 7D 80 13 01 00 00 00 00 00 08 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 0E 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CB [09:48:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetShiftState done [09:48:51]FM_GetShiftState done [09:48:51]req_shift_opened done [09:48:51]requested_item shift.open_date is exist - process it [09:48:51]req_shift_open_date [09:48:51]req_shift_open_date done [09:48:51]produce_requested_data done [09:48:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191317,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:48:51]process_action_free close_receipt [09:48:51]json_value_free [09:48:51]json_value_free done [09:48:51]process_json_proto returns [09:48:51]Send response to host [09:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191317,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:48:51]free response buf [09:48:51]execute_script done [09:48:51]execute_script returns [09:48:51]free content buf [09:48:51]Sock 8.Close socket [09:48:51]Sock 8.Thread stoped [09:48:54]accept exits with 9 [09:48:54]New connection [09:48:54]New thread 3066961252 created [09:48:54]Thread 3066817892 joined [09:48:54]Waiting for new connection... [09:48:54] Sock 9.Parse request [09:48:54]Sock 9.Check first char [09:48:54]Sock 9.First char is OK [09:48:54]request: POST /json_proto HTTP/1.0 [09:48:54]Method: POST [09:48:54]URL: /json_proto [09:48:54]Method is POST - this is cgi request [09:48:54]url: /json_proto [09:48:54]query_string will be loaded in cgi processing [09:48:54]execute_cgi json_proto POST (null) [09:48:54]execute_cgi path=json_proto method=POST [09:48:54]POST find Content-Length [09:48:54]Host: 172.17.63.131:8080 [09:48:54]Content-Length: 673 [09:48:54]Content-Type: application/json [09:48:54] [09:48:54]POST finish read [09:48:54]Found Content-Length = 673 [09:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:48:54]execute_script... [09:48: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)30610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:48:54]POST & json_proto [09:48:54]process_json_proto [09:48:54]json parsed OK: [09:48:54]protocol is kg_v1.0 [09:48:54]action value=close_receipt [09:48:54]process_action close_receipt [09:48:54]cmd_close_receipt [09:48:54]MH_GetDate [09:48:54]Write to MH i2c: F0 00 00 0F 7D 7B [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: F0 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: F0 09 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: F0 09 00 0F 7D 00 8E 69 1B 67 22 05 6E 64 F6 [09:48:54]GetLastDocTimeStamp 1729849735 [09:48:54]current date 1729849742 [09:48:54]FM_GetShiftState [09:48:54]SAM_PROTO_GetShiftState [09:48:54]wFMCommunicate request_size=4 [09:48:54]MH_SAM_APDU [09:48:54]CAPDU: 80 13 01 00 [09:48:54]Write to MH i2c: E2 08 00 10 7D 80 13 01 00 00 00 00 00 0A [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:54]Read from MH i2c: E2 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 0E 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 0E 00 10 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CD [09:48:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:48:54]wFMCommunicate OK [09:48:54]SAM_PROTO_GetShiftState done [09:48:54]FM_GetShiftState done [09:48:54]opened in 1729816399 [09:48:54]opened+sec_in_day 1729902799 [09:48:54]quantity*price = 50063 [09:48:54]sum+1 = 50064 [09:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 57 25.10.2024 09:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191318 ФПД: 26905047188164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094902&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191318&fm=26905047188164&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:55]StoreToDocumentArchive [09:48:55]shift 540 fd 191318 [09:48:55]save to /storage/0540/doc_00191318 [09:48:55]save last doc name /storage/0540/doc_00191318 to /storage/kkm_last_doc_name [09:48:55]save OK [09:48:55]Clear old archive folders... [09:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:55]tlvbuf is 01612320 [09:48:55]SAM_PROTO_ClearQueue [09:48:55]wFMCommunicate request_size=4 [09:48:55]MH_SAM_APDU [09:48:55]CAPDU: 80 09 00 00 [09:48:55]Write to MH i2c: E2 08 00 1D 7D 80 09 00 00 00 00 00 00 0C [09:48:55]Write i2c OK [09:48:55]MH_I2C_Read... [09:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:55]Read from MH i2c: E2 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 03 00 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 03 00 1D 7D 00 90 00 0E [09:48:55]RAPDU: 90 00 [09:48:55]wFMCommunicate OK [09:48:55]SAM_PROTO_ClearQueue done [09:48:55]KKMCreateOFDPacket [09:48:55]OFDProtocolAddRootSTLVToBuf [09:48:55]FM_MakeSignedData [09:48:55]FM_MakeSignedData [09:48:55]SAM_PROTO_SignData [09:48:55]wFMCommunicate request_size=4 [09:48:55]MH_SAM_APDU [09:48:55]CAPDU: 80 0D 01 02 [09:48:55]Write to MH i2c: E2 08 00 1E 7D 80 0D 01 02 00 00 00 00 14 [09:48:55]Write i2c OK [09:48:55]MH_I2C_Read... [09:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:55]Read from MH i2c: E2 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 03 00 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 03 00 1E 7D 00 90 00 0F [09:48:55]RAPDU: 90 00 [09:48:55]wFMCommunicate OK [09:48:55]wFMCommunicate request_size=255 [09:48:55]MH_SAM_APDU [09:48:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 8E 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EB 02 00 35 04 06 00 18 78 51 C7 [09:48:55]Write to MH i2c: E2 02 01 1F 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 39 00 00 00 F4 03 04 00 8E 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EB 02 00 35 04 06 00 18 78 51 C7 00 00 E1 [09:48:55]Write i2c OK [09:48:55]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 1F 7D 00 90 00 10 [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]wFMCommunicate request_size=7 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 0D 02 02 02 C2 C4 [09:48:56]Write to MH i2c: E2 0A 00 20 7D 80 0D 02 02 02 00 C2 C4 00 00 A1 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 20 7D 00 90 00 11 [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 0D 03 02 [09:48:56]Write to MH i2c: E2 08 00 21 7D 80 0D 03 02 00 00 00 00 19 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0B 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0B 00 21 7D 00 3C F2 EB 7A 08 B7 AC F8 90 00 10 [09:48:56]RAPDU: 3C F2 EB 7A 08 B7 AC F8 90 00 [09:48:56]wFMCommunicate OK [09:48:56]SAM_PROTO_SignData done [09:48:56]FM_MakeSignedData done [09:48:56]CreateOFDProtocolMessage [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 11 00 00 [09:48:56]Write to MH i2c: E2 08 00 22 7D 80 11 00 00 00 00 00 00 19 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 22 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [09:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:56]wFMCommunicate OK [09:48:56]CreateOFDProtocolMessage done [09:48:56]OFDSenderStorePacket 191318 [09:48:56]StoreOFDPacket docnum=191318 [09:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 10 5A 04 01 27 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 8E 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EB 02 00 35 04 06 00 18 78 51 C7 C2 C4 3C F2 EB 7A 08 B7 AC F8 [09:48:56]CheckFolder [09:48:56]dirname=/storage/ofd_packets [09:48:56]CheckFolder done [09:48:56]ProducePacketName [09:48:56]name=ofd_packets/00191318 [09:48:56]NVStorageSaveData ofd_packets/00191318 [09:48:56]File name is /storage/ofd_packets/00191318 [09:48:56]Write 298 bytes [09:48:56]NVStorageSaveData done [09:48:56]OFDSenderStorePacket done [09:48:56]KKMCreateOFDPacket done [09:48:56]NVStorageSaveData kkm_last_timestamp [09:48:56]File name is /storage/kkm_last_timestamp [09:48:56]Write 4 bytes [09:48:56]NVStorageSaveData done [09:48:56]ExternCall_PrintAddStr [09:48:56]wPrintStart [09:48:56]Write to MH i2c: 01 00 00 23 7D A0 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 23 7D 00 00 00 00 00 FF 0F B5 [09:48:56]RasterBufferAndPrint [09:48:56]line Счет N : (1)30610 [09:48:56]line ИНН: 02508201610067 [09:48:56]line Контрольно-Кассовый Чек [09:48:56]line ПРОДАЖА [09:48:56]line ТРК (МРК, ГНК) : 22 [09:48:56]line Товар: 2710194210 [09:48:56]line ДТ-К-5 [09:48:56]line 6.570 * 76.20 [09:48:56]line = 500.63 [09:48:56]line НДС 12% НСП 1% [09:48:56]line > о реализуемом товаре [09:48:56]line ОКРУГЛЕНИЕ: -0.63 [09:48:56]line ИТОГО: 500.00 [09:48:56]line Внесено: 500.00 [09:48:56]line СДАЧА: 0.00 [09:48:56]line НСП 1% : 4.43 [09:48:56]line НДС 12% : 53.16 [09:48:56]line Наличными: 500.00 [09:48:56]line Безнал.: 0.00 [09:48:56]line Место: АЗС № 170 "Партнер Нефть" [09:48:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:48:56]line СНО: Общий режим [09:48:56]line Чек 57 25.10.2024 09:49 [09:48:56]line Смена: 540 ФФД: 1.0 [09:48:56]line ЗНМ: 0300000110 [09:48:56]line РНМ: 0000000000091776 [09:48:56]line Версия ККМ: 001 [09:48:56]line ФМ: 0000000000871754 [09:48:56]line ФД: 191318 [09:48:56]line ФПД: 26905047188164 [09:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094902&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191318&fm=26905047188164&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:56]written 0, free lines is 4095 [09:48:56]OFD Sender: Processing packet 191318 [packets to send 75, broken 74] [09:48:56]ProducePacketName [09:48:56]name=ofd_packets/00191318 [09:48:56]OFD Sender: To server: pG, [09:48:56]CommunicateWithHost lk.salyk.kg:30040 [09:48:56]ConnectInit lk.salyk.kg [09:48:56]Connected sock=10 [09:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 10 5A 04 01 27 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 8E 69 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EB 02 00 35 04 06 00 18 78 51 C7 C2 C4 3C F2 EB 7A 08 B7 AC F8 [09:48:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 49 47 00 EF 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 31 37 35 34 10 04 04 00 56 EB 02 00 F4 03 04 00 5D 0E 1B 67 B6 04 01 00 00 40 E0 55 B9 E4 95 C7 E2 [09:48:56]CommunicateWithHost err = 0 [09:48:56]CheckOFDResponse [09:48:56]1017 (14) - 77093643461234 [09:48:56]1041 (16) - 0000000000871754 [09:48:56]1040 (4) - 191318 [09:48:56]1012 (4) - 25.10.2024 03:19 [09:48:56]1206 (1) - 0 [09:48:56]OFD Sender: Remove packet 191318 [09:48:56]ProducePacketName [09:48:56]name=ofd_packets/00191318 [09:48:56]NVStorageDeleteData [09:48:56]Write to MH i2c: 01 00 00 4E 7D CB [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 4E 7D 00 00 00 00 00 B9 0C 97 [09:48:56]RasterBufferAndPrint [09:48:56]line [09:48:56]line [09:48:56]line [09:48:56]line [09:48:56]line [09:48:56]written 0, free lines is 3270 [09:48:56]MH_Cut [09:48:56]Write to MH i2c: D1 01 00 55 7D 01 A4 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: D1 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: D1 01 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: D1 01 00 55 7D 00 A3 [09:48:56]Write to MH i2c: 01 00 00 56 7D D3 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:57]OFD Sender: No OFD packet to send [09:48:57]*** Cut start [09:48:57]*** Partial cut [09:48:57]*** CUTSNS_PIN = 1 [09:48:57]*** CUTSNS_PIN = 0 [09:48:57]*** Brake cut motor [09:48:58]Read from MH i2c: 01 [09:48:58]MH_I2C_Read... [09:48:58]*** Stop cut motor [09:48:58]*** Cut end [09:48:58]Read from MH i2c: 01 07 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: 01 07 00 56 7D 00 00 00 00 00 FF 0F E8 [09:48:58]process_action close_receipt done [09:48:58]requested_data is exist [09:48:58]produce_requested_data [09:48:58]requested_item fm.sn is exist - process it [09:48:58]wFMCommunicate request_size=4 [09:48:58]MH_SAM_APDU [09:48:58]CAPDU: 80 11 00 00 [09:48:58]Write to MH i2c: E2 08 00 57 7D 80 11 00 00 00 00 00 00 4E [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:58]Read from MH i2c: E2 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 17 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 17 00 57 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [09:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:58]wFMCommunicate OK [09:48:58]requested_item fd.num is exist - process it [09:48:58]SAM_PROTO_GetFieldsCounters [09:48:58]wFMCommunicate request_size=4 [09:48:58]MH_SAM_APDU [09:48:58]CAPDU: 80 13 00 00 [09:48:58]Write to MH i2c: E2 08 00 58 7D 80 13 00 00 00 00 00 00 51 [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:58]Read from MH i2c: E2 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 62 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 62 00 58 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:48:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:58]wFMCommunicate OK [09:48:58]SAM_PROTO_GetFieldsCounters done [09:48:58]requested_item shift.num is exist - process it [09:48:58]requested_item shift.opened is exist - process it [09:48:58]req_shift_opened [09:48:58]FM_GetShiftState [09:48:58]SAM_PROTO_GetShiftState [09:48:58]wFMCommunicate request_size=4 [09:48:58]MH_SAM_APDU [09:48:58]CAPDU: 80 13 01 00 [09:48:58]Write to MH i2c: E2 08 00 59 7D 80 13 01 00 00 00 00 00 53 [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:58]Read from MH i2c: E2 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 0E 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 0E 00 59 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 16 [09:48:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:48:58]wFMCommunicate OK [09:48:58]SAM_PROTO_GetShiftState done [09:48:58]FM_GetShiftState done [09:48:58]req_shift_opened done [09:48:58]requested_item shift.open_date is exist - process it [09:48:58]req_shift_open_date [09:48:58]req_shift_open_date done [09:48:58]produce_requested_data done [09:48:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191318,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:48:58]process_action_free close_receipt [09:48:58]json_value_free [09:48:58]json_value_free done [09:48:58]process_json_proto returns [09:48:58]Send response to host [09:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191318,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:48:58]free response buf [09:48:58]execute_script done [09:48:58]execute_script returns [09:48:58]free content buf [09:48:58]Sock 9.Close socket [09:48:58]Sock 9.Thread stoped [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:03]accept exits with 8 [09:52:03]New connection [09:52:03]New thread 3066817892 created [09:52:03]Thread 3066961252 joined [09:52:03]Waiting for new connection... [09:52:03] Sock 8.Parse request [09:52:03]Sock 8.Check first char [09:52:03]Sock 8.First char is OK [09:52:03]request: POST /json_proto HTTP/1.0 [09:52:03]Method: POST [09:52:03]URL: /json_proto [09:52:03]Method is POST - this is cgi request [09:52:03]url: /json_proto [09:52:03]query_string will be loaded in cgi processing [09:52:03]execute_cgi json_proto POST (null) [09:52:03]execute_cgi path=json_proto method=POST [09:52:03]POST find Content-Length [09:52:03]Host: 172.17.63.131:8080 [09:52:03]Content-Length: 678 [09:52:03]Content-Type: application/json [09:52:03] [09:52:03]POST finish read [09:52:03]Found Content-Length = 678 [09:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:03]execute_script... [09:52: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)30612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:03]POST & json_proto [09:52:03]process_json_proto [09:52:03]json parsed OK: [09:52:03]protocol is kg_v1.0 [09:52:03]action value=close_receipt [09:52:03]process_action close_receipt [09:52:03]cmd_close_receipt [09:52:03]MH_GetDate [09:52:03]Write to MH i2c: F0 00 00 5A 7D C6 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: F0 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: F0 09 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: F0 09 00 5A 7D 00 4B 6A 1B 67 22 05 6E 64 FF [09:52:03]GetLastDocTimeStamp 1729849742 [09:52:03]current date 1729849931 [09:52:03]FM_GetShiftState [09:52:03]SAM_PROTO_GetShiftState [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 13 01 00 [09:52:03]Write to MH i2c: E2 08 00 5B 7D 80 13 01 00 00 00 00 00 55 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 0E 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 0E 00 5B 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 18 [09:52:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:52:03]wFMCommunicate OK [09:52:03]SAM_PROTO_GetShiftState done [09:52:03]FM_GetShiftState done [09:52:03]opened in 1729816399 [09:52:03]opened+sec_in_day 1729902799 [09:52:03]quantity*price = 300075 [09:52:03]sum+1 = 300077 [09:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 58 25.10.2024 09:52 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191319 ФПД: 229387875581902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191319&fm=229387875581902&tin=02508201610067®Number=0000000000091776&sum=300000 [09:52:04]StoreToDocumentArchive [09:52:04]shift 540 fd 191319 [09:52:04]save to /storage/0540/doc_00191319 [09:52:04]save last doc name /storage/0540/doc_00191319 to /storage/kkm_last_doc_name [09:52:04]save OK [09:52:04]Clear old archive folders... [09:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:04]tlvbuf is 015A9CB0 [09:52:04]SAM_PROTO_ClearQueue [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 09 00 00 [09:52:04]Write to MH i2c: E2 08 00 68 7D 80 09 00 00 00 00 00 00 57 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 68 7D 00 90 00 59 [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_ClearQueue done [09:52:04]KKMCreateOFDPacket [09:52:04]OFDProtocolAddRootSTLVToBuf [09:52:04]FM_MakeSignedData [09:52:04]FM_MakeSignedData [09:52:04]SAM_PROTO_SignData [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 01 02 [09:52:04]Write to MH i2c: E2 08 00 69 7D 80 0D 01 02 00 00 00 00 5F [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 69 7D 00 90 00 5A [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]wFMCommunicate request_size=255 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4B 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EB 02 00 35 04 06 00 D0 A0 86 D6 [09:52:04]Write to MH i2c: E2 02 01 6A 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4B 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EB 02 00 35 04 06 00 D0 A0 86 D6 00 00 BF [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 6A 7D 00 90 00 5B [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]wFMCommunicate request_size=7 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 02 02 02 FF CE [09:52:04]Write to MH i2c: E2 0A 00 6B 7D 80 0D 02 02 02 00 FF CE 00 00 33 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 6B 7D 00 90 00 5C [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 03 02 [09:52:04]Write to MH i2c: E2 08 00 6C 7D 80 0D 03 02 00 00 00 00 64 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0B 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0B 00 6C 7D 00 9D 25 EC A0 AF 82 32 D5 90 00 EB [09:52:04]RAPDU: 9D 25 EC A0 AF 82 32 D5 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_SignData done [09:52:04]FM_MakeSignedData done [09:52:04]CreateOFDProtocolMessage [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 11 00 00 [09:52:04]Write to MH i2c: E2 08 00 6D 7D 80 11 00 00 00 00 00 00 64 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 6D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [09:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:04]wFMCommunicate OK [09:52:04]CreateOFDProtocolMessage done [09:52:04]OFDSenderStorePacket 191319 [09:52:04]StoreOFDPacket docnum=191319 [09:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C7 C9 04 01 02 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4B 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EB 02 00 35 04 06 00 D0 A0 86 D6 FF CE 9D 25 EC A0 AF 82 32 D5 [09:52:04]CheckFolder [09:52:04]dirname=/storage/ofd_packets [09:52:04]CheckFolder done [09:52:04]ProducePacketName [09:52:04]name=ofd_packets/00191319 [09:52:04]NVStorageSaveData ofd_packets/00191319 [09:52:04]File name is /storage/ofd_packets/00191319 [09:52:04]Write 298 bytes [09:52:04]NVStorageSaveData done [09:52:04]OFDSenderStorePacket done [09:52:04]KKMCreateOFDPacket done [09:52:04]NVStorageSaveData kkm_last_timestamp [09:52:04]File name is /storage/kkm_last_timestamp [09:52:04]Write 4 bytes [09:52:04]NVStorageSaveData done [09:52:04]ExternCall_PrintAddStr [09:52:04]wPrintStart [09:52:04]Write to MH i2c: 01 00 00 6E 7D EB [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 6E 7D 00 00 00 00 00 FF 0F 00 [09:52:04]RasterBufferAndPrint [09:52:04]line Счет N : (1)30612 [09:52:04]line ИНН: 02508201610067 [09:52:04]line Контрольно-Кассовый Чек [09:52:04]line ПРОДАЖА [09:52:04]line ТРК (МРК, ГНК) : 11 [09:52:04]line Товар: 2710194210 [09:52:04]line ДТ-К-5 [09:52:04]line 39.380 * 76.20 [09:52:04]line = 3000.76 [09:52:04]line НДС 12% НСП 1% [09:52:04]line > о реализуемом товаре [09:52:04]line ОКРУГЛЕНИЕ: -0.76 [09:52:04]line ИТОГО: 3000.00 [09:52:04]line Внесено: 3000.00 [09:52:04]line СДАЧА: 0.00 [09:52:04]line НСП 1% : 26.55 [09:52:04]line НДС 12% : 318.66 [09:52:04]line Наличными: 3000.00 [09:52:04]line Безнал.: 0.00 [09:52:04]line Место: АЗС № 170 "Партнер Нефть" [09:52:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:52:04]line СНО: Общий режим [09:52:04]line Чек 58 25.10.2024 09:52 [09:52:04]line Смена: 540 ФФД: 1.0 [09:52:04]line ЗНМ: 0300000110 [09:52:04]line РНМ: 0000000000091776 [09:52:04]line Версия ККМ: 001 [09:52:04]line ФМ: 0000000000871754 [09:52:04]line ФД: 191319 [09:52:05]line ФПД: 229387875581902 [09:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191319&fm=229387875581902&tin=02508201610067®Number=0000000000091776&sum=300000 [09:52:05]OFD Sender: Processing packet 191319 [packets to send 75, broken 74] [09:52:05]ProducePacketName [09:52:05]name=ofd_packets/00191319 [09:52:05]OFD Sender: To server: pG, [09:52:05]CommunicateWithHost lk.salyk.kg:30040 [09:52:05]ConnectInit lk.salyk.kg [09:52:05]written 0, free lines is 4095 [09:52:05]Connected sock=10 [09:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C7 C9 04 01 02 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4B 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EB 02 00 35 04 06 00 D0 A0 86 D6 FF CE 9D 25 EC A0 AF 82 32 D5 [09:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 28 47 00 73 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 31 37 35 34 10 04 04 00 57 EB 02 00 F4 03 04 00 1A 0F 1B 67 B6 04 01 00 00 FC C0 96 AB D7 DE CF F0 [09:52:05]CommunicateWithHost err = 0 [09:52:05]CheckOFDResponse [09:52:05]1017 (14) - 77093643461234 [09:52:05]1041 (16) - 0000000000871754 [09:52:05]1040 (4) - 191319 [09:52:05]1012 (4) - 25.10.2024 03:23 [09:52:05]1206 (1) - 0 [09:52:05]OFD Sender: Remove packet 191319 [09:52:05]ProducePacketName [09:52:05]name=ofd_packets/00191319 [09:52:05]NVStorageDeleteData [09:52:05]Write to MH i2c: 01 00 00 99 7D 16 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 07 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 07 00 99 7D 00 00 00 00 00 A9 0C D2 [09:52:05]RasterBufferAndPrint [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]written 0, free lines is 3246 [09:52:05]MH_Cut [09:52:05]Write to MH i2c: D1 01 00 A0 7D 01 EF [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 01 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 01 00 A0 7D 00 EE [09:52:05]Write to MH i2c: 01 00 00 A1 7D 1E [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:06]OFD Sender: No OFD packet to send [09:52:06]*** Cut start [09:52:06]*** Partial cut [09:52:06]*** CUTSNS_PIN = 1 [09:52:06]*** CUTSNS_PIN = 0 [09:52:06]*** Brake cut motor [09:52:07]Read from MH i2c: 01 [09:52:07]MH_I2C_Read... [09:52:07]*** Stop cut motor [09:52:07]*** Cut end [09:52:07]Read from MH i2c: 01 07 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: 01 07 00 A1 7D 00 00 00 00 00 FF 0F 33 [09:52:07]process_action close_receipt done [09:52:07]requested_data is exist [09:52:07]produce_requested_data [09:52:07]requested_item fm.sn is exist - process it [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 11 00 00 [09:52:07]Write to MH i2c: E2 08 00 A2 7D 80 11 00 00 00 00 00 00 99 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 17 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 17 00 A2 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [09:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:07]wFMCommunicate OK [09:52:07]requested_item fd.num is exist - process it [09:52:07]SAM_PROTO_GetFieldsCounters [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 13 00 00 [09:52:07]Write to MH i2c: E2 08 00 A3 7D 80 13 00 00 00 00 00 00 9C [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 62 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 62 00 A3 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:07]wFMCommunicate OK [09:52:07]SAM_PROTO_GetFieldsCounters done [09:52:07]requested_item shift.num is exist - process it [09:52:07]requested_item shift.opened is exist - process it [09:52:07]req_shift_opened [09:52:07]FM_GetShiftState [09:52:07]SAM_PROTO_GetShiftState [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 13 01 00 [09:52:07]Write to MH i2c: E2 08 00 A4 7D 80 13 01 00 00 00 00 00 9E [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 0E 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 0E 00 A4 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 61 [09:52:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:52:07]wFMCommunicate OK [09:52:07]SAM_PROTO_GetShiftState done [09:52:07]FM_GetShiftState done [09:52:07]req_shift_opened done [09:52:07]requested_item shift.open_date is exist - process it [09:52:07]req_shift_open_date [09:52:07]req_shift_open_date done [09:52:07]produce_requested_data done [09:52:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191319,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:52:07]process_action_free close_receipt [09:52:07]json_value_free [09:52:07]json_value_free done [09:52:07]process_json_proto returns [09:52:07]Send response to host [09:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191319,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:52:07]free response buf [09:52:07]execute_script done [09:52:07]execute_script returns [09:52:07]free content buf [09:52:07]Sock 8.Close socket [09:52:07]Sock 8.Thread stoped [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:53]accept exits with 9 [09:53:53]New connection [09:53:53]New thread 3066961252 created [09:53:53]Thread 3066817892 joined [09:53:53]Waiting for new connection... [09:53:53] Sock 9.Parse request [09:53:53]Sock 9.Check first char [09:53:53]Sock 9.First char is OK [09:53:53]request: POST /json_proto HTTP/1.0 [09:53:53]Method: POST [09:53:53]URL: /json_proto [09:53:53]Method is POST - this is cgi request [09:53:53]url: /json_proto [09:53:53]query_string will be loaded in cgi processing [09:53:53]execute_cgi json_proto POST (null) [09:53:53]execute_cgi path=json_proto method=POST [09:53:53]POST find Content-Length [09:53:53]Host: 172.17.63.131:8080 [09:53:53]Content-Length: 676 [09:53:53]Content-Type: application/json [09:53:53] [09:53:53]POST finish read [09:53:53]Found Content-Length = 676 [09:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]execute_script... [09:53: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)30613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]POST & json_proto [09:53:53]process_json_proto [09:53:53]json parsed OK: [09:53:53]protocol is kg_v1.0 [09:53:53]action value=close_receipt [09:53:53]process_action close_receipt [09:53:53]cmd_close_receipt [09:53:53]MH_GetDate [09:53:53]Write to MH i2c: F0 00 00 A5 7D 11 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 A5 7D 00 B9 6A 1B 67 22 05 6E 64 B8 [09:53:53]GetLastDocTimeStamp 1729849931 [09:53:53]current date 1729850041 [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 A6 7D 80 13 01 00 00 00 00 00 A0 [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 A6 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 63 [09:53:53]RAPDU: 09 00 01 4F E7 1A 67 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]opened in 1729816399 [09:53:53]opened+sec_in_day 1729902799 [09:53:53]quantity*price = 40006 [09:53:53]sum+1 = 40007 [09:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 59 25.10.2024 09:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191320 ФПД: 100628124257707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191320&fm=100628124257707&tin=02508201610067®Number=0000000000091776&sum=40000 [09:53:54]StoreToDocumentArchive [09:53:54]shift 540 fd 191320 [09:53:54]save to /storage/0540/doc_00191320 [09:53:54]save last doc name /storage/0540/doc_00191320 to /storage/kkm_last_doc_name [09:53:54]save OK [09:53:54]Clear old archive folders... [09:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:54]tlvbuf is 0173D920 [09:53:54]SAM_PROTO_ClearQueue [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 09 00 00 [09:53:54]Write to MH i2c: E2 08 00 B3 7D 80 09 00 00 00 00 00 00 A2 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 B3 7D 00 90 00 A4 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]SAM_PROTO_ClearQueue done [09:53:54]KKMCreateOFDPacket [09:53:54]OFDProtocolAddRootSTLVToBuf [09:53:54]FM_MakeSignedData [09:53:54]FM_MakeSignedData [09:53:54]SAM_PROTO_SignData [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 01 02 [09:53:54]Write to MH i2c: E2 08 00 B4 7D 80 0D 01 02 00 00 00 00 AA [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 B4 7D 00 90 00 A5 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=255 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B9 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EB 02 00 35 04 06 00 5B [09:53:54]Write to MH i2c: E2 02 01 B5 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B9 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EB 02 00 35 04 06 00 5B 00 00 AB [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 B5 7D 00 90 00 A6 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=10 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 02 02 05 85 4F 99 CD AB [09:53:54]Write to MH i2c: E2 0D 00 B6 7D 80 0D 02 02 05 00 85 4F 99 CD AB 00 00 9C [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 B6 7D 00 90 00 A7 [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 03 02 [09:53:54]Write to MH i2c: E2 08 00 B7 7D 80 0D 03 02 00 00 00 00 AF [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 0B 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 0B 00 B7 7D 00 6B 86 FB 23 68 E3 48 5D 90 00 AF [09:53:54]RAPDU: 6B 86 FB 23 68 E3 48 5D 90 00 [09:53:54]wFMCommunicate OK [09:53:54]SAM_PROTO_SignData done [09:53:54]FM_MakeSignedData done [09:53:54]CreateOFDProtocolMessage [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 11 00 00 [09:53:54]Write to MH i2c: E2 08 00 B8 7D 80 11 00 00 00 00 00 00 AF [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 17 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 17 00 B8 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [09:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:54]wFMCommunicate OK [09:53:54]CreateOFDProtocolMessage done [09:53:54]OFDSenderStorePacket 191320 [09:53:54]StoreOFDPacket docnum=191320 [09:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA A8 07 01 CC DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B9 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EB 02 00 35 04 06 00 5B 85 4F 99 CD AB 6B 86 FB 23 68 E3 48 5D [09:53:54]CheckFolder [09:53:54]dirname=/storage/ofd_packets [09:53:54]CheckFolder done [09:53:54]ProducePacketName [09:53:54]name=ofd_packets/00191320 [09:53:54]NVStorageSaveData ofd_packets/00191320 [09:53:54]File name is /storage/ofd_packets/00191320 [09:53:54]Write 301 bytes [09:53:54]NVStorageSaveData done [09:53:54]OFDSenderStorePacket done [09:53:54]KKMCreateOFDPacket done [09:53:54]NVStorageSaveData kkm_last_timestamp [09:53:54]File name is /storage/kkm_last_timestamp [09:53:54]Write 4 bytes [09:53:54]NVStorageSaveData done [09:53:54]ExternCall_PrintAddStr [09:53:54]wPrintStart [09:53:54]Write to MH i2c: 01 00 00 B9 7D 36 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 B9 7D 00 00 00 00 00 FF 0F 4B [09:53:54]RasterBufferAndPrint [09:53:54]line Счет N : (1)30613 [09:53:54]line ИНН: 02508201610067 [09:53:54]line Контрольно-Кассовый Чек [09:53:54]line ПРОДАЖА [09:53:54]line ТРК (МРК, ГНК) : 21 [09:53:54]line Товар: 2710124130 [09:53:54]line Аи-92-К-5 [09:53:54]line 5.980 * 66.90 [09:53:54]line = 400.06 [09:53:54]line НДС 12% НСП 1% [09:53:54]line > о реализуемом товаре [09:53:54]line ОКРУГЛЕНИЕ: -0.06 [09:53:54]line ИТОГО: 400.00 [09:53:54]line Внесено: 400.00 [09:53:54]line СДАЧА: 0.00 [09:53:54]line НСП 1% : 3.54 [09:53:54]line НДС 12% : 42.48 [09:53:54]line Наличными: 400.00 [09:53:54]line Безнал.: 0.00 [09:53:54]line Место: АЗС № 170 "Партнер Нефть" [09:53:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:53:54]line СНО: Общий режим [09:53:54]line Чек 59 25.10.2024 09:54 [09:53:54]line Смена: 540 ФФД: 1.0 [09:53:55]line ЗНМ: 0300000110 [09:53:55]line РНМ: 0000000000091776 [09:53:55]line Версия ККМ: 001 [09:53:55]line ФМ: 0000000000871754 [09:53:55]line ФД: 191320 [09:53:55]line ФПД: 100628124257707 [09:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191320&fm=100628124257707&tin=02508201610067®Number=0000000000091776&sum=40000 [09:53:55]OFD Sender: Processing packet 191320 [packets to send 75, broken 74] [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00191320 [09:53:55]OFD Sender: To server: pG, [09:53:55]CommunicateWithHost lk.salyk.kg:30040 [09:53:55]ConnectInit lk.salyk.kg [09:53:55]written 0, free lines is 4095 [09:53:55]Connected sock=10 [09:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA A8 07 01 CC DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B9 6A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EB 02 00 35 04 06 00 5B 85 4F 99 CD AB 6B 86 FB 23 68 E3 48 5D [09:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4C 63 47 00 EC 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EB 02 00 F4 03 04 00 88 0F 1B 67 B6 04 01 00 00 10 0E 29 F6 1A C6 BC 1D [09:53:55]CommunicateWithHost err = 0 [09:53:55]CheckOFDResponse [09:53:55]1017 (14) - 77093643461234 [09:53:55]1041 (16) - 0000000000871754 [09:53:55]1040 (4) - 191320 [09:53:55]1012 (4) - 25.10.2024 03:24 [09:53:55]1206 (1) - 0 [09:53:55]OFD Sender: Remove packet 191320 [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00191320 [09:53:55]NVStorageDeleteData [09:53:55]Write to MH i2c: 01 00 00 E4 7D 61 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 E4 7D 00 00 00 00 00 B9 0C 2D [09:53:55]RasterBufferAndPrint [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]written 0, free lines is 3264 [09:53:55]MH_Cut [09:53:55]Write to MH i2c: D1 01 00 EB 7D 01 3A [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 01 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 01 00 EB 7D 00 39 [09:53:55]Write to MH i2c: 01 00 00 EC 7D 69 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:56]OFD Sender: No OFD packet to send [09:53:56]*** Cut start [09:53:56]*** Partial cut [09:53:56]*** CUTSNS_PIN = 1 [09:53:56]*** CUTSNS_PIN = 0 [09:53:56]*** Brake cut motor [09:53:57]Read from MH i2c: 01 [09:53:57]MH_I2C_Read... [09:53:57]*** Stop cut motor [09:53:57]*** Cut end [09:53:57]Read from MH i2c: 01 07 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 EC 7D 00 00 00 00 00 FF 0F 7E [09:53:57]process_action close_receipt done [09:53:57]requested_data is exist [09:53:57]produce_requested_data [09:53:57]requested_item fm.sn is exist - process it [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 11 00 00 [09:53:57]Write to MH i2c: E2 08 00 ED 7D 80 11 00 00 00 00 00 00 E4 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 ED 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [09:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:57]wFMCommunicate OK [09:53:57]requested_item fd.num is exist - process it [09:53:57]SAM_PROTO_GetFieldsCounters [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 13 00 00 [09:53:57]Write to MH i2c: E2 08 00 EE 7D 80 13 00 00 00 00 00 00 E7 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 62 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 62 00 EE 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_GetFieldsCounters done [09:53:57]requested_item shift.num is exist - process it [09:53:57]requested_item shift.opened is exist - process it [09:53:57]req_shift_opened [09:53:57]FM_GetShiftState [09:53:57]SAM_PROTO_GetShiftState [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 13 01 00 [09:53:57]Write to MH i2c: E2 08 00 EF 7D 80 13 01 00 00 00 00 00 E9 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0E 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0E 00 EF 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AC [09:53:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_GetShiftState done [09:53:57]FM_GetShiftState done [09:53:57]req_shift_opened done [09:53:57]requested_item shift.open_date is exist - process it [09:53:57]req_shift_open_date [09:53:57]req_shift_open_date done [09:53:57]produce_requested_data done [09:53:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191320,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:53:57]process_action_free close_receipt [09:53:57]json_value_free [09:53:57]json_value_free done [09:53:57]process_json_proto returns [09:53:57]Send response to host [09:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191320,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:53:57]free response buf [09:53:57]execute_script done [09:53:57]execute_script returns [09:53:57]free content buf [09:53:57]Sock 9.Close socket [09:53:57]Sock 9.Thread stoped [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [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:28]accept exits with 8 [09:56:28]New connection [09:56:28]New thread 3066817892 created [09:56:28]Thread 3066961252 joined [09:56:28]Waiting for new connection... [09:56:28] Sock 8.Parse request [09:56:28]Sock 8.Check first char [09:56:28]Sock 8.First char is OK [09:56:28]request: POST /json_proto HTTP/1.0 [09:56:28]Method: POST [09:56:28]URL: /json_proto [09:56:28]Method is POST - this is cgi request [09:56:28]url: /json_proto [09:56:28]query_string will be loaded in cgi processing [09:56:28]execute_cgi json_proto POST (null) [09:56:28]execute_cgi path=json_proto method=POST [09:56:28]POST find Content-Length [09:56:28]Host: 172.17.63.131:8080 [09:56:28]Content-Length: 676 [09:56:28]Content-Type: application/json [09:56:28] [09:56:28]POST finish read [09:56:28]Found Content-Length = 676 [09:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:28]execute_script... [09:56: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)30614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:28]POST & json_proto [09:56:28]process_json_proto [09:56:28]json parsed OK: [09:56:28]protocol is kg_v1.0 [09:56:28]action value=close_receipt [09:56:28]process_action close_receipt [09:56:28]cmd_close_receipt [09:56:28]MH_GetDate [09:56:28]Write to MH i2c: F0 00 00 F0 7D 5C [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: F0 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: F0 09 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: F0 09 00 F0 7D 00 54 6B 1B 67 22 05 6E 64 9F [09:56:28]GetLastDocTimeStamp 1729850041 [09:56:28]current date 1729850196 [09:56:28]FM_GetShiftState [09:56:28]SAM_PROTO_GetShiftState [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 13 01 00 [09:56:28]Write to MH i2c: E2 08 00 F1 7D 80 13 01 00 00 00 00 00 EB [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0E 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0E 00 F1 7D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AE [09:56:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:56:28]wFMCommunicate OK [09:56:28]SAM_PROTO_GetShiftState done [09:56:28]FM_GetShiftState done [09:56:28]opened in 1729816399 [09:56:28]opened+sec_in_day 1729902799 [09:56:28]quantity*price = 25020 [09:56:28]sum+1 = 25022 [09:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 60 25.10.2024 09:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191321 ФПД: 132821565974864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191321&fm=132821565974864&tin=02508201610067®Number=0000000000091776&sum=25000 [09:56:29]StoreToDocumentArchive [09:56:29]shift 540 fd 191321 [09:56:29]save to /storage/0540/doc_00191321 [09:56:29]save last doc name /storage/0540/doc_00191321 to /storage/kkm_last_doc_name [09:56:29]save OK [09:56:29]Clear old archive folders... [09:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:29]tlvbuf is 0183A100 [09:56:29]SAM_PROTO_ClearQueue [09:56:29]wFMCommunicate request_size=4 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 09 00 00 [09:56:29]Write to MH i2c: E2 08 00 FE 7D 80 09 00 00 00 00 00 00 ED [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 FE 7D 00 90 00 EF [09:56:29]RAPDU: 90 00 [09:56:29]wFMCommunicate OK [09:56:29]SAM_PROTO_ClearQueue done [09:56:29]KKMCreateOFDPacket [09:56:29]OFDProtocolAddRootSTLVToBuf [09:56:29]FM_MakeSignedData [09:56:29]FM_MakeSignedData [09:56:29]SAM_PROTO_SignData [09:56:29]wFMCommunicate request_size=4 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 0D 01 02 [09:56:29]Write to MH i2c: E2 08 00 FF 7D 80 0D 01 02 00 00 00 00 F5 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 FF 7D 00 90 00 F0 [09:56:29]RAPDU: 90 00 [09:56:29]wFMCommunicate OK [09:56:29]wFMCommunicate request_size=255 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EB 02 00 35 04 06 00 78 [09:56:29]Write to MH i2c: E2 02 01 00 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EB 02 00 35 04 06 00 78 00 00 BC [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 00 7E 00 90 00 F2 [09:56:29]RAPDU: 90 00 [09:56:29]wFMCommunicate OK [09:56:29]wFMCommunicate request_size=10 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 0D 02 02 05 CC EE 42 29 50 [09:56:29]Write to MH i2c: E2 0D 00 01 7E 80 0D 02 02 05 00 CC EE 42 29 50 00 00 78 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 03 00 01 7E 00 90 00 F3 [09:56:29]RAPDU: 90 00 [09:56:29]wFMCommunicate OK [09:56:29]wFMCommunicate request_size=4 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 0D 03 02 [09:56:29]Write to MH i2c: E2 08 00 02 7E 80 0D 03 02 00 00 00 00 FB [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 0B 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 0B 00 02 7E 00 F5 B5 F8 44 97 02 E9 04 90 00 68 [09:56:29]RAPDU: F5 B5 F8 44 97 02 E9 04 90 00 [09:56:29]wFMCommunicate OK [09:56:29]SAM_PROTO_SignData done [09:56:29]FM_MakeSignedData done [09:56:29]CreateOFDProtocolMessage [09:56:29]wFMCommunicate request_size=4 [09:56:29]MH_SAM_APDU [09:56:29]CAPDU: 80 11 00 00 [09:56:29]Write to MH i2c: E2 08 00 03 7E 80 11 00 00 00 00 00 00 FB [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:29]Read from MH i2c: E2 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 17 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: E2 17 00 03 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [09:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:56:29]wFMCommunicate OK [09:56:29]CreateOFDProtocolMessage done [09:56:29]OFDSenderStorePacket 191321 [09:56:29]StoreOFDPacket docnum=191321 [09:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 C0 07 01 03 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EB 02 00 35 04 06 00 78 CC EE 42 29 50 F5 B5 F8 44 97 02 E9 04 [09:56:29]CheckFolder [09:56:29]dirname=/storage/ofd_packets [09:56:29]CheckFolder done [09:56:29]ProducePacketName [09:56:29]name=ofd_packets/00191321 [09:56:29]NVStorageSaveData ofd_packets/00191321 [09:56:29]File name is /storage/ofd_packets/00191321 [09:56:29]Write 301 bytes [09:56:29]NVStorageSaveData done [09:56:29]OFDSenderStorePacket done [09:56:29]KKMCreateOFDPacket done [09:56:29]NVStorageSaveData kkm_last_timestamp [09:56:29]File name is /storage/kkm_last_timestamp [09:56:29]Write 4 bytes [09:56:29]NVStorageSaveData done [09:56:29]ExternCall_PrintAddStr [09:56:29]wPrintStart [09:56:29]Write to MH i2c: 01 00 00 04 7E 82 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 07 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 07 00 04 7E 00 00 00 00 00 FF 0F 97 [09:56:29]RasterBufferAndPrint [09:56:29]line Счет N : (1)30614 [09:56:29]line ИНН: 02508201610067 [09:56:29]line Контрольно-Кассовый Чек [09:56:29]line ПРОДАЖА [09:56:29]line ТРК (МРК, ГНК) : 21 [09:56:29]line Товар: 2710124130 [09:56:29]line Аи-92-К-5 [09:56:29]line 3.740 * 66.90 [09:56:29]line = 250.21 [09:56:29]line НДС 12% НСП 1% [09:56:29]line > о реализуемом товаре [09:56:29]line ОКРУГЛЕНИЕ: -0.21 [09:56:29]line ИТОГО: 250.00 [09:56:29]line Внесено: 250.00 [09:56:29]line СДАЧА: 0.00 [09:56:29]line НСП 1% : 2.21 [09:56:29]line НДС 12% : 26.57 [09:56:29]line Наличными: 250.00 [09:56:29]line Безнал.: 0.00 [09:56:29]line Место: АЗС № 170 "Партнер Нефть" [09:56:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:56:29]line СНО: Общий режим [09:56:29]line Чек 60 25.10.2024 09:56 [09:56:29]line Смена: 540 ФФД: 1.0 [09:56:29]line ЗНМ: 0300000110 [09:56:29]line РНМ: 0000000000091776 [09:56:29]line Версия ККМ: 001 [09:56:29]line ФМ: 0000000000871754 [09:56:29]line ФД: 191321 [09:56:29]line ФПД: 132821565974864 [09:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191321&fm=132821565974864&tin=02508201610067®Number=0000000000091776&sum=25000 [09:56:30]OFD Sender: Processing packet 191321 [packets to send 75, broken 74] [09:56:30]ProducePacketName [09:56:30]name=ofd_packets/00191321 [09:56:30]OFD Sender: To server: pG, [09:56:30]CommunicateWithHost lk.salyk.kg:30040 [09:56:30]ConnectInit lk.salyk.kg [09:56:30]written 0, free lines is 4095 [09:56:30]Connected sock=10 [09:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 C0 07 01 03 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EB 02 00 35 04 06 00 78 CC EE 42 29 50 F5 B5 F8 44 97 02 E9 04 [09:56:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA 77 47 00 C9 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 31 37 35 34 10 04 04 00 59 EB 02 00 F4 03 04 00 23 10 1B 67 B6 04 01 00 00 7F B7 11 C2 CE B5 17 83 [09:56:30]CommunicateWithHost err = 0 [09:56:30]CheckOFDResponse [09:56:30]1017 (14) - 77093643461234 [09:56:30]1041 (16) - 0000000000871754 [09:56:30]1040 (4) - 191321 [09:56:30]1012 (4) - 25.10.2024 03:27 [09:56:30]1206 (1) - 0 [09:56:30]OFD Sender: Remove packet 191321 [09:56:30]ProducePacketName [09:56:30]name=ofd_packets/00191321 [09:56:30]NVStorageDeleteData [09:56:30]Write to MH i2c: 01 00 00 2F 7E AD [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: 01 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: 01 07 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: 01 07 00 2F 7E 00 00 00 00 00 A7 0C 67 [09:56:30]RasterBufferAndPrint [09:56:30]line [09:56:30]line [09:56:30]line [09:56:30]line [09:56:30]line [09:56:30]written 0, free lines is 3245 [09:56:30]MH_Cut [09:56:30]Write to MH i2c: D1 01 00 36 7E 01 86 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: D1 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: D1 01 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: D1 01 00 36 7E 00 85 [09:56:30]Write to MH i2c: 01 00 00 37 7E B5 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:31]OFD Sender: No OFD packet to send [09:56:31]*** Cut start [09:56:31]*** Partial cut [09:56:31]*** CUTSNS_PIN = 1 [09:56:31]*** CUTSNS_PIN = 0 [09:56:31]*** Brake cut motor [09:56:32]Read from MH i2c: 01 [09:56:32]MH_I2C_Read... [09:56:32]*** Stop cut motor [09:56:32]*** Cut end [09:56:32]Read from MH i2c: 01 07 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: 01 07 00 37 7E 00 00 00 00 00 FF 0F CA [09:56:32]process_action close_receipt done [09:56:32]requested_data is exist [09:56:32]produce_requested_data [09:56:32]requested_item fm.sn is exist - process it [09:56:32]wFMCommunicate request_size=4 [09:56:32]MH_SAM_APDU [09:56:32]CAPDU: 80 11 00 00 [09:56:32]Write to MH i2c: E2 08 00 38 7E 80 11 00 00 00 00 00 00 30 [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 17 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 17 00 38 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [09:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:56:32]wFMCommunicate OK [09:56:32]requested_item fd.num is exist - process it [09:56:32]SAM_PROTO_GetFieldsCounters [09:56:32]wFMCommunicate request_size=4 [09:56:32]MH_SAM_APDU [09:56:32]CAPDU: 80 13 00 00 [09:56:32]Write to MH i2c: E2 08 00 39 7E 80 13 00 00 00 00 00 00 33 [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 62 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 62 00 39 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:56:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:32]wFMCommunicate OK [09:56:32]SAM_PROTO_GetFieldsCounters done [09:56:32]requested_item shift.num is exist - process it [09:56:32]requested_item shift.opened is exist - process it [09:56:32]req_shift_opened [09:56:32]FM_GetShiftState [09:56:32]SAM_PROTO_GetShiftState [09:56:32]wFMCommunicate request_size=4 [09:56:32]MH_SAM_APDU [09:56:32]CAPDU: 80 13 01 00 [09:56:32]Write to MH i2c: E2 08 00 3A 7E 80 13 01 00 00 00 00 00 35 [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 0E 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 0E 00 3A 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F8 [09:56:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:56:32]wFMCommunicate OK [09:56:32]SAM_PROTO_GetShiftState done [09:56:32]FM_GetShiftState done [09:56:32]req_shift_opened done [09:56:32]requested_item shift.open_date is exist - process it [09:56:32]req_shift_open_date [09:56:32]req_shift_open_date done [09:56:32]produce_requested_data done [09:56:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191321,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:56:32]process_action_free close_receipt [09:56:32]json_value_free [09:56:32]json_value_free done [09:56:32]process_json_proto returns [09:56:32]Send response to host [09:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191321,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:56:32]free response buf [09:56:32]execute_script done [09:56:32]execute_script returns [09:56:32]free content buf [09:56:32]Sock 8.Close socket [09:56:32]Sock 8.Thread stoped [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:57:57]accept exits with 9 [09:57:57]New connection [09:57:57]New thread 3066961252 created [09:57:57]Thread 3066817892 joined [09:57:57]Waiting for new connection... [09:57:57] Sock 9.Parse request [09:57:57]Sock 9.Check first char [09:57:57]Sock 9.First char is OK [09:57:57]request: POST /json_proto HTTP/1.0 [09:57:57]Method: POST [09:57:57]URL: /json_proto [09:57:57]Method is POST - this is cgi request [09:57:57]url: /json_proto [09:57:57]query_string will be loaded in cgi processing [09:57:57]execute_cgi json_proto POST (null) [09:57:57]execute_cgi path=json_proto method=POST [09:57:57]POST find Content-Length [09:57:57]Host: 172.17.63.131:8080 [09:57:57]Content-Length: 681 [09:57:57]Content-Type: application/json [09:57:57] [09:57:57]POST finish read [09:57:57]Found Content-Length = 681 [09:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]execute_script... [09:57: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)30615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]POST & json_proto [09:57:57]process_json_proto [09:57:57]json parsed OK: [09:57:57]protocol is kg_v1.0 [09:57:57]action value=close_receipt [09:57:57]process_action close_receipt [09:57:57]cmd_close_receipt [09:57:57]MH_GetDate [09:57:57]Write to MH i2c: F0 00 00 3B 7E A8 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 3B 7E 00 AE 6B 1B 67 22 05 6E 64 45 [09:57:57]GetLastDocTimeStamp 1729850196 [09:57:57]current date 1729850286 [09:57:57]FM_GetShiftState [09:57:57]SAM_PROTO_GetShiftState [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 13 01 00 [09:57:57]Write to MH i2c: E2 08 00 3C 7E 80 13 01 00 00 00 00 00 37 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 3C 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FA [09:57:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetShiftState done [09:57:57]FM_GetShiftState done [09:57:57]opened in 1729816399 [09:57:57]opened+sec_in_day 1729902799 [09:57:57]quantity*price = 100015 [09:57:57]sum+1 = 100017 [09:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 61 25.10.2024 09:58 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191322 ФПД: 16465613671146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095806&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191322&fm=16465613671146&tin=02508201610067®Number=0000000000091776&sum=100000 [09:57:59]StoreToDocumentArchive [09:57:59]shift 540 fd 191322 [09:57:59]save to /storage/0540/doc_00191322 [09:57:59]save last doc name /storage/0540/doc_00191322 to /storage/kkm_last_doc_name [09:57:59]save OK [09:57:59]Clear old archive folders... [09:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:59]tlvbuf is 016ADF80 [09:57:59]SAM_PROTO_ClearQueue [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 09 00 00 [09:57:59]Write to MH i2c: E2 08 00 49 7E 80 09 00 00 00 00 00 00 39 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 49 7E 00 90 00 3B [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_ClearQueue done [09:57:59]KKMCreateOFDPacket [09:57:59]OFDProtocolAddRootSTLVToBuf [09:57:59]FM_MakeSignedData [09:57:59]FM_MakeSignedData [09:57:59]SAM_PROTO_SignData [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 01 02 [09:57:59]Write to MH i2c: E2 08 00 4A 7E 80 0D 01 02 00 00 00 00 41 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 4A 7E 00 90 00 3C [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=255 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AE 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EB 02 00 35 04 06 00 0E [09:57:59]Write to MH i2c: E2 02 01 4B 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AE 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EB 02 00 35 04 06 00 0E 00 00 1A [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 4B 7E 00 90 00 3D [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=10 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 02 02 05 F9 B3 0D CA EA [09:57:59]Write to MH i2c: E2 0D 00 4C 7E 80 0D 02 02 05 00 F9 B3 0D CA EA 00 00 BB [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 4C 7E 00 90 00 3E [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 03 02 [09:57:59]Write to MH i2c: E2 08 00 4D 7E 80 0D 03 02 00 00 00 00 46 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 4D 7E 00 2B D7 64 48 1A CC 2E 99 90 00 A2 [09:57:59]RAPDU: 2B D7 64 48 1A CC 2E 99 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_SignData done [09:57:59]FM_MakeSignedData done [09:57:59]CreateOFDProtocolMessage [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 11 00 00 [09:57:59]Write to MH i2c: E2 08 00 4E 7E 80 11 00 00 00 00 00 00 46 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 4E 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [09:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:57:59]wFMCommunicate OK [09:57:59]CreateOFDProtocolMessage done [09:57:59]OFDSenderStorePacket 191322 [09:57:59]StoreOFDPacket docnum=191322 [09:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 D0 07 01 FC F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AE 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EB 02 00 35 04 06 00 0E F9 B3 0D CA EA 2B D7 64 48 1A CC 2E 99 [09:57:59]CheckFolder [09:57:59]dirname=/storage/ofd_packets [09:57:59]CheckFolder done [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00191322 [09:57:59]NVStorageSaveData ofd_packets/00191322 [09:57:59]File name is /storage/ofd_packets/00191322 [09:57:59]Write 301 bytes [09:57:59]NVStorageSaveData done [09:57:59]OFDSenderStorePacket done [09:57:59]KKMCreateOFDPacket done [09:57:59]NVStorageSaveData kkm_last_timestamp [09:57:59]File name is /storage/kkm_last_timestamp [09:57:59]Write 4 bytes [09:57:59]NVStorageSaveData done [09:57:59]ExternCall_PrintAddStr [09:57:59]wPrintStart [09:57:59]Write to MH i2c: 01 00 00 4F 7E CD [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 4F 7E 00 00 00 00 00 FF 0F E2 [09:57:59]RasterBufferAndPrint [09:57:59]line Счет N : (1)30615 [09:57:59]line ИНН: 02508201610067 [09:57:59]line Контрольно-Кассовый Чек [09:57:59]line ПРОДАЖА [09:57:59]line ТРК (МРК, ГНК) : 21 [09:57:59]line Товар: 2710124130 [09:57:59]line Аи-92-К-5 [09:57:59]line 14.950 * 66.90 [09:57:59]line = 1000.16 [09:57:59]line НДС 12% НСП 1% [09:57:59]line > о реализуемом товаре [09:57:59]line ОКРУГЛЕНИЕ: -0.16 [09:57:59]line ИТОГО: 1000.00 [09:57:59]line Внесено: 1000.00 [09:57:59]line СДАЧА: 0.00 [09:57:59]line НСП 1% : 8.85 [09:57:59]line НДС 12% : 106.21 [09:57:59]line Наличными: 1000.00 [09:57:59]line Безнал.: 0.00 [09:57:59]line Место: АЗС № 170 "Партнер Нефть" [09:57:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:57:59]line СНО: Общий режим [09:57:59]line Чек 61 25.10.2024 09:58 [09:57:59]line Смена: 540 ФФД: 1.0 [09:57:59]line ЗНМ: 0300000110 [09:57:59]line РНМ: 0000000000091776 [09:57:59]line Версия ККМ: 001 [09:57:59]line ФМ: 0000000000871754 [09:57:59]line ФД: 191322 [09:57:59]line ФПД: 16465613671146 [09:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095806&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191322&fm=16465613671146&tin=02508201610067®Number=0000000000091776&sum=100000 [09:57:59]OFD Sender: Processing packet 191322 [packets to send 75, broken 74] [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00191322 [09:57:59]OFD Sender: To server: pG, [09:57:59]CommunicateWithHost lk.salyk.kg:30040 [09:57:59]ConnectInit lk.salyk.kg [09:57:59]written 0, free lines is 4095 [09:58:00]Connected sock=10 [09:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 D0 07 01 FC F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AE 6B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EB 02 00 35 04 06 00 0E F9 B3 0D CA EA 2B D7 64 48 1A CC 2E 99 [09:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3E D7 47 00 07 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EB 02 00 F4 03 04 00 7D 10 1B 67 B6 04 01 00 00 2D A7 38 18 AE 2D ED 1E [09:58:00]CommunicateWithHost err = 0 [09:58:00]CheckOFDResponse [09:58:00]1017 (14) - 77093643461234 [09:58:00]1041 (16) - 0000000000871754 [09:58:00]1040 (4) - 191322 [09:58:00]1012 (4) - 25.10.2024 03:29 [09:58:00]1206 (1) - 0 [09:58:00]OFD Sender: Remove packet 191322 [09:58:00]ProducePacketName [09:58:00]name=ofd_packets/00191322 [09:58:00]NVStorageDeleteData [09:58:00]Write to MH i2c: 01 00 00 7A 7E F8 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 7A 7E 00 00 00 00 00 B7 0C C2 [09:58:00]RasterBufferAndPrint [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]written 0, free lines is 3262 [09:58:00]MH_Cut [09:58:00]Write to MH i2c: D1 01 00 81 7E 01 D1 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 81 7E 00 D0 [09:58:00]Write to MH i2c: 01 00 00 82 7E 00 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]OFD Sender: No OFD packet to send [09:58:01]*** Cut start [09:58:01]*** Partial cut [09:58:01]*** CUTSNS_PIN = 1 [09:58:01]*** CUTSNS_PIN = 0 [09:58:01]*** Brake cut motor [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]*** Stop cut motor [09:58:01]*** Cut end [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 82 7E 00 00 00 00 00 FF 0F 15 [09:58:01]process_action close_receipt done [09:58:01]requested_data is exist [09:58:01]produce_requested_data [09:58:01]requested_item fm.sn is exist - process it [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 11 00 00 [09:58:01]Write to MH i2c: E2 08 00 83 7E 80 11 00 00 00 00 00 00 7B [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 83 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [09:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:58:01]wFMCommunicate OK [09:58:01]requested_item fd.num is exist - process it [09:58:01]SAM_PROTO_GetFieldsCounters [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 00 00 [09:58:01]Write to MH i2c: E2 08 00 84 7E 80 13 00 00 00 00 00 00 7E [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:02]Read from MH i2c: E2 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 62 00 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 62 00 84 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [09:58:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:02]wFMCommunicate OK [09:58:02]SAM_PROTO_GetFieldsCounters done [09:58:02]requested_item shift.num is exist - process it [09:58:02]requested_item shift.opened is exist - process it [09:58:02]req_shift_opened [09:58:02]FM_GetShiftState [09:58:02]SAM_PROTO_GetShiftState [09:58:02]wFMCommunicate request_size=4 [09:58:02]MH_SAM_APDU [09:58:02]CAPDU: 80 13 01 00 [09:58:02]Write to MH i2c: E2 08 00 85 7E 80 13 01 00 00 00 00 00 80 [09:58:02]Write i2c OK [09:58:02]MH_I2C_Read... [09:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:02]Read from MH i2c: E2 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 0E 00 [09:58:02]MH_I2C_Read... [09:58:02]Read from MH i2c: E2 0E 00 85 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 43 [09:58:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:58:02]wFMCommunicate OK [09:58:02]SAM_PROTO_GetShiftState done [09:58:02]FM_GetShiftState done [09:58:02]req_shift_opened done [09:58:02]requested_item shift.open_date is exist - process it [09:58:02]req_shift_open_date [09:58:02]req_shift_open_date done [09:58:02]produce_requested_data done [09:58:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191322,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:58:02]process_action_free close_receipt [09:58:02]json_value_free [09:58:02]json_value_free done [09:58:02]process_json_proto returns [09:58:02]Send response to host [09:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191322,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:58:02]free response buf [09:58:02]execute_script done [09:58:02]execute_script returns [09:58:02]free content buf [09:58:02]Sock 9.Close socket [09:58:02]Sock 9.Thread stoped [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:41]accept exits with 8 [09:59:41]New connection [09:59:41]New thread 3066817892 created [09:59:41]Thread 3066961252 joined [09:59:41]Waiting for new connection... [09:59:41] Sock 8.Parse request [09:59:41]Sock 8.Check first char [09:59:41]Sock 8.First char is OK [09:59:41]request: POST /json_proto HTTP/1.0 [09:59:41]Method: POST [09:59:41]URL: /json_proto [09:59:41]Method is POST - this is cgi request [09:59:41]url: /json_proto [09:59:41]query_string will be loaded in cgi processing [09:59:41]execute_cgi json_proto POST (null) [09:59:41]execute_cgi path=json_proto method=POST [09:59:41]POST find Content-Length [09:59:41]Host: 172.17.63.131:8080 [09:59:41]Content-Length: 678 [09:59:41]Content-Type: application/json [09:59:41] [09:59:41]POST finish read [09:59:41]Found Content-Length = 678 [09:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:59:41]execute_script... [09:59: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)30616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:59:41]POST & json_proto [09:59:41]process_json_proto [09:59:41]json parsed OK: [09:59:41]protocol is kg_v1.0 [09:59:41]action value=close_receipt [09:59:41]process_action close_receipt [09:59:41]cmd_close_receipt [09:59:41]MH_GetDate [09:59:41]Write to MH i2c: F0 00 00 86 7E F3 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 86 7E 00 15 6C 1B 67 22 05 6E 64 F8 [09:59:41]GetLastDocTimeStamp 1729850286 [09:59:41]current date 1729850389 [09:59:41]FM_GetShiftState [09:59:41]SAM_PROTO_GetShiftState [09:59:41]wFMCommunicate request_size=4 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 13 01 00 [09:59:41]Write to MH i2c: E2 08 00 87 7E 80 13 01 00 00 00 00 00 82 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 87 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 45 [09:59:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:59:41]wFMCommunicate OK [09:59:41]SAM_PROTO_GetShiftState done [09:59:41]FM_GetShiftState done [09:59:41]opened in 1729816399 [09:59:41]opened+sec_in_day 1729902799 [09:59:41]quantity*price = 100050 [09:59:41]sum+1 = 100052 [09:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 62 25.10.2024 09:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191323 ФПД: 176486346448034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191323&fm=176486346448034&tin=02508201610067®Number=0000000000091776&sum=100000 [09:59:42]StoreToDocumentArchive [09:59:42]shift 540 fd 191323 [09:59:42]save to /storage/0540/doc_00191323 [09:59:42]save last doc name /storage/0540/doc_00191323 to /storage/kkm_last_doc_name [09:59:42]save OK [09:59:42]Clear old archive folders... [09:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:59:42]tlvbuf is 01777710 [09:59:42]SAM_PROTO_ClearQueue [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 09 00 00 [09:59:42]Write to MH i2c: E2 08 00 94 7E 80 09 00 00 00 00 00 00 84 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 94 7E 00 90 00 86 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_ClearQueue done [09:59:42]KKMCreateOFDPacket [09:59:42]OFDProtocolAddRootSTLVToBuf [09:59:42]FM_MakeSignedData [09:59:42]FM_MakeSignedData [09:59:42]SAM_PROTO_SignData [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 01 02 [09:59:42]Write to MH i2c: E2 08 00 95 7E 80 0D 01 02 00 00 00 00 8C [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 95 7E 00 90 00 87 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=255 [09:59:42]MH_SAM_APDU [09: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 15 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EB 02 00 35 04 06 00 A0 83 6D FC [09:59:42]Write to MH i2c: E2 02 01 96 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 15 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EB 02 00 35 04 06 00 A0 83 6D FC 00 00 49 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 96 7E 00 90 00 88 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=7 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 02 02 02 DC A2 [09:59:42]Write to MH i2c: E2 0A 00 97 7E 80 0D 02 02 02 00 DC A2 00 00 11 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 97 7E 00 90 00 89 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 03 02 [09:59:42]Write to MH i2c: E2 08 00 98 7E 80 0D 03 02 00 00 00 00 91 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 0B 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 0B 00 98 7E 00 5F BD AA CC 7F 86 97 C3 90 00 83 [09:59:42]RAPDU: 5F BD AA CC 7F 86 97 C3 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_SignData done [09:59:42]FM_MakeSignedData done [09:59:42]CreateOFDProtocolMessage [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 11 00 00 [09:59:42]Write to MH i2c: E2 08 00 99 7E 80 11 00 00 00 00 00 00 91 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 99 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [09:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:42]wFMCommunicate OK [09:59:42]CreateOFDProtocolMessage done [09:59:42]OFDSenderStorePacket 191323 [09:59:42]StoreOFDPacket docnum=191323 [09:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0D 5C 04 01 FF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 15 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EB 02 00 35 04 06 00 A0 83 6D FC DC A2 5F BD AA CC 7F 86 97 C3 [09:59:42]CheckFolder [09:59:42]dirname=/storage/ofd_packets [09:59:42]CheckFolder done [09:59:42]ProducePacketName [09:59:42]name=ofd_packets/00191323 [09:59:42]NVStorageSaveData ofd_packets/00191323 [09:59:42]File name is /storage/ofd_packets/00191323 [09:59:42]Write 298 bytes [09:59:42]NVStorageSaveData done [09:59:42]OFDSenderStorePacket done [09:59:42]KKMCreateOFDPacket done [09:59:42]NVStorageSaveData kkm_last_timestamp [09:59:42]File name is /storage/kkm_last_timestamp [09:59:42]Write 4 bytes [09:59:42]NVStorageSaveData done [09:59:42]ExternCall_PrintAddStr [09:59:42]wPrintStart [09:59:42]Write to MH i2c: 01 00 00 9A 7E 18 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 07 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: 01 07 00 9A 7E 00 00 00 00 00 FF 0F 2D [09:59:42]RasterBufferAndPrint [09:59:42]line Счет N : (1)30616 [09:59:42]line ИНН: 02508201610067 [09:59:42]line Контрольно-Кассовый Чек [09:59:42]line ПРОДАЖА [09:59:42]line ТРК (МРК, ГНК) : 22 [09:59:42]line Товар: 2710194210 [09:59:42]line ДТ-К-5 [09:59:42]line 13.130 * 76.20 [09:59:42]line = 1000.51 [09:59:42]line НДС 12% НСП 1% [09:59:42]line > о реализуемом товаре [09:59:42]line ОКРУГЛЕНИЕ: -0.51 [09:59:42]line ИТОГО: 1000.00 [09:59:42]line Внесено: 1000.00 [09:59:42]line СДАЧА: 0.00 [09:59:42]line НСП 1% : 8.85 [09:59:42]line НДС 12% : 106.25 [09:59:42]line Наличными: 1000.00 [09:59:42]line Безнал.: 0.00 [09:59:42]line Место: АЗС № 170 "Партнер Нефть" [09:59:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:59:42]line СНО: Общий режим [09:59:42]line Чек 62 25.10.2024 09:59 [09:59:42]line Смена: 540 ФФД: 1.0 [09:59:42]line ЗНМ: 0300000110 [09:59:42]line РНМ: 0000000000091776 [09:59:42]line Версия ККМ: 001 [09:59:42]line ФМ: 0000000000871754 [09:59:42]line ФД: 191323 [09:59:42]line ФПД: 176486346448034 [09:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191323&fm=176486346448034&tin=02508201610067®Number=0000000000091776&sum=100000 [09:59:43]OFD Sender: Processing packet 191323 [packets to send 75, broken 74] [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00191323 [09:59:43]OFD Sender: To server: pG, [09:59:43]CommunicateWithHost lk.salyk.kg:30040 [09:59:43]ConnectInit lk.salyk.kg [09:59:43]written 0, free lines is 4095 [09:59:43]Connected sock=10 [09:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0D 5C 04 01 FF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 15 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EB 02 00 35 04 06 00 A0 83 6D FC DC A2 5F BD AA CC 7F 86 97 C3 [09:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C 9E 47 00 B4 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EB 02 00 F4 03 04 00 E4 10 1B 67 B6 04 01 00 00 9F 6A 9D 3D 5B EB 2C F8 [09:59:43]CommunicateWithHost err = 0 [09:59:43]CheckOFDResponse [09:59:43]1017 (14) - 77093643461234 [09:59:43]1041 (16) - 0000000000871754 [09:59:43]1040 (4) - 191323 [09:59:43]1012 (4) - 25.10.2024 03:30 [09:59:43]1206 (1) - 0 [09:59:43]OFD Sender: Remove packet 191323 [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00191323 [09:59:43]NVStorageDeleteData [09:59:43]Write to MH i2c: 01 00 00 C5 7E 43 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 C5 7E 00 00 00 00 00 B9 0C 0F [09:59:43]RasterBufferAndPrint [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]written 0, free lines is 3265 [09:59:43]MH_Cut [09:59:43]Write to MH i2c: D1 01 00 CC 7E 01 1C [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 CC 7E 00 1B [09:59:43]Write to MH i2c: 01 00 00 CD 7E 4B [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:44]OFD Sender: No OFD packet to send [09:59:44]*** Cut start [09:59:44]*** Partial cut [09:59:44]*** CUTSNS_PIN = 1 [09:59:44]*** CUTSNS_PIN = 0 [09:59:44]*** Brake cut motor [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]*** Stop cut motor [09:59:45]*** Cut end [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 CD 7E 00 00 00 00 00 FF 0F 60 [09:59:45]process_action close_receipt done [09:59:45]requested_data is exist [09:59:45]produce_requested_data [09:59:45]requested_item fm.sn is exist - process it [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 11 00 00 [09:59:45]Write to MH i2c: E2 08 00 CE 7E 80 11 00 00 00 00 00 00 C6 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 CE 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [09:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:45]wFMCommunicate OK [09:59:45]requested_item fd.num is exist - process it [09:59:45]SAM_PROTO_GetFieldsCounters [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 00 00 [09:59:45]Write to MH i2c: E2 08 00 CF 7E 80 13 00 00 00 00 00 00 C9 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 CF 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [09:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetFieldsCounters done [09:59:45]requested_item shift.num is exist - process it [09:59:45]requested_item shift.opened is exist - process it [09:59:45]req_shift_opened [09:59:45]FM_GetShiftState [09:59:45]SAM_PROTO_GetShiftState [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 01 00 [09:59:45]Write to MH i2c: E2 08 00 D0 7E 80 13 01 00 00 00 00 00 CB [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 D0 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8E [09:59:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetShiftState done [09:59:45]FM_GetShiftState done [09:59:45]req_shift_opened done [09:59:45]requested_item shift.open_date is exist - process it [09:59:45]req_shift_open_date [09:59:45]req_shift_open_date done [09:59:45]produce_requested_data done [09:59:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191323,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [09:59:45]process_action_free close_receipt [09:59:45]json_value_free [09:59:45]json_value_free done [09:59:45]process_json_proto returns [09:59:45]Send response to host [09:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191323,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [09:59:45]free response buf [09:59:45]execute_script done [09:59:45]execute_script returns [09:59:45]free content buf [09:59:45]Sock 8.Close socket [09:59:45]Sock 8.Thread stoped [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:00]accept exits with 9 [10:02:00]New connection [10:02:00]New thread 3066961252 created [10:02:00]Thread 3066817892 joined [10:02:00]Waiting for new connection... [10:02:00] Sock 9.Parse request [10:02:00]Sock 9.Check first char [10:02:00]Sock 9.First char is OK [10:02:00]request: POST /json_proto HTTP/1.0 [10:02:00]Method: POST [10:02:00]URL: /json_proto [10:02:00]Method is POST - this is cgi request [10:02:00]url: /json_proto [10:02:00]query_string will be loaded in cgi processing [10:02:00]execute_cgi json_proto POST (null) [10:02:00]execute_cgi path=json_proto method=POST [10:02:00]POST find Content-Length [10:02:00]Host: 172.17.63.131:8080 [10:02:00]Content-Length: 678 [10:02:00]Content-Type: application/json [10:02:00] [10:02:00]POST finish read [10:02:00]Found Content-Length = 678 [10:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:02:00]execute_script... [10:02:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:02:00]POST & json_proto [10:02:00]process_json_proto [10:02:00]json parsed OK: [10:02:00]protocol is kg_v1.0 [10:02:00]action value=close_receipt [10:02:00]process_action close_receipt [10:02:00]cmd_close_receipt [10:02:00]MH_GetDate [10:02:00]Write to MH i2c: F0 00 00 D1 7E 3E [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: F0 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: F0 09 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: F0 09 00 D1 7E 00 A1 6C 1B 67 22 05 6E 64 CF [10:02:00]GetLastDocTimeStamp 1729850389 [10:02:00]current date 1729850529 [10:02:00]FM_GetShiftState [10:02:00]SAM_PROTO_GetShiftState [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 13 01 00 [10:02:00]Write to MH i2c: E2 08 00 D2 7E 80 13 01 00 00 00 00 00 CD [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 0E 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 0E 00 D2 7E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 90 [10:02:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_GetShiftState done [10:02:00]FM_GetShiftState done [10:02:00]opened in 1729816399 [10:02:00]opened+sec_in_day 1729902799 [10:02:00]quantity*price = 200025 [10:02:00]sum+1 = 200026 [10:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 63 25.10.2024 10:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191324 ФПД: 153033448518355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100209&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191324&fm=153033448518355&tin=02508201610067®Number=0000000000091776&sum=200000 [10:02:01]StoreToDocumentArchive [10:02:01]shift 540 fd 191324 [10:02:01]save to /storage/0540/doc_00191324 [10:02:01]save last doc name /storage/0540/doc_00191324 to /storage/kkm_last_doc_name [10:02:01]save OK [10:02:01]Clear old archive folders... [10:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:01]tlvbuf is 017CE090 [10:02:01]SAM_PROTO_ClearQueue [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 09 00 00 [10:02:01]Write to MH i2c: E2 08 00 DF 7E 80 09 00 00 00 00 00 00 CF [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 03 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 03 00 DF 7E 00 90 00 D1 [10:02:01]RAPDU: 90 00 [10:02:01]wFMCommunicate OK [10:02:01]SAM_PROTO_ClearQueue done [10:02:01]KKMCreateOFDPacket [10:02:01]OFDProtocolAddRootSTLVToBuf [10:02:01]FM_MakeSignedData [10:02:01]FM_MakeSignedData [10:02:01]SAM_PROTO_SignData [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 0D 01 02 [10:02:01]Write to MH i2c: E2 08 00 E0 7E 80 0D 01 02 00 00 00 00 D7 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 03 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 03 00 E0 7E 00 90 00 D2 [10:02:01]RAPDU: 90 00 [10:02:01]wFMCommunicate OK [10:02:01]wFMCommunicate request_size=255 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3F 00 00 00 F4 03 04 00 A1 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EB 02 00 35 04 06 00 8B 2E E0 56 [10:02:01]Write to MH i2c: E2 02 01 E1 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A1 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EB 02 00 35 04 06 00 8B 2E E0 56 00 00 73 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 03 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 03 00 E1 7E 00 90 00 D3 [10:02:02]RAPDU: 90 00 [10:02:02]wFMCommunicate OK [10:02:02]wFMCommunicate request_size=7 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 0D 02 02 02 72 D3 [10:02:02]Write to MH i2c: E2 0A 00 E2 7E 80 0D 02 02 02 00 72 D3 00 00 23 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 03 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 03 00 E2 7E 00 90 00 D4 [10:02:02]RAPDU: 90 00 [10:02:02]wFMCommunicate OK [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 0D 03 02 [10:02:02]Write to MH i2c: E2 08 00 E3 7E 80 0D 03 02 00 00 00 00 DC [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 0B 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 0B 00 E3 7E 00 3B 5F 7D 21 31 4E 2A A7 90 00 65 [10:02:02]RAPDU: 3B 5F 7D 21 31 4E 2A A7 90 00 [10:02:02]wFMCommunicate OK [10:02:02]SAM_PROTO_SignData done [10:02:02]FM_MakeSignedData done [10:02:02]CreateOFDProtocolMessage [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 11 00 00 [10:02:02]Write to MH i2c: E2 08 00 E4 7E 80 11 00 00 00 00 00 00 DC [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 17 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 17 00 E4 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [10:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:02]wFMCommunicate OK [10:02:02]CreateOFDProtocolMessage done [10:02:02]OFDSenderStorePacket 191324 [10:02:02]StoreOFDPacket docnum=191324 [10:02:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C5 BA 04 01 93 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A1 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EB 02 00 35 04 06 00 8B 2E E0 56 72 D3 3B 5F 7D 21 31 4E 2A A7 [10:02:02]CheckFolder [10:02:02]dirname=/storage/ofd_packets [10:02:02]CheckFolder done [10:02:02]ProducePacketName [10:02:02]name=ofd_packets/00191324 [10:02:02]NVStorageSaveData ofd_packets/00191324 [10:02:02]File name is /storage/ofd_packets/00191324 [10:02:02]Write 298 bytes [10:02:02]NVStorageSaveData done [10:02:02]OFDSenderStorePacket done [10:02:02]KKMCreateOFDPacket done [10:02:02]NVStorageSaveData kkm_last_timestamp [10:02:02]File name is /storage/kkm_last_timestamp [10:02:02]Write 4 bytes [10:02:02]NVStorageSaveData done [10:02:02]ExternCall_PrintAddStr [10:02:02]wPrintStart [10:02:02]Write to MH i2c: 01 00 00 E5 7E 63 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: 01 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: 01 07 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: 01 07 00 E5 7E 00 00 00 00 00 FF 0F 78 [10:02:02]RasterBufferAndPrint [10:02:02]line Счет N : (1)30617 [10:02:02]line ИНН: 02508201610067 [10:02:02]line Контрольно-Кассовый Чек [10:02:02]line ПРОДАЖА [10:02:02]line ТРК (МРК, ГНК) : 11 [10:02:02]line Товар: 2710194210 [10:02:02]line ДТ-К-5 [10:02:02]line 26.250 * 76.20 [10:02:02]line = 2000.25 [10:02:02]line НДС 12% НСП 1% [10:02:02]line > о реализуемом товаре [10:02:02]line ОКРУГЛЕНИЕ: -0.25 [10:02:02]line ИТОГО: 2000.00 [10:02:02]line Внесено: 2000.00 [10:02:02]line СДАЧА: 0.00 [10:02:02]line НСП 1% : 17.70 [10:02:02]line НДС 12% : 212.42 [10:02:02]line Наличными: 2000.00 [10:02:02]line Безнал.: 0.00 [10:02:02]line Место: АЗС № 170 "Партнер Нефть" [10:02:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:02:02]line СНО: Общий режим [10:02:02]line Чек 63 25.10.2024 10:02 [10:02:02]line Смена: 540 ФФД: 1.0 [10:02:02]line ЗНМ: 0300000110 [10:02:02]line РНМ: 0000000000091776 [10:02:02]line Версия ККМ: 001 [10:02:02]line ФМ: 0000000000871754 [10:02:02]line ФД: 191324 [10:02:02]line ФПД: 153033448518355 [10:02:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100209&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191324&fm=153033448518355&tin=02508201610067®Number=0000000000091776&sum=200000 [10:02:02]OFD Sender: Processing packet 191324 [packets to send 75, broken 74] [10:02:02]ProducePacketName [10:02:02]name=ofd_packets/00191324 [10:02:02]OFD Sender: To server: pG, [10:02:02]CommunicateWithHost lk.salyk.kg:30040 [10:02:02]ConnectInit lk.salyk.kg [10:02:02]written 0, free lines is 4095 [10:02:02]Connected sock=10 [10:02:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C5 BA 04 01 93 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A1 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EB 02 00 35 04 06 00 8B 2E E0 56 72 D3 3B 5F 7D 21 31 4E 2A A7 [10:02:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 44 47 00 35 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 31 37 35 34 10 04 04 00 5C EB 02 00 F4 03 04 00 70 11 1B 67 B6 04 01 00 00 89 52 80 CB 85 D7 8D 61 [10:02:03]CommunicateWithHost err = 0 [10:02:03]CheckOFDResponse [10:02:03]1017 (14) - 77093643461234 [10:02:03]1041 (16) - 0000000000871754 [10:02:03]1040 (4) - 191324 [10:02:03]1012 (4) - 25.10.2024 03:33 [10:02:03]1206 (1) - 0 [10:02:03]OFD Sender: Remove packet 191324 [10:02:03]ProducePacketName [10:02:03]name=ofd_packets/00191324 [10:02:03]NVStorageDeleteData [10:02:03]Write to MH i2c: 01 00 00 10 7F 8F [10:02:03]Write i2c OK [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: 01 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: 01 07 00 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: 01 07 00 10 7F 00 00 00 00 00 B5 0C 57 [10:02:03]RasterBufferAndPrint [10:02:03]line [10:02:03]line [10:02:03]line [10:02:03]line [10:02:03]line [10:02:03]written 0, free lines is 3260 [10:02:03]MH_Cut [10:02:03]Write to MH i2c: D1 01 00 17 7F 01 68 [10:02:03]Write i2c OK [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: D1 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: D1 01 00 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: D1 01 00 17 7F 00 67 [10:02:03]Write to MH i2c: 01 00 00 18 7F 97 [10:02:03]Write i2c OK [10:02:03]MH_I2C_Read... [10:02:03]OFD Sender: No OFD packet to send [10:02:04]*** Cut start [10:02:04]*** Partial cut [10:02:04]*** CUTSNS_PIN = 1 [10:02:04]*** CUTSNS_PIN = 0 [10:02:04]*** Brake cut motor [10:02:04]Read from MH i2c: 01 [10:02:04]MH_I2C_Read... [10:02:04]*** Stop cut motor [10:02:04]*** Cut end [10:02:04]Read from MH i2c: 01 07 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: 01 07 00 18 7F 00 00 00 00 00 FF 0F AC [10:02:04]process_action close_receipt done [10:02:04]requested_data is exist [10:02:04]produce_requested_data [10:02:04]requested_item fm.sn is exist - process it [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 11 00 00 [10:02:04]Write to MH i2c: E2 08 00 19 7F 80 11 00 00 00 00 00 00 12 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 19 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [10:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:04]wFMCommunicate OK [10:02:04]requested_item fd.num is exist - process it [10:02:04]SAM_PROTO_GetFieldsCounters [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 13 00 00 [10:02:04]Write to MH i2c: E2 08 00 1A 7F 80 13 00 00 00 00 00 00 15 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 62 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 62 00 1A 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_GetFieldsCounters done [10:02:04]requested_item shift.num is exist - process it [10:02:04]requested_item shift.opened is exist - process it [10:02:04]req_shift_opened [10:02:04]FM_GetShiftState [10:02:04]SAM_PROTO_GetShiftState [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 13 01 00 [10:02:04]Write to MH i2c: E2 08 00 1B 7F 80 13 01 00 00 00 00 00 17 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0E 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0E 00 1B 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DA [10:02:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_GetShiftState done [10:02:04]FM_GetShiftState done [10:02:04]req_shift_opened done [10:02:04]requested_item shift.open_date is exist - process it [10:02:04]req_shift_open_date [10:02:04]req_shift_open_date done [10:02:04]produce_requested_data done [10:02:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191324,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:02:04]process_action_free close_receipt [10:02:04]json_value_free [10:02:04]json_value_free done [10:02:04]process_json_proto returns [10:02:04]Send response to host [10:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191324,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:02:04]free response buf [10:02:04]execute_script done [10:02:04]execute_script returns [10:02:04]free content buf [10:02:04]Sock 9.Close socket [10:02:04]Sock 9.Thread stoped [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:29]accept exits with 8 [10:03:29]New connection [10:03:29]New thread 3066817892 created [10:03:29]Thread 3066961252 joined [10:03:29]Waiting for new connection... [10:03:29] Sock 8.Parse request [10:03:29]Sock 8.Check first char [10:03:29]Sock 8.First char is OK [10:03:29]request: POST /json_proto HTTP/1.0 [10:03:29]Method: POST [10:03:29]URL: /json_proto [10:03:29]Method is POST - this is cgi request [10:03:29]url: /json_proto [10:03:29]query_string will be loaded in cgi processing [10:03:29]execute_cgi json_proto POST (null) [10:03:29]execute_cgi path=json_proto method=POST [10:03:29]POST find Content-Length [10:03:29]Host: 172.17.63.131:8080 [10:03:29]Content-Length: 681 [10:03:29]Content-Type: application/json [10:03:29] [10:03:29]POST finish read [10:03:29]Found Content-Length = 681 [10:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:29]execute_script... [10:03: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)30618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:29]POST & json_proto [10:03:29]process_json_proto [10:03:29]json parsed OK: [10:03:29]protocol is kg_v1.0 [10:03:29]action value=close_receipt [10:03:29]process_action close_receipt [10:03:29]cmd_close_receipt [10:03:29]MH_GetDate [10:03:29]Write to MH i2c: F0 00 00 1C 7F 8A [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: F0 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: F0 09 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: F0 09 00 1C 7F 00 FA 6C 1B 67 22 05 6E 64 74 [10:03:29]GetLastDocTimeStamp 1729850529 [10:03:29]current date 1729850618 [10:03:29]FM_GetShiftState [10:03:29]SAM_PROTO_GetShiftState [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 13 01 00 [10:03:29]Write to MH i2c: E2 08 00 1D 7F 80 13 01 00 00 00 00 00 19 [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 0E 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 0E 00 1D 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DC [10:03:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:03:29]wFMCommunicate OK [10:03:29]SAM_PROTO_GetShiftState done [10:03:29]FM_GetShiftState done [10:03:29]opened in 1729816399 [10:03:29]opened+sec_in_day 1729902799 [10:03:29]quantity*price = 120018 [10:03:29]sum+1 = 120020 [10:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 64 25.10.2024 10:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191325 ФПД: 75431586549991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191325&fm=75431586549991&tin=02508201610067®Number=0000000000091776&sum=120000 [10:03:31]StoreToDocumentArchive [10:03:31]shift 540 fd 191325 [10:03:31]save to /storage/0540/doc_00191325 [10:03:31]save last doc name /storage/0540/doc_00191325 to /storage/kkm_last_doc_name [10:03:31]save OK [10:03:31]Clear old archive folders... [10:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:31]tlvbuf is 016EB1E0 [10:03:31]SAM_PROTO_ClearQueue [10:03:31]wFMCommunicate request_size=4 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 09 00 00 [10:03:31]Write to MH i2c: E2 08 00 2A 7F 80 09 00 00 00 00 00 00 1B [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 2A 7F 00 90 00 1D [10:03:31]RAPDU: 90 00 [10:03:31]wFMCommunicate OK [10:03:31]SAM_PROTO_ClearQueue done [10:03:31]KKMCreateOFDPacket [10:03:31]OFDProtocolAddRootSTLVToBuf [10:03:31]FM_MakeSignedData [10:03:31]FM_MakeSignedData [10:03:31]SAM_PROTO_SignData [10:03:31]wFMCommunicate request_size=4 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 0D 01 02 [10:03:31]Write to MH i2c: E2 08 00 2B 7F 80 0D 01 02 00 00 00 00 23 [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 2B 7F 00 90 00 1E [10:03:31]RAPDU: 90 00 [10:03:31]wFMCommunicate OK [10:03:31]wFMCommunicate request_size=255 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FA 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EB 02 00 35 04 06 00 44 [10:03:31]Write to MH i2c: E2 02 01 2C 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FA 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EB 02 00 35 04 06 00 44 00 00 92 [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 2C 7F 00 90 00 1F [10:03:31]RAPDU: 90 00 [10:03:31]wFMCommunicate OK [10:03:31]wFMCommunicate request_size=10 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 0D 02 02 05 9A C8 EB D0 E7 [10:03:31]Write to MH i2c: E2 0D 00 2D 7F 80 0D 02 02 05 00 9A C8 EB D0 E7 00 00 34 [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 03 00 2D 7F 00 90 00 20 [10:03:31]RAPDU: 90 00 [10:03:31]wFMCommunicate OK [10:03:31]wFMCommunicate request_size=4 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 0D 03 02 [10:03:31]Write to MH i2c: E2 08 00 2E 7F 80 0D 03 02 00 00 00 00 28 [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 0B 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 0B 00 2E 7F 00 03 D3 75 45 55 7B AC 77 90 00 AC [10:03:31]RAPDU: 03 D3 75 45 55 7B AC 77 90 00 [10:03:31]wFMCommunicate OK [10:03:31]SAM_PROTO_SignData done [10:03:31]FM_MakeSignedData done [10:03:31]CreateOFDProtocolMessage [10:03:31]wFMCommunicate request_size=4 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 11 00 00 [10:03:31]Write to MH i2c: E2 08 00 2F 7F 80 11 00 00 00 00 00 00 28 [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 17 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 17 00 2F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [10:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:03:31]wFMCommunicate OK [10:03:31]CreateOFDProtocolMessage done [10:03:31]OFDSenderStorePacket 191325 [10:03:31]StoreOFDPacket docnum=191325 [10:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 96 07 01 E1 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FA 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EB 02 00 35 04 06 00 44 9A C8 EB D0 E7 03 D3 75 45 55 7B AC 77 [10:03:31]CheckFolder [10:03:31]dirname=/storage/ofd_packets [10:03:31]CheckFolder done [10:03:31]ProducePacketName [10:03:31]name=ofd_packets/00191325 [10:03:31]NVStorageSaveData ofd_packets/00191325 [10:03:31]File name is /storage/ofd_packets/00191325 [10:03:31]Write 301 bytes [10:03:31]NVStorageSaveData done [10:03:31]OFDSenderStorePacket done [10:03:31]KKMCreateOFDPacket done [10:03:31]NVStorageSaveData kkm_last_timestamp [10:03:31]File name is /storage/kkm_last_timestamp [10:03:31]Write 4 bytes [10:03:31]NVStorageSaveData done [10:03:31]ExternCall_PrintAddStr [10:03:31]wPrintStart [10:03:31]Write to MH i2c: 01 00 00 30 7F AF [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: 01 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: 01 07 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: 01 07 00 30 7F 00 00 00 00 00 FF 0F C4 [10:03:31]RasterBufferAndPrint [10:03:31]line Счет N : (1)30618 [10:03:31]line ИНН: 02508201610067 [10:03:31]line Контрольно-Кассовый Чек [10:03:31]line ПРОДАЖА [10:03:31]line ТРК (МРК, ГНК) : 21 [10:03:31]line Товар: 2710124130 [10:03:31]line Аи-92-К-5 [10:03:31]line 17.940 * 66.90 [10:03:31]line = 1200.19 [10:03:31]line НДС 12% НСП 1% [10:03:31]line > о реализуемом товаре [10:03:31]line ОКРУГЛЕНИЕ: -0.19 [10:03:31]line ИТОГО: 1200.00 [10:03:31]line Внесено: 1200.00 [10:03:31]line СДАЧА: 0.00 [10:03:31]line НСП 1% : 10.62 [10:03:31]line НДС 12% : 127.45 [10:03:31]line Наличными: 1200.00 [10:03:31]line Безнал.: 0.00 [10:03:31]line Место: АЗС № 170 "Партнер Нефть" [10:03:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:03:31]line СНО: Общий режим [10:03:31]line Чек 64 25.10.2024 10:03 [10:03:31]line Смена: 540 ФФД: 1.0 [10:03:31]line ЗНМ: 0300000110 [10:03:31]line РНМ: 0000000000091776 [10:03:31]line Версия ККМ: 001 [10:03:31]line ФМ: 0000000000871754 [10:03:31]line ФД: 191325 [10:03:31]line ФПД: 75431586549991 [10:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191325&fm=75431586549991&tin=02508201610067®Number=0000000000091776&sum=120000 [10:03:31]OFD Sender: Processing packet 191325 [packets to send 75, broken 74] [10:03:31]ProducePacketName [10:03:31]name=ofd_packets/00191325 [10:03:31]OFD Sender: To server: pG, [10:03:31]CommunicateWithHost lk.salyk.kg:30040 [10:03:31]ConnectInit lk.salyk.kg [10:03:31]written 0, free lines is 4095 [10:03:32]Connected sock=10 [10:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 96 07 01 E1 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FA 6C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EB 02 00 35 04 06 00 44 9A C8 EB D0 E7 03 D3 75 45 55 7B AC 77 [10:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 91 47 00 F4 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EB 02 00 F4 03 04 00 C9 11 1B 67 B6 04 01 00 00 55 A1 12 CC C0 25 A9 F5 [10:03:32]CommunicateWithHost err = 0 [10:03:32]CheckOFDResponse [10:03:32]1017 (14) - 77093643461234 [10:03:32]1041 (16) - 0000000000871754 [10:03:32]1040 (4) - 191325 [10:03:32]1012 (4) - 25.10.2024 03:34 [10:03:32]1206 (1) - 0 [10:03:32]OFD Sender: Remove packet 191325 [10:03:32]ProducePacketName [10:03:32]name=ofd_packets/00191325 [10:03:32]NVStorageDeleteData [10:03:32]Write to MH i2c: 01 00 00 5B 7F DA [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 07 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 07 00 5B 7F 00 00 00 00 00 C2 0C AF [10:03:32]RasterBufferAndPrint [10:03:32]line [10:03:32]line [10:03:32]line [10:03:32]line [10:03:32]line [10:03:32]written 0, free lines is 3273 [10:03:32]MH_Cut [10:03:32]Write to MH i2c: D1 01 00 62 7F 01 B3 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: D1 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: D1 01 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: D1 01 00 62 7F 00 B2 [10:03:32]Write to MH i2c: 01 00 00 63 7F E2 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]OFD Sender: No OFD packet to send [10:03:33]*** Cut start [10:03:33]*** Partial cut [10:03:33]*** CUTSNS_PIN = 1 [10:03:33]*** CUTSNS_PIN = 0 [10:03:33]*** Brake cut motor [10:03:33]Read from MH i2c: 01 [10:03:33]MH_I2C_Read... [10:03:33]*** Stop cut motor [10:03:33]*** Cut end [10:03:33]Read from MH i2c: 01 07 00 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: 01 07 00 63 7F 00 00 00 00 00 FF 0F F7 [10:03:33]process_action close_receipt done [10:03:33]requested_data is exist [10:03:33]produce_requested_data [10:03:33]requested_item fm.sn is exist - process it [10:03:33]wFMCommunicate request_size=4 [10:03:33]MH_SAM_APDU [10:03:33]CAPDU: 80 11 00 00 [10:03:33]Write to MH i2c: E2 08 00 64 7F 80 11 00 00 00 00 00 00 5D [10:03:33]Write i2c OK [10:03:33]MH_I2C_Read... [10:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:33]Read from MH i2c: E2 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: E2 17 00 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: E2 17 00 64 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [10:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:03:33]wFMCommunicate OK [10:03:33]requested_item fd.num is exist - process it [10:03:33]SAM_PROTO_GetFieldsCounters [10:03:33]wFMCommunicate request_size=4 [10:03:33]MH_SAM_APDU [10:03:33]CAPDU: 80 13 00 00 [10:03:33]Write to MH i2c: E2 08 00 65 7F 80 13 00 00 00 00 00 00 60 [10:03:33]Write i2c OK [10:03:33]MH_I2C_Read... [10:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:34]Read from MH i2c: E2 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 62 00 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 62 00 65 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:03:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:34]wFMCommunicate OK [10:03:34]SAM_PROTO_GetFieldsCounters done [10:03:34]requested_item shift.num is exist - process it [10:03:34]requested_item shift.opened is exist - process it [10:03:34]req_shift_opened [10:03:34]FM_GetShiftState [10:03:34]SAM_PROTO_GetShiftState [10:03:34]wFMCommunicate request_size=4 [10:03:34]MH_SAM_APDU [10:03:34]CAPDU: 80 13 01 00 [10:03:34]Write to MH i2c: E2 08 00 66 7F 80 13 01 00 00 00 00 00 62 [10:03:34]Write i2c OK [10:03:34]MH_I2C_Read... [10:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:34]Read from MH i2c: E2 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 0E 00 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 0E 00 66 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 25 [10:03:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:03:34]wFMCommunicate OK [10:03:34]SAM_PROTO_GetShiftState done [10:03:34]FM_GetShiftState done [10:03:34]req_shift_opened done [10:03:34]requested_item shift.open_date is exist - process it [10:03:34]req_shift_open_date [10:03:34]req_shift_open_date done [10:03:34]produce_requested_data done [10:03:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191325,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:03:34]process_action_free close_receipt [10:03:34]json_value_free [10:03:34]json_value_free done [10:03:34]process_json_proto returns [10:03:34]Send response to host [10:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191325,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:03:34]free response buf [10:03:34]execute_script done [10:03:34]execute_script returns [10:03:34]free content buf [10:03:34]Sock 8.Close socket [10:03:34]Sock 8.Thread stoped [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:24]ConnectInit Can't connect to host [10:12:25]accept exits with 9 [10:12:25]New connection [10:12:25]New thread 3066961252 created [10:12:25]Thread 3066817892 joined [10:12:25]Waiting for new connection... [10:12:25] Sock 9.Parse request [10:12:25]Sock 9.Check first char [10:12:25]Sock 9.First char is OK [10:12:25]request: POST /json_proto HTTP/1.0 [10:12:25]Method: POST [10:12:25]URL: /json_proto [10:12:25]Method is POST - this is cgi request [10:12:25]url: /json_proto [10:12:25]query_string will be loaded in cgi processing [10:12:25]execute_cgi json_proto POST (null) [10:12:25]execute_cgi path=json_proto method=POST [10:12:25]POST find Content-Length [10:12:25]Host: 172.17.63.131:8080 [10:12:25]Content-Length: 790 [10:12:25]Content-Type: application/json [10:12:25] [10:12:25]POST finish read [10:12:25]Found Content-Length = 790 [10:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A4466550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:25]execute_script... [10:12: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)30619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A4466550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:25]POST & json_proto [10:12:25]process_json_proto [10:12:25]json parsed OK: [10:12:25]protocol is kg_v1.0 [10:12:25]action value=close_receipt [10:12:25]process_action close_receipt [10:12:25]cmd_close_receipt [10:12:25]MH_GetDate [10:12:25]Write to MH i2c: F0 00 00 67 7F D5 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: F0 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: F0 09 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: F0 09 00 67 7F 00 11 6F 1B 67 22 05 6E 64 D9 [10:12:25]GetLastDocTimeStamp 1729850618 [10:12:25]current date 1729851153 [10:12:25]FM_GetShiftState [10:12:25]SAM_PROTO_GetShiftState [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 13 01 00 [10:12:25]Write to MH i2c: E2 08 00 68 7F 80 13 01 00 00 00 00 00 64 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 68 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 27 [10:12:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetShiftState done [10:12:25]FM_GetShiftState done [10:12:25]opened in 1729816399 [10:12:25]opened+sec_in_day 1729902799 [10:12:25]quantity*price = 0 [10:12:25]sum+1 = 1 [10:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 65 25.10.2024 10:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Топливная Карта 4466550 ФМ: 0000000000871754 ФД: 191326 ФПД: 13557735991542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191326&fm=13557735991542&tin=02508201610067®Number=0000000000091776&sum=0 [10:12:26]StoreToDocumentArchive [10:12:26]shift 540 fd 191326 [10:12:26]save to /storage/0540/doc_00191326 [10:12:26]save last doc name /storage/0540/doc_00191326 to /storage/kkm_last_doc_name [10:12:26]save OK [10:12:26]Clear old archive folders... [10:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:26]tlvbuf is 0175F5D0 [10:12:26]SAM_PROTO_ClearQueue [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 09 00 00 [10:12:26]Write to MH i2c: E2 08 00 75 7F 80 09 00 00 00 00 00 00 66 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 75 7F 00 90 00 68 [10:12:26]RAPDU: 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_ClearQueue done [10:12:26]KKMCreateOFDPacket [10:12:26]OFDProtocolAddRootSTLVToBuf [10:12:26]FM_MakeSignedData [10:12:26]FM_MakeSignedData [10:12:26]SAM_PROTO_SignData [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 0D 01 02 [10:12:26]Write to MH i2c: E2 08 00 76 7F 80 0D 01 02 00 00 00 00 6E [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 76 7F 00 90 00 69 [10:12:26]RAPDU: 90 00 [10:12:26]wFMCommunicate OK [10:12:26]wFMCommunicate request_size=255 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 11 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EB 02 00 35 04 06 00 0C 54 A8 09 [10:12:26]Write to MH i2c: E2 02 01 77 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 11 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EB 02 00 35 04 06 00 0C 54 A8 09 00 00 0F [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 77 7F 00 90 00 6A [10:12:26]RAPDU: 90 00 [10:12:26]wFMCommunicate OK [10:12:26]wFMCommunicate request_size=7 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 0D 02 02 02 A8 F6 [10:12:26]Write to MH i2c: E2 0A 00 78 7F 80 0D 02 02 02 00 A8 F6 00 00 13 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 03 00 78 7F 00 90 00 6B [10:12:26]RAPDU: 90 00 [10:12:26]wFMCommunicate OK [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 0D 03 02 [10:12:26]Write to MH i2c: E2 08 00 79 7F 80 0D 03 02 00 00 00 00 73 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0B 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0B 00 79 7F 00 A8 0A 8D A8 BA 81 7B 73 90 00 84 [10:12:26]RAPDU: A8 0A 8D A8 BA 81 7B 73 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_SignData done [10:12:26]FM_MakeSignedData done [10:12:26]CreateOFDProtocolMessage [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 11 00 00 [10:12:26]Write to MH i2c: E2 08 00 7A 7F 80 11 00 00 00 00 00 00 73 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 7A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [10:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:26]wFMCommunicate OK [10:12:26]CreateOFDProtocolMessage done [10:12:26]OFDSenderStorePacket 191326 [10:12:26]StoreOFDPacket docnum=191326 [10:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F2 24 04 01 DC E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 11 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EB 02 00 35 04 06 00 0C 54 A8 09 A8 F6 A8 0A 8D A8 BA 81 7B 73 [10:12:26]CheckFolder [10:12:26]dirname=/storage/ofd_packets [10:12:26]CheckFolder done [10:12:26]ProducePacketName [10:12:26]name=ofd_packets/00191326 [10:12:26]NVStorageSaveData ofd_packets/00191326 [10:12:26]File name is /storage/ofd_packets/00191326 [10:12:26]Write 298 bytes [10:12:26]NVStorageSaveData done [10:12:26]OFDSenderStorePacket done [10:12:26]KKMCreateOFDPacket done [10:12:26]NVStorageSaveData kkm_last_timestamp [10:12:26]File name is /storage/kkm_last_timestamp [10:12:26]Write 4 bytes [10:12:26]NVStorageSaveData done [10:12:26]ExternCall_PrintAddStr [10:12:26]wPrintStart [10:12:26]Write to MH i2c: 01 00 00 7B 7F FA [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 7B 7F 00 00 00 00 00 FF 0F 0F [10:12:26]RasterBufferAndPrint [10:12:26]line Счет N : (1)30619 [10:12:26]line ИНН: 02508201610067 [10:12:26]line Контрольно-Кассовый Чек [10:12:26]line ПРОДАЖА [10:12:26]line ТРК (МРК, ГНК) : 22 [10:12:26]line Товар: 2710194210 [10:12:26]line ДТ-К-5 [10:12:26]line 70.000 * 0.00 [10:12:26]line = 0.00 [10:12:26]line НДС 12% НСП 1% [10:12:26]line > о реализуемом товаре [10:12:26]line ИТОГО: 0.00 [10:12:26]line НСП 1% : 0.00 [10:12:26]line НДС 12% : 0.00 [10:12:26]line Наличными: 0.00 [10:12:26]line Безнал.: 0.00 [10:12:26]line Место: АЗС № 170 "Партнер Нефть" [10:12:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:12:26]line СНО: Общий режим [10:12:26]line Чек 65 25.10.2024 10:12 [10:12:26]line Смена: 540 ФФД: 1.0 [10:12:26]line ЗНМ: 0300000110 [10:12:26]line РНМ: 0000000000091776 [10:12:26]line Версия ККМ: 001 [10:12:26]line Талоны: Топливная Карта [10:12:26]line 4466550 [10:12:26]line ФМ: 0000000000871754 [10:12:26]line ФД: 191326 [10:12:26]line ФПД: 13557735991542 [10:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191326&fm=13557735991542&tin=02508201610067®Number=0000000000091776&sum=0 [10:12:27]OFD Sender: Processing packet 191326 [packets to send 75, broken 74] [10:12:27]ProducePacketName [10:12:27]name=ofd_packets/00191326 [10:12:27]OFD Sender: To server: pG, [10:12:27]CommunicateWithHost lk.salyk.kg:30040 [10:12:27]ConnectInit lk.salyk.kg [10:12:27]written 0, free lines is 4095 [10:12:27]Connected sock=10 [10:12:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F2 24 04 01 DC E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 11 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EB 02 00 35 04 06 00 0C 54 A8 09 A8 F6 A8 0A 8D A8 BA 81 7B 73 [10:12:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 50 47 00 BA 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 31 37 35 34 10 04 04 00 5E EB 02 00 F4 03 04 00 E0 13 1B 67 B6 04 01 00 00 F2 6D 0C 04 E4 F4 8C 04 [10:12:27]CommunicateWithHost err = 0 [10:12:27]CheckOFDResponse [10:12:27]1017 (14) - 77093643461234 [10:12:27]1041 (16) - 0000000000871754 [10:12:27]1040 (4) - 191326 [10:12:27]1012 (4) - 25.10.2024 03:43 [10:12:27]1206 (1) - 0 [10:12:27]OFD Sender: Remove packet 191326 [10:12:27]ProducePacketName [10:12:27]name=ofd_packets/00191326 [10:12:27]NVStorageDeleteData [10:12:27]Write to MH i2c: 01 00 00 A5 7F 24 [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 07 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 07 00 A5 7F 00 00 00 00 00 BC 0C F3 [10:12:27]RasterBufferAndPrint [10:12:27]line [10:12:27]line [10:12:27]line [10:12:27]line [10:12:27]line [10:12:27]written 0, free lines is 3267 [10:12:27]MH_Cut [10:12:27]Write to MH i2c: D1 01 00 AC 7F 01 FD [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: D1 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: D1 01 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: D1 01 00 AC 7F 00 FC [10:12:27]Write to MH i2c: 01 00 00 AD 7F 2C [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:28]OFD Sender: No OFD packet to send [10:12:28]*** Cut start [10:12:28]*** Partial cut [10:12:28]*** CUTSNS_PIN = 1 [10:12:28]*** CUTSNS_PIN = 0 [10:12:28]*** Brake cut motor [10:12:29]Read from MH i2c: 01 [10:12:29]MH_I2C_Read... [10:12:29]*** Stop cut motor [10:12:29]*** Cut end [10:12:29]Read from MH i2c: 01 07 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: 01 07 00 AD 7F 00 00 00 00 00 FF 0F 41 [10:12:29]process_action close_receipt done [10:12:29]requested_data is exist [10:12:29]produce_requested_data [10:12:29]requested_item fm.sn is exist - process it [10:12:29]wFMCommunicate request_size=4 [10:12:29]MH_SAM_APDU [10:12:29]CAPDU: 80 11 00 00 [10:12:29]Write to MH i2c: E2 08 00 AE 7F 80 11 00 00 00 00 00 00 A7 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:29]Read from MH i2c: E2 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 17 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 17 00 AE 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [10:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:29]wFMCommunicate OK [10:12:29]requested_item fd.num is exist - process it [10:12:29]SAM_PROTO_GetFieldsCounters [10:12:29]wFMCommunicate request_size=4 [10:12:29]MH_SAM_APDU [10:12:29]CAPDU: 80 13 00 00 [10:12:29]Write to MH i2c: E2 08 00 AF 7F 80 13 00 00 00 00 00 00 AA [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:29]Read from MH i2c: E2 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 62 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 62 00 AF 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:29]wFMCommunicate OK [10:12:29]SAM_PROTO_GetFieldsCounters done [10:12:29]requested_item shift.num is exist - process it [10:12:29]requested_item shift.opened is exist - process it [10:12:29]req_shift_opened [10:12:29]FM_GetShiftState [10:12:29]SAM_PROTO_GetShiftState [10:12:29]wFMCommunicate request_size=4 [10:12:29]MH_SAM_APDU [10:12:29]CAPDU: 80 13 01 00 [10:12:29]Write to MH i2c: E2 08 00 B0 7F 80 13 01 00 00 00 00 00 AC [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:29]Read from MH i2c: E2 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 0E 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 0E 00 B0 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6F [10:12:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:12:29]wFMCommunicate OK [10:12:29]SAM_PROTO_GetShiftState done [10:12:29]FM_GetShiftState done [10:12:29]req_shift_opened done [10:12:29]requested_item shift.open_date is exist - process it [10:12:29]req_shift_open_date [10:12:29]req_shift_open_date done [10:12:29]produce_requested_data done [10:12:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191326,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:12:29]process_action_free close_receipt [10:12:29]json_value_free [10:12:29]json_value_free done [10:12:29]process_json_proto returns [10:12:29]Send response to host [10:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191326,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:12:29]free response buf [10:12:29]execute_script done [10:12:29]execute_script returns [10:12:29]free content buf [10:12:29]Sock 9.Close socket [10:12:29]Sock 9.Thread stoped [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:11]accept exits with 8 [10:13:11]New connection [10:13:11]New thread 3066817892 created [10:13:11]Thread 3066961252 joined [10:13:11]Waiting for new connection... [10:13:11] Sock 8.Parse request [10:13:11]Sock 8.Check first char [10:13:11]Sock 8.First char is OK [10:13:11]request: POST /json_proto HTTP/1.0 [10:13:11]Method: POST [10:13:11]URL: /json_proto [10:13:11]Method is POST - this is cgi request [10:13:11]url: /json_proto [10:13:11]query_string will be loaded in cgi processing [10:13:11]execute_cgi json_proto POST (null) [10:13:11]execute_cgi path=json_proto method=POST [10:13:11]POST find Content-Length [10:13:11]Host: 172.17.63.131:8080 [10:13:11]Content-Length: 862 [10:13:11]Content-Type: application/json [10:13:11] [10:13:11]POST finish read [10:13:11]Found Content-Length = 862 [10:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:11]execute_script... [10:13: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)30620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:11]POST & json_proto [10:13:11]process_json_proto [10:13:11]json parsed OK: [10:13:11]protocol is kg_v1.0 [10:13:11]action value=close_receipt [10:13:11]process_action close_receipt [10:13:11]cmd_close_receipt [10:13:11]MH_GetDate [10:13:11]Write to MH i2c: F0 00 00 B1 7F 1F [10:13:11]Write i2c OK [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 09 00 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 09 00 B1 7F 00 40 6F 1B 67 22 05 6E 64 52 [10:13:11]GetLastDocTimeStamp 1729851153 [10:13:11]current date 1729851200 [10:13:11]FM_GetShiftState [10:13:11]SAM_PROTO_GetShiftState [10:13:11]wFMCommunicate request_size=4 [10:13:11]MH_SAM_APDU [10:13:11]CAPDU: 80 13 01 00 [10:13:11]Write to MH i2c: E2 08 00 B2 7F 80 13 01 00 00 00 00 00 AE [10:13:11]Write i2c OK [10:13:11]MH_I2C_Read... [10:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:11]Read from MH i2c: E2 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: E2 0E 00 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: E2 0E 00 B2 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 71 [10:13:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:13:11]wFMCommunicate OK [10:13:11]SAM_PROTO_GetShiftState done [10:13:11]FM_GetShiftState done [10:13:11]opened in 1729816399 [10:13:11]opened+sec_in_day 1729902799 [10:13:11]quantity*price = 35055 [10:13:11]sum+1 = 35057 [10:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 66 25.10.2024 10:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191327 ФПД: 172225351410197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191327&fm=172225351410197&tin=02508201610067®Number=0000000000091776&sum=35056 [10:13:13]StoreToDocumentArchive [10:13:13]shift 540 fd 191327 [10:13:13]save to /storage/0540/doc_00191327 [10:13:13]save last doc name /storage/0540/doc_00191327 to /storage/kkm_last_doc_name [10:13:13]save OK [10:13:13]Clear old archive folders... [10:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:13]tlvbuf is 0185A5E0 [10:13:13]SAM_PROTO_ClearQueue [10:13:13]wFMCommunicate request_size=4 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 09 00 00 [10:13:13]Write to MH i2c: E2 08 00 BF 7F 80 09 00 00 00 00 00 00 B0 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 BF 7F 00 90 00 B2 [10:13:13]RAPDU: 90 00 [10:13:13]wFMCommunicate OK [10:13:13]SAM_PROTO_ClearQueue done [10:13:13]KKMCreateOFDPacket [10:13:13]OFDProtocolAddRootSTLVToBuf [10:13:13]FM_MakeSignedData [10:13:13]FM_MakeSignedData [10:13:13]SAM_PROTO_SignData [10:13:13]wFMCommunicate request_size=4 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 0D 01 02 [10:13:13]Write to MH i2c: E2 08 00 C0 7F 80 0D 01 02 00 00 00 00 B8 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:13]OFD Sender: No OFD packet to send [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 C0 7F 00 90 00 B3 [10:13:13]RAPDU: 90 00 [10:13:13]wFMCommunicate OK [10:13:13]wFMCommunicate request_size=255 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 40 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EB 02 00 35 04 06 00 9C [10:13:13]Write to MH i2c: E2 02 01 C1 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 40 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EB 02 00 35 04 06 00 9C 00 00 40 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 C1 7F 00 90 00 B4 [10:13:13]RAPDU: 90 00 [10:13:13]wFMCommunicate OK [10:13:13]wFMCommunicate request_size=10 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 0D 02 02 05 A3 56 E4 62 15 [10:13:13]Write to MH i2c: E2 0D 00 C2 7F 80 0D 02 02 05 00 A3 56 E4 62 15 00 00 19 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 03 00 C2 7F 00 90 00 B5 [10:13:13]RAPDU: 90 00 [10:13:13]wFMCommunicate OK [10:13:13]wFMCommunicate request_size=4 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 0D 03 02 [10:13:13]Write to MH i2c: E2 08 00 C3 7F 80 0D 03 02 00 00 00 00 BD [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 0B 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 0B 00 C3 7F 00 41 2B 06 6A 0A B1 E8 B1 90 00 EE [10:13:13]RAPDU: 41 2B 06 6A 0A B1 E8 B1 90 00 [10:13:13]wFMCommunicate OK [10:13:13]SAM_PROTO_SignData done [10:13:13]FM_MakeSignedData done [10:13:13]CreateOFDProtocolMessage [10:13:13]wFMCommunicate request_size=4 [10:13:13]MH_SAM_APDU [10:13:13]CAPDU: 80 11 00 00 [10:13:13]Write to MH i2c: E2 08 00 C4 7F 80 11 00 00 00 00 00 00 BD [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 17 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 17 00 C4 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [10:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:13:13]wFMCommunicate OK [10:13:13]CreateOFDProtocolMessage done [10:13:13]OFDSenderStorePacket 191327 [10:13:13]StoreOFDPacket docnum=191327 [10:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DE 57 07 01 E4 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 40 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EB 02 00 35 04 06 00 9C A3 56 E4 62 15 41 2B 06 6A 0A B1 E8 B1 [10:13:13]CheckFolder [10:13:13]dirname=/storage/ofd_packets [10:13:13]CheckFolder done [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00191327 [10:13:13]NVStorageSaveData ofd_packets/00191327 [10:13:13]File name is /storage/ofd_packets/00191327 [10:13:13]Write 301 bytes [10:13:13]NVStorageSaveData done [10:13:13]OFDSenderStorePacket done [10:13:13]KKMCreateOFDPacket done [10:13:13]NVStorageSaveData kkm_last_timestamp [10:13:13]File name is /storage/kkm_last_timestamp [10:13:13]Write 4 bytes [10:13:13]NVStorageSaveData done [10:13:13]ExternCall_PrintAddStr [10:13:13]wPrintStart [10:13:13]Write to MH i2c: 01 00 00 C5 7F 44 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 C5 7F 00 00 00 00 00 FF 0F 59 [10:13:13]RasterBufferAndPrint [10:13:13]line Счет N : (1)30620 [10:13:13]line ИНН: 02508201610067 [10:13:13]line Контрольно-Кассовый Чек [10:13:13]line ПРОДАЖА [10:13:13]line ТРК (МРК, ГНК) : 21 [10:13:13]line Товар: 2710124130 [10:13:13]line Аи-92-К-5 [10:13:13]line 5.240 * 66.90 [10:13:13]line = 350.56 [10:13:13]line НДС 12% НСП 1% [10:13:13]line > о реализуемом товаре [10:13:13]line ИТОГО: 350.56 [10:13:13]line НСП 1% : 3.10 [10:13:13]line НДС 12% : 37.23 [10:13:13]line Наличными: 0.00 [10:13:13]line Безнал.: 350.56 [10:13:13]line Место: АЗС № 170 "Партнер Нефть" [10:13:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:13:13]line СНО: Общий режим [10:13:13]line Чек 66 25.10.2024 10:13 [10:13:13]line Смена: 540 ФФД: 1.0 [10:13:13]line ЗНМ: 0300000110 [10:13:13]line РНМ: 0000000000091776 [10:13:13]line Версия ККМ: 001 [10:13:13]line Платежная система: Кыргызкоммерцбанк [10:13:13]line ФМ: 0000000000871754 [10:13:13]line ФД: 191327 [10:13:13]line ФПД: 172225351410197 [10:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191327&fm=172225351410197&tin=02508201610067®Number=0000000000091776&sum=35056 [10:13:13]OFD Sender: Processing packet 191327 [packets to send 75, broken 74] [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00191327 [10:13:13]OFD Sender: To server: pG, [10:13:13]CommunicateWithHost lk.salyk.kg:30040 [10:13:13]ConnectInit lk.salyk.kg [10:13:13]written 0, free lines is 4095 [10:13:13]Connected sock=11 [10:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DE 57 07 01 E4 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 40 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EB 02 00 35 04 06 00 9C A3 56 E4 62 15 41 2B 06 6A 0A B1 E8 B1 [10:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 71 47 00 3E 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EB 02 00 F4 03 04 00 0F 14 1B 67 B6 04 01 00 00 EF 57 4B E5 0E C5 04 45 [10:13:14]CommunicateWithHost err = 0 [10:13:14]CheckOFDResponse [10:13:14]1017 (14) - 77093643461234 [10:13:14]1041 (16) - 0000000000871754 [10:13:14]1040 (4) - 191327 [10:13:14]1012 (4) - 25.10.2024 03:44 [10:13:14]1206 (1) - 0 [10:13:14]OFD Sender: Remove packet 191327 [10:13:14]ProducePacketName [10:13:14]name=ofd_packets/00191327 [10:13:14]NVStorageDeleteData [10:13:14]Write to MH i2c: 01 00 00 EF 7F 6E [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 EF 7F 00 00 00 00 00 D9 0C 5A [10:13:14]RasterBufferAndPrint [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]written 0, free lines is 3304 [10:13:14]MH_Cut [10:13:14]Write to MH i2c: D1 01 00 F6 7F 01 47 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 01 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 01 00 F6 7F 00 46 [10:13:14]Write to MH i2c: 01 00 00 F7 7F 76 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]OFD Sender: No OFD packet to send [10:13:14]*** Cut start [10:13:14]*** Partial cut [10:13:14]*** CUTSNS_PIN = 1 [10:13:14]*** CUTSNS_PIN = 0 [10:13:15]*** Brake cut motor [10:13:15]Read from MH i2c: 01 [10:13:15]MH_I2C_Read... [10:13:15]*** Stop cut motor [10:13:15]*** Cut end [10:13:15]Read from MH i2c: 01 07 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 07 00 F7 7F 00 00 00 00 00 FF 0F 8B [10:13:15]process_action close_receipt done [10:13:15]requested_data is exist [10:13:15]produce_requested_data [10:13:15]requested_item fm.sn is exist - process it [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 11 00 00 [10:13:15]Write to MH i2c: E2 08 00 F8 7F 80 11 00 00 00 00 00 00 F1 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 F8 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [10:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:13:15]wFMCommunicate OK [10:13:15]requested_item fd.num is exist - process it [10:13:15]SAM_PROTO_GetFieldsCounters [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 00 00 [10:13:15]Write to MH i2c: E2 08 00 F9 7F 80 13 00 00 00 00 00 00 F4 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 F9 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [10:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetFieldsCounters done [10:13:15]requested_item shift.num is exist - process it [10:13:15]requested_item shift.opened is exist - process it [10:13:15]req_shift_opened [10:13:15]FM_GetShiftState [10:13:15]SAM_PROTO_GetShiftState [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 01 00 [10:13:15]Write to MH i2c: E2 08 00 FA 7F 80 13 01 00 00 00 00 00 F6 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 FA 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B9 [10:13:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetShiftState done [10:13:15]FM_GetShiftState done [10:13:15]req_shift_opened done [10:13:15]requested_item shift.open_date is exist - process it [10:13:15]req_shift_open_date [10:13:15]req_shift_open_date done [10:13:15]produce_requested_data done [10:13:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191327,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:13:15]process_action_free close_receipt [10:13:15]json_value_free [10:13:15]json_value_free done [10:13:15]process_json_proto returns [10:13:15]Send response to host [10:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191327,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:13:15]free response buf [10:13:15]execute_script done [10:13:15]execute_script returns [10:13:15]free content buf [10:13:15]Sock 8.Close socket [10:13:15]Sock 8.Thread stoped [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:22]accept exits with 10 [10:16:22]New connection [10:16:22]New thread 3066961252 created [10:16:22]Thread 3066817892 joined [10:16:22]Waiting for new connection... [10:16:22] Sock 10.Parse request [10:16:22]Sock 10.Check first char [10:16:22]Sock 10.First char is OK [10:16:22]request: POST /json_proto HTTP/1.0 [10:16:22]Method: POST [10:16:22]URL: /json_proto [10:16:22]Method is POST - this is cgi request [10:16:22]url: /json_proto [10:16:22]query_string will be loaded in cgi processing [10:16:22]execute_cgi json_proto POST (null) [10:16:22]execute_cgi path=json_proto method=POST [10:16:22]POST find Content-Length [10:16:22]Host: 172.17.63.131:8080 [10:16:22]Content-Length: 681 [10:16:22]Content-Type: application/json [10:16:22] [10:16:22]POST finish read [10:16:22]Found Content-Length = 681 [10:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:22]execute_script... [10:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:22]POST & json_proto [10:16:22]process_json_proto [10:16:22]json parsed OK: [10:16:22]protocol is kg_v1.0 [10:16:22]action value=close_receipt [10:16:22]process_action close_receipt [10:16:22]cmd_close_receipt [10:16:22]MH_GetDate [10:16:22]Write to MH i2c: F0 00 00 FB 7F 69 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: F0 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: F0 09 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: F0 09 00 FB 7F 00 FF 6F 1B 67 22 05 6E 64 5B [10:16:22]GetLastDocTimeStamp 1729851200 [10:16:22]current date 1729851391 [10:16:22]FM_GetShiftState [10:16:22]SAM_PROTO_GetShiftState [10:16:22]wFMCommunicate request_size=4 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 13 01 00 [10:16:22]Write to MH i2c: E2 08 00 FC 7F 80 13 01 00 00 00 00 00 F8 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0E 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0E 00 FC 7F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BB [10:16:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:16:22]wFMCommunicate OK [10:16:22]SAM_PROTO_GetShiftState done [10:16:22]FM_GetShiftState done [10:16:22]opened in 1729816399 [10:16:22]opened+sec_in_day 1729902799 [10:16:22]quantity*price = 100015 [10:16:22]sum+1 = 100017 [10:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 67 25.10.2024 10:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191328 ФПД: 100764209674766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191328&fm=100764209674766&tin=02508201610067®Number=0000000000091776&sum=100000 [10:16:24]StoreToDocumentArchive [10:16:24]shift 540 fd 191328 [10:16:24]save to /storage/0540/doc_00191328 [10:16:24]save last doc name /storage/0540/doc_00191328 to /storage/kkm_last_doc_name [10:16:24]save OK [10:16:24]Clear old archive folders... [10:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:24]tlvbuf is 01745150 [10:16:24]SAM_PROTO_ClearQueue [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 09 00 00 [10:16:24]Write to MH i2c: E2 08 00 09 80 80 09 00 00 00 00 00 00 FB [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 09 80 00 90 00 FD [10:16:24]RAPDU: 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_ClearQueue done [10:16:24]KKMCreateOFDPacket [10:16:24]OFDProtocolAddRootSTLVToBuf [10:16:24]FM_MakeSignedData [10:16:24]FM_MakeSignedData [10:16:24]SAM_PROTO_SignData [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 0D 01 02 [10:16:24]Write to MH i2c: E2 08 00 0A 80 80 0D 01 02 00 00 00 00 03 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 0A 80 00 90 00 FE [10:16:24]RAPDU: 90 00 [10:16:24]wFMCommunicate OK [10:16:24]wFMCommunicate request_size=255 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EB 02 00 35 04 06 00 5B [10:16:24]Write to MH i2c: E2 02 01 0B 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EB 02 00 35 04 06 00 5B 00 00 8A [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 0B 80 00 90 00 FF [10:16:24]RAPDU: 90 00 [10:16:24]wFMCommunicate OK [10:16:24]wFMCommunicate request_size=10 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 0D 02 02 05 A4 FE EC 7A 0E [10:16:24]Write to MH i2c: E2 0D 00 0C 80 80 0D 02 02 05 00 A4 FE EC 7A 0E 00 00 26 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 03 00 0C 80 00 90 00 00 [10:16:24]RAPDU: 90 00 [10:16:24]wFMCommunicate OK [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 0D 03 02 [10:16:24]Write to MH i2c: E2 08 00 0D 80 80 0D 03 02 00 00 00 00 08 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0B 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0B 00 0D 80 00 F6 D3 1D AD 27 FA 03 08 90 00 C8 [10:16:24]RAPDU: F6 D3 1D AD 27 FA 03 08 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_SignData done [10:16:24]FM_MakeSignedData done [10:16:24]CreateOFDProtocolMessage [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 11 00 00 [10:16:24]Write to MH i2c: E2 08 00 0E 80 80 11 00 00 00 00 00 00 08 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 17 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 17 00 0E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [10:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:24]wFMCommunicate OK [10:16:24]CreateOFDProtocolMessage done [10:16:24]OFDSenderStorePacket 191328 [10:16:24]StoreOFDPacket docnum=191328 [10:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 24 07 01 4E F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EB 02 00 35 04 06 00 5B A4 FE EC 7A 0E F6 D3 1D AD 27 FA 03 08 [10:16:24]CheckFolder [10:16:24]dirname=/storage/ofd_packets [10:16:24]CheckFolder done [10:16:24]ProducePacketName [10:16:24]name=ofd_packets/00191328 [10:16:24]NVStorageSaveData ofd_packets/00191328 [10:16:24]File name is /storage/ofd_packets/00191328 [10:16:24]Write 301 bytes [10:16:24]NVStorageSaveData done [10:16:24]OFDSenderStorePacket done [10:16:24]KKMCreateOFDPacket done [10:16:24]NVStorageSaveData kkm_last_timestamp [10:16:24]File name is /storage/kkm_last_timestamp [10:16:24]Write 4 bytes [10:16:24]NVStorageSaveData done [10:16:24]ExternCall_PrintAddStr [10:16:24]wPrintStart [10:16:24]Write to MH i2c: 01 00 00 0F 80 8F [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: 01 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: 01 07 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: 01 07 00 0F 80 00 00 00 00 00 FF 0F A4 [10:16:24]RasterBufferAndPrint [10:16:24]line Счет N : (1)30621 [10:16:24]line ИНН: 02508201610067 [10:16:24]line Контрольно-Кассовый Чек [10:16:24]line ПРОДАЖА [10:16:24]line ТРК (МРК, ГНК) : 12 [10:16:24]line Товар: 2710124130 [10:16:24]line Аи-92-К-5 [10:16:24]line 14.950 * 66.90 [10:16:24]line = 1000.16 [10:16:24]line НДС 12% НСП 1% [10:16:24]line > о реализуемом товаре [10:16:24]line ОКРУГЛЕНИЕ: -0.16 [10:16:24]line ИТОГО: 1000.00 [10:16:24]line Внесено: 1000.00 [10:16:24]line СДАЧА: 0.00 [10:16:24]line НСП 1% : 8.85 [10:16:24]line НДС 12% : 106.21 [10:16:24]line Наличными: 1000.00 [10:16:24]line Безнал.: 0.00 [10:16:24]line Место: АЗС № 170 "Партнер Нефть" [10:16:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:16:24]line СНО: Общий режим [10:16:24]line Чек 67 25.10.2024 10:16 [10:16:24]line Смена: 540 ФФД: 1.0 [10:16:24]line ЗНМ: 0300000110 [10:16:24]line РНМ: 0000000000091776 [10:16:24]line Версия ККМ: 001 [10:16:24]line ФМ: 0000000000871754 [10:16:24]line ФД: 191328 [10:16:24]line ФПД: 100764209674766 [10:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191328&fm=100764209674766&tin=02508201610067®Number=0000000000091776&sum=100000 [10:16:24]written 0, free lines is 4095 [10:16:24]OFD Sender: Processing packet 191328 [packets to send 75, broken 74] [10:16:24]ProducePacketName [10:16:24]name=ofd_packets/00191328 [10:16:24]OFD Sender: To server: pG, [10:16:24]CommunicateWithHost lk.salyk.kg:30040 [10:16:24]ConnectInit lk.salyk.kg [10:16:24]Connected sock=11 [10: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 31 37 35 34 0F 01 00 00 3B 24 07 01 4E F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FF 6F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EB 02 00 35 04 06 00 5B A4 FE EC 7A 0E F6 D3 1D AD 27 FA 03 08 [10:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 01 2E 47 00 F1 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EB 02 00 F4 03 04 00 CD 14 1B 67 B6 04 01 00 00 7B 3F 86 A2 B8 BF 78 77 [10:16:24]CommunicateWithHost err = 0 [10:16:24]CheckOFDResponse [10:16:24]1017 (14) - 77093643461234 [10:16:24]1041 (16) - 0000000000871754 [10:16:24]1040 (4) - 191328 [10:16:24]1012 (4) - 25.10.2024 03:47 [10:16:24]1206 (1) - 0 [10:16:24]OFD Sender: Remove packet 191328 [10:16:24]ProducePacketName [10:16:24]name=ofd_packets/00191328 [10:16:24]NVStorageDeleteData [10:16:25]Write to MH i2c: 01 00 00 3A 80 BA [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 07 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 07 00 3A 80 00 00 00 00 00 C3 0C 90 [10:16:25]RasterBufferAndPrint [10:16:25]line [10:16:25]line [10:16:25]line [10:16:25]line [10:16:25]line [10:16:25]written 0, free lines is 3277 [10:16:25]MH_Cut [10:16:25]Write to MH i2c: D1 01 00 41 80 01 93 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: D1 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: D1 01 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: D1 01 00 41 80 00 92 [10:16:25]Write to MH i2c: 01 00 00 42 80 C2 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]OFD Sender: No OFD packet to send [10:16:25]*** Cut start [10:16:25]*** Partial cut [10:16:25]*** CUTSNS_PIN = 1 [10:16:25]*** CUTSNS_PIN = 0 [10:16:26]*** Brake cut motor [10:16:26]Read from MH i2c: 01 [10:16:26]MH_I2C_Read... [10:16:26]*** Stop cut motor [10:16:26]*** Cut end [10:16:26]Read from MH i2c: 01 07 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 42 80 00 00 00 00 00 FF 0F D7 [10:16:26]process_action close_receipt done [10:16:26]requested_data is exist [10:16:26]produce_requested_data [10:16:26]requested_item fm.sn is exist - process it [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 11 00 00 [10:16:26]Write to MH i2c: E2 08 00 43 80 80 11 00 00 00 00 00 00 3D [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 43 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [10:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:26]wFMCommunicate OK [10:16:26]requested_item fd.num is exist - process it [10:16:26]SAM_PROTO_GetFieldsCounters [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 13 00 00 [10:16:26]Write to MH i2c: E2 08 00 44 80 80 13 00 00 00 00 00 00 40 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 62 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 62 00 44 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:26]wFMCommunicate OK [10:16:26]SAM_PROTO_GetFieldsCounters done [10:16:26]requested_item shift.num is exist - process it [10:16:26]requested_item shift.opened is exist - process it [10:16:26]req_shift_opened [10:16:26]FM_GetShiftState [10:16:26]SAM_PROTO_GetShiftState [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 13 01 00 [10:16:26]Write to MH i2c: E2 08 00 45 80 80 13 01 00 00 00 00 00 42 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0E 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0E 00 45 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [10:16:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:16:26]wFMCommunicate OK [10:16:26]SAM_PROTO_GetShiftState done [10:16:26]FM_GetShiftState done [10:16:26]req_shift_opened done [10:16:26]requested_item shift.open_date is exist - process it [10:16:26]req_shift_open_date [10:16:26]req_shift_open_date done [10:16:26]produce_requested_data done [10:16:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191328,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:16:26]process_action_free close_receipt [10:16:26]json_value_free [10:16:26]json_value_free done [10:16:26]process_json_proto returns [10:16:26]Send response to host [10:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191328,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:16:26]free response buf [10:16:26]execute_script done [10:16:26]execute_script returns [10:16:26]free content buf [10:16:26]Sock 10.Close socket [10:16:26]Sock 10.Thread stoped [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:51]accept exits with 9 [10:16:51]New connection [10:16:51]New thread 3066817892 created [10:16:51]Thread 3066961252 joined [10:16:51]Waiting for new connection... [10:16:51] Sock 9.Parse request [10:16:51]Sock 9.Check first char [10:16:51]Sock 9.First char is OK [10:16:51]request: POST /json_proto HTTP/1.0 [10:16:51]Method: POST [10:16:51]URL: /json_proto [10:16:51]Method is POST - this is cgi request [10:16:51]url: /json_proto [10:16:51]query_string will be loaded in cgi processing [10:16:51]execute_cgi json_proto POST (null) [10:16:51]execute_cgi path=json_proto method=POST [10:16:51]POST find Content-Length [10:16:51]Host: 172.17.63.131:8080 [10:16:51]Content-Length: 676 [10:16:51]Content-Type: application/json [10:16:51] [10:16:51]POST finish read [10:16:51]Found Content-Length = 676 [10:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:51]execute_script... [10:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:51]POST & json_proto [10:16:51]process_json_proto [10:16:51]json parsed OK: [10:16:51]protocol is kg_v1.0 [10:16:51]action value=close_receipt [10:16:51]process_action close_receipt [10:16:51]cmd_close_receipt [10:16:51]MH_GetDate [10:16:51]Write to MH i2c: F0 00 00 46 80 B5 [10:16:51]Write i2c OK [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: F0 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: F0 09 00 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: F0 09 00 46 80 00 1B 70 1B 67 22 05 6E 64 C4 [10:16:51]GetLastDocTimeStamp 1729851391 [10:16:51]current date 1729851419 [10:16:51]FM_GetShiftState [10:16:51]SAM_PROTO_GetShiftState [10:16:51]wFMCommunicate request_size=4 [10:16:51]MH_SAM_APDU [10:16:51]CAPDU: 80 13 01 00 [10:16:51]Write to MH i2c: E2 08 00 47 80 80 13 01 00 00 00 00 00 44 [10:16:51]Write i2c OK [10:16:51]MH_I2C_Read... [10:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:51]Read from MH i2c: E2 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 0E 00 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 0E 00 47 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [10:16:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:16:51]wFMCommunicate OK [10:16:51]SAM_PROTO_GetShiftState done [10:16:51]FM_GetShiftState done [10:16:51]opened in 1729816399 [10:16:51]opened+sec_in_day 1729902799 [10:16:51]quantity*price = 25020 [10:16:51]sum+1 = 25022 [10:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 68 25.10.2024 10:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191329 ФПД: 233113166792600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191329&fm=233113166792600&tin=02508201610067®Number=0000000000091776&sum=25000 [10:16:52]StoreToDocumentArchive [10:16:52]shift 540 fd 191329 [10:16:52]save to /storage/0540/doc_00191329 [10:16:52]save last doc name /storage/0540/doc_00191329 to /storage/kkm_last_doc_name [10:16:52]save OK [10:16:52]Clear old archive folders... [10:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:52]tlvbuf is 0168C100 [10:16:52]SAM_PROTO_ClearQueue [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 09 00 00 [10:16:52]Write to MH i2c: E2 08 00 54 80 80 09 00 00 00 00 00 00 46 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 54 80 00 90 00 48 [10:16:52]RAPDU: 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_ClearQueue done [10:16:52]KKMCreateOFDPacket [10:16:52]OFDProtocolAddRootSTLVToBuf [10:16:52]FM_MakeSignedData [10:16:52]FM_MakeSignedData [10:16:52]SAM_PROTO_SignData [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 0D 01 02 [10:16:52]Write to MH i2c: E2 08 00 55 80 80 0D 01 02 00 00 00 00 4E [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 55 80 00 90 00 49 [10:16:52]RAPDU: 90 00 [10:16:52]wFMCommunicate OK [10:16:52]wFMCommunicate request_size=255 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1B 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EB 02 00 35 04 06 00 D4 [10:16:52]Write to MH i2c: E2 02 01 56 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1B 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EB 02 00 35 04 06 00 D4 00 00 4C [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 56 80 00 90 00 4A [10:16:52]RAPDU: 90 00 [10:16:52]wFMCommunicate OK [10:16:52]wFMCommunicate request_size=10 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 0D 02 02 05 03 E3 7F C7 98 [10:16:52]Write to MH i2c: E2 0D 00 57 80 80 0D 02 02 05 00 03 E3 7F C7 98 00 00 1F [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 03 00 57 80 00 90 00 4B [10:16:52]RAPDU: 90 00 [10:16:52]wFMCommunicate OK [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 0D 03 02 [10:16:52]Write to MH i2c: E2 08 00 58 80 80 0D 03 02 00 00 00 00 53 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0B 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0B 00 58 80 00 B1 13 BA EF 5B C6 39 1B 90 00 36 [10:16:52]RAPDU: B1 13 BA EF 5B C6 39 1B 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_SignData done [10:16:52]FM_MakeSignedData done [10:16:52]CreateOFDProtocolMessage [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 11 00 00 [10:16:52]Write to MH i2c: E2 08 00 59 80 80 11 00 00 00 00 00 00 53 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:52]Read from MH i2c: E2 17 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 17 00 59 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [10:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:53]wFMCommunicate OK [10:16:53]CreateOFDProtocolMessage done [10:16:53]OFDSenderStorePacket 191329 [10:16:53]StoreOFDPacket docnum=191329 [10:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 B8 07 01 25 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1B 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EB 02 00 35 04 06 00 D4 03 E3 7F C7 98 B1 13 BA EF 5B C6 39 1B [10:16:53]CheckFolder [10:16:53]dirname=/storage/ofd_packets [10:16:53]CheckFolder done [10:16:53]ProducePacketName [10:16:53]name=ofd_packets/00191329 [10:16:53]NVStorageSaveData ofd_packets/00191329 [10:16:53]File name is /storage/ofd_packets/00191329 [10:16:53]Write 301 bytes [10:16:53]NVStorageSaveData done [10:16:53]OFDSenderStorePacket done [10:16:53]KKMCreateOFDPacket done [10:16:53]NVStorageSaveData kkm_last_timestamp [10:16:53]File name is /storage/kkm_last_timestamp [10:16:53]Write 4 bytes [10:16:53]NVStorageSaveData done [10:16:53]ExternCall_PrintAddStr [10:16:53]wPrintStart [10:16:53]Write to MH i2c: 01 00 00 5A 80 DA [10:16:53]Write i2c OK [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 07 00 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 07 00 5A 80 00 00 00 00 00 FF 0F EF [10:16:53]RasterBufferAndPrint [10:16:53]line Счет N : (1)30622 [10:16:53]line ИНН: 02508201610067 [10:16:53]line Контрольно-Кассовый Чек [10:16:53]line ПРОДАЖА [10:16:53]line ТРК (МРК, ГНК) : 21 [10:16:53]line Товар: 2710124130 [10:16:53]line Аи-92-К-5 [10:16:53]line 3.740 * 66.90 [10:16:53]line = 250.21 [10:16:53]line НДС 12% НСП 1% [10:16:53]line > о реализуемом товаре [10:16:53]line ОКРУГЛЕНИЕ: -0.21 [10:16:53]line ИТОГО: 250.00 [10:16:53]line Внесено: 250.00 [10:16:53]line СДАЧА: 0.00 [10:16:53]line НСП 1% : 2.21 [10:16:53]line НДС 12% : 26.57 [10:16:53]line Наличными: 250.00 [10:16:53]line Безнал.: 0.00 [10:16:53]line Место: АЗС № 170 "Партнер Нефть" [10:16:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:16:53]line СНО: Общий режим [10:16:53]line Чек 68 25.10.2024 10:16 [10:16:53]line Смена: 540 ФФД: 1.0 [10:16:53]line ЗНМ: 0300000110 [10:16:53]line РНМ: 0000000000091776 [10:16:53]line Версия ККМ: 001 [10:16:53]line ФМ: 0000000000871754 [10:16:53]line ФД: 191329 [10:16:53]line ФПД: 233113166792600 [10:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191329&fm=233113166792600&tin=02508201610067®Number=0000000000091776&sum=25000 [10:16:53]OFD Sender: Processing packet 191329 [packets to send 75, broken 74] [10:16:53]ProducePacketName [10:16:53]name=ofd_packets/00191329 [10:16:53]OFD Sender: To server: pG, [10:16:53]CommunicateWithHost lk.salyk.kg:30040 [10:16:53]ConnectInit lk.salyk.kg [10:16:53]written 0, free lines is 4095 [10:16:53]Connected sock=11 [10:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 B8 07 01 25 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1B 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EB 02 00 35 04 06 00 D4 03 E3 7F C7 98 B1 13 BA EF 5B C6 39 1B [10:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 73 47 00 49 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EB 02 00 F4 03 04 00 EA 14 1B 67 B6 04 01 00 00 3F 6A F0 32 20 A3 B6 4B [10:16:53]CommunicateWithHost err = 0 [10:16:53]CheckOFDResponse [10:16:53]1017 (14) - 77093643461234 [10:16:53]1041 (16) - 0000000000871754 [10:16:53]1040 (4) - 191329 [10:16:53]1012 (4) - 25.10.2024 03:47 [10:16:53]1206 (1) - 0 [10:16:53]OFD Sender: Remove packet 191329 [10:16:53]ProducePacketName [10:16:53]name=ofd_packets/00191329 [10:16:53]NVStorageDeleteData [10:16:53]Write to MH i2c: 01 00 00 85 80 05 [10:16:53]Write i2c OK [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 07 00 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: 01 07 00 85 80 00 00 00 00 00 CD 0C E5 [10:16:53]RasterBufferAndPrint [10:16:53]line [10:16:53]line [10:16:53]line [10:16:53]line [10:16:53]line [10:16:53]written 0, free lines is 3303 [10:16:53]MH_Cut [10:16:53]Write to MH i2c: D1 01 00 8C 80 01 DE [10:16:53]Write i2c OK [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: D1 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: D1 01 00 [10:16:53]MH_I2C_Read... [10:16:53]Read from MH i2c: D1 01 00 8C 80 00 DD [10:16:53]Write to MH i2c: 01 00 00 8D 80 0D [10:16:53]Write i2c OK [10:16:53]MH_I2C_Read... [10:16:54]OFD Sender: No OFD packet to send [10:16:54]*** Cut start [10:16:54]*** Partial cut [10:16:54]*** CUTSNS_PIN = 1 [10:16:54]*** CUTSNS_PIN = 0 [10:16:54]*** Brake cut motor [10:16:54]Read from MH i2c: 01 [10:16:55]MH_I2C_Read... [10:16:55]*** Stop cut motor [10:16:55]*** Cut end [10:16:55]Read from MH i2c: 01 07 00 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: 01 07 00 8D 80 00 00 00 00 00 FF 0F 22 [10:16:55]process_action close_receipt done [10:16:55]requested_data is exist [10:16:55]produce_requested_data [10:16:55]requested_item fm.sn is exist - process it [10:16:55]wFMCommunicate request_size=4 [10:16:55]MH_SAM_APDU [10:16:55]CAPDU: 80 11 00 00 [10:16:55]Write to MH i2c: E2 08 00 8E 80 80 11 00 00 00 00 00 00 88 [10:16:55]Write i2c OK [10:16:55]MH_I2C_Read... [10:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:55]Read from MH i2c: E2 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 17 00 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 17 00 8E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [10:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:55]wFMCommunicate OK [10:16:55]requested_item fd.num is exist - process it [10:16:55]SAM_PROTO_GetFieldsCounters [10:16:55]wFMCommunicate request_size=4 [10:16:55]MH_SAM_APDU [10:16:55]CAPDU: 80 13 00 00 [10:16:55]Write to MH i2c: E2 08 00 8F 80 80 13 00 00 00 00 00 00 8B [10:16:55]Write i2c OK [10:16:55]MH_I2C_Read... [10:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:55]Read from MH i2c: E2 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 62 00 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 62 00 8F 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:55]wFMCommunicate OK [10:16:55]SAM_PROTO_GetFieldsCounters done [10:16:55]requested_item shift.num is exist - process it [10:16:55]requested_item shift.opened is exist - process it [10:16:55]req_shift_opened [10:16:55]FM_GetShiftState [10:16:55]SAM_PROTO_GetShiftState [10:16:55]wFMCommunicate request_size=4 [10:16:55]MH_SAM_APDU [10:16:55]CAPDU: 80 13 01 00 [10:16:55]Write to MH i2c: E2 08 00 90 80 80 13 01 00 00 00 00 00 8D [10:16:55]Write i2c OK [10:16:55]MH_I2C_Read... [10:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:55]Read from MH i2c: E2 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 0E 00 [10:16:55]MH_I2C_Read... [10:16:55]Read from MH i2c: E2 0E 00 90 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 50 [10:16:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:16:55]wFMCommunicate OK [10:16:55]SAM_PROTO_GetShiftState done [10:16:55]FM_GetShiftState done [10:16:55]req_shift_opened done [10:16:55]requested_item shift.open_date is exist - process it [10:16:55]req_shift_open_date [10:16:55]req_shift_open_date done [10:16:55]produce_requested_data done [10:16:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191329,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:16:55]process_action_free close_receipt [10:16:55]json_value_free [10:16:55]json_value_free done [10:16:55]process_json_proto returns [10:16:55]Send response to host [10:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191329,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:16:55]free response buf [10:16:55]execute_script done [10:16:55]execute_script returns [10:16:55]free content buf [10:16:55]Sock 9.Close socket [10:16:55]Sock 9.Thread stoped [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [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:15]accept exits with 10 [10:18:15]New connection [10:18:15]New thread 3066961252 created [10:18:15]Thread 3066817892 joined [10:18:15]Waiting for new connection... [10:18:15] Sock 10.Parse request [10:18:15]Sock 10.Check first char [10:18:15]Sock 10.First char is OK [10:18:15]request: POST /json_proto HTTP/1.0 [10:18:15]Method: POST [10:18:15]URL: /json_proto [10:18:15]Method is POST - this is cgi request [10:18:15]url: /json_proto [10:18:15]query_string will be loaded in cgi processing [10:18:15]execute_cgi json_proto POST (null) [10:18:15]execute_cgi path=json_proto method=POST [10:18:15]POST find Content-Length [10:18:15]Host: 172.17.63.131:8080 [10:18:15]Content-Length: 781 [10:18:15]Content-Type: application/json [10:18:15] [10:18:15]POST finish read [10:18:15]Found Content-Length = 781 [10:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4190738", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:15]execute_script... [10:18: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)30623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4190738", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:15]POST & json_proto [10:18:15]process_json_proto [10:18:15]json parsed OK: [10:18:15]protocol is kg_v1.0 [10:18:15]action value=close_receipt [10:18:15]process_action close_receipt [10:18:15]cmd_close_receipt [10:18:15]MH_GetDate [10:18:15]Write to MH i2c: F0 00 00 91 80 00 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 09 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 09 00 91 80 00 70 70 1B 67 22 05 6E 64 64 [10:18:15]GetLastDocTimeStamp 1729851419 [10:18:15]current date 1729851504 [10:18:15]FM_GetShiftState [10:18:15]SAM_PROTO_GetShiftState [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 01 00 [10:18:15]Write to MH i2c: E2 08 00 92 80 80 13 01 00 00 00 00 00 8F [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 92 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 52 [10:18:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:18:15]wFMCommunicate OK [10:18:15]SAM_PROTO_GetShiftState done [10:18:15]FM_GetShiftState done [10:18:15]opened in 1729816399 [10:18:15]opened+sec_in_day 1729902799 [10:18:15]quantity*price = 0 [10:18:15]sum+1 = 1 [10:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 69 25.10.2024 10:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 4190738 ФМ: 0000000000871754 ФД: 191330 ФПД: 102980809330029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191330&fm=102980809330029&tin=02508201610067®Number=0000000000091776&sum=0 [10:18:16]StoreToDocumentArchive [10:18:16]shift 540 fd 191330 [10:18:16]save to /storage/0540/doc_00191330 [10:18:16]save last doc name /storage/0540/doc_00191330 to /storage/kkm_last_doc_name [10:18:16]save OK [10:18:16]Clear old archive folders... [10:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:16]tlvbuf is 016AFED0 [10:18:16]SAM_PROTO_ClearQueue [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 09 00 00 [10:18:16]Write to MH i2c: E2 08 00 9F 80 80 09 00 00 00 00 00 00 91 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 9F 80 00 90 00 93 [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_ClearQueue done [10:18:16]KKMCreateOFDPacket [10:18:16]OFDProtocolAddRootSTLVToBuf [10:18:16]FM_MakeSignedData [10:18:16]FM_MakeSignedData [10:18:16]SAM_PROTO_SignData [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 01 02 [10:18:16]Write to MH i2c: E2 08 00 A0 80 80 0D 01 02 00 00 00 00 99 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 A0 80 00 90 00 94 [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]wFMCommunicate request_size=255 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 70 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EB 02 00 35 04 06 00 5D [10:18:16]Write to MH i2c: E2 02 01 A1 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 70 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EB 02 00 35 04 06 00 5D 00 00 50 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 03 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 03 00 A1 80 00 90 00 95 [10:18:17]RAPDU: 90 00 [10:18:17]wFMCommunicate OK [10:18:17]wFMCommunicate request_size=10 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 0D 02 02 05 A9 16 8F 0D 6D [10:18:17]Write to MH i2c: E2 0D 00 A2 80 80 0D 02 02 05 00 A9 16 8F 0D 6D 00 00 6E [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 03 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 03 00 A2 80 00 90 00 96 [10:18:17]RAPDU: 90 00 [10:18:17]wFMCommunicate OK [10:18:17]wFMCommunicate request_size=4 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 0D 03 02 [10:18:17]Write to MH i2c: E2 08 00 A3 80 80 0D 03 02 00 00 00 00 9E [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0B 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0B 00 A3 80 00 DA 07 9D 62 D3 45 6D A2 90 00 A6 [10:18:17]RAPDU: DA 07 9D 62 D3 45 6D A2 90 00 [10:18:17]wFMCommunicate OK [10:18:17]SAM_PROTO_SignData done [10:18:17]FM_MakeSignedData done [10:18:17]CreateOFDProtocolMessage [10:18:17]wFMCommunicate request_size=4 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 11 00 00 [10:18:17]Write to MH i2c: E2 08 00 A4 80 80 11 00 00 00 00 00 00 9E [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 17 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 17 00 A4 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [10:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:18:17]wFMCommunicate OK [10:18:17]CreateOFDProtocolMessage done [10:18:17]OFDSenderStorePacket 191330 [10:18:17]StoreOFDPacket docnum=191330 [10:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 75 07 01 87 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 70 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EB 02 00 35 04 06 00 5D A9 16 8F 0D 6D DA 07 9D 62 D3 45 6D A2 [10:18:17]CheckFolder [10:18:17]dirname=/storage/ofd_packets [10:18:17]CheckFolder done [10:18:17]ProducePacketName [10:18:17]name=ofd_packets/00191330 [10:18:17]NVStorageSaveData ofd_packets/00191330 [10:18:17]File name is /storage/ofd_packets/00191330 [10:18:17]Write 301 bytes [10:18:17]NVStorageSaveData done [10:18:17]OFDSenderStorePacket done [10:18:17]KKMCreateOFDPacket done [10:18:17]NVStorageSaveData kkm_last_timestamp [10:18:17]File name is /storage/kkm_last_timestamp [10:18:17]Write 4 bytes [10:18:17]NVStorageSaveData done [10:18:17]ExternCall_PrintAddStr [10:18:17]wPrintStart [10:18:17]Write to MH i2c: 01 00 00 A5 80 25 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 07 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 07 00 A5 80 00 00 00 00 00 FF 0F 3A [10:18:17]RasterBufferAndPrint [10:18:17]line Счет N : (1)30623 [10:18:17]line ИНН: 02508201610067 [10:18:17]line Контрольно-Кассовый Чек [10:18:17]line ПРОДАЖА [10:18:17]line ТРК (МРК, ГНК) : 21 [10:18:17]line Товар: 2710124130 [10:18:17]line Аи-92-К-5 [10:18:17]line 10.000 * 0.00 [10:18:17]line = 0.00 [10:18:17]line НДС 12% НСП 1% [10:18:17]line > о реализуемом товаре [10:18:17]line ИТОГО: 0.00 [10:18:17]line НСП 1% : 0.00 [10:18:17]line НДС 12% : 0.00 [10:18:17]line Наличными: 0.00 [10:18:17]line Безнал.: 0.00 [10:18:17]line Место: АЗС № 170 "Партнер Нефть" [10:18:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:18:17]line СНО: Общий режим [10:18:17]line Чек 69 25.10.2024 10:18 [10:18:17]line Смена: 540 ФФД: 1.0 [10:18:17]line ЗНМ: 0300000110 [10:18:17]line РНМ: 0000000000091776 [10:18:17]line Версия ККМ: 001 [10:18:17]line Талоны: Партнер нефть [10:18:17]line 4190738 [10:18:17]line ФМ: 0000000000871754 [10:18:17]line ФД: 191330 [10:18:17]line ФПД: 102980809330029 [10:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191330&fm=102980809330029&tin=02508201610067®Number=0000000000091776&sum=0 [10:18:17]written 0, free lines is 4095 [10:18:17]OFD Sender: Processing packet 191330 [packets to send 75, broken 74] [10:18:17]ProducePacketName [10:18:17]name=ofd_packets/00191330 [10:18:17]OFD Sender: To server: pG, [10:18:17]CommunicateWithHost lk.salyk.kg:30040 [10:18:17]ConnectInit lk.salyk.kg [10:18:17]Connected sock=9 [10:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 75 07 01 87 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 70 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EB 02 00 35 04 06 00 5D A9 16 8F 0D 6D DA 07 9D 62 D3 45 6D A2 [10:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 27 B5 47 00 D1 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EB 02 00 F4 03 04 00 3F 15 1B 67 B6 04 01 00 00 E9 7A 51 1C 57 7B 0D 9A [10:18:18]CommunicateWithHost err = 0 [10:18:18]CheckOFDResponse [10:18:18]1017 (14) - 77093643461234 [10:18:18]1041 (16) - 0000000000871754 [10:18:18]1040 (4) - 191330 [10:18:18]1012 (4) - 25.10.2024 03:49 [10:18:18]1206 (1) - 0 [10:18:18]OFD Sender: Remove packet 191330 [10:18:18]ProducePacketName [10:18:18]name=ofd_packets/00191330 [10:18:18]NVStorageDeleteData [10:18:18]Write to MH i2c: 01 00 00 CF 80 4F [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 CF 80 00 00 00 00 00 BC 0C 1E [10:18:18]RasterBufferAndPrint [10:18:18]line [10:18:18]line [10:18:18]line [10:18:18]line [10:18:18]line [10:18:18]written 0, free lines is 3267 [10:18:18]MH_Cut [10:18:18]Write to MH i2c: D1 01 00 D6 80 01 28 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: D1 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: D1 01 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: D1 01 00 D6 80 00 27 [10:18:18]Write to MH i2c: 01 00 00 D7 80 57 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]OFD Sender: No OFD packet to send [10:18:18]*** Cut start [10:18:18]*** Partial cut [10:18:18]*** CUTSNS_PIN = 1 [10:18:18]*** CUTSNS_PIN = 0 [10:18:19]*** Brake cut motor [10:18:19]Read from MH i2c: 01 [10:18:19]MH_I2C_Read... [10:18:19]*** Stop cut motor [10:18:19]*** Cut end [10:18:19]Read from MH i2c: 01 07 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: 01 07 00 D7 80 00 00 00 00 00 FF 0F 6C [10:18:19]process_action close_receipt done [10:18:19]requested_data is exist [10:18:19]produce_requested_data [10:18:19]requested_item fm.sn is exist - process it [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 11 00 00 [10:18:19]Write to MH i2c: E2 08 00 D8 80 80 11 00 00 00 00 00 00 D2 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 17 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 17 00 D8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [10:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:18:19]wFMCommunicate OK [10:18:19]requested_item fd.num is exist - process it [10:18:19]SAM_PROTO_GetFieldsCounters [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 13 00 00 [10:18:19]Write to MH i2c: E2 08 00 D9 80 80 13 00 00 00 00 00 00 D5 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 62 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 62 00 D9 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_GetFieldsCounters done [10:18:19]requested_item shift.num is exist - process it [10:18:19]requested_item shift.opened is exist - process it [10:18:19]req_shift_opened [10:18:19]FM_GetShiftState [10:18:19]SAM_PROTO_GetShiftState [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 13 01 00 [10:18:19]Write to MH i2c: E2 08 00 DA 80 80 13 01 00 00 00 00 00 D7 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0E 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0E 00 DA 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9A [10:18:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_GetShiftState done [10:18:19]FM_GetShiftState done [10:18:19]req_shift_opened done [10:18:19]requested_item shift.open_date is exist - process it [10:18:19]req_shift_open_date [10:18:19]req_shift_open_date done [10:18:19]produce_requested_data done [10:18:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191330,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:18:19]process_action_free close_receipt [10:18:19]json_value_free [10:18:19]json_value_free done [10:18:19]process_json_proto returns [10:18:19]Send response to host [10:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191330,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:18:19]free response buf [10:18:19]execute_script done [10:18:19]execute_script returns [10:18:19]free content buf [10:18:19]Sock 10.Close socket [10:18:19]Sock 10.Thread stoped [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:56]accept exits with 8 [10:18:56]New connection [10:18:56]New thread 3066817892 created [10:18:56]Thread 3066961252 joined [10:18:56]Waiting for new connection... [10:18:56] Sock 8.Parse request [10:18:56]Sock 8.Check first char [10:18:56]Sock 8.First char is OK [10:18:56]request: POST /json_proto HTTP/1.0 [10:18:56]Method: POST [10:18:56]URL: /json_proto [10:18:56]Method is POST - this is cgi request [10:18:56]url: /json_proto [10:18:56]query_string will be loaded in cgi processing [10:18:56]execute_cgi json_proto POST (null) [10:18:56]execute_cgi path=json_proto method=POST [10:18:56]POST find Content-Length [10:18:56]Host: 172.17.63.131:8080 [10:18:56]Content-Length: 781 [10:18:56]Content-Type: application/json [10:18:56] [10:18:56]POST finish read [10:18:56]Found Content-Length = 781 [10:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220329", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:56]execute_script... [10:18:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220329", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:56]POST & json_proto [10:18:56]process_json_proto [10:18:56]json parsed OK: [10:18:56]protocol is kg_v1.0 [10:18:56]action value=close_receipt [10:18:56]process_action close_receipt [10:18:56]cmd_close_receipt [10:18:56]MH_GetDate [10:18:56]Write to MH i2c: F0 00 00 DB 80 4A [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: F0 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: F0 09 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: F0 09 00 DB 80 00 98 70 1B 67 22 05 6E 64 D6 [10:18:56]GetLastDocTimeStamp 1729851504 [10:18:56]current date 1729851544 [10:18:56]FM_GetShiftState [10:18:56]SAM_PROTO_GetShiftState [10:18:56]wFMCommunicate request_size=4 [10:18:56]MH_SAM_APDU [10:18:56]CAPDU: 80 13 01 00 [10:18:56]Write to MH i2c: E2 08 00 DC 80 80 13 01 00 00 00 00 00 D9 [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:56]Read from MH i2c: E2 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 0E 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 0E 00 DC 80 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9C [10:18:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:18:56]wFMCommunicate OK [10:18:56]SAM_PROTO_GetShiftState done [10:18:56]FM_GetShiftState done [10:18:56]opened in 1729816399 [10:18:56]opened+sec_in_day 1729902799 [10:18:56]quantity*price = 0 [10:18:56]sum+1 = 1 [10:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 70 25.10.2024 10:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 4220329 ФМ: 0000000000871754 ФД: 191331 ФПД: 187919027030940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191331&fm=187919027030940&tin=02508201610067®Number=0000000000091776&sum=0 [10:18:57]StoreToDocumentArchive [10:18:57]shift 540 fd 191331 [10:18:57]save to /storage/0540/doc_00191331 [10:18:57]save last doc name /storage/0540/doc_00191331 to /storage/kkm_last_doc_name [10:18:57]save OK [10:18:57]Clear old archive folders... [10:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:57]tlvbuf is 0160AFB0 [10:18:57]SAM_PROTO_ClearQueue [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 09 00 00 [10:18:57]Write to MH i2c: E2 08 00 E9 80 80 09 00 00 00 00 00 00 DB [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 E9 80 00 90 00 DD [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]SAM_PROTO_ClearQueue done [10:18:57]KKMCreateOFDPacket [10:18:57]OFDProtocolAddRootSTLVToBuf [10:18:57]FM_MakeSignedData [10:18:57]FM_MakeSignedData [10:18:57]SAM_PROTO_SignData [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 01 02 [10:18:57]Write to MH i2c: E2 08 00 EA 80 80 0D 01 02 00 00 00 00 E3 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 EA 80 00 90 00 DE [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]wFMCommunicate request_size=255 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 98 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EB 02 00 35 04 06 00 AA [10:18:57]Write to MH i2c: E2 02 01 EB 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 98 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EB 02 00 35 04 06 00 AA 00 00 11 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 EB 80 00 90 00 DF [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]wFMCommunicate request_size=10 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 02 02 05 E9 4E DA 4B 9C [10:18:57]Write to MH i2c: E2 0D 00 EC 80 80 0D 02 02 05 00 E9 4E DA 4B 9C 00 00 E8 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 EC 80 00 90 00 E0 [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 03 02 [10:18:57]Write to MH i2c: E2 08 00 ED 80 80 0D 03 02 00 00 00 00 E8 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:58]Read from MH i2c: E2 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0B 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0B 00 ED 80 00 90 9F 90 3B 9B 61 5B 83 90 00 BD [10:18:58]RAPDU: 90 9F 90 3B 9B 61 5B 83 90 00 [10:18:58]wFMCommunicate OK [10:18:58]SAM_PROTO_SignData done [10:18:58]FM_MakeSignedData done [10:18:58]CreateOFDProtocolMessage [10:18:58]wFMCommunicate request_size=4 [10:18:58]MH_SAM_APDU [10:18:58]CAPDU: 80 11 00 00 [10:18:58]Write to MH i2c: E2 08 00 EE 80 80 11 00 00 00 00 00 00 E8 [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:58]Read from MH i2c: E2 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 17 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 17 00 EE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [10:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:18:58]wFMCommunicate OK [10:18:58]CreateOFDProtocolMessage done [10:18:58]OFDSenderStorePacket 191331 [10:18:58]StoreOFDPacket docnum=191331 [10:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 6F 07 01 13 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 98 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EB 02 00 35 04 06 00 AA E9 4E DA 4B 9C 90 9F 90 3B 9B 61 5B 83 [10:18:58]CheckFolder [10:18:58]dirname=/storage/ofd_packets [10:18:58]CheckFolder done [10:18:58]ProducePacketName [10:18:58]name=ofd_packets/00191331 [10:18:58]NVStorageSaveData ofd_packets/00191331 [10:18:58]File name is /storage/ofd_packets/00191331 [10:18:58]Write 301 bytes [10:18:58]NVStorageSaveData done [10:18:58]OFDSenderStorePacket done [10:18:58]KKMCreateOFDPacket done [10:18:58]NVStorageSaveData kkm_last_timestamp [10:18:58]File name is /storage/kkm_last_timestamp [10:18:58]Write 4 bytes [10:18:58]NVStorageSaveData done [10:18:58]ExternCall_PrintAddStr [10:18:58]wPrintStart [10:18:58]Write to MH i2c: 01 00 00 EF 80 6F [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 EF 80 00 00 00 00 00 FF 0F 84 [10:18:58]RasterBufferAndPrint [10:18:58]line Счет N : (1)30624 [10:18:58]line ИНН: 02508201610067 [10:18:58]line Контрольно-Кассовый Чек [10:18:58]line ПРОДАЖА [10:18:58]line ТРК (МРК, ГНК) : 12 [10:18:58]line Товар: 2710124130 [10:18:58]line Аи-92-К-5 [10:18:58]line 10.000 * 0.00 [10:18:58]line = 0.00 [10:18:58]line НДС 12% НСП 1% [10:18:58]line > о реализуемом товаре [10:18:58]line ИТОГО: 0.00 [10:18:58]line НСП 1% : 0.00 [10:18:58]line НДС 12% : 0.00 [10:18:58]line Наличными: 0.00 [10:18:58]line Безнал.: 0.00 [10:18:58]line Место: АЗС № 170 "Партнер Нефть" [10:18:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:18:58]line СНО: Общий режим [10:18:58]line Чек 70 25.10.2024 10:19 [10:18:58]line Смена: 540 ФФД: 1.0 [10:18:58]line ЗНМ: 0300000110 [10:18:58]line РНМ: 0000000000091776 [10:18:58]line Версия ККМ: 001 [10:18:58]line Талоны: Партнер нефть [10:18:58]line 4220329 [10:18:58]line ФМ: 0000000000871754 [10:18:58]line ФД: 191331 [10:18:58]line ФПД: 187919027030940 [10:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191331&fm=187919027030940&tin=02508201610067®Number=0000000000091776&sum=0 [10:18:58]written 0, free lines is 4095 [10:18:58]OFD Sender: Processing packet 191331 [packets to send 75, broken 74] [10:18:58]ProducePacketName [10:18:58]name=ofd_packets/00191331 [10:18:58]OFD Sender: To server: pG, [10:18:58]CommunicateWithHost lk.salyk.kg:30040 [10:18:58]ConnectInit lk.salyk.kg [10:18:58]Connected sock=11 [10:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 6F 07 01 13 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 98 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EB 02 00 35 04 06 00 AA E9 4E DA 4B 9C 90 9F 90 3B 9B 61 5B 83 [10:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 00 47 00 72 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EB 02 00 F4 03 04 00 67 15 1B 67 B6 04 01 00 00 9A 90 45 A6 EA B5 CD C9 [10:18:58]CommunicateWithHost err = 0 [10:18:58]CheckOFDResponse [10:18:58]1017 (14) - 77093643461234 [10:18:58]1041 (16) - 0000000000871754 [10:18:58]1040 (4) - 191331 [10:18:58]1012 (4) - 25.10.2024 03:49 [10:18:58]1206 (1) - 0 [10:18:58]OFD Sender: Remove packet 191331 [10:18:58]ProducePacketName [10:18:58]name=ofd_packets/00191331 [10:18:58]NVStorageDeleteData [10:18:58]Write to MH i2c: 01 00 00 19 81 9A [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 19 81 00 00 00 00 00 C3 0C 70 [10:18:58]RasterBufferAndPrint [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]written 0, free lines is 3271 [10:18:58]MH_Cut [10:18:58]Write to MH i2c: D1 01 00 20 81 01 73 [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 01 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 01 00 20 81 00 72 [10:18:58]Write to MH i2c: 01 00 00 21 81 A2 [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:59]OFD Sender: No OFD packet to send [10:18:59]*** Cut start [10:18:59]*** Partial cut [10:18:59]*** CUTSNS_PIN = 1 [10:18:59]*** CUTSNS_PIN = 0 [10:18:59]*** Brake cut motor [10:19:00]Read from MH i2c: 01 [10:19:00]MH_I2C_Read... [10:19:00]*** Stop cut motor [10:19:00]*** Cut end [10:19:00]Read from MH i2c: 01 07 00 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: 01 07 00 21 81 00 00 00 00 00 FF 0F B7 [10:19:00]process_action close_receipt done [10:19:00]requested_data is exist [10:19:00]produce_requested_data [10:19:00]requested_item fm.sn is exist - process it [10:19:00]wFMCommunicate request_size=4 [10:19:00]MH_SAM_APDU [10:19:00]CAPDU: 80 11 00 00 [10:19:00]Write to MH i2c: E2 08 00 22 81 80 11 00 00 00 00 00 00 1D [10:19:00]Write i2c OK [10:19:00]MH_I2C_Read... [10:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:00]Read from MH i2c: E2 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 17 00 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 17 00 22 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [10:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:19:00]wFMCommunicate OK [10:19:00]requested_item fd.num is exist - process it [10:19:00]SAM_PROTO_GetFieldsCounters [10:19:00]wFMCommunicate request_size=4 [10:19:00]MH_SAM_APDU [10:19:00]CAPDU: 80 13 00 00 [10:19:00]Write to MH i2c: E2 08 00 23 81 80 13 00 00 00 00 00 00 20 [10:19:00]Write i2c OK [10:19:00]MH_I2C_Read... [10:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:00]Read from MH i2c: E2 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 62 00 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 62 00 23 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:19:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:00]wFMCommunicate OK [10:19:00]SAM_PROTO_GetFieldsCounters done [10:19:00]requested_item shift.num is exist - process it [10:19:00]requested_item shift.opened is exist - process it [10:19:00]req_shift_opened [10:19:00]FM_GetShiftState [10:19:00]SAM_PROTO_GetShiftState [10:19:00]wFMCommunicate request_size=4 [10:19:00]MH_SAM_APDU [10:19:00]CAPDU: 80 13 01 00 [10:19:00]Write to MH i2c: E2 08 00 24 81 80 13 01 00 00 00 00 00 22 [10:19:00]Write i2c OK [10:19:00]MH_I2C_Read... [10:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:00]Read from MH i2c: E2 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 0E 00 [10:19:00]MH_I2C_Read... [10:19:00]Read from MH i2c: E2 0E 00 24 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E5 [10:19:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:19:00]wFMCommunicate OK [10:19:00]SAM_PROTO_GetShiftState done [10:19:00]FM_GetShiftState done [10:19:00]req_shift_opened done [10:19:00]requested_item shift.open_date is exist - process it [10:19:00]req_shift_open_date [10:19:00]req_shift_open_date done [10:19:00]produce_requested_data done [10:19:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191331,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:19:00]process_action_free close_receipt [10:19:00]json_value_free [10:19:00]json_value_free done [10:19:00]process_json_proto returns [10:19:00]Send response to host [10:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191331,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:19:00]free response buf [10:19:00]execute_script done [10:19:00]execute_script returns [10:19:00]free content buf [10:19:00]Sock 8.Close socket [10:19:00]Sock 8.Thread stoped [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:31]accept exits with 9 [10:20:31]New connection [10:20:31]New thread 3066961252 created [10:20:31]Thread 3066817892 joined [10:20:31]Waiting for new connection... [10:20:31] Sock 9.Parse request [10:20:31]Sock 9.Check first char [10:20:31]Sock 9.First char is OK [10:20:31]request: POST /json_proto HTTP/1.0 [10:20:31]Method: POST [10:20:31]URL: /json_proto [10:20:31]Method is POST - this is cgi request [10:20:31]url: /json_proto [10:20:31]query_string will be loaded in cgi processing [10:20:31]execute_cgi json_proto POST (null) [10:20:31]execute_cgi path=json_proto method=POST [10:20:31]POST find Content-Length [10:20:31]Host: 172.17.63.131:8080 [10:20:31]Content-Length: 676 [10:20:31]Content-Type: application/json [10:20:31] [10:20:31]POST finish read [10:20:31]Found Content-Length = 676 [10:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:31]execute_script... [10:20: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)30625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:31]POST & json_proto [10:20:31]process_json_proto [10:20:31]json parsed OK: [10:20:31]protocol is kg_v1.0 [10:20:31]action value=close_receipt [10:20:31]process_action close_receipt [10:20:31]cmd_close_receipt [10:20:31]MH_GetDate [10:20:31]Write to MH i2c: F0 00 00 25 81 95 [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: F0 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: F0 09 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: F0 09 00 25 81 00 F8 70 1B 67 22 05 6E 64 81 [10:20:31]GetLastDocTimeStamp 1729851544 [10:20:31]current date 1729851640 [10:20:31]FM_GetShiftState [10:20:31]SAM_PROTO_GetShiftState [10:20:31]wFMCommunicate request_size=4 [10:20:31]MH_SAM_APDU [10:20:31]CAPDU: 80 13 01 00 [10:20:31]Write to MH i2c: E2 08 00 26 81 80 13 01 00 00 00 00 00 24 [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 26 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E7 [10:20:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:20:31]wFMCommunicate OK [10:20:31]SAM_PROTO_GetShiftState done [10:20:31]FM_GetShiftState done [10:20:31]opened in 1729816399 [10:20:31]opened+sec_in_day 1729902799 [10:20:31]quantity*price = 50041 [10:20:31]sum+1 = 50042 [10:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 71 25.10.2024 10:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191332 ФПД: 142487542146819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191332&fm=142487542146819&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:32]StoreToDocumentArchive [10:20:32]shift 540 fd 191332 [10:20:32]save to /storage/0540/doc_00191332 [10:20:32]save last doc name /storage/0540/doc_00191332 to /storage/kkm_last_doc_name [10:20:32]save OK [10:20:32]Clear old archive folders... [10:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:32]tlvbuf is 01854840 [10:20:32]SAM_PROTO_ClearQueue [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 09 00 00 [10:20:32]Write to MH i2c: E2 08 00 33 81 80 09 00 00 00 00 00 00 26 [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 03 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 03 00 33 81 00 90 00 28 [10:20:32]RAPDU: 90 00 [10:20:32]wFMCommunicate OK [10:20:32]SAM_PROTO_ClearQueue done [10:20:32]KKMCreateOFDPacket [10:20:32]OFDProtocolAddRootSTLVToBuf [10:20:32]FM_MakeSignedData [10:20:32]FM_MakeSignedData [10:20:32]SAM_PROTO_SignData [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 0D 01 02 [10:20:32]Write to MH i2c: E2 08 00 34 81 80 0D 01 02 00 00 00 00 2E [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 03 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 03 00 34 81 00 90 00 29 [10:20:32]RAPDU: 90 00 [10:20:32]wFMCommunicate OK [10:20:32]wFMCommunicate request_size=255 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EB 02 00 35 04 06 00 81 [10:20:32]Write to MH i2c: E2 02 01 35 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EB 02 00 35 04 06 00 81 00 00 E3 [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:33]Read from MH i2c: E2 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 03 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 03 00 35 81 00 90 00 2A [10:20:33]RAPDU: 90 00 [10:20:33]wFMCommunicate OK [10:20:33]wFMCommunicate request_size=10 [10:20:33]MH_SAM_APDU [10:20:33]CAPDU: 80 0D 02 02 05 97 77 55 A7 03 [10:20:33]Write to MH i2c: E2 0D 00 36 81 80 0D 02 02 05 00 97 77 55 A7 03 00 00 48 [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:33]Read from MH i2c: E2 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 03 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 03 00 36 81 00 90 00 2B [10:20:33]RAPDU: 90 00 [10:20:33]wFMCommunicate OK [10:20:33]wFMCommunicate request_size=4 [10:20:33]MH_SAM_APDU [10:20:33]CAPDU: 80 0D 03 02 [10:20:33]Write to MH i2c: E2 08 00 37 81 80 0D 03 02 00 00 00 00 33 [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:33]Read from MH i2c: E2 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 0B 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 0B 00 37 81 00 CC 89 D1 49 D0 4F E4 2B 90 00 D1 [10:20:33]RAPDU: CC 89 D1 49 D0 4F E4 2B 90 00 [10:20:33]wFMCommunicate OK [10:20:33]SAM_PROTO_SignData done [10:20:33]FM_MakeSignedData done [10:20:33]CreateOFDProtocolMessage [10:20:33]wFMCommunicate request_size=4 [10:20:33]MH_SAM_APDU [10:20:33]CAPDU: 80 11 00 00 [10:20:33]Write to MH i2c: E2 08 00 38 81 80 11 00 00 00 00 00 00 33 [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:33]Read from MH i2c: E2 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 17 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: E2 17 00 38 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [10:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:20:33]wFMCommunicate OK [10:20:33]CreateOFDProtocolMessage done [10:20:33]OFDSenderStorePacket 191332 [10:20:33]StoreOFDPacket docnum=191332 [10:20:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 C7 07 01 B7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EB 02 00 35 04 06 00 81 97 77 55 A7 03 CC 89 D1 49 D0 4F E4 2B [10:20:33]CheckFolder [10:20:33]dirname=/storage/ofd_packets [10:20:33]CheckFolder done [10:20:33]ProducePacketName [10:20:33]name=ofd_packets/00191332 [10:20:33]NVStorageSaveData ofd_packets/00191332 [10:20:33]File name is /storage/ofd_packets/00191332 [10:20:33]Write 301 bytes [10:20:33]NVStorageSaveData done [10:20:33]OFDSenderStorePacket done [10:20:33]KKMCreateOFDPacket done [10:20:33]NVStorageSaveData kkm_last_timestamp [10:20:33]File name is /storage/kkm_last_timestamp [10:20:33]Write 4 bytes [10:20:33]NVStorageSaveData done [10:20:33]ExternCall_PrintAddStr [10:20:33]wPrintStart [10:20:33]Write to MH i2c: 01 00 00 39 81 BA [10:20:33]Write i2c OK [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: 01 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: 01 07 00 [10:20:33]MH_I2C_Read... [10:20:33]Read from MH i2c: 01 07 00 39 81 00 00 00 00 00 FF 0F CF [10:20:33]RasterBufferAndPrint [10:20:33]line Счет N : (1)30625 [10:20:33]line ИНН: 02508201610067 [10:20:33]line Контрольно-Кассовый Чек [10:20:33]line ПРОДАЖА [10:20:33]line ТРК (МРК, ГНК) : 12 [10:20:33]line Товар: 2710124130 [10:20:33]line Аи-92-К-5 [10:20:33]line 7.480 * 66.90 [10:20:33]line = 500.41 [10:20:33]line НДС 12% НСП 1% [10:20:33]line > о реализуемом товаре [10:20:33]line ОКРУГЛЕНИЕ: -0.41 [10:20:33]line ИТОГО: 500.00 [10:20:33]line Внесено: 500.00 [10:20:33]line СДАЧА: 0.00 [10:20:33]line НСП 1% : 4.43 [10:20:33]line НДС 12% : 53.14 [10:20:33]line Наличными: 500.00 [10:20:33]line Безнал.: 0.00 [10:20:33]line Место: АЗС № 170 "Партнер Нефть" [10:20:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:20:33]line СНО: Общий режим [10:20:33]line Чек 71 25.10.2024 10:20 [10:20:33]line Смена: 540 ФФД: 1.0 [10:20:33]line ЗНМ: 0300000110 [10:20:33]line РНМ: 0000000000091776 [10:20:33]line Версия ККМ: 001 [10:20:33]line ФМ: 0000000000871754 [10:20:33]line ФД: 191332 [10:20:33]line ФПД: 142487542146819 [10:20:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191332&fm=142487542146819&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:33]OFD Sender: Processing packet 191332 [packets to send 75, broken 74] [10:20:33]ProducePacketName [10:20:33]name=ofd_packets/00191332 [10:20:33]OFD Sender: To server: pG, [10:20:33]CommunicateWithHost lk.salyk.kg:30040 [10:20:33]ConnectInit lk.salyk.kg [10:20:33]written 0, free lines is 4095 [10:20:33]Connected sock=11 [10:20:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 C7 07 01 B7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F8 70 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EB 02 00 35 04 06 00 81 97 77 55 A7 03 CC 89 D1 49 D0 4F E4 2B [10:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF FE 47 00 F5 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EB 02 00 F4 03 04 00 C7 15 1B 67 B6 04 01 00 00 F0 09 22 15 1F 72 E2 E3 [10:20:33]CommunicateWithHost err = 0 [10:20:33]CheckOFDResponse [10:20:33]1017 (14) - 77093643461234 [10:20:33]1041 (16) - 0000000000871754 [10:20:33]1040 (4) - 191332 [10:20:33]1012 (4) - 25.10.2024 03:51 [10:20:33]1206 (1) - 0 [10:20:33]OFD Sender: Remove packet 191332 [10:20:33]ProducePacketName [10:20:33]name=ofd_packets/00191332 [10:20:33]NVStorageDeleteData [10:20:34]Write to MH i2c: 01 00 00 64 81 E5 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 64 81 00 00 00 00 00 A5 0C 9D [10:20:34]RasterBufferAndPrint [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]written 0, free lines is 3242 [10:20:34]MH_Cut [10:20:34]Write to MH i2c: D1 01 00 6B 81 01 BE [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 01 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 01 00 6B 81 00 BD [10:20:34]Write to MH i2c: 01 00 00 6C 81 ED [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]OFD Sender: No OFD packet to send [10:20:35]*** Cut start [10:20:35]*** Partial cut [10:20:35]*** CUTSNS_PIN = 1 [10:20:35]*** CUTSNS_PIN = 0 [10:20:35]*** Brake cut motor [10:20:35]Read from MH i2c: 01 [10:20:35]MH_I2C_Read... [10:20:35]*** Stop cut motor [10:20:35]*** Cut end [10:20:35]Read from MH i2c: 01 07 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 6C 81 00 00 00 00 00 FF 0F 02 [10:20:35]process_action close_receipt done [10:20:35]requested_data is exist [10:20:35]produce_requested_data [10:20:35]requested_item fm.sn is exist - process it [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 11 00 00 [10:20:35]Write to MH i2c: E2 08 00 6D 81 80 11 00 00 00 00 00 00 68 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 6D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [10:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:20:35]wFMCommunicate OK [10:20:35]requested_item fd.num is exist - process it [10:20:35]SAM_PROTO_GetFieldsCounters [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 13 00 00 [10:20:35]Write to MH i2c: E2 08 00 6E 81 80 13 00 00 00 00 00 00 6B [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 62 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 62 00 6E 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_GetFieldsCounters done [10:20:35]requested_item shift.num is exist - process it [10:20:35]requested_item shift.opened is exist - process it [10:20:35]req_shift_opened [10:20:35]FM_GetShiftState [10:20:35]SAM_PROTO_GetShiftState [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 13 01 00 [10:20:35]Write to MH i2c: E2 08 00 6F 81 80 13 01 00 00 00 00 00 6D [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0E 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0E 00 6F 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 30 [10:20:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_GetShiftState done [10:20:35]FM_GetShiftState done [10:20:35]req_shift_opened done [10:20:35]requested_item shift.open_date is exist - process it [10:20:35]req_shift_open_date [10:20:35]req_shift_open_date done [10:20:35]produce_requested_data done [10:20:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191332,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:20:35]process_action_free close_receipt [10:20:35]json_value_free [10:20:35]json_value_free done [10:20:35]process_json_proto returns [10:20:35]Send response to host [10:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191332,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:20:35]free response buf [10:20:35]execute_script done [10:20:35]execute_script returns [10:20:35]free content buf [10:20:35]Sock 9.Close socket [10:20:35]Sock 9.Thread stoped [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:02]accept exits with 8 [10:21:02]New connection [10:21:02]New thread 3066817892 created [10:21:02]Thread 3066961252 joined [10:21:02]Waiting for new connection... [10:21:02] Sock 8.Parse request [10:21:02]Sock 8.Check first char [10:21:02]Sock 8.First char is OK [10:21:02]request: POST /json_proto HTTP/1.0 [10:21:02]Method: POST [10:21:02]URL: /json_proto [10:21:02]Method is POST - this is cgi request [10:21:02]url: /json_proto [10:21:02]query_string will be loaded in cgi processing [10:21:02]execute_cgi json_proto POST (null) [10:21:02]execute_cgi path=json_proto method=POST [10:21:02]POST find Content-Length [10:21:02]Host: 172.17.63.131:8080 [10:21:02]Content-Length: 676 [10:21:02]Content-Type: application/json [10:21:02] [10:21:02]POST finish read [10:21:02]Found Content-Length = 676 [10:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:02]execute_script... [10:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:02]POST & json_proto [10:21:02]process_json_proto [10:21:02]json parsed OK: [10:21:02]protocol is kg_v1.0 [10:21:02]action value=close_receipt [10:21:02]process_action close_receipt [10:21:02]cmd_close_receipt [10:21:02]MH_GetDate [10:21:02]Write to MH i2c: F0 00 00 70 81 E0 [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 09 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: F0 09 00 70 81 00 17 71 1B 67 22 05 6E 64 EC [10:21:02]GetLastDocTimeStamp 1729851640 [10:21:02]current date 1729851671 [10:21:02]FM_GetShiftState [10:21:02]SAM_PROTO_GetShiftState [10:21:02]wFMCommunicate request_size=4 [10:21:02]MH_SAM_APDU [10:21:02]CAPDU: 80 13 01 00 [10:21:02]Write to MH i2c: E2 08 00 71 81 80 13 01 00 00 00 00 00 6F [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:02]Read from MH i2c: E2 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: E2 0E 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: E2 0E 00 71 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 32 [10:21:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:21:02]wFMCommunicate OK [10:21:02]SAM_PROTO_GetShiftState done [10:21:02]FM_GetShiftState done [10:21:02]opened in 1729816399 [10:21:02]opened+sec_in_day 1729902799 [10:21:02]quantity*price = 60009 [10:21:02]sum+1 = 60010 [10:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 72 25.10.2024 10:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191333 ФПД: 13748048343828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191333&fm=13748048343828&tin=02508201610067®Number=0000000000091776&sum=60000 [10:21:03]StoreToDocumentArchive [10:21:03]shift 540 fd 191333 [10:21:03]save to /storage/0540/doc_00191333 [10:21:03]save last doc name /storage/0540/doc_00191333 to /storage/kkm_last_doc_name [10:21:03]save OK [10:21:03]Clear old archive folders... [10:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:03]tlvbuf is 01789E20 [10:21:03]SAM_PROTO_ClearQueue [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 09 00 00 [10:21:03]Write to MH i2c: E2 08 00 7E 81 80 09 00 00 00 00 00 00 71 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 7E 81 00 90 00 73 [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]SAM_PROTO_ClearQueue done [10:21:03]KKMCreateOFDPacket [10:21:03]OFDProtocolAddRootSTLVToBuf [10:21:03]FM_MakeSignedData [10:21:03]FM_MakeSignedData [10:21:03]SAM_PROTO_SignData [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 0D 01 02 [10:21:03]Write to MH i2c: E2 08 00 7F 81 80 0D 01 02 00 00 00 00 79 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 7F 81 00 90 00 74 [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]wFMCommunicate request_size=255 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 17 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EB 02 00 35 04 06 00 0C [10:21:03]Write to MH i2c: E2 02 01 80 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 17 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EB 02 00 35 04 06 00 0C 00 00 B8 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 80 81 00 90 00 75 [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]wFMCommunicate request_size=10 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 02 02 05 80 F7 89 B3 14 [10:21:04]Write to MH i2c: E2 0D 00 81 81 80 0D 02 02 05 00 80 F7 89 B3 14 00 00 4D [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 03 00 81 81 00 90 00 76 [10:21:04]RAPDU: 90 00 [10:21:04]wFMCommunicate OK [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 0D 03 02 [10:21:04]Write to MH i2c: E2 08 00 82 81 80 0D 03 02 00 00 00 00 7E [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0B 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0B 00 82 81 00 F2 E2 97 E0 B5 62 E5 01 90 00 C7 [10:21:04]RAPDU: F2 E2 97 E0 B5 62 E5 01 90 00 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_SignData done [10:21:04]FM_MakeSignedData done [10:21:04]CreateOFDProtocolMessage [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 11 00 00 [10:21:04]Write to MH i2c: E2 08 00 83 81 80 11 00 00 00 00 00 00 7E [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 17 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 17 00 83 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [10:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:04]wFMCommunicate OK [10:21:04]CreateOFDProtocolMessage done [10:21:04]OFDSenderStorePacket 191333 [10:21:04]StoreOFDPacket docnum=191333 [10:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF D9 07 01 B1 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 17 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EB 02 00 35 04 06 00 0C 80 F7 89 B3 14 F2 E2 97 E0 B5 62 E5 01 [10:21:04]CheckFolder [10:21:04]dirname=/storage/ofd_packets [10:21:04]CheckFolder done [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00191333 [10:21:04]NVStorageSaveData ofd_packets/00191333 [10:21:04]File name is /storage/ofd_packets/00191333 [10:21:04]Write 301 bytes [10:21:04]NVStorageSaveData done [10:21:04]OFDSenderStorePacket done [10:21:04]KKMCreateOFDPacket done [10:21:04]NVStorageSaveData kkm_last_timestamp [10:21:04]File name is /storage/kkm_last_timestamp [10:21:04]Write 4 bytes [10:21:04]NVStorageSaveData done [10:21:04]ExternCall_PrintAddStr [10:21:04]wPrintStart [10:21:04]Write to MH i2c: 01 00 00 84 81 05 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 84 81 00 00 00 00 00 FF 0F 1A [10:21:04]RasterBufferAndPrint [10:21:04]line Счет N : (1)30626 [10:21:04]line ИНН: 02508201610067 [10:21:04]line Контрольно-Кассовый Чек [10:21:04]line ПРОДАЖА [10:21:04]line ТРК (МРК, ГНК) : 21 [10:21:04]line Товар: 2710124130 [10:21:04]line Аи-92-К-5 [10:21:04]line 8.970 * 66.90 [10:21:04]line = 600.09 [10:21:04]line НДС 12% НСП 1% [10:21:04]line > о реализуемом товаре [10:21:04]line ОКРУГЛЕНИЕ: -0.09 [10:21:04]line ИТОГО: 600.00 [10:21:04]line Внесено: 600.00 [10:21:04]line СДАЧА: 0.00 [10:21:04]line НСП 1% : 5.31 [10:21:04]line НДС 12% : 63.73 [10:21:04]line Наличными: 600.00 [10:21:04]line Безнал.: 0.00 [10:21:04]line Место: АЗС № 170 "Партнер Нефть" [10:21:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:21:04]line СНО: Общий режим [10:21:04]line Чек 72 25.10.2024 10:21 [10:21:04]line Смена: 540 ФФД: 1.0 [10:21:04]line ЗНМ: 0300000110 [10:21:04]line РНМ: 0000000000091776 [10:21:04]line Версия ККМ: 001 [10:21:04]line ФМ: 0000000000871754 [10:21:04]line ФД: 191333 [10:21:04]line ФПД: 13748048343828 [10:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191333&fm=13748048343828&tin=02508201610067®Number=0000000000091776&sum=60000 [10:21:04]OFD Sender: Processing packet 191333 [packets to send 75, broken 74] [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00191333 [10:21:04]OFD Sender: To server: pG, [10:21:04]CommunicateWithHost lk.salyk.kg:30040 [10:21:04]ConnectInit lk.salyk.kg [10:21:04]written 0, free lines is 4095 [10:21:04]Connected sock=10 [10:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF D9 07 01 B1 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 17 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EB 02 00 35 04 06 00 0C 80 F7 89 B3 14 F2 E2 97 E0 B5 62 E5 01 [10:21:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 05 D0 47 00 3D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EB 02 00 F4 03 04 00 E5 15 1B 67 B6 04 01 00 00 4E 91 BD 92 1F 8E 0C 90 [10:21:04]CommunicateWithHost err = 0 [10:21:04]CheckOFDResponse [10:21:04]1017 (14) - 77093643461234 [10:21:04]1041 (16) - 0000000000871754 [10:21:04]1040 (4) - 191333 [10:21:04]1012 (4) - 25.10.2024 03:52 [10:21:04]1206 (1) - 0 [10:21:04]OFD Sender: Remove packet 191333 [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00191333 [10:21:04]NVStorageDeleteData [10:21:05]Write to MH i2c: 01 00 00 AF 81 30 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 AF 81 00 00 00 00 00 BD 0C 00 [10:21:05]RasterBufferAndPrint [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]line [10:21:05]written 0, free lines is 3270 [10:21:05]MH_Cut [10:21:05]Write to MH i2c: D1 01 00 B6 81 01 09 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 01 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: D1 01 00 B6 81 00 08 [10:21:05]Write to MH i2c: 01 00 00 B7 81 38 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]OFD Sender: No OFD packet to send [10:21:05]*** Cut start [10:21:05]*** Partial cut [10:21:05]*** CUTSNS_PIN = 1 [10:21:05]*** CUTSNS_PIN = 0 [10:21:06]*** Brake cut motor [10:21:06]Read from MH i2c: 01 [10:21:06]MH_I2C_Read... [10:21:06]*** Stop cut motor [10:21:06]*** Cut end [10:21:06]Read from MH i2c: 01 07 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: 01 07 00 B7 81 00 00 00 00 00 FF 0F 4D [10:21:06]process_action close_receipt done [10:21:06]requested_data is exist [10:21:06]produce_requested_data [10:21:06]requested_item fm.sn is exist - process it [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 11 00 00 [10:21:06]Write to MH i2c: E2 08 00 B8 81 80 11 00 00 00 00 00 00 B3 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 17 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 17 00 B8 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [10:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:06]wFMCommunicate OK [10:21:06]requested_item fd.num is exist - process it [10:21:06]SAM_PROTO_GetFieldsCounters [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 13 00 00 [10:21:06]Write to MH i2c: E2 08 00 B9 81 80 13 00 00 00 00 00 00 B6 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 62 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 62 00 B9 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:06]wFMCommunicate OK [10:21:06]SAM_PROTO_GetFieldsCounters done [10:21:06]requested_item shift.num is exist - process it [10:21:06]requested_item shift.opened is exist - process it [10:21:06]req_shift_opened [10:21:06]FM_GetShiftState [10:21:06]SAM_PROTO_GetShiftState [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 13 01 00 [10:21:06]Write to MH i2c: E2 08 00 BA 81 80 13 01 00 00 00 00 00 B8 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 0E 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 0E 00 BA 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7B [10:21:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:21:06]wFMCommunicate OK [10:21:06]SAM_PROTO_GetShiftState done [10:21:06]FM_GetShiftState done [10:21:06]req_shift_opened done [10:21:06]requested_item shift.open_date is exist - process it [10:21:06]req_shift_open_date [10:21:06]req_shift_open_date done [10:21:06]produce_requested_data done [10:21:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191333,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:21:06]process_action_free close_receipt [10:21:06]json_value_free [10:21:06]json_value_free done [10:21:06]process_json_proto returns [10:21:06]Send response to host [10:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191333,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:21:06]free response buf [10:21:06]execute_script done [10:21:06]execute_script returns [10:21:06]free content buf [10:21:06]Sock 8.Close socket [10:21:06]Sock 8.Thread stoped [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:36]accept exits with 9 [10:21:36]New connection [10:21:36]New thread 3066961252 created [10:21:36]Thread 3066817892 joined [10:21:36]Waiting for new connection... [10:21:36] Sock 9.Parse request [10:21:36]Sock 9.Check first char [10:21:36]Sock 9.First char is OK [10:21:36]request: POST /json_proto HTTP/1.0 [10:21:36]Method: POST [10:21:36]URL: /json_proto [10:21:36]Method is POST - this is cgi request [10:21:36]url: /json_proto [10:21:36]query_string will be loaded in cgi processing [10:21:36]execute_cgi json_proto POST (null) [10:21:36]execute_cgi path=json_proto method=POST [10:21:36]POST find Content-Length [10:21:36]Host: 172.17.63.131:8080 [10:21:36]Content-Length: 676 [10:21:36]Content-Type: application/json [10:21:36] [10:21:36]POST finish read [10:21:36]Found Content-Length = 676 [10:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:36]execute_script... [10:21: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)30627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:36]POST & json_proto [10:21:36]process_json_proto [10:21:36]json parsed OK: [10:21:36]protocol is kg_v1.0 [10:21:36]action value=close_receipt [10:21:36]process_action close_receipt [10:21:36]cmd_close_receipt [10:21:36]MH_GetDate [10:21:36]Write to MH i2c: F0 00 00 BB 81 2B [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: F0 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: F0 09 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: F0 09 00 BB 81 00 38 71 1B 67 22 05 6E 64 58 [10:21:36]GetLastDocTimeStamp 1729851671 [10:21:36]current date 1729851704 [10:21:36]FM_GetShiftState [10:21:36]SAM_PROTO_GetShiftState [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 13 01 00 [10:21:36]Write to MH i2c: E2 08 00 BC 81 80 13 01 00 00 00 00 00 BA [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0E 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0E 00 BC 81 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7D [10:21:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:21:36]wFMCommunicate OK [10:21:36]SAM_PROTO_GetShiftState done [10:21:36]FM_GetShiftState done [10:21:36]opened in 1729816399 [10:21:36]opened+sec_in_day 1729902799 [10:21:36]quantity*price = 20003 [10:21:36]sum+1 = 20004 [10:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 73 25.10.2024 10:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191334 ФПД: 108659682408762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191334&fm=108659682408762&tin=02508201610067®Number=0000000000091776&sum=20000 [10:21:37]StoreToDocumentArchive [10:21:37]shift 540 fd 191334 [10:21:37]save to /storage/0540/doc_00191334 [10:21:37]save last doc name /storage/0540/doc_00191334 to /storage/kkm_last_doc_name [10:21:37]save OK [10:21:37]Clear old archive folders... [10:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:37]tlvbuf is 017777D0 [10:21:37]SAM_PROTO_ClearQueue [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 09 00 00 [10:21:37]Write to MH i2c: E2 08 00 C9 81 80 09 00 00 00 00 00 00 BC [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 C9 81 00 90 00 BE [10:21:37]RAPDU: 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_ClearQueue done [10:21:37]KKMCreateOFDPacket [10:21:37]OFDProtocolAddRootSTLVToBuf [10:21:37]FM_MakeSignedData [10:21:37]FM_MakeSignedData [10:21:37]SAM_PROTO_SignData [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 0D 01 02 [10:21:37]Write to MH i2c: E2 08 00 CA 81 80 0D 01 02 00 00 00 00 C4 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 CA 81 00 90 00 BF [10:21:37]RAPDU: 90 00 [10:21:37]wFMCommunicate OK [10:21:37]wFMCommunicate request_size=255 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 38 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EB 02 00 35 04 06 00 62 [10:21:37]Write to MH i2c: E2 02 01 CB 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 38 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EB 02 00 35 04 06 00 62 00 00 61 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 CB 81 00 90 00 C0 [10:21:37]RAPDU: 90 00 [10:21:37]wFMCommunicate OK [10:21:37]wFMCommunicate request_size=10 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 0D 02 02 05 D3 4D C5 79 3A [10:21:37]Write to MH i2c: E2 0D 00 CC 81 80 0D 02 02 05 00 D3 4D C5 79 3A 00 00 69 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 03 00 CC 81 00 90 00 C1 [10:21:37]RAPDU: 90 00 [10:21:37]wFMCommunicate OK [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 0D 03 02 [10:21:37]Write to MH i2c: E2 08 00 CD 81 80 0D 03 02 00 00 00 00 C9 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0B 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0B 00 CD 81 00 80 A8 24 DF 4A EF 88 4C 90 00 02 [10:21:37]RAPDU: 80 A8 24 DF 4A EF 88 4C 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_SignData done [10:21:37]FM_MakeSignedData done [10:21:37]CreateOFDProtocolMessage [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 11 00 00 [10:21:37]Write to MH i2c: E2 08 00 CE 81 80 11 00 00 00 00 00 00 C9 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 CE 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [10:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:37]wFMCommunicate OK [10:21:37]CreateOFDProtocolMessage done [10:21:37]OFDSenderStorePacket 191334 [10:21:37]StoreOFDPacket docnum=191334 [10:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F AF 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 38 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EB 02 00 35 04 06 00 62 D3 4D C5 79 3A 80 A8 24 DF 4A EF 88 4C [10:21:37]CheckFolder [10:21:37]dirname=/storage/ofd_packets [10:21:37]CheckFolder done [10:21:37]ProducePacketName [10:21:37]name=ofd_packets/00191334 [10:21:37]NVStorageSaveData ofd_packets/00191334 [10:21:37]File name is /storage/ofd_packets/00191334 [10:21:37]Write 301 bytes [10:21:37]NVStorageSaveData done [10:21:37]OFDSenderStorePacket done [10:21:37]KKMCreateOFDPacket done [10:21:37]NVStorageSaveData kkm_last_timestamp [10:21:37]File name is /storage/kkm_last_timestamp [10:21:37]Write 4 bytes [10:21:37]NVStorageSaveData done [10:21:37]ExternCall_PrintAddStr [10:21:37]wPrintStart [10:21:37]Write to MH i2c: 01 00 00 CF 81 50 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 CF 81 00 00 00 00 00 FF 0F 65 [10:21:37]RasterBufferAndPrint [10:21:37]line Счет N : (1)30627 [10:21:37]line ИНН: 02508201610067 [10:21:37]line Контрольно-Кассовый Чек [10:21:37]line ПРОДАЖА [10:21:37]line ТРК (МРК, ГНК) : 12 [10:21:37]line Товар: 2710124130 [10:21:37]line Аи-92-К-5 [10:21:37]line 2.990 * 66.90 [10:21:37]line = 200.03 [10:21:37]line НДС 12% НСП 1% [10:21:37]line > о реализуемом товаре [10:21:37]line ОКРУГЛЕНИЕ: -0.03 [10:21:37]line ИТОГО: 200.00 [10:21:37]line Внесено: 200.00 [10:21:37]line СДАЧА: 0.00 [10:21:37]line НСП 1% : 1.77 [10:21:37]line НДС 12% : 21.24 [10:21:37]line Наличными: 200.00 [10:21:37]line Безнал.: 0.00 [10:21:37]line Место: АЗС № 170 "Партнер Нефть" [10:21:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:21:37]line СНО: Общий режим [10:21:37]line Чек 73 25.10.2024 10:21 [10:21:37]line Смена: 540 ФФД: 1.0 [10:21:37]line ЗНМ: 0300000110 [10:21:37]line РНМ: 0000000000091776 [10:21:37]line Версия ККМ: 001 [10:21:37]line ФМ: 0000000000871754 [10:21:37]line ФД: 191334 [10:21:37]line ФПД: 108659682408762 [10:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191334&fm=108659682408762&tin=02508201610067®Number=0000000000091776&sum=20000 [10:21:38]OFD Sender: Processing packet 191334 [packets to send 75, broken 74] [10:21:38]ProducePacketName [10:21:38]name=ofd_packets/00191334 [10:21:38]OFD Sender: To server: pG, [10:21:38]CommunicateWithHost lk.salyk.kg:30040 [10:21:38]ConnectInit lk.salyk.kg [10:21:38]written 0, free lines is 4095 [10:21:38]Connected sock=10 [10:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F AF 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 38 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EB 02 00 35 04 06 00 62 D3 4D C5 79 3A 80 A8 24 DF 4A EF 88 4C [10:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 6B 47 00 44 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 31 37 35 34 10 04 04 00 66 EB 02 00 F4 03 04 00 07 16 1B 67 B6 04 01 00 00 7F F0 A2 5E 1C 20 AD 50 [10:21:38]CommunicateWithHost err = 0 [10:21:38]CheckOFDResponse [10:21:38]1017 (14) - 77093643461234 [10:21:38]1041 (16) - 0000000000871754 [10:21:38]1040 (4) - 191334 [10:21:38]1012 (4) - 25.10.2024 03:52 [10:21:38]1206 (1) - 0 [10:21:38]OFD Sender: Remove packet 191334 [10:21:38]ProducePacketName [10:21:38]name=ofd_packets/00191334 [10:21:38]NVStorageDeleteData [10:21:38]Write to MH i2c: 01 00 00 FA 81 7B [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 07 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 07 00 FA 81 00 00 00 00 00 A9 0C 37 [10:21:38]RasterBufferAndPrint [10:21:38]line [10:21:38]line [10:21:38]line [10:21:38]line [10:21:38]line [10:21:38]written 0, free lines is 3246 [10:21:38]MH_Cut [10:21:38]Write to MH i2c: D1 01 00 01 82 01 55 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: D1 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: D1 01 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: D1 01 00 01 82 00 54 [10:21:38]Write to MH i2c: 01 00 00 02 82 84 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:39]OFD Sender: No OFD packet to send [10:21:39]*** Cut start [10:21:39]*** Partial cut [10:21:39]*** CUTSNS_PIN = 1 [10:21:39]*** CUTSNS_PIN = 0 [10:21:39]*** Brake cut motor [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]*** Stop cut motor [10:21:40]*** Cut end [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 02 82 00 00 00 00 00 FF 0F 99 [10:21:40]process_action close_receipt done [10:21:40]requested_data is exist [10:21:40]produce_requested_data [10:21:40]requested_item fm.sn is exist - process it [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 11 00 00 [10:21:40]Write to MH i2c: E2 08 00 03 82 80 11 00 00 00 00 00 00 FF [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 03 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [10:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:40]wFMCommunicate OK [10:21:40]requested_item fd.num is exist - process it [10:21:40]SAM_PROTO_GetFieldsCounters [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 13 00 00 [10:21:40]Write to MH i2c: E2 08 00 04 82 80 13 00 00 00 00 00 00 02 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 62 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 62 00 04 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [10:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_GetFieldsCounters done [10:21:40]requested_item shift.num is exist - process it [10:21:40]requested_item shift.opened is exist - process it [10:21:40]req_shift_opened [10:21:40]FM_GetShiftState [10:21:40]SAM_PROTO_GetShiftState [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 13 01 00 [10:21:40]Write to MH i2c: E2 08 00 05 82 80 13 01 00 00 00 00 00 04 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 05 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C7 [10:21:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_GetShiftState done [10:21:40]FM_GetShiftState done [10:21:40]req_shift_opened done [10:21:40]requested_item shift.open_date is exist - process it [10:21:40]req_shift_open_date [10:21:40]req_shift_open_date done [10:21:40]produce_requested_data done [10:21:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191334,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:21:40]process_action_free close_receipt [10:21:40]json_value_free [10:21:40]json_value_free done [10:21:40]process_json_proto returns [10:21:40]Send response to host [10:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191334,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:21:40]free response buf [10:21:40]execute_script done [10:21:40]execute_script returns [10:21:40]free content buf [10:21:40]Sock 9.Close socket [10:21:40]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:47]accept exits with 8 [10:22:47]New connection [10:22:47]New thread 3066817892 created [10:22:47]Thread 3066961252 joined [10:22:47]Waiting for new connection... [10:22:47] Sock 8.Parse request [10:22:47]Sock 8.Check first char [10:22:47]Sock 8.First char is OK [10:22:47]request: POST /json_proto HTTP/1.0 [10:22:47]Method: POST [10:22:47]URL: /json_proto [10:22:47]Method is POST - this is cgi request [10:22:47]url: /json_proto [10:22:47]query_string will be loaded in cgi processing [10:22:47]execute_cgi json_proto POST (null) [10:22:47]execute_cgi path=json_proto method=POST [10:22:47]POST find Content-Length [10:22:47]Host: 172.17.63.131:8080 [10:22:47]Content-Length: 681 [10:22:47]Content-Type: application/json [10:22:47] [10:22:47]POST finish read [10:22:47]Found Content-Length = 681 [10:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:47]execute_script... [10:22: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)30628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:47]POST & json_proto [10:22:47]process_json_proto [10:22:47]json parsed OK: [10:22:47]protocol is kg_v1.0 [10:22:47]action value=close_receipt [10:22:47]process_action close_receipt [10:22:47]cmd_close_receipt [10:22:47]MH_GetDate [10:22:47]Write to MH i2c: F0 00 00 06 82 77 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 09 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 09 00 06 82 00 80 71 1B 67 22 05 6E 64 EC [10:22:47]GetLastDocTimeStamp 1729851704 [10:22:47]current date 1729851776 [10:22:47]FM_GetShiftState [10:22:47]SAM_PROTO_GetShiftState [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 13 01 00 [10:22:47]Write to MH i2c: E2 08 00 07 82 80 13 01 00 00 00 00 00 06 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 07 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C9 [10:22:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_GetShiftState done [10:22:47]FM_GetShiftState done [10:22:47]opened in 1729816399 [10:22:47]opened+sec_in_day 1729902799 [10:22:47]quantity*price = 100015 [10:22:47]sum+1 = 100017 [10:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 74 25.10.2024 10:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191335 ФПД: 237549938396855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191335&fm=237549938396855&tin=02508201610067®Number=0000000000091776&sum=100000 [10:22:48]StoreToDocumentArchive [10:22:48]shift 540 fd 191335 [10:22:48]save to /storage/0540/doc_00191335 [10:22:48]save last doc name /storage/0540/doc_00191335 to /storage/kkm_last_doc_name [10:22:48]save OK [10:22:48]Clear old archive folders... [10:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:48]tlvbuf is 0175F800 [10:22:48]SAM_PROTO_ClearQueue [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 09 00 00 [10:22:48]Write to MH i2c: E2 08 00 14 82 80 09 00 00 00 00 00 00 08 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 14 82 00 90 00 0A [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]SAM_PROTO_ClearQueue done [10:22:48]KKMCreateOFDPacket [10:22:48]OFDProtocolAddRootSTLVToBuf [10:22:48]FM_MakeSignedData [10:22:48]FM_MakeSignedData [10:22:48]SAM_PROTO_SignData [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 01 02 [10:22:48]Write to MH i2c: E2 08 00 15 82 80 0D 01 02 00 00 00 00 10 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 15 82 00 90 00 0B [10:22:49]RAPDU: 90 00 [10:22:49]wFMCommunicate OK [10:22:49]wFMCommunicate request_size=255 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 80 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EB 02 00 35 04 06 00 D8 [10:22:49]Write to MH i2c: E2 02 01 16 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 80 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EB 02 00 35 04 06 00 D8 00 00 A5 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]OFD Sender: No OFD packet to send [10:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 16 82 00 90 00 0C [10:22:49]RAPDU: 90 00 [10:22:49]wFMCommunicate OK [10:22:49]wFMCommunicate request_size=10 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 0D 02 02 05 0C E7 B1 CE B7 [10:22:49]Write to MH i2c: E2 0D 00 17 82 80 0D 02 02 05 00 0C E7 B1 CE B7 00 00 46 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 17 82 00 90 00 0D [10:22:49]RAPDU: 90 00 [10:22:49]wFMCommunicate OK [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 0D 03 02 [10:22:49]Write to MH i2c: E2 08 00 18 82 80 0D 03 02 00 00 00 00 15 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0B 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0B 00 18 82 00 FC 74 64 AC B1 15 57 7B 90 00 2E [10:22:49]RAPDU: FC 74 64 AC B1 15 57 7B 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_SignData done [10:22:49]FM_MakeSignedData done [10:22:49]CreateOFDProtocolMessage [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 11 00 00 [10:22:49]Write to MH i2c: E2 08 00 19 82 80 11 00 00 00 00 00 00 15 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 19 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [10:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:49]wFMCommunicate OK [10:22:49]CreateOFDProtocolMessage done [10:22:49]OFDSenderStorePacket 191335 [10:22:49]StoreOFDPacket docnum=191335 [10:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 85 07 01 85 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 80 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EB 02 00 35 04 06 00 D8 0C E7 B1 CE B7 FC 74 64 AC B1 15 57 7B [10:22:49]CheckFolder [10:22:49]dirname=/storage/ofd_packets [10:22:49]CheckFolder done [10:22:49]ProducePacketName [10:22:49]name=ofd_packets/00191335 [10:22:49]NVStorageSaveData ofd_packets/00191335 [10:22:49]File name is /storage/ofd_packets/00191335 [10:22:49]Write 301 bytes [10:22:49]NVStorageSaveData done [10:22:49]OFDSenderStorePacket done [10:22:49]KKMCreateOFDPacket done [10:22:49]NVStorageSaveData kkm_last_timestamp [10:22:49]File name is /storage/kkm_last_timestamp [10:22:49]Write 4 bytes [10:22:49]NVStorageSaveData done [10:22:49]ExternCall_PrintAddStr [10:22:49]wPrintStart [10:22:49]Write to MH i2c: 01 00 00 1A 82 9C [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 1A 82 00 00 00 00 00 FF 0F B1 [10:22:49]RasterBufferAndPrint [10:22:49]line Счет N : (1)30628 [10:22:49]line ИНН: 02508201610067 [10:22:49]line Контрольно-Кассовый Чек [10:22:49]line ПРОДАЖА [10:22:49]line ТРК (МРК, ГНК) : 21 [10:22:49]line Товар: 2710124130 [10:22:49]line Аи-92-К-5 [10:22:49]line 14.950 * 66.90 [10:22:49]line = 1000.16 [10:22:49]line НДС 12% НСП 1% [10:22:49]line > о реализуемом товаре [10:22:49]line ОКРУГЛЕНИЕ: -0.16 [10:22:49]line ИТОГО: 1000.00 [10:22:49]line Внесено: 1000.00 [10:22:49]line СДАЧА: 0.00 [10:22:49]line НСП 1% : 8.85 [10:22:49]line НДС 12% : 106.21 [10:22:49]line Наличными: 1000.00 [10:22:49]line Безнал.: 0.00 [10:22:49]line Место: АЗС № 170 "Партнер Нефть" [10:22:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:22:49]line СНО: Общий режим [10:22:49]line Чек 74 25.10.2024 10:22 [10:22:49]line Смена: 540 ФФД: 1.0 [10:22:49]line ЗНМ: 0300000110 [10:22:49]line РНМ: 0000000000091776 [10:22:49]line Версия ККМ: 001 [10:22:49]line ФМ: 0000000000871754 [10:22:49]line ФД: 191335 [10:22:49]line ФПД: 237549938396855 [10:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191335&fm=237549938396855&tin=02508201610067®Number=0000000000091776&sum=100000 [10:22:49]OFD Sender: Processing packet 191335 [packets to send 75, broken 74] [10:22:49]ProducePacketName [10:22:49]name=ofd_packets/00191335 [10:22:49]OFD Sender: To server: pG, [10:22:49]CommunicateWithHost lk.salyk.kg:30040 [10:22:49]ConnectInit lk.salyk.kg [10:22:49]written 0, free lines is 4095 [10:22:49]Connected sock=10 [10:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 85 07 01 85 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 80 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EB 02 00 35 04 06 00 D8 0C E7 B1 CE B7 FC 74 64 AC B1 15 57 7B [10:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3C FE 47 00 8F 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 31 37 35 34 10 04 04 00 67 EB 02 00 F4 03 04 00 4F 16 1B 67 B6 04 01 00 00 AA AF 35 8F 1E 9F 02 6D [10:22:50]CommunicateWithHost err = 0 [10:22:50]CheckOFDResponse [10:22:50]1017 (14) - 77093643461234 [10:22:50]1041 (16) - 0000000000871754 [10:22:50]1040 (4) - 191335 [10:22:50]1012 (4) - 25.10.2024 03:53 [10:22:50]1206 (1) - 0 [10:22:50]OFD Sender: Remove packet 191335 [10:22:50]ProducePacketName [10:22:50]name=ofd_packets/00191335 [10:22:50]NVStorageDeleteData [10:22:50]Write to MH i2c: 01 00 00 45 82 C7 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 45 82 00 00 00 00 00 B0 0C 8A [10:22:50]RasterBufferAndPrint [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]written 0, free lines is 3256 [10:22:50]MH_Cut [10:22:50]Write to MH i2c: D1 01 00 4C 82 01 A0 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 01 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 01 00 4C 82 00 9F [10:22:50]Write to MH i2c: 01 00 00 4D 82 CF [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]OFD Sender: No OFD packet to send [10:22:51]*** Cut start [10:22:51]*** Partial cut [10:22:51]*** CUTSNS_PIN = 1 [10:22:51]*** CUTSNS_PIN = 0 [10:22:51]*** Brake cut motor [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]*** Stop cut motor [10:22:51]*** Cut end [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 4D 82 00 00 00 00 00 FF 0F E4 [10:22:51]process_action close_receipt done [10:22:51]requested_data is exist [10:22:51]produce_requested_data [10:22:51]requested_item fm.sn is exist - process it [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 11 00 00 [10:22:51]Write to MH i2c: E2 08 00 4E 82 80 11 00 00 00 00 00 00 4A [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 4E 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [10:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:51]wFMCommunicate OK [10:22:51]requested_item fd.num is exist - process it [10:22:51]SAM_PROTO_GetFieldsCounters [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 00 00 [10:22:51]Write to MH i2c: E2 08 00 4F 82 80 13 00 00 00 00 00 00 4D [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 4F 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [10:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_GetFieldsCounters done [10:22:51]requested_item shift.num is exist - process it [10:22:51]requested_item shift.opened is exist - process it [10:22:51]req_shift_opened [10:22:51]FM_GetShiftState [10:22:51]SAM_PROTO_GetShiftState [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 01 00 [10:22:51]Write to MH i2c: E2 08 00 50 82 80 13 01 00 00 00 00 00 4F [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:52]Read from MH i2c: E2 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 0E 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 0E 00 50 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 12 [10:22:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:22:52]wFMCommunicate OK [10:22:52]SAM_PROTO_GetShiftState done [10:22:52]FM_GetShiftState done [10:22:52]req_shift_opened done [10:22:52]requested_item shift.open_date is exist - process it [10:22:52]req_shift_open_date [10:22:52]req_shift_open_date done [10:22:52]produce_requested_data done [10:22:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191335,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:22:52]process_action_free close_receipt [10:22:52]json_value_free [10:22:52]json_value_free done [10:22:52]process_json_proto returns [10:22:52]Send response to host [10:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191335,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:22:52]free response buf [10:22:52]execute_script done [10:22:52]execute_script returns [10:22:52]free content buf [10:22:52]Sock 8.Close socket [10:22:52]Sock 8.Thread stoped [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:16]accept exits with 9 [10:23:16]New connection [10:23:16]New thread 3066961252 created [10:23:16]Thread 3066817892 joined [10:23:16]Waiting for new connection... [10:23:16] Sock 9.Parse request [10:23:16]Sock 9.Check first char [10:23:16]Sock 9.First char is OK [10:23:16]request: POST /json_proto HTTP/1.0 [10:23:16]Method: POST [10:23:16]URL: /json_proto [10:23:16]Method is POST - this is cgi request [10:23:16]url: /json_proto [10:23:16]query_string will be loaded in cgi processing [10:23:16]execute_cgi json_proto POST (null) [10:23:16]execute_cgi path=json_proto method=POST [10:23:16]POST find Content-Length [10:23:16]Host: 172.17.63.131:8080 [10:23:16]Content-Length: 678 [10:23:16]Content-Type: application/json [10:23:16] [10:23:16]POST finish read [10:23:16]Found Content-Length = 678 [10:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:23:16]execute_script... [10:23: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)30629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:23:16]POST & json_proto [10:23:16]process_json_proto [10:23:16]json parsed OK: [10:23:16]protocol is kg_v1.0 [10:23:16]action value=close_receipt [10:23:16]process_action close_receipt [10:23:16]cmd_close_receipt [10:23:16]MH_GetDate [10:23:16]Write to MH i2c: F0 00 00 51 82 C2 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: F0 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: F0 09 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: F0 09 00 51 82 00 9C 71 1B 67 22 05 6E 64 53 [10:23:16]GetLastDocTimeStamp 1729851776 [10:23:16]current date 1729851804 [10:23:16]FM_GetShiftState [10:23:16]SAM_PROTO_GetShiftState [10:23:16]wFMCommunicate request_size=4 [10:23:16]MH_SAM_APDU [10:23:16]CAPDU: 80 13 01 00 [10:23:16]Write to MH i2c: E2 08 00 52 82 80 13 01 00 00 00 00 00 51 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 52 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 14 [10:23:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:23:16]wFMCommunicate OK [10:23:16]SAM_PROTO_GetShiftState done [10:23:16]FM_GetShiftState done [10:23:16]opened in 1729816399 [10:23:16]opened+sec_in_day 1729902799 [10:23:16]quantity*price = 100050 [10:23:16]sum+1 = 100052 [10:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 75 25.10.2024 10:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191336 ФПД: 12182285738531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102324&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191336&fm=12182285738531&tin=02508201610067®Number=0000000000091776&sum=100000 [10:23:17]StoreToDocumentArchive [10:23:17]shift 540 fd 191336 [10:23:17]save to /storage/0540/doc_00191336 [10:23:17]save last doc name /storage/0540/doc_00191336 to /storage/kkm_last_doc_name [10:23:17]save OK [10:23:17]Clear old archive folders... [10:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:17]tlvbuf is 01789F90 [10:23:17]SAM_PROTO_ClearQueue [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 09 00 00 [10:23:17]Write to MH i2c: E2 08 00 5F 82 80 09 00 00 00 00 00 00 53 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 5F 82 00 90 00 55 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_ClearQueue done [10:23:17]KKMCreateOFDPacket [10:23:17]OFDProtocolAddRootSTLVToBuf [10:23:17]FM_MakeSignedData [10:23:17]FM_MakeSignedData [10:23:17]SAM_PROTO_SignData [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 01 02 [10:23:17]Write to MH i2c: E2 08 00 60 82 80 0D 01 02 00 00 00 00 5B [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 60 82 00 90 00 56 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=255 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 9C 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EB 02 00 35 04 06 00 0B 14 68 D0 [10:23:17]Write to MH i2c: E2 02 01 61 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9C 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EB 02 00 35 04 06 00 0B 14 68 D0 00 00 89 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 61 82 00 90 00 57 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=7 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 02 02 02 62 23 [10:23:17]Write to MH i2c: E2 0A 00 62 82 80 0D 02 02 02 00 62 23 00 00 E7 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 62 82 00 90 00 58 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 03 02 [10:23:17]Write to MH i2c: E2 08 00 63 82 80 0D 03 02 00 00 00 00 60 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0B 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0B 00 63 82 00 F0 9B 4B 9E 12 1B 9E 40 90 00 E0 [10:23:17]RAPDU: F0 9B 4B 9E 12 1B 9E 40 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_SignData done [10:23:17]FM_MakeSignedData done [10:23:17]CreateOFDProtocolMessage [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 11 00 00 [10:23:17]Write to MH i2c: E2 08 00 64 82 80 11 00 00 00 00 00 00 60 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:18]Read from MH i2c: E2 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: E2 17 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: E2 17 00 64 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [10:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:18]wFMCommunicate OK [10:23:18]CreateOFDProtocolMessage done [10:23:18]OFDSenderStorePacket 191336 [10:23:18]StoreOFDPacket docnum=191336 [10:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0C 1F 04 01 1D 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 9C 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EB 02 00 35 04 06 00 0B 14 68 D0 62 23 F0 9B 4B 9E 12 1B 9E 40 [10:23:18]CheckFolder [10:23:18]dirname=/storage/ofd_packets [10:23:18]CheckFolder done [10:23:18]ProducePacketName [10:23:18]name=ofd_packets/00191336 [10:23:18]NVStorageSaveData ofd_packets/00191336 [10:23:18]File name is /storage/ofd_packets/00191336 [10:23:18]Write 298 bytes [10:23:18]NVStorageSaveData done [10:23:18]OFDSenderStorePacket done [10:23:18]KKMCreateOFDPacket done [10:23:18]NVStorageSaveData kkm_last_timestamp [10:23:18]File name is /storage/kkm_last_timestamp [10:23:18]Write 4 bytes [10:23:18]NVStorageSaveData done [10:23:18]ExternCall_PrintAddStr [10:23:18]wPrintStart [10:23:18]Write to MH i2c: 01 00 00 65 82 E7 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 65 82 00 00 00 00 00 FF 0F FC [10:23:18]RasterBufferAndPrint [10:23:18]line Счет N : (1)30629 [10:23:18]line ИНН: 02508201610067 [10:23:18]line Контрольно-Кассовый Чек [10:23:18]line ПРОДАЖА [10:23:18]line ТРК (МРК, ГНК) : 22 [10:23:18]line Товар: 2710194210 [10:23:18]line ДТ-К-5 [10:23:18]line 13.130 * 76.20 [10:23:18]line = 1000.51 [10:23:18]line НДС 12% НСП 1% [10:23:18]line > о реализуемом товаре [10:23:18]line ОКРУГЛЕНИЕ: -0.51 [10:23:18]line ИТОГО: 1000.00 [10:23:18]line Внесено: 1000.00 [10:23:18]line СДАЧА: 0.00 [10:23:18]line НСП 1% : 8.85 [10:23:18]line НДС 12% : 106.25 [10:23:18]line Наличными: 1000.00 [10:23:18]line Безнал.: 0.00 [10:23:18]line Место: АЗС № 170 "Партнер Нефть" [10:23:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:23:18]line СНО: Общий режим [10:23:18]line Чек 75 25.10.2024 10:23 [10:23:18]line Смена: 540 ФФД: 1.0 [10:23:18]line ЗНМ: 0300000110 [10:23:18]line РНМ: 0000000000091776 [10:23:18]line Версия ККМ: 001 [10:23:18]line ФМ: 0000000000871754 [10:23:18]line ФД: 191336 [10:23:18]line ФПД: 12182285738531 [10:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102324&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191336&fm=12182285738531&tin=02508201610067®Number=0000000000091776&sum=100000 [10:23:18]written 0, free lines is 4095 [10:23:18]OFD Sender: Processing packet 191336 [packets to send 75, broken 74] [10:23:18]ProducePacketName [10:23:18]name=ofd_packets/00191336 [10:23:18]OFD Sender: To server: pG, [10:23:18]CommunicateWithHost lk.salyk.kg:30040 [10:23:18]ConnectInit lk.salyk.kg [10:23:18]Connected sock=10 [10:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0C 1F 04 01 1D 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 9C 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EB 02 00 35 04 06 00 0B 14 68 D0 62 23 F0 9B 4B 9E 12 1B 9E 40 [10:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 45 F5 47 00 5E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EB 02 00 F4 03 04 00 6B 16 1B 67 B6 04 01 00 00 42 47 2F 52 CF BB 08 9F [10:23:18]CommunicateWithHost err = 0 [10:23:18]CheckOFDResponse [10:23:18]1017 (14) - 77093643461234 [10:23:18]1041 (16) - 0000000000871754 [10:23:18]1040 (4) - 191336 [10:23:18]1012 (4) - 25.10.2024 03:54 [10:23:18]1206 (1) - 0 [10:23:18]OFD Sender: Remove packet 191336 [10:23:18]ProducePacketName [10:23:18]name=ofd_packets/00191336 [10:23:18]NVStorageDeleteData [10:23:18]Write to MH i2c: 01 00 00 90 82 12 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 90 82 00 00 00 00 00 A9 0C CE [10:23:18]RasterBufferAndPrint [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]written 0, free lines is 3246 [10:23:18]MH_Cut [10:23:18]Write to MH i2c: D1 01 00 97 82 01 EB [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 97 82 00 EA [10:23:18]Write to MH i2c: 01 00 00 98 82 1A [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:19]OFD Sender: No OFD packet to send [10:23:19]*** Cut start [10:23:19]*** Partial cut [10:23:19]*** CUTSNS_PIN = 1 [10:23:19]*** CUTSNS_PIN = 0 [10:23:19]*** Brake cut motor [10:23:20]Read from MH i2c: 01 [10:23:20]MH_I2C_Read... [10:23:20]*** Stop cut motor [10:23:20]*** Cut end [10:23:20]Read from MH i2c: 01 07 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: 01 07 00 98 82 00 00 00 00 00 FF 0F 2F [10:23:20]process_action close_receipt done [10:23:20]requested_data is exist [10:23:20]produce_requested_data [10:23:20]requested_item fm.sn is exist - process it [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 11 00 00 [10:23:20]Write to MH i2c: E2 08 00 99 82 80 11 00 00 00 00 00 00 95 [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 17 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 17 00 99 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [10:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:20]wFMCommunicate OK [10:23:20]requested_item fd.num is exist - process it [10:23:20]SAM_PROTO_GetFieldsCounters [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 13 00 00 [10:23:20]Write to MH i2c: E2 08 00 9A 82 80 13 00 00 00 00 00 00 98 [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 62 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 62 00 9A 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:20]wFMCommunicate OK [10:23:20]SAM_PROTO_GetFieldsCounters done [10:23:20]requested_item shift.num is exist - process it [10:23:20]requested_item shift.opened is exist - process it [10:23:20]req_shift_opened [10:23:20]FM_GetShiftState [10:23:20]SAM_PROTO_GetShiftState [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 13 01 00 [10:23:20]Write to MH i2c: E2 08 00 9B 82 80 13 01 00 00 00 00 00 9A [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 9B 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5D [10:23:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:23:20]wFMCommunicate OK [10:23:20]SAM_PROTO_GetShiftState done [10:23:20]FM_GetShiftState done [10:23:20]req_shift_opened done [10:23:20]requested_item shift.open_date is exist - process it [10:23:20]req_shift_open_date [10:23:20]req_shift_open_date done [10:23:20]produce_requested_data done [10:23:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191336,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:23:20]process_action_free close_receipt [10:23:20]json_value_free [10:23:20]json_value_free done [10:23:20]process_json_proto returns [10:23:20]Send response to host [10:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191336,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:23:20]free response buf [10:23:20]execute_script done [10:23:20]execute_script returns [10:23:20]free content buf [10:23:20]Sock 9.Close socket [10:23:20]Sock 9.Thread stoped [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:30]accept exits with 8 [10:23:30]New connection [10:23:30]New thread 3066817892 created [10:23:30]Thread 3066961252 joined [10:23:30]Waiting for new connection... [10:23:30] Sock 8.Parse request [10:23:30]Sock 8.Check first char [10:23:30]Sock 8.First char is OK [10:23:30]request: POST /json_proto HTTP/1.0 [10:23:30]Method: POST [10:23:30]URL: /json_proto [10:23:30]Method is POST - this is cgi request [10:23:30]url: /json_proto [10:23:30]query_string will be loaded in cgi processing [10:23:30]execute_cgi json_proto POST (null) [10:23:30]execute_cgi path=json_proto method=POST [10:23:30]POST find Content-Length [10:23:30]Host: 172.17.63.131:8080 [10:23:30]Content-Length: 676 [10:23:30]Content-Type: application/json [10:23:30] [10:23:30]POST finish read [10:23:30]Found Content-Length = 676 [10:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:30]execute_script... [10:23:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:30]POST & json_proto [10:23:30]process_json_proto [10:23:30]json parsed OK: [10:23:30]protocol is kg_v1.0 [10:23:30]action value=close_receipt [10:23:30]process_action close_receipt [10:23:30]cmd_close_receipt [10:23:30]MH_GetDate [10:23:30]Write to MH i2c: F0 00 00 9C 82 0D [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: F0 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: F0 09 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: F0 09 00 9C 82 00 AA 71 1B 67 22 05 6E 64 AC [10:23:30]GetLastDocTimeStamp 1729851804 [10:23:30]current date 1729851818 [10:23:30]FM_GetShiftState [10:23:30]SAM_PROTO_GetShiftState [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 13 01 00 [10:23:30]Write to MH i2c: E2 08 00 9D 82 80 13 01 00 00 00 00 00 9C [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0E 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0E 00 9D 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5F [10:23:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:23:30]wFMCommunicate OK [10:23:30]SAM_PROTO_GetShiftState done [10:23:30]FM_GetShiftState done [10:23:30]opened in 1729816399 [10:23:30]opened+sec_in_day 1729902799 [10:23:30]quantity*price = 60009 [10:23:30]sum+1 = 60010 [10:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 76 25.10.2024 10:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191337 ФПД: 278193306045506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191337&fm=278193306045506&tin=02508201610067®Number=0000000000091776&sum=60000 [10:23:31]StoreToDocumentArchive [10:23:31]shift 540 fd 191337 [10:23:31]save to /storage/0540/doc_00191337 [10:23:31]save last doc name /storage/0540/doc_00191337 to /storage/kkm_last_doc_name [10:23:31]save OK [10:23:31]Clear old archive folders... [10:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:31]tlvbuf is 01698F20 [10:23:31]SAM_PROTO_ClearQueue [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 09 00 00 [10:23:31]Write to MH i2c: E2 08 00 AA 82 80 09 00 00 00 00 00 00 9E [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 AA 82 00 90 00 A0 [10:23:31]RAPDU: 90 00 [10:23:31]wFMCommunicate OK [10:23:31]SAM_PROTO_ClearQueue done [10:23:31]KKMCreateOFDPacket [10:23:31]OFDProtocolAddRootSTLVToBuf [10:23:31]FM_MakeSignedData [10:23:31]FM_MakeSignedData [10:23:31]SAM_PROTO_SignData [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 0D 01 02 [10:23:31]Write to MH i2c: E2 08 00 AB 82 80 0D 01 02 00 00 00 00 A6 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 AB 82 00 90 00 A1 [10:23:31]RAPDU: 90 00 [10:23:31]wFMCommunicate OK [10:23:31]wFMCommunicate request_size=255 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EB 02 00 35 04 06 00 FD [10:23:31]Write to MH i2c: E2 02 01 AC 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EB 02 00 35 04 06 00 FD 00 00 71 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 AC 82 00 90 00 A2 [10:23:31]RAPDU: 90 00 [10:23:31]wFMCommunicate OK [10:23:31]wFMCommunicate request_size=10 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 0D 02 02 05 03 ED 2F 8C 42 [10:23:31]Write to MH i2c: E2 0D 00 AD 82 80 0D 02 02 05 00 03 ED 2F 8C 42 00 00 A0 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 03 00 AD 82 00 90 00 A3 [10:23:31]RAPDU: 90 00 [10:23:31]wFMCommunicate OK [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 0D 03 02 [10:23:31]Write to MH i2c: E2 08 00 AE 82 80 0D 03 02 00 00 00 00 AB [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:32]Read from MH i2c: E2 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 0B 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 0B 00 AE 82 00 88 E4 F9 DA 62 0B F8 BA 90 00 0A [10:23:32]RAPDU: 88 E4 F9 DA 62 0B F8 BA 90 00 [10:23:32]wFMCommunicate OK [10:23:32]SAM_PROTO_SignData done [10:23:32]FM_MakeSignedData done [10:23:32]CreateOFDProtocolMessage [10:23:32]wFMCommunicate request_size=4 [10:23:32]MH_SAM_APDU [10:23:32]CAPDU: 80 11 00 00 [10:23:32]Write to MH i2c: E2 08 00 AF 82 80 11 00 00 00 00 00 00 AB [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:32]Read from MH i2c: E2 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 17 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 17 00 AF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [10:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:32]wFMCommunicate OK [10:23:32]CreateOFDProtocolMessage done [10:23:32]OFDSenderStorePacket 191337 [10:23:32]StoreOFDPacket docnum=191337 [10:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 AA 07 01 C7 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EB 02 00 35 04 06 00 FD 03 ED 2F 8C 42 88 E4 F9 DA 62 0B F8 BA [10:23:32]CheckFolder [10:23:32]dirname=/storage/ofd_packets [10:23:32]CheckFolder done [10:23:32]ProducePacketName [10:23:32]name=ofd_packets/00191337 [10:23:32]NVStorageSaveData ofd_packets/00191337 [10:23:32]File name is /storage/ofd_packets/00191337 [10:23:32]Write 301 bytes [10:23:32]NVStorageSaveData done [10:23:32]OFDSenderStorePacket done [10:23:32]KKMCreateOFDPacket done [10:23:32]NVStorageSaveData kkm_last_timestamp [10:23:32]File name is /storage/kkm_last_timestamp [10:23:32]Write 4 bytes [10:23:32]NVStorageSaveData done [10:23:32]ExternCall_PrintAddStr [10:23:32]wPrintStart [10:23:32]Write to MH i2c: 01 00 00 B0 82 32 [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 07 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 07 00 B0 82 00 00 00 00 00 FF 0F 47 [10:23:32]RasterBufferAndPrint [10:23:32]line Счет N : (1)30630 [10:23:32]line ИНН: 02508201610067 [10:23:32]line Контрольно-Кассовый Чек [10:23:32]line ПРОДАЖА [10:23:32]line ТРК (МРК, ГНК) : 12 [10:23:32]line Товар: 2710124130 [10:23:32]line Аи-92-К-5 [10:23:32]line 8.970 * 66.90 [10:23:32]line = 600.09 [10:23:32]line НДС 12% НСП 1% [10:23:32]line > о реализуемом товаре [10:23:32]line ОКРУГЛЕНИЕ: -0.09 [10:23:32]line ИТОГО: 600.00 [10:23:32]line Внесено: 600.00 [10:23:32]line СДАЧА: 0.00 [10:23:32]line НСП 1% : 5.31 [10:23:32]line НДС 12% : 63.73 [10:23:32]line Наличными: 600.00 [10:23:32]line Безнал.: 0.00 [10:23:32]line Место: АЗС № 170 "Партнер Нефть" [10:23:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:23:32]line СНО: Общий режим [10:23:32]line Чек 76 25.10.2024 10:23 [10:23:32]line Смена: 540 ФФД: 1.0 [10:23:32]line ЗНМ: 0300000110 [10:23:32]line РНМ: 0000000000091776 [10:23:32]line Версия ККМ: 001 [10:23:32]line ФМ: 0000000000871754 [10:23:32]line ФД: 191337 [10:23:32]line ФПД: 278193306045506 [10:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191337&fm=278193306045506&tin=02508201610067®Number=0000000000091776&sum=60000 [10:23:32]OFD Sender: Processing packet 191337 [packets to send 75, broken 74] [10:23:32]ProducePacketName [10:23:32]name=ofd_packets/00191337 [10:23:32]OFD Sender: To server: pG, [10:23:32]CommunicateWithHost lk.salyk.kg:30040 [10:23:32]ConnectInit lk.salyk.kg [10:23:32]written 0, free lines is 4095 [10:23:32]Connected sock=10 [10:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 AA 07 01 C7 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EB 02 00 35 04 06 00 FD 03 ED 2F 8C 42 88 E4 F9 DA 62 0B F8 BA [10:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 E1 47 00 08 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EB 02 00 F4 03 04 00 79 16 1B 67 B6 04 01 00 00 47 17 66 F9 0E 31 64 58 [10:23:32]CommunicateWithHost err = 0 [10:23:32]CheckOFDResponse [10:23:32]1017 (14) - 77093643461234 [10:23:32]1041 (16) - 0000000000871754 [10:23:32]1040 (4) - 191337 [10:23:32]1012 (4) - 25.10.2024 03:54 [10:23:32]1206 (1) - 0 [10:23:32]OFD Sender: Remove packet 191337 [10:23:32]ProducePacketName [10:23:32]name=ofd_packets/00191337 [10:23:32]NVStorageDeleteData [10:23:32]Write to MH i2c: 01 00 00 DB 82 5D [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 07 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 07 00 DB 82 00 00 00 00 00 B5 0C 25 [10:23:32]RasterBufferAndPrint [10:23:32]line [10:23:32]line [10:23:32]line [10:23:32]line [10:23:32]line [10:23:32]written 0, free lines is 3261 [10:23:32]MH_Cut [10:23:32]Write to MH i2c: D1 01 00 E2 82 01 36 [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: D1 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: D1 01 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: D1 01 00 E2 82 00 35 [10:23:32]Write to MH i2c: 01 00 00 E3 82 65 [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:33]OFD Sender: No OFD packet to send [10:23:33]*** Cut start [10:23:33]*** Partial cut [10:23:33]*** CUTSNS_PIN = 1 [10:23:33]*** CUTSNS_PIN = 0 [10:23:34]*** Brake cut motor [10:23:34]Read from MH i2c: 01 [10:23:34]MH_I2C_Read... [10:23:34]*** Stop cut motor [10:23:34]*** Cut end [10:23:34]Read from MH i2c: 01 07 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: 01 07 00 E3 82 00 00 00 00 00 FF 0F 7A [10:23:34]process_action close_receipt done [10:23:34]requested_data is exist [10:23:34]produce_requested_data [10:23:34]requested_item fm.sn is exist - process it [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 11 00 00 [10:23:34]Write to MH i2c: E2 08 00 E4 82 80 11 00 00 00 00 00 00 E0 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 17 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 17 00 E4 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [10:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:34]wFMCommunicate OK [10:23:34]requested_item fd.num is exist - process it [10:23:34]SAM_PROTO_GetFieldsCounters [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 13 00 00 [10:23:34]Write to MH i2c: E2 08 00 E5 82 80 13 00 00 00 00 00 00 E3 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 62 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 62 00 E5 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:34]wFMCommunicate OK [10:23:34]SAM_PROTO_GetFieldsCounters done [10:23:34]requested_item shift.num is exist - process it [10:23:34]requested_item shift.opened is exist - process it [10:23:34]req_shift_opened [10:23:34]FM_GetShiftState [10:23:34]SAM_PROTO_GetShiftState [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 13 01 00 [10:23:34]Write to MH i2c: E2 08 00 E6 82 80 13 01 00 00 00 00 00 E5 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 0E 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 0E 00 E6 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A8 [10:23:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:23:34]wFMCommunicate OK [10:23:34]SAM_PROTO_GetShiftState done [10:23:34]FM_GetShiftState done [10:23:34]req_shift_opened done [10:23:34]requested_item shift.open_date is exist - process it [10:23:34]req_shift_open_date [10:23:34]req_shift_open_date done [10:23:34]produce_requested_data done [10:23:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191337,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:23:34]process_action_free close_receipt [10:23:34]json_value_free [10:23:34]json_value_free done [10:23:34]process_json_proto returns [10:23:34]Send response to host [10:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191337,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:23:34]free response buf [10:23:34]execute_script done [10:23:34]execute_script returns [10:23:34]free content buf [10:23:34]Sock 8.Close socket [10:23:34]Sock 8.Thread stoped [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:20]accept exits with 9 [10:24:20]New connection [10:24:20]New thread 3066961252 created [10:24:20]Thread 3066817892 joined [10:24:20]Waiting for new connection... [10:24:20] Sock 9.Parse request [10:24:20]Sock 9.Check first char [10:24:20]Sock 9.First char is OK [10:24:20]request: POST /json_proto HTTP/1.0 [10:24:20]Method: POST [10:24:20]URL: /json_proto [10:24:20]Method is POST - this is cgi request [10:24:20]url: /json_proto [10:24:20]query_string will be loaded in cgi processing [10:24:20]execute_cgi json_proto POST (null) [10:24:20]execute_cgi path=json_proto method=POST [10:24:20]POST find Content-Length [10:24:20]Host: 172.17.63.131:8080 [10:24:20]Content-Length: 676 [10:24:20]Content-Type: application/json [10:24:20] [10:24:20]POST finish read [10:24:20]Found Content-Length = 676 [10:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:20]execute_script... [10:24: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)30631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:20]POST & json_proto [10:24:20]process_json_proto [10:24:20]json parsed OK: [10:24:20]protocol is kg_v1.0 [10:24:20]action value=close_receipt [10:24:20]process_action close_receipt [10:24:20]cmd_close_receipt [10:24:20]MH_GetDate [10:24:20]Write to MH i2c: F0 00 00 E7 82 58 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 09 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 09 00 E7 82 00 DC 71 1B 67 22 05 6E 64 29 [10:24:20]GetLastDocTimeStamp 1729851818 [10:24:20]current date 1729851868 [10:24:20]FM_GetShiftState [10:24:20]SAM_PROTO_GetShiftState [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 01 00 [10:24:20]Write to MH i2c: E2 08 00 E8 82 80 13 01 00 00 00 00 00 E7 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 E8 82 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AA [10:24:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetShiftState done [10:24:20]FM_GetShiftState done [10:24:20]opened in 1729816399 [10:24:20]opened+sec_in_day 1729902799 [10:24:20]quantity*price = 20003 [10:24:20]sum+1 = 20004 [10:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 77 25.10.2024 10:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191338 ФПД: 986447670066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102428&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191338&fm=986447670066&tin=02508201610067®Number=0000000000091776&sum=20000 [10:24:21]StoreToDocumentArchive [10:24:21]shift 540 fd 191338 [10:24:21]save to /storage/0540/doc_00191338 [10:24:21]save last doc name /storage/0540/doc_00191338 to /storage/kkm_last_doc_name [10:24:21]save OK [10:24:21]Clear old archive folders... [10:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:21]tlvbuf is 016EB450 [10:24:21]SAM_PROTO_ClearQueue [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 09 00 00 [10:24:21]Write to MH i2c: E2 08 00 F5 82 80 09 00 00 00 00 00 00 E9 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 F5 82 00 90 00 EB [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]SAM_PROTO_ClearQueue done [10:24:21]KKMCreateOFDPacket [10:24:21]OFDProtocolAddRootSTLVToBuf [10:24:21]FM_MakeSignedData [10:24:21]FM_MakeSignedData [10:24:21]SAM_PROTO_SignData [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 01 02 [10:24:21]Write to MH i2c: E2 08 00 F6 82 80 0D 01 02 00 00 00 00 F1 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 F6 82 00 90 00 EC [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]wFMCommunicate request_size=255 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EB 02 00 35 04 06 00 00 [10:24:21]Write to MH i2c: E2 02 01 F7 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EB 02 00 35 04 06 00 00 00 00 D8 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 F7 82 00 90 00 ED [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]wFMCommunicate request_size=10 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 02 02 05 E5 AC DC EB 32 [10:24:21]Write to MH i2c: E2 0D 00 F8 82 80 0D 02 02 05 00 E5 AC DC EB 32 00 00 88 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 F8 82 00 90 00 EE [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 03 02 [10:24:21]Write to MH i2c: E2 08 00 F9 82 80 0D 03 02 00 00 00 00 F6 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 0B 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 0B 00 F9 82 00 60 A4 2D 4F F0 6D 1C E3 90 00 D3 [10:24:21]RAPDU: 60 A4 2D 4F F0 6D 1C E3 90 00 [10:24:21]wFMCommunicate OK [10:24:21]SAM_PROTO_SignData done [10:24:21]FM_MakeSignedData done [10:24:21]CreateOFDProtocolMessage [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 11 00 00 [10:24:21]Write to MH i2c: E2 08 00 FA 82 80 11 00 00 00 00 00 00 F6 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 17 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 17 00 FA 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 49 [10:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:21]wFMCommunicate OK [10:24:21]CreateOFDProtocolMessage done [10:24:21]OFDSenderStorePacket 191338 [10:24:21]StoreOFDPacket docnum=191338 [10:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 2A 07 01 37 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EB 02 00 35 04 06 00 00 E5 AC DC EB 32 60 A4 2D 4F F0 6D 1C E3 [10:24:21]CheckFolder [10:24:21]dirname=/storage/ofd_packets [10:24:21]CheckFolder done [10:24:21]ProducePacketName [10:24:21]name=ofd_packets/00191338 [10:24:21]NVStorageSaveData ofd_packets/00191338 [10:24:21]File name is /storage/ofd_packets/00191338 [10:24:21]Write 301 bytes [10:24:21]NVStorageSaveData done [10:24:21]OFDSenderStorePacket done [10:24:21]KKMCreateOFDPacket done [10:24:21]NVStorageSaveData kkm_last_timestamp [10:24:21]File name is /storage/kkm_last_timestamp [10:24:21]Write 4 bytes [10:24:21]NVStorageSaveData done [10:24:21]ExternCall_PrintAddStr [10:24:21]wPrintStart [10:24:21]Write to MH i2c: 01 00 00 FB 82 7D [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: 01 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: 01 07 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: 01 07 00 FB 82 00 00 00 00 00 FF 0F 92 [10:24:21]RasterBufferAndPrint [10:24:21]line Счет N : (1)30631 [10:24:21]line ИНН: 02508201610067 [10:24:21]line Контрольно-Кассовый Чек [10:24:21]line ПРОДАЖА [10:24:21]line ТРК (МРК, ГНК) : 12 [10:24:21]line Товар: 2710124130 [10:24:21]line Аи-92-К-5 [10:24:21]line 2.990 * 66.90 [10:24:21]line = 200.03 [10:24:21]line НДС 12% НСП 1% [10:24:21]line > о реализуемом товаре [10:24:21]line ОКРУГЛЕНИЕ: -0.03 [10:24:21]line ИТОГО: 200.00 [10:24:21]line Внесено: 200.00 [10:24:21]line СДАЧА: 0.00 [10:24:21]line НСП 1% : 1.77 [10:24:21]line НДС 12% : 21.24 [10:24:21]line Наличными: 200.00 [10:24:21]line Безнал.: 0.00 [10:24:21]line Место: АЗС № 170 "Партнер Нефть" [10:24:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:24:21]line СНО: Общий режим [10:24:21]line Чек 77 25.10.2024 10:24 [10:24:21]line Смена: 540 ФФД: 1.0 [10:24:21]line ЗНМ: 0300000110 [10:24:21]line РНМ: 0000000000091776 [10:24:21]line Версия ККМ: 001 [10:24:21]line ФМ: 0000000000871754 [10:24:21]line ФД: 191338 [10:24:21]line ФПД: 986447670066 [10:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102428&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191338&fm=986447670066&tin=02508201610067®Number=0000000000091776&sum=20000 [10:24:22]OFD Sender: Processing packet 191338 [packets to send 75, broken 74] [10:24:22]ProducePacketName [10:24:22]name=ofd_packets/00191338 [10:24:22]OFD Sender: To server: pG, [10:24:22]CommunicateWithHost lk.salyk.kg:30040 [10:24:22]ConnectInit lk.salyk.kg [10:24:22]written 0, free lines is 4095 [10:24:22]Connected sock=10 [10:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 2A 07 01 37 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EB 02 00 35 04 06 00 00 E5 AC DC EB 32 60 A4 2D 4F F0 6D 1C E3 [10:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CD 95 47 00 D4 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 31 37 35 34 10 04 04 00 6A EB 02 00 F4 03 04 00 AB 16 1B 67 B6 04 01 00 00 2F 4D 84 8A 61 AF E2 B2 [10:24:22]CommunicateWithHost err = 0 [10:24:22]CheckOFDResponse [10:24:22]1017 (14) - 77093643461234 [10:24:22]1041 (16) - 0000000000871754 [10:24:22]1040 (4) - 191338 [10:24:22]1012 (4) - 25.10.2024 03:55 [10:24:22]1206 (1) - 0 [10:24:22]OFD Sender: Remove packet 191338 [10:24:22]ProducePacketName [10:24:22]name=ofd_packets/00191338 [10:24:22]NVStorageDeleteData [10:24:22]Write to MH i2c: 01 00 00 26 83 A9 [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 07 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 07 00 26 83 00 00 00 00 00 9B 0C 57 [10:24:22]RasterBufferAndPrint [10:24:22]line [10:24:22]line [10:24:22]line [10:24:22]line [10:24:22]line [10:24:22]written 0, free lines is 3232 [10:24:22]MH_Cut [10:24:22]Write to MH i2c: D1 01 00 2D 83 01 82 [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: D1 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: D1 01 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: D1 01 00 2D 83 00 81 [10:24:22]Write to MH i2c: 01 00 00 2E 83 B1 [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:23]OFD Sender: No OFD packet to send [10:24:23]*** Cut start [10:24:23]*** Partial cut [10:24:23]*** CUTSNS_PIN = 1 [10:24:23]*** CUTSNS_PIN = 0 [10:24:23]*** Brake cut motor [10:24:24]Read from MH i2c: 01 [10:24:24]MH_I2C_Read... [10:24:24]*** Stop cut motor [10:24:24]*** Cut end [10:24:24]Read from MH i2c: 01 07 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: 01 07 00 2E 83 00 00 00 00 00 FF 0F C6 [10:24:24]process_action close_receipt done [10:24:24]requested_data is exist [10:24:24]produce_requested_data [10:24:24]requested_item fm.sn is exist - process it [10:24:24]wFMCommunicate request_size=4 [10:24:24]MH_SAM_APDU [10:24:24]CAPDU: 80 11 00 00 [10:24:24]Write to MH i2c: E2 08 00 2F 83 80 11 00 00 00 00 00 00 2C [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:24]Read from MH i2c: E2 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 17 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 17 00 2F 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [10:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:24]wFMCommunicate OK [10:24:24]requested_item fd.num is exist - process it [10:24:24]SAM_PROTO_GetFieldsCounters [10:24:24]wFMCommunicate request_size=4 [10:24:24]MH_SAM_APDU [10:24:24]CAPDU: 80 13 00 00 [10:24:24]Write to MH i2c: E2 08 00 30 83 80 13 00 00 00 00 00 00 2F [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:24]Read from MH i2c: E2 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 62 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 62 00 30 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:24]wFMCommunicate OK [10:24:24]SAM_PROTO_GetFieldsCounters done [10:24:24]requested_item shift.num is exist - process it [10:24:24]requested_item shift.opened is exist - process it [10:24:24]req_shift_opened [10:24:24]FM_GetShiftState [10:24:24]SAM_PROTO_GetShiftState [10:24:24]wFMCommunicate request_size=4 [10:24:24]MH_SAM_APDU [10:24:24]CAPDU: 80 13 01 00 [10:24:24]Write to MH i2c: E2 08 00 31 83 80 13 01 00 00 00 00 00 31 [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:24]Read from MH i2c: E2 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 31 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F4 [10:24:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:24:24]wFMCommunicate OK [10:24:24]SAM_PROTO_GetShiftState done [10:24:24]FM_GetShiftState done [10:24:24]req_shift_opened done [10:24:24]requested_item shift.open_date is exist - process it [10:24:24]req_shift_open_date [10:24:24]req_shift_open_date done [10:24:24]produce_requested_data done [10:24:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191338,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:24:24]process_action_free close_receipt [10:24:24]json_value_free [10:24:24]json_value_free done [10:24:24]process_json_proto returns [10:24:24]Send response to host [10:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191338,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:24:24]free response buf [10:24:24]execute_script done [10:24:24]execute_script returns [10:24:24]free content buf [10:24:24]Sock 9.Close socket [10:24:24]Sock 9.Thread stoped [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:50]accept exits with 8 [10:24:50]New connection [10:24:50]New thread 3066817892 created [10:24:50]Thread 3066961252 joined [10:24:50]Waiting for new connection... [10:24:50] Sock 8.Parse request [10:24:50]Sock 8.Check first char [10:24:50]Sock 8.First char is OK [10:24:50]request: POST /json_proto HTTP/1.0 [10:24:50]Method: POST [10:24:50]URL: /json_proto [10:24:50]Method is POST - this is cgi request [10:24:50]url: /json_proto [10:24:50]query_string will be loaded in cgi processing [10:24:50]execute_cgi json_proto POST (null) [10:24:50]execute_cgi path=json_proto method=POST [10:24:50]POST find Content-Length [10:24:50]Host: 172.17.63.131:8080 [10:24:50]Content-Length: 676 [10:24:50]Content-Type: application/json [10:24:50] [10:24:50]POST finish read [10:24:50]Found Content-Length = 676 [10:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:50]execute_script... [10:24: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)30632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:50]POST & json_proto [10:24:50]process_json_proto [10:24:50]json parsed OK: [10:24:50]protocol is kg_v1.0 [10:24:50]action value=close_receipt [10:24:50]process_action close_receipt [10:24:50]cmd_close_receipt [10:24:50]MH_GetDate [10:24:50]Write to MH i2c: F0 00 00 32 83 A4 [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 09 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: F0 09 00 32 83 00 FB 71 1B 67 22 05 6E 64 94 [10:24:50]GetLastDocTimeStamp 1729851868 [10:24:50]current date 1729851899 [10:24:50]FM_GetShiftState [10:24:50]SAM_PROTO_GetShiftState [10:24:50]wFMCommunicate request_size=4 [10:24:50]MH_SAM_APDU [10:24:50]CAPDU: 80 13 01 00 [10:24:50]Write to MH i2c: E2 08 00 33 83 80 13 01 00 00 00 00 00 33 [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:50]Read from MH i2c: E2 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 33 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F6 [10:24:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:24:50]wFMCommunicate OK [10:24:50]SAM_PROTO_GetShiftState done [10:24:50]FM_GetShiftState done [10:24:50]opened in 1729816399 [10:24:50]opened+sec_in_day 1729902799 [10:24:50]quantity*price = 40006 [10:24:50]sum+1 = 40007 [10:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 78 25.10.2024 10:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191339 ФПД: 182569125447068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191339&fm=182569125447068&tin=02508201610067®Number=0000000000091776&sum=40000 [10:24:52]StoreToDocumentArchive [10:24:52]shift 540 fd 191339 [10:24:52]save to /storage/0540/doc_00191339 [10:24:52]save last doc name /storage/0540/doc_00191339 to /storage/kkm_last_doc_name [10:24:52]save OK [10:24:52]Clear old archive folders... [10:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:52]tlvbuf is 015B0CE0 [10:24:52]SAM_PROTO_ClearQueue [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 09 00 00 [10:24:52]Write to MH i2c: E2 08 00 40 83 80 09 00 00 00 00 00 00 35 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 40 83 00 90 00 37 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_ClearQueue done [10:24:52]KKMCreateOFDPacket [10:24:52]OFDProtocolAddRootSTLVToBuf [10:24:52]FM_MakeSignedData [10:24:52]FM_MakeSignedData [10:24:52]SAM_PROTO_SignData [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 01 02 [10:24:52]Write to MH i2c: E2 08 00 41 83 80 0D 01 02 00 00 00 00 3D [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 41 83 00 90 00 38 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=255 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FB 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EB 02 00 35 04 06 00 A6 [10:24:52]Write to MH i2c: E2 02 01 42 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FB 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EB 02 00 35 04 06 00 A6 00 00 F8 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 42 83 00 90 00 39 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=10 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 02 02 05 0B AF DE 85 9C [10:24:52]Write to MH i2c: E2 0D 00 43 83 80 0D 02 02 05 00 0B AF DE 85 9C 00 00 03 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 43 83 00 90 00 3A [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 03 02 [10:24:52]Write to MH i2c: E2 08 00 44 83 80 0D 03 02 00 00 00 00 42 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 44 83 00 38 EB A5 90 7C 84 D8 C3 90 00 36 [10:24:52]RAPDU: 38 EB A5 90 7C 84 D8 C3 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_SignData done [10:24:52]FM_MakeSignedData done [10:24:52]CreateOFDProtocolMessage [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 11 00 00 [10:24:52]Write to MH i2c: E2 08 00 45 83 80 11 00 00 00 00 00 00 42 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 45 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [10:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:52]wFMCommunicate OK [10:24:52]CreateOFDProtocolMessage done [10:24:52]OFDSenderStorePacket 191339 [10:24:52]StoreOFDPacket docnum=191339 [10:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B A1 07 01 CE 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FB 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EB 02 00 35 04 06 00 A6 0B AF DE 85 9C 38 EB A5 90 7C 84 D8 C3 [10:24:52]CheckFolder [10:24:52]dirname=/storage/ofd_packets [10:24:52]CheckFolder done [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00191339 [10:24:52]NVStorageSaveData ofd_packets/00191339 [10:24:52]File name is /storage/ofd_packets/00191339 [10:24:52]Write 301 bytes [10:24:52]NVStorageSaveData done [10:24:52]OFDSenderStorePacket done [10:24:52]KKMCreateOFDPacket done [10:24:52]NVStorageSaveData kkm_last_timestamp [10:24:52]File name is /storage/kkm_last_timestamp [10:24:52]Write 4 bytes [10:24:52]NVStorageSaveData done [10:24:52]ExternCall_PrintAddStr [10:24:52]wPrintStart [10:24:52]Write to MH i2c: 01 00 00 46 83 C9 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 46 83 00 00 00 00 00 FF 0F DE [10:24:52]RasterBufferAndPrint [10:24:52]line Счет N : (1)30632 [10:24:52]line ИНН: 02508201610067 [10:24:52]line Контрольно-Кассовый Чек [10:24:52]line ПРОДАЖА [10:24:52]line ТРК (МРК, ГНК) : 12 [10:24:52]line Товар: 2710124130 [10:24:52]line Аи-92-К-5 [10:24:52]line 5.980 * 66.90 [10:24:52]line = 400.06 [10:24:52]line НДС 12% НСП 1% [10:24:52]line > о реализуемом товаре [10:24:52]line ОКРУГЛЕНИЕ: -0.06 [10:24:52]line ИТОГО: 400.00 [10:24:52]line Внесено: 400.00 [10:24:52]line СДАЧА: 0.00 [10:24:52]line НСП 1% : 3.54 [10:24:52]line НДС 12% : 42.48 [10:24:52]line Наличными: 400.00 [10:24:52]line Безнал.: 0.00 [10:24:52]line Место: АЗС № 170 "Партнер Нефть" [10:24:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:24:52]line СНО: Общий режим [10:24:52]line Чек 78 25.10.2024 10:24 [10:24:52]line Смена: 540 ФФД: 1.0 [10:24:52]line ЗНМ: 0300000110 [10:24:52]line РНМ: 0000000000091776 [10:24:52]line Версия ККМ: 001 [10:24:52]line ФМ: 0000000000871754 [10:24:52]line ФД: 191339 [10:24:52]line ФПД: 182569125447068 [10:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191339&fm=182569125447068&tin=02508201610067®Number=0000000000091776&sum=40000 [10:24:52]OFD Sender: Processing packet 191339 [packets to send 75, broken 74] [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00191339 [10:24:52]OFD Sender: To server: pG, [10:24:52]CommunicateWithHost lk.salyk.kg:30040 [10:24:52]ConnectInit lk.salyk.kg [10:24:52]written 0, free lines is 4095 [10:24:52]Connected sock=10 [10:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B A1 07 01 CE 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FB 71 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EB 02 00 35 04 06 00 A6 0B AF DE 85 9C 38 EB A5 90 7C 84 D8 C3 [10:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A 7C 47 00 7B FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EB 02 00 F4 03 04 00 CA 16 1B 67 B6 04 01 00 00 F9 03 53 0B 80 DE DF 16 [10:24:53]CommunicateWithHost err = 0 [10:24:53]CheckOFDResponse [10:24:53]1017 (14) - 77093643461234 [10:24:53]1041 (16) - 0000000000871754 [10:24:53]1040 (4) - 191339 [10:24:53]1012 (4) - 25.10.2024 03:55 [10:24:53]1206 (1) - 0 [10:24:53]OFD Sender: Remove packet 191339 [10:24:53]ProducePacketName [10:24:53]name=ofd_packets/00191339 [10:24:53]NVStorageDeleteData [10:24:53]Write to MH i2c: 01 00 00 71 83 F4 [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 07 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 07 00 71 83 00 00 00 00 00 A5 0C AC [10:24:53]RasterBufferAndPrint [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]written 0, free lines is 3245 [10:24:53]MH_Cut [10:24:53]Write to MH i2c: D1 01 00 78 83 01 CD [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 01 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 01 00 78 83 00 CC [10:24:53]Write to MH i2c: 01 00 00 79 83 FC [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]OFD Sender: No OFD packet to send [10:24:54]*** Cut start [10:24:54]*** Partial cut [10:24:54]*** CUTSNS_PIN = 1 [10:24:54]*** CUTSNS_PIN = 0 [10:24:54]*** Brake cut motor [10:24:54]Read from MH i2c: 01 [10:24:54]MH_I2C_Read... [10:24:54]*** Stop cut motor [10:24:54]*** Cut end [10:24:54]Read from MH i2c: 01 07 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 79 83 00 00 00 00 00 FF 0F 11 [10:24:54]process_action close_receipt done [10:24:54]requested_data is exist [10:24:54]produce_requested_data [10:24:54]requested_item fm.sn is exist - process it [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 11 00 00 [10:24:54]Write to MH i2c: E2 08 00 7A 83 80 11 00 00 00 00 00 00 77 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 7A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [10:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:54]wFMCommunicate OK [10:24:54]requested_item fd.num is exist - process it [10:24:54]SAM_PROTO_GetFieldsCounters [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 13 00 00 [10:24:54]Write to MH i2c: E2 08 00 7B 83 80 13 00 00 00 00 00 00 7A [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 62 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 62 00 7B 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [10:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_GetFieldsCounters done [10:24:55]requested_item shift.num is exist - process it [10:24:55]requested_item shift.opened is exist - process it [10:24:55]req_shift_opened [10:24:55]FM_GetShiftState [10:24:55]SAM_PROTO_GetShiftState [10:24:55]wFMCommunicate request_size=4 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 13 01 00 [10:24:55]Write to MH i2c: E2 08 00 7C 83 80 13 01 00 00 00 00 00 7C [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0E 00 7C 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3F [10:24:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_GetShiftState done [10:24:55]FM_GetShiftState done [10:24:55]req_shift_opened done [10:24:55]requested_item shift.open_date is exist - process it [10:24:55]req_shift_open_date [10:24:55]req_shift_open_date done [10:24:55]produce_requested_data done [10:24:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191339,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:24:55]process_action_free close_receipt [10:24:55]json_value_free [10:24:55]json_value_free done [10:24:55]process_json_proto returns [10:24:55]Send response to host [10:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191339,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:24:55]free response buf [10:24:55]execute_script done [10:24:55]execute_script returns [10:24:55]free content buf [10:24:55]Sock 8.Close socket [10:24:55]Sock 8.Thread stoped [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]accept exits with 9 [10:26:18]New connection [10:26:18]New thread 3066961252 created [10:26:18]Thread 3066817892 joined [10:26:18]Waiting for new connection... [10:26:18] Sock 9.Parse request [10:26:18]Sock 9.Check first char [10:26:18]Sock 9.First char is OK [10:26:18]request: POST /json_proto HTTP/1.0 [10:26:18]Method: POST [10:26:18]URL: /json_proto [10:26:18]Method is POST - this is cgi request [10:26:18]url: /json_proto [10:26:18]query_string will be loaded in cgi processing [10:26:18]execute_cgi json_proto POST (null) [10:26:18]execute_cgi path=json_proto method=POST [10:26:18]POST find Content-Length [10:26:18]Host: 172.17.63.131:8080 [10:26:18]Content-Length: 676 [10:26:18]Content-Type: application/json [10:26:18] [10:26:18]POST finish read [10:26:18]Found Content-Length = 676 [10:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]execute_script... [10:26: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)30633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]POST & json_proto [10:26:18]process_json_proto [10:26:18]json parsed OK: [10:26:18]protocol is kg_v1.0 [10:26:18]action value=close_receipt [10:26:18]process_action close_receipt [10:26:18]cmd_close_receipt [10:26:18]MH_GetDate [10:26:18]Write to MH i2c: F0 00 00 7D 83 EF [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 7D 83 00 53 72 1B 67 22 05 6E 64 38 [10:26:18]GetLastDocTimeStamp 1729851899 [10:26:18]current date 1729851987 [10:26:18]FM_GetShiftState [10:26:18]SAM_PROTO_GetShiftState [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 13 01 00 [10:26:18]Write to MH i2c: E2 08 00 7E 83 80 13 01 00 00 00 00 00 7E [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]OFD Sender: No OFD packet to send [10:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 7E 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 41 [10:26:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetShiftState done [10:26:18]FM_GetShiftState done [10:26:18]opened in 1729816399 [10:26:18]opened+sec_in_day 1729902799 [10:26:18]quantity*price = 20003 [10:26:18]sum+1 = 20004 [10:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 79 25.10.2024 10:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191340 ФПД: 30816436860261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191340&fm=30816436860261&tin=02508201610067®Number=0000000000091776&sum=20000 [10:26:19]StoreToDocumentArchive [10:26:19]shift 540 fd 191340 [10:26:19]save to /storage/0540/doc_00191340 [10:26:19]save last doc name /storage/0540/doc_00191340 to /storage/kkm_last_doc_name [10:26:19]save OK [10:26:19]Clear old archive folders... [10:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:19]tlvbuf is 01831350 [10:26:19]SAM_PROTO_ClearQueue [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 09 00 00 [10:26:19]Write to MH i2c: E2 08 00 8B 83 80 09 00 00 00 00 00 00 80 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 8B 83 00 90 00 82 [10:26:20]RAPDU: 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_ClearQueue done [10:26:20]KKMCreateOFDPacket [10:26:20]OFDProtocolAddRootSTLVToBuf [10:26:20]FM_MakeSignedData [10:26:20]FM_MakeSignedData [10:26:20]SAM_PROTO_SignData [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 0D 01 02 [10:26:20]Write to MH i2c: E2 08 00 8C 83 80 0D 01 02 00 00 00 00 88 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 8C 83 00 90 00 83 [10:26:20]RAPDU: 90 00 [10:26:20]wFMCommunicate OK [10:26:20]wFMCommunicate request_size=255 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 53 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EB 02 00 35 04 06 00 1C [10:26:20]Write to MH i2c: E2 02 01 8D 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 53 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EB 02 00 35 04 06 00 1C 00 00 07 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 8D 83 00 90 00 84 [10:26:20]RAPDU: 90 00 [10:26:20]wFMCommunicate OK [10:26:20]wFMCommunicate request_size=10 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 0D 02 02 05 07 02 C5 B5 65 [10:26:20]Write to MH i2c: E2 0D 00 8E 83 80 0D 02 02 05 00 07 02 C5 B5 65 00 00 7D [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 03 00 8E 83 00 90 00 85 [10:26:20]RAPDU: 90 00 [10:26:20]wFMCommunicate OK [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 0D 03 02 [10:26:20]Write to MH i2c: E2 08 00 8F 83 80 0D 03 02 00 00 00 00 8D [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0B 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0B 00 8F 83 00 65 73 93 9F 22 B3 CA 5F 90 00 96 [10:26:20]RAPDU: 65 73 93 9F 22 B3 CA 5F 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_SignData done [10:26:20]FM_MakeSignedData done [10:26:20]CreateOFDProtocolMessage [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 11 00 00 [10:26:20]Write to MH i2c: E2 08 00 90 83 80 11 00 00 00 00 00 00 8D [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 90 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [10:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:26:20]wFMCommunicate OK [10:26:20]CreateOFDProtocolMessage done [10:26:20]OFDSenderStorePacket 191340 [10:26:20]StoreOFDPacket docnum=191340 [10:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 E6 07 01 8C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 53 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EB 02 00 35 04 06 00 1C 07 02 C5 B5 65 65 73 93 9F 22 B3 CA 5F [10:26:20]CheckFolder [10:26:20]dirname=/storage/ofd_packets [10:26:20]CheckFolder done [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00191340 [10:26:20]NVStorageSaveData ofd_packets/00191340 [10:26:20]File name is /storage/ofd_packets/00191340 [10:26:20]Write 301 bytes [10:26:20]NVStorageSaveData done [10:26:20]OFDSenderStorePacket done [10:26:20]KKMCreateOFDPacket done [10:26:20]NVStorageSaveData kkm_last_timestamp [10:26:20]File name is /storage/kkm_last_timestamp [10:26:20]Write 4 bytes [10:26:20]NVStorageSaveData done [10:26:20]ExternCall_PrintAddStr [10:26:20]wPrintStart [10:26:20]Write to MH i2c: 01 00 00 91 83 14 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 91 83 00 00 00 00 00 FF 0F 29 [10:26:20]RasterBufferAndPrint [10:26:20]line Счет N : (1)30633 [10:26:20]line ИНН: 02508201610067 [10:26:20]line Контрольно-Кассовый Чек [10:26:20]line ПРОДАЖА [10:26:20]line ТРК (МРК, ГНК) : 21 [10:26:20]line Товар: 2710124130 [10:26:20]line Аи-92-К-5 [10:26:20]line 2.990 * 66.90 [10:26:20]line = 200.03 [10:26:20]line НДС 12% НСП 1% [10:26:20]line > о реализуемом товаре [10:26:20]line ОКРУГЛЕНИЕ: -0.03 [10:26:20]line ИТОГО: 200.00 [10:26:20]line Внесено: 200.00 [10:26:20]line СДАЧА: 0.00 [10:26:20]line НСП 1% : 1.77 [10:26:20]line НДС 12% : 21.24 [10:26:20]line Наличными: 200.00 [10:26:20]line Безнал.: 0.00 [10:26:20]line Место: АЗС № 170 "Партнер Нефть" [10:26:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:26:20]line СНО: Общий режим [10:26:20]line Чек 79 25.10.2024 10:26 [10:26:20]line Смена: 540 ФФД: 1.0 [10:26:20]line ЗНМ: 0300000110 [10:26:20]line РНМ: 0000000000091776 [10:26:20]line Версия ККМ: 001 [10:26:20]line ФМ: 0000000000871754 [10:26:20]line ФД: 191340 [10:26:20]line ФПД: 30816436860261 [10:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191340&fm=30816436860261&tin=02508201610067®Number=0000000000091776&sum=20000 [10:26:20]OFD Sender: Processing packet 191340 [packets to send 75, broken 74] [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00191340 [10:26:20]OFD Sender: To server: pG, [10:26:20]CommunicateWithHost lk.salyk.kg:30040 [10:26:20]ConnectInit lk.salyk.kg [10:26:20]written 0, free lines is 4095 [10:26:20]Connected sock=10 [10:26:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 E6 07 01 8C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 53 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EB 02 00 35 04 06 00 1C 07 02 C5 B5 65 65 73 93 9F 22 B3 CA 5F [10:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FC 43 47 00 B6 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EB 02 00 F4 03 04 00 22 17 1B 67 B6 04 01 00 00 9C A0 B7 48 63 E7 9D 09 [10:26:21]CommunicateWithHost err = 0 [10:26:21]CheckOFDResponse [10:26:21]1017 (14) - 77093643461234 [10:26:21]1041 (16) - 0000000000871754 [10:26:21]1040 (4) - 191340 [10:26:21]1012 (4) - 25.10.2024 03:57 [10:26:21]1206 (1) - 0 [10:26:21]OFD Sender: Remove packet 191340 [10:26:21]ProducePacketName [10:26:21]name=ofd_packets/00191340 [10:26:21]NVStorageDeleteData [10:26:21]Write to MH i2c: 01 00 00 BC 83 3F [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 BC 83 00 00 00 00 00 A5 0C F7 [10:26:21]RasterBufferAndPrint [10:26:21]line [10:26:21]line [10:26:21]line [10:26:21]line [10:26:21]line [10:26:21]written 0, free lines is 3245 [10:26:21]MH_Cut [10:26:21]Write to MH i2c: D1 01 00 C3 83 01 18 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: D1 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: D1 01 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: D1 01 00 C3 83 00 17 [10:26:21]Write to MH i2c: 01 00 00 C4 83 47 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]OFD Sender: No OFD packet to send [10:26:22]*** Cut start [10:26:22]*** Partial cut [10:26:22]*** CUTSNS_PIN = 1 [10:26:22]*** CUTSNS_PIN = 0 [10:26:22]*** Brake cut motor [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]*** Stop cut motor [10:26:22]*** Cut end [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 C4 83 00 00 00 00 00 FF 0F 5C [10:26:22]process_action close_receipt done [10:26:22]requested_data is exist [10:26:22]produce_requested_data [10:26:22]requested_item fm.sn is exist - process it [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 11 00 00 [10:26:22]Write to MH i2c: E2 08 00 C5 83 80 11 00 00 00 00 00 00 C2 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 C5 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [10:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:26:22]wFMCommunicate OK [10:26:22]requested_item fd.num is exist - process it [10:26:22]SAM_PROTO_GetFieldsCounters [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 13 00 00 [10:26:22]Write to MH i2c: E2 08 00 C6 83 80 13 00 00 00 00 00 00 C5 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 62 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 62 00 C6 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [10:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_GetFieldsCounters done [10:26:22]requested_item shift.num is exist - process it [10:26:22]requested_item shift.opened is exist - process it [10:26:22]req_shift_opened [10:26:22]FM_GetShiftState [10:26:22]SAM_PROTO_GetShiftState [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 13 01 00 [10:26:22]Write to MH i2c: E2 08 00 C7 83 80 13 01 00 00 00 00 00 C7 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:23]Read from MH i2c: E2 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 0E 00 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 0E 00 C7 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8A [10:26:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:26:23]wFMCommunicate OK [10:26:23]SAM_PROTO_GetShiftState done [10:26:23]FM_GetShiftState done [10:26:23]req_shift_opened done [10:26:23]requested_item shift.open_date is exist - process it [10:26:23]req_shift_open_date [10:26:23]req_shift_open_date done [10:26:23]produce_requested_data done [10:26:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191340,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:26:23]process_action_free close_receipt [10:26:23]json_value_free [10:26:23]json_value_free done [10:26:23]process_json_proto returns [10:26:23]Send response to host [10:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191340,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:26:23]free response buf [10:26:23]execute_script done [10:26:23]execute_script returns [10:26:23]free content buf [10:26:23]Sock 9.Close socket [10:26:23]Sock 9.Thread stoped [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]accept exits with 8 [10:28:31]New connection [10:28:31]New thread 3066817892 created [10:28:31]Thread 3066961252 joined [10:28:31]Waiting for new connection... [10:28:31] Sock 8.Parse request [10:28:31]Sock 8.Check first char [10:28:31]Sock 8.First char is OK [10:28:31]request: POST /json_proto HTTP/1.0 [10:28:31]Method: POST [10:28:31]URL: /json_proto [10:28:31]Method is POST - this is cgi request [10:28:31]url: /json_proto [10:28:31]query_string will be loaded in cgi processing [10:28:31]execute_cgi json_proto POST (null) [10:28:31]execute_cgi path=json_proto method=POST [10:28:31]POST find Content-Length [10:28:31]Host: 172.17.63.131:8080 [10:28:31]Content-Length: 676 [10:28:31]Content-Type: application/json [10:28:31] [10:28:31]POST finish read [10:28:31]Found Content-Length = 676 [10:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:31]execute_script... [10:28: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)30634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:31]POST & json_proto [10:28:31]process_json_proto [10:28:31]json parsed OK: [10:28:31]protocol is kg_v1.0 [10:28:31]action value=close_receipt [10:28:31]process_action close_receipt [10:28:31]cmd_close_receipt [10:28:31]MH_GetDate [10:28:31]Write to MH i2c: F0 00 00 C8 83 3A [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 C8 83 00 D8 72 1B 67 22 05 6E 64 08 [10:28:31]GetLastDocTimeStamp 1729851987 [10:28:31]current date 1729852120 [10:28:31]FM_GetShiftState [10:28:31]SAM_PROTO_GetShiftState [10:28:31]wFMCommunicate request_size=4 [10:28:31]MH_SAM_APDU [10:28:31]CAPDU: 80 13 01 00 [10:28:31]Write to MH i2c: E2 08 00 C9 83 80 13 01 00 00 00 00 00 C9 [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:31]Read from MH i2c: E2 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: E2 0E 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: E2 0E 00 C9 83 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8C [10:28:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:28:31]wFMCommunicate OK [10:28:31]SAM_PROTO_GetShiftState done [10:28:31]FM_GetShiftState done [10:28:31]opened in 1729816399 [10:28:31]opened+sec_in_day 1729902799 [10:28:31]quantity*price = 50041 [10:28:31]sum+1 = 50042 [10:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 80 25.10.2024 10:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191341 ФПД: 139771397024278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102840&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191341&fm=139771397024278&tin=02508201610067®Number=0000000000091776&sum=50000 [10:28:32]StoreToDocumentArchive [10:28:32]shift 540 fd 191341 [10:28:32]save to /storage/0540/doc_00191341 [10:28:32]save last doc name /storage/0540/doc_00191341 to /storage/kkm_last_doc_name [10:28:32]save OK [10:28:32]Clear old archive folders... [10:28:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:32]tlvbuf is 01600D80 [10:28:32]SAM_PROTO_ClearQueue [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 09 00 00 [10:28:32]Write to MH i2c: E2 08 00 D6 83 80 09 00 00 00 00 00 00 CB [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 D6 83 00 90 00 CD [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_ClearQueue done [10:28:32]KKMCreateOFDPacket [10:28:32]OFDProtocolAddRootSTLVToBuf [10:28:32]FM_MakeSignedData [10:28:32]FM_MakeSignedData [10:28:32]SAM_PROTO_SignData [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 01 02 [10:28:32]Write to MH i2c: E2 08 00 D7 83 80 0D 01 02 00 00 00 00 D3 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 D7 83 00 90 00 CE [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]wFMCommunicate request_size=255 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D8 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EB 02 00 35 04 06 00 7F [10:28:32]Write to MH i2c: E2 02 01 D8 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D8 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EB 02 00 35 04 06 00 7F 00 00 7A [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 D8 83 00 90 00 CF [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=10 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 02 02 05 1F 10 78 2A 16 [10:28:33]Write to MH i2c: E2 0D 00 D9 83 80 0D 02 02 05 00 1F 10 78 2A 16 00 00 C7 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 D9 83 00 90 00 D0 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 03 02 [10:28:33]Write to MH i2c: E2 08 00 DA 83 80 0D 03 02 00 00 00 00 D8 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 0B 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 0B 00 DA 83 00 4C 1B 40 17 72 94 78 A6 90 00 BB [10:28:33]RAPDU: 4C 1B 40 17 72 94 78 A6 90 00 [10:28:33]wFMCommunicate OK [10:28:33]SAM_PROTO_SignData done [10:28:33]FM_MakeSignedData done [10:28:33]CreateOFDProtocolMessage [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 11 00 00 [10:28:33]Write to MH i2c: E2 08 00 DB 83 80 11 00 00 00 00 00 00 D8 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 17 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 17 00 DB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [10:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:28:33]wFMCommunicate OK [10:28:33]CreateOFDProtocolMessage done [10:28:33]OFDSenderStorePacket 191341 [10:28:33]StoreOFDPacket docnum=191341 [10:28:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 C0 07 01 9B BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D8 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EB 02 00 35 04 06 00 7F 1F 10 78 2A 16 4C 1B 40 17 72 94 78 A6 [10:28:33]CheckFolder [10:28:33]dirname=/storage/ofd_packets [10:28:33]CheckFolder done [10:28:33]ProducePacketName [10:28:33]name=ofd_packets/00191341 [10:28:33]NVStorageSaveData ofd_packets/00191341 [10:28:33]File name is /storage/ofd_packets/00191341 [10:28:33]Write 301 bytes [10:28:33]NVStorageSaveData done [10:28:33]OFDSenderStorePacket done [10:28:33]KKMCreateOFDPacket done [10:28:33]NVStorageSaveData kkm_last_timestamp [10:28:33]File name is /storage/kkm_last_timestamp [10:28:33]Write 4 bytes [10:28:33]NVStorageSaveData done [10:28:33]ExternCall_PrintAddStr [10:28:33]wPrintStart [10:28:33]Write to MH i2c: 01 00 00 DC 83 5F [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 DC 83 00 00 00 00 00 FF 0F 74 [10:28:33]RasterBufferAndPrint [10:28:33]line Счет N : (1)30634 [10:28:33]line ИНН: 02508201610067 [10:28:33]line Контрольно-Кассовый Чек [10:28:33]line ПРОДАЖА [10:28:33]line ТРК (МРК, ГНК) : 12 [10:28:33]line Товар: 2710124130 [10:28:33]line Аи-92-К-5 [10:28:33]line 7.480 * 66.90 [10:28:33]line = 500.41 [10:28:33]line НДС 12% НСП 1% [10:28:33]line > о реализуемом товаре [10:28:33]line ОКРУГЛЕНИЕ: -0.41 [10:28:33]line ИТОГО: 500.00 [10:28:33]line Внесено: 500.00 [10:28:33]line СДАЧА: 0.00 [10:28:33]line НСП 1% : 4.43 [10:28:33]line НДС 12% : 53.14 [10:28:33]line Наличными: 500.00 [10:28:33]line Безнал.: 0.00 [10:28:33]line Место: АЗС № 170 "Партнер Нефть" [10:28:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:28:33]line СНО: Общий режим [10:28:33]line Чек 80 25.10.2024 10:28 [10:28:33]line Смена: 540 ФФД: 1.0 [10:28:33]line ЗНМ: 0300000110 [10:28:33]line РНМ: 0000000000091776 [10:28:33]line Версия ККМ: 001 [10:28:33]line ФМ: 0000000000871754 [10:28:33]line ФД: 191341 [10:28:33]line ФПД: 139771397024278 [10:28:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102840&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191341&fm=139771397024278&tin=02508201610067®Number=0000000000091776&sum=50000 [10:28:33]OFD Sender: Processing packet 191341 [packets to send 75, broken 74] [10:28:33]ProducePacketName [10:28:33]name=ofd_packets/00191341 [10:28:33]OFD Sender: To server: pG, [10:28:33]CommunicateWithHost lk.salyk.kg:30040 [10:28:33]ConnectInit lk.salyk.kg [10:28:33]written 0, free lines is 4095 [10:28:33]Connected sock=10 [10:28:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 C0 07 01 9B BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D8 72 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EB 02 00 35 04 06 00 7F 1F 10 78 2A 16 4C 1B 40 17 72 94 78 A6 [10:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 F5 47 00 44 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EB 02 00 F4 03 04 00 A7 17 1B 67 B6 04 01 00 00 FB 5A 44 55 AB 77 FB 72 [10:28:34]CommunicateWithHost err = 0 [10:28:34]CheckOFDResponse [10:28:34]1017 (14) - 77093643461234 [10:28:34]1041 (16) - 0000000000871754 [10:28:34]1040 (4) - 191341 [10:28:34]1012 (4) - 25.10.2024 03:59 [10:28:34]1206 (1) - 0 [10:28:34]OFD Sender: Remove packet 191341 [10:28:34]ProducePacketName [10:28:34]name=ofd_packets/00191341 [10:28:34]NVStorageDeleteData [10:28:34]Write to MH i2c: 01 00 00 07 84 8B [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 07 84 00 00 00 00 00 A0 0C 3E [10:28:34]RasterBufferAndPrint [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]written 0, free lines is 3240 [10:28:34]MH_Cut [10:28:34]Write to MH i2c: D1 01 00 0E 84 01 64 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 01 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 01 00 0E 84 00 63 [10:28:34]Write to MH i2c: 01 00 00 0F 84 93 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]OFD Sender: No OFD packet to send [10:28:35]*** Cut start [10:28:35]*** Partial cut [10:28:35]*** CUTSNS_PIN = 1 [10:28:35]*** CUTSNS_PIN = 0 [10:28:35]*** Brake cut motor [10:28:35]Read from MH i2c: 01 [10:28:35]MH_I2C_Read... [10:28:35]*** Stop cut motor [10:28:35]*** Cut end [10:28:35]Read from MH i2c: 01 07 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: 01 07 00 0F 84 00 00 00 00 00 FF 0F A8 [10:28:35]process_action close_receipt done [10:28:35]requested_data is exist [10:28:35]produce_requested_data [10:28:35]requested_item fm.sn is exist - process it [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 11 00 00 [10:28:35]Write to MH i2c: E2 08 00 10 84 80 11 00 00 00 00 00 00 0E [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 17 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 17 00 10 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [10:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:28:35]wFMCommunicate OK [10:28:35]requested_item fd.num is exist - process it [10:28:35]SAM_PROTO_GetFieldsCounters [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 00 00 [10:28:35]Write to MH i2c: E2 08 00 11 84 80 13 00 00 00 00 00 00 11 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 62 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 62 00 11 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [10:28:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetFieldsCounters done [10:28:35]requested_item shift.num is exist - process it [10:28:35]requested_item shift.opened is exist - process it [10:28:35]req_shift_opened [10:28:35]FM_GetShiftState [10:28:35]SAM_PROTO_GetShiftState [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 01 00 [10:28:35]Write to MH i2c: E2 08 00 12 84 80 13 01 00 00 00 00 00 13 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 12 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [10:28:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetShiftState done [10:28:35]FM_GetShiftState done [10:28:35]req_shift_opened done [10:28:35]requested_item shift.open_date is exist - process it [10:28:35]req_shift_open_date [10:28:35]req_shift_open_date done [10:28:35]produce_requested_data done [10:28:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191341,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:28:35]process_action_free close_receipt [10:28:35]json_value_free [10:28:35]json_value_free done [10:28:35]process_json_proto returns [10:28:35]Send response to host [10:28:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191341,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:28:35]free response buf [10:28:35]execute_script done [10:28:35]execute_script returns [10:28:35]free content buf [10:28:35]Sock 8.Close socket [10:28:35]Sock 8.Thread stoped [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:34]accept exits with 9 [10:30:34]New connection [10:30:34]New thread 3066961252 created [10:30:34]Thread 3066817892 joined [10:30:34]Waiting for new connection... [10:30:34] Sock 9.Parse request [10:30:34]Sock 9.Check first char [10:30:34]Sock 9.First char is OK [10:30:34]request: POST /json_proto HTTP/1.0 [10:30:34]Method: POST [10:30:34]URL: /json_proto [10:30:34]Method is POST - this is cgi request [10:30:34]url: /json_proto [10:30:34]query_string will be loaded in cgi processing [10:30:34]execute_cgi json_proto POST (null) [10:30:34]execute_cgi path=json_proto method=POST [10:30:34]POST find Content-Length [10:30:34]Host: 172.17.63.131:8080 [10:30:34]Content-Length: 676 [10:30:34]Content-Type: application/json [10:30:34] [10:30:34]POST finish read [10:30:34]Found Content-Length = 676 [10:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:34]execute_script... [10:30:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:34]POST & json_proto [10:30:34]process_json_proto [10:30:34]json parsed OK: [10:30:34]protocol is kg_v1.0 [10:30:34]action value=close_receipt [10:30:34]process_action close_receipt [10:30:34]cmd_close_receipt [10:30:34]MH_GetDate [10:30:34]Write to MH i2c: F0 00 00 13 84 86 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: F0 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: F0 09 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: F0 09 00 13 84 00 53 73 1B 67 22 05 6E 64 D0 [10:30:34]GetLastDocTimeStamp 1729852120 [10:30:34]current date 1729852243 [10:30:34]FM_GetShiftState [10:30:34]SAM_PROTO_GetShiftState [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 13 01 00 [10:30:34]Write to MH i2c: E2 08 00 14 84 80 13 01 00 00 00 00 00 15 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 0E 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 0E 00 14 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [10:30:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:30:34]wFMCommunicate OK [10:30:34]SAM_PROTO_GetShiftState done [10:30:34]FM_GetShiftState done [10:30:34]opened in 1729816399 [10:30:34]opened+sec_in_day 1729902799 [10:30:34]quantity*price = 60009 [10:30:34]sum+1 = 60010 [10:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 81 25.10.2024 10:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191342 ФПД: 272325638243941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191342&fm=272325638243941&tin=02508201610067®Number=0000000000091776&sum=60000 [10:30:35]StoreToDocumentArchive [10:30:35]shift 540 fd 191342 [10:30:35]save to /storage/0540/doc_00191342 [10:30:35]save last doc name /storage/0540/doc_00191342 to /storage/kkm_last_doc_name [10:30:35]save OK [10:30:35]Clear old archive folders... [10:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:35]tlvbuf is 016EB6F0 [10:30:35]SAM_PROTO_ClearQueue [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 09 00 00 [10:30:35]Write to MH i2c: E2 08 00 21 84 80 09 00 00 00 00 00 00 17 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 03 00 21 84 00 90 00 19 [10:30:35]RAPDU: 90 00 [10:30:35]wFMCommunicate OK [10:30:35]SAM_PROTO_ClearQueue done [10:30:35]KKMCreateOFDPacket [10:30:35]OFDProtocolAddRootSTLVToBuf [10:30:35]FM_MakeSignedData [10:30:35]FM_MakeSignedData [10:30:35]SAM_PROTO_SignData [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 0D 01 02 [10:30:35]Write to MH i2c: E2 08 00 22 84 80 0D 01 02 00 00 00 00 1F [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 22 84 00 90 00 1A [10:30:36]RAPDU: 90 00 [10:30:36]wFMCommunicate OK [10:30:36]wFMCommunicate request_size=255 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 53 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EB 02 00 35 04 06 00 F7 [10:30:36]Write to MH i2c: E2 02 01 23 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 53 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EB 02 00 35 04 06 00 F7 00 00 99 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 23 84 00 90 00 1B [10:30:36]RAPDU: 90 00 [10:30:36]wFMCommunicate OK [10:30:36]wFMCommunicate request_size=10 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 0D 02 02 05 AD C0 EE 46 65 [10:30:36]Write to MH i2c: E2 0D 00 24 84 80 0D 02 02 05 00 AD C0 EE 46 65 00 00 32 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 03 00 24 84 00 90 00 1C [10:30:36]RAPDU: 90 00 [10:30:36]wFMCommunicate OK [10:30:36]wFMCommunicate request_size=4 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 0D 03 02 [10:30:36]Write to MH i2c: E2 08 00 25 84 80 0D 03 02 00 00 00 00 24 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0B 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0B 00 25 84 00 55 EC 9E 5E 31 BD 58 72 90 00 1A [10:30:36]RAPDU: 55 EC 9E 5E 31 BD 58 72 90 00 [10:30:36]wFMCommunicate OK [10:30:36]SAM_PROTO_SignData done [10:30:36]FM_MakeSignedData done [10:30:36]CreateOFDProtocolMessage [10:30:36]wFMCommunicate request_size=4 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 11 00 00 [10:30:36]Write to MH i2c: E2 08 00 26 84 80 11 00 00 00 00 00 00 24 [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 17 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 17 00 26 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [10:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:36]wFMCommunicate OK [10:30:36]CreateOFDProtocolMessage done [10:30:36]OFDSenderStorePacket 191342 [10:30:36]StoreOFDPacket docnum=191342 [10:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 59 07 01 CB 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 53 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EB 02 00 35 04 06 00 F7 AD C0 EE 46 65 55 EC 9E 5E 31 BD 58 72 [10:30:36]CheckFolder [10:30:36]dirname=/storage/ofd_packets [10:30:36]CheckFolder done [10:30:36]ProducePacketName [10:30:36]name=ofd_packets/00191342 [10:30:36]NVStorageSaveData ofd_packets/00191342 [10:30:36]File name is /storage/ofd_packets/00191342 [10:30:36]Write 301 bytes [10:30:36]NVStorageSaveData done [10:30:36]OFDSenderStorePacket done [10:30:36]KKMCreateOFDPacket done [10:30:36]NVStorageSaveData kkm_last_timestamp [10:30:36]File name is /storage/kkm_last_timestamp [10:30:36]Write 4 bytes [10:30:36]NVStorageSaveData done [10:30:36]ExternCall_PrintAddStr [10:30:36]wPrintStart [10:30:36]Write to MH i2c: 01 00 00 27 84 AB [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 07 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 07 00 27 84 00 00 00 00 00 FF 0F C0 [10:30:36]RasterBufferAndPrint [10:30:36]line Счет N : (1)30635 [10:30:36]line ИНН: 02508201610067 [10:30:36]line Контрольно-Кассовый Чек [10:30:36]line ПРОДАЖА [10:30:36]line ТРК (МРК, ГНК) : 12 [10:30:36]line Товар: 2710124130 [10:30:36]line Аи-92-К-5 [10:30:36]line 8.970 * 66.90 [10:30:36]line = 600.09 [10:30:36]line НДС 12% НСП 1% [10:30:36]line > о реализуемом товаре [10:30:36]line ОКРУГЛЕНИЕ: -0.09 [10:30:36]line ИТОГО: 600.00 [10:30:36]line Внесено: 600.00 [10:30:36]line СДАЧА: 0.00 [10:30:36]line НСП 1% : 5.31 [10:30:36]line НДС 12% : 63.73 [10:30:36]line Наличными: 600.00 [10:30:36]line Безнал.: 0.00 [10:30:36]line Место: АЗС № 170 "Партнер Нефть" [10:30:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:30:36]line СНО: Общий режим [10:30:36]line Чек 81 25.10.2024 10:30 [10:30:36]line Смена: 540 ФФД: 1.0 [10:30:36]line ЗНМ: 0300000110 [10:30:36]line РНМ: 0000000000091776 [10:30:36]line Версия ККМ: 001 [10:30:36]line ФМ: 0000000000871754 [10:30:36]line ФД: 191342 [10:30:36]line ФПД: 272325638243941 [10:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191342&fm=272325638243941&tin=02508201610067®Number=0000000000091776&sum=60000 [10:30:36]OFD Sender: Processing packet 191342 [packets to send 75, broken 74] [10:30:36]ProducePacketName [10:30:36]name=ofd_packets/00191342 [10:30:36]OFD Sender: To server: pG, [10:30:36]CommunicateWithHost lk.salyk.kg:30040 [10:30:36]ConnectInit lk.salyk.kg [10:30:36]written 0, free lines is 4095 [10:30:36]Connected sock=10 [10:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 59 07 01 CB 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 53 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EB 02 00 35 04 06 00 F7 AD C0 EE 46 65 55 EC 9E 5E 31 BD 58 72 [10:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E8 5E 47 00 E4 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EB 02 00 F4 03 04 00 22 18 1B 67 B6 04 01 00 00 C3 AF 71 D1 93 B2 15 47 [10:30:37]CommunicateWithHost err = 0 [10:30:37]CheckOFDResponse [10:30:37]1017 (14) - 77093643461234 [10:30:37]1041 (16) - 0000000000871754 [10:30:37]1040 (4) - 191342 [10:30:37]1012 (4) - 25.10.2024 04:01 [10:30:37]1206 (1) - 0 [10:30:37]OFD Sender: Remove packet 191342 [10:30:37]ProducePacketName [10:30:37]name=ofd_packets/00191342 [10:30:37]NVStorageDeleteData [10:30:37]Write to MH i2c: 01 00 00 52 84 D6 [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: 01 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: 01 07 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: 01 07 00 52 84 00 00 00 00 00 A3 0C 8C [10:30:37]RasterBufferAndPrint [10:30:37]line [10:30:37]line [10:30:37]line [10:30:37]line [10:30:37]line [10:30:37]written 0, free lines is 3241 [10:30:37]MH_Cut [10:30:37]Write to MH i2c: D1 01 00 59 84 01 AF [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: D1 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: D1 01 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: D1 01 00 59 84 00 AE [10:30:37]Write to MH i2c: 01 00 00 5A 84 DE [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]OFD Sender: No OFD packet to send [10:30:38]*** Cut start [10:30:38]*** Partial cut [10:30:38]*** CUTSNS_PIN = 1 [10:30:38]*** CUTSNS_PIN = 0 [10:30:38]*** Brake cut motor [10:30:38]Read from MH i2c: 01 [10:30:38]MH_I2C_Read... [10:30:38]*** Stop cut motor [10:30:38]*** Cut end [10:30:38]Read from MH i2c: 01 07 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: 01 07 00 5A 84 00 00 00 00 00 FF 0F F3 [10:30:38]process_action close_receipt done [10:30:38]requested_data is exist [10:30:38]produce_requested_data [10:30:38]requested_item fm.sn is exist - process it [10:30:38]wFMCommunicate request_size=4 [10:30:38]MH_SAM_APDU [10:30:38]CAPDU: 80 11 00 00 [10:30:38]Write to MH i2c: E2 08 00 5B 84 80 11 00 00 00 00 00 00 59 [10:30:38]Write i2c OK [10:30:38]MH_I2C_Read... [10:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:38]Read from MH i2c: E2 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 17 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 17 00 5B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [10:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:38]wFMCommunicate OK [10:30:38]requested_item fd.num is exist - process it [10:30:38]SAM_PROTO_GetFieldsCounters [10:30:38]wFMCommunicate request_size=4 [10:30:38]MH_SAM_APDU [10:30:38]CAPDU: 80 13 00 00 [10:30:38]Write to MH i2c: E2 08 00 5C 84 80 13 00 00 00 00 00 00 5C [10:30:38]Write i2c OK [10:30:38]MH_I2C_Read... [10:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:38]Read from MH i2c: E2 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 62 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 62 00 5C 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:38]wFMCommunicate OK [10:30:38]SAM_PROTO_GetFieldsCounters done [10:30:38]requested_item shift.num is exist - process it [10:30:38]requested_item shift.opened is exist - process it [10:30:38]req_shift_opened [10:30:38]FM_GetShiftState [10:30:38]SAM_PROTO_GetShiftState [10:30:38]wFMCommunicate request_size=4 [10:30:38]MH_SAM_APDU [10:30:38]CAPDU: 80 13 01 00 [10:30:38]Write to MH i2c: E2 08 00 5D 84 80 13 01 00 00 00 00 00 5E [10:30:38]Write i2c OK [10:30:38]MH_I2C_Read... [10:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:38]Read from MH i2c: E2 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 0E 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 0E 00 5D 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 21 [10:30:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:30:38]wFMCommunicate OK [10:30:38]SAM_PROTO_GetShiftState done [10:30:38]FM_GetShiftState done [10:30:38]req_shift_opened done [10:30:38]requested_item shift.open_date is exist - process it [10:30:38]req_shift_open_date [10:30:38]req_shift_open_date done [10:30:38]produce_requested_data done [10:30:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191342,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:30:38]process_action_free close_receipt [10:30:38]json_value_free [10:30:38]json_value_free done [10:30:38]process_json_proto returns [10:30:38]Send response to host [10:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191342,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:30:38]free response buf [10:30:38]execute_script done [10:30:38]execute_script returns [10:30:38]free content buf [10:30:38]Sock 9.Close socket [10:30:38]Sock 9.Thread stoped [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:10]accept exits with 8 [10:32:10]New connection [10:32:10]New thread 3066817892 created [10:32:10]Thread 3066961252 joined [10:32:10]Waiting for new connection... [10:32:10] Sock 8.Parse request [10:32:10]Sock 8.Check first char [10:32:10]Sock 8.First char is OK [10:32:10]request: POST /json_proto HTTP/1.0 [10:32:10]Method: POST [10:32:10]URL: /json_proto [10:32:10]Method is POST - this is cgi request [10:32:10]url: /json_proto [10:32:10]query_string will be loaded in cgi processing [10:32:10]execute_cgi json_proto POST (null) [10:32:10]execute_cgi path=json_proto method=POST [10:32:10]POST find Content-Length [10:32:10]Host: 172.17.63.131:8080 [10:32:10]Content-Length: 676 [10:32:10]Content-Type: application/json [10:32:10] [10:32:10]POST finish read [10:32:10]Found Content-Length = 676 [10:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:10]execute_script... [10:32: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)30636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:10]POST & json_proto [10:32:10]process_json_proto [10:32:10]json parsed OK: [10:32:10]protocol is kg_v1.0 [10:32:10]action value=close_receipt [10:32:10]process_action close_receipt [10:32:10]cmd_close_receipt [10:32:10]MH_GetDate [10:32:10]Write to MH i2c: F0 00 00 5E 84 D1 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 09 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 09 00 5E 84 00 B2 73 1B 67 22 05 6E 64 7A [10:32:10]GetLastDocTimeStamp 1729852243 [10:32:10]current date 1729852338 [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 5F 84 80 13 01 00 00 00 00 00 60 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 5F 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 23 [10:32:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]opened in 1729816399 [10:32:10]opened+sec_in_day 1729902799 [10:32:10]quantity*price = 30038 [10:32:10]sum+1 = 30039 [10:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 82 25.10.2024 10:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191343 ФПД: 142362312740151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103218&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191343&fm=142362312740151&tin=02508201610067®Number=0000000000091776&sum=30000 [10:32:11]StoreToDocumentArchive [10:32:11]shift 540 fd 191343 [10:32:11]save to /storage/0540/doc_00191343 [10:32:11]save last doc name /storage/0540/doc_00191343 to /storage/kkm_last_doc_name [10:32:11]save OK [10:32:11]Clear old archive folders... [10:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:11]tlvbuf is 016B0130 [10:32:11]SAM_PROTO_ClearQueue [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 09 00 00 [10:32:11]Write to MH i2c: E2 08 00 6C 84 80 09 00 00 00 00 00 00 62 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 6C 84 00 90 00 64 [10:32:11]RAPDU: 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_ClearQueue done [10:32:11]KKMCreateOFDPacket [10:32:11]OFDProtocolAddRootSTLVToBuf [10:32:11]FM_MakeSignedData [10:32:11]FM_MakeSignedData [10:32:11]SAM_PROTO_SignData [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 0D 01 02 [10:32:11]Write to MH i2c: E2 08 00 6D 84 80 0D 01 02 00 00 00 00 6A [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 6D 84 00 90 00 65 [10:32:11]RAPDU: 90 00 [10:32:11]wFMCommunicate OK [10:32:11]wFMCommunicate request_size=255 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B2 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EB 02 00 35 04 06 00 81 [10:32:11]Write to MH i2c: E2 02 01 6E 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B2 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EB 02 00 35 04 06 00 81 00 00 E6 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 6E 84 00 90 00 66 [10:32:11]RAPDU: 90 00 [10:32:11]wFMCommunicate OK [10:32:11]wFMCommunicate request_size=10 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 0D 02 02 05 7A 4F 14 8D 37 [10:32:11]Write to MH i2c: E2 0D 00 6F 84 80 0D 02 02 05 00 7A 4F 14 8D 37 00 00 18 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 03 00 6F 84 00 90 00 67 [10:32:11]RAPDU: 90 00 [10:32:11]wFMCommunicate OK [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 0D 03 02 [10:32:11]Write to MH i2c: E2 08 00 70 84 80 0D 03 02 00 00 00 00 6F [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0B 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0B 00 70 84 00 10 79 0D E2 2B BA 82 3C 90 00 8B [10:32:11]RAPDU: 10 79 0D E2 2B BA 82 3C 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_SignData done [10:32:11]FM_MakeSignedData done [10:32:11]CreateOFDProtocolMessage [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 11 00 00 [10:32:11]Write to MH i2c: E2 08 00 71 84 80 11 00 00 00 00 00 00 6F [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 71 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [10:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:12]wFMCommunicate OK [10:32:12]CreateOFDProtocolMessage done [10:32:12]OFDSenderStorePacket 191343 [10:32:12]StoreOFDPacket docnum=191343 [10:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5C 37 07 01 65 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B2 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EB 02 00 35 04 06 00 81 7A 4F 14 8D 37 10 79 0D E2 2B BA 82 3C [10:32:12]CheckFolder [10:32:12]dirname=/storage/ofd_packets [10:32:12]CheckFolder done [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00191343 [10:32:12]NVStorageSaveData ofd_packets/00191343 [10:32:12]File name is /storage/ofd_packets/00191343 [10:32:12]Write 301 bytes [10:32:12]NVStorageSaveData done [10:32:12]OFDSenderStorePacket done [10:32:12]KKMCreateOFDPacket done [10:32:12]NVStorageSaveData kkm_last_timestamp [10:32:12]File name is /storage/kkm_last_timestamp [10:32:12]Write 4 bytes [10:32:12]NVStorageSaveData done [10:32:12]ExternCall_PrintAddStr [10:32:12]wPrintStart [10:32:12]Write to MH i2c: 01 00 00 72 84 F6 [10:32:12]OFD Sender: Processing packet 191343 [packets to send 75, broken 74] [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00191343 [10:32:12]OFD Sender: To server: pG, [10:32:12]CommunicateWithHost lk.salyk.kg:30040 [10:32:12]ConnectInit lk.salyk.kg [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 72 84 00 00 00 00 00 FF 0F 0B [10:32:12]RasterBufferAndPrint [10:32:12]line Счет N : (1)30636 [10:32:12]line ИНН: 02508201610067 [10:32:12]line Контрольно-Кассовый Чек [10:32:12]line ПРОДАЖА [10:32:12]line ТРК (МРК, ГНК) : 12 [10:32:12]line Товар: 2710124130 [10:32:12]line Аи-92-К-5 [10:32:12]line 4.490 * 66.90 [10:32:12]line = 300.38 [10:32:12]line НДС 12% НСП 1% [10:32:12]line > о реализуемом товаре [10:32:12]line ОКРУГЛЕНИЕ: -0.38 [10:32:12]line ИТОГО: 300.00 [10:32:12]line Внесено: 300.00 [10:32:12]line СДАЧА: 0.00 [10:32:12]line НСП 1% : 2.66 [10:32:12]line НДС 12% : 31.90 [10:32:12]line Наличными: 300.00 [10:32:12]line Безнал.: 0.00 [10:32:12]line Место: АЗС № 170 "Партнер Нефть" [10:32:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:32:12]line СНО: Общий режим [10:32:12]line Чек 82 25.10.2024 10:32 [10:32:12]line Смена: 540 ФФД: 1.0 [10:32:12]line ЗНМ: 0300000110 [10:32:12]line РНМ: 0000000000091776 [10:32:12]line Версия ККМ: 001 [10:32:12]line ФМ: 0000000000871754 [10:32:12]line ФД: 191343 [10:32:12]line ФПД: 142362312740151 [10:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103218&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191343&fm=142362312740151&tin=02508201610067®Number=0000000000091776&sum=30000 [10:32:12]Connected sock=10 [10:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5C 37 07 01 65 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B2 73 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EB 02 00 35 04 06 00 81 7A 4F 14 8D 37 10 79 0D E2 2B BA 82 3C [10:32:12]written 0, free lines is 4095 [10:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A 94 47 00 AA 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EB 02 00 F4 03 04 00 81 18 1B 67 B6 04 01 00 00 51 D1 C0 3B 6A DE FD 4E [10:32:12]CommunicateWithHost err = 0 [10:32:12]CheckOFDResponse [10:32:12]1017 (14) - 77093643461234 [10:32:12]1041 (16) - 0000000000871754 [10:32:12]1040 (4) - 191343 [10:32:12]1012 (4) - 25.10.2024 04:03 [10:32:12]1206 (1) - 0 [10:32:12]OFD Sender: Remove packet 191343 [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00191343 [10:32:12]NVStorageDeleteData [10:32:12]Write to MH i2c: 01 00 00 9D 84 21 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 9D 84 00 00 00 00 00 A5 0C D9 [10:32:12]RasterBufferAndPrint [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]written 0, free lines is 3245 [10:32:12]MH_Cut [10:32:12]Write to MH i2c: D1 01 00 A4 84 01 FA [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 01 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 01 00 A4 84 00 F9 [10:32:12]Write to MH i2c: 01 00 00 A5 84 29 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:13]OFD Sender: No OFD packet to send [10:32:13]*** Cut start [10:32:13]*** Partial cut [10:32:13]*** CUTSNS_PIN = 1 [10:32:13]*** CUTSNS_PIN = 0 [10:32:14]*** Brake cut motor [10:32:14]Read from MH i2c: 01 [10:32:14]MH_I2C_Read... [10:32:14]*** Stop cut motor [10:32:14]*** Cut end [10:32:14]Read from MH i2c: 01 07 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: 01 07 00 A5 84 00 00 00 00 00 FF 0F 3E [10:32:14]process_action close_receipt done [10:32:14]requested_data is exist [10:32:14]produce_requested_data [10:32:14]requested_item fm.sn is exist - process it [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 11 00 00 [10:32:14]Write to MH i2c: E2 08 00 A6 84 80 11 00 00 00 00 00 00 A4 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 17 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 17 00 A6 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [10:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:14]wFMCommunicate OK [10:32:14]requested_item fd.num is exist - process it [10:32:14]SAM_PROTO_GetFieldsCounters [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 13 00 00 [10:32:14]Write to MH i2c: E2 08 00 A7 84 80 13 00 00 00 00 00 00 A7 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 62 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 62 00 A7 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:14]wFMCommunicate OK [10:32:14]SAM_PROTO_GetFieldsCounters done [10:32:14]requested_item shift.num is exist - process it [10:32:14]requested_item shift.opened is exist - process it [10:32:14]req_shift_opened [10:32:14]FM_GetShiftState [10:32:14]SAM_PROTO_GetShiftState [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 13 01 00 [10:32:14]Write to MH i2c: E2 08 00 A8 84 80 13 01 00 00 00 00 00 A9 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 0E 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 0E 00 A8 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6C [10:32:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:32:14]wFMCommunicate OK [10:32:14]SAM_PROTO_GetShiftState done [10:32:14]FM_GetShiftState done [10:32:14]req_shift_opened done [10:32:14]requested_item shift.open_date is exist - process it [10:32:14]req_shift_open_date [10:32:14]req_shift_open_date done [10:32:14]produce_requested_data done [10:32:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191343,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:32:14]process_action_free close_receipt [10:32:14]json_value_free [10:32:14]json_value_free done [10:32:14]process_json_proto returns [10:32:14]Send response to host [10:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191343,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:32:14]free response buf [10:32:14]execute_script done [10:32:14]execute_script returns [10:32:14]free content buf [10:32:14]Sock 8.Close socket [10:32:14]Sock 8.Thread stoped [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:33:59]accept exits with 9 [10:33:59]New connection [10:33:59]New thread 3066961252 created [10:33:59]Thread 3066817892 joined [10:33:59]Waiting for new connection... [10:33:59] Sock 9.Parse request [10:33:59]Sock 9.Check first char [10:33:59]Sock 9.First char is OK [10:33:59]request: POST /json_proto HTTP/1.0 [10:33:59]Method: POST [10:33:59]URL: /json_proto [10:33:59]Method is POST - this is cgi request [10:33:59]url: /json_proto [10:33:59]query_string will be loaded in cgi processing [10:33:59]execute_cgi json_proto POST (null) [10:33:59]execute_cgi path=json_proto method=POST [10:33:59]POST find Content-Length [10:33:59]Host: 172.17.63.131:8080 [10:33:59]Content-Length: 673 [10:33:59]Content-Type: application/json [10:33:59] [10:33:59]POST finish read [10:33:59]Found Content-Length = 673 [10:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:33:59]execute_script... [10:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:33:59]POST & json_proto [10:33:59]process_json_proto [10:33:59]json parsed OK: [10:33:59]protocol is kg_v1.0 [10:33:59]action value=close_receipt [10:33:59]process_action close_receipt [10:33:59]cmd_close_receipt [10:33:59]MH_GetDate [10:33:59]Write to MH i2c: F0 00 00 A9 84 1C [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 09 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 09 00 A9 84 00 20 74 1B 67 22 05 6E 64 34 [10:33:59]GetLastDocTimeStamp 1729852338 [10:33:59]current date 1729852448 [10:33:59]FM_GetShiftState [10:33:59]SAM_PROTO_GetShiftState [10:33:59]wFMCommunicate request_size=4 [10:33:59]MH_SAM_APDU [10:33:59]CAPDU: 80 13 01 00 [10:33:59]Write to MH i2c: E2 08 00 AA 84 80 13 01 00 00 00 00 00 AB [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:59]Read from MH i2c: E2 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 0E 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 0E 00 AA 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6E [10:33:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:33:59]wFMCommunicate OK [10:33:59]SAM_PROTO_GetShiftState done [10:33:59]FM_GetShiftState done [10:33:59]opened in 1729816399 [10:33:59]opened+sec_in_day 1729902799 [10:33:59]quantity*price = 50063 [10:33:59]sum+1 = 50064 [10:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 83 25.10.2024 10:34 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191344 ФПД: 190501848004838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191344&fm=190501848004838&tin=02508201610067®Number=0000000000091776&sum=50000 [10:34:01]StoreToDocumentArchive [10:34:01]shift 540 fd 191344 [10:34:01]save to /storage/0540/doc_00191344 [10:34:01]save last doc name /storage/0540/doc_00191344 to /storage/kkm_last_doc_name [10:34:01]save OK [10:34:01]Clear old archive folders... [10:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:34:01]tlvbuf is 017F1960 [10:34:01]SAM_PROTO_ClearQueue [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 09 00 00 [10:34:01]Write to MH i2c: E2 08 00 B7 84 80 09 00 00 00 00 00 00 AD [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 B7 84 00 90 00 AF [10:34:01]RAPDU: 90 00 [10:34:01]wFMCommunicate OK [10:34:01]SAM_PROTO_ClearQueue done [10:34:01]KKMCreateOFDPacket [10:34:01]OFDProtocolAddRootSTLVToBuf [10:34:01]FM_MakeSignedData [10:34:01]FM_MakeSignedData [10:34:01]SAM_PROTO_SignData [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 0D 01 02 [10:34:01]Write to MH i2c: E2 08 00 B8 84 80 0D 01 02 00 00 00 00 B5 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 B8 84 00 90 00 B0 [10:34:01]RAPDU: 90 00 [10:34:01]wFMCommunicate OK [10:34:01]wFMCommunicate request_size=255 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 20 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EB 02 00 35 04 06 00 AD 42 AA FA [10:34:01]Write to MH i2c: E2 02 01 B9 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 53 00 00 00 F4 03 04 00 20 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EB 02 00 35 04 06 00 AD 42 AA FA 00 00 3E [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 B9 84 00 90 00 B1 [10:34:01]RAPDU: 90 00 [10:34:01]wFMCommunicate OK [10:34:01]wFMCommunicate request_size=7 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 0D 02 02 02 B8 E6 [10:34:01]Write to MH i2c: E2 0A 00 BA 84 80 0D 02 02 02 00 B8 E6 00 00 5A [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 03 00 BA 84 00 90 00 B2 [10:34:01]RAPDU: 90 00 [10:34:01]wFMCommunicate OK [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 0D 03 02 [10:34:01]Write to MH i2c: E2 08 00 BB 84 80 0D 03 02 00 00 00 00 BA [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0B 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0B 00 BB 84 00 94 D4 BB 7E 29 97 7C 74 90 00 0C [10:34:01]RAPDU: 94 D4 BB 7E 29 97 7C 74 90 00 [10:34:01]wFMCommunicate OK [10:34:01]SAM_PROTO_SignData done [10:34:01]FM_MakeSignedData done [10:34:01]CreateOFDProtocolMessage [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 11 00 00 [10:34:01]Write to MH i2c: E2 08 00 BC 84 80 11 00 00 00 00 00 00 BA [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 17 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 17 00 BC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [10:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:01]wFMCommunicate OK [10:34:01]CreateOFDProtocolMessage done [10:34:01]OFDSenderStorePacket 191344 [10:34:01]StoreOFDPacket docnum=191344 [10:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9C 0D 04 01 14 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 53 00 00 00 F4 03 04 00 20 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EB 02 00 35 04 06 00 AD 42 AA FA B8 E6 94 D4 BB 7E 29 97 7C 74 [10:34:01]CheckFolder [10:34:01]dirname=/storage/ofd_packets [10:34:01]CheckFolder done [10:34:01]ProducePacketName [10:34:01]name=ofd_packets/00191344 [10:34:01]NVStorageSaveData ofd_packets/00191344 [10:34:01]File name is /storage/ofd_packets/00191344 [10:34:01]Write 298 bytes [10:34:01]NVStorageSaveData done [10:34:01]OFDSenderStorePacket done [10:34:01]KKMCreateOFDPacket done [10:34:01]NVStorageSaveData kkm_last_timestamp [10:34:01]File name is /storage/kkm_last_timestamp [10:34:01]Write 4 bytes [10:34:01]NVStorageSaveData done [10:34:01]ExternCall_PrintAddStr [10:34:01]wPrintStart [10:34:01]Write to MH i2c: 01 00 00 BD 84 41 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 BD 84 00 00 00 00 00 FF 0F 56 [10:34:01]RasterBufferAndPrint [10:34:01]line Счет N : (1)30637 [10:34:01]line ИНН: 02508201610067 [10:34:01]line Контрольно-Кассовый Чек [10:34:01]line ПРОДАЖА [10:34:01]line ТРК (МРК, ГНК) : 11 [10:34:01]line Товар: 2710194210 [10:34:01]line ДТ-К-5 [10:34:01]line 6.570 * 76.20 [10:34:01]line = 500.63 [10:34:01]line НДС 12% НСП 1% [10:34:01]line > о реализуемом товаре [10:34:01]line ОКРУГЛЕНИЕ: -0.63 [10:34:01]line ИТОГО: 500.00 [10:34:01]line Внесено: 500.00 [10:34:01]line СДАЧА: 0.00 [10:34:01]line НСП 1% : 4.43 [10:34:01]line НДС 12% : 53.16 [10:34:01]line Наличными: 500.00 [10:34:01]line Безнал.: 0.00 [10:34:01]line Место: АЗС № 170 "Партнер Нефть" [10:34:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:34:01]line СНО: Общий режим [10:34:01]line Чек 83 25.10.2024 10:34 [10:34:01]line Смена: 540 ФФД: 1.0 [10:34:01]line ЗНМ: 0300000110 [10:34:01]line РНМ: 0000000000091776 [10:34:01]line Версия ККМ: 001 [10:34:01]line ФМ: 0000000000871754 [10:34:01]line ФД: 191344 [10:34:01]line ФПД: 190501848004838 [10:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191344&fm=190501848004838&tin=02508201610067®Number=0000000000091776&sum=50000 [10:34:01]OFD Sender: Processing packet 191344 [packets to send 75, broken 74] [10:34:01]ProducePacketName [10:34:01]name=ofd_packets/00191344 [10:34:01]OFD Sender: To server: pG, [10:34:01]CommunicateWithHost lk.salyk.kg:30040 [10:34:01]ConnectInit lk.salyk.kg [10:34:01]written 0, free lines is 4095 [10:34:02]Connected sock=8 [10:34:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9C 0D 04 01 14 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 53 00 00 00 F4 03 04 00 20 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EB 02 00 35 04 06 00 AD 42 AA FA B8 E6 94 D4 BB 7E 29 97 7C 74 [10:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD 52 47 00 4D C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EB 02 00 F4 03 04 00 EF 18 1B 67 B6 04 01 00 00 60 2C 49 78 42 E1 7E E5 [10:34:02]CommunicateWithHost err = 0 [10:34:02]CheckOFDResponse [10:34:02]1017 (14) - 77093643461234 [10:34:02]1041 (16) - 0000000000871754 [10:34:02]1040 (4) - 191344 [10:34:02]1012 (4) - 25.10.2024 04:05 [10:34:02]1206 (1) - 0 [10:34:02]OFD Sender: Remove packet 191344 [10:34:02]ProducePacketName [10:34:02]name=ofd_packets/00191344 [10:34:02]NVStorageDeleteData [10:34:02]Write to MH i2c: 01 00 00 E8 84 6C [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: 01 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: 01 07 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: 01 07 00 E8 84 00 00 00 00 00 A9 0C 28 [10:34:02]RasterBufferAndPrint [10:34:02]line [10:34:02]line [10:34:02]line [10:34:02]line [10:34:02]line [10:34:02]written 0, free lines is 3248 [10:34:02]MH_Cut [10:34:02]Write to MH i2c: D1 01 00 EF 84 01 45 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: D1 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: D1 01 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: D1 01 00 EF 84 00 44 [10:34:02]Write to MH i2c: 01 00 00 F0 84 74 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]OFD Sender: No OFD packet to send [10:34:03]*** Cut start [10:34:03]*** Partial cut [10:34:03]*** CUTSNS_PIN = 1 [10:34:03]*** CUTSNS_PIN = 0 [10:34:03]*** Brake cut motor [10:34:03]Read from MH i2c: 01 [10:34:03]MH_I2C_Read... [10:34:03]*** Stop cut motor [10:34:03]*** Cut end [10:34:03]Read from MH i2c: 01 07 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: 01 07 00 F0 84 00 00 00 00 00 FF 0F 89 [10:34:03]process_action close_receipt done [10:34:03]requested_data is exist [10:34:03]produce_requested_data [10:34:03]requested_item fm.sn is exist - process it [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 11 00 00 [10:34:03]Write to MH i2c: E2 08 00 F1 84 80 11 00 00 00 00 00 00 EF [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:03]Read from MH i2c: E2 17 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 17 00 F1 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [10:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:03]wFMCommunicate OK [10:34:03]requested_item fd.num is exist - process it [10:34:03]SAM_PROTO_GetFieldsCounters [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 13 00 00 [10:34:03]Write to MH i2c: E2 08 00 F2 84 80 13 00 00 00 00 00 00 F2 [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 62 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 62 00 F2 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EB 02 00 0E 04 04 00 1C 02 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 8C [10:34:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EB 02 00 0E 04 04 00 1C 02 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:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_GetFieldsCounters done [10:34:04]requested_item shift.num is exist - process it [10:34:04]requested_item shift.opened is exist - process it [10:34:04]req_shift_opened [10:34:04]FM_GetShiftState [10:34:04]SAM_PROTO_GetShiftState [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 13 01 00 [10:34:04]Write to MH i2c: E2 08 00 F3 84 80 13 01 00 00 00 00 00 F4 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0E 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0E 00 F3 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B7 [10:34:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_GetShiftState done [10:34:04]FM_GetShiftState done [10:34:04]req_shift_opened done [10:34:04]requested_item shift.open_date is exist - process it [10:34:04]req_shift_open_date [10:34:04]req_shift_open_date done [10:34:04]produce_requested_data done [10:34:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191344,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:34:04]process_action_free close_receipt [10:34:04]json_value_free [10:34:04]json_value_free done [10:34:04]process_json_proto returns [10:34:04]Send response to host [10:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191344,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:34:04]free response buf [10:34:04]execute_script done [10:34:04]execute_script returns [10:34:04]free content buf [10:34:04]Sock 9.Close socket [10:34:04]Sock 9.Thread stoped [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:40]accept exits with 10 [10:34:40]New connection [10:34:40]New thread 3066817892 created [10:34:40]Thread 3066961252 joined [10:34:40]Waiting for new connection... [10:34:40] Sock 10.Parse request [10:34:40]Sock 10.Check first char [10:34:40]Sock 10.First char is OK [10:34:40]request: POST /json_proto HTTP/1.0 [10:34:40]Method: POST [10:34:40]URL: /json_proto [10:34:40]Method is POST - this is cgi request [10:34:40]url: /json_proto [10:34:40]query_string will be loaded in cgi processing [10:34:40]execute_cgi json_proto POST (null) [10:34:40]execute_cgi path=json_proto method=POST [10:34:40]POST find Content-Length [10:34:40]Host: 172.17.63.131:8080 [10:34:40]Content-Length: 681 [10:34:40]Content-Type: application/json [10:34:40] [10:34:40]POST finish read [10:34:40]Found Content-Length = 681 [10:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:40]execute_script... [10:34: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)30638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:40]POST & json_proto [10:34:40]process_json_proto [10:34:40]json parsed OK: [10:34:40]protocol is kg_v1.0 [10:34:40]action value=close_receipt [10:34:40]process_action close_receipt [10:34:40]cmd_close_receipt [10:34:40]MH_GetDate [10:34:40]Write to MH i2c: F0 00 00 F4 84 67 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 09 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 09 00 F4 84 00 49 74 1B 67 22 05 6E 64 A8 [10:34:40]GetLastDocTimeStamp 1729852448 [10:34:40]current date 1729852489 [10:34:40]FM_GetShiftState [10:34:40]SAM_PROTO_GetShiftState [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 13 01 00 [10:34:40]Write to MH i2c: E2 08 00 F5 84 80 13 01 00 00 00 00 00 F6 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 F5 84 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B9 [10:34:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_GetShiftState done [10:34:40]FM_GetShiftState done [10:34:40]opened in 1729816399 [10:34:40]opened+sec_in_day 1729902799 [10:34:40]quantity*price = 100015 [10:34:40]sum+1 = 100017 [10:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 84 25.10.2024 10:34 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191345 ФПД: 194991608281783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191345&fm=194991608281783&tin=02508201610067®Number=0000000000091776&sum=100000 [10:34:42]StoreToDocumentArchive [10:34:42]shift 540 fd 191345 [10:34:42]save to /storage/0540/doc_00191345 [10:34:42]save last doc name /storage/0540/doc_00191345 to /storage/kkm_last_doc_name [10:34:42]save OK [10:34:42]Clear old archive folders... [10:34:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:42]tlvbuf is 01600F30 [10:34:42]SAM_PROTO_ClearQueue [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 09 00 00 [10:34:42]Write to MH i2c: E2 08 00 02 85 80 09 00 00 00 00 00 00 F9 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 02 85 00 90 00 FB [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]SAM_PROTO_ClearQueue done [10:34:42]KKMCreateOFDPacket [10:34:42]OFDProtocolAddRootSTLVToBuf [10:34:42]FM_MakeSignedData [10:34:42]FM_MakeSignedData [10:34:42]SAM_PROTO_SignData [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 01 02 [10:34:42]Write to MH i2c: E2 08 00 03 85 80 0D 01 02 00 00 00 00 01 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 03 85 00 90 00 FC [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=255 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 49 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EB 02 00 35 04 06 00 B1 [10:34:42]Write to MH i2c: E2 02 01 04 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 49 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EB 02 00 35 04 06 00 B1 00 00 4F [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 04 85 00 90 00 FD [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=10 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 02 02 05 58 05 8B BA B7 [10:34:42]Write to MH i2c: E2 0D 00 05 85 80 0D 02 02 05 00 58 05 8B BA B7 00 00 67 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 05 85 00 90 00 FE [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 03 02 [10:34:42]Write to MH i2c: E2 08 00 06 85 80 0D 03 02 00 00 00 00 06 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 0B 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 0B 00 06 85 00 A8 65 F9 CC E6 3E D1 22 90 00 F0 [10:34:42]RAPDU: A8 65 F9 CC E6 3E D1 22 90 00 [10:34:42]wFMCommunicate OK [10:34:42]SAM_PROTO_SignData done [10:34:42]FM_MakeSignedData done [10:34:42]CreateOFDProtocolMessage [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 11 00 00 [10:34:42]Write to MH i2c: E2 08 00 07 85 80 11 00 00 00 00 00 00 06 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 07 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [10:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:42]wFMCommunicate OK [10:34:42]CreateOFDProtocolMessage done [10:34:42]OFDSenderStorePacket 191345 [10:34:42]StoreOFDPacket docnum=191345 [10:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9E 6F 07 01 3A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 49 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EB 02 00 35 04 06 00 B1 58 05 8B BA B7 A8 65 F9 CC E6 3E D1 22 [10:34:42]CheckFolder [10:34:42]dirname=/storage/ofd_packets [10:34:42]CheckFolder done [10:34:42]ProducePacketName [10:34:42]name=ofd_packets/00191345 [10:34:42]NVStorageSaveData ofd_packets/00191345 [10:34:42]File name is /storage/ofd_packets/00191345 [10:34:42]Write 301 bytes [10:34:42]NVStorageSaveData done [10:34:42]OFDSenderStorePacket done [10:34:42]KKMCreateOFDPacket done [10:34:42]NVStorageSaveData kkm_last_timestamp [10:34:42]File name is /storage/kkm_last_timestamp [10:34:42]Write 4 bytes [10:34:42]NVStorageSaveData done [10:34:42]ExternCall_PrintAddStr [10:34:42]wPrintStart [10:34:42]Write to MH i2c: 01 00 00 08 85 8D [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 08 85 00 00 00 00 00 FF 0F A2 [10:34:42]RasterBufferAndPrint [10:34:42]line Счет N : (1)30638 [10:34:42]line ИНН: 02508201610067 [10:34:42]line Контрольно-Кассовый Чек [10:34:42]line ПРОДАЖА [10:34:42]line ТРК (МРК, ГНК) : 12 [10:34:42]line Товар: 2710124130 [10:34:42]line Аи-92-К-5 [10:34:42]line 14.950 * 66.90 [10:34:42]line = 1000.16 [10:34:42]line НДС 12% НСП 1% [10:34:42]line > о реализуемом товаре [10:34:42]line ОКРУГЛЕНИЕ: -0.16 [10:34:42]line ИТОГО: 1000.00 [10:34:42]line Внесено: 1000.00 [10:34:42]line СДАЧА: 0.00 [10:34:42]line НСП 1% : 8.85 [10:34:42]line НДС 12% : 106.21 [10:34:42]line Наличными: 1000.00 [10:34:42]line Безнал.: 0.00 [10:34:42]line Место: АЗС № 170 "Партнер Нефть" [10:34:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:34:42]line СНО: Общий режим [10:34:42]line Чек 84 25.10.2024 10:34 [10:34:42]line Смена: 540 ФФД: 1.0 [10:34:42]line ЗНМ: 0300000110 [10:34:42]line РНМ: 0000000000091776 [10:34:42]line Версия ККМ: 001 [10:34:42]line ФМ: 0000000000871754 [10:34:42]line ФД: 191345 [10:34:42]line ФПД: 194991608281783 [10:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191345&fm=194991608281783&tin=02508201610067®Number=0000000000091776&sum=100000 [10:34:42]OFD Sender: Processing packet 191345 [packets to send 75, broken 74] [10:34:42]ProducePacketName [10:34:42]name=ofd_packets/00191345 [10:34:42]OFD Sender: To server: pG, [10:34:42]CommunicateWithHost lk.salyk.kg:30040 [10:34:42]ConnectInit lk.salyk.kg [10:34:42]written 0, free lines is 4095 [10:34:43]Connected sock=9 [10:34:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9E 6F 07 01 3A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 49 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EB 02 00 35 04 06 00 B1 58 05 8B BA B7 A8 65 F9 CC E6 3E D1 22 [10:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2C F0 47 00 E7 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EB 02 00 F4 03 04 00 18 19 1B 67 B6 04 01 00 00 7D AC F1 9A 5F 81 AB CC [10:34:43]CommunicateWithHost err = 0 [10:34:43]CheckOFDResponse [10:34:43]1017 (14) - 77093643461234 [10:34:43]1041 (16) - 0000000000871754 [10:34:43]1040 (4) - 191345 [10:34:43]1012 (4) - 25.10.2024 04:05 [10:34:43]1206 (1) - 0 [10:34:43]OFD Sender: Remove packet 191345 [10:34:43]ProducePacketName [10:34:43]name=ofd_packets/00191345 [10:34:43]NVStorageDeleteData [10:34:43]Write to MH i2c: 01 00 00 33 85 B8 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 07 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 07 00 33 85 00 00 00 00 00 AB 0C 76 [10:34:43]RasterBufferAndPrint [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]written 0, free lines is 3249 [10:34:43]MH_Cut [10:34:43]Write to MH i2c: D1 01 00 3A 85 01 91 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 01 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 01 00 3A 85 00 90 [10:34:43]Write to MH i2c: 01 00 00 3B 85 C0 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]OFD Sender: No OFD packet to send [10:34:44]*** Cut start [10:34:44]*** Partial cut [10:34:44]*** CUTSNS_PIN = 1 [10:34:44]*** CUTSNS_PIN = 0 [10:34:44]*** Brake cut motor [10:34:44]Read from MH i2c: 01 [10:34:44]MH_I2C_Read... [10:34:44]*** Stop cut motor [10:34:44]*** Cut end [10:34:44]Read from MH i2c: 01 07 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: 01 07 00 3B 85 00 00 00 00 00 FF 0F D5 [10:34:44]process_action close_receipt done [10:34:44]requested_data is exist [10:34:44]produce_requested_data [10:34:44]requested_item fm.sn is exist - process it [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 11 00 00 [10:34:44]Write to MH i2c: E2 08 00 3C 85 80 11 00 00 00 00 00 00 3B [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 17 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 17 00 3C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [10:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:44]wFMCommunicate OK [10:34:44]requested_item fd.num is exist - process it [10:34:44]SAM_PROTO_GetFieldsCounters [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 13 00 00 [10:34:44]Write to MH i2c: E2 08 00 3D 85 80 13 00 00 00 00 00 00 3E [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 3D 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EB 02 00 0E 04 04 00 1C 02 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 DC [10:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EB 02 00 0E 04 04 00 1C 02 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:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetFieldsCounters done [10:34:45]requested_item shift.num is exist - process it [10:34:45]requested_item shift.opened is exist - process it [10:34:45]req_shift_opened [10:34:45]FM_GetShiftState [10:34:45]SAM_PROTO_GetShiftState [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 13 01 00 [10:34:45]Write to MH i2c: E2 08 00 3E 85 80 13 01 00 00 00 00 00 40 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 3E 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 03 [10:34:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetShiftState done [10:34:45]FM_GetShiftState done [10:34:45]req_shift_opened done [10:34:45]requested_item shift.open_date is exist - process it [10:34:45]req_shift_open_date [10:34:45]req_shift_open_date done [10:34:45]produce_requested_data done [10:34:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191345,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:34:45]process_action_free close_receipt [10:34:45]json_value_free [10:34:45]json_value_free done [10:34:45]process_json_proto returns [10:34:45]Send response to host [10:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191345,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:34:45]free response buf [10:34:45]execute_script done [10:34:45]execute_script returns [10:34:45]free content buf [10:34:45]Sock 10.Close socket [10:34:45]Sock 10.Thread stoped [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:29]accept exits with 8 [10:36:29]New connection [10:36:29]New thread 3066961252 created [10:36:29]Thread 3066817892 joined [10:36:29]Waiting for new connection... [10:36:29] Sock 8.Parse request [10:36:29]Sock 8.Check first char [10:36:29]Sock 8.First char is OK [10:36:29]request: POST /json_proto HTTP/1.0 [10:36:29]Method: POST [10:36:29]URL: /json_proto [10:36:29]Method is POST - this is cgi request [10:36:29]url: /json_proto [10:36:29]query_string will be loaded in cgi processing [10:36:29]execute_cgi json_proto POST (null) [10:36:29]execute_cgi path=json_proto method=POST [10:36:29]POST find Content-Length [10:36:29]Host: 172.17.63.131:8080 [10:36:29]Content-Length: 676 [10:36:29]Content-Type: application/json [10:36:29] [10:36:29]POST finish read [10:36:29]Found Content-Length = 676 [10:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:29]execute_script... [10:36: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)30640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:29]POST & json_proto [10:36:29]process_json_proto [10:36:29]json parsed OK: [10:36:29]protocol is kg_v1.0 [10:36:29]action value=close_receipt [10:36:29]process_action close_receipt [10:36:29]cmd_close_receipt [10:36:29]MH_GetDate [10:36:29]Write to MH i2c: F0 00 00 3F 85 B3 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 09 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: F0 09 00 3F 85 00 B5 74 1B 67 22 05 6E 64 60 [10:36:29]GetLastDocTimeStamp 1729852489 [10:36:29]current date 1729852597 [10:36:29]FM_GetShiftState [10:36:29]SAM_PROTO_GetShiftState [10:36:29]wFMCommunicate request_size=4 [10:36:29]MH_SAM_APDU [10:36:29]CAPDU: 80 13 01 00 [10:36:29]Write to MH i2c: E2 08 00 40 85 80 13 01 00 00 00 00 00 42 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:29]Read from MH i2c: E2 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 40 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [10:36:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:36:29]wFMCommunicate OK [10:36:29]SAM_PROTO_GetShiftState done [10:36:29]FM_GetShiftState done [10:36:29]opened in 1729816399 [10:36:29]opened+sec_in_day 1729902799 [10:36:29]quantity*price = 30038 [10:36:29]sum+1 = 30039 [10:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 85 25.10.2024 10:36 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191346 ФПД: 162011265219757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103637&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191346&fm=162011265219757&tin=02508201610067®Number=0000000000091776&sum=30000 [10:36:30]StoreToDocumentArchive [10:36:30]shift 540 fd 191346 [10:36:30]save to /storage/0540/doc_00191346 [10:36:30]save last doc name /storage/0540/doc_00191346 to /storage/kkm_last_doc_name [10:36:30]save OK [10:36:30]Clear old archive folders... [10:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:30]tlvbuf is 0183C5D0 [10:36:30]SAM_PROTO_ClearQueue [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 09 00 00 [10:36:30]Write to MH i2c: E2 08 00 4D 85 80 09 00 00 00 00 00 00 44 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 4D 85 00 90 00 46 [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_ClearQueue done [10:36:30]KKMCreateOFDPacket [10:36:30]OFDProtocolAddRootSTLVToBuf [10:36:30]FM_MakeSignedData [10:36:30]FM_MakeSignedData [10:36:30]SAM_PROTO_SignData [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 01 02 [10:36:30]Write to MH i2c: E2 08 00 4E 85 80 0D 01 02 00 00 00 00 4C [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 4E 85 00 90 00 47 [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=255 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EB 02 00 35 04 06 00 93 [10:36:30]Write to MH i2c: E2 02 01 4F 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EB 02 00 35 04 06 00 93 00 00 E4 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 4F 85 00 90 00 48 [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=10 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 02 02 05 59 2F E9 BC AD [10:36:30]Write to MH i2c: E2 0D 00 50 85 80 0D 02 02 05 00 59 2F E9 BC AD 00 00 33 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 03 00 50 85 00 90 00 49 [10:36:30]RAPDU: 90 00 [10:36:30]wFMCommunicate OK [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 0D 03 02 [10:36:30]Write to MH i2c: E2 08 00 51 85 80 0D 03 02 00 00 00 00 51 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0B 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0B 00 51 85 00 ED D1 3F 84 A7 A3 69 94 90 00 1A [10:36:30]RAPDU: ED D1 3F 84 A7 A3 69 94 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_SignData done [10:36:30]FM_MakeSignedData done [10:36:30]CreateOFDProtocolMessage [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 11 00 00 [10:36:30]Write to MH i2c: E2 08 00 52 85 80 11 00 00 00 00 00 00 51 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 17 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 17 00 52 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [10:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:30]wFMCommunicate OK [10:36:30]CreateOFDProtocolMessage done [10:36:30]OFDSenderStorePacket 191346 [10:36:30]StoreOFDPacket docnum=191346 [10:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B F2 07 01 02 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EB 02 00 35 04 06 00 93 59 2F E9 BC AD ED D1 3F 84 A7 A3 69 94 [10:36:30]CheckFolder [10:36:30]dirname=/storage/ofd_packets [10:36:30]CheckFolder done [10:36:30]ProducePacketName [10:36:30]name=ofd_packets/00191346 [10:36:30]NVStorageSaveData ofd_packets/00191346 [10:36:30]File name is /storage/ofd_packets/00191346 [10:36:30]Write 301 bytes [10:36:30]NVStorageSaveData done [10:36:30]OFDSenderStorePacket done [10:36:30]KKMCreateOFDPacket done [10:36:30]NVStorageSaveData kkm_last_timestamp [10:36:30]File name is /storage/kkm_last_timestamp [10:36:30]Write 4 bytes [10:36:30]NVStorageSaveData done [10:36:30]ExternCall_PrintAddStr [10:36:30]wPrintStart [10:36:30]Write to MH i2c: 01 00 00 53 85 D8 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 07 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 07 00 53 85 00 00 00 00 00 FF 0F ED [10:36:30]RasterBufferAndPrint [10:36:30]line Счет N : (1)30640 [10:36:30]line ИНН: 02508201610067 [10:36:30]line Контрольно-Кассовый Чек [10:36:30]line ПРОДАЖА [10:36:30]line ТРК (МРК, ГНК) : 21 [10:36:30]line Товар: 2710124130 [10:36:30]line Аи-92-К-5 [10:36:30]line 4.490 * 66.90 [10:36:30]line = 300.38 [10:36:30]line НДС 12% НСП 1% [10:36:30]line > о реализуемом товаре [10:36:30]line ОКРУГЛЕНИЕ: -0.38 [10:36:30]line ИТОГО: 300.00 [10:36:30]line Внесено: 300.00 [10:36:30]line СДАЧА: 0.00 [10:36:30]line НСП 1% : 2.66 [10:36:30]line НДС 12% : 31.90 [10:36:30]line Наличными: 300.00 [10:36:30]line Безнал.: 0.00 [10:36:30]line Место: АЗС № 170 "Партнер Нефть" [10:36:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:36:30]line СНО: Общий режим [10:36:30]line Чек 85 25.10.2024 10:36 [10:36:30]line Смена: 540 ФФД: 1.0 [10:36:30]line ЗНМ: 0300000110 [10:36:30]line РНМ: 0000000000091776 [10:36:30]line Версия ККМ: 001 [10:36:30]line ФМ: 0000000000871754 [10:36:30]line ФД: 191346 [10:36:30]line ФПД: 162011265219757 [10:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103637&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191346&fm=162011265219757&tin=02508201610067®Number=0000000000091776&sum=30000 [10:36:31]OFD Sender: Processing packet 191346 [packets to send 75, broken 74] [10:36:31]ProducePacketName [10:36:31]name=ofd_packets/00191346 [10:36:31]OFD Sender: To server: pG, [10:36:31]CommunicateWithHost lk.salyk.kg:30040 [10:36:31]ConnectInit lk.salyk.kg [10:36:31]written 0, free lines is 4095 [10:36:31]Connected sock=10 [10:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B F2 07 01 02 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EB 02 00 35 04 06 00 93 59 2F E9 BC AD ED D1 3F 84 A7 A3 69 94 [10:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F 76 47 00 DF 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EB 02 00 F4 03 04 00 84 19 1B 67 B6 04 01 00 00 D6 29 23 19 FC D8 66 60 [10:36:31]CommunicateWithHost err = 0 [10:36:31]CheckOFDResponse [10:36:31]1017 (14) - 77093643461234 [10:36:31]1041 (16) - 0000000000871754 [10:36:31]1040 (4) - 191346 [10:36:31]1012 (4) - 25.10.2024 04:07 [10:36:31]1206 (1) - 0 [10:36:31]OFD Sender: Remove packet 191346 [10:36:31]ProducePacketName [10:36:31]name=ofd_packets/00191346 [10:36:31]NVStorageDeleteData [10:36:31]Write to MH i2c: 01 00 00 7E 85 03 [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: 01 07 00 7E 85 00 00 00 00 00 AD 0C C3 [10:36:31]RasterBufferAndPrint [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]line [10:36:31]written 0, free lines is 3251 [10:36:31]MH_Cut [10:36:31]Write to MH i2c: D1 01 00 85 85 01 DC [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 01 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: D1 01 00 85 85 00 DB [10:36:31]Write to MH i2c: 01 00 00 86 85 0B [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]OFD Sender: No OFD packet to send [10:36:32]*** Cut start [10:36:32]*** Partial cut [10:36:32]*** CUTSNS_PIN = 1 [10:36:32]*** CUTSNS_PIN = 0 [10:36:32]*** Brake cut motor [10:36:32]Read from MH i2c: 01 [10:36:33]MH_I2C_Read... [10:36:33]*** Stop cut motor [10:36:33]*** Cut end [10:36:33]Read from MH i2c: 01 07 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 86 85 00 00 00 00 00 FF 0F 20 [10:36:33]process_action close_receipt done [10:36:33]requested_data is exist [10:36:33]produce_requested_data [10:36:33]requested_item fm.sn is exist - process it [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 11 00 00 [10:36:33]Write to MH i2c: E2 08 00 87 85 80 11 00 00 00 00 00 00 86 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 87 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [10:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:33]wFMCommunicate OK [10:36:33]requested_item fd.num is exist - process it [10:36:33]SAM_PROTO_GetFieldsCounters [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 00 00 [10:36:33]Write to MH i2c: E2 08 00 88 85 80 13 00 00 00 00 00 00 89 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 62 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 62 00 88 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EB 02 00 0E 04 04 00 1C 02 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 2B [10:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_GetFieldsCounters done [10:36:33]requested_item shift.num is exist - process it [10:36:33]requested_item shift.opened is exist - process it [10:36:33]req_shift_opened [10:36:33]FM_GetShiftState [10:36:33]SAM_PROTO_GetShiftState [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 01 00 [10:36:33]Write to MH i2c: E2 08 00 89 85 80 13 01 00 00 00 00 00 8B [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 89 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4E [10:36:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_GetShiftState done [10:36:33]FM_GetShiftState done [10:36:33]req_shift_opened done [10:36:33]requested_item shift.open_date is exist - process it [10:36:33]req_shift_open_date [10:36:33]req_shift_open_date done [10:36:33]produce_requested_data done [10:36:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191346,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:36:33]process_action_free close_receipt [10:36:33]json_value_free [10:36:33]json_value_free done [10:36:33]process_json_proto returns [10:36:33]Send response to host [10:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191346,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:36:33]free response buf [10:36:33]execute_script done [10:36:33]execute_script returns [10:36:33]free content buf [10:36:33]Sock 8.Close socket [10:36:33]Sock 8.Thread stoped [10:36:33]accept exits with 9 [10:36:33]New connection [10:36:33]New thread 3066817892 created [10:36:33]Thread 3066961252 joined [10:36:33]Waiting for new connection... [10:36:33] Sock 9.Parse request [10:36:33]Sock 9.Check first char [10:36:33]Sock 9.First char is OK [10:36:33]request: POST /json_proto HTTP/1.0 [10:36:33]Method: POST [10:36:33]URL: /json_proto [10:36:33]Method is POST - this is cgi request [10:36:33]url: /json_proto [10:36:33]query_string will be loaded in cgi processing [10:36:33]execute_cgi json_proto POST (null) [10:36:33]execute_cgi path=json_proto method=POST [10:36:33]POST find Content-Length [10:36:33]Host: 172.17.63.131:8080 [10:36:33]Content-Length: 678 [10:36:33]Content-Type: application/json [10:36:33] [10:36:33]POST finish read [10:36:33]Found Content-Length = 678 [10:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:36:33]execute_script... [10:36: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)30639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:36:33]POST & json_proto [10:36:33]process_json_proto [10:36:33]json parsed OK: [10:36:33]protocol is kg_v1.0 [10:36:33]action value=close_receipt [10:36:33]process_action close_receipt [10:36:33]cmd_close_receipt [10:36:33]MH_GetDate [10:36:33]Write to MH i2c: F0 00 00 8A 85 FE [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: F0 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: F0 09 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: F0 09 00 8A 85 00 BA 74 1B 67 22 05 6E 64 B0 [10:36:33]GetLastDocTimeStamp 1729852597 [10:36:33]current date 1729852602 [10:36:33]FM_GetShiftState [10:36:33]SAM_PROTO_GetShiftState [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 13 01 00 [10:36:33]Write to MH i2c: E2 08 00 8B 85 80 13 01 00 00 00 00 00 8D [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0E 00 8B 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 50 [10:36:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_GetShiftState done [10:36:33]FM_GetShiftState done [10:36:33]opened in 1729816399 [10:36:33]opened+sec_in_day 1729902799 [10:36:33]quantity*price = 100050 [10:36:33]sum+1 = 100052 [10:36:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 86 25.10.2024 10:36 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191347 ФПД: 21302232236333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191347&fm=21302232236333&tin=02508201610067®Number=0000000000091776&sum=100000 [10:36:35]StoreToDocumentArchive [10:36:35]shift 540 fd 191347 [10:36:35]save to /storage/0540/doc_00191347 [10:36:35]save last doc name /storage/0540/doc_00191347 to /storage/kkm_last_doc_name [10:36:35]save OK [10:36:35]Clear old archive folders... [10:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:36:35]tlvbuf is 01692FD0 [10:36:35]SAM_PROTO_ClearQueue [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 09 00 00 [10:36:35]Write to MH i2c: E2 08 00 98 85 80 09 00 00 00 00 00 00 8F [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 98 85 00 90 00 91 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]SAM_PROTO_ClearQueue done [10:36:35]KKMCreateOFDPacket [10:36:35]OFDProtocolAddRootSTLVToBuf [10:36:35]FM_MakeSignedData [10:36:35]FM_MakeSignedData [10:36:35]SAM_PROTO_SignData [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 01 02 [10:36:35]Write to MH i2c: E2 08 00 99 85 80 0D 01 02 00 00 00 00 97 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 99 85 00 90 00 92 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=255 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 BA 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EB 02 00 35 04 06 00 13 5F CF FC [10:36:35]Write to MH i2c: E2 02 01 9A 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 BA 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EB 02 00 35 04 06 00 13 5F CF FC 00 00 E2 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 9A 85 00 90 00 93 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=7 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 02 02 02 41 2D [10:36:35]Write to MH i2c: E2 0A 00 9B 85 80 0D 02 02 02 00 41 2D 00 00 0C [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 9B 85 00 90 00 94 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 03 02 [10:36:35]Write to MH i2c: E2 08 00 9C 85 80 0D 03 02 00 00 00 00 9C [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 0B 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 0B 00 9C 85 00 00 02 DD 89 C0 5B B1 E2 90 00 B3 [10:36:35]RAPDU: 00 02 DD 89 C0 5B B1 E2 90 00 [10:36:35]wFMCommunicate OK [10:36:35]SAM_PROTO_SignData done [10:36:35]FM_MakeSignedData done [10:36:35]CreateOFDProtocolMessage [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 11 00 00 [10:36:35]Write to MH i2c: E2 08 00 9D 85 80 11 00 00 00 00 00 00 9C [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 17 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 17 00 9D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [10:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:35]wFMCommunicate OK [10:36:35]CreateOFDProtocolMessage done [10:36:35]OFDSenderStorePacket 191347 [10:36:35]StoreOFDPacket docnum=191347 [10:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 81 4F 04 01 20 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 BA 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EB 02 00 35 04 06 00 13 5F CF FC 41 2D 00 02 DD 89 C0 5B B1 E2 [10:36:35]CheckFolder [10:36:35]dirname=/storage/ofd_packets [10:36:35]CheckFolder done [10:36:35]ProducePacketName [10:36:35]name=ofd_packets/00191347 [10:36:35]NVStorageSaveData ofd_packets/00191347 [10:36:35]File name is /storage/ofd_packets/00191347 [10:36:35]Write 298 bytes [10:36:35]NVStorageSaveData done [10:36:35]OFDSenderStorePacket done [10:36:35]KKMCreateOFDPacket done [10:36:35]NVStorageSaveData kkm_last_timestamp [10:36:35]File name is /storage/kkm_last_timestamp [10:36:35]Write 4 bytes [10:36:35]NVStorageSaveData done [10:36:35]ExternCall_PrintAddStr [10:36:35]wPrintStart [10:36:35]Write to MH i2c: 01 00 00 9E 85 23 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 07 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 07 00 9E 85 00 00 00 00 00 FF 0F 38 [10:36:35]RasterBufferAndPrint [10:36:35]line Счет N : (1)30639 [10:36:35]line ИНН: 02508201610067 [10:36:35]line Контрольно-Кассовый Чек [10:36:35]line ПРОДАЖА [10:36:35]line ТРК (МРК, ГНК) : 11 [10:36:35]line Товар: 2710194210 [10:36:35]line ДТ-К-5 [10:36:35]line 13.130 * 76.20 [10:36:35]line = 1000.51 [10:36:35]line НДС 12% НСП 1% [10:36:35]line > о реализуемом товаре [10:36:35]line ОКРУГЛЕНИЕ: -0.51 [10:36:35]line ИТОГО: 1000.00 [10:36:35]line Внесено: 1000.00 [10:36:35]line СДАЧА: 0.00 [10:36:35]line НСП 1% : 8.85 [10:36:35]line НДС 12% : 106.25 [10:36:35]line Наличными: 1000.00 [10:36:35]line Безнал.: 0.00 [10:36:35]line Место: АЗС № 170 "Партнер Нефть" [10:36:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:36:35]line СНО: Общий режим [10:36:35]line Чек 86 25.10.2024 10:36 [10:36:35]line Смена: 540 ФФД: 1.0 [10:36:35]line ЗНМ: 0300000110 [10:36:35]line РНМ: 0000000000091776 [10:36:35]line Версия ККМ: 001 [10:36:35]line ФМ: 0000000000871754 [10:36:35]line ФД: 191347 [10:36:35]line ФПД: 21302232236333 [10:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191347&fm=21302232236333&tin=02508201610067®Number=0000000000091776&sum=100000 [10:36:35]written 0, free lines is 4095 [10:36:35]OFD Sender: Processing packet 191347 [packets to send 75, broken 74] [10:36:35]ProducePacketName [10:36:35]name=ofd_packets/00191347 [10:36:35]OFD Sender: To server: pG, [10:36:35]CommunicateWithHost lk.salyk.kg:30040 [10:36:35]ConnectInit lk.salyk.kg [10:36:36]Connected sock=8 [10:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 81 4F 04 01 20 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 BA 74 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EB 02 00 35 04 06 00 13 5F CF FC 41 2D 00 02 DD 89 C0 5B B1 E2 [10:36:36]Write to MH i2c: 01 00 00 C9 85 4E [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 C9 85 00 00 00 00 00 AD 0C 0E [10:36:36]RasterBufferAndPrint [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]written 0, free lines is 3258 [10:36:36]MH_Cut [10:36:36]Write to MH i2c: D1 01 00 D0 85 01 27 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 01 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 01 00 D0 85 00 26 [10:36:36]Write to MH i2c: 01 00 00 D1 85 56 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 05 47 00 3F CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EB 02 00 F4 03 04 00 89 19 1B 67 B6 04 01 00 00 93 28 3C C8 BD C4 C4 27 [10:36:36]CommunicateWithHost err = 0 [10:36:36]CheckOFDResponse [10:36:36]1017 (14) - 77093643461234 [10:36:36]1041 (16) - 0000000000871754 [10:36:36]1040 (4) - 191347 [10:36:36]1012 (4) - 25.10.2024 04:07 [10:36:36]1206 (1) - 0 [10:36:36]OFD Sender: Remove packet 191347 [10:36:36]ProducePacketName [10:36:36]name=ofd_packets/00191347 [10:36:36]NVStorageDeleteData [10:36:36]OFD Sender: No OFD packet to send [10:36:37]*** Cut start [10:36:37]*** Partial cut [10:36:37]*** CUTSNS_PIN = 1 [10:36:37]*** CUTSNS_PIN = 0 [10:36:37]*** Brake cut motor [10:36:37]Read from MH i2c: 01 [10:36:37]MH_I2C_Read... [10:36:37]*** Stop cut motor [10:36:37]*** Cut end [10:36:37]Read from MH i2c: 01 07 00 [10:36:37]MH_I2C_Read... [10:36:37]Read from MH i2c: 01 07 00 D1 85 00 00 00 00 00 FF 0F 6B [10:36:37]process_action close_receipt done [10:36:37]requested_data is exist [10:36:37]produce_requested_data [10:36:37]requested_item fm.sn is exist - process it [10:36:37]wFMCommunicate request_size=4 [10:36:37]MH_SAM_APDU [10:36:37]CAPDU: 80 11 00 00 [10:36:37]Write to MH i2c: E2 08 00 D2 85 80 11 00 00 00 00 00 00 D1 [10:36:37]Write i2c OK [10:36:37]MH_I2C_Read... [10:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:37]Read from MH i2c: E2 [10:36:37]MH_I2C_Read... [10:36:37]Read from MH i2c: E2 17 00 [10:36:37]MH_I2C_Read... [10:36:37]Read from MH i2c: E2 17 00 D2 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [10:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:37]wFMCommunicate OK [10:36:37]requested_item fd.num is exist - process it [10:36:37]SAM_PROTO_GetFieldsCounters [10:36:37]wFMCommunicate request_size=4 [10:36:37]MH_SAM_APDU [10:36:37]CAPDU: 80 13 00 00 [10:36:37]Write to MH i2c: E2 08 00 D3 85 80 13 00 00 00 00 00 00 D4 [10:36:37]Write i2c OK [10:36:37]MH_I2C_Read... [10:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:37]Read from MH i2c: E2 [10:36:37]MH_I2C_Read... [10:36:37]Read from MH i2c: E2 62 00 [10:36:37]MH_I2C_Read... [10:36:37]Read from MH i2c: E2 62 00 D3 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [10:36:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:38]wFMCommunicate OK [10:36:38]SAM_PROTO_GetFieldsCounters done [10:36:38]requested_item shift.num is exist - process it [10:36:38]requested_item shift.opened is exist - process it [10:36:38]req_shift_opened [10:36:38]FM_GetShiftState [10:36:38]SAM_PROTO_GetShiftState [10:36:38]wFMCommunicate request_size=4 [10:36:38]MH_SAM_APDU [10:36:38]CAPDU: 80 13 01 00 [10:36:38]Write to MH i2c: E2 08 00 D4 85 80 13 01 00 00 00 00 00 D6 [10:36:38]Write i2c OK [10:36:38]MH_I2C_Read... [10:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:38]Read from MH i2c: E2 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 0E 00 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 0E 00 D4 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 99 [10:36:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:36:38]wFMCommunicate OK [10:36:38]SAM_PROTO_GetShiftState done [10:36:38]FM_GetShiftState done [10:36:38]req_shift_opened done [10:36:38]requested_item shift.open_date is exist - process it [10:36:38]req_shift_open_date [10:36:38]req_shift_open_date done [10:36:38]produce_requested_data done [10:36:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191347,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:36:38]process_action_free close_receipt [10:36:38]json_value_free [10:36:38]json_value_free done [10:36:38]process_json_proto returns [10:36:38]Send response to host [10:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191347,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:36:38]free response buf [10:36:38]execute_script done [10:36:38]execute_script returns [10:36:38]free content buf [10:36:38]Sock 9.Close socket [10:36:38]Sock 9.Thread stoped [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:46]accept exits with 10 [10:39:46]New connection [10:39:46]New thread 3066961252 created [10:39:46]Thread 3066817892 joined [10:39:46]Waiting for new connection... [10:39:46] Sock 10.Parse request [10:39:46]Sock 10.Check first char [10:39:46]Sock 10.First char is OK [10:39:46]request: POST /json_proto HTTP/1.0 [10:39:46]Method: POST [10:39:46]URL: /json_proto [10:39:46]Method is POST - this is cgi request [10:39:46]url: /json_proto [10:39:46]query_string will be loaded in cgi processing [10:39:46]execute_cgi json_proto POST (null) [10:39:46]execute_cgi path=json_proto method=POST [10:39:46]POST find Content-Length [10:39:46]Host: 172.17.63.131:8080 [10:39:46]Content-Length: 983 [10:39:46]Content-Type: application/json [10:39:46] [10:39:46]POST finish read [10:39:46]Found Content-Length = 983 [10:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:46]execute_script... [10:39: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)30641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:46]POST & json_proto [10:39:46]process_json_proto [10:39:46]json parsed OK: [10:39:46]protocol is kg_v1.0 [10:39:46]action value=close_receipt [10:39:46]process_action close_receipt [10:39:46]cmd_close_receipt [10:39:46]MH_GetDate [10:39:46]Write to MH i2c: F0 00 00 D5 85 49 [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: F0 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: F0 09 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: F0 09 00 D5 85 00 7B 75 1B 67 22 05 6E 64 BD [10:39:46]GetLastDocTimeStamp 1729852602 [10:39:46]current date 1729852795 [10:39:46]FM_GetShiftState [10:39:46]SAM_PROTO_GetShiftState [10:39:46]wFMCommunicate request_size=4 [10:39:46]MH_SAM_APDU [10:39:46]CAPDU: 80 13 01 00 [10:39:46]Write to MH i2c: E2 08 00 D6 85 80 13 01 00 00 00 00 00 D8 [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:46]Read from MH i2c: E2 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 0E 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 0E 00 D6 85 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9B [10:39:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:39:46]wFMCommunicate OK [10:39:46]SAM_PROTO_GetShiftState done [10:39:46]FM_GetShiftState done [10:39:46]opened in 1729816399 [10:39:46]opened+sec_in_day 1729902799 [10:39:46]quantity*price = 150054 [10:39:46]sum+1 = 150055 [10:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 87 25.10.2024 10:39 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191348 ФПД: 173847417169930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191348&fm=173847417169930&tin=02508201610067®Number=0000000000091776&sum=150000 [10:39:47]StoreToDocumentArchive [10:39:47]shift 540 fd 191348 [10:39:47]save to /storage/0540/doc_00191348 [10:39:47]save last doc name /storage/0540/doc_00191348 to /storage/kkm_last_doc_name [10:39:47]save OK [10:39:47]Clear old archive folders... [10:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:47]tlvbuf is 01789AC0 [10:39:47]SAM_PROTO_ClearQueue [10:39:47]wFMCommunicate request_size=4 [10:39:47]MH_SAM_APDU [10:39:47]CAPDU: 80 09 00 00 [10:39:47]Write to MH i2c: E2 08 00 E3 85 80 09 00 00 00 00 00 00 DA [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 E3 85 00 90 00 DC [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_ClearQueue done [10:39:48]KKMCreateOFDPacket [10:39:48]OFDProtocolAddRootSTLVToBuf [10:39:48]FM_MakeSignedData [10:39:48]FM_MakeSignedData [10:39:48]SAM_PROTO_SignData [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 01 02 [10:39:48]Write to MH i2c: E2 08 00 E4 85 80 0D 01 02 00 00 00 00 E2 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 E4 85 00 90 00 DD [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=255 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7B 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EB 02 00 35 04 06 00 9E [10:39:48]Write to MH i2c: E2 02 01 E5 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7B 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EB 02 00 35 04 06 00 9E 00 00 92 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 E5 85 00 90 00 DE [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=10 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 02 02 05 1D 01 8B A8 0A [10:39:48]Write to MH i2c: E2 0D 00 E6 85 80 0D 02 02 05 00 1D 01 8B A8 0A 00 00 4A [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 E6 85 00 90 00 DF [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 03 02 [10:39:48]Write to MH i2c: E2 08 00 E7 85 80 0D 03 02 00 00 00 00 E7 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0B 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0B 00 E7 85 00 7C 09 78 30 75 0B 67 52 90 00 4E [10:39:48]RAPDU: 7C 09 78 30 75 0B 67 52 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_SignData done [10:39:48]FM_MakeSignedData done [10:39:48]CreateOFDProtocolMessage [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 11 00 00 [10:39:48]Write to MH i2c: E2 08 00 E8 85 80 11 00 00 00 00 00 00 E7 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 E8 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [10:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:39:48]wFMCommunicate OK [10:39:48]CreateOFDProtocolMessage done [10:39:48]OFDSenderStorePacket 191348 [10:39:48]StoreOFDPacket docnum=191348 [10:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 48 07 01 36 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 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7B 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EB 02 00 35 04 06 00 9E 1D 01 8B A8 0A 7C 09 78 30 75 0B 67 52 [10:39:48]CheckFolder [10:39:48]dirname=/storage/ofd_packets [10:39:48]CheckFolder done [10:39:48]ProducePacketName [10:39:48]name=ofd_packets/00191348 [10:39:48]NVStorageSaveData ofd_packets/00191348 [10:39:48]File name is /storage/ofd_packets/00191348 [10:39:48]Write 301 bytes [10:39:48]NVStorageSaveData done [10:39:48]OFDSenderStorePacket done [10:39:48]KKMCreateOFDPacket done [10:39:48]NVStorageSaveData kkm_last_timestamp [10:39:48]File name is /storage/kkm_last_timestamp [10:39:48]Write 4 bytes [10:39:48]NVStorageSaveData done [10:39:48]ExternCall_PrintAddStr [10:39:48]wPrintStart [10:39:48]Write to MH i2c: 01 00 00 E9 85 6E [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 07 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 07 00 E9 85 00 00 00 00 00 FF 0F 83 [10:39:48]RasterBufferAndPrint [10:39:48]line Счет N : (1)30641 [10:39:48]line ИНН: 02508201610067 [10:39:48]line Контрольно-Кассовый Чек [10:39:48]line ПРОДАЖА [10:39:48]line ТРК (МРК, ГНК) : 12 [10:39:48]line Товар: 2710124130 [10:39:48]line Аи-92-К-5 [10:39:48]line 22.770 * 65.90 [10:39:48]line = 1500.54 [10:39:48]line НДС 12% НСП 1% [10:39:48]line > о реализуемом товаре [10:39:48]line ОКРУГЛЕНИЕ: -0.54 [10:39:48]line ИТОГО: 1500.00 [10:39:48]line Внесено: 1500.00 [10:39:48]line СДАЧА: 0.00 [10:39:48]line НСП 1% : 13.28 [10:39:48]line НДС 12% : 159.35 [10:39:48]line Наличными: 1500.00 [10:39:48]line Безнал.: 0.00 [10:39:48]line Место: АЗС № 170 "Партнер Нефть" [10:39:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:39:48]line СНО: Общий режим [10:39:48]line Чек 87 25.10.2024 10:39 [10:39:48]line Смена: 540 ФФД: 1.0 [10:39:48]line ЗНМ: 0300000110 [10:39:48]line РНМ: 0000000000091776 [10:39:48]line Версия ККМ: 001 [10:39:48]line [10:39:48]line Дисконтная программа [10:39:48]line АИ-92 [10:39:48]line номер 170 [10:39:48]line сэкономлено 22.77 сом [10:39:48]line ФМ: 0000000000871754 [10:39:48]line ФД: 191348 [10:39:48]line ФПД: 173847417169930 [10:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T103955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191348&fm=173847417169930&tin=02508201610067®Number=0000000000091776&sum=150000 [10:39:48]OFD Sender: Processing packet 191348 [packets to send 75, broken 74] [10:39:48]ProducePacketName [10:39:48]name=ofd_packets/00191348 [10:39:48]OFD Sender: To server: pG, [10:39:48]CommunicateWithHost lk.salyk.kg:30040 [10:39:48]ConnectInit lk.salyk.kg [10:39:48]written 0, free lines is 4095 [10:39:48]Connected sock=9 [10:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 48 07 01 36 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 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 7B 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EB 02 00 35 04 06 00 9E 1D 01 8B A8 0A 7C 09 78 30 75 0B 67 52 [10:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 D3 47 00 7B D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EB 02 00 F4 03 04 00 4A 1A 1B 67 B6 04 01 00 00 D1 08 9B D6 7C A5 E8 55 [10:39:49]CommunicateWithHost err = 0 [10:39:49]CheckOFDResponse [10:39:49]1017 (14) - 77093643461234 [10:39:49]1041 (16) - 0000000000871754 [10:39:49]1040 (4) - 191348 [10:39:49]1012 (4) - 25.10.2024 04:10 [10:39:49]1206 (1) - 0 [10:39:49]OFD Sender: Remove packet 191348 [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00191348 [10:39:49]NVStorageDeleteData [10:39:49]Write to MH i2c: 01 00 00 19 86 9F [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 19 86 00 00 00 00 00 72 0C 24 [10:39:49]RasterBufferAndPrint [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]written 0, free lines is 3191 [10:39:49]MH_Cut [10:39:49]Write to MH i2c: D1 01 00 20 86 01 78 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 01 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 01 00 20 86 00 77 [10:39:49]Write to MH i2c: 01 00 00 21 86 A7 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]OFD Sender: No OFD packet to send [10:39:50]*** Cut start [10:39:50]*** Partial cut [10:39:50]*** CUTSNS_PIN = 1 [10:39:50]*** CUTSNS_PIN = 0 [10:39:50]*** Brake cut motor [10:39:50]Read from MH i2c: 01 [10:39:50]MH_I2C_Read... [10:39:50]*** Stop cut motor [10:39:50]*** Cut end [10:39:50]Read from MH i2c: 01 07 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: 01 07 00 21 86 00 00 00 00 00 FF 0F BC [10:39:50]process_action close_receipt done [10:39:50]requested_data is exist [10:39:50]produce_requested_data [10:39:50]requested_item fm.sn is exist - process it [10:39:50]wFMCommunicate request_size=4 [10:39:50]MH_SAM_APDU [10:39:50]CAPDU: 80 11 00 00 [10:39:50]Write to MH i2c: E2 08 00 22 86 80 11 00 00 00 00 00 00 22 [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 22 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [10:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:39:51]wFMCommunicate OK [10:39:51]requested_item fd.num is exist - process it [10:39:51]SAM_PROTO_GetFieldsCounters [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 13 00 00 [10:39:51]Write to MH i2c: E2 08 00 23 86 80 13 00 00 00 00 00 00 25 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 62 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 62 00 23 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EB 02 00 0E 04 04 00 1C 02 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 CF [10:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:51]wFMCommunicate OK [10:39:51]SAM_PROTO_GetFieldsCounters done [10:39:51]requested_item shift.num is exist - process it [10:39:51]requested_item shift.opened is exist - process it [10:39:51]req_shift_opened [10:39:51]FM_GetShiftState [10:39:51]SAM_PROTO_GetShiftState [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 13 01 00 [10:39:51]Write to MH i2c: E2 08 00 24 86 80 13 01 00 00 00 00 00 27 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 0E 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 0E 00 24 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EA [10:39:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:39:51]wFMCommunicate OK [10:39:51]SAM_PROTO_GetShiftState done [10:39:51]FM_GetShiftState done [10:39:51]req_shift_opened done [10:39:51]requested_item shift.open_date is exist - process it [10:39:51]req_shift_open_date [10:39:51]req_shift_open_date done [10:39:51]produce_requested_data done [10:39:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191348,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:39:51]process_action_free close_receipt [10:39:51]json_value_free [10:39:51]json_value_free done [10:39:51]process_json_proto returns [10:39:51]Send response to host [10:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191348,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:39:51]free response buf [10:39:51]execute_script done [10:39:51]execute_script returns [10:39:51]free content buf [10:39:51]Sock 10.Close socket [10:39:51]Sock 10.Thread stoped [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:19]accept exits with 8 [10:40:19]New connection [10:40:19]New thread 3066817892 created [10:40:19]Thread 3066961252 joined [10:40:19]Waiting for new connection... [10:40:19] Sock 8.Parse request [10:40:19]Sock 8.Check first char [10:40:19]Sock 8.First char is OK [10:40:19]request: POST /json_proto HTTP/1.0 [10:40:19]Method: POST [10:40:19]URL: /json_proto [10:40:19]Method is POST - this is cgi request [10:40:19]url: /json_proto [10:40:19]query_string will be loaded in cgi processing [10:40:19]execute_cgi json_proto POST (null) [10:40:19]execute_cgi path=json_proto method=POST [10:40:19]POST find Content-Length [10:40:19]Host: 172.17.63.131:8080 [10:40:19]Content-Length: 678 [10:40:19]Content-Type: application/json [10:40:19] [10:40:19]POST finish read [10:40:19]Found Content-Length = 678 [10:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:40:19]execute_script... [10:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:40:19]POST & json_proto [10:40:19]process_json_proto [10:40:19]json parsed OK: [10:40:19]protocol is kg_v1.0 [10:40:19]action value=close_receipt [10:40:19]process_action close_receipt [10:40:19]cmd_close_receipt [10:40:19]MH_GetDate [10:40:19]Write to MH i2c: F0 00 00 25 86 9A [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 25 86 00 9C 75 1B 67 22 05 6E 64 2F [10:40:19]GetLastDocTimeStamp 1729852795 [10:40:19]current date 1729852828 [10:40:19]FM_GetShiftState [10:40:19]SAM_PROTO_GetShiftState [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 13 01 00 [10:40:19]Write to MH i2c: E2 08 00 26 86 80 13 01 00 00 00 00 00 29 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 26 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EC [10:40:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_GetShiftState done [10:40:19]FM_GetShiftState done [10:40:19]opened in 1729816399 [10:40:19]opened+sec_in_day 1729902799 [10:40:19]quantity*price = 100050 [10:40:19]sum+1 = 100052 [10:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 88 25.10.2024 10:40 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191349 ФПД: 122430344115156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191349&fm=122430344115156&tin=02508201610067®Number=0000000000091776&sum=100000 [10:40:20]StoreToDocumentArchive [10:40:20]shift 540 fd 191349 [10:40:20]save to /storage/0540/doc_00191349 [10:40:20]save last doc name /storage/0540/doc_00191349 to /storage/kkm_last_doc_name [10:40:20]save OK [10:40:20]Clear old archive folders... [10:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:40:20]tlvbuf is 015D8E90 [10:40:20]SAM_PROTO_ClearQueue [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 09 00 00 [10:40:20]Write to MH i2c: E2 08 00 33 86 80 09 00 00 00 00 00 00 2B [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 33 86 00 90 00 2D [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_ClearQueue done [10:40:21]KKMCreateOFDPacket [10:40:21]OFDProtocolAddRootSTLVToBuf [10:40:21]FM_MakeSignedData [10:40:21]FM_MakeSignedData [10:40:21]SAM_PROTO_SignData [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 01 02 [10:40:21]Write to MH i2c: E2 08 00 34 86 80 0D 01 02 00 00 00 00 33 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 34 86 00 90 00 2E [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=255 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 9C 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EB 02 00 35 04 06 00 6F 59 89 2B [10:40:21]Write to MH i2c: E2 02 01 35 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 9C 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EB 02 00 35 04 06 00 6F 59 89 2B 00 00 A4 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 35 86 00 90 00 2F [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=7 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 02 02 02 B3 D4 [10:40:21]Write to MH i2c: E2 0A 00 36 86 80 0D 02 02 02 00 B3 D4 00 00 C1 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 03 00 36 86 00 90 00 30 [10:40:21]RAPDU: 90 00 [10:40:21]wFMCommunicate OK [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 0D 03 02 [10:40:21]Write to MH i2c: E2 08 00 37 86 80 0D 03 02 00 00 00 00 38 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0B 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0B 00 37 86 00 4B BA 50 D8 FF BA CD 01 90 00 ED [10:40:21]RAPDU: 4B BA 50 D8 FF BA CD 01 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_SignData done [10:40:21]FM_MakeSignedData done [10:40:21]CreateOFDProtocolMessage [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 11 00 00 [10:40:21]Write to MH i2c: E2 08 00 38 86 80 11 00 00 00 00 00 00 38 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 38 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [10:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:21]wFMCommunicate OK [10:40:21]CreateOFDProtocolMessage done [10:40:21]OFDSenderStorePacket 191349 [10:40:21]StoreOFDPacket docnum=191349 [10:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D4 2F 04 01 09 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 9C 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EB 02 00 35 04 06 00 6F 59 89 2B B3 D4 4B BA 50 D8 FF BA CD 01 [10:40:21]CheckFolder [10:40:21]dirname=/storage/ofd_packets [10:40:21]CheckFolder done [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00191349 [10:40:21]NVStorageSaveData ofd_packets/00191349 [10:40:21]File name is /storage/ofd_packets/00191349 [10:40:21]Write 298 bytes [10:40:21]NVStorageSaveData done [10:40:21]OFDSenderStorePacket done [10:40:21]KKMCreateOFDPacket done [10:40:21]NVStorageSaveData kkm_last_timestamp [10:40:21]File name is /storage/kkm_last_timestamp [10:40:21]Write 4 bytes [10:40:21]NVStorageSaveData done [10:40:21]ExternCall_PrintAddStr [10:40:21]wPrintStart [10:40:21]Write to MH i2c: 01 00 00 39 86 BF [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 39 86 00 00 00 00 00 FF 0F D4 [10:40:21]RasterBufferAndPrint [10:40:21]line Счет N : (1)30642 [10:40:21]line ИНН: 02508201610067 [10:40:21]line Контрольно-Кассовый Чек [10:40:21]line ПРОДАЖА [10:40:21]line ТРК (МРК, ГНК) : 22 [10:40:21]line Товар: 2710194210 [10:40:21]line ДТ-К-5 [10:40:21]line 13.130 * 76.20 [10:40:21]line = 1000.51 [10:40:21]line НДС 12% НСП 1% [10:40:21]line > о реализуемом товаре [10:40:21]line ОКРУГЛЕНИЕ: -0.51 [10:40:21]line ИТОГО: 1000.00 [10:40:21]line Внесено: 1000.00 [10:40:21]line СДАЧА: 0.00 [10:40:21]line НСП 1% : 8.85 [10:40:21]line НДС 12% : 106.25 [10:40:21]line Наличными: 1000.00 [10:40:21]line Безнал.: 0.00 [10:40:21]line Место: АЗС № 170 "Партнер Нефть" [10:40:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:40:21]line СНО: Общий режим [10:40:21]line Чек 88 25.10.2024 10:40 [10:40:21]line Смена: 540 ФФД: 1.0 [10:40:21]line ЗНМ: 0300000110 [10:40:21]line РНМ: 0000000000091776 [10:40:21]line Версия ККМ: 001 [10:40:21]line ФМ: 0000000000871754 [10:40:21]line ФД: 191349 [10:40:21]line ФПД: 122430344115156 [10:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191349&fm=122430344115156&tin=02508201610067®Number=0000000000091776&sum=100000 [10:40:21]OFD Sender: Processing packet 191349 [packets to send 75, broken 74] [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00191349 [10:40:21]OFD Sender: To server: pG, [10:40:21]CommunicateWithHost lk.salyk.kg:30040 [10:40:21]ConnectInit lk.salyk.kg [10:40:21]written 0, free lines is 4095 [10:40:21]Connected sock=10 [10:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D4 2F 04 01 09 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 9C 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EB 02 00 35 04 06 00 6F 59 89 2B B3 D4 4B BA 50 D8 FF BA CD 01 [10:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 F7 47 00 FC 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EB 02 00 F4 03 04 00 6B 1A 1B 67 B6 04 01 00 00 2C 97 B4 9B 81 14 2C 0C [10:40:22]CommunicateWithHost err = 0 [10:40:22]CheckOFDResponse [10:40:22]1017 (14) - 77093643461234 [10:40:22]1041 (16) - 0000000000871754 [10:40:22]1040 (4) - 191349 [10:40:22]1012 (4) - 25.10.2024 04:11 [10:40:22]1206 (1) - 0 [10:40:22]OFD Sender: Remove packet 191349 [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00191349 [10:40:22]NVStorageDeleteData [10:40:22]Write to MH i2c: 01 00 00 64 86 EA [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 64 86 00 00 00 00 00 AF 0C AC [10:40:22]RasterBufferAndPrint [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]line [10:40:22]written 0, free lines is 3253 [10:40:22]MH_Cut [10:40:22]Write to MH i2c: D1 01 00 6B 86 01 C3 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 01 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: D1 01 00 6B 86 00 C2 [10:40:22]Write to MH i2c: 01 00 00 6C 86 F2 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]OFD Sender: No OFD packet to send [10:40:23]*** Cut start [10:40:23]*** Partial cut [10:40:23]*** CUTSNS_PIN = 1 [10:40:23]*** CUTSNS_PIN = 0 [10:40:23]*** Brake cut motor [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]*** Stop cut motor [10:40:23]*** Cut end [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 6C 86 00 00 00 00 00 FF 0F 07 [10:40:23]process_action close_receipt done [10:40:23]requested_data is exist [10:40:23]produce_requested_data [10:40:23]requested_item fm.sn is exist - process it [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 11 00 00 [10:40:23]Write to MH i2c: E2 08 00 6D 86 80 11 00 00 00 00 00 00 6D [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 6D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [10:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:23]wFMCommunicate OK [10:40:23]requested_item fd.num is exist - process it [10:40:23]SAM_PROTO_GetFieldsCounters [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 00 00 [10:40:23]Write to MH i2c: E2 08 00 6E 86 80 13 00 00 00 00 00 00 70 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 6E 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EB 02 00 0E 04 04 00 1C 02 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 1E [10:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:23]wFMCommunicate OK [10:40:23]SAM_PROTO_GetFieldsCounters done [10:40:23]requested_item shift.num is exist - process it [10:40:23]requested_item shift.opened is exist - process it [10:40:23]req_shift_opened [10:40:23]FM_GetShiftState [10:40:23]SAM_PROTO_GetShiftState [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 01 00 [10:40:23]Write to MH i2c: E2 08 00 6F 86 80 13 01 00 00 00 00 00 72 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 6F 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 35 [10:40:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:40:24]wFMCommunicate OK [10:40:24]SAM_PROTO_GetShiftState done [10:40:24]FM_GetShiftState done [10:40:24]req_shift_opened done [10:40:24]requested_item shift.open_date is exist - process it [10:40:24]req_shift_open_date [10:40:24]req_shift_open_date done [10:40:24]produce_requested_data done [10:40:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191349,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:40:24]process_action_free close_receipt [10:40:24]json_value_free [10:40:24]json_value_free done [10:40:24]process_json_proto returns [10:40:24]Send response to host [10:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191349,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:40:24]free response buf [10:40:24]execute_script done [10:40:24]execute_script returns [10:40:24]free content buf [10:40:24]Sock 8.Close socket [10:40:24]Sock 8.Thread stoped [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:31]accept exits with 9 [10:41:31]New connection [10:41:31]New thread 3066961252 created [10:41:31]Thread 3066817892 joined [10:41:31]Waiting for new connection... [10:41:31] Sock 9.Parse request [10:41:31]Sock 9.Check first char [10:41:31]Sock 9.First char is OK [10:41:31]request: POST /json_proto HTTP/1.0 [10:41:31]Method: POST [10:41:31]URL: /json_proto [10:41:31]Method is POST - this is cgi request [10:41:31]url: /json_proto [10:41:31]query_string will be loaded in cgi processing [10:41:31]execute_cgi json_proto POST (null) [10:41:31]execute_cgi path=json_proto method=POST [10:41:31]POST find Content-Length [10:41:31]Host: 172.17.63.131:8080 [10:41:31]Content-Length: 676 [10:41:31]Content-Type: application/json [10:41:31] [10:41:31]POST finish read [10:41:31]Found Content-Length = 676 [10:41:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:31]execute_script... [10:41:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:31]POST & json_proto [10:41:31]process_json_proto [10:41:31]json parsed OK: [10:41:31]protocol is kg_v1.0 [10:41:31]action value=close_receipt [10:41:31]process_action close_receipt [10:41:31]cmd_close_receipt [10:41:31]MH_GetDate [10:41:31]Write to MH i2c: F0 00 00 70 86 E5 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: F0 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: F0 09 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: F0 09 00 70 86 00 E3 75 1B 67 22 05 6E 64 C1 [10:41:31]GetLastDocTimeStamp 1729852828 [10:41:31]current date 1729852899 [10:41:31]FM_GetShiftState [10:41:31]SAM_PROTO_GetShiftState [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 01 00 [10:41:31]Write to MH i2c: E2 08 00 71 86 80 13 01 00 00 00 00 00 74 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 71 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 37 [10:41:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_GetShiftState done [10:41:31]FM_GetShiftState done [10:41:31]opened in 1729816399 [10:41:31]opened+sec_in_day 1729902799 [10:41:31]quantity*price = 50041 [10:41:31]sum+1 = 50042 [10:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 89 25.10.2024 10:41 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191350 ФПД: 99252099774044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191350&fm=99252099774044&tin=02508201610067®Number=0000000000091776&sum=50000 [10:41:32]StoreToDocumentArchive [10:41:32]shift 540 fd 191350 [10:41:32]save to /storage/0540/doc_00191350 [10:41:32]save last doc name /storage/0540/doc_00191350 to /storage/kkm_last_doc_name [10:41:32]save OK [10:41:32]Clear old archive folders... [10:41:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:32]tlvbuf is 017094A0 [10:41:32]SAM_PROTO_ClearQueue [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 09 00 00 [10:41:32]Write to MH i2c: E2 08 00 7E 86 80 09 00 00 00 00 00 00 76 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 7E 86 00 90 00 78 [10:41:32]RAPDU: 90 00 [10:41:32]wFMCommunicate OK [10:41:32]SAM_PROTO_ClearQueue done [10:41:32]KKMCreateOFDPacket [10:41:32]OFDProtocolAddRootSTLVToBuf [10:41:32]FM_MakeSignedData [10:41:32]FM_MakeSignedData [10:41:32]SAM_PROTO_SignData [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 0D 01 02 [10:41:32]Write to MH i2c: E2 08 00 7F 86 80 0D 01 02 00 00 00 00 7E [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 7F 86 00 90 00 79 [10:41:32]RAPDU: 90 00 [10:41:32]wFMCommunicate OK [10:41:32]wFMCommunicate request_size=255 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EB 02 00 35 04 06 00 5A [10:41:32]Write to MH i2c: E2 02 01 80 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EB 02 00 35 04 06 00 5A 00 00 20 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 80 86 00 90 00 7A [10:41:32]RAPDU: 90 00 [10:41:32]wFMCommunicate OK [10:41:32]wFMCommunicate request_size=10 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 0D 02 02 05 44 EE 26 76 5C [10:41:32]Write to MH i2c: E2 0D 00 81 86 80 0D 02 02 05 00 44 EE 26 76 5C 00 00 B5 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]OFD Sender: No OFD packet to send [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:32]Read from MH i2c: E2 03 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 03 00 81 86 00 90 00 7B [10:41:32]RAPDU: 90 00 [10:41:32]wFMCommunicate OK [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 0D 03 02 [10:41:32]Write to MH i2c: E2 08 00 82 86 80 0D 03 02 00 00 00 00 83 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0B 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0B 00 82 86 00 B5 ED 26 37 D5 31 62 EF 90 00 DA [10:41:32]RAPDU: B5 ED 26 37 D5 31 62 EF 90 00 [10:41:32]wFMCommunicate OK [10:41:32]SAM_PROTO_SignData done [10:41:32]FM_MakeSignedData done [10:41:32]CreateOFDProtocolMessage [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 11 00 00 [10:41:32]Write to MH i2c: E2 08 00 83 86 80 11 00 00 00 00 00 00 83 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 17 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 17 00 83 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [10:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:41:32]wFMCommunicate OK [10:41:32]CreateOFDProtocolMessage done [10:41:32]OFDSenderStorePacket 191350 [10:41:32]StoreOFDPacket docnum=191350 [10:41:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 B8 07 01 DC E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EB 02 00 35 04 06 00 5A 44 EE 26 76 5C B5 ED 26 37 D5 31 62 EF [10:41:32]CheckFolder [10:41:32]dirname=/storage/ofd_packets [10:41:32]CheckFolder done [10:41:32]ProducePacketName [10:41:32]name=ofd_packets/00191350 [10:41:32]NVStorageSaveData ofd_packets/00191350 [10:41:32]File name is /storage/ofd_packets/00191350 [10:41:32]Write 301 bytes [10:41:32]NVStorageSaveData done [10:41:32]OFDSenderStorePacket done [10:41:32]KKMCreateOFDPacket done [10:41:32]NVStorageSaveData kkm_last_timestamp [10:41:32]File name is /storage/kkm_last_timestamp [10:41:32]Write 4 bytes [10:41:32]NVStorageSaveData done [10:41:32]ExternCall_PrintAddStr [10:41:32]wPrintStart [10:41:32]Write to MH i2c: 01 00 00 84 86 0A [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 07 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 07 00 84 86 00 00 00 00 00 FF 0F 1F [10:41:32]RasterBufferAndPrint [10:41:32]line Счет N : (1)30643 [10:41:32]line ИНН: 02508201610067 [10:41:32]line Контрольно-Кассовый Чек [10:41:32]line ПРОДАЖА [10:41:32]line ТРК (МРК, ГНК) : 12 [10:41:32]line Товар: 2710124130 [10:41:32]line Аи-92-К-5 [10:41:32]line 7.480 * 66.90 [10:41:32]line = 500.41 [10:41:32]line НДС 12% НСП 1% [10:41:32]line > о реализуемом товаре [10:41:32]line ОКРУГЛЕНИЕ: -0.41 [10:41:32]line ИТОГО: 500.00 [10:41:32]line Внесено: 500.00 [10:41:32]line СДАЧА: 0.00 [10:41:32]line НСП 1% : 4.43 [10:41:32]line НДС 12% : 53.14 [10:41:32]line Наличными: 500.00 [10:41:32]line Безнал.: 0.00 [10:41:32]line Место: АЗС № 170 "Партнер Нефть" [10:41:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:41:32]line СНО: Общий режим [10:41:32]line Чек 89 25.10.2024 10:41 [10:41:32]line Смена: 540 ФФД: 1.0 [10:41:32]line ЗНМ: 0300000110 [10:41:32]line РНМ: 0000000000091776 [10:41:32]line Версия ККМ: 001 [10:41:32]line ФМ: 0000000000871754 [10:41:32]line ФД: 191350 [10:41:32]line ФПД: 99252099774044 [10:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191350&fm=99252099774044&tin=02508201610067®Number=0000000000091776&sum=50000 [10:41:33]OFD Sender: Processing packet 191350 [packets to send 75, broken 74] [10:41:33]ProducePacketName [10:41:33]name=ofd_packets/00191350 [10:41:33]OFD Sender: To server: pG, [10:41:33]CommunicateWithHost lk.salyk.kg:30040 [10:41:33]ConnectInit lk.salyk.kg [10:41:33]written 0, free lines is 4095 [10:41:33]Connected sock=10 [10:41:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 B8 07 01 DC E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E3 75 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EB 02 00 35 04 06 00 5A 44 EE 26 76 5C B5 ED 26 37 D5 31 62 EF [10:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F 4D 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 31 37 35 34 10 04 04 00 76 EB 02 00 F4 03 04 00 B2 1A 1B 67 B6 04 01 00 00 BF 8D A9 46 8E 11 D3 39 [10:41:33]CommunicateWithHost err = 0 [10:41:33]CheckOFDResponse [10:41:33]1017 (14) - 77093643461234 [10:41:33]1041 (16) - 0000000000871754 [10:41:33]1040 (4) - 191350 [10:41:33]1012 (4) - 25.10.2024 04:12 [10:41:33]1206 (1) - 0 [10:41:33]OFD Sender: Remove packet 191350 [10:41:33]ProducePacketName [10:41:33]name=ofd_packets/00191350 [10:41:33]NVStorageDeleteData [10:41:33]Write to MH i2c: 01 00 00 AF 86 35 [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: 01 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: 01 07 00 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: 01 07 00 AF 86 00 00 00 00 00 AF 0C F7 [10:41:33]RasterBufferAndPrint [10:41:33]line [10:41:33]line [10:41:33]line [10:41:33]line [10:41:33]line [10:41:33]written 0, free lines is 3254 [10:41:33]MH_Cut [10:41:33]Write to MH i2c: D1 01 00 B6 86 01 0E [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: D1 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: D1 01 00 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: D1 01 00 B6 86 00 0D [10:41:33]Write to MH i2c: 01 00 00 B7 86 3D [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:34]OFD Sender: No OFD packet to send [10:41:34]*** Cut start [10:41:34]*** Partial cut [10:41:34]*** CUTSNS_PIN = 1 [10:41:34]*** CUTSNS_PIN = 0 [10:41:34]*** Brake cut motor [10:41:35]Read from MH i2c: 01 [10:41:35]MH_I2C_Read... [10:41:35]*** Stop cut motor [10:41:35]*** Cut end [10:41:35]Read from MH i2c: 01 07 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 07 00 B7 86 00 00 00 00 00 FF 0F 52 [10:41:35]process_action close_receipt done [10:41:35]requested_data is exist [10:41:35]produce_requested_data [10:41:35]requested_item fm.sn is exist - process it [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 11 00 00 [10:41:35]Write to MH i2c: E2 08 00 B8 86 80 11 00 00 00 00 00 00 B8 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 17 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 17 00 B8 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [10:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:41:35]wFMCommunicate OK [10:41:35]requested_item fd.num is exist - process it [10:41:35]SAM_PROTO_GetFieldsCounters [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 13 00 00 [10:41:35]Write to MH i2c: E2 08 00 B9 86 80 13 00 00 00 00 00 00 BB [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 62 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 62 00 B9 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EB 02 00 0E 04 04 00 1C 02 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 6D [10:41:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:35]wFMCommunicate OK [10:41:35]SAM_PROTO_GetFieldsCounters done [10:41:35]requested_item shift.num is exist - process it [10:41:35]requested_item shift.opened is exist - process it [10:41:35]req_shift_opened [10:41:35]FM_GetShiftState [10:41:35]SAM_PROTO_GetShiftState [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 13 01 00 [10:41:35]Write to MH i2c: E2 08 00 BA 86 80 13 01 00 00 00 00 00 BD [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 0E 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 0E 00 BA 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 80 [10:41:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:41:35]wFMCommunicate OK [10:41:35]SAM_PROTO_GetShiftState done [10:41:35]FM_GetShiftState done [10:41:35]req_shift_opened done [10:41:35]requested_item shift.open_date is exist - process it [10:41:35]req_shift_open_date [10:41:35]req_shift_open_date done [10:41:35]produce_requested_data done [10:41:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191350,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:41:35]process_action_free close_receipt [10:41:35]json_value_free [10:41:35]json_value_free done [10:41:35]process_json_proto returns [10:41:35]Send response to host [10:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191350,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:41:35]free response buf [10:41:35]execute_script done [10:41:35]execute_script returns [10:41:35]free content buf [10:41:35]Sock 9.Close socket [10:41:35]Sock 9.Thread stoped [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:11]accept exits with 8 [10:42:11]New connection [10:42:11]New thread 3066817892 created [10:42:11]Thread 3066961252 joined [10:42:11]Waiting for new connection... [10:42:11] Sock 8.Parse request [10:42:11]Sock 8.Check first char [10:42:11]Sock 8.First char is OK [10:42:11]request: POST /json_proto HTTP/1.0 [10:42:11]Method: POST [10:42:11]URL: /json_proto [10:42:11]Method is POST - this is cgi request [10:42:11]url: /json_proto [10:42:11]query_string will be loaded in cgi processing [10:42:11]execute_cgi json_proto POST (null) [10:42:11]execute_cgi path=json_proto method=POST [10:42:11]POST find Content-Length [10:42:11]Host: 172.17.63.131:8080 [10:42:11]Content-Length: 681 [10:42:11]Content-Type: application/json [10:42:11] [10:42:11]POST finish read [10:42:11]Found Content-Length = 681 [10:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:11]execute_script... [10: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)30644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:11]POST & json_proto [10:42:11]process_json_proto [10:42:11]json parsed OK: [10:42:11]protocol is kg_v1.0 [10:42:11]action value=close_receipt [10:42:11]process_action close_receipt [10:42:11]cmd_close_receipt [10:42:11]MH_GetDate [10:42:11]Write to MH i2c: F0 00 00 BB 86 30 [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 BB 86 00 0C 76 1B 67 22 05 6E 64 36 [10:42:11]GetLastDocTimeStamp 1729852899 [10:42:11]current date 1729852940 [10:42:11]FM_GetShiftState [10:42:11]SAM_PROTO_GetShiftState [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 13 01 00 [10:42:11]Write to MH i2c: E2 08 00 BC 86 80 13 01 00 00 00 00 00 BF [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:11]Read from MH i2c: E2 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 0E 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 0E 00 BC 86 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 82 [10:42:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:42:11]wFMCommunicate OK [10:42:11]SAM_PROTO_GetShiftState done [10:42:11]FM_GetShiftState done [10:42:11]opened in 1729816399 [10:42:11]opened+sec_in_day 1729902799 [10:42:11]quantity*price = 100015 [10:42:11]sum+1 = 100017 [10:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 90 25.10.2024 10:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191351 ФПД: 50690507006778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191351&fm=50690507006778&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:12]StoreToDocumentArchive [10:42:12]shift 540 fd 191351 [10:42:12]save to /storage/0540/doc_00191351 [10:42:12]save last doc name /storage/0540/doc_00191351 to /storage/kkm_last_doc_name [10:42:12]save OK [10:42:12]Clear old archive folders... [10:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:12]tlvbuf is 016CEA70 [10:42:12]SAM_PROTO_ClearQueue [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 09 00 00 [10:42:12]Write to MH i2c: E2 08 00 C9 86 80 09 00 00 00 00 00 00 C1 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 C9 86 00 90 00 C3 [10:42:12]RAPDU: 90 00 [10:42:12]wFMCommunicate OK [10:42:12]SAM_PROTO_ClearQueue done [10:42:12]KKMCreateOFDPacket [10:42:12]OFDProtocolAddRootSTLVToBuf [10:42:12]FM_MakeSignedData [10:42:12]FM_MakeSignedData [10:42:12]SAM_PROTO_SignData [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 0D 01 02 [10:42:12]Write to MH i2c: E2 08 00 CA 86 80 0D 01 02 00 00 00 00 C9 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 CA 86 00 90 00 C4 [10:42:12]RAPDU: 90 00 [10:42:12]wFMCommunicate OK [10:42:12]wFMCommunicate request_size=255 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EB 02 00 35 04 06 00 2E [10:42:12]Write to MH i2c: E2 02 01 CB 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EB 02 00 35 04 06 00 2E 00 00 65 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 CB 86 00 90 00 C5 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=10 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 05 1A 4D A9 E3 3A [10:42:13]Write to MH i2c: E2 0D 00 CC 86 80 0D 02 02 05 00 1A 4D A9 E3 3A 00 00 03 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 CC 86 00 90 00 C6 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 03 02 [10:42:13]Write to MH i2c: E2 08 00 CD 86 80 0D 03 02 00 00 00 00 CE [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 CD 86 00 AE 64 52 9B BD 8D 64 53 90 00 CF [10:42:13]RAPDU: AE 64 52 9B BD 8D 64 53 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_SignData done [10:42:13]FM_MakeSignedData done [10:42:13]CreateOFDProtocolMessage [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 11 00 00 [10:42:13]Write to MH i2c: E2 08 00 CE 86 80 11 00 00 00 00 00 00 CE [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 CE 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [10:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:13]wFMCommunicate OK [10:42:13]CreateOFDProtocolMessage done [10:42:13]OFDSenderStorePacket 191351 [10:42:13]StoreOFDPacket docnum=191351 [10:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D F7 07 01 0D 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EB 02 00 35 04 06 00 2E 1A 4D A9 E3 3A AE 64 52 9B BD 8D 64 53 [10:42:13]CheckFolder [10:42:13]dirname=/storage/ofd_packets [10:42:13]CheckFolder done [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00191351 [10:42:13]NVStorageSaveData ofd_packets/00191351 [10:42:13]File name is /storage/ofd_packets/00191351 [10:42:13]Write 301 bytes [10:42:13]NVStorageSaveData done [10:42:13]OFDSenderStorePacket done [10:42:13]KKMCreateOFDPacket done [10:42:13]NVStorageSaveData kkm_last_timestamp [10:42:13]File name is /storage/kkm_last_timestamp [10:42:13]Write 4 bytes [10:42:13]NVStorageSaveData done [10:42:13]ExternCall_PrintAddStr [10:42:13]wPrintStart [10:42:13]Write to MH i2c: 01 00 00 CF 86 55 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 CF 86 00 00 00 00 00 FF 0F 6A [10:42:13]RasterBufferAndPrint [10:42:13]line Счет N : (1)30644 [10:42:13]line ИНН: 02508201610067 [10:42:13]line Контрольно-Кассовый Чек [10:42:13]line ПРОДАЖА [10:42:13]line ТРК (МРК, ГНК) : 21 [10:42:13]line Товар: 2710124130 [10:42:13]line Аи-92-К-5 [10:42:13]line 14.950 * 66.90 [10:42:13]line = 1000.16 [10:42:13]line НДС 12% НСП 1% [10:42:13]line > о реализуемом товаре [10:42:13]line ОКРУГЛЕНИЕ: -0.16 [10:42:13]line ИТОГО: 1000.00 [10:42:13]line Внесено: 1000.00 [10:42:13]line СДАЧА: 0.00 [10:42:13]line НСП 1% : 8.85 [10:42:13]line НДС 12% : 106.21 [10:42:13]line Наличными: 1000.00 [10:42:13]line Безнал.: 0.00 [10:42:13]line Место: АЗС № 170 "Партнер Нефть" [10:42:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:42:13]line СНО: Общий режим [10:42:13]line Чек 90 25.10.2024 10:42 [10:42:13]line Смена: 540 ФФД: 1.0 [10:42:13]line ЗНМ: 0300000110 [10:42:13]line РНМ: 0000000000091776 [10:42:13]line Версия ККМ: 001 [10:42:13]line ФМ: 0000000000871754 [10:42:13]line ФД: 191351 [10:42:13]line ФПД: 50690507006778 [10:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191351&fm=50690507006778&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:13]OFD Sender: Processing packet 191351 [packets to send 75, broken 74] [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00191351 [10:42:13]OFD Sender: To server: pG, [10:42:13]CommunicateWithHost lk.salyk.kg:30040 [10:42:13]ConnectInit lk.salyk.kg [10:42:13]written 0, free lines is 4095 [10:42:13]Connected sock=10 [10:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D F7 07 01 0D 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EB 02 00 35 04 06 00 2E 1A 4D A9 E3 3A AE 64 52 9B BD 8D 64 53 [10:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 A0 47 00 F9 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EB 02 00 F4 03 04 00 DA 1A 1B 67 B6 04 01 00 00 B9 71 AE B7 E9 6F A3 57 [10:42:13]CommunicateWithHost err = 0 [10:42:13]CheckOFDResponse [10:42:13]1017 (14) - 77093643461234 [10:42:13]1041 (16) - 0000000000871754 [10:42:13]1040 (4) - 191351 [10:42:13]1012 (4) - 25.10.2024 04:13 [10:42:13]1206 (1) - 0 [10:42:13]OFD Sender: Remove packet 191351 [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00191351 [10:42:13]NVStorageDeleteData [10:42:14]Write to MH i2c: 01 00 00 FA 86 80 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 FA 86 00 00 00 00 00 B3 0C 46 [10:42:14]RasterBufferAndPrint [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]written 0, free lines is 3256 [10:42:14]MH_Cut [10:42:14]Write to MH i2c: D1 01 00 01 87 01 5A [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 01 87 00 59 [10:42:14]Write to MH i2c: 01 00 00 02 87 89 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]OFD Sender: No OFD packet to send [10:42:14]*** Cut start [10:42:14]*** Partial cut [10:42:14]*** CUTSNS_PIN = 1 [10:42:14]*** CUTSNS_PIN = 0 [10:42:15]*** Brake cut motor [10:42:15]Read from MH i2c: 01 [10:42:15]MH_I2C_Read... [10:42:15]*** Stop cut motor [10:42:15]*** Cut end [10:42:15]Read from MH i2c: 01 07 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 07 00 02 87 00 00 00 00 00 FF 0F 9E [10:42:15]process_action close_receipt done [10:42:15]requested_data is exist [10:42:15]produce_requested_data [10:42:15]requested_item fm.sn is exist - process it [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 11 00 00 [10:42:15]Write to MH i2c: E2 08 00 03 87 80 11 00 00 00 00 00 00 04 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 03 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [10:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:15]wFMCommunicate OK [10:42:15]requested_item fd.num is exist - process it [10:42:15]SAM_PROTO_GetFieldsCounters [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 00 00 [10:42:15]Write to MH i2c: E2 08 00 04 87 80 13 00 00 00 00 00 00 07 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 04 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EB 02 00 0E 04 04 00 1C 02 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 BD [10: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetFieldsCounters done [10:42:15]requested_item shift.num is exist - process it [10:42:15]requested_item shift.opened is exist - process it [10:42:15]req_shift_opened [10:42:15]FM_GetShiftState [10:42:15]SAM_PROTO_GetShiftState [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 01 00 [10:42:15]Write to MH i2c: E2 08 00 05 87 80 13 01 00 00 00 00 00 09 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 05 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CC [10:42:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetShiftState done [10:42:15]FM_GetShiftState done [10:42:15]req_shift_opened done [10:42:15]requested_item shift.open_date is exist - process it [10:42:15]req_shift_open_date [10:42:15]req_shift_open_date done [10:42:15]produce_requested_data done [10:42:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191351,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:42:15]process_action_free close_receipt [10:42:15]json_value_free [10:42:15]json_value_free done [10:42:15]process_json_proto returns [10:42:15]Send response to host [10:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191351,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:42:15]free response buf [10:42:15]execute_script done [10:42:15]execute_script returns [10:42:15]free content buf [10:42:15]Sock 8.Close socket [10:42:15]Sock 8.Thread stoped [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]accept exits with 9 [10:46:14]New connection [10:46:14]New thread 3066961252 created [10:46:14]Thread 3066817892 joined [10:46:14]Waiting for new connection... [10:46:14] Sock 9.Parse request [10:46:14]Sock 9.Check first char [10:46:14]Sock 9.First char is OK [10:46:14]request: POST /json_proto HTTP/1.0 [10:46:14]Method: POST [10:46:14]URL: /json_proto [10:46:14]Method is POST - this is cgi request [10:46:14]url: /json_proto [10:46:14]query_string will be loaded in cgi processing [10:46:14]execute_cgi json_proto POST (null) [10:46:14]execute_cgi path=json_proto method=POST [10:46:14]POST find Content-Length [10:46:14]Host: 172.17.63.131:8080 [10:46:14]Content-Length: 779 [10:46:14]Content-Type: application/json [10:46:14] [10:46:14]POST finish read [10:46:14]Found Content-Length = 779 [10:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:14]execute_script... [10:46: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)30645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:14]POST & json_proto [10:46:14]process_json_proto [10:46:14]json parsed OK: [10:46:14]protocol is kg_v1.0 [10:46:14]action value=close_receipt [10:46:14]process_action close_receipt [10:46:14]cmd_close_receipt [10:46:14]MH_GetDate [10:46:14]Write to MH i2c: F0 00 00 06 87 7C [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: F0 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: F0 09 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: F0 09 00 06 87 00 FE 76 1B 67 22 05 6E 64 74 [10:46:14]GetLastDocTimeStamp 1729852940 [10:46:14]current date 1729853182 [10:46:14]FM_GetShiftState [10:46:14]SAM_PROTO_GetShiftState [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 13 01 00 [10:46:14]Write to MH i2c: E2 08 00 07 87 80 13 01 00 00 00 00 00 0B [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 0E 00 07 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CE [10:46:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_GetShiftState done [10:46:14]FM_GetShiftState done [10:46:14]opened in 1729816399 [10:46:14]opened+sec_in_day 1729902799 [10:46:14]quantity*price = 0 [10:46:14]sum+1 = 1 [10:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 91 25.10.2024 10:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 00914 ФМ: 0000000000871754 ФД: 191352 ФПД: 21339828601980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191352&fm=21339828601980&tin=02508201610067®Number=0000000000091776&sum=0 [10:46:15]StoreToDocumentArchive [10:46:15]shift 540 fd 191352 [10:46:15]save to /storage/0540/doc_00191352 [10:46:15]save last doc name /storage/0540/doc_00191352 to /storage/kkm_last_doc_name [10:46:15]save OK [10:46:15]Clear old archive folders... [10:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:15]tlvbuf is B6F57010 [10:46:15]SAM_PROTO_ClearQueue [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 09 00 00 [10:46:15]Write to MH i2c: E2 08 00 14 87 80 09 00 00 00 00 00 00 0D [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 14 87 00 90 00 0F [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_ClearQueue done [10:46:15]KKMCreateOFDPacket [10:46:15]OFDProtocolAddRootSTLVToBuf [10:46:15]FM_MakeSignedData [10:46:15]FM_MakeSignedData [10:46:15]SAM_PROTO_SignData [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 01 02 [10:46:15]Write to MH i2c: E2 08 00 15 87 80 0D 01 02 00 00 00 00 15 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 15 87 00 90 00 10 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=255 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FE 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EB 02 00 35 04 06 00 13 [10:46:15]Write to MH i2c: E2 02 01 16 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FE 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EB 02 00 35 04 06 00 13 00 00 E7 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 16 87 00 90 00 11 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=10 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 02 02 05 68 90 E7 44 7C [10:46:15]Write to MH i2c: E2 0D 00 17 87 80 0D 02 02 05 00 68 90 E7 44 7C 00 00 C1 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 17 87 00 90 00 12 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 03 02 [10:46:15]Write to MH i2c: E2 08 00 18 87 80 0D 03 02 00 00 00 00 1A [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 18 87 00 B0 64 67 30 41 EA D4 E3 90 00 A8 [10:46:15]RAPDU: B0 64 67 30 41 EA D4 E3 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_SignData done [10:46:15]FM_MakeSignedData done [10:46:15]CreateOFDProtocolMessage [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 19 87 80 11 00 00 00 00 00 00 1A [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 19 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [10:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:15]wFMCommunicate OK [10:46:15]CreateOFDProtocolMessage done [10:46:15]OFDSenderStorePacket 191352 [10:46:15]StoreOFDPacket docnum=191352 [10:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C A3 07 01 FD 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FE 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EB 02 00 35 04 06 00 13 68 90 E7 44 7C B0 64 67 30 41 EA D4 E3 [10:46:15]CheckFolder [10:46:15]dirname=/storage/ofd_packets [10:46:15]CheckFolder done [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00191352 [10:46:15]NVStorageSaveData ofd_packets/00191352 [10:46:15]File name is /storage/ofd_packets/00191352 [10:46:15]Write 301 bytes [10:46:15]NVStorageSaveData done [10:46:15]OFDSenderStorePacket done [10:46:15]KKMCreateOFDPacket done [10:46:15]NVStorageSaveData kkm_last_timestamp [10:46:15]File name is /storage/kkm_last_timestamp [10:46:15]Write 4 bytes [10:46:15]NVStorageSaveData done [10:46:15]ExternCall_PrintAddStr [10:46:15]wPrintStart [10:46:15]Write to MH i2c: 01 00 00 1A 87 A1 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 1A 87 00 00 00 00 00 FF 0F B6 [10:46:15]RasterBufferAndPrint [10:46:15]line Счет N : (1)30645 [10:46:15]line ИНН: 02508201610067 [10:46:15]line Контрольно-Кассовый Чек [10:46:15]line ПРОДАЖА [10:46:15]line ТРК (МРК, ГНК) : 12 [10:46:15]line Товар: 2710124130 [10:46:15]line Аи-92-К-5 [10:46:15]line 40.000 * 0.00 [10:46:15]line = 0.00 [10:46:15]line НДС 12% НСП 1% [10:46:15]line > о реализуемом товаре [10:46:15]line ИТОГО: 0.00 [10:46:15]line НСП 1% : 0.00 [10:46:15]line НДС 12% : 0.00 [10:46:15]line Наличными: 0.00 [10:46:15]line Безнал.: 0.00 [10:46:15]line Место: АЗС № 170 "Партнер Нефть" [10:46:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:46:15]line СНО: Общий режим [10:46:15]line Чек 91 25.10.2024 10:46 [10:46:15]line Смена: 540 ФФД: 1.0 [10:46:15]line ЗНМ: 0300000110 [10:46:15]line РНМ: 0000000000091776 [10:46:15]line Версия ККМ: 001 [10:46:15]line Талоны: Партнер нефть [10:46:15]line 00914 [10:46:15]line ФМ: 0000000000871754 [10:46:15]line ФД: 191352 [10:46:15]line ФПД: 21339828601980 [10:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191352&fm=21339828601980&tin=02508201610067®Number=0000000000091776&sum=0 [10:46:15]OFD Sender: Processing packet 191352 [packets to send 75, broken 74] [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00191352 [10:46:15]OFD Sender: To server: pG, [10:46:15]CommunicateWithHost lk.salyk.kg:30040 [10:46:15]ConnectInit lk.salyk.kg [10:46:15]written 0, free lines is 4095 [10:46:15]Connected sock=10 [10:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C A3 07 01 FD 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FE 76 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EB 02 00 35 04 06 00 13 68 90 E7 44 7C B0 64 67 30 41 EA D4 E3 [10:46:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA F5 47 00 4E 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EB 02 00 F4 03 04 00 CD 1B 1B 67 B6 04 01 00 00 D3 EA 9E 96 67 2D 6F 9E [10:46:16]CommunicateWithHost err = 0 [10:46:16]CheckOFDResponse [10:46:16]1017 (14) - 77093643461234 [10:46:16]1041 (16) - 0000000000871754 [10:46:16]1040 (4) - 191352 [10:46:16]1012 (4) - 25.10.2024 04:17 [10:46:16]1206 (1) - 0 [10:46:16]OFD Sender: Remove packet 191352 [10:46:16]ProducePacketName [10:46:16]name=ofd_packets/00191352 [10:46:16]NVStorageDeleteData [10:46:16]Write to MH i2c: 01 00 00 44 87 CB [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 44 87 00 00 00 00 00 C2 0C A0 [10:46:16]RasterBufferAndPrint [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]written 0, free lines is 3274 [10:46:16]MH_Cut [10:46:16]Write to MH i2c: D1 01 00 4B 87 01 A4 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 4B 87 00 A3 [10:46:16]Write to MH i2c: 01 00 00 4C 87 D3 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]OFD Sender: No OFD packet to send [10:46:17]*** Cut start [10:46:17]*** Partial cut [10:46:17]*** CUTSNS_PIN = 1 [10:46:17]*** CUTSNS_PIN = 0 [10:46:17]*** Brake cut motor [10:46:17]Read from MH i2c: 01 [10:46:17]MH_I2C_Read... [10:46:17]*** Stop cut motor [10:46:17]*** Cut end [10:46:17]Read from MH i2c: 01 07 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: 01 07 00 4C 87 00 00 00 00 00 FF 0F E8 [10:46:17]process_action close_receipt done [10:46:17]requested_data is exist [10:46:17]produce_requested_data [10:46:17]requested_item fm.sn is exist - process it [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 11 00 00 [10:46:17]Write to MH i2c: E2 08 00 4D 87 80 11 00 00 00 00 00 00 4E [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 4D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [10:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:17]wFMCommunicate OK [10:46:17]requested_item fd.num is exist - process it [10:46:17]SAM_PROTO_GetFieldsCounters [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 00 00 [10:46:17]Write to MH i2c: E2 08 00 4E 87 80 13 00 00 00 00 00 00 51 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 4E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EB 02 00 0E 04 04 00 1C 02 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 0B [10:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetFieldsCounters done [10:46:17]requested_item shift.num is exist - process it [10:46:17]requested_item shift.opened is exist - process it [10:46:17]req_shift_opened [10:46:17]FM_GetShiftState [10:46:17]SAM_PROTO_GetShiftState [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 01 00 [10:46:17]Write to MH i2c: E2 08 00 4F 87 80 13 01 00 00 00 00 00 53 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 4F 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 16 [10:46:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetShiftState done [10:46:17]FM_GetShiftState done [10:46:17]req_shift_opened done [10:46:17]requested_item shift.open_date is exist - process it [10:46:17]req_shift_open_date [10:46:17]req_shift_open_date done [10:46:17]produce_requested_data done [10:46:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191352,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:46:17]process_action_free close_receipt [10:46:17]json_value_free [10:46:17]json_value_free done [10:46:17]process_json_proto returns [10:46:17]Send response to host [10:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191352,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:46:17]free response buf [10:46:17]execute_script done [10:46:17]execute_script returns [10:46:17]free content buf [10:46:17]Sock 9.Close socket [10:46:17]Sock 9.Thread stoped [10:46:18]accept exits with 8 [10:46:18]New connection [10:46:18]New thread 3066817892 created [10:46:18]Thread 3066961252 joined [10:46:18]Waiting for new connection... [10:46:18] Sock 8.Parse request [10:46:18]Sock 8.Check first char [10:46:18]Sock 8.First char is OK [10:46:18]request: POST /json_proto HTTP/1.0 [10:46:18]Method: POST [10:46:18]URL: /json_proto [10:46:18]Method is POST - this is cgi request [10:46:18]url: /json_proto [10:46:18]query_string will be loaded in cgi processing [10:46:18]execute_cgi json_proto POST (null) [10:46:18]execute_cgi path=json_proto method=POST [10:46:18]POST find Content-Length [10:46:18]Host: 172.17.63.131:8080 [10:46:18]Content-Length: 983 [10:46:18]Content-Type: application/json [10:46:18] [10:46:18]POST finish read [10:46:18]Found Content-Length = 983 [10:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:18]execute_script... [10:46:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:18]POST & json_proto [10:46:18]process_json_proto [10:46:18]json parsed OK: [10:46:18]protocol is kg_v1.0 [10:46:18]action value=close_receipt [10:46:18]process_action close_receipt [10:46:18]cmd_close_receipt [10:46:18]MH_GetDate [10:46:18]Write to MH i2c: F0 00 00 50 87 C6 [10:46:18]Write i2c OK [10:46:18]MH_I2C_Read... [10:46:18]Read from MH i2c: F0 [10:46:18]MH_I2C_Read... [10:46:18]Read from MH i2c: F0 09 00 [10:46:18]MH_I2C_Read... [10:46:18]Read from MH i2c: F0 09 00 50 87 00 02 77 1B 67 22 05 6E 64 C3 [10:46:18]GetLastDocTimeStamp 1729853182 [10:46:18]current date 1729853186 [10:46:18]FM_GetShiftState [10:46:18]SAM_PROTO_GetShiftState [10:46:18]wFMCommunicate request_size=4 [10:46:18]MH_SAM_APDU [10:46:18]CAPDU: 80 13 01 00 [10:46:18]Write to MH i2c: E2 08 00 51 87 80 13 01 00 00 00 00 00 55 [10:46:18]Write i2c OK [10:46:18]MH_I2C_Read... [10:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:18]Read from MH i2c: E2 [10:46:18]MH_I2C_Read... [10:46:18]Read from MH i2c: E2 0E 00 [10:46:18]MH_I2C_Read... [10:46:18]Read from MH i2c: E2 0E 00 51 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 18 [10:46:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:46:18]wFMCommunicate OK [10:46:18]SAM_PROTO_GetShiftState done [10:46:18]FM_GetShiftState done [10:46:18]opened in 1729816399 [10:46:18]opened+sec_in_day 1729902799 [10:46:18]quantity*price = 150054 [10:46:18]sum+1 = 150055 [10:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 92 25.10.2024 10:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191353 ФПД: 210599041936457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191353&fm=210599041936457&tin=02508201610067®Number=0000000000091776&sum=150000 [10:46:19]StoreToDocumentArchive [10:46:19]shift 540 fd 191353 [10:46:19]save to /storage/0540/doc_00191353 [10:46:19]save last doc name /storage/0540/doc_00191353 to /storage/kkm_last_doc_name [10:46:19]save OK [10:46:19]Clear old archive folders... [10:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:19]tlvbuf is 01849A80 [10:46:19]SAM_PROTO_ClearQueue [10:46:19]wFMCommunicate request_size=4 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 09 00 00 [10:46:19]Write to MH i2c: E2 08 00 5E 87 80 09 00 00 00 00 00 00 57 [10:46:19]Write i2c OK [10:46:19]MH_I2C_Read... [10:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:19]Read from MH i2c: E2 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 5E 87 00 90 00 59 [10:46:19]RAPDU: 90 00 [10:46:19]wFMCommunicate OK [10:46:19]SAM_PROTO_ClearQueue done [10:46:19]KKMCreateOFDPacket [10:46:19]OFDProtocolAddRootSTLVToBuf [10:46:19]FM_MakeSignedData [10:46:19]FM_MakeSignedData [10:46:19]SAM_PROTO_SignData [10:46:19]wFMCommunicate request_size=4 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 0D 01 02 [10:46:19]Write to MH i2c: E2 08 00 5F 87 80 0D 01 02 00 00 00 00 5F [10:46:19]Write i2c OK [10:46:19]MH_I2C_Read... [10:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:19]Read from MH i2c: E2 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 5F 87 00 90 00 5A [10:46:19]RAPDU: 90 00 [10:46:19]wFMCommunicate OK [10:46:19]wFMCommunicate request_size=255 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 02 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EB 02 00 35 04 06 00 BF [10:46:19]Write to MH i2c: E2 02 01 60 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 02 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EB 02 00 35 04 06 00 BF 00 00 C3 [10:46:19]Write i2c OK [10:46:19]MH_I2C_Read... [10:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:19]Read from MH i2c: E2 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 60 87 00 90 00 5B [10:46:19]RAPDU: 90 00 [10:46:19]wFMCommunicate OK [10:46:19]wFMCommunicate request_size=10 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 0D 02 02 05 89 E9 15 AC 49 [10:46:19]Write to MH i2c: E2 0D 00 61 87 80 0D 02 02 05 00 89 E9 15 AC 49 00 00 E8 [10:46:19]Write i2c OK [10:46:19]MH_I2C_Read... [10:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:19]Read from MH i2c: E2 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 03 00 61 87 00 90 00 5C [10:46:19]RAPDU: 90 00 [10:46:19]wFMCommunicate OK [10:46:19]wFMCommunicate request_size=4 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 0D 03 02 [10:46:19]Write to MH i2c: E2 08 00 62 87 80 0D 03 02 00 00 00 00 64 [10:46:19]Write i2c OK [10:46:19]MH_I2C_Read... [10:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:19]Read from MH i2c: E2 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 0B 00 [10:46:19]MH_I2C_Read... [10:46:19]Read from MH i2c: E2 0B 00 62 87 00 ED CF B4 E3 5C CD D8 94 90 00 4D [10:46:19]RAPDU: ED CF B4 E3 5C CD D8 94 90 00 [10:46:19]wFMCommunicate OK [10:46:19]SAM_PROTO_SignData done [10:46:19]FM_MakeSignedData done [10:46:19]CreateOFDProtocolMessage [10:46:19]wFMCommunicate request_size=4 [10:46:19]MH_SAM_APDU [10:46:19]CAPDU: 80 11 00 00 [10:46:19]Write to MH i2c: E2 08 00 63 87 80 11 00 00 00 00 00 00 64 [10:46:20]Write i2c OK [10:46:20]MH_I2C_Read... [10:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:20]Read from MH i2c: E2 [10:46:20]MH_I2C_Read... [10:46:20]Read from MH i2c: E2 17 00 [10:46:20]MH_I2C_Read... [10:46:20]Read from MH i2c: E2 17 00 63 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [10:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:20]wFMCommunicate OK [10:46:20]CreateOFDProtocolMessage done [10:46:20]OFDSenderStorePacket 191353 [10:46:20]StoreOFDPacket docnum=191353 [10:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 D8 07 01 A8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 02 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EB 02 00 35 04 06 00 BF 89 E9 15 AC 49 ED CF B4 E3 5C CD D8 94 [10:46:20]CheckFolder [10:46:20]dirname=/storage/ofd_packets [10:46:20]CheckFolder done [10:46:20]ProducePacketName [10:46:20]name=ofd_packets/00191353 [10:46:20]NVStorageSaveData ofd_packets/00191353 [10:46:20]File name is /storage/ofd_packets/00191353 [10:46:20]Write 301 bytes [10:46:20]NVStorageSaveData done [10:46:20]OFDSenderStorePacket done [10:46:20]KKMCreateOFDPacket done [10:46:20]NVStorageSaveData kkm_last_timestamp [10:46:20]File name is /storage/kkm_last_timestamp [10:46:20]Write 4 bytes [10:46:20]NVStorageSaveData done [10:46:20]ExternCall_PrintAddStr [10:46:20]wPrintStart [10:46:20]Write to MH i2c: 01 00 00 64 87 EB [10:46:20]Write i2c OK [10:46:20]MH_I2C_Read... [10:46:20]Read from MH i2c: 01 [10:46:20]MH_I2C_Read... [10:46:20]Read from MH i2c: 01 07 00 [10:46:20]MH_I2C_Read... [10:46:20]Read from MH i2c: 01 07 00 64 87 00 00 00 00 00 FF 0F 00 [10:46:20]RasterBufferAndPrint [10:46:20]line Счет N : (1)30646 [10:46:20]line ИНН: 02508201610067 [10:46:20]line Контрольно-Кассовый Чек [10:46:20]line ПРОДАЖА [10:46:20]line ТРК (МРК, ГНК) : 21 [10:46:20]line Товар: 2710124130 [10:46:20]line Аи-92-К-5 [10:46:20]line 22.770 * 65.90 [10:46:20]line = 1500.54 [10:46:20]line НДС 12% НСП 1% [10:46:20]line > о реализуемом товаре [10:46:20]line ОКРУГЛЕНИЕ: -0.54 [10:46:20]line ИТОГО: 1500.00 [10:46:20]line Внесено: 1500.00 [10:46:20]line СДАЧА: 0.00 [10:46:20]line НСП 1% : 13.28 [10:46:20]line НДС 12% : 159.35 [10:46:20]line Наличными: 1500.00 [10:46:20]line Безнал.: 0.00 [10:46:20]line Место: АЗС № 170 "Партнер Нефть" [10:46:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:46:20]line СНО: Общий режим [10:46:20]line Чек 92 25.10.2024 10:46 [10:46:20]line Смена: 540 ФФД: 1.0 [10:46:20]line ЗНМ: 0300000110 [10:46:20]line РНМ: 0000000000091776 [10:46:20]line Версия ККМ: 001 [10:46:20]line [10:46:20]line Дисконтная программа [10:46:20]line АИ-92 [10:46:20]line номер 170 [10:46:20]line сэкономлено 22.77 сом [10:46:20]line ФМ: 0000000000871754 [10:46:20]line ФД: 191353 [10:46:20]line ФПД: 210599041936457 [10:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191353&fm=210599041936457&tin=02508201610067®Number=0000000000091776&sum=150000 [10:46:20]OFD Sender: Processing packet 191353 [packets to send 75, broken 74] [10:46:20]ProducePacketName [10:46:20]name=ofd_packets/00191353 [10:46:20]OFD Sender: To server: pG, [10:46:20]CommunicateWithHost lk.salyk.kg:30040 [10:46:20]ConnectInit lk.salyk.kg [10:46:20]written 0, free lines is 4095 [10:46:20]Connected sock=10 [10:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 D8 07 01 A8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 02 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EB 02 00 35 04 06 00 BF 89 E9 15 AC 49 ED CF B4 E3 5C CD D8 94 [10:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FA 16 47 00 33 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EB 02 00 F4 03 04 00 D2 1B 1B 67 B6 04 01 00 00 45 00 3C D3 34 8E 37 3B [10:46:21]CommunicateWithHost err = 0 [10:46:21]CheckOFDResponse [10:46:21]1017 (14) - 77093643461234 [10:46:21]1041 (16) - 0000000000871754 [10:46:21]1040 (4) - 191353 [10:46:21]1012 (4) - 25.10.2024 04:17 [10:46:21]1206 (1) - 0 [10:46:21]OFD Sender: Remove packet 191353 [10:46:21]ProducePacketName [10:46:21]name=ofd_packets/00191353 [10:46:21]NVStorageDeleteData [10:46:21]Write to MH i2c: 01 00 00 94 87 1B [10:46:21]Write i2c OK [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: 01 [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: 01 07 00 [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: 01 07 00 94 87 00 00 00 00 00 67 0C 95 [10:46:21]RasterBufferAndPrint [10:46:21]line [10:46:21]line [10:46:21]line [10:46:21]line [10:46:21]line [10:46:21]written 0, free lines is 3190 [10:46:21]MH_Cut [10:46:21]Write to MH i2c: D1 01 00 9B 87 01 F4 [10:46:21]Write i2c OK [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: D1 [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: D1 01 00 [10:46:21]MH_I2C_Read... [10:46:21]Read from MH i2c: D1 01 00 9B 87 00 F3 [10:46:21]Write to MH i2c: 01 00 00 9C 87 23 [10:46:21]Write i2c OK [10:46:21]MH_I2C_Read... [10:46:21]OFD Sender: No OFD packet to send [10:46:22]*** Cut start [10:46:22]*** Partial cut [10:46:22]*** CUTSNS_PIN = 1 [10:46:22]*** CUTSNS_PIN = 0 [10:46:22]*** Brake cut motor [10:46:22]Read from MH i2c: 01 [10:46:22]MH_I2C_Read... [10:46:22]*** Stop cut motor [10:46:22]*** Cut end [10:46:22]Read from MH i2c: 01 07 00 [10:46:22]MH_I2C_Read... [10:46:22]Read from MH i2c: 01 07 00 9C 87 00 00 00 00 00 FF 0F 38 [10:46:22]process_action close_receipt done [10:46:22]requested_data is exist [10:46:22]produce_requested_data [10:46:22]requested_item fm.sn is exist - process it [10:46:22]wFMCommunicate request_size=4 [10:46:22]MH_SAM_APDU [10:46:22]CAPDU: 80 11 00 00 [10:46:22]Write to MH i2c: E2 08 00 9D 87 80 11 00 00 00 00 00 00 9E [10:46:22]Write i2c OK [10:46:22]MH_I2C_Read... [10:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:22]Read from MH i2c: E2 [10:46:22]MH_I2C_Read... [10:46:22]Read from MH i2c: E2 17 00 [10:46:22]MH_I2C_Read... [10:46:22]Read from MH i2c: E2 17 00 9D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [10:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:22]wFMCommunicate OK [10:46:22]requested_item fd.num is exist - process it [10:46:22]SAM_PROTO_GetFieldsCounters [10:46:22]wFMCommunicate request_size=4 [10:46:22]MH_SAM_APDU [10:46:22]CAPDU: 80 13 00 00 [10:46:22]Write to MH i2c: E2 08 00 9E 87 80 13 00 00 00 00 00 00 A1 [10:46:22]Write i2c OK [10:46:22]MH_I2C_Read... [10:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:22]Read from MH i2c: E2 [10:46:22]MH_I2C_Read... [10:46:22]Read from MH i2c: E2 62 00 [10:46:22]MH_I2C_Read... [10:46:22]Read from MH i2c: E2 62 00 9E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EB 02 00 0E 04 04 00 1C 02 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 5F [10:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:22]wFMCommunicate OK [10:46:22]SAM_PROTO_GetFieldsCounters done [10:46:22]requested_item shift.num is exist - process it [10:46:22]requested_item shift.opened is exist - process it [10:46:22]req_shift_opened [10:46:22]FM_GetShiftState [10:46:22]SAM_PROTO_GetShiftState [10:46:22]wFMCommunicate request_size=4 [10:46:22]MH_SAM_APDU [10:46:22]CAPDU: 80 13 01 00 [10:46:22]Write to MH i2c: E2 08 00 9F 87 80 13 01 00 00 00 00 00 A3 [10:46:22]Write i2c OK [10:46:22]MH_I2C_Read... [10:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:23]Read from MH i2c: E2 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: E2 0E 00 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: E2 0E 00 9F 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 66 [10:46:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:46:23]wFMCommunicate OK [10:46:23]SAM_PROTO_GetShiftState done [10:46:23]FM_GetShiftState done [10:46:23]req_shift_opened done [10:46:23]requested_item shift.open_date is exist - process it [10:46:23]req_shift_open_date [10:46:23]req_shift_open_date done [10:46:23]produce_requested_data done [10:46:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191353,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:46:23]process_action_free close_receipt [10:46:23]json_value_free [10:46:23]json_value_free done [10:46:23]process_json_proto returns [10:46:23]Send response to host [10:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191353,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:46:23]free response buf [10:46:23]execute_script done [10:46:23]execute_script returns [10:46:23]free content buf [10:46:23]Sock 8.Close socket [10:46:23]Sock 8.Thread stoped [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:19]accept exits with 9 [10:47:19]New connection [10:47:19]New thread 3066961252 created [10:47:19]Thread 3066817892 joined [10:47:19]Waiting for new connection... [10:47:19] Sock 9.Parse request [10:47:19]Sock 9.Check first char [10:47:19]Sock 9.First char is OK [10:47:19]request: POST /json_proto HTTP/1.0 [10:47:19]Method: POST [10:47:19]URL: /json_proto [10:47:19]Method is POST - this is cgi request [10:47:19]url: /json_proto [10:47:19]query_string will be loaded in cgi processing [10:47:19]execute_cgi json_proto POST (null) [10:47:19]execute_cgi path=json_proto method=POST [10:47:19]POST find Content-Length [10:47:19]Host: 172.17.63.131:8080 [10:47:19]Content-Length: 791 [10:47:19]Content-Type: application/json [10:47:19] [10:47:19]POST finish read [10:47:19]Found Content-Length = 791 [10:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:19]execute_script... [10:47: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)30647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:19]POST & json_proto [10:47:19]process_json_proto [10:47:19]json parsed OK: [10:47:19]protocol is kg_v1.0 [10:47:19]action value=close_receipt [10:47:19]process_action close_receipt [10:47:19]cmd_close_receipt [10:47:19]MH_GetDate [10:47:19]Write to MH i2c: F0 00 00 A0 87 16 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 09 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: F0 09 00 A0 87 00 40 77 1B 67 22 05 6E 64 51 [10:47:19]GetLastDocTimeStamp 1729853186 [10:47:19]current date 1729853248 [10:47:19]FM_GetShiftState [10:47:19]SAM_PROTO_GetShiftState [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 01 00 [10:47:19]Write to MH i2c: E2 08 00 A1 87 80 13 01 00 00 00 00 00 A5 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:20]Read from MH i2c: E2 [10:47:20]MH_I2C_Read... [10:47:20]Read from MH i2c: E2 0E 00 [10:47:20]MH_I2C_Read... [10:47:20]Read from MH i2c: E2 0E 00 A1 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 68 [10:47:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:47:20]wFMCommunicate OK [10:47:20]SAM_PROTO_GetShiftState done [10:47:20]FM_GetShiftState done [10:47:20]opened in 1729816399 [10:47:20]opened+sec_in_day 1729902799 [10:47:20]quantity*price = 0 [10:47:20]sum+1 = 1 [10:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 93 25.10.2024 10:47 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Топливная Карта 00914 ФМ: 0000000000871754 ФД: 191354 ФПД: 184924990668601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191354&fm=184924990668601&tin=02508201610067®Number=0000000000091776&sum=0 [10:47:21]StoreToDocumentArchive [10:47:21]shift 540 fd 191354 [10:47:21]save to /storage/0540/doc_00191354 [10:47:21]save last doc name /storage/0540/doc_00191354 to /storage/kkm_last_doc_name [10:47:21]save OK [10:47:21]Clear old archive folders... [10:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:21]tlvbuf is 018CAC70 [10:47:21]SAM_PROTO_ClearQueue [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 09 00 00 [10:47:21]Write to MH i2c: E2 08 00 AE 87 80 09 00 00 00 00 00 00 A7 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 AE 87 00 90 00 A9 [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]SAM_PROTO_ClearQueue done [10:47:21]KKMCreateOFDPacket [10:47:21]OFDProtocolAddRootSTLVToBuf [10:47:21]FM_MakeSignedData [10:47:21]FM_MakeSignedData [10:47:21]SAM_PROTO_SignData [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 01 02 [10:47:21]Write to MH i2c: E2 08 00 AF 87 80 0D 01 02 00 00 00 00 AF [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 AF 87 00 90 00 AA [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]wFMCommunicate request_size=255 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 40 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EB 02 00 35 04 06 00 A8 [10:47:21]Write to MH i2c: E2 02 01 B0 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 40 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EB 02 00 35 04 06 00 A8 00 00 B8 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 B0 87 00 90 00 AB [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]wFMCommunicate request_size=10 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 02 02 05 30 34 60 FF 39 [10:47:21]Write to MH i2c: E2 0D 00 B1 87 80 0D 02 02 05 00 30 34 60 FF 39 00 00 B8 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 03 00 B1 87 00 90 00 AC [10:47:21]RAPDU: 90 00 [10:47:21]wFMCommunicate OK [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 0D 03 02 [10:47:21]Write to MH i2c: E2 08 00 B2 87 80 0D 03 02 00 00 00 00 B4 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0B 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0B 00 B2 87 00 BD 76 8B D1 20 CB 9A D6 90 00 9F [10:47:21]RAPDU: BD 76 8B D1 20 CB 9A D6 90 00 [10:47:21]wFMCommunicate OK [10:47:21]SAM_PROTO_SignData done [10:47:21]FM_MakeSignedData done [10:47:21]CreateOFDProtocolMessage [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 11 00 00 [10:47:21]Write to MH i2c: E2 08 00 B3 87 80 11 00 00 00 00 00 00 B4 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]OFD Sender: No OFD packet to send [10:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 17 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 17 00 B3 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [10:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:47:21]wFMCommunicate OK [10:47:21]CreateOFDProtocolMessage done [10:47:21]OFDSenderStorePacket 191354 [10:47:21]StoreOFDPacket docnum=191354 [10:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 AA 07 01 C4 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 40 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EB 02 00 35 04 06 00 A8 30 34 60 FF 39 BD 76 8B D1 20 CB 9A D6 [10:47:21]CheckFolder [10:47:21]dirname=/storage/ofd_packets [10:47:21]CheckFolder done [10:47:21]ProducePacketName [10:47:21]name=ofd_packets/00191354 [10:47:21]NVStorageSaveData ofd_packets/00191354 [10:47:21]File name is /storage/ofd_packets/00191354 [10:47:21]Write 301 bytes [10:47:21]NVStorageSaveData done [10:47:21]OFDSenderStorePacket done [10:47:21]KKMCreateOFDPacket done [10:47:21]NVStorageSaveData kkm_last_timestamp [10:47:21]File name is /storage/kkm_last_timestamp [10:47:21]Write 4 bytes [10:47:21]NVStorageSaveData done [10:47:21]ExternCall_PrintAddStr [10:47:21]wPrintStart [10:47:21]Write to MH i2c: 01 00 00 B4 87 3B [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: 01 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: 01 07 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: 01 07 00 B4 87 00 00 00 00 00 FF 0F 50 [10:47:21]RasterBufferAndPrint [10:47:21]line Счет N : (1)30647 [10:47:21]line ИНН: 02508201610067 [10:47:21]line Контрольно-Кассовый Чек [10:47:21]line ПРОДАЖА [10:47:21]line ТРК (МРК, ГНК) : 12 [10:47:21]line Товар: 2710124130 [10:47:21]line Аи-92-К-5 [10:47:21]line 10.000 * 0.00 [10:47:21]line = 0.00 [10:47:21]line НДС 12% НСП 1% [10:47:21]line > о реализуемом товаре [10:47:21]line ИТОГО: 0.00 [10:47:21]line НСП 1% : 0.00 [10:47:21]line НДС 12% : 0.00 [10:47:21]line Наличными: 0.00 [10:47:21]line Безнал.: 0.00 [10:47:21]line Место: АЗС № 170 "Партнер Нефть" [10:47:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:47:21]line СНО: Общий режим [10:47:21]line Чек 93 25.10.2024 10:47 [10:47:21]line Смена: 540 ФФД: 1.0 [10:47:21]line ЗНМ: 0300000110 [10:47:21]line РНМ: 0000000000091776 [10:47:21]line Версия ККМ: 001 [10:47:21]line Талоны: Топливная Карта [10:47:21]line 00914 [10:47:21]line ФМ: 0000000000871754 [10:47:21]line ФД: 191354 [10:47:21]line ФПД: 184924990668601 [10:47:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191354&fm=184924990668601&tin=02508201610067®Number=0000000000091776&sum=0 [10:47:21]OFD Sender: Processing packet 191354 [packets to send 75, broken 74] [10:47:21]ProducePacketName [10:47:21]name=ofd_packets/00191354 [10:47:21]OFD Sender: To server: pG, [10:47:21]CommunicateWithHost lk.salyk.kg:30040 [10:47:21]ConnectInit lk.salyk.kg [10:47:21]written 0, free lines is 4095 [10:47:22]Connected sock=10 [10:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 AA 07 01 C4 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 40 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EB 02 00 35 04 06 00 A8 30 34 60 FF 39 BD 76 8B D1 20 CB 9A D6 [10:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF 2F 47 00 11 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EB 02 00 F4 03 04 00 0F 1C 1B 67 B6 04 01 00 00 00 14 F1 B9 D3 C0 AA 22 [10:47:22]CommunicateWithHost err = 0 [10:47:22]CheckOFDResponse [10:47:22]1017 (14) - 77093643461234 [10:47:22]1041 (16) - 0000000000871754 [10:47:22]1040 (4) - 191354 [10:47:22]1012 (4) - 25.10.2024 04:18 [10:47:22]1206 (1) - 0 [10:47:22]OFD Sender: Remove packet 191354 [10:47:22]ProducePacketName [10:47:22]name=ofd_packets/00191354 [10:47:22]NVStorageDeleteData [10:47:22]Write to MH i2c: 01 00 00 DE 87 65 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 DE 87 00 00 00 00 00 B4 0C 2C [10:47:22]RasterBufferAndPrint [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]written 0, free lines is 3258 [10:47:22]MH_Cut [10:47:22]Write to MH i2c: D1 01 00 E5 87 01 3E [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 01 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 01 00 E5 87 00 3D [10:47:22]Write to MH i2c: 01 00 00 E6 87 6D [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]OFD Sender: No OFD packet to send [10:47:23]*** Cut start [10:47:23]*** Partial cut [10:47:23]*** CUTSNS_PIN = 1 [10:47:23]*** CUTSNS_PIN = 0 [10:47:23]*** Brake cut motor [10:47:23]Read from MH i2c: 01 [10:47:23]MH_I2C_Read... [10:47:23]*** Stop cut motor [10:47:23]*** Cut end [10:47:23]Read from MH i2c: 01 07 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 E6 87 00 00 00 00 00 FF 0F 82 [10:47:23]process_action close_receipt done [10:47:23]requested_data is exist [10:47:23]produce_requested_data [10:47:23]requested_item fm.sn is exist - process it [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 11 00 00 [10:47:23]Write to MH i2c: E2 08 00 E7 87 80 11 00 00 00 00 00 00 E8 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 E7 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [10:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:47:23]wFMCommunicate OK [10:47:23]requested_item fd.num is exist - process it [10:47:23]SAM_PROTO_GetFieldsCounters [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 13 00 00 [10:47:23]Write to MH i2c: E2 08 00 E8 87 80 13 00 00 00 00 00 00 EB [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 62 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 62 00 E8 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EB 02 00 0E 04 04 00 1C 02 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 AD [10:47:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:24]wFMCommunicate OK [10:47:24]SAM_PROTO_GetFieldsCounters done [10:47:24]requested_item shift.num is exist - process it [10:47:24]requested_item shift.opened is exist - process it [10:47:24]req_shift_opened [10:47:24]FM_GetShiftState [10:47:24]SAM_PROTO_GetShiftState [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 13 01 00 [10:47:24]Write to MH i2c: E2 08 00 E9 87 80 13 01 00 00 00 00 00 ED [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:24]Read from MH i2c: E2 0E 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 0E 00 E9 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B0 [10:47:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:47:24]wFMCommunicate OK [10:47:24]SAM_PROTO_GetShiftState done [10:47:24]FM_GetShiftState done [10:47:24]req_shift_opened done [10:47:24]requested_item shift.open_date is exist - process it [10:47:24]req_shift_open_date [10:47:24]req_shift_open_date done [10:47:24]produce_requested_data done [10:47:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191354,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:47:24]process_action_free close_receipt [10:47:24]json_value_free [10:47:24]json_value_free done [10:47:24]process_json_proto returns [10:47:24]Send response to host [10:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191354,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:47:24]free response buf [10:47:24]execute_script done [10:47:24]execute_script returns [10:47:24]free content buf [10:47:24]Sock 9.Close socket [10:47:24]Sock 9.Thread stoped [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]accept exits with 8 [10:48:57]New connection [10:48:57]New thread 3066817892 created [10:48:57]Thread 3066961252 joined [10:48:57]Waiting for new connection... [10:48:57] Sock 8.Parse request [10:48:57]Sock 8.Check first char [10:48:57]Sock 8.First char is OK [10:48:57]request: POST /json_proto HTTP/1.0 [10:48:57]Method: POST [10:48:57]URL: /json_proto [10:48:57]Method is POST - this is cgi request [10:48:57]url: /json_proto [10:48:57]query_string will be loaded in cgi processing [10:48:57]execute_cgi json_proto POST (null) [10:48:57]execute_cgi path=json_proto method=POST [10:48:57]POST find Content-Length [10:48:57]Host: 172.17.63.131:8080 [10:48:57]Content-Length: 676 [10:48:57]Content-Type: application/json [10:48:57] [10:48:57]POST finish read [10:48:57]Found Content-Length = 676 [10:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:57]execute_script... [10:48: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)30648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:57]POST & json_proto [10:48:57]process_json_proto [10:48:57]json parsed OK: [10:48:57]protocol is kg_v1.0 [10:48:57]action value=close_receipt [10:48:57]process_action close_receipt [10:48:57]cmd_close_receipt [10:48:57]MH_GetDate [10:48:57]Write to MH i2c: F0 00 00 EA 87 60 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: F0 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: F0 09 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: F0 09 00 EA 87 00 A1 77 1B 67 22 05 6E 64 FC [10:48:57]GetLastDocTimeStamp 1729853248 [10:48:57]current date 1729853345 [10:48:57]FM_GetShiftState [10:48:57]SAM_PROTO_GetShiftState [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 13 01 00 [10:48:57]Write to MH i2c: E2 08 00 EB 87 80 13 01 00 00 00 00 00 EF [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0E 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0E 00 EB 87 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B2 [10:48:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_GetShiftState done [10:48:57]FM_GetShiftState done [10:48:57]opened in 1729816399 [10:48:57]opened+sec_in_day 1729902799 [10:48:57]quantity*price = 30038 [10:48:57]sum+1 = 30039 [10:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 94 25.10.2024 10:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191355 ФПД: 18165393940837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191355&fm=18165393940837&tin=02508201610067®Number=0000000000091776&sum=30000 [10:48:58]StoreToDocumentArchive [10:48:58]shift 540 fd 191355 [10:48:58]save to /storage/0540/doc_00191355 [10:48:58]save last doc name /storage/0540/doc_00191355 to /storage/kkm_last_doc_name [10:48:58]save OK [10:48:58]Clear old archive folders... [10:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:58]tlvbuf is 01600B20 [10:48:58]SAM_PROTO_ClearQueue [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 09 00 00 [10:48:58]Write to MH i2c: E2 08 00 F8 87 80 09 00 00 00 00 00 00 F1 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 F8 87 00 90 00 F3 [10:48:58]RAPDU: 90 00 [10:48:58]wFMCommunicate OK [10:48:58]SAM_PROTO_ClearQueue done [10:48:58]KKMCreateOFDPacket [10:48:58]OFDProtocolAddRootSTLVToBuf [10:48:58]FM_MakeSignedData [10:48:58]FM_MakeSignedData [10:48:58]SAM_PROTO_SignData [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 0D 01 02 [10:48:58]Write to MH i2c: E2 08 00 F9 87 80 0D 01 02 00 00 00 00 F9 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 F9 87 00 90 00 F4 [10:48:58]RAPDU: 90 00 [10:48:58]wFMCommunicate OK [10:48:58]wFMCommunicate request_size=255 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A1 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EB 02 00 35 04 06 00 10 [10:48:58]Write to MH i2c: E2 02 01 FA 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A1 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EB 02 00 35 04 06 00 10 00 00 0F [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 FA 87 00 90 00 F5 [10:48:58]RAPDU: 90 00 [10:48:58]wFMCommunicate OK [10:48:58]wFMCommunicate request_size=10 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 0D 02 02 05 85 75 DA 61 65 [10:48:58]Write to MH i2c: E2 0D 00 FB 87 80 0D 02 02 05 00 85 75 DA 61 65 00 00 A0 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 03 00 FB 87 00 90 00 F6 [10:48:58]RAPDU: 90 00 [10:48:58]wFMCommunicate OK [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 0D 03 02 [10:48:58]Write to MH i2c: E2 08 00 FC 87 80 0D 03 02 00 00 00 00 FE [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 0B 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 0B 00 FC 87 00 50 DC 49 ED E9 8B B0 D1 90 00 56 [10:48:58]RAPDU: 50 DC 49 ED E9 8B B0 D1 90 00 [10:48:58]wFMCommunicate OK [10:48:58]SAM_PROTO_SignData done [10:48:58]FM_MakeSignedData done [10:48:58]CreateOFDProtocolMessage [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 11 00 00 [10:48:58]Write to MH i2c: E2 08 00 FD 87 80 11 00 00 00 00 00 00 FE [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 17 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 17 00 FD 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [10:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:48:58]wFMCommunicate OK [10:48:58]CreateOFDProtocolMessage done [10:48:58]OFDSenderStorePacket 191355 [10:48:58]StoreOFDPacket docnum=191355 [10:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 79 07 01 17 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A1 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EB 02 00 35 04 06 00 10 85 75 DA 61 65 50 DC 49 ED E9 8B B0 D1 [10:48:58]CheckFolder [10:48:58]dirname=/storage/ofd_packets [10:48:58]CheckFolder done [10:48:58]ProducePacketName [10:48:58]name=ofd_packets/00191355 [10:48:58]NVStorageSaveData ofd_packets/00191355 [10:48:58]File name is /storage/ofd_packets/00191355 [10:48:58]Write 301 bytes [10:48:58]NVStorageSaveData done [10:48:58]OFDSenderStorePacket done [10:48:58]KKMCreateOFDPacket done [10:48:58]NVStorageSaveData kkm_last_timestamp [10:48:58]File name is /storage/kkm_last_timestamp [10:48:58]Write 4 bytes [10:48:58]NVStorageSaveData done [10:48:58]ExternCall_PrintAddStr [10:48:58]wPrintStart [10:48:58]Write to MH i2c: 01 00 00 FE 87 85 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 FE 87 00 00 00 00 00 FF 0F 9A [10:48:58]RasterBufferAndPrint [10:48:58]line Счет N : (1)30648 [10:48:58]line ИНН: 02508201610067 [10:48:58]line Контрольно-Кассовый Чек [10:48:58]line ПРОДАЖА [10:48:58]line ТРК (МРК, ГНК) : 21 [10:48:58]line Товар: 2710124130 [10:48:58]line Аи-92-К-5 [10:48:58]line 4.490 * 66.90 [10:48:58]line = 300.38 [10:48:58]line НДС 12% НСП 1% [10:48:58]line > о реализуемом товаре [10:48:58]line ОКРУГЛЕНИЕ: -0.38 [10:48:58]line ИТОГО: 300.00 [10:48:58]line Внесено: 300.00 [10:48:58]line СДАЧА: 0.00 [10:48:58]line НСП 1% : 2.66 [10:48:58]line НДС 12% : 31.90 [10:48:58]line Наличными: 300.00 [10:48:58]line Безнал.: 0.00 [10:48:58]line Место: АЗС № 170 "Партнер Нефть" [10:48:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:48:58]line СНО: Общий режим [10:48:58]line Чек 94 25.10.2024 10:49 [10:48:58]line Смена: 540 ФФД: 1.0 [10:48:58]line ЗНМ: 0300000110 [10:48:58]line РНМ: 0000000000091776 [10:48:58]line Версия ККМ: 001 [10:48:58]line ФМ: 0000000000871754 [10:48:58]line ФД: 191355 [10:48:58]line ФПД: 18165393940837 [10:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191355&fm=18165393940837&tin=02508201610067®Number=0000000000091776&sum=30000 [10:48:59]OFD Sender: Processing packet 191355 [packets to send 75, broken 74] [10:48:59]ProducePacketName [10:48:59]name=ofd_packets/00191355 [10:48:59]OFD Sender: To server: pG, [10:48:59]CommunicateWithHost lk.salyk.kg:30040 [10:48:59]ConnectInit lk.salyk.kg [10:48:59]written 0, free lines is 4095 [10:48:59]Connected sock=10 [10:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 79 07 01 17 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A1 77 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EB 02 00 35 04 06 00 10 85 75 DA 61 65 50 DC 49 ED E9 8B B0 D1 [10:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 DF 47 00 D6 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EB 02 00 F4 03 04 00 70 1C 1B 67 B6 04 01 00 00 D3 F3 2B 2B 9A 18 A1 8E [10:48:59]CommunicateWithHost err = 0 [10:48:59]CheckOFDResponse [10:48:59]1017 (14) - 77093643461234 [10:48:59]1041 (16) - 0000000000871754 [10:48:59]1040 (4) - 191355 [10:48:59]1012 (4) - 25.10.2024 04:20 [10:48:59]1206 (1) - 0 [10:48:59]OFD Sender: Remove packet 191355 [10:48:59]ProducePacketName [10:48:59]name=ofd_packets/00191355 [10:48:59]NVStorageDeleteData [10:48:59]Write to MH i2c: 01 00 00 29 88 B1 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 29 88 00 00 00 00 00 A6 0C 6A [10:48:59]RasterBufferAndPrint [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]line [10:48:59]written 0, free lines is 3243 [10:48:59]MH_Cut [10:48:59]Write to MH i2c: D1 01 00 30 88 01 8A [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: D1 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: D1 01 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: D1 01 00 30 88 00 89 [10:48:59]Write to MH i2c: 01 00 00 31 88 B9 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:49:00]OFD Sender: No OFD packet to send [10:49:00]*** Cut start [10:49:00]*** Partial cut [10:49:00]*** CUTSNS_PIN = 1 [10:49:00]*** CUTSNS_PIN = 0 [10:49:00]*** Brake cut motor [10:49:01]Read from MH i2c: 01 [10:49:01]MH_I2C_Read... [10:49:01]*** Stop cut motor [10:49:01]*** Cut end [10:49:01]Read from MH i2c: 01 07 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: 01 07 00 31 88 00 00 00 00 00 FF 0F CE [10:49:01]process_action close_receipt done [10:49:01]requested_data is exist [10:49:01]produce_requested_data [10:49:01]requested_item fm.sn is exist - process it [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 11 00 00 [10:49:01]Write to MH i2c: E2 08 00 32 88 80 11 00 00 00 00 00 00 34 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 17 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 17 00 32 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [10:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:49:01]wFMCommunicate OK [10:49:01]requested_item fd.num is exist - process it [10:49:01]SAM_PROTO_GetFieldsCounters [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 00 00 [10:49:01]Write to MH i2c: E2 08 00 33 88 80 13 00 00 00 00 00 00 37 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 62 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 62 00 33 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EB 02 00 0E 04 04 00 1C 02 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 FD [10:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetFieldsCounters done [10:49:01]requested_item shift.num is exist - process it [10:49:01]requested_item shift.opened is exist - process it [10:49:01]req_shift_opened [10:49:01]FM_GetShiftState [10:49:01]SAM_PROTO_GetShiftState [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 01 00 [10:49:01]Write to MH i2c: E2 08 00 34 88 80 13 01 00 00 00 00 00 39 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 34 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FC [10:49:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetShiftState done [10:49:01]FM_GetShiftState done [10:49:01]req_shift_opened done [10:49:01]requested_item shift.open_date is exist - process it [10:49:01]req_shift_open_date [10:49:01]req_shift_open_date done [10:49:01]produce_requested_data done [10:49:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191355,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:49:01]process_action_free close_receipt [10:49:01]json_value_free [10:49:01]json_value_free done [10:49:01]process_json_proto returns [10:49:01]Send response to host [10:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191355,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:49:01]free response buf [10:49:01]execute_script done [10:49:01]execute_script returns [10:49:01]free content buf [10:49:01]Sock 8.Close socket [10:49:01]Sock 8.Thread stoped [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:26]accept exits with 9 [10:54:26]New connection [10:54:26]New thread 3066961252 created [10:54:26]Thread 3066817892 joined [10:54:26]Waiting for new connection... [10:54:26] Sock 9.Parse request [10:54:26]Sock 9.Check first char [10:54:26]Sock 9.First char is OK [10:54:26]request: POST /json_proto HTTP/1.0 [10:54:26]Method: POST [10:54:26]URL: /json_proto [10:54:26]Method is POST - this is cgi request [10:54:26]url: /json_proto [10:54:26]query_string will be loaded in cgi processing [10:54:26]execute_cgi json_proto POST (null) [10:54:26]execute_cgi path=json_proto method=POST [10:54:26]POST find Content-Length [10:54:26]Host: 172.17.63.131:8080 [10:54:26]Content-Length: 678 [10:54:26]Content-Type: application/json [10:54:26] [10:54:26]POST finish read [10:54:26]Found Content-Length = 678 [10:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:26]execute_script... [10:54: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)30649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:26]POST & json_proto [10:54:26]process_json_proto [10:54:26]json parsed OK: [10:54:26]protocol is kg_v1.0 [10:54:26]action value=close_receipt [10:54:26]process_action close_receipt [10:54:26]cmd_close_receipt [10:54:26]MH_GetDate [10:54:26]Write to MH i2c: F0 00 00 35 88 AC [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 35 88 00 EA 78 1B 67 22 05 6E 64 92 [10:54:26]GetLastDocTimeStamp 1729853345 [10:54:26]current date 1729853674 [10:54:26]FM_GetShiftState [10:54:26]SAM_PROTO_GetShiftState [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 13 01 00 [10:54:26]Write to MH i2c: E2 08 00 36 88 80 13 01 00 00 00 00 00 3B [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 36 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FE [10:54:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:54:26]wFMCommunicate OK [10:54:26]SAM_PROTO_GetShiftState done [10:54:26]FM_GetShiftState done [10:54:26]opened in 1729816399 [10:54:26]opened+sec_in_day 1729902799 [10:54:26]quantity*price = 100050 [10:54:26]sum+1 = 100052 [10:54: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 95 25.10.2024 10:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191356 ФПД: 173943022552317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191356&fm=173943022552317&tin=02508201610067®Number=0000000000091776&sum=100000 [10:54:27]StoreToDocumentArchive [10:54:27]shift 540 fd 191356 [10:54:27]save to /storage/0540/doc_00191356 [10:54:27]save last doc name /storage/0540/doc_00191356 to /storage/kkm_last_doc_name [10:54:27]save OK [10:54:27]Clear old archive folders... [10:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:27]tlvbuf is 01831750 [10:54:27]SAM_PROTO_ClearQueue [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 09 00 00 [10:54:27]Write to MH i2c: E2 08 00 43 88 80 09 00 00 00 00 00 00 3D [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 43 88 00 90 00 3F [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]SAM_PROTO_ClearQueue done [10:54:27]KKMCreateOFDPacket [10:54:27]OFDProtocolAddRootSTLVToBuf [10:54:27]FM_MakeSignedData [10:54:27]FM_MakeSignedData [10:54:27]SAM_PROTO_SignData [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 01 02 [10:54:27]Write to MH i2c: E2 08 00 44 88 80 0D 01 02 00 00 00 00 45 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 44 88 00 90 00 40 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=255 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 EA 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EB 02 00 35 04 06 00 9E 33 44 12 [10:54:27]Write to MH i2c: E2 02 01 45 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EA 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EB 02 00 35 04 06 00 9E 33 44 12 00 00 C0 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 45 88 00 90 00 41 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=7 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 02 02 02 04 FD [10:54:27]Write to MH i2c: E2 0A 00 46 88 80 0D 02 02 02 00 04 FD 00 00 4D [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 46 88 00 90 00 42 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 03 02 [10:54:27]Write to MH i2c: E2 08 00 47 88 80 0D 03 02 00 00 00 00 4A [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0B 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0B 00 47 88 00 D6 02 E4 A8 83 ED 0B E8 90 00 12 [10:54:27]RAPDU: D6 02 E4 A8 83 ED 0B E8 90 00 [10:54:27]wFMCommunicate OK [10:54:27]SAM_PROTO_SignData done [10:54:27]FM_MakeSignedData done [10:54:27]CreateOFDProtocolMessage [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 11 00 00 [10:54:27]Write to MH i2c: E2 08 00 48 88 80 11 00 00 00 00 00 00 4A [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 48 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [10:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:27]wFMCommunicate OK [10:54:27]CreateOFDProtocolMessage done [10:54:27]OFDSenderStorePacket 191356 [10:54:27]StoreOFDPacket docnum=191356 [10:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 6C 04 01 26 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EA 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EB 02 00 35 04 06 00 9E 33 44 12 04 FD D6 02 E4 A8 83 ED 0B E8 [10:54:27]CheckFolder [10:54:27]dirname=/storage/ofd_packets [10:54:27]CheckFolder done [10:54:27]ProducePacketName [10:54:27]name=ofd_packets/00191356 [10:54:27]NVStorageSaveData ofd_packets/00191356 [10:54:27]File name is /storage/ofd_packets/00191356 [10:54:27]Write 298 bytes [10:54:27]NVStorageSaveData done [10:54:27]OFDSenderStorePacket done [10:54:27]KKMCreateOFDPacket done [10:54:27]NVStorageSaveData kkm_last_timestamp [10:54:27]File name is /storage/kkm_last_timestamp [10:54:27]Write 4 bytes [10:54:27]NVStorageSaveData done [10:54:27]ExternCall_PrintAddStr [10:54:27]wPrintStart [10:54:27]Write to MH i2c: 01 00 00 49 88 D1 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 07 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 07 00 49 88 00 00 00 00 00 FF 0F E6 [10:54:27]RasterBufferAndPrint [10:54:27]line Счет N : (1)30649 [10:54:27]line ИНН: 02508201610067 [10:54:27]line Контрольно-Кассовый Чек [10:54:27]line ПРОДАЖА [10:54:27]line ТРК (МРК, ГНК) : 11 [10:54:27]line Товар: 2710194210 [10:54:27]line ДТ-К-5 [10:54:27]line 13.130 * 76.20 [10:54:27]line = 1000.51 [10:54:27]line НДС 12% НСП 1% [10:54:27]line > о реализуемом товаре [10:54:27]line ОКРУГЛЕНИЕ: -0.51 [10:54:27]line ИТОГО: 1000.00 [10:54:27]line Внесено: 1000.00 [10:54:27]line СДАЧА: 0.00 [10:54:27]line НСП 1% : 8.85 [10:54:27]line НДС 12% : 106.25 [10:54:27]line Наличными: 1000.00 [10:54:27]line Безнал.: 0.00 [10:54:27]line Место: АЗС № 170 "Партнер Нефть" [10:54:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:54:27]line СНО: Общий режим [10:54:27]line Чек 95 25.10.2024 10:54 [10:54:27]line Смена: 540 ФФД: 1.0 [10:54:27]line ЗНМ: 0300000110 [10:54:27]line РНМ: 0000000000091776 [10:54:27]line Версия ККМ: 001 [10:54:27]line ФМ: 0000000000871754 [10:54:27]line ФД: 191356 [10:54:27]line ФПД: 173943022552317 [10:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191356&fm=173943022552317&tin=02508201610067®Number=0000000000091776&sum=100000 [10:54:28]OFD Sender: Processing packet 191356 [packets to send 75, broken 74] [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00191356 [10:54:28]OFD Sender: To server: pG, [10:54:28]CommunicateWithHost lk.salyk.kg:30040 [10:54:28]ConnectInit lk.salyk.kg [10:54:28]written 0, free lines is 4095 [10:54:28]Connected sock=10 [10:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 6C 04 01 26 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EA 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EB 02 00 35 04 06 00 9E 33 44 12 04 FD D6 02 E4 A8 83 ED 0B E8 [10:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 92 47 00 DB 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EB 02 00 F4 03 04 00 B9 1D 1B 67 B6 04 01 00 00 D2 89 E0 2C 54 16 6A BC [10:54:28]CommunicateWithHost err = 0 [10:54:28]CheckOFDResponse [10:54:28]1017 (14) - 77093643461234 [10:54:28]1041 (16) - 0000000000871754 [10:54:28]1040 (4) - 191356 [10:54:28]1012 (4) - 25.10.2024 04:25 [10:54:28]1206 (1) - 0 [10:54:28]OFD Sender: Remove packet 191356 [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00191356 [10:54:28]NVStorageDeleteData [10:54:28]Write to MH i2c: 01 00 00 74 88 FC [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 74 88 00 00 00 00 00 B6 0C C5 [10:54:28]RasterBufferAndPrint [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]written 0, free lines is 3262 [10:54:28]MH_Cut [10:54:28]Write to MH i2c: D1 01 00 7B 88 01 D5 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 01 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 01 00 7B 88 00 D4 [10:54:28]Write to MH i2c: 01 00 00 7C 88 04 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]OFD Sender: No OFD packet to send [10:54:29]*** Cut start [10:54:29]*** Partial cut [10:54:29]*** CUTSNS_PIN = 1 [10:54:29]*** CUTSNS_PIN = 0 [10:54:29]*** Brake cut motor [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]*** Stop cut motor [10:54:30]*** Cut end [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 7C 88 00 00 00 00 00 FF 0F 19 [10:54:30]process_action close_receipt done [10:54:30]requested_data is exist [10:54:30]produce_requested_data [10:54:30]requested_item fm.sn is exist - process it [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 11 00 00 [10:54:30]Write to MH i2c: E2 08 00 7D 88 80 11 00 00 00 00 00 00 7F [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 7D 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [10:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:30]wFMCommunicate OK [10:54:30]requested_item fd.num is exist - process it [10:54:30]SAM_PROTO_GetFieldsCounters [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 00 00 [10:54:30]Write to MH i2c: E2 08 00 7E 88 80 13 00 00 00 00 00 00 82 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 62 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 62 00 7E 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EB 02 00 0E 04 04 00 1C 02 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 4C [10:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_GetFieldsCounters done [10:54:30]requested_item shift.num is exist - process it [10:54:30]requested_item shift.opened is exist - process it [10:54:30]req_shift_opened [10:54:30]FM_GetShiftState [10:54:30]SAM_PROTO_GetShiftState [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 01 00 [10:54:30]Write to MH i2c: E2 08 00 7F 88 80 13 01 00 00 00 00 00 84 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 7F 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 47 [10:54:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_GetShiftState done [10:54:30]FM_GetShiftState done [10:54:30]req_shift_opened done [10:54:30]requested_item shift.open_date is exist - process it [10:54:30]req_shift_open_date [10:54:30]req_shift_open_date done [10:54:30]produce_requested_data done [10:54:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191356,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:54:30]process_action_free close_receipt [10:54:30]json_value_free [10:54:30]json_value_free done [10:54:30]process_json_proto returns [10:54:30]Send response to host [10:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191356,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:54:30]free response buf [10:54:30]execute_script done [10:54:30]execute_script returns [10:54:30]free content buf [10:54:30]Sock 9.Close socket [10:54:30]Sock 9.Thread stoped [10:54:30]accept exits with 8 [10:54:30]New connection [10:54:30]New thread 3066817892 created [10:54:30]Thread 3066961252 joined [10:54:30]Waiting for new connection... [10:54:30] Sock 8.Parse request [10:54:30]Sock 8.Check first char [10:54:30]Sock 8.First char is OK [10:54:30]request: POST /json_proto HTTP/1.0 [10:54:30]Method: POST [10:54:30]URL: /json_proto [10:54:30]Method is POST - this is cgi request [10:54:30]url: /json_proto [10:54:30]query_string will be loaded in cgi processing [10:54:30]execute_cgi json_proto POST (null) [10:54:30]execute_cgi path=json_proto method=POST [10:54:30]POST find Content-Length [10:54:30]Host: 172.17.63.131:8080 [10:54:30]Content-Length: 677 [10:54:30]Content-Type: application/json [10:54:30] [10:54:30]POST finish read [10:54:30]Found Content-Length = 677 [10:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:30]execute_script... [10:54: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)30650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:30]POST & json_proto [10:54:30]process_json_proto [10:54:30]json parsed OK: [10:54:30]protocol is kg_v1.0 [10:54:30]action value=close_receipt [10:54:30]process_action close_receipt [10:54:30]cmd_close_receipt [10:54:30]MH_GetDate [10:54:30]Write to MH i2c: F0 00 00 80 88 F7 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: F0 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: F0 09 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: F0 09 00 80 88 00 EF 78 1B 67 22 05 6E 64 E2 [10:54:30]GetLastDocTimeStamp 1729853674 [10:54:30]current date 1729853679 [10:54:30]FM_GetShiftState [10:54:30]SAM_PROTO_GetShiftState [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 01 00 [10:54:30]Write to MH i2c: E2 08 00 81 88 80 13 01 00 00 00 00 00 86 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 81 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 49 [10:54:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_GetShiftState done [10:54:30]FM_GetShiftState done [10:54:30]opened in 1729816399 [10:54:30]opened+sec_in_day 1729902799 [10:54:30]quantity*price = 70044 [10:54:30]sum+1 = 70045 [10:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 96 25.10.2024 10:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191357 ФПД: 74069589516604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105439&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191357&fm=74069589516604&tin=02508201610067®Number=0000000000091776&sum=70000 [10:54:32]StoreToDocumentArchive [10:54:32]shift 540 fd 191357 [10:54:32]save to /storage/0540/doc_00191357 [10:54:32]save last doc name /storage/0540/doc_00191357 to /storage/kkm_last_doc_name [10:54:32]save OK [10:54:32]Clear old archive folders... [10:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:32]tlvbuf is B6EC35D0 [10:54:32]SAM_PROTO_ClearQueue [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 09 00 00 [10:54:32]Write to MH i2c: E2 08 00 8E 88 80 09 00 00 00 00 00 00 88 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 8E 88 00 90 00 8A [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]SAM_PROTO_ClearQueue done [10:54:32]KKMCreateOFDPacket [10:54:32]OFDProtocolAddRootSTLVToBuf [10:54:32]FM_MakeSignedData [10:54:32]FM_MakeSignedData [10:54:32]SAM_PROTO_SignData [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 01 02 [10:54:32]Write to MH i2c: E2 08 00 8F 88 80 0D 01 02 00 00 00 00 90 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 8F 88 00 90 00 8B [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]wFMCommunicate request_size=255 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EF 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EB 02 00 35 04 06 00 43 [10:54:32]Write to MH i2c: E2 02 01 90 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EF 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EB 02 00 35 04 06 00 43 00 00 48 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 90 88 00 90 00 8C [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]wFMCommunicate request_size=10 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 02 02 05 5D AB 92 61 3C [10:54:32]Write to MH i2c: E2 0D 00 91 88 80 0D 02 02 05 00 5D AB 92 61 3C 00 00 D4 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 91 88 00 90 00 8D [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 03 02 [10:54:32]Write to MH i2c: E2 08 00 92 88 80 0D 03 02 00 00 00 00 95 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 0B 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 0B 00 92 88 00 3A D4 7D 2E A1 B5 ED 2E 90 00 C0 [10:54:32]RAPDU: 3A D4 7D 2E A1 B5 ED 2E 90 00 [10:54:32]wFMCommunicate OK [10:54:32]SAM_PROTO_SignData done [10:54:32]FM_MakeSignedData done [10:54:32]CreateOFDProtocolMessage [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 11 00 00 [10:54:32]Write to MH i2c: E2 08 00 93 88 80 11 00 00 00 00 00 00 95 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 17 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 17 00 93 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [10:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:32]wFMCommunicate OK [10:54:32]CreateOFDProtocolMessage done [10:54:32]OFDSenderStorePacket 191357 [10:54:32]StoreOFDPacket docnum=191357 [10:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 09 07 01 95 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EF 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EB 02 00 35 04 06 00 43 5D AB 92 61 3C 3A D4 7D 2E A1 B5 ED 2E [10:54:32]CheckFolder [10:54:32]dirname=/storage/ofd_packets [10:54:32]CheckFolder done [10:54:32]ProducePacketName [10:54:32]name=ofd_packets/00191357 [10:54:32]NVStorageSaveData ofd_packets/00191357 [10:54:32]File name is /storage/ofd_packets/00191357 [10:54:32]Write 301 bytes [10:54:32]NVStorageSaveData done [10:54:32]OFDSenderStorePacket done [10:54:32]KKMCreateOFDPacket done [10:54:32]NVStorageSaveData kkm_last_timestamp [10:54:32]File name is /storage/kkm_last_timestamp [10:54:32]Write 4 bytes [10:54:32]NVStorageSaveData done [10:54:32]ExternCall_PrintAddStr [10:54:32]wPrintStart [10:54:32]Write to MH i2c: 01 00 00 94 88 1C [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: 01 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: 01 07 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: 01 07 00 94 88 00 00 00 00 00 FF 0F 31 [10:54:32]RasterBufferAndPrint [10:54:32]line Счет N : (1)30650 [10:54:32]line ИНН: 02508201610067 [10:54:32]line Контрольно-Кассовый Чек [10:54:32]line ПРОДАЖА [10:54:32]line ТРК (МРК, ГНК) : 12 [10:54:32]line Товар: 2710124130 [10:54:32]line Аи-92-К-5 [10:54:32]line 10.470 * 66.90 [10:54:32]line = 700.44 [10:54:32]line НДС 12% НСП 1% [10:54:32]line > о реализуемом товаре [10:54:32]line ОКРУГЛЕНИЕ: -0.44 [10:54:32]line ИТОГО: 700.00 [10:54:32]line Внесено: 700.00 [10:54:32]line СДАЧА: 0.00 [10:54:32]line НСП 1% : 6.20 [10:54:32]line НДС 12% : 74.38 [10:54:32]line Наличными: 700.00 [10:54:32]line Безнал.: 0.00 [10:54:32]line Место: АЗС № 170 "Партнер Нефть" [10:54:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:54:32]line СНО: Общий режим [10:54:32]line Чек 96 25.10.2024 10:54 [10:54:32]line Смена: 540 ФФД: 1.0 [10:54:32]line ЗНМ: 0300000110 [10:54:32]line РНМ: 0000000000091776 [10:54:32]line Версия ККМ: 001 [10:54:32]line ФМ: 0000000000871754 [10:54:32]line ФД: 191357 [10:54:32]line ФПД: 74069589516604 [10:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105439&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191357&fm=74069589516604&tin=02508201610067®Number=0000000000091776&sum=70000 [10:54:32]written 0, free lines is 4095 [10:54:32]OFD Sender: Processing packet 191357 [packets to send 75, broken 74] [10:54:32]ProducePacketName [10:54:32]name=ofd_packets/00191357 [10:54:32]OFD Sender: To server: pG, [10:54:32]CommunicateWithHost lk.salyk.kg:30040 [10:54:32]ConnectInit lk.salyk.kg [10:54:33]Connected sock=9 [10:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 09 07 01 95 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EF 78 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EB 02 00 35 04 06 00 43 5D AB 92 61 3C 3A D4 7D 2E A1 B5 ED 2E [10:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C2 84 47 00 B5 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EB 02 00 F4 03 04 00 BE 1D 1B 67 B6 04 01 00 00 10 B1 55 97 AA 4A 40 A7 [10:54:33]CommunicateWithHost err = 0 [10:54:33]CheckOFDResponse [10:54:33]1017 (14) - 77093643461234 [10:54:33]1041 (16) - 0000000000871754 [10:54:33]1040 (4) - 191357 [10:54:33]1012 (4) - 25.10.2024 04:25 [10:54:33]1206 (1) - 0 [10:54:33]OFD Sender: Remove packet 191357 [10:54:33]ProducePacketName [10:54:33]name=ofd_packets/00191357 [10:54:33]NVStorageDeleteData [10:54:33]Write to MH i2c: 01 00 00 BF 88 47 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 BF 88 00 00 00 00 00 C2 0C 1C [10:54:33]RasterBufferAndPrint [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]written 0, free lines is 3281 [10:54:33]MH_Cut [10:54:33]Write to MH i2c: D1 01 00 C6 88 01 20 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 01 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 01 00 C6 88 00 1F [10:54:33]Write to MH i2c: 01 00 00 C7 88 4F [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]OFD Sender: No OFD packet to send [10:54:34]*** Cut start [10:54:34]*** Partial cut [10:54:34]*** CUTSNS_PIN = 1 [10:54:34]*** CUTSNS_PIN = 0 [10:54:34]*** Brake cut motor [10:54:34]Read from MH i2c: 01 [10:54:34]MH_I2C_Read... [10:54:34]*** Stop cut motor [10:54:34]*** Cut end [10:54:34]Read from MH i2c: 01 07 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: 01 07 00 C7 88 00 00 00 00 00 FF 0F 64 [10:54:34]process_action close_receipt done [10:54:34]requested_data is exist [10:54:34]produce_requested_data [10:54:34]requested_item fm.sn is exist - process it [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 11 00 00 [10:54:34]Write to MH i2c: E2 08 00 C8 88 80 11 00 00 00 00 00 00 CA [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 17 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 17 00 C8 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [10:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:34]wFMCommunicate OK [10:54:34]requested_item fd.num is exist - process it [10:54:34]SAM_PROTO_GetFieldsCounters [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 13 00 00 [10:54:34]Write to MH i2c: E2 08 00 C9 88 80 13 00 00 00 00 00 00 CD [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 62 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 62 00 C9 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EB 02 00 0E 04 04 00 1C 02 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 9B [10:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:35]wFMCommunicate OK [10:54:35]SAM_PROTO_GetFieldsCounters done [10:54:35]requested_item shift.num is exist - process it [10:54:35]requested_item shift.opened is exist - process it [10:54:35]req_shift_opened [10:54:35]FM_GetShiftState [10:54:35]SAM_PROTO_GetShiftState [10:54:35]wFMCommunicate request_size=4 [10:54:35]MH_SAM_APDU [10:54:35]CAPDU: 80 13 01 00 [10:54:35]Write to MH i2c: E2 08 00 CA 88 80 13 01 00 00 00 00 00 CF [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:35]Read from MH i2c: E2 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 CA 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 92 [10:54:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:54:35]wFMCommunicate OK [10:54:35]SAM_PROTO_GetShiftState done [10:54:35]FM_GetShiftState done [10:54:35]req_shift_opened done [10:54:35]requested_item shift.open_date is exist - process it [10:54:35]req_shift_open_date [10:54:35]req_shift_open_date done [10:54:35]produce_requested_data done [10:54:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191357,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:54:35]process_action_free close_receipt [10:54:35]json_value_free [10:54:35]json_value_free done [10:54:35]process_json_proto returns [10:54:35]Send response to host [10:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191357,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:54:35]free response buf [10:54:35]execute_script done [10:54:35]execute_script returns [10:54:35]free content buf [10:54:35]Sock 8.Close socket [10:54:35]Sock 8.Thread stoped [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]accept exits with 10 [10:56:23]New connection [10:56:23]New thread 3066961252 created [10:56:23]Thread 3066817892 joined [10:56:23]Waiting for new connection... [10:56:23] Sock 10.Parse request [10:56:23]Sock 10.Check first char [10:56:23]Sock 10.First char is OK [10:56:23]request: POST /json_proto HTTP/1.0 [10:56:23]Method: POST [10:56:23]URL: /json_proto [10:56:23]Method is POST - this is cgi request [10:56:23]url: /json_proto [10:56:23]query_string will be loaded in cgi processing [10:56:23]execute_cgi json_proto POST (null) [10:56:23]execute_cgi path=json_proto method=POST [10:56:23]POST find Content-Length [10:56:23]Host: 172.17.63.131:8080 [10:56:23]Content-Length: 676 [10:56:23]Content-Type: application/json [10:56:23] [10:56:23]POST finish read [10:56:23]Found Content-Length = 676 [10:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:23]execute_script... [10:56: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)30651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:23]POST & json_proto [10:56:23]process_json_proto [10:56:23]json parsed OK: [10:56:23]protocol is kg_v1.0 [10:56:23]action value=close_receipt [10:56:23]process_action close_receipt [10:56:23]cmd_close_receipt [10:56:23]MH_GetDate [10:56:23]Write to MH i2c: F0 00 00 CB 88 42 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 09 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 09 00 CB 88 00 60 79 1B 67 22 05 6E 64 9F [10:56:23]GetLastDocTimeStamp 1729853679 [10:56:23]current date 1729853792 [10:56:23]FM_GetShiftState [10:56:23]SAM_PROTO_GetShiftState [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 13 01 00 [10:56:23]Write to MH i2c: E2 08 00 CC 88 80 13 01 00 00 00 00 00 D1 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0E 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0E 00 CC 88 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 94 [10:56:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_GetShiftState done [10:56:23]FM_GetShiftState done [10:56:23]opened in 1729816399 [10:56:23]opened+sec_in_day 1729902799 [10:56:23]quantity*price = 50041 [10:56:23]sum+1 = 50042 [10:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 97 25.10.2024 10:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191358 ФПД: 54853773501568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191358&fm=54853773501568&tin=02508201610067®Number=0000000000091776&sum=50000 [10:56:25]StoreToDocumentArchive [10:56:25]shift 540 fd 191358 [10:56:25]save to /storage/0540/doc_00191358 [10:56:25]save last doc name /storage/0540/doc_00191358 to /storage/kkm_last_doc_name [10:56:25]save OK [10:56:25]Clear old archive folders... [10:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:25]tlvbuf is 01692C80 [10:56:25]SAM_PROTO_ClearQueue [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 09 00 00 [10:56:25]Write to MH i2c: E2 08 00 D9 88 80 09 00 00 00 00 00 00 D3 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 D9 88 00 90 00 D5 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_ClearQueue done [10:56:25]KKMCreateOFDPacket [10:56:25]OFDProtocolAddRootSTLVToBuf [10:56:25]FM_MakeSignedData [10:56:25]FM_MakeSignedData [10:56:25]SAM_PROTO_SignData [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 01 02 [10:56:25]Write to MH i2c: E2 08 00 DA 88 80 0D 01 02 00 00 00 00 DB [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 DA 88 00 90 00 D6 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=255 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 60 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EB 02 00 35 04 06 00 31 [10:56:25]Write to MH i2c: E2 02 01 DB 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 60 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EB 02 00 35 04 06 00 31 00 00 E5 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 DB 88 00 90 00 D7 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=10 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 02 02 05 E3 A3 AF 24 80 [10:56:25]Write to MH i2c: E2 0D 00 DC 88 80 0D 02 02 05 00 E3 A3 AF 24 80 00 00 C1 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 DC 88 00 90 00 D8 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 03 02 [10:56:25]Write to MH i2c: E2 08 00 DD 88 80 0D 03 02 00 00 00 00 E0 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0B 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0B 00 DD 88 00 0A 44 FF F1 73 2F 56 D0 90 00 E7 [10:56:25]RAPDU: 0A 44 FF F1 73 2F 56 D0 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_SignData done [10:56:25]FM_MakeSignedData done [10:56:25]CreateOFDProtocolMessage [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 11 00 00 [10:56:25]Write to MH i2c: E2 08 00 DE 88 80 11 00 00 00 00 00 00 E0 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 DE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:56:25]wFMCommunicate OK [10:56:25]CreateOFDProtocolMessage done [10:56:25]OFDSenderStorePacket 191358 [10:56:25]StoreOFDPacket docnum=191358 [10:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 20 07 01 C8 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 60 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EB 02 00 35 04 06 00 31 E3 A3 AF 24 80 0A 44 FF F1 73 2F 56 D0 [10:56:25]CheckFolder [10:56:25]dirname=/storage/ofd_packets [10:56:25]CheckFolder done [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00191358 [10:56:25]NVStorageSaveData ofd_packets/00191358 [10:56:25]File name is /storage/ofd_packets/00191358 [10:56:25]Write 301 bytes [10:56:25]NVStorageSaveData done [10:56:25]OFDSenderStorePacket done [10:56:25]KKMCreateOFDPacket done [10:56:25]NVStorageSaveData kkm_last_timestamp [10:56:25]File name is /storage/kkm_last_timestamp [10:56:25]Write 4 bytes [10:56:25]NVStorageSaveData done [10:56:25]ExternCall_PrintAddStr [10:56:25]wPrintStart [10:56:25]Write to MH i2c: 01 00 00 DF 88 67 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 DF 88 00 00 00 00 00 FF 0F 7C [10:56:25]RasterBufferAndPrint [10:56:25]line Счет N : (1)30651 [10:56:25]line ИНН: 02508201610067 [10:56:25]line Контрольно-Кассовый Чек [10:56:25]line ПРОДАЖА [10:56:25]line ТРК (МРК, ГНК) : 21 [10:56:25]line Товар: 2710124130 [10:56:25]line Аи-92-К-5 [10:56:25]line 7.480 * 66.90 [10:56:25]line = 500.41 [10:56:25]line НДС 12% НСП 1% [10:56:25]line > о реализуемом товаре [10:56:25]line ОКРУГЛЕНИЕ: -0.41 [10:56:25]line ИТОГО: 500.00 [10:56:25]line Внесено: 500.00 [10:56:25]line СДАЧА: 0.00 [10:56:25]line НСП 1% : 4.43 [10:56:25]line НДС 12% : 53.14 [10:56:25]line Наличными: 500.00 [10:56:25]line Безнал.: 0.00 [10:56:25]line Место: АЗС № 170 "Партнер Нефть" [10:56:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:56:25]line СНО: Общий режим [10:56:25]line Чек 97 25.10.2024 10:56 [10:56:25]line Смена: 540 ФФД: 1.0 [10:56:25]line ЗНМ: 0300000110 [10:56:25]line РНМ: 0000000000091776 [10:56:25]line Версия ККМ: 001 [10:56:25]line ФМ: 0000000000871754 [10:56:25]line ФД: 191358 [10:56:25]line ФПД: 54853773501568 [10:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105632&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191358&fm=54853773501568&tin=02508201610067®Number=0000000000091776&sum=50000 [10:56:25]OFD Sender: Processing packet 191358 [packets to send 75, broken 74] [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00191358 [10:56:25]OFD Sender: To server: pG, [10:56:25]CommunicateWithHost lk.salyk.kg:30040 [10:56:25]ConnectInit lk.salyk.kg [10:56:25]written 0, free lines is 4095 [10:56:26]Connected sock=9 [10:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 20 07 01 C8 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 60 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EB 02 00 35 04 06 00 31 E3 A3 AF 24 80 0A 44 FF F1 73 2F 56 D0 [10:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF 13 47 00 E0 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EB 02 00 F4 03 04 00 2F 1E 1B 67 B6 04 01 00 00 F9 E3 A3 ED EA 6C 9A AF [10:56:26]CommunicateWithHost err = 0 [10:56:26]CheckOFDResponse [10:56:26]1017 (14) - 77093643461234 [10:56:26]1041 (16) - 0000000000871754 [10:56:26]1040 (4) - 191358 [10:56:26]1012 (4) - 25.10.2024 04:27 [10:56:26]1206 (1) - 0 [10:56:26]OFD Sender: Remove packet 191358 [10:56:26]ProducePacketName [10:56:26]name=ofd_packets/00191358 [10:56:26]NVStorageDeleteData [10:56:26]Write to MH i2c: 01 00 00 0A 89 93 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 07 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 07 00 0A 89 00 00 00 00 00 C6 0C 6C [10:56:26]RasterBufferAndPrint [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]written 0, free lines is 3279 [10:56:26]MH_Cut [10:56:26]Write to MH i2c: D1 01 00 11 89 01 6C [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 01 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 01 00 11 89 00 6B [10:56:26]Write to MH i2c: 01 00 00 12 89 9B [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]OFD Sender: No OFD packet to send [10:56:27]*** Cut start [10:56:27]*** Partial cut [10:56:27]*** CUTSNS_PIN = 1 [10:56:27]*** CUTSNS_PIN = 0 [10:56:27]*** Brake cut motor [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]*** Stop cut motor [10:56:27]*** Cut end [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 12 89 00 00 00 00 00 FF 0F B0 [10:56:27]process_action close_receipt done [10:56:27]requested_data is exist [10:56:27]produce_requested_data [10:56:27]requested_item fm.sn is exist - process it [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 11 00 00 [10:56:27]Write to MH i2c: E2 08 00 13 89 80 11 00 00 00 00 00 00 16 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 13 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [10:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:56:27]wFMCommunicate OK [10:56:27]requested_item fd.num is exist - process it [10:56:27]SAM_PROTO_GetFieldsCounters [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 13 00 00 [10:56:27]Write to MH i2c: E2 08 00 14 89 80 13 00 00 00 00 00 00 19 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 14 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EB 02 00 0E 04 04 00 1C 02 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 EB [10:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetFieldsCounters done [10:56:28]requested_item shift.num is exist - process it [10:56:28]requested_item shift.opened is exist - process it [10:56:28]req_shift_opened [10:56:28]FM_GetShiftState [10:56:28]SAM_PROTO_GetShiftState [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 13 01 00 [10:56:28]Write to MH i2c: E2 08 00 15 89 80 13 01 00 00 00 00 00 1B [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 15 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DE [10:56:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetShiftState done [10:56:28]FM_GetShiftState done [10:56:28]req_shift_opened done [10:56:28]requested_item shift.open_date is exist - process it [10:56:28]req_shift_open_date [10:56:28]req_shift_open_date done [10:56:28]produce_requested_data done [10:56:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191358,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:56:28]process_action_free close_receipt [10:56:28]json_value_free [10:56:28]json_value_free done [10:56:28]process_json_proto returns [10:56:28]Send response to host [10:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191358,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:56:28]free response buf [10:56:28]execute_script done [10:56:28]execute_script returns [10:56:28]free content buf [10:56:28]Sock 10.Close socket [10:56:28]Sock 10.Thread stoped [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:04]accept exits with 8 [10:57:04]New connection [10:57:04]New thread 3066817892 created [10:57:04]Thread 3066961252 joined [10:57:04]Waiting for new connection... [10:57:04] Sock 8.Parse request [10:57:04]Sock 8.Check first char [10:57:04]Sock 8.First char is OK [10:57:04]request: POST /json_proto HTTP/1.0 [10:57:04]Method: POST [10:57:04]URL: /json_proto [10:57:04]Method is POST - this is cgi request [10:57:04]url: /json_proto [10:57:04]query_string will be loaded in cgi processing [10:57:04]execute_cgi json_proto POST (null) [10:57:04]execute_cgi path=json_proto method=POST [10:57:04]POST find Content-Length [10:57:04]Host: 172.17.63.131:8080 [10:57:04]Content-Length: 677 [10:57:04]Content-Type: application/json [10:57:04] [10:57:04]POST finish read [10:57:04]Found Content-Length = 677 [10:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:04]execute_script... [10:57: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)30652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:04]POST & json_proto [10:57:04]process_json_proto [10:57:04]json parsed OK: [10:57:04]protocol is kg_v1.0 [10:57:04]action value=close_receipt [10:57:04]process_action close_receipt [10:57:04]cmd_close_receipt [10:57:04]MH_GetDate [10:57:04]Write to MH i2c: F0 00 00 16 89 8E [10:57:04]Write i2c OK [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 09 00 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 09 00 16 89 00 88 79 1B 67 22 05 6E 64 13 [10:57:04]GetLastDocTimeStamp 1729853792 [10:57:04]current date 1729853832 [10:57:04]FM_GetShiftState [10:57:04]SAM_PROTO_GetShiftState [10:57:04]wFMCommunicate request_size=4 [10:57:04]MH_SAM_APDU [10:57:04]CAPDU: 80 13 01 00 [10:57:04]Write to MH i2c: E2 08 00 17 89 80 13 01 00 00 00 00 00 1D [10:57:04]Write i2c OK [10:57:04]MH_I2C_Read... [10:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:04]Read from MH i2c: E2 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: E2 0E 00 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: E2 0E 00 17 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [10:57:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:57:04]wFMCommunicate OK [10:57:04]SAM_PROTO_GetShiftState done [10:57:04]FM_GetShiftState done [10:57:04]opened in 1729816399 [10:57:04]opened+sec_in_day 1729902799 [10:57:04]quantity*price = 80012 [10:57:04]sum+1 = 80013 [10:57:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 98 25.10.2024 10:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191359 ФПД: 246899517096721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105713&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191359&fm=246899517096721&tin=02508201610067®Number=0000000000091776&sum=80000 [10:57:05]StoreToDocumentArchive [10:57:05]shift 540 fd 191359 [10:57:05]save to /storage/0540/doc_00191359 [10:57:05]save last doc name /storage/0540/doc_00191359 to /storage/kkm_last_doc_name [10:57:05]save OK [10:57:05]Clear old archive folders... [10:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:05]tlvbuf is 015B0E90 [10:57:05]SAM_PROTO_ClearQueue [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 09 00 00 [10:57:05]Write to MH i2c: E2 08 00 24 89 80 09 00 00 00 00 00 00 1F [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 24 89 00 90 00 21 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]SAM_PROTO_ClearQueue done [10:57:05]KKMCreateOFDPacket [10:57:05]OFDProtocolAddRootSTLVToBuf [10:57:05]FM_MakeSignedData [10:57:05]FM_MakeSignedData [10:57:05]SAM_PROTO_SignData [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 01 02 [10:57:05]Write to MH i2c: E2 08 00 25 89 80 0D 01 02 00 00 00 00 27 [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 25 89 00 90 00 22 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]wFMCommunicate request_size=255 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EB 02 00 35 04 06 00 E0 [10:57:05]Write to MH i2c: E2 02 01 26 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EB 02 00 35 04 06 00 E0 00 00 F7 [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 26 89 00 90 00 23 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]wFMCommunicate request_size=10 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 02 02 05 8D C6 03 03 11 [10:57:05]Write to MH i2c: E2 0D 00 27 89 80 0D 02 02 05 00 8D C6 03 03 11 00 00 9E [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 27 89 00 90 00 24 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 03 02 [10:57:05]Write to MH i2c: E2 08 00 28 89 80 0D 03 02 00 00 00 00 2C [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0B 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0B 00 28 89 00 CF 2F C5 96 63 99 26 64 90 00 0C [10:57:06]RAPDU: CF 2F C5 96 63 99 26 64 90 00 [10:57:06]wFMCommunicate OK [10:57:06]SAM_PROTO_SignData done [10:57:06]FM_MakeSignedData done [10:57:06]CreateOFDProtocolMessage [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 11 00 00 [10:57:06]Write to MH i2c: E2 08 00 29 89 80 11 00 00 00 00 00 00 2C [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 17 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 17 00 29 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [10:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:06]wFMCommunicate OK [10:57:06]CreateOFDProtocolMessage done [10:57:06]OFDSenderStorePacket 191359 [10:57:06]StoreOFDPacket docnum=191359 [10:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A 5F 07 01 7E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EB 02 00 35 04 06 00 E0 8D C6 03 03 11 CF 2F C5 96 63 99 26 64 [10:57:06]CheckFolder [10:57:06]dirname=/storage/ofd_packets [10:57:06]CheckFolder done [10:57:06]ProducePacketName [10:57:06]name=ofd_packets/00191359 [10:57:06]NVStorageSaveData ofd_packets/00191359 [10:57:06]File name is /storage/ofd_packets/00191359 [10:57:06]Write 301 bytes [10:57:06]NVStorageSaveData done [10:57:06]OFDSenderStorePacket done [10:57:06]KKMCreateOFDPacket done [10:57:06]NVStorageSaveData kkm_last_timestamp [10:57:06]File name is /storage/kkm_last_timestamp [10:57:06]Write 4 bytes [10:57:06]NVStorageSaveData done [10:57:06]ExternCall_PrintAddStr [10:57:06]wPrintStart [10:57:06]Write to MH i2c: 01 00 00 2A 89 B3 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 2A 89 00 00 00 00 00 FF 0F C8 [10:57:06]RasterBufferAndPrint [10:57:06]line Счет N : (1)30652 [10:57:06]line ИНН: 02508201610067 [10:57:06]line Контрольно-Кассовый Чек [10:57:06]line ПРОДАЖА [10:57:06]line ТРК (МРК, ГНК) : 12 [10:57:06]line Товар: 2710124130 [10:57:06]line Аи-92-К-5 [10:57:06]line 11.960 * 66.90 [10:57:06]line = 800.12 [10:57:06]line НДС 12% НСП 1% [10:57:06]line > о реализуемом товаре [10:57:06]line ОКРУГЛЕНИЕ: -0.12 [10:57:06]line ИТОГО: 800.00 [10:57:06]line Внесено: 800.00 [10:57:06]line СДАЧА: 0.00 [10:57:06]line НСП 1% : 7.08 [10:57:06]line НДС 12% : 84.97 [10:57:06]line Наличными: 800.00 [10:57:06]line Безнал.: 0.00 [10:57:06]line Место: АЗС № 170 "Партнер Нефть" [10:57:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:57:06]line СНО: Общий режим [10:57:06]line Чек 98 25.10.2024 10:57 [10:57:06]line Смена: 540 ФФД: 1.0 [10:57:06]line ЗНМ: 0300000110 [10:57:06]line РНМ: 0000000000091776 [10:57:06]line Версия ККМ: 001 [10:57:06]line ФМ: 0000000000871754 [10:57:06]line ФД: 191359 [10:57:06]line ФПД: 246899517096721 [10:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105713&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191359&fm=246899517096721&tin=02508201610067®Number=0000000000091776&sum=80000 [10:57:06]OFD Sender: Processing packet 191359 [packets to send 75, broken 74] [10:57:06]ProducePacketName [10:57:06]name=ofd_packets/00191359 [10:57:06]OFD Sender: To server: pG, [10:57:06]CommunicateWithHost lk.salyk.kg:30040 [10:57:06]ConnectInit lk.salyk.kg [10:57:06]written 0, free lines is 4095 [10:57:06]Connected sock=9 [10:57:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A 5F 07 01 7E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 89 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EB 02 00 35 04 06 00 E0 8D C6 03 03 11 CF 2F C5 96 63 99 26 64 [10:57:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B FC 47 00 A0 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EB 02 00 F4 03 04 00 57 1E 1B 67 B6 04 01 00 00 A6 93 C6 A3 1A 2A 8B B1 [10:57:06]CommunicateWithHost err = 0 [10:57:06]CheckOFDResponse [10:57:06]1017 (14) - 77093643461234 [10:57:06]1041 (16) - 0000000000871754 [10:57:06]1040 (4) - 191359 [10:57:06]1012 (4) - 25.10.2024 04:28 [10:57:06]1206 (1) - 0 [10:57:06]OFD Sender: Remove packet 191359 [10:57:06]ProducePacketName [10:57:06]name=ofd_packets/00191359 [10:57:06]NVStorageDeleteData [10:57:06]Write to MH i2c: 01 00 00 55 89 DE [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 55 89 00 00 00 00 00 C7 0C B8 [10:57:06]RasterBufferAndPrint [10:57:06]line [10:57:06]line [10:57:06]line [10:57:06]line [10:57:06]line [10:57:06]written 0, free lines is 3277 [10:57:06]MH_Cut [10:57:06]Write to MH i2c: D1 01 00 5C 89 01 B7 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: D1 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: D1 01 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: D1 01 00 5C 89 00 B6 [10:57:06]Write to MH i2c: 01 00 00 5D 89 E6 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:07]OFD Sender: No OFD packet to send [10:57:07]*** Cut start [10:57:07]*** Partial cut [10:57:07]*** CUTSNS_PIN = 1 [10:57:07]*** CUTSNS_PIN = 0 [10:57:07]*** Brake cut motor [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]*** Stop cut motor [10:57:08]*** Cut end [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 5D 89 00 00 00 00 00 FF 0F FB [10:57:08]process_action close_receipt done [10:57:08]requested_data is exist [10:57:08]produce_requested_data [10:57:08]requested_item fm.sn is exist - process it [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 11 00 00 [10:57:08]Write to MH i2c: E2 08 00 5E 89 80 11 00 00 00 00 00 00 61 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 5E 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [10:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:08]wFMCommunicate OK [10:57:08]requested_item fd.num is exist - process it [10:57:08]SAM_PROTO_GetFieldsCounters [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 13 00 00 [10:57:08]Write to MH i2c: E2 08 00 5F 89 80 13 00 00 00 00 00 00 64 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 62 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 62 00 5F 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EB 02 00 0E 04 04 00 1C 02 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 3A [10:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_GetFieldsCounters done [10:57:08]requested_item shift.num is exist - process it [10:57:08]requested_item shift.opened is exist - process it [10:57:08]req_shift_opened [10:57:08]FM_GetShiftState [10:57:08]SAM_PROTO_GetShiftState [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 13 01 00 [10:57:08]Write to MH i2c: E2 08 00 60 89 80 13 01 00 00 00 00 00 66 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 60 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 29 [10:57:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_GetShiftState done [10:57:08]FM_GetShiftState done [10:57:08]req_shift_opened done [10:57:08]requested_item shift.open_date is exist - process it [10:57:08]req_shift_open_date [10:57:08]req_shift_open_date done [10:57:08]produce_requested_data done [10:57:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191359,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:57:08]process_action_free close_receipt [10:57:08]json_value_free [10:57:08]json_value_free done [10:57:08]process_json_proto returns [10:57:08]Send response to host [10:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191359,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:57:08]free response buf [10:57:08]execute_script done [10:57:08]execute_script returns [10:57:08]free content buf [10:57:08]Sock 8.Close socket [10:57:08]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [10:57:29]accept exits with 10 [10:57:29]New connection [10:57:29]New thread 3066961252 created [10:57:29]Thread 3066817892 joined [10:57:29]Waiting for new connection... [10:57:29] Sock 10.Parse request [10:57:29]Sock 10.Check first char [10:57:29]Sock 10.First char is OK [10:57:29]request: POST /json_proto HTTP/1.0 [10:57:29]Method: POST [10:57:29]URL: /json_proto [10:57:29]Method is POST - this is cgi request [10:57:29]url: /json_proto [10:57:29]query_string will be loaded in cgi processing [10:57:29]execute_cgi json_proto POST (null) [10:57:29]execute_cgi path=json_proto method=POST [10:57:29]POST find Content-Length [10:57:29]Host: 172.17.63.131:8080 [10:57:29]Content-Length: 676 [10:57:29]Content-Type: application/json [10:57:29] [10:57:29]POST finish read [10:57:29]Found Content-Length = 676 [10:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:29]execute_script... [10:57: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)30653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:29]POST & json_proto [10:57:29]process_json_proto [10:57:29]json parsed OK: [10:57:29]protocol is kg_v1.0 [10:57:29]action value=close_receipt [10:57:29]process_action close_receipt [10:57:29]cmd_close_receipt [10:57:29]MH_GetDate [10:57:29]Write to MH i2c: F0 00 00 61 89 D9 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 61 89 00 A2 79 1B 67 22 05 6E 64 78 [10:57:29]GetLastDocTimeStamp 1729853833 [10:57:29]current date 1729853858 [10:57:29]FM_GetShiftState [10:57:29]SAM_PROTO_GetShiftState [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 13 01 00 [10:57:29]Write to MH i2c: E2 08 00 62 89 80 13 01 00 00 00 00 00 68 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 0E 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 0E 00 62 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2B [10:57:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:57:30]wFMCommunicate OK [10:57:30]SAM_PROTO_GetShiftState done [10:57:30]FM_GetShiftState done [10:57:30]opened in 1729816399 [10:57:30]opened+sec_in_day 1729902799 [10:57:30]quantity*price = 30038 [10:57:30]sum+1 = 30039 [10:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 99 25.10.2024 10:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191360 ФПД: 172644543567828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191360&fm=172644543567828&tin=02508201610067®Number=0000000000091776&sum=30000 [10:57:31]StoreToDocumentArchive [10:57:31]shift 540 fd 191360 [10:57:31]save to /storage/0540/doc_00191360 [10:57:31]save last doc name /storage/0540/doc_00191360 to /storage/kkm_last_doc_name [10:57:31]save OK [10:57:31]Clear old archive folders... [10:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:31]tlvbuf is 018CA9D0 [10:57:31]SAM_PROTO_ClearQueue [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 09 00 00 [10:57:31]Write to MH i2c: E2 08 00 6F 89 80 09 00 00 00 00 00 00 6A [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 6F 89 00 90 00 6C [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_ClearQueue done [10:57:31]KKMCreateOFDPacket [10:57:31]OFDProtocolAddRootSTLVToBuf [10:57:31]FM_MakeSignedData [10:57:31]FM_MakeSignedData [10:57:31]SAM_PROTO_SignData [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 01 02 [10:57:31]Write to MH i2c: E2 08 00 70 89 80 0D 01 02 00 00 00 00 72 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 70 89 00 90 00 6D [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=255 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A2 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EB 02 00 35 04 06 00 9D [10:57:31]Write to MH i2c: E2 02 01 71 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A2 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EB 02 00 35 04 06 00 9D 00 00 22 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 71 89 00 90 00 6E [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=10 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 02 02 05 04 F0 B1 17 D4 [10:57:31]Write to MH i2c: E2 0D 00 72 89 80 0D 02 02 05 00 04 F0 B1 17 D4 00 00 0F [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 72 89 00 90 00 6F [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 03 02 [10:57:31]Write to MH i2c: E2 08 00 73 89 80 0D 03 02 00 00 00 00 77 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 73 89 00 8D EB 07 C5 E0 6D 7A CB 90 00 4E [10:57:31]RAPDU: 8D EB 07 C5 E0 6D 7A CB 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_SignData done [10:57:31]FM_MakeSignedData done [10:57:31]CreateOFDProtocolMessage [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 11 00 00 [10:57:31]Write to MH i2c: E2 08 00 74 89 80 11 00 00 00 00 00 00 77 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 74 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [10:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:31]wFMCommunicate OK [10:57:31]CreateOFDProtocolMessage done [10:57:31]OFDSenderStorePacket 191360 [10:57:31]StoreOFDPacket docnum=191360 [10:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 0C 07 01 0B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A2 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EB 02 00 35 04 06 00 9D 04 F0 B1 17 D4 8D EB 07 C5 E0 6D 7A CB [10:57:31]CheckFolder [10:57:31]dirname=/storage/ofd_packets [10:57:31]CheckFolder done [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00191360 [10:57:31]NVStorageSaveData ofd_packets/00191360 [10:57:31]File name is /storage/ofd_packets/00191360 [10:57:31]Write 301 bytes [10:57:31]NVStorageSaveData done [10:57:31]OFDSenderStorePacket done [10:57:31]KKMCreateOFDPacket done [10:57:31]NVStorageSaveData kkm_last_timestamp [10:57:31]File name is /storage/kkm_last_timestamp [10:57:31]Write 4 bytes [10:57:31]NVStorageSaveData done [10:57:31]ExternCall_PrintAddStr [10:57:31]wPrintStart [10:57:31]Write to MH i2c: 01 00 00 75 89 FE [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 75 89 00 00 00 00 00 FF 0F 13 [10:57:31]RasterBufferAndPrint [10:57:31]line Счет N : (1)30653 [10:57:31]line ИНН: 02508201610067 [10:57:31]line Контрольно-Кассовый Чек [10:57:31]line ПРОДАЖА [10:57:31]line ТРК (МРК, ГНК) : 12 [10:57:31]line Товар: 2710124130 [10:57:31]line Аи-92-К-5 [10:57:31]line 4.490 * 66.90 [10:57:31]line = 300.38 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line ОКРУГЛЕНИЕ: -0.38 [10:57:31]line ИТОГО: 300.00 [10:57:31]line Внесено: 300.00 [10:57:31]line СДАЧА: 0.00 [10:57:31]line НСП 1% : 2.66 [10:57:31]line НДС 12% : 31.90 [10:57:31]line Наличными: 300.00 [10:57:31]line Безнал.: 0.00 [10:57:31]line Место: АЗС № 170 "Партнер Нефть" [10:57:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:57:31]line СНО: Общий режим [10:57:31]line Чек 99 25.10.2024 10:57 [10:57:31]line Смена: 540 ФФД: 1.0 [10:57:31]line ЗНМ: 0300000110 [10:57:31]line РНМ: 0000000000091776 [10:57:31]line Версия ККМ: 001 [10:57:31]line ФМ: 0000000000871754 [10:57:31]line ФД: 191360 [10:57:31]line ФПД: 172644543567828 [10:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191360&fm=172644543567828&tin=02508201610067®Number=0000000000091776&sum=30000 [10:57:32]OFD Sender: Processing packet 191360 [packets to send 75, broken 74] [10:57:32]ProducePacketName [10:57:32]name=ofd_packets/00191360 [10:57:32]OFD Sender: To server: pG, [10:57:32]CommunicateWithHost lk.salyk.kg:30040 [10:57:32]ConnectInit lk.salyk.kg [10:57:32]written 0, free lines is 4095 [10:57:32]Connected sock=9 [10:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 0C 07 01 0B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A2 79 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EB 02 00 35 04 06 00 9D 04 F0 B1 17 D4 8D EB 07 C5 E0 6D 7A CB [10:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE 88 47 00 A1 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EB 02 00 F4 03 04 00 71 1E 1B 67 B6 04 01 00 00 02 15 7A 0F 0E A8 98 57 [10:57:32]CommunicateWithHost err = 0 [10:57:32]CheckOFDResponse [10:57:32]1017 (14) - 77093643461234 [10:57:32]1041 (16) - 0000000000871754 [10:57:32]1040 (4) - 191360 [10:57:32]1012 (4) - 25.10.2024 04:28 [10:57:32]1206 (1) - 0 [10:57:32]OFD Sender: Remove packet 191360 [10:57:32]ProducePacketName [10:57:32]name=ofd_packets/00191360 [10:57:32]NVStorageDeleteData [10:57:32]Write to MH i2c: 01 00 00 A0 89 29 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 A0 89 00 00 00 00 00 AF 0C EB [10:57:32]RasterBufferAndPrint [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]written 0, free lines is 3255 [10:57:32]MH_Cut [10:57:32]Write to MH i2c: D1 01 00 A7 89 01 02 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 01 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 01 00 A7 89 00 01 [10:57:32]Write to MH i2c: 01 00 00 A8 89 31 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]OFD Sender: No OFD packet to send [10:57:33]*** Cut start [10:57:33]*** Partial cut [10:57:33]*** CUTSNS_PIN = 1 [10:57:33]*** CUTSNS_PIN = 0 [10:57:33]*** Brake cut motor [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]*** Stop cut motor [10:57:33]*** Cut end [10:57:33]Read from MH i2c: 01 07 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 A8 89 00 00 00 00 00 FF 0F 46 [10:57:33]process_action close_receipt done [10:57:33]requested_data is exist [10:57:33]produce_requested_data [10:57:33]requested_item fm.sn is exist - process it [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 11 00 00 [10:57:33]Write to MH i2c: E2 08 00 A9 89 80 11 00 00 00 00 00 00 AC [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 17 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 17 00 A9 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [10:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:34]wFMCommunicate OK [10:57:34]requested_item fd.num is exist - process it [10:57:34]SAM_PROTO_GetFieldsCounters [10:57:34]wFMCommunicate request_size=4 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 13 00 00 [10:57:34]Write to MH i2c: E2 08 00 AA 89 80 13 00 00 00 00 00 00 AF [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 62 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 62 00 AA 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EB 02 00 0E 04 04 00 1C 02 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 89 [10:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:34]wFMCommunicate OK [10:57:34]SAM_PROTO_GetFieldsCounters done [10:57:34]requested_item shift.num is exist - process it [10:57:34]requested_item shift.opened is exist - process it [10:57:34]req_shift_opened [10:57:34]FM_GetShiftState [10:57:34]SAM_PROTO_GetShiftState [10:57:34]wFMCommunicate request_size=4 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 13 01 00 [10:57:34]Write to MH i2c: E2 08 00 AB 89 80 13 01 00 00 00 00 00 B1 [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 0E 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 0E 00 AB 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 74 [10:57:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:57:34]wFMCommunicate OK [10:57:34]SAM_PROTO_GetShiftState done [10:57:34]FM_GetShiftState done [10:57:34]req_shift_opened done [10:57:34]requested_item shift.open_date is exist - process it [10:57:34]req_shift_open_date [10:57:34]req_shift_open_date done [10:57:34]produce_requested_data done [10:57:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191360,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:57:34]process_action_free close_receipt [10:57:34]json_value_free [10:57:34]json_value_free done [10:57:34]process_json_proto returns [10:57:34]Send response to host [10:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191360,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:57:34]free response buf [10:57:34]execute_script done [10:57:34]execute_script returns [10:57:34]free content buf [10:57:34]Sock 10.Close socket [10:57:34]Sock 10.Thread stoped [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:03]accept exits with 8 [10:59:03]New connection [10:59:03]New thread 3066817892 created [10:59:03]Thread 3066961252 joined [10:59:03]Waiting for new connection... [10:59:03] Sock 8.Parse request [10:59:03]Sock 8.Check first char [10:59:03]Sock 8.First char is OK [10:59:03]request: POST /json_proto HTTP/1.0 [10:59:03]Method: POST [10:59:03]URL: /json_proto [10:59:03]Method is POST - this is cgi request [10:59:03]url: /json_proto [10:59:03]query_string will be loaded in cgi processing [10:59:03]execute_cgi json_proto POST (null) [10:59:03]execute_cgi path=json_proto method=POST [10:59:03]POST find Content-Length [10:59:03]Host: 172.17.63.131:8080 [10:59:03]Content-Length: 676 [10:59:03]Content-Type: application/json [10:59:03] [10:59:03]POST finish read [10:59:03]Found Content-Length = 676 [10:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:03]execute_script... [10:59: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)30654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:03]POST & json_proto [10:59:03]process_json_proto [10:59:03]json parsed OK: [10:59:03]protocol is kg_v1.0 [10:59:03]action value=close_receipt [10:59:03]process_action close_receipt [10:59:03]cmd_close_receipt [10:59:03]MH_GetDate [10:59:03]Write to MH i2c: F0 00 00 AC 89 24 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 09 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 09 00 AC 89 00 00 7A 1B 67 22 05 6E 64 22 [10:59:03]GetLastDocTimeStamp 1729853858 [10:59:03]current date 1729853952 [10:59:03]FM_GetShiftState [10:59:03]SAM_PROTO_GetShiftState [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 13 01 00 [10:59:03]Write to MH i2c: E2 08 00 AD 89 80 13 01 00 00 00 00 00 B3 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 0E 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 0E 00 AD 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 76 [10:59:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:59:03]wFMCommunicate OK [10:59:03]SAM_PROTO_GetShiftState done [10:59:03]FM_GetShiftState done [10:59:03]opened in 1729816399 [10:59:03]opened+sec_in_day 1729902799 [10:59:03]quantity*price = 50041 [10:59:03]sum+1 = 50042 [10:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 100 25.10.2024 10:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191361 ФПД: 235877879790860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191361&fm=235877879790860&tin=02508201610067®Number=0000000000091776&sum=50000 [10:59:05]StoreToDocumentArchive [10:59:05]shift 540 fd 191361 [10:59:05]save to /storage/0540/doc_00191361 [10:59:05]save last doc name /storage/0540/doc_00191361 to /storage/kkm_last_doc_name [10:59:05]save OK [10:59:05]Clear old archive folders... [10:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:05]tlvbuf is 01789F60 [10:59:05]SAM_PROTO_ClearQueue [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 09 00 00 [10:59:05]Write to MH i2c: E2 08 00 BA 89 80 09 00 00 00 00 00 00 B5 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 BA 89 00 90 00 B7 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_ClearQueue done [10:59:05]KKMCreateOFDPacket [10:59:05]OFDProtocolAddRootSTLVToBuf [10:59:05]FM_MakeSignedData [10:59:05]FM_MakeSignedData [10:59:05]SAM_PROTO_SignData [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 01 02 [10:59:05]Write to MH i2c: E2 08 00 BB 89 80 0D 01 02 00 00 00 00 BD [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 BB 89 00 90 00 B8 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=255 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EB 02 00 35 04 06 00 D6 [10:59:05]Write to MH i2c: E2 02 01 BC 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EB 02 00 35 04 06 00 D6 00 00 13 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 BC 89 00 90 00 B9 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=10 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 02 02 05 87 99 3C 3D 0C [10:59:05]Write to MH i2c: E2 0D 00 BD 89 80 0D 02 02 05 00 87 99 3C 3D 0C 00 00 6F [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 BD 89 00 90 00 BA [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 03 02 [10:59:05]Write to MH i2c: E2 08 00 BE 89 80 0D 03 02 00 00 00 00 C2 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0B 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0B 00 BE 89 00 48 86 C5 10 A1 14 A9 DE 90 00 A2 [10:59:05]RAPDU: 48 86 C5 10 A1 14 A9 DE 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_SignData done [10:59:05]FM_MakeSignedData done [10:59:05]CreateOFDProtocolMessage [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 11 00 00 [10:59:05]Write to MH i2c: E2 08 00 BF 89 80 11 00 00 00 00 00 00 C2 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 17 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 17 00 BF 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [10:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:05]wFMCommunicate OK [10:59:05]CreateOFDProtocolMessage done [10:59:05]OFDSenderStorePacket 191361 [10:59:05]StoreOFDPacket docnum=191361 [10:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 66 07 01 8A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EB 02 00 35 04 06 00 D6 87 99 3C 3D 0C 48 86 C5 10 A1 14 A9 DE [10:59:05]CheckFolder [10:59:05]dirname=/storage/ofd_packets [10:59:05]CheckFolder done [10:59:05]ProducePacketName [10:59:05]name=ofd_packets/00191361 [10:59:05]NVStorageSaveData ofd_packets/00191361 [10:59:05]File name is /storage/ofd_packets/00191361 [10:59:05]Write 301 bytes [10:59:05]NVStorageSaveData done [10:59:05]OFDSenderStorePacket done [10:59:05]KKMCreateOFDPacket done [10:59:05]NVStorageSaveData kkm_last_timestamp [10:59:05]File name is /storage/kkm_last_timestamp [10:59:05]Write 4 bytes [10:59:05]NVStorageSaveData done [10:59:05]ExternCall_PrintAddStr [10:59:05]wPrintStart [10:59:05]Write to MH i2c: 01 00 00 C0 89 49 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 C0 89 00 00 00 00 00 FF 0F 5E [10:59:05]RasterBufferAndPrint [10:59:05]line Счет N : (1)30654 [10:59:05]line ИНН: 02508201610067 [10:59:05]line Контрольно-Кассовый Чек [10:59:05]line ПРОДАЖА [10:59:05]line ТРК (МРК, ГНК) : 21 [10:59:05]line Товар: 2710124130 [10:59:05]line Аи-92-К-5 [10:59:05]line 7.480 * 66.90 [10:59:05]line = 500.41 [10:59:05]line НДС 12% НСП 1% [10:59:05]line > о реализуемом товаре [10:59:05]line ОКРУГЛЕНИЕ: -0.41 [10:59:05]line ИТОГО: 500.00 [10:59:05]line Внесено: 500.00 [10:59:05]line СДАЧА: 0.00 [10:59:05]line НСП 1% : 4.43 [10:59:05]line НДС 12% : 53.14 [10:59:05]line Наличными: 500.00 [10:59:05]line Безнал.: 0.00 [10:59:05]line Место: АЗС № 170 "Партнер Нефть" [10:59:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:59:05]line СНО: Общий режим [10:59:05]line Чек 100 25.10.2024 10:59 [10:59:05]line Смена: 540 ФФД: 1.0 [10:59:05]line ЗНМ: 0300000110 [10:59:05]line РНМ: 0000000000091776 [10:59:05]line Версия ККМ: 001 [10:59:05]line ФМ: 0000000000871754 [10:59:05]line ФД: 191361 [10:59:05]line ФПД: 235877879790860 [10:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191361&fm=235877879790860&tin=02508201610067®Number=0000000000091776&sum=50000 [10:59:05]OFD Sender: Processing packet 191361 [packets to send 75, broken 74] [10:59:05]ProducePacketName [10:59:05]name=ofd_packets/00191361 [10:59:05]OFD Sender: To server: pG, [10:59:05]CommunicateWithHost lk.salyk.kg:30040 [10:59:05]ConnectInit lk.salyk.kg [10:59:05]written 0, free lines is 4095 [10:59:05]Connected sock=10 [10:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 66 07 01 8A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EB 02 00 35 04 06 00 D6 87 99 3C 3D 0C 48 86 C5 10 A1 14 A9 DE [10:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 A6 47 00 CD 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EB 02 00 F4 03 04 00 CF 1E 1B 67 B6 04 01 00 00 66 3C F2 82 07 F0 AA FA [10:59:06]CommunicateWithHost err = 0 [10:59:06]CheckOFDResponse [10:59:06]1017 (14) - 77093643461234 [10:59:06]1041 (16) - 0000000000871754 [10:59:06]1040 (4) - 191361 [10:59:06]1012 (4) - 25.10.2024 04:30 [10:59:06]1206 (1) - 0 [10:59:06]OFD Sender: Remove packet 191361 [10:59:06]ProducePacketName [10:59:06]name=ofd_packets/00191361 [10:59:06]NVStorageDeleteData [10:59:06]Write to MH i2c: 01 00 00 EB 89 74 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 EB 89 00 00 00 00 00 B0 0C 37 [10:59:06]RasterBufferAndPrint [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]written 0, free lines is 3253 [10:59:06]MH_Cut [10:59:06]Write to MH i2c: D1 01 00 F2 89 01 4D [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 01 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 01 00 F2 89 00 4C [10:59:06]Write to MH i2c: 01 00 00 F3 89 7C [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]OFD Sender: No OFD packet to send [10:59:07]*** Cut start [10:59:07]*** Partial cut [10:59:07]*** CUTSNS_PIN = 1 [10:59:07]*** CUTSNS_PIN = 0 [10:59:07]*** Brake cut motor [10:59:07]Read from MH i2c: 01 [10:59:07]MH_I2C_Read... [10:59:07]*** Stop cut motor [10:59:07]*** Cut end [10:59:07]Read from MH i2c: 01 07 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 07 00 F3 89 00 00 00 00 00 FF 0F 91 [10:59:07]process_action close_receipt done [10:59:07]requested_data is exist [10:59:07]produce_requested_data [10:59:07]requested_item fm.sn is exist - process it [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 11 00 00 [10:59:07]Write to MH i2c: E2 08 00 F4 89 80 11 00 00 00 00 00 00 F7 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 17 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 17 00 F4 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [10:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:07]wFMCommunicate OK [10:59:07]requested_item fd.num is exist - process it [10:59:07]SAM_PROTO_GetFieldsCounters [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 13 00 00 [10:59:07]Write to MH i2c: E2 08 00 F5 89 80 13 00 00 00 00 00 00 FA [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 62 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 62 00 F5 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EB 02 00 0E 04 04 00 1C 02 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 D8 [10:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_GetFieldsCounters done [10:59:08]requested_item shift.num is exist - process it [10:59:08]requested_item shift.opened is exist - process it [10:59:08]req_shift_opened [10:59:08]FM_GetShiftState [10:59:08]SAM_PROTO_GetShiftState [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 13 01 00 [10:59:08]Write to MH i2c: E2 08 00 F6 89 80 13 01 00 00 00 00 00 FC [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0E 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0E 00 F6 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [10:59:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_GetShiftState done [10:59:08]FM_GetShiftState done [10:59:08]req_shift_opened done [10:59:08]requested_item shift.open_date is exist - process it [10:59:08]req_shift_open_date [10:59:08]req_shift_open_date done [10:59:08]produce_requested_data done [10:59:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191361,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:59:08]process_action_free close_receipt [10:59:08]json_value_free [10:59:08]json_value_free done [10:59:08]process_json_proto returns [10:59:08]Send response to host [10:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191361,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:59:08]free response buf [10:59:08]execute_script done [10:59:08]execute_script returns [10:59:08]free content buf [10:59:08]Sock 8.Close socket [10:59:08]Sock 8.Thread stoped [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:45]accept exits with 9 [10:59:45]New connection [10:59:45]New thread 3066961252 created [10:59:45]Thread 3066817892 joined [10:59:45]Waiting for new connection... [10:59:45] Sock 9.Parse request [10:59:45]Sock 9.Check first char [10:59:45]Sock 9.First char is OK [10:59:45]request: POST /json_proto HTTP/1.0 [10:59:45]Method: POST [10:59:45]URL: /json_proto [10:59:45]Method is POST - this is cgi request [10:59:45]url: /json_proto [10:59:45]query_string will be loaded in cgi processing [10:59:45]execute_cgi json_proto POST (null) [10:59:45]execute_cgi path=json_proto method=POST [10:59:45]POST find Content-Length [10:59:45]Host: 172.17.63.131:8080 [10:59:45]Content-Length: 681 [10:59:45]Content-Type: application/json [10:59:45] [10:59:45]POST finish read [10:59:45]Found Content-Length = 681 [10:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:45]execute_script... [10:59: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)30655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:45]POST & json_proto [10:59:45]process_json_proto [10:59:45]json parsed OK: [10:59:45]protocol is kg_v1.0 [10:59:45]action value=close_receipt [10:59:45]process_action close_receipt [10:59:45]cmd_close_receipt [10:59:45]MH_GetDate [10:59:45]Write to MH i2c: F0 00 00 F7 89 6F [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 09 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 09 00 F7 89 00 2A 7A 1B 67 22 05 6E 64 97 [10:59:45]GetLastDocTimeStamp 1729853952 [10:59:45]current date 1729853994 [10:59:45]FM_GetShiftState [10:59:45]SAM_PROTO_GetShiftState [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 01 00 [10:59:45]Write to MH i2c: E2 08 00 F8 89 80 13 01 00 00 00 00 00 FE [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 F8 89 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C1 [10:59:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetShiftState done [10:59:45]FM_GetShiftState done [10:59:45]opened in 1729816399 [10:59:45]opened+sec_in_day 1729902799 [10:59:45]quantity*price = 100015 [10:59:45]sum+1 = 100017 [10:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 101 25.10.2024 10:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191362 ФПД: 205398131687352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191362&fm=205398131687352&tin=02508201610067®Number=0000000000091776&sum=100000 [10:59:46]StoreToDocumentArchive [10:59:46]shift 540 fd 191362 [10:59:46]save to /storage/0540/doc_00191362 [10:59:46]save last doc name /storage/0540/doc_00191362 to /storage/kkm_last_doc_name [10:59:46]save OK [10:59:46]Clear old archive folders... [10:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:46]tlvbuf is 015B0BA0 [10:59:46]SAM_PROTO_ClearQueue [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 09 00 00 [10:59:46]Write to MH i2c: E2 08 00 05 8A 80 09 00 00 00 00 00 00 01 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 05 8A 00 90 00 03 [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]SAM_PROTO_ClearQueue done [10:59:46]KKMCreateOFDPacket [10:59:46]OFDProtocolAddRootSTLVToBuf [10:59:46]FM_MakeSignedData [10:59:46]FM_MakeSignedData [10:59:46]SAM_PROTO_SignData [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 01 02 [10:59:46]Write to MH i2c: E2 08 00 06 8A 80 0D 01 02 00 00 00 00 09 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 06 8A 00 90 00 04 [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=255 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2A 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EB 02 00 35 04 06 00 BA [10:59:46]Write to MH i2c: E2 02 01 07 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2A 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EB 02 00 35 04 06 00 BA 00 00 69 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]OFD Sender: No OFD packet to send [10:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 07 8A 00 90 00 05 [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=10 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 02 02 05 CE FA AD 3F B8 [10:59:46]Write to MH i2c: E2 0D 00 08 8A 80 0D 02 02 05 00 CE FA AD 3F B8 00 00 82 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 08 8A 00 90 00 06 [10:59:47]RAPDU: 90 00 [10:59:47]wFMCommunicate OK [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 0D 03 02 [10:59:47]Write to MH i2c: E2 08 00 09 8A 80 0D 03 02 00 00 00 00 0E [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0B 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0B 00 09 8A 00 8A 90 43 EC D8 36 A5 9C 90 00 A7 [10:59:47]RAPDU: 8A 90 43 EC D8 36 A5 9C 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_SignData done [10:59:47]FM_MakeSignedData done [10:59:47]CreateOFDProtocolMessage [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 11 00 00 [10:59:47]Write to MH i2c: E2 08 00 0A 8A 80 11 00 00 00 00 00 00 0E [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 0A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [10:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:47]wFMCommunicate OK [10:59:47]CreateOFDProtocolMessage done [10:59:47]OFDSenderStorePacket 191362 [10:59:47]StoreOFDPacket docnum=191362 [10:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A EC 07 01 76 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2A 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EB 02 00 35 04 06 00 BA CE FA AD 3F B8 8A 90 43 EC D8 36 A5 9C [10:59:47]CheckFolder [10:59:47]dirname=/storage/ofd_packets [10:59:47]CheckFolder done [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00191362 [10:59:47]NVStorageSaveData ofd_packets/00191362 [10:59:47]File name is /storage/ofd_packets/00191362 [10:59:47]Write 301 bytes [10:59:47]NVStorageSaveData done [10:59:47]OFDSenderStorePacket done [10:59:47]KKMCreateOFDPacket done [10:59:47]NVStorageSaveData kkm_last_timestamp [10:59:47]File name is /storage/kkm_last_timestamp [10:59:47]Write 4 bytes [10:59:47]NVStorageSaveData done [10:59:47]ExternCall_PrintAddStr [10:59:47]wPrintStart [10:59:47]Write to MH i2c: 01 00 00 0B 8A 95 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 0B 8A 00 00 00 00 00 FF 0F AA [10:59:47]RasterBufferAndPrint [10:59:47]line Счет N : (1)30655 [10:59:47]line ИНН: 02508201610067 [10:59:47]line Контрольно-Кассовый Чек [10:59:47]line ПРОДАЖА [10:59:47]line ТРК (МРК, ГНК) : 12 [10:59:47]line Товар: 2710124130 [10:59:47]line Аи-92-К-5 [10:59:47]line 14.950 * 66.90 [10:59:47]line = 1000.16 [10:59:47]line НДС 12% НСП 1% [10:59:47]line > о реализуемом товаре [10:59:47]line ОКРУГЛЕНИЕ: -0.16 [10:59:47]line ИТОГО: 1000.00 [10:59:47]line Внесено: 1000.00 [10:59:47]line СДАЧА: 0.00 [10:59:47]line НСП 1% : 8.85 [10:59:47]line НДС 12% : 106.21 [10:59:47]line Наличными: 1000.00 [10:59:47]line Безнал.: 0.00 [10:59:47]line Место: АЗС № 170 "Партнер Нефть" [10:59:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:59:47]line СНО: Общий режим [10:59:47]line Чек 101 25.10.2024 10:59 [10:59:47]line Смена: 540 ФФД: 1.0 [10:59:47]line ЗНМ: 0300000110 [10:59:47]line РНМ: 0000000000091776 [10:59:47]line Версия ККМ: 001 [10:59:47]line ФМ: 0000000000871754 [10:59:47]line ФД: 191362 [10:59:47]line ФПД: 205398131687352 [10:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191362&fm=205398131687352&tin=02508201610067®Number=0000000000091776&sum=100000 [10:59:47]OFD Sender: Processing packet 191362 [packets to send 75, broken 74] [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00191362 [10:59:47]OFD Sender: To server: pG, [10:59:47]CommunicateWithHost lk.salyk.kg:30040 [10:59:47]ConnectInit lk.salyk.kg [10:59:47]written 0, free lines is 4095 [10:59:47]Connected sock=10 [10:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A EC 07 01 76 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2A 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EB 02 00 35 04 06 00 BA CE FA AD 3F B8 8A 90 43 EC D8 36 A5 9C [10:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 29 63 47 00 FB FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EB 02 00 F4 03 04 00 F8 1E 1B 67 B6 04 01 00 00 B4 76 37 0A 7E 5F 54 97 [10:59:47]CommunicateWithHost err = 0 [10:59:47]CheckOFDResponse [10:59:47]1017 (14) - 77093643461234 [10:59:47]1041 (16) - 0000000000871754 [10:59:47]1040 (4) - 191362 [10:59:47]1012 (4) - 25.10.2024 04:30 [10:59:47]1206 (1) - 0 [10:59:47]OFD Sender: Remove packet 191362 [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00191362 [10:59:47]NVStorageDeleteData [10:59:47]Write to MH i2c: 01 00 00 36 8A C0 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 36 8A 00 00 00 00 00 A8 0C 7B [10:59:47]RasterBufferAndPrint [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]written 0, free lines is 3248 [10:59:47]MH_Cut [10:59:47]Write to MH i2c: D1 01 00 3D 8A 01 99 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: D1 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: D1 01 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: D1 01 00 3D 8A 00 98 [10:59:47]Write to MH i2c: 01 00 00 3E 8A C8 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:48]OFD Sender: No OFD packet to send [10:59:48]*** Cut start [10:59:48]*** Partial cut [10:59:48]*** CUTSNS_PIN = 1 [10:59:48]*** CUTSNS_PIN = 0 [10:59:49]*** Brake cut motor [10:59:49]Read from MH i2c: 01 [10:59:49]MH_I2C_Read... [10:59:49]*** Stop cut motor [10:59:49]*** Cut end [10:59:49]Read from MH i2c: 01 07 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 3E 8A 00 00 00 00 00 FF 0F DD [10:59:49]process_action close_receipt done [10:59:49]requested_data is exist [10:59:49]produce_requested_data [10:59:49]requested_item fm.sn is exist - process it [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 11 00 00 [10:59:49]Write to MH i2c: E2 08 00 3F 8A 80 11 00 00 00 00 00 00 43 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 17 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 17 00 3F 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [10:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:49]wFMCommunicate OK [10:59:49]requested_item fd.num is exist - process it [10:59:49]SAM_PROTO_GetFieldsCounters [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 13 00 00 [10:59:49]Write to MH i2c: E2 08 00 40 8A 80 13 00 00 00 00 00 00 46 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 62 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 62 00 40 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EB 02 00 0E 04 04 00 1C 02 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 28 [10:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_GetFieldsCounters done [10:59:49]requested_item shift.num is exist - process it [10:59:49]requested_item shift.opened is exist - process it [10:59:49]req_shift_opened [10:59:49]FM_GetShiftState [10:59:49]SAM_PROTO_GetShiftState [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 13 01 00 [10:59:49]Write to MH i2c: E2 08 00 41 8A 80 13 01 00 00 00 00 00 48 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 41 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [10:59:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_GetShiftState done [10:59:49]FM_GetShiftState done [10:59:49]req_shift_opened done [10:59:49]requested_item shift.open_date is exist - process it [10:59:49]req_shift_open_date [10:59:49]req_shift_open_date done [10:59:49]produce_requested_data done [10:59:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191362,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [10:59:49]process_action_free close_receipt [10:59:49]json_value_free [10:59:49]json_value_free done [10:59:49]process_json_proto returns [10:59:49]Send response to host [10:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191362,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [10:59:49]free response buf [10:59:49]execute_script done [10:59:49]execute_script returns [10:59:49]free content buf [10:59:49]Sock 9.Close socket [10:59:49]Sock 9.Thread stoped [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:02]accept exits with 8 [11:00:02]New connection [11:00:02]New thread 3066817892 created [11:00:02]Thread 3066961252 joined [11:00:02]Waiting for new connection... [11:00:02] Sock 8.Parse request [11:00:02]Sock 8.Check first char [11:00:02]Sock 8.First char is OK [11:00:02]request: POST /json_proto HTTP/1.0 [11:00:02]Method: POST [11:00:02]URL: /json_proto [11:00:02]Method is POST - this is cgi request [11:00:02]url: /json_proto [11:00:02]query_string will be loaded in cgi processing [11:00:02]execute_cgi json_proto POST (null) [11:00:02]execute_cgi path=json_proto method=POST [11:00:02]POST find Content-Length [11:00:02]Host: 172.17.63.131:8080 [11:00:02]Content-Length: 676 [11:00:02]Content-Type: application/json [11:00:02] [11:00:02]POST finish read [11:00:02]Found Content-Length = 676 [11:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:02]execute_script... [11:00: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)30656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:02]POST & json_proto [11:00:02]process_json_proto [11:00:02]json parsed OK: [11:00:02]protocol is kg_v1.0 [11:00:02]action value=close_receipt [11:00:02]process_action close_receipt [11:00:02]cmd_close_receipt [11:00:02]MH_GetDate [11:00:02]Write to MH i2c: F0 00 00 42 8A BB [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: F0 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: F0 09 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: F0 09 00 42 8A 00 3B 7A 1B 67 22 05 6E 64 F4 [11:00:02]GetLastDocTimeStamp 1729853994 [11:00:02]current date 1729854011 [11:00:02]FM_GetShiftState [11:00:02]SAM_PROTO_GetShiftState [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 13 01 00 [11:00:02]Write to MH i2c: E2 08 00 43 8A 80 13 01 00 00 00 00 00 4A [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0E 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0E 00 43 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [11:00:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:00:02]wFMCommunicate OK [11:00:02]SAM_PROTO_GetShiftState done [11:00:02]FM_GetShiftState done [11:00:02]opened in 1729816399 [11:00:02]opened+sec_in_day 1729902799 [11:00:02]quantity*price = 40006 [11:00:02]sum+1 = 40007 [11:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 102 25.10.2024 11:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191363 ФПД: 174550860571724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110011&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191363&fm=174550860571724&tin=02508201610067®Number=0000000000091776&sum=40000 [11:00:04]StoreToDocumentArchive [11:00:04]shift 540 fd 191363 [11:00:04]save to /storage/0540/doc_00191363 [11:00:04]save last doc name /storage/0540/doc_00191363 to /storage/kkm_last_doc_name [11:00:04]save OK [11:00:04]Clear old archive folders... [11:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:04]tlvbuf is 0160B5A0 [11:00:04]SAM_PROTO_ClearQueue [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 09 00 00 [11:00:04]Write to MH i2c: E2 08 00 50 8A 80 09 00 00 00 00 00 00 4C [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 50 8A 00 90 00 4E [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]SAM_PROTO_ClearQueue done [11:00:04]KKMCreateOFDPacket [11:00:04]OFDProtocolAddRootSTLVToBuf [11:00:04]FM_MakeSignedData [11:00:04]FM_MakeSignedData [11:00:04]SAM_PROTO_SignData [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 01 02 [11:00:04]Write to MH i2c: E2 08 00 51 8A 80 0D 01 02 00 00 00 00 54 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 51 8A 00 90 00 4F [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=255 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EB 02 00 35 04 06 00 9E [11:00:04]Write to MH i2c: E2 02 01 52 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EB 02 00 35 04 06 00 9E 00 00 80 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 52 8A 00 90 00 50 [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=10 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 02 02 05 C0 CA 0A 24 4C [11:00:04]Write to MH i2c: E2 0D 00 53 8A 80 0D 02 02 05 00 C0 CA 0A 24 4C 00 00 65 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 53 8A 00 90 00 51 [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 03 02 [11:00:04]Write to MH i2c: E2 08 00 54 8A 80 0D 03 02 00 00 00 00 59 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 0B 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 0B 00 54 8A 00 CD 6B AD 63 3E 5C A2 EA 90 00 C8 [11:00:04]RAPDU: CD 6B AD 63 3E 5C A2 EA 90 00 [11:00:04]wFMCommunicate OK [11:00:04]SAM_PROTO_SignData done [11:00:04]FM_MakeSignedData done [11:00:04]CreateOFDProtocolMessage [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 11 00 00 [11:00:04]Write to MH i2c: E2 08 00 55 8A 80 11 00 00 00 00 00 00 59 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 55 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [11:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:04]wFMCommunicate OK [11:00:04]CreateOFDProtocolMessage done [11:00:04]OFDSenderStorePacket 191363 [11:00:04]StoreOFDPacket docnum=191363 [11:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B CF 07 01 43 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EB 02 00 35 04 06 00 9E C0 CA 0A 24 4C CD 6B AD 63 3E 5C A2 EA [11:00:04]CheckFolder [11:00:04]dirname=/storage/ofd_packets [11:00:04]CheckFolder done [11:00:04]ProducePacketName [11:00:04]name=ofd_packets/00191363 [11:00:04]NVStorageSaveData ofd_packets/00191363 [11:00:04]File name is /storage/ofd_packets/00191363 [11:00:04]Write 301 bytes [11:00:04]NVStorageSaveData done [11:00:04]OFDSenderStorePacket done [11:00:04]KKMCreateOFDPacket done [11:00:04]NVStorageSaveData kkm_last_timestamp [11:00:04]File name is /storage/kkm_last_timestamp [11:00:04]Write 4 bytes [11:00:04]NVStorageSaveData done [11:00:04]ExternCall_PrintAddStr [11:00:04]wPrintStart [11:00:04]Write to MH i2c: 01 00 00 56 8A E0 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 07 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 07 00 56 8A 00 00 00 00 00 FF 0F F5 [11:00:04]RasterBufferAndPrint [11:00:04]line Счет N : (1)30656 [11:00:04]line ИНН: 02508201610067 [11:00:04]line Контрольно-Кассовый Чек [11:00:04]line ПРОДАЖА [11:00:04]line ТРК (МРК, ГНК) : 21 [11:00:04]line Товар: 2710124130 [11:00:04]line Аи-92-К-5 [11:00:04]line 5.980 * 66.90 [11:00:04]line = 400.06 [11:00:04]line НДС 12% НСП 1% [11:00:04]line > о реализуемом товаре [11:00:04]line ОКРУГЛЕНИЕ: -0.06 [11:00:04]line ИТОГО: 400.00 [11:00:04]line Внесено: 400.00 [11:00:04]line СДАЧА: 0.00 [11:00:04]line НСП 1% : 3.54 [11:00:04]line НДС 12% : 42.48 [11:00:04]line Наличными: 400.00 [11:00:04]line Безнал.: 0.00 [11:00:04]line Место: АЗС № 170 "Партнер Нефть" [11:00:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:00:04]line СНО: Общий режим [11:00:04]line Чек 102 25.10.2024 11:00 [11:00:04]line Смена: 540 ФФД: 1.0 [11:00:04]line ЗНМ: 0300000110 [11:00:04]line РНМ: 0000000000091776 [11:00:04]line Версия ККМ: 001 [11:00:04]line ФМ: 0000000000871754 [11:00:04]line ФД: 191363 [11:00:04]line ФПД: 174550860571724 [11:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110011&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191363&fm=174550860571724&tin=02508201610067®Number=0000000000091776&sum=40000 [11:00:04]OFD Sender: Processing packet 191363 [packets to send 75, broken 74] [11:00:04]ProducePacketName [11:00:04]name=ofd_packets/00191363 [11:00:04]OFD Sender: To server: pG, [11:00:04]CommunicateWithHost lk.salyk.kg:30040 [11:00:04]ConnectInit lk.salyk.kg [11:00:04]written 0, free lines is 4095 [11:00:05]Connected sock=10 [11:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B CF 07 01 43 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 3B 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EB 02 00 35 04 06 00 9E C0 CA 0A 24 4C CD 6B AD 63 3E 5C A2 EA [11:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 54 47 00 E4 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EB 02 00 F4 03 04 00 0A 1F 1B 67 B6 04 01 00 00 B9 17 D0 A3 CB 16 F5 ED [11:00:05]CommunicateWithHost err = 0 [11:00:05]CheckOFDResponse [11:00:05]1017 (14) - 77093643461234 [11:00:05]1041 (16) - 0000000000871754 [11:00:05]1040 (4) - 191363 [11:00:05]1012 (4) - 25.10.2024 04:31 [11:00:05]1206 (1) - 0 [11:00:05]OFD Sender: Remove packet 191363 [11:00:05]ProducePacketName [11:00:05]name=ofd_packets/00191363 [11:00:05]NVStorageDeleteData [11:00:05]Write to MH i2c: 01 00 00 81 8A 0B [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 07 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 07 00 81 8A 00 00 00 00 00 A5 0C C3 [11:00:05]RasterBufferAndPrint [11:00:05]line [11:00:05]line [11:00:05]line [11:00:05]line [11:00:05]line [11:00:05]written 0, free lines is 3242 [11:00:05]MH_Cut [11:00:05]Write to MH i2c: D1 01 00 88 8A 01 E4 [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: D1 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: D1 01 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: D1 01 00 88 8A 00 E3 [11:00:05]Write to MH i2c: 01 00 00 89 8A 13 [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]OFD Sender: No OFD packet to send [11:00:06]*** Cut start [11:00:06]*** Partial cut [11:00:06]*** CUTSNS_PIN = 1 [11:00:06]*** CUTSNS_PIN = 0 [11:00:06]*** Brake cut motor [11:00:06]Read from MH i2c: 01 [11:00:06]MH_I2C_Read... [11:00:06]*** Stop cut motor [11:00:06]*** Cut end [11:00:06]Read from MH i2c: 01 07 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: 01 07 00 89 8A 00 00 00 00 00 FF 0F 28 [11:00:06]process_action close_receipt done [11:00:06]requested_data is exist [11:00:06]produce_requested_data [11:00:06]requested_item fm.sn is exist - process it [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 11 00 00 [11:00:06]Write to MH i2c: E2 08 00 8A 8A 80 11 00 00 00 00 00 00 8E [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 17 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 17 00 8A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [11:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:06]wFMCommunicate OK [11:00:06]requested_item fd.num is exist - process it [11:00:06]SAM_PROTO_GetFieldsCounters [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 13 00 00 [11:00:06]Write to MH i2c: E2 08 00 8B 8A 80 13 00 00 00 00 00 00 91 [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:07]Read from MH i2c: E2 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 62 00 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 62 00 8B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EB 02 00 0E 04 04 00 1C 02 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 77 [11:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:07]wFMCommunicate OK [11:00:07]SAM_PROTO_GetFieldsCounters done [11:00:07]requested_item shift.num is exist - process it [11:00:07]requested_item shift.opened is exist - process it [11:00:07]req_shift_opened [11:00:07]FM_GetShiftState [11:00:07]SAM_PROTO_GetShiftState [11:00:07]wFMCommunicate request_size=4 [11:00:07]MH_SAM_APDU [11:00:07]CAPDU: 80 13 01 00 [11:00:07]Write to MH i2c: E2 08 00 8C 8A 80 13 01 00 00 00 00 00 93 [11:00:07]Write i2c OK [11:00:07]MH_I2C_Read... [11:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:07]Read from MH i2c: E2 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 0E 00 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 0E 00 8C 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 56 [11:00:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:00:07]wFMCommunicate OK [11:00:07]SAM_PROTO_GetShiftState done [11:00:07]FM_GetShiftState done [11:00:07]req_shift_opened done [11:00:07]requested_item shift.open_date is exist - process it [11:00:07]req_shift_open_date [11:00:07]req_shift_open_date done [11:00:07]produce_requested_data done [11:00:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191363,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:00:07]process_action_free close_receipt [11:00:07]json_value_free [11:00:07]json_value_free done [11:00:07]process_json_proto returns [11:00:07]Send response to host [11:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191363,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:00:07]free response buf [11:00:07]execute_script done [11:00:07]execute_script returns [11:00:07]free content buf [11:00:07]Sock 8.Close socket [11:00:07]Sock 8.Thread stoped [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:19]accept exits with 9 [11:00:19]New connection [11:00:19]New thread 3066961252 created [11:00:19]Thread 3066817892 joined [11:00:19]Waiting for new connection... [11:00:19] Sock 9.Parse request [11:00:19]Sock 9.Check first char [11:00:19]Sock 9.First char is OK [11:00:19]request: POST /json_proto HTTP/1.0 [11:00:19]Method: POST [11:00:19]URL: /json_proto [11:00:19]Method is POST - this is cgi request [11:00:19]url: /json_proto [11:00:19]query_string will be loaded in cgi processing [11:00:19]execute_cgi json_proto POST (null) [11:00:19]execute_cgi path=json_proto method=POST [11:00:19]POST find Content-Length [11:00:19]Host: 172.17.63.131:8080 [11:00:19]Content-Length: 676 [11:00:19]Content-Type: application/json [11:00:19] [11:00:19]POST finish read [11:00:19]Found Content-Length = 676 [11:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:19]execute_script... [11:00: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)30657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:19]POST & json_proto [11:00:19]process_json_proto [11:00:19]json parsed OK: [11:00:19]protocol is kg_v1.0 [11:00:19]action value=close_receipt [11:00:19]process_action close_receipt [11:00:19]cmd_close_receipt [11:00:19]MH_GetDate [11:00:19]Write to MH i2c: F0 00 00 8D 8A 06 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: F0 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: F0 09 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: F0 09 00 8D 8A 00 4C 7A 1B 67 22 05 6E 64 50 [11:00:19]GetLastDocTimeStamp 1729854011 [11:00:19]current date 1729854028 [11:00:19]FM_GetShiftState [11:00:19]SAM_PROTO_GetShiftState [11:00:19]wFMCommunicate request_size=4 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 13 01 00 [11:00:19]Write to MH i2c: E2 08 00 8E 8A 80 13 01 00 00 00 00 00 95 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0E 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0E 00 8E 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 58 [11:00:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:00:19]wFMCommunicate OK [11:00:19]SAM_PROTO_GetShiftState done [11:00:19]FM_GetShiftState done [11:00:19]opened in 1729816399 [11:00:19]opened+sec_in_day 1729902799 [11:00:19]quantity*price = 50041 [11:00:19]sum+1 = 50042 [11:00:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 103 25.10.2024 11:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191364 ФПД: 62751145117591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191364&fm=62751145117591&tin=02508201610067®Number=0000000000091776&sum=50000 [11:00:20]StoreToDocumentArchive [11:00:20]shift 540 fd 191364 [11:00:20]save to /storage/0540/doc_00191364 [11:00:20]save last doc name /storage/0540/doc_00191364 to /storage/kkm_last_doc_name [11:00:20]save OK [11:00:20]Clear old archive folders... [11:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:20]tlvbuf is 017E2740 [11:00:20]SAM_PROTO_ClearQueue [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 09 00 00 [11:00:20]Write to MH i2c: E2 08 00 9B 8A 80 09 00 00 00 00 00 00 97 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]OFD Sender: No OFD packet to send [11:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 9B 8A 00 90 00 99 [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_ClearQueue done [11:00:20]KKMCreateOFDPacket [11:00:20]OFDProtocolAddRootSTLVToBuf [11:00:20]FM_MakeSignedData [11:00:20]FM_MakeSignedData [11:00:20]SAM_PROTO_SignData [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 01 02 [11:00:20]Write to MH i2c: E2 08 00 9C 8A 80 0D 01 02 00 00 00 00 9F [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 9C 8A 00 90 00 9A [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]wFMCommunicate request_size=255 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 4C 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EB 02 00 35 04 06 00 39 [11:00:20]Write to MH i2c: E2 02 01 9D 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 4C 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EB 02 00 35 04 06 00 39 00 00 AA [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 9D 8A 00 90 00 9B [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=10 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 02 02 05 12 63 B6 C7 97 [11:00:21]Write to MH i2c: E2 0D 00 9E 8A 80 0D 02 02 05 00 12 63 B6 C7 97 00 00 35 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 9E 8A 00 90 00 9C [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 03 02 [11:00:21]Write to MH i2c: E2 08 00 9F 8A 80 0D 03 02 00 00 00 00 A4 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 9F 8A 00 6E E0 DB C8 95 40 6B C4 90 00 9A [11:00:21]RAPDU: 6E E0 DB C8 95 40 6B C4 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_SignData done [11:00:21]FM_MakeSignedData done [11:00:21]CreateOFDProtocolMessage [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 11 00 00 [11:00:21]Write to MH i2c: E2 08 00 A0 8A 80 11 00 00 00 00 00 00 A4 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 A0 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [11:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:21]wFMCommunicate OK [11:00:21]CreateOFDProtocolMessage done [11:00:21]OFDSenderStorePacket 191364 [11:00:21]StoreOFDPacket docnum=191364 [11:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 1F 07 01 EC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 4C 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EB 02 00 35 04 06 00 39 12 63 B6 C7 97 6E E0 DB C8 95 40 6B C4 [11:00:21]CheckFolder [11:00:21]dirname=/storage/ofd_packets [11:00:21]CheckFolder done [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00191364 [11:00:21]NVStorageSaveData ofd_packets/00191364 [11:00:21]File name is /storage/ofd_packets/00191364 [11:00:21]Write 301 bytes [11:00:21]NVStorageSaveData done [11:00:21]OFDSenderStorePacket done [11:00:21]KKMCreateOFDPacket done [11:00:21]NVStorageSaveData kkm_last_timestamp [11:00:21]File name is /storage/kkm_last_timestamp [11:00:21]Write 4 bytes [11:00:21]NVStorageSaveData done [11:00:21]OFD Sender: Processing packet 191364 [packets to send 75, broken 74] [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00191364 [11:00:21]OFD Sender: To server: pG, [11:00:21]CommunicateWithHost lk.salyk.kg:30040 [11:00:21]ConnectInit lk.salyk.kg [11:00:21]ExternCall_PrintAddStr [11:00:21]wPrintStart [11:00:21]Write to MH i2c: 01 00 00 A1 8A 2B [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 A1 8A 00 00 00 00 00 FF 0F 40 [11:00:21]RasterBufferAndPrint [11:00:21]line Счет N : (1)30657 [11:00:21]line ИНН: 02508201610067 [11:00:21]line Контрольно-Кассовый Чек [11:00:21]line ПРОДАЖА [11:00:21]line ТРК (МРК, ГНК) : 12 [11:00:21]line Товар: 2710124130 [11:00:21]line Аи-92-К-5 [11:00:21]line 7.480 * 66.90 [11:00:21]line = 500.41 [11:00:21]line НДС 12% НСП 1% [11:00:21]line > о реализуемом товаре [11:00:21]line ОКРУГЛЕНИЕ: -0.41 [11:00:21]line ИТОГО: 500.00 [11:00:21]line Внесено: 500.00 [11:00:21]line СДАЧА: 0.00 [11:00:21]line НСП 1% : 4.43 [11:00:21]line НДС 12% : 53.14 [11:00:21]line Наличными: 500.00 [11:00:21]line Безнал.: 0.00 [11:00:21]line Место: АЗС № 170 "Партнер Нефть" [11:00:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:00:21]line СНО: Общий режим [11:00:21]line Чек 103 25.10.2024 11:00 [11:00:21]line Смена: 540 ФФД: 1.0 [11:00:21]line ЗНМ: 0300000110 [11:00:21]line РНМ: 0000000000091776 [11:00:21]line Версия ККМ: 001 [11:00:21]line ФМ: 0000000000871754 [11:00:21]line ФД: 191364 [11:00:21]line ФПД: 62751145117591 [11:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191364&fm=62751145117591&tin=02508201610067®Number=0000000000091776&sum=50000 [11:00:21]Connected sock=11 [11:00:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 1F 07 01 EC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 4C 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EB 02 00 35 04 06 00 39 12 63 B6 C7 97 6E E0 DB C8 95 40 6B C4 [11:00:21]written 0, free lines is 4095 [11:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F0 A7 47 00 F5 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 31 37 35 34 10 04 04 00 84 EB 02 00 F4 03 04 00 1A 1F 1B 67 B6 04 01 00 00 14 DA 68 47 C7 7E 90 0F [11:00:21]CommunicateWithHost err = 0 [11:00:21]CheckOFDResponse [11:00:21]1017 (14) - 77093643461234 [11:00:21]1041 (16) - 0000000000871754 [11:00:21]1040 (4) - 191364 [11:00:21]1012 (4) - 25.10.2024 04:31 [11:00:21]1206 (1) - 0 [11:00:21]OFD Sender: Remove packet 191364 [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00191364 [11:00:21]NVStorageDeleteData [11:00:22]Write to MH i2c: 01 00 00 CC 8A 56 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 CC 8A 00 00 00 00 00 A4 0C 0D [11:00:22]RasterBufferAndPrint [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]written 0, free lines is 3242 [11:00:22]MH_Cut [11:00:22]Write to MH i2c: D1 01 00 D3 8A 01 2F [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 D3 8A 00 2E [11:00:22]Write to MH i2c: 01 00 00 D4 8A 5E [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]OFD Sender: No OFD packet to send [11:00:22]*** Cut start [11:00:22]*** Partial cut [11:00:22]*** CUTSNS_PIN = 1 [11:00:23]*** CUTSNS_PIN = 0 [11:00:23]*** Brake cut motor [11:00:23]Read from MH i2c: 01 [11:00:23]MH_I2C_Read... [11:00:23]*** Stop cut motor [11:00:23]*** Cut end [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 D4 8A 00 00 00 00 00 FF 0F 73 [11:00:23]process_action close_receipt done [11:00:23]requested_data is exist [11:00:23]produce_requested_data [11:00:23]requested_item fm.sn is exist - process it [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 11 00 00 [11:00:23]Write to MH i2c: E2 08 00 D5 8A 80 11 00 00 00 00 00 00 D9 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 D5 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [11:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:23]wFMCommunicate OK [11:00:23]requested_item fd.num is exist - process it [11:00:23]SAM_PROTO_GetFieldsCounters [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 00 00 [11:00:23]Write to MH i2c: E2 08 00 D6 8A 80 13 00 00 00 00 00 00 DC [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 62 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 62 00 D6 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EB 02 00 0E 04 04 00 1C 02 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 C6 [11:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:23]wFMCommunicate OK [11:00:23]SAM_PROTO_GetFieldsCounters done [11:00:23]requested_item shift.num is exist - process it [11:00:23]requested_item shift.opened is exist - process it [11:00:23]req_shift_opened [11:00:23]FM_GetShiftState [11:00:23]SAM_PROTO_GetShiftState [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 01 00 [11:00:23]Write to MH i2c: E2 08 00 D7 8A 80 13 01 00 00 00 00 00 DE [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 D7 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A1 [11:00:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:00:23]wFMCommunicate OK [11:00:23]SAM_PROTO_GetShiftState done [11:00:23]FM_GetShiftState done [11:00:23]req_shift_opened done [11:00:23]requested_item shift.open_date is exist - process it [11:00:23]req_shift_open_date [11:00:23]req_shift_open_date done [11:00:23]produce_requested_data done [11:00:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191364,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:00:23]process_action_free close_receipt [11:00:23]json_value_free [11:00:23]json_value_free done [11:00:23]process_json_proto returns [11:00:23]Send response to host [11:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191364,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:00:23]free response buf [11:00:23]execute_script done [11:00:23]execute_script returns [11:00:23]free content buf [11:00:23]Sock 9.Close socket [11:00:23]Sock 9.Thread stoped [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:09]accept exits with 8 [11:02:09]New connection [11:02:09]New thread 3066817892 created [11:02:09]Thread 3066961252 joined [11:02:09]Waiting for new connection... [11:02:09] Sock 8.Parse request [11:02:09]Sock 8.Check first char [11:02:09]Sock 8.First char is OK [11:02:09]request: POST /json_proto HTTP/1.0 [11:02:09]Method: POST [11:02:09]URL: /json_proto [11:02:09]Method is POST - this is cgi request [11:02:09]url: /json_proto [11:02:09]query_string will be loaded in cgi processing [11:02:09]execute_cgi json_proto POST (null) [11:02:09]execute_cgi path=json_proto method=POST [11:02:09]POST find Content-Length [11:02:09]Host: 172.17.63.131:8080 [11:02:09]Content-Length: 678 [11:02:09]Content-Type: application/json [11:02:09] [11:02:09]POST finish read [11:02:09]Found Content-Length = 678 [11:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:02:09]execute_script... [11: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)30658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:02:09]POST & json_proto [11:02:09]process_json_proto [11:02:09]json parsed OK: [11:02:09]protocol is kg_v1.0 [11:02:09]action value=close_receipt [11:02:09]process_action close_receipt [11:02:09]cmd_close_receipt [11:02:09]MH_GetDate [11:02:09]Write to MH i2c: F0 00 00 D8 8A 51 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: F0 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: F0 09 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: F0 09 00 D8 8A 00 B9 7A 1B 67 22 05 6E 64 08 [11:02:09]GetLastDocTimeStamp 1729854028 [11:02:09]current date 1729854137 [11:02:09]FM_GetShiftState [11:02:09]SAM_PROTO_GetShiftState [11:02:09]wFMCommunicate request_size=4 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 13 01 00 [11:02:09]Write to MH i2c: E2 08 00 D9 8A 80 13 01 00 00 00 00 00 E0 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 0E 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 0E 00 D9 8A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A3 [11:02:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:02:09]wFMCommunicate OK [11:02:09]SAM_PROTO_GetShiftState done [11:02:09]FM_GetShiftState done [11:02:09]opened in 1729816399 [11:02:09]opened+sec_in_day 1729902799 [11:02:09]quantity*price = 100050 [11:02:09]sum+1 = 100052 [11:02: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 104 25.10.2024 11:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191365 ФПД: 187824811764742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191365&fm=187824811764742&tin=02508201610067®Number=0000000000091776&sum=100000 [11:02:10]StoreToDocumentArchive [11:02:10]shift 540 fd 191365 [11:02:10]save to /storage/0540/doc_00191365 [11:02:10]save last doc name /storage/0540/doc_00191365 to /storage/kkm_last_doc_name [11:02:10]save OK [11:02:10]Clear old archive folders... [11:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:10]tlvbuf is 0183C680 [11:02:10]SAM_PROTO_ClearQueue [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 09 00 00 [11:02:10]Write to MH i2c: E2 08 00 E6 8A 80 09 00 00 00 00 00 00 E2 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 E6 8A 00 90 00 E4 [11:02:10]RAPDU: 90 00 [11:02:10]wFMCommunicate OK [11:02:10]SAM_PROTO_ClearQueue done [11:02:10]KKMCreateOFDPacket [11:02:10]OFDProtocolAddRootSTLVToBuf [11:02:10]FM_MakeSignedData [11:02:10]FM_MakeSignedData [11:02:10]SAM_PROTO_SignData [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 0D 01 02 [11:02:10]Write to MH i2c: E2 08 00 E7 8A 80 0D 01 02 00 00 00 00 EA [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 E7 8A 00 90 00 E5 [11:02:10]RAPDU: 90 00 [11:02:10]wFMCommunicate OK [11:02:10]wFMCommunicate request_size=255 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EB 02 00 35 04 06 00 AA D3 5F 2F [11:02:10]Write to MH i2c: E2 02 01 E8 8A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EB 02 00 35 04 06 00 AA D3 5F 2F 00 00 2C [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 E8 8A 00 90 00 E6 [11:02:10]RAPDU: 90 00 [11:02:10]wFMCommunicate OK [11:02:10]wFMCommunicate request_size=7 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 0D 02 02 02 6C 06 [11:02:10]Write to MH i2c: E2 0A 00 E9 8A 80 0D 02 02 02 00 6C 06 00 00 63 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 03 00 E9 8A 00 90 00 E7 [11:02:10]RAPDU: 90 00 [11:02:10]wFMCommunicate OK [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 0D 03 02 [11:02:10]Write to MH i2c: E2 08 00 EA 8A 80 0D 03 02 00 00 00 00 EF [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 0B 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 0B 00 EA 8A 00 8F FD 12 CF 8F 24 D1 21 90 00 02 [11:02:10]RAPDU: 8F FD 12 CF 8F 24 D1 21 90 00 [11:02:10]wFMCommunicate OK [11:02:10]SAM_PROTO_SignData done [11:02:10]FM_MakeSignedData done [11:02:10]CreateOFDProtocolMessage [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 11 00 00 [11:02:10]Write to MH i2c: E2 08 00 EB 8A 80 11 00 00 00 00 00 00 EF [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 17 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 17 00 EB 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [11:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:10]wFMCommunicate OK [11:02:10]CreateOFDProtocolMessage done [11:02:10]OFDSenderStorePacket 191365 [11:02:10]StoreOFDPacket docnum=191365 [11:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C5 85 04 01 4D B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 B9 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EB 02 00 35 04 06 00 AA D3 5F 2F 6C 06 8F FD 12 CF 8F 24 D1 21 [11:02:10]CheckFolder [11:02:10]dirname=/storage/ofd_packets [11:02:10]CheckFolder done [11:02:10]ProducePacketName [11:02:10]name=ofd_packets/00191365 [11:02:10]NVStorageSaveData ofd_packets/00191365 [11:02:10]File name is /storage/ofd_packets/00191365 [11:02:10]Write 298 bytes [11:02:10]NVStorageSaveData done [11:02:10]OFDSenderStorePacket done [11:02:10]KKMCreateOFDPacket done [11:02:10]NVStorageSaveData kkm_last_timestamp [11:02:10]File name is /storage/kkm_last_timestamp [11:02:10]Write 4 bytes [11:02:10]NVStorageSaveData done [11:02:10]ExternCall_PrintAddStr [11:02:10]wPrintStart [11:02:10]Write to MH i2c: 01 00 00 EC 8A 76 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 07 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 07 00 EC 8A 00 00 00 00 00 FF 0F 8B [11:02:10]RasterBufferAndPrint [11:02:10]line Счет N : (1)30658 [11:02:10]line ИНН: 02508201610067 [11:02:10]line Контрольно-Кассовый Чек [11:02:10]line ПРОДАЖА [11:02:10]line ТРК (МРК, ГНК) : 22 [11:02:10]line Товар: 2710194210 [11:02:10]line ДТ-К-5 [11:02:10]line 13.130 * 76.20 [11:02:10]line = 1000.51 [11:02:10]line НДС 12% НСП 1% [11:02:10]line > о реализуемом товаре [11:02:10]line ОКРУГЛЕНИЕ: -0.51 [11:02:10]line ИТОГО: 1000.00 [11:02:10]line Внесено: 1000.00 [11:02:10]line СДАЧА: 0.00 [11:02:10]line НСП 1% : 8.85 [11:02:10]line НДС 12% : 106.25 [11:02:10]line Наличными: 1000.00 [11:02:10]line Безнал.: 0.00 [11:02:10]line Место: АЗС № 170 "Партнер Нефть" [11:02:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:02:10]line СНО: Общий режим [11:02:10]line Чек 104 25.10.2024 11:02 [11:02:10]line Смена: 540 ФФД: 1.0 [11:02:10]line ЗНМ: 0300000110 [11:02:10]line РНМ: 0000000000091776 [11:02:10]line Версия ККМ: 001 [11:02:10]line ФМ: 0000000000871754 [11:02:10]line ФД: 191365 [11:02:10]line ФПД: 187824811764742 [11:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191365&fm=187824811764742&tin=02508201610067®Number=0000000000091776&sum=100000 [11:02:11]OFD Sender: Processing packet 191365 [packets to send 75, broken 74] [11:02:11]ProducePacketName [11:02:11]name=ofd_packets/00191365 [11:02:11]OFD Sender: To server: pG, [11:02:11]CommunicateWithHost lk.salyk.kg:30040 [11:02:11]ConnectInit lk.salyk.kg [11:02:11]written 0, free lines is 4095 [11:02:11]Connected sock=10 [11: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 31 37 35 34 0C 01 00 00 C5 85 04 01 4D B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 B9 7A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EB 02 00 35 04 06 00 AA D3 5F 2F 6C 06 8F FD 12 CF 8F 24 D1 21 [11:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B B5 47 00 DE FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EB 02 00 F4 03 04 00 88 1F 1B 67 B6 04 01 00 00 E2 FC DB E7 6A 18 9B EF [11:02:11]CommunicateWithHost err = 0 [11:02:11]CheckOFDResponse [11:02:11]1017 (14) - 77093643461234 [11:02:11]1041 (16) - 0000000000871754 [11:02:11]1040 (4) - 191365 [11:02:11]1012 (4) - 25.10.2024 04:33 [11:02:11]1206 (1) - 0 [11:02:11]OFD Sender: Remove packet 191365 [11:02:11]ProducePacketName [11:02:11]name=ofd_packets/00191365 [11:02:11]NVStorageDeleteData [11:02:11]Write to MH i2c: 01 00 00 17 8B A2 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 07 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 07 00 17 8B 00 00 00 00 00 A6 0C 5B [11:02:11]RasterBufferAndPrint [11:02:11]line [11:02:11]line [11:02:11]line [11:02:11]line [11:02:11]line [11:02:11]written 0, free lines is 3246 [11:02:11]MH_Cut [11:02:11]Write to MH i2c: D1 01 00 1E 8B 01 7B [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: D1 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: D1 01 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: D1 01 00 1E 8B 00 7A [11:02:11]Write to MH i2c: 01 00 00 1F 8B AA [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]OFD Sender: No OFD packet to send [11:02:12]*** Cut start [11:02:12]*** Partial cut [11:02:12]*** CUTSNS_PIN = 1 [11:02:12]*** CUTSNS_PIN = 0 [11:02:12]*** Brake cut motor [11:02:12]Read from MH i2c: 01 [11:02:13]MH_I2C_Read... [11:02:13]*** Stop cut motor [11:02:13]*** Cut end [11:02:13]Read from MH i2c: 01 07 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: 01 07 00 1F 8B 00 00 00 00 00 FF 0F BF [11:02:13]process_action close_receipt done [11:02:13]requested_data is exist [11:02:13]produce_requested_data [11:02:13]requested_item fm.sn is exist - process it [11:02:13]wFMCommunicate request_size=4 [11:02:13]MH_SAM_APDU [11:02:13]CAPDU: 80 11 00 00 [11:02:13]Write to MH i2c: E2 08 00 20 8B 80 11 00 00 00 00 00 00 25 [11:02:13]Write i2c OK [11:02:13]MH_I2C_Read... [11:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:13]Read from MH i2c: E2 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 17 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 17 00 20 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [11:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:13]wFMCommunicate OK [11:02:13]requested_item fd.num is exist - process it [11:02:13]SAM_PROTO_GetFieldsCounters [11:02:13]wFMCommunicate request_size=4 [11:02:13]MH_SAM_APDU [11:02:13]CAPDU: 80 13 00 00 [11:02:13]Write to MH i2c: E2 08 00 21 8B 80 13 00 00 00 00 00 00 28 [11:02:13]Write i2c OK [11:02:13]MH_I2C_Read... [11:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:13]Read from MH i2c: E2 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 62 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 62 00 21 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EB 02 00 0E 04 04 00 1C 02 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 16 [11: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:13]wFMCommunicate OK [11:02:13]SAM_PROTO_GetFieldsCounters done [11:02:13]requested_item shift.num is exist - process it [11:02:13]requested_item shift.opened is exist - process it [11:02:13]req_shift_opened [11:02:13]FM_GetShiftState [11:02:13]SAM_PROTO_GetShiftState [11:02:13]wFMCommunicate request_size=4 [11:02:13]MH_SAM_APDU [11:02:13]CAPDU: 80 13 01 00 [11:02:13]Write to MH i2c: E2 08 00 22 8B 80 13 01 00 00 00 00 00 2A [11:02:13]Write i2c OK [11:02:13]MH_I2C_Read... [11:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:13]Read from MH i2c: E2 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 0E 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 0E 00 22 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [11:02:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:02:13]wFMCommunicate OK [11:02:13]SAM_PROTO_GetShiftState done [11:02:13]FM_GetShiftState done [11:02:13]req_shift_opened done [11:02:13]requested_item shift.open_date is exist - process it [11:02:13]req_shift_open_date [11:02:13]req_shift_open_date done [11:02:13]produce_requested_data done [11:02:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191365,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:02:13]process_action_free close_receipt [11:02:13]json_value_free [11:02:13]json_value_free done [11:02:13]process_json_proto returns [11:02:13]Send response to host [11:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191365,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:02:13]free response buf [11:02:13]execute_script done [11:02:13]execute_script returns [11:02:13]free content buf [11:02:13]Sock 8.Close socket [11:02:13]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:33]accept exits with 9 [11:04:33]New connection [11:04:33]New thread 3066961252 created [11:04:33]Thread 3066817892 joined [11:04:33]Waiting for new connection... [11:04:33] Sock 9.Parse request [11:04:33]Sock 9.Check first char [11:04:33]Sock 9.First char is OK [11:04:33]request: POST /json_proto HTTP/1.0 [11:04:33]Method: POST [11:04:33]URL: /json_proto [11:04:33]Method is POST - this is cgi request [11:04:33]url: /json_proto [11:04:33]query_string will be loaded in cgi processing [11:04:33]execute_cgi json_proto POST (null) [11:04:33]execute_cgi path=json_proto method=POST [11:04:33]POST find Content-Length [11:04:33]Host: 172.17.63.131:8080 [11:04:33]Content-Length: 676 [11:04:33]Content-Type: application/json [11:04:33] [11:04:33]POST finish read [11:04:33]Found Content-Length = 676 [11:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:33]execute_script... [11:04: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)30659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:33]POST & json_proto [11:04:33]process_json_proto [11:04:33]json parsed OK: [11:04:33]protocol is kg_v1.0 [11:04:33]action value=close_receipt [11:04:33]process_action close_receipt [11:04:33]cmd_close_receipt [11:04:33]MH_GetDate [11:04:33]Write to MH i2c: F0 00 00 23 8B 9D [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: F0 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: F0 09 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: F0 09 00 23 8B 00 4A 7B 1B 67 22 05 6E 64 E6 [11:04:33]GetLastDocTimeStamp 1729854137 [11:04:33]current date 1729854282 [11:04:33]FM_GetShiftState [11:04:33]SAM_PROTO_GetShiftState [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 13 01 00 [11:04:33]Write to MH i2c: E2 08 00 24 8B 80 13 01 00 00 00 00 00 2C [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0E 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0E 00 24 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EF [11:04:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_GetShiftState done [11:04:33]FM_GetShiftState done [11:04:33]opened in 1729816399 [11:04:33]opened+sec_in_day 1729902799 [11:04:33]quantity*price = 50041 [11:04:33]sum+1 = 50042 [11:04:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 105 25.10.2024 11:04 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191366 ФПД: 33707350548299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191366&fm=33707350548299&tin=02508201610067®Number=0000000000091776&sum=50000 [11:04:34]StoreToDocumentArchive [11:04:34]shift 540 fd 191366 [11:04:34]save to /storage/0540/doc_00191366 [11:04:34]save last doc name /storage/0540/doc_00191366 to /storage/kkm_last_doc_name [11:04:34]save OK [11:04:34]Clear old archive folders... [11:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:34]tlvbuf is 0160B280 [11:04:34]SAM_PROTO_ClearQueue [11:04:34]wFMCommunicate request_size=4 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 09 00 00 [11:04:34]Write to MH i2c: E2 08 00 31 8B 80 09 00 00 00 00 00 00 2E [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:34]Read from MH i2c: E2 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 03 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 03 00 31 8B 00 90 00 30 [11:04:34]RAPDU: 90 00 [11:04:34]wFMCommunicate OK [11:04:34]SAM_PROTO_ClearQueue done [11:04:34]KKMCreateOFDPacket [11:04:34]OFDProtocolAddRootSTLVToBuf [11:04:34]FM_MakeSignedData [11:04:34]FM_MakeSignedData [11:04:34]SAM_PROTO_SignData [11:04:34]wFMCommunicate request_size=4 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 0D 01 02 [11:04:34]Write to MH i2c: E2 08 00 32 8B 80 0D 01 02 00 00 00 00 36 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:34]Read from MH i2c: E2 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 03 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 03 00 32 8B 00 90 00 31 [11:04:34]RAPDU: 90 00 [11:04:34]wFMCommunicate OK [11:04:34]wFMCommunicate request_size=255 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4A 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EB 02 00 35 04 06 00 1E [11:04:34]Write to MH i2c: E2 02 01 33 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4A 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EB 02 00 35 04 06 00 1E 00 00 29 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 03 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 03 00 33 8B 00 90 00 32 [11:04:35]RAPDU: 90 00 [11:04:35]wFMCommunicate OK [11:04:35]wFMCommunicate request_size=10 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 0D 02 02 05 A8 1A A7 DF 4B [11:04:35]Write to MH i2c: E2 0D 00 34 8B 80 0D 02 02 05 00 A8 1A A7 DF 4B 00 00 D6 [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 03 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 03 00 34 8B 00 90 00 33 [11:04:35]RAPDU: 90 00 [11:04:35]wFMCommunicate OK [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 0D 03 02 [11:04:35]Write to MH i2c: E2 08 00 35 8B 80 0D 03 02 00 00 00 00 3B [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0B 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0B 00 35 8B 00 C6 02 90 40 4C 8D EA 08 90 00 9F [11:04:35]RAPDU: C6 02 90 40 4C 8D EA 08 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_SignData done [11:04:35]FM_MakeSignedData done [11:04:35]CreateOFDProtocolMessage [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 11 00 00 [11:04:35]Write to MH i2c: E2 08 00 36 8B 80 11 00 00 00 00 00 00 3B [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 17 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 17 00 36 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [11:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:04:35]wFMCommunicate OK [11:04:35]CreateOFDProtocolMessage done [11:04:35]OFDSenderStorePacket 191366 [11:04:35]StoreOFDPacket docnum=191366 [11:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 23 07 01 E7 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4A 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EB 02 00 35 04 06 00 1E A8 1A A7 DF 4B C6 02 90 40 4C 8D EA 08 [11:04:35]CheckFolder [11:04:35]dirname=/storage/ofd_packets [11:04:35]CheckFolder done [11:04:35]ProducePacketName [11:04:35]name=ofd_packets/00191366 [11:04:35]NVStorageSaveData ofd_packets/00191366 [11:04:35]File name is /storage/ofd_packets/00191366 [11:04:35]Write 301 bytes [11:04:35]NVStorageSaveData done [11:04:35]OFDSenderStorePacket done [11:04:35]KKMCreateOFDPacket done [11:04:35]NVStorageSaveData kkm_last_timestamp [11:04:35]File name is /storage/kkm_last_timestamp [11:04:35]Write 4 bytes [11:04:35]NVStorageSaveData done [11:04:35]ExternCall_PrintAddStr [11:04:35]wPrintStart [11:04:35]Write to MH i2c: 01 00 00 37 8B C2 [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: 01 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: 01 07 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: 01 07 00 37 8B 00 00 00 00 00 FF 0F D7 [11:04:35]RasterBufferAndPrint [11:04:35]line Счет N : (1)30659 [11:04:35]line ИНН: 02508201610067 [11:04:35]line Контрольно-Кассовый Чек [11:04:35]line ПРОДАЖА [11:04:35]line ТРК (МРК, ГНК) : 12 [11:04:35]line Товар: 2710124130 [11:04:35]line Аи-92-К-5 [11:04:35]line 7.480 * 66.90 [11:04:35]line = 500.41 [11:04:35]line НДС 12% НСП 1% [11:04:35]line > о реализуемом товаре [11:04:35]line ОКРУГЛЕНИЕ: -0.41 [11:04:35]line ИТОГО: 500.00 [11:04:35]line Внесено: 500.00 [11:04:35]line СДАЧА: 0.00 [11:04:35]line НСП 1% : 4.43 [11:04:35]line НДС 12% : 53.14 [11:04:35]line Наличными: 500.00 [11:04:35]line Безнал.: 0.00 [11:04:35]line Место: АЗС № 170 "Партнер Нефть" [11:04:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:04:35]line СНО: Общий режим [11:04:35]line Чек 105 25.10.2024 11:04 [11:04:35]line Смена: 540 ФФД: 1.0 [11:04:35]line ЗНМ: 0300000110 [11:04:35]line РНМ: 0000000000091776 [11:04:35]line Версия ККМ: 001 [11:04:35]line ФМ: 0000000000871754 [11:04:35]line ФД: 191366 [11:04:35]line ФПД: 33707350548299 [11:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191366&fm=33707350548299&tin=02508201610067®Number=0000000000091776&sum=50000 [11:04:35]OFD Sender: Processing packet 191366 [packets to send 75, broken 74] [11:04:35]ProducePacketName [11:04:35]name=ofd_packets/00191366 [11:04:35]OFD Sender: To server: pG, [11:04:35]CommunicateWithHost lk.salyk.kg:30040 [11:04:35]ConnectInit lk.salyk.kg [11:04:35]written 0, free lines is 4095 [11:04:35]Connected sock=10 [11:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 23 07 01 E7 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4A 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EB 02 00 35 04 06 00 1E A8 1A A7 DF 4B C6 02 90 40 4C 8D EA 08 [11:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 8E 47 00 CA 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EB 02 00 F4 03 04 00 18 20 1B 67 B6 04 01 00 00 37 40 C8 48 4F 33 59 DE [11:04:35]CommunicateWithHost err = 0 [11:04:35]CheckOFDResponse [11:04:35]1017 (14) - 77093643461234 [11:04:35]1041 (16) - 0000000000871754 [11:04:35]1040 (4) - 191366 [11:04:35]1012 (4) - 25.10.2024 04:35 [11:04:35]1206 (1) - 0 [11:04:35]OFD Sender: Remove packet 191366 [11:04:35]ProducePacketName [11:04:35]name=ofd_packets/00191366 [11:04:35]NVStorageDeleteData [11:04:36]Write to MH i2c: 01 00 00 62 8B ED [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 62 8B 00 00 00 00 00 A5 0C A5 [11:04:36]RasterBufferAndPrint [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]written 0, free lines is 3242 [11:04:36]MH_Cut [11:04:36]Write to MH i2c: D1 01 00 69 8B 01 C6 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 01 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 01 00 69 8B 00 C5 [11:04:36]Write to MH i2c: 01 00 00 6A 8B F5 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]OFD Sender: No OFD packet to send [11:04:36]*** Cut start [11:04:36]*** Partial cut [11:04:36]*** CUTSNS_PIN = 1 [11:04:36]*** CUTSNS_PIN = 0 [11:04:37]*** Brake cut motor [11:04:37]Read from MH i2c: 01 [11:04:37]MH_I2C_Read... [11:04:37]*** Stop cut motor [11:04:37]*** Cut end [11:04:37]Read from MH i2c: 01 07 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 07 00 6A 8B 00 00 00 00 00 FF 0F 0A [11:04:37]process_action close_receipt done [11:04:37]requested_data is exist [11:04:37]produce_requested_data [11:04:37]requested_item fm.sn is exist - process it [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 11 00 00 [11:04:37]Write to MH i2c: E2 08 00 6B 8B 80 11 00 00 00 00 00 00 70 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 6B 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [11:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:04:37]wFMCommunicate OK [11:04:37]requested_item fd.num is exist - process it [11:04:37]SAM_PROTO_GetFieldsCounters [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 13 00 00 [11:04:37]Write to MH i2c: E2 08 00 6C 8B 80 13 00 00 00 00 00 00 73 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 62 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 62 00 6C 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EB 02 00 0E 04 04 00 1C 02 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 65 [11:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_GetFieldsCounters done [11:04:37]requested_item shift.num is exist - process it [11:04:37]requested_item shift.opened is exist - process it [11:04:37]req_shift_opened [11:04:37]FM_GetShiftState [11:04:37]SAM_PROTO_GetShiftState [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 13 01 00 [11:04:37]Write to MH i2c: E2 08 00 6D 8B 80 13 01 00 00 00 00 00 75 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0E 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0E 00 6D 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 38 [11:04:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_GetShiftState done [11:04:37]FM_GetShiftState done [11:04:37]req_shift_opened done [11:04:37]requested_item shift.open_date is exist - process it [11:04:37]req_shift_open_date [11:04:37]req_shift_open_date done [11:04:37]produce_requested_data done [11:04:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191366,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:04:37]process_action_free close_receipt [11:04:37]json_value_free [11:04:37]json_value_free done [11:04:37]process_json_proto returns [11:04:37]Send response to host [11:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191366,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:04:37]free response buf [11:04:37]execute_script done [11:04:37]execute_script returns [11:04:37]free content buf [11:04:37]Sock 9.Close socket [11:04:37]Sock 9.Thread stoped [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:16]accept exits with 8 [11:05:16]New connection [11:05:16]New thread 3066817892 created [11:05:16]Thread 3066961252 joined [11:05:16]Waiting for new connection... [11:05:16] Sock 8.Parse request [11:05:16]Sock 8.Check first char [11:05:16]Sock 8.First char is OK [11:05:16]request: POST /json_proto HTTP/1.0 [11:05:16]Method: POST [11:05:16]URL: /json_proto [11:05:16]Method is POST - this is cgi request [11:05:16]url: /json_proto [11:05:16]query_string will be loaded in cgi processing [11:05:16]execute_cgi json_proto POST (null) [11:05:16]execute_cgi path=json_proto method=POST [11:05:16]POST find Content-Length [11:05:16]Host: 172.17.63.131:8080 [11:05:16]Content-Length: 676 [11:05:16]Content-Type: application/json [11:05:16] [11:05:16]POST finish read [11:05:16]Found Content-Length = 676 [11:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]execute_script... [11:05: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)30660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]POST & json_proto [11:05:16]process_json_proto [11:05:16]json parsed OK: [11:05:16]protocol is kg_v1.0 [11:05:16]action value=close_receipt [11:05:16]process_action close_receipt [11:05:16]cmd_close_receipt [11:05:16]MH_GetDate [11:05:16]Write to MH i2c: F0 00 00 6E 8B E8 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 6E 8B 00 75 7B 1B 67 22 05 6E 64 5C [11:05:16]GetLastDocTimeStamp 1729854282 [11:05:16]current date 1729854325 [11:05:16]FM_GetShiftState [11:05:16]SAM_PROTO_GetShiftState [11:05:16]wFMCommunicate request_size=4 [11:05:16]MH_SAM_APDU [11:05:16]CAPDU: 80 13 01 00 [11:05:16]Write to MH i2c: E2 08 00 6F 8B 80 13 01 00 00 00 00 00 77 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:16]Read from MH i2c: E2 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 6F 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3A [11:05:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:05:16]wFMCommunicate OK [11:05:16]SAM_PROTO_GetShiftState done [11:05:16]FM_GetShiftState done [11:05:16]opened in 1729816399 [11:05:16]opened+sec_in_day 1729902799 [11:05:16]quantity*price = 15052 [11:05:16]sum+1 = 15054 [11:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 106 25.10.2024 11:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191367 ФПД: 207153925892891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191367&fm=207153925892891&tin=02508201610067®Number=0000000000091776&sum=15000 [11:05:17]StoreToDocumentArchive [11:05:17]shift 540 fd 191367 [11:05:17]save to /storage/0540/doc_00191367 [11:05:17]save last doc name /storage/0540/doc_00191367 to /storage/kkm_last_doc_name [11:05:17]save OK [11:05:17]Clear old archive folders... [11:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:17]tlvbuf is 016AFCD0 [11:05:17]SAM_PROTO_ClearQueue [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 09 00 00 [11:05:17]Write to MH i2c: E2 08 00 7C 8B 80 09 00 00 00 00 00 00 79 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 7C 8B 00 90 00 7B [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_ClearQueue done [11:05:18]KKMCreateOFDPacket [11:05:18]OFDProtocolAddRootSTLVToBuf [11:05:18]FM_MakeSignedData [11:05:18]FM_MakeSignedData [11:05:18]SAM_PROTO_SignData [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 01 02 [11:05:18]Write to MH i2c: E2 08 00 7D 8B 80 0D 01 02 00 00 00 00 81 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 7D 8B 00 90 00 7C [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=255 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 75 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EB 02 00 35 04 06 00 BC [11:05:18]Write to MH i2c: E2 02 01 7E 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 75 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EB 02 00 35 04 06 00 BC 00 00 3C [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 7E 8B 00 90 00 7D [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=10 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 05 67 C8 2A AB 1B [11:05:18]Write to MH i2c: E2 0D 00 7F 8B 80 0D 02 02 05 00 67 C8 2A AB 1B 00 00 AD [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 7F 8B 00 90 00 7E [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 03 02 [11:05:18]Write to MH i2c: E2 08 00 80 8B 80 0D 03 02 00 00 00 00 86 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 80 8B 00 D5 D4 FF 9B DA 4D 0C 54 90 00 51 [11:05:18]RAPDU: D5 D4 FF 9B DA 4D 0C 54 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_SignData done [11:05:18]FM_MakeSignedData done [11:05:18]CreateOFDProtocolMessage [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 11 00 00 [11:05:18]Write to MH i2c: E2 08 00 81 8B 80 11 00 00 00 00 00 00 86 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 81 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [11:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:05:18]wFMCommunicate OK [11:05:18]CreateOFDProtocolMessage done [11:05:18]OFDSenderStorePacket 191367 [11:05:18]StoreOFDPacket docnum=191367 [11:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB B1 07 01 F0 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 75 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EB 02 00 35 04 06 00 BC 67 C8 2A AB 1B D5 D4 FF 9B DA 4D 0C 54 [11:05:18]CheckFolder [11:05:18]dirname=/storage/ofd_packets [11:05:18]CheckFolder done [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00191367 [11:05:18]NVStorageSaveData ofd_packets/00191367 [11:05:18]File name is /storage/ofd_packets/00191367 [11:05:18]Write 301 bytes [11:05:18]NVStorageSaveData done [11:05:18]OFDSenderStorePacket done [11:05:18]KKMCreateOFDPacket done [11:05:18]NVStorageSaveData kkm_last_timestamp [11:05:18]File name is /storage/kkm_last_timestamp [11:05:18]Write 4 bytes [11:05:18]NVStorageSaveData done [11:05:18]ExternCall_PrintAddStr [11:05:18]wPrintStart [11:05:18]Write to MH i2c: 01 00 00 82 8B 0D [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 82 8B 00 00 00 00 00 FF 0F 22 [11:05:18]RasterBufferAndPrint [11:05:18]line Счет N : (1)30660 [11:05:18]line ИНН: 02508201610067 [11:05:18]line Контрольно-Кассовый Чек [11:05:18]line ПРОДАЖА [11:05:18]line ТРК (МРК, ГНК) : 12 [11:05:18]line Товар: 2710124130 [11:05:18]line Аи-92-К-5 [11:05:18]line 2.250 * 66.90 [11:05:18]line = 150.53 [11:05:18]line НДС 12% НСП 1% [11:05:18]line > о реализуемом товаре [11:05:18]line ОКРУГЛЕНИЕ: -0.53 [11:05:18]line ИТОГО: 150.00 [11:05:18]line Внесено: 150.00 [11:05:18]line СДАЧА: 0.00 [11:05:18]line НСП 1% : 1.33 [11:05:18]line НДС 12% : 15.98 [11:05:18]line Наличными: 150.00 [11:05:18]line Безнал.: 0.00 [11:05:18]line Место: АЗС № 170 "Партнер Нефть" [11:05:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:05:18]line СНО: Общий режим [11:05:18]line Чек 106 25.10.2024 11:05 [11:05:18]line Смена: 540 ФФД: 1.0 [11:05:18]line ЗНМ: 0300000110 [11:05:18]line РНМ: 0000000000091776 [11:05:18]line Версия ККМ: 001 [11:05:18]line ФМ: 0000000000871754 [11:05:18]line ФД: 191367 [11:05:18]line ФПД: 207153925892891 [11:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191367&fm=207153925892891&tin=02508201610067®Number=0000000000091776&sum=15000 [11:05:18]OFD Sender: Processing packet 191367 [packets to send 75, broken 74] [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00191367 [11:05:18]OFD Sender: To server: pG, [11:05:18]CommunicateWithHost lk.salyk.kg:30040 [11:05:18]ConnectInit lk.salyk.kg [11:05:18]written 0, free lines is 4095 [11:05:18]Connected sock=10 [11:05:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB B1 07 01 F0 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 75 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EB 02 00 35 04 06 00 BC 67 C8 2A AB 1B D5 D4 FF 9B DA 4D 0C 54 [11:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 5B 47 00 55 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EB 02 00 F4 03 04 00 44 20 1B 67 B6 04 01 00 00 3C 3C B8 09 15 6A 41 11 [11:05:19]CommunicateWithHost err = 0 [11:05:19]CheckOFDResponse [11:05:19]1017 (14) - 77093643461234 [11:05:19]1041 (16) - 0000000000871754 [11:05:19]1040 (4) - 191367 [11:05:19]1012 (4) - 25.10.2024 04:36 [11:05:19]1206 (1) - 0 [11:05:19]OFD Sender: Remove packet 191367 [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00191367 [11:05:19]NVStorageDeleteData [11:05:19]Write to MH i2c: 01 00 00 AD 8B 38 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 AD 8B 00 00 00 00 00 A6 0C F1 [11:05:19]RasterBufferAndPrint [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]written 0, free lines is 3243 [11:05:19]MH_Cut [11:05:19]Write to MH i2c: D1 01 00 B4 8B 01 11 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 B4 8B 00 10 [11:05:19]Write to MH i2c: 01 00 00 B5 8B 40 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]OFD Sender: No OFD packet to send [11:05:20]*** Cut start [11:05:20]*** Partial cut [11:05:20]*** CUTSNS_PIN = 1 [11:05:20]*** CUTSNS_PIN = 0 [11:05:20]*** Brake cut motor [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]*** Stop cut motor [11:05:20]*** Cut end [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 B5 8B 00 00 00 00 00 FF 0F 55 [11:05:20]process_action close_receipt done [11:05:20]requested_data is exist [11:05:20]produce_requested_data [11:05:20]requested_item fm.sn is exist - process it [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 11 00 00 [11:05:20]Write to MH i2c: E2 08 00 B6 8B 80 11 00 00 00 00 00 00 BB [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 B6 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [11:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:05:20]wFMCommunicate OK [11:05:20]requested_item fd.num is exist - process it [11:05:20]SAM_PROTO_GetFieldsCounters [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 13 00 00 [11:05:20]Write to MH i2c: E2 08 00 B7 8B 80 13 00 00 00 00 00 00 BE [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 62 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 62 00 B7 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EB 02 00 0E 04 04 00 1C 02 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 B4 [11:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_GetFieldsCounters done [11:05:20]requested_item shift.num is exist - process it [11:05:20]requested_item shift.opened is exist - process it [11:05:20]req_shift_opened [11:05:20]FM_GetShiftState [11:05:20]SAM_PROTO_GetShiftState [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 13 01 00 [11:05:20]Write to MH i2c: E2 08 00 B8 8B 80 13 01 00 00 00 00 00 C0 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 B8 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 83 [11:05:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_GetShiftState done [11:05:20]FM_GetShiftState done [11:05:20]req_shift_opened done [11:05:20]requested_item shift.open_date is exist - process it [11:05:20]req_shift_open_date [11:05:20]req_shift_open_date done [11:05:20]produce_requested_data done [11:05:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191367,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:05:20]process_action_free close_receipt [11:05:20]json_value_free [11:05:20]json_value_free done [11:05:20]process_json_proto returns [11:05:20]Send response to host [11:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191367,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:05:20]free response buf [11:05:20]execute_script done [11:05:20]execute_script returns [11:05:20]free content buf [11:05:20]Sock 8.Close socket [11:05:21]Sock 8.Thread stoped [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:08]accept exits with 9 [11:07:08]New connection [11:07:08]New thread 3066961252 created [11:07:08]Thread 3066817892 joined [11:07:08]Waiting for new connection... [11:07:08] Sock 9.Parse request [11:07:08]Sock 9.Check first char [11:07:08]Sock 9.First char is OK [11:07:08]request: POST /json_proto HTTP/1.0 [11:07:08]Method: POST [11:07:08]URL: /json_proto [11:07:08]Method is POST - this is cgi request [11:07:08]url: /json_proto [11:07:08]query_string will be loaded in cgi processing [11:07:08]execute_cgi json_proto POST (null) [11:07:08]execute_cgi path=json_proto method=POST [11:07:08]POST find Content-Length [11:07:08]Host: 172.17.63.131:8080 [11:07:08]Content-Length: 673 [11:07:08]Content-Type: application/json [11:07:08] [11:07:08]POST finish read [11:07:08]Found Content-Length = 673 [11:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:07:08]execute_script... [11:07: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)30661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:07:08]POST & json_proto [11:07:08]process_json_proto [11:07:08]json parsed OK: [11:07:08]protocol is kg_v1.0 [11:07:08]action value=close_receipt [11:07:08]process_action close_receipt [11:07:08]cmd_close_receipt [11:07:08]MH_GetDate [11:07:08]Write to MH i2c: F0 00 00 B9 8B 33 [11:07:08]Write i2c OK [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: F0 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: F0 09 00 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: F0 09 00 B9 8B 00 E5 7B 1B 67 22 05 6E 64 17 [11:07:08]GetLastDocTimeStamp 1729854325 [11:07:08]current date 1729854437 [11:07:08]FM_GetShiftState [11:07:08]SAM_PROTO_GetShiftState [11:07:08]wFMCommunicate request_size=4 [11:07:08]MH_SAM_APDU [11:07:08]CAPDU: 80 13 01 00 [11:07:08]Write to MH i2c: E2 08 00 BA 8B 80 13 01 00 00 00 00 00 C2 [11:07:08]Write i2c OK [11:07:08]MH_I2C_Read... [11:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:08]Read from MH i2c: E2 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 0E 00 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 0E 00 BA 8B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 85 [11:07:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:07:08]wFMCommunicate OK [11:07:08]SAM_PROTO_GetShiftState done [11:07:08]FM_GetShiftState done [11:07:08]opened in 1729816399 [11:07:08]opened+sec_in_day 1729902799 [11:07:08]quantity*price = 50063 [11:07:08]sum+1 = 50064 [11:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 107 25.10.2024 11:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191368 ФПД: 77916676477042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191368&fm=77916676477042&tin=02508201610067®Number=0000000000091776&sum=50000 [11:07:09]StoreToDocumentArchive [11:07:09]shift 540 fd 191368 [11:07:09]save to /storage/0540/doc_00191368 [11:07:09]save last doc name /storage/0540/doc_00191368 to /storage/kkm_last_doc_name [11:07:09]save OK [11:07:09]Clear old archive folders... [11:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:07:09]tlvbuf is 01831080 [11:07:09]SAM_PROTO_ClearQueue [11:07:09]wFMCommunicate request_size=4 [11:07:09]MH_SAM_APDU [11:07:09]CAPDU: 80 09 00 00 [11:07:09]Write to MH i2c: E2 08 00 C7 8B 80 09 00 00 00 00 00 00 C4 [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:09]Read from MH i2c: E2 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 03 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 03 00 C7 8B 00 90 00 C6 [11:07:09]RAPDU: 90 00 [11:07:09]wFMCommunicate OK [11:07:09]SAM_PROTO_ClearQueue done [11:07:09]KKMCreateOFDPacket [11:07:09]OFDProtocolAddRootSTLVToBuf [11:07:09]FM_MakeSignedData [11:07:09]FM_MakeSignedData [11:07:09]SAM_PROTO_SignData [11:07:09]wFMCommunicate request_size=4 [11:07:09]MH_SAM_APDU [11:07:09]CAPDU: 80 0D 01 02 [11:07:09]Write to MH i2c: E2 08 00 C8 8B 80 0D 01 02 00 00 00 00 CC [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:09]OFD Sender: No OFD packet to send [11:07:09]Read from MH i2c: E2 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 03 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 03 00 C8 8B 00 90 00 C7 [11:07:09]RAPDU: 90 00 [11:07:09]wFMCommunicate OK [11:07:09]wFMCommunicate request_size=255 [11:07:09]MH_SAM_APDU [11:07:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 E5 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EB 02 00 35 04 06 00 46 DD 63 D2 [11:07:09]Write to MH i2c: E2 02 01 C9 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 6B 00 00 00 F4 03 04 00 E5 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EB 02 00 35 04 06 00 46 DD 63 D2 00 00 16 [11:07:09]Write i2c OK [11:07:09]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 C9 8B 00 90 00 C8 [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]wFMCommunicate request_size=7 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 02 02 02 D0 72 [11:07:10]Write to MH i2c: E2 0A 00 CA 8B 80 0D 02 02 02 00 D0 72 00 00 15 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 03 00 CA 8B 00 90 00 C9 [11:07:10]RAPDU: 90 00 [11:07:10]wFMCommunicate OK [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 0D 03 02 [11:07:10]Write to MH i2c: E2 08 00 CB 8B 80 0D 03 02 00 00 00 00 D1 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0B 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0B 00 CB 8B 00 96 EE F9 40 16 3A 07 CF 90 00 B5 [11:07:10]RAPDU: 96 EE F9 40 16 3A 07 CF 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_SignData done [11:07:10]FM_MakeSignedData done [11:07:10]CreateOFDProtocolMessage [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 11 00 00 [11:07:10]Write to MH i2c: E2 08 00 CC 8B 80 11 00 00 00 00 00 00 D1 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 CC 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [11:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:07:10]wFMCommunicate OK [11:07:10]CreateOFDProtocolMessage done [11:07:10]OFDSenderStorePacket 191368 [11:07:10]StoreOFDPacket docnum=191368 [11:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 47 04 01 DA 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 E5 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EB 02 00 35 04 06 00 46 DD 63 D2 D0 72 96 EE F9 40 16 3A 07 CF [11:07:10]CheckFolder [11:07:10]dirname=/storage/ofd_packets [11:07:10]CheckFolder done [11:07:10]ProducePacketName [11:07:10]name=ofd_packets/00191368 [11:07:10]NVStorageSaveData ofd_packets/00191368 [11:07:10]File name is /storage/ofd_packets/00191368 [11:07:10]Write 298 bytes [11:07:10]NVStorageSaveData done [11:07:10]OFDSenderStorePacket done [11:07:10]KKMCreateOFDPacket done [11:07:10]NVStorageSaveData kkm_last_timestamp [11:07:10]File name is /storage/kkm_last_timestamp [11:07:10]Write 4 bytes [11:07:10]NVStorageSaveData done [11:07:10]ExternCall_PrintAddStr [11:07:10]wPrintStart [11:07:10]Write to MH i2c: 01 00 00 CD 8B 58 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 CD 8B 00 00 00 00 00 FF 0F 6D [11:07:10]RasterBufferAndPrint [11:07:10]line Счет N : (1)30661 [11:07:10]line ИНН: 02508201610067 [11:07:10]line Контрольно-Кассовый Чек [11:07:10]line ПРОДАЖА [11:07:10]line ТРК (МРК, ГНК) : 22 [11:07:10]line Товар: 2710194210 [11:07:10]line ДТ-К-5 [11:07:10]line 6.570 * 76.20 [11:07:10]line = 500.63 [11:07:10]line НДС 12% НСП 1% [11:07:10]line > о реализуемом товаре [11:07:10]line ОКРУГЛЕНИЕ: -0.63 [11:07:10]line ИТОГО: 500.00 [11:07:10]line Внесено: 500.00 [11:07:10]line СДАЧА: 0.00 [11:07:10]line НСП 1% : 4.43 [11:07:10]line НДС 12% : 53.16 [11:07:10]line Наличными: 500.00 [11:07:10]line Безнал.: 0.00 [11:07:10]line Место: АЗС № 170 "Партнер Нефть" [11:07:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:07:10]line СНО: Общий режим [11:07:10]line Чек 107 25.10.2024 11:07 [11:07:10]line Смена: 540 ФФД: 1.0 [11:07:10]line ЗНМ: 0300000110 [11:07:10]line РНМ: 0000000000091776 [11:07:10]line Версия ККМ: 001 [11:07:10]line ФМ: 0000000000871754 [11:07:10]line ФД: 191368 [11:07:10]line ФПД: 77916676477042 [11:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191368&fm=77916676477042&tin=02508201610067®Number=0000000000091776&sum=50000 [11:07:10]OFD Sender: Processing packet 191368 [packets to send 75, broken 74] [11:07:10]ProducePacketName [11:07:10]name=ofd_packets/00191368 [11:07:10]OFD Sender: To server: pG, [11:07:10]CommunicateWithHost lk.salyk.kg:30040 [11:07:10]ConnectInit lk.salyk.kg [11:07:10]written 0, free lines is 4095 [11:07:10]Connected sock=10 [11:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 47 04 01 DA 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 E5 7B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EB 02 00 35 04 06 00 46 DD 63 D2 D0 72 96 EE F9 40 16 3A 07 CF [11:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D2 F1 47 00 C7 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EB 02 00 F4 03 04 00 B3 20 1B 67 B6 04 01 00 00 E3 10 04 61 AD 97 80 1D [11:07:10]CommunicateWithHost err = 0 [11:07:10]CheckOFDResponse [11:07:10]1017 (14) - 77093643461234 [11:07:10]1041 (16) - 0000000000871754 [11:07:10]1040 (4) - 191368 [11:07:10]1012 (4) - 25.10.2024 04:38 [11:07:10]1206 (1) - 0 [11:07:10]OFD Sender: Remove packet 191368 [11:07:10]ProducePacketName [11:07:10]name=ofd_packets/00191368 [11:07:10]NVStorageDeleteData [11:07:10]Write to MH i2c: 01 00 00 F8 8B 83 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 F8 8B 00 00 00 00 00 A5 0C 3B [11:07:10]RasterBufferAndPrint [11:07:10]line [11:07:10]line [11:07:10]line [11:07:10]line [11:07:10]line [11:07:10]written 0, free lines is 3242 [11:07:10]MH_Cut [11:07:10]Write to MH i2c: D1 01 00 FF 8B 01 5C [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: D1 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: D1 01 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: D1 01 00 FF 8B 00 5B [11:07:10]Write to MH i2c: 01 00 00 00 8C 8C [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:11]OFD Sender: No OFD packet to send [11:07:11]*** Cut start [11:07:11]*** Partial cut [11:07:11]*** CUTSNS_PIN = 1 [11:07:11]*** CUTSNS_PIN = 0 [11:07:12]*** Brake cut motor [11:07:12]Read from MH i2c: 01 [11:07:12]MH_I2C_Read... [11:07:12]*** Stop cut motor [11:07:12]*** Cut end [11:07:12]Read from MH i2c: 01 07 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 00 8C 00 00 00 00 00 FF 0F A1 [11:07:12]process_action close_receipt done [11:07:12]requested_data is exist [11:07:12]produce_requested_data [11:07:12]requested_item fm.sn is exist - process it [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 11 00 00 [11:07:12]Write to MH i2c: E2 08 00 01 8C 80 11 00 00 00 00 00 00 07 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 01 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [11:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:07:12]wFMCommunicate OK [11:07:12]requested_item fd.num is exist - process it [11:07:12]SAM_PROTO_GetFieldsCounters [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 13 00 00 [11:07:12]Write to MH i2c: E2 08 00 02 8C 80 13 00 00 00 00 00 00 0A [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 62 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 62 00 02 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EB 02 00 0E 04 04 00 1C 02 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 04 [11:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:12]wFMCommunicate OK [11:07:12]SAM_PROTO_GetFieldsCounters done [11:07:12]requested_item shift.num is exist - process it [11:07:12]requested_item shift.opened is exist - process it [11:07:12]req_shift_opened [11:07:12]FM_GetShiftState [11:07:12]SAM_PROTO_GetShiftState [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 13 01 00 [11:07:12]Write to MH i2c: E2 08 00 03 8C 80 13 01 00 00 00 00 00 0C [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:12]Read from MH i2c: E2 0E 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 0E 00 03 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CF [11:07:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:07:12]wFMCommunicate OK [11:07:12]SAM_PROTO_GetShiftState done [11:07:12]FM_GetShiftState done [11:07:12]req_shift_opened done [11:07:12]requested_item shift.open_date is exist - process it [11:07:12]req_shift_open_date [11:07:12]req_shift_open_date done [11:07:12]produce_requested_data done [11:07:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191368,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:07:12]process_action_free close_receipt [11:07:12]json_value_free [11:07:12]json_value_free done [11:07:12]process_json_proto returns [11:07:12]Send response to host [11:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191368,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:07:12]free response buf [11:07:12]execute_script done [11:07:12]execute_script returns [11:07:12]free content buf [11:07:12]Sock 9.Close socket [11:07:12]Sock 9.Thread stoped [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:00]accept exits with 8 [11:12:00]New connection [11:12:00]New thread 3066817892 created [11:12:00]Thread 3066961252 joined [11:12:00]Waiting for new connection... [11:12:00] Sock 8.Parse request [11:12:00]Sock 8.Check first char [11:12:00]Sock 8.First char is OK [11:12:00]request: POST /json_proto HTTP/1.0 [11:12:00]Method: POST [11:12:00]URL: /json_proto [11:12:00]Method is POST - this is cgi request [11:12:00]url: /json_proto [11:12:00]query_string will be loaded in cgi processing [11:12:00]execute_cgi json_proto POST (null) [11:12:00]execute_cgi path=json_proto method=POST [11:12:00]POST find Content-Length [11:12:01]Host: 172.17.63.131:8080 [11:12:01]Content-Length: 676 [11:12:01]Content-Type: application/json [11:12:01] [11:12:01]POST finish read [11:12:01]Found Content-Length = 676 [11:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:01]execute_script... [11:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:01]POST & json_proto [11:12:01]process_json_proto [11:12:01]json parsed OK: [11:12:01]protocol is kg_v1.0 [11:12:01]action value=close_receipt [11:12:01]process_action close_receipt [11:12:01]cmd_close_receipt [11:12:01]MH_GetDate [11:12:01]Write to MH i2c: F0 00 00 04 8C 7F [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 09 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: F0 09 00 04 8C 00 09 7D 1B 67 22 05 6E 64 89 [11:12:01]GetLastDocTimeStamp 1729854437 [11:12:01]current date 1729854729 [11:12:01]FM_GetShiftState [11:12:01]SAM_PROTO_GetShiftState [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 01 00 [11:12:01]Write to MH i2c: E2 08 00 05 8C 80 13 01 00 00 00 00 00 0E [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 05 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D1 [11:12:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetShiftState done [11:12:01]FM_GetShiftState done [11:12:01]opened in 1729816399 [11:12:01]opened+sec_in_day 1729902799 [11:12:01]quantity*price = 10035 [11:12:01]sum+1 = 10036 [11:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 108 25.10.2024 11:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191369 ФПД: 274071633734210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111209&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191369&fm=274071633734210&tin=02508201610067®Number=0000000000091776&sum=10000 [11:12:02]StoreToDocumentArchive [11:12:02]shift 540 fd 191369 [11:12:02]save to /storage/0540/doc_00191369 [11:12:02]save last doc name /storage/0540/doc_00191369 to /storage/kkm_last_doc_name [11:12:02]save OK [11:12:02]Clear old archive folders... [11:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:02]tlvbuf is 01633C00 [11:12:02]SAM_PROTO_ClearQueue [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 09 00 00 [11:12:02]Write to MH i2c: E2 08 00 12 8C 80 09 00 00 00 00 00 00 10 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 12 8C 00 90 00 12 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_ClearQueue done [11:12:02]KKMCreateOFDPacket [11:12:02]OFDProtocolAddRootSTLVToBuf [11:12:02]FM_MakeSignedData [11:12:02]FM_MakeSignedData [11:12:02]SAM_PROTO_SignData [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 01 02 [11:12:02]Write to MH i2c: E2 08 00 13 8C 80 0D 01 02 00 00 00 00 18 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 13 8C 00 90 00 13 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=255 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EB 02 00 35 04 06 00 F9 [11:12:02]Write to MH i2c: E2 02 01 14 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EB 02 00 35 04 06 00 F9 00 00 94 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 14 8C 00 90 00 14 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=10 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 02 02 05 44 46 5F 2A 42 [11:12:02]Write to MH i2c: E2 0D 00 15 8C 80 0D 02 02 05 00 44 46 5F 2A 42 00 00 7A [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 15 8C 00 90 00 15 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 03 02 [11:12:02]Write to MH i2c: E2 08 00 16 8C 80 0D 03 02 00 00 00 00 1D [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 16 8C 00 88 CA B5 B8 99 DD 25 30 90 00 A8 [11:12:02]RAPDU: 88 CA B5 B8 99 DD 25 30 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_SignData done [11:12:02]FM_MakeSignedData done [11:12:02]CreateOFDProtocolMessage [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 11 00 00 [11:12:02]Write to MH i2c: E2 08 00 17 8C 80 11 00 00 00 00 00 00 1D [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 17 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [11:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:02]wFMCommunicate OK [11:12:02]CreateOFDProtocolMessage done [11:12:02]OFDSenderStorePacket 191369 [11:12:02]StoreOFDPacket docnum=191369 [11:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 C8 07 01 EE 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EB 02 00 35 04 06 00 F9 44 46 5F 2A 42 88 CA B5 B8 99 DD 25 30 [11:12:02]CheckFolder [11:12:02]dirname=/storage/ofd_packets [11:12:02]CheckFolder done [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00191369 [11:12:02]NVStorageSaveData ofd_packets/00191369 [11:12:02]File name is /storage/ofd_packets/00191369 [11:12:02]Write 301 bytes [11:12:02]NVStorageSaveData done [11:12:02]OFDSenderStorePacket done [11:12:02]KKMCreateOFDPacket done [11:12:02]NVStorageSaveData kkm_last_timestamp [11:12:02]File name is /storage/kkm_last_timestamp [11:12:02]Write 4 bytes [11:12:02]NVStorageSaveData done [11:12:02]ExternCall_PrintAddStr [11:12:02]wPrintStart [11:12:02]Write to MH i2c: 01 00 00 18 8C A4 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 18 8C 00 00 00 00 00 FF 0F B9 [11:12:02]RasterBufferAndPrint [11:12:02]line Счет N : (1)30662 [11:12:02]line ИНН: 02508201610067 [11:12:02]line Контрольно-Кассовый Чек [11:12:02]line ПРОДАЖА [11:12:02]line ТРК (МРК, ГНК) : 12 [11:12:02]line Товар: 2710124130 [11:12:02]line Аи-92-К-5 [11:12:02]line 1.500 * 66.90 [11:12:02]line = 100.35 [11:12:02]line НДС 12% НСП 1% [11:12:02]line > о реализуемом товаре [11:12:02]line ОКРУГЛЕНИЕ: -0.35 [11:12:02]line ИТОГО: 100.00 [11:12:02]line Внесено: 100.00 [11:12:02]line СДАЧА: 0.00 [11:12:02]line НСП 1% : 0.89 [11:12:02]line НДС 12% : 10.66 [11:12:02]line Наличными: 100.00 [11:12:02]line Безнал.: 0.00 [11:12:02]line Место: АЗС № 170 "Партнер Нефть" [11:12:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:12:02]line СНО: Общий режим [11:12:02]line Чек 108 25.10.2024 11:12 [11:12:02]line Смена: 540 ФФД: 1.0 [11:12:02]line ЗНМ: 0300000110 [11:12:02]line РНМ: 0000000000091776 [11:12:02]line Версия ККМ: 001 [11:12:02]line ФМ: 0000000000871754 [11:12:02]line ФД: 191369 [11:12:02]line ФПД: 274071633734210 [11:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111209&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191369&fm=274071633734210&tin=02508201610067®Number=0000000000091776&sum=10000 [11:12:03]OFD Sender: Processing packet 191369 [packets to send 75, broken 74] [11:12:03]ProducePacketName [11:12:03]name=ofd_packets/00191369 [11:12:03]OFD Sender: To server: pG, [11:12:03]CommunicateWithHost lk.salyk.kg:30040 [11:12:03]ConnectInit lk.salyk.kg [11:12:03]written 0, free lines is 4095 [11:12:03]Connected sock=10 [11:12:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 C8 07 01 EE 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EB 02 00 35 04 06 00 F9 44 46 5F 2A 42 88 CA B5 B8 99 DD 25 30 [11:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 9E 47 00 D8 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EB 02 00 F4 03 04 00 D8 21 1B 67 B6 04 01 00 00 EE 42 83 C4 E8 A7 9C 65 [11:12:03]CommunicateWithHost err = 0 [11:12:03]CheckOFDResponse [11:12:03]1017 (14) - 77093643461234 [11:12:03]1041 (16) - 0000000000871754 [11:12:03]1040 (4) - 191369 [11:12:03]1012 (4) - 25.10.2024 04:43 [11:12:03]1206 (1) - 0 [11:12:03]OFD Sender: Remove packet 191369 [11:12:03]ProducePacketName [11:12:03]name=ofd_packets/00191369 [11:12:03]NVStorageDeleteData [11:12:03]Write to MH i2c: 01 00 00 43 8C CF [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 43 8C 00 00 00 00 00 A7 0C 89 [11:12:03]RasterBufferAndPrint [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]written 0, free lines is 3245 [11:12:03]MH_Cut [11:12:03]Write to MH i2c: D1 01 00 4A 8C 01 A8 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 01 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 01 00 4A 8C 00 A7 [11:12:03]Write to MH i2c: 01 00 00 4B 8C D7 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]OFD Sender: No OFD packet to send [11:12:04]*** Cut start [11:12:04]*** Partial cut [11:12:04]*** CUTSNS_PIN = 1 [11:12:04]*** CUTSNS_PIN = 0 [11:12:04]*** Brake cut motor [11:12:04]Read from MH i2c: 01 [11:12:04]MH_I2C_Read... [11:12:04]*** Stop cut motor [11:12:04]*** Cut end [11:12:04]Read from MH i2c: 01 07 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 4B 8C 00 00 00 00 00 FF 0F EC [11:12:04]process_action close_receipt done [11:12:04]requested_data is exist [11:12:04]produce_requested_data [11:12:04]requested_item fm.sn is exist - process it [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 11 00 00 [11:12:04]Write to MH i2c: E2 08 00 4C 8C 80 11 00 00 00 00 00 00 52 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:05]Read from MH i2c: E2 17 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 17 00 4C 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [11:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:05]wFMCommunicate OK [11:12:05]requested_item fd.num is exist - process it [11:12:05]SAM_PROTO_GetFieldsCounters [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 13 00 00 [11:12:05]Write to MH i2c: E2 08 00 4D 8C 80 13 00 00 00 00 00 00 55 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 62 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 62 00 4D 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EB 02 00 0E 04 04 00 1C 02 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 53 [11:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:05]wFMCommunicate OK [11:12:05]SAM_PROTO_GetFieldsCounters done [11:12:05]requested_item shift.num is exist - process it [11:12:05]requested_item shift.opened is exist - process it [11:12:05]req_shift_opened [11:12:05]FM_GetShiftState [11:12:05]SAM_PROTO_GetShiftState [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 13 01 00 [11:12:05]Write to MH i2c: E2 08 00 4E 8C 80 13 01 00 00 00 00 00 57 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 0E 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 0E 00 4E 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1A [11:12:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:12:05]wFMCommunicate OK [11:12:05]SAM_PROTO_GetShiftState done [11:12:05]FM_GetShiftState done [11:12:05]req_shift_opened done [11:12:05]requested_item shift.open_date is exist - process it [11:12:05]req_shift_open_date [11:12:05]req_shift_open_date done [11:12:05]produce_requested_data done [11:12:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191369,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:12:05]process_action_free close_receipt [11:12:05]json_value_free [11:12:05]json_value_free done [11:12:05]process_json_proto returns [11:12:05]Send response to host [11:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191369,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:12:05]free response buf [11:12:05]execute_script done [11:12:05]execute_script returns [11:12:05]free content buf [11:12:05]Sock 8.Close socket [11:12:05]Sock 8.Thread stoped [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:54]accept exits with 9 [11:12:54]New connection [11:12:54]New thread 3066961252 created [11:12:54]Thread 3066817892 joined [11:12:54]Waiting for new connection... [11:12:54] Sock 9.Parse request [11:12:54]Sock 9.Check first char [11:12:54]Sock 9.First char is OK [11:12:54]request: POST /json_proto HTTP/1.0 [11:12:54]Method: POST [11:12:54]URL: /json_proto [11:12:54]Method is POST - this is cgi request [11:12:54]url: /json_proto [11:12:54]query_string will be loaded in cgi processing [11:12:54]execute_cgi json_proto POST (null) [11:12:54]execute_cgi path=json_proto method=POST [11:12:54]POST find Content-Length [11:12:54]Host: 172.17.63.131:8080 [11:12:54]Content-Length: 862 [11:12:54]Content-Type: application/json [11:12:54] [11:12:54]POST finish read [11:12:54]Found Content-Length = 862 [11:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:54]execute_script... [11:12: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)30663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:54]POST & json_proto [11:12:54]process_json_proto [11:12:54]json parsed OK: [11:12:54]protocol is kg_v1.0 [11:12:54]action value=close_receipt [11:12:54]process_action close_receipt [11:12:54]cmd_close_receipt [11:12:54]MH_GetDate [11:12:54]Write to MH i2c: F0 00 00 4F 8C CA [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: F0 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: F0 09 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: F0 09 00 4F 8C 00 3F 7D 1B 67 22 05 6E 64 0A [11:12:54]GetLastDocTimeStamp 1729854729 [11:12:54]current date 1729854783 [11:12:54]FM_GetShiftState [11:12:54]SAM_PROTO_GetShiftState [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 13 01 00 [11:12:54]Write to MH i2c: E2 08 00 50 8C 80 13 01 00 00 00 00 00 59 [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:55]Read from MH i2c: E2 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 0E 00 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 0E 00 50 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1C [11:12:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:12:55]wFMCommunicate OK [11:12:55]SAM_PROTO_GetShiftState done [11:12:55]FM_GetShiftState done [11:12:55]opened in 1729816399 [11:12:55]opened+sec_in_day 1729902799 [11:12:55]quantity*price = 20003 [11:12:55]sum+1 = 20004 [11:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 109 25.10.2024 11:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191370 ФПД: 180886539624542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111303&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191370&fm=180886539624542&tin=02508201610067®Number=0000000000091776&sum=20003 [11:12:56]StoreToDocumentArchive [11:12:56]shift 540 fd 191370 [11:12:56]save to /storage/0540/doc_00191370 [11:12:56]save last doc name /storage/0540/doc_00191370 to /storage/kkm_last_doc_name [11:12:56]save OK [11:12:56]Clear old archive folders... [11:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:56]tlvbuf is B6DAA010 [11:12:56]SAM_PROTO_ClearQueue [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 09 00 00 [11:12:56]Write to MH i2c: E2 08 00 5D 8C 80 09 00 00 00 00 00 00 5B [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 5D 8C 00 90 00 5D [11:12:56]RAPDU: 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_ClearQueue done [11:12:56]KKMCreateOFDPacket [11:12:56]OFDProtocolAddRootSTLVToBuf [11:12:56]FM_MakeSignedData [11:12:56]FM_MakeSignedData [11:12:56]SAM_PROTO_SignData [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 0D 01 02 [11:12:56]Write to MH i2c: E2 08 00 5E 8C 80 0D 01 02 00 00 00 00 63 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 5E 8C 00 90 00 5E [11:12:56]RAPDU: 90 00 [11:12:56]wFMCommunicate OK [11:12:56]wFMCommunicate request_size=255 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EB 02 00 35 04 06 00 A4 [11:12:56]Write to MH i2c: E2 02 01 5F 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EB 02 00 35 04 06 00 A4 00 00 A3 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 5F 8C 00 90 00 5F [11:12:56]RAPDU: 90 00 [11:12:56]wFMCommunicate OK [11:12:56]wFMCommunicate request_size=10 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 0D 02 02 05 83 ED F0 60 5E [11:12:56]Write to MH i2c: E2 0D 00 60 8C 80 0D 02 02 05 00 83 ED F0 60 5E 00 00 8E [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 03 00 60 8C 00 90 00 60 [11:12:56]RAPDU: 90 00 [11:12:56]wFMCommunicate OK [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 0D 03 02 [11:12:56]Write to MH i2c: E2 08 00 61 8C 80 0D 03 02 00 00 00 00 68 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0B 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0B 00 61 8C 00 E1 74 27 68 33 50 09 67 90 00 40 [11:12:56]RAPDU: E1 74 27 68 33 50 09 67 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_SignData done [11:12:56]FM_MakeSignedData done [11:12:56]CreateOFDProtocolMessage [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 11 00 00 [11:12:56]Write to MH i2c: E2 08 00 62 8C 80 11 00 00 00 00 00 00 68 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 17 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 17 00 62 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [11:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:56]wFMCommunicate OK [11:12:56]CreateOFDProtocolMessage done [11:12:56]OFDSenderStorePacket 191370 [11:12:56]StoreOFDPacket docnum=191370 [11:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 2B 07 01 98 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EB 02 00 35 04 06 00 A4 83 ED F0 60 5E E1 74 27 68 33 50 09 67 [11:12:56]CheckFolder [11:12:56]dirname=/storage/ofd_packets [11:12:56]CheckFolder done [11:12:56]ProducePacketName [11:12:56]name=ofd_packets/00191370 [11:12:56]NVStorageSaveData ofd_packets/00191370 [11:12:56]File name is /storage/ofd_packets/00191370 [11:12:56]Write 301 bytes [11:12:56]NVStorageSaveData done [11:12:56]OFDSenderStorePacket done [11:12:56]KKMCreateOFDPacket done [11:12:56]NVStorageSaveData kkm_last_timestamp [11:12:56]File name is /storage/kkm_last_timestamp [11:12:56]Write 4 bytes [11:12:56]NVStorageSaveData done [11:12:56]ExternCall_PrintAddStr [11:12:56]wPrintStart [11:12:56]Write to MH i2c: 01 00 00 63 8C EF [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: 01 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: 01 07 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: 01 07 00 63 8C 00 00 00 00 00 FF 0F 04 [11:12:56]RasterBufferAndPrint [11:12:56]line Счет N : (1)30663 [11:12:56]line ИНН: 02508201610067 [11:12:56]line Контрольно-Кассовый Чек [11:12:56]line ПРОДАЖА [11:12:56]line ТРК (МРК, ГНК) : 12 [11:12:56]line Товар: 2710124130 [11:12:56]line Аи-92-К-5 [11:12:56]line 2.990 * 66.90 [11:12:56]line = 200.03 [11:12:56]line НДС 12% НСП 1% [11:12:56]line > о реализуемом товаре [11:12:56]line ИТОГО: 200.03 [11:12:56]line НСП 1% : 1.77 [11:12:56]line НДС 12% : 21.24 [11:12:56]line Наличными: 0.00 [11:12:56]line Безнал.: 200.03 [11:12:56]line Место: АЗС № 170 "Партнер Нефть" [11:12:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:12:56]line СНО: Общий режим [11:12:56]line Чек 109 25.10.2024 11:13 [11:12:56]line Смена: 540 ФФД: 1.0 [11:12:56]line ЗНМ: 0300000110 [11:12:56]line РНМ: 0000000000091776 [11:12:56]line Версия ККМ: 001 [11:12:56]line Платежная система: Кыргызкоммерцбанк [11:12:56]line ФМ: 0000000000871754 [11:12:56]line ФД: 191370 [11:12:56]line ФПД: 180886539624542 [11:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111303&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191370&fm=180886539624542&tin=02508201610067®Number=0000000000091776&sum=20003 [11:12:57]OFD Sender: Processing packet 191370 [packets to send 75, broken 74] [11:12:57]ProducePacketName [11:12:57]name=ofd_packets/00191370 [11:12:57]OFD Sender: To server: pG, [11:12:57]CommunicateWithHost lk.salyk.kg:30040 [11:12:57]ConnectInit lk.salyk.kg [11:12:57]written 0, free lines is 4095 [11:12:57]Connected sock=10 [11:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 2B 07 01 98 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EB 02 00 35 04 06 00 A4 83 ED F0 60 5E E1 74 27 68 33 50 09 67 [11:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B5 FF 47 00 88 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EB 02 00 F4 03 04 00 0E 22 1B 67 B6 04 01 00 00 DD 4C 88 8A BF 86 D0 AB [11:12:57]CommunicateWithHost err = 0 [11:12:57]CheckOFDResponse [11:12:57]1017 (14) - 77093643461234 [11:12:57]1041 (16) - 0000000000871754 [11:12:57]1040 (4) - 191370 [11:12:57]1012 (4) - 25.10.2024 04:43 [11:12:57]1206 (1) - 0 [11:12:57]OFD Sender: Remove packet 191370 [11:12:57]ProducePacketName [11:12:57]name=ofd_packets/00191370 [11:12:57]NVStorageDeleteData [11:12:57]Write to MH i2c: 01 00 00 8D 8C 19 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 8D 8C 00 00 00 00 00 C5 0C F1 [11:12:57]RasterBufferAndPrint [11:12:57]line [11:12:57]line [11:12:57]line [11:12:57]line [11:12:57]line [11:12:57]written 0, free lines is 3275 [11:12:57]MH_Cut [11:12:57]Write to MH i2c: D1 01 00 94 8C 01 F2 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: D1 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: D1 01 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: D1 01 00 94 8C 00 F1 [11:12:57]Write to MH i2c: 01 00 00 95 8C 21 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]OFD Sender: No OFD packet to send [11:12:58]*** Cut start [11:12:58]*** Partial cut [11:12:58]*** CUTSNS_PIN = 1 [11:12:58]*** CUTSNS_PIN = 0 [11:12:58]*** Brake cut motor [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]*** Stop cut motor [11:12:58]*** Cut end [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 95 8C 00 00 00 00 00 FF 0F 36 [11:12:58]process_action close_receipt done [11:12:58]requested_data is exist [11:12:58]produce_requested_data [11:12:58]requested_item fm.sn is exist - process it [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 11 00 00 [11:12:58]Write to MH i2c: E2 08 00 96 8C 80 11 00 00 00 00 00 00 9C [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:58]Read from MH i2c: E2 17 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 17 00 96 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [11:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:58]wFMCommunicate OK [11:12:58]requested_item fd.num is exist - process it [11:12:58]SAM_PROTO_GetFieldsCounters [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 13 00 00 [11:12:58]Write to MH i2c: E2 08 00 97 8C 80 13 00 00 00 00 00 00 9F [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 62 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 62 00 97 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EB 02 00 0E 04 04 00 1C 02 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 A1 [11:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:59]wFMCommunicate OK [11:12:59]SAM_PROTO_GetFieldsCounters done [11:12:59]requested_item shift.num is exist - process it [11:12:59]requested_item shift.opened is exist - process it [11:12:59]req_shift_opened [11:12:59]FM_GetShiftState [11:12:59]SAM_PROTO_GetShiftState [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 13 01 00 [11:12:59]Write to MH i2c: E2 08 00 98 8C 80 13 01 00 00 00 00 00 A1 [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 98 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 64 [11:12:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:12:59]wFMCommunicate OK [11:12:59]SAM_PROTO_GetShiftState done [11:12:59]FM_GetShiftState done [11:12:59]req_shift_opened done [11:12:59]requested_item shift.open_date is exist - process it [11:12:59]req_shift_open_date [11:12:59]req_shift_open_date done [11:12:59]produce_requested_data done [11:12:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191370,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:12:59]process_action_free close_receipt [11:12:59]json_value_free [11:12:59]json_value_free done [11:12:59]process_json_proto returns [11:12:59]Send response to host [11:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191370,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:12:59]free response buf [11:12:59]execute_script done [11:12:59]execute_script returns [11:12:59]free content buf [11:12:59]Sock 9.Close socket [11:12:59]Sock 9.Thread stoped [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:08]accept exits with 8 [11:14:08]New connection [11:14:08]New thread 3066817892 created [11:14:08]Thread 3066961252 joined [11:14:08]Waiting for new connection... [11:14:08] Sock 8.Parse request [11:14:08]Sock 8.Check first char [11:14:08]Sock 8.First char is OK [11:14:08]request: POST /json_proto HTTP/1.0 [11:14:08]Method: POST [11:14:08]URL: /json_proto [11:14:08]Method is POST - this is cgi request [11:14:08]url: /json_proto [11:14:08]query_string will be loaded in cgi processing [11:14:08]execute_cgi json_proto POST (null) [11:14:08]execute_cgi path=json_proto method=POST [11:14:08]POST find Content-Length [11:14:08]Host: 172.17.63.131:8080 [11:14:08]Content-Length: 677 [11:14:08]Content-Type: application/json [11:14:08] [11:14:08]POST finish read [11:14:08]Found Content-Length = 677 [11:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:08]execute_script... [11:14: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)30665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:08]POST & json_proto [11:14:08]process_json_proto [11:14:08]json parsed OK: [11:14:08]protocol is kg_v1.0 [11:14:08]action value=close_receipt [11:14:08]process_action close_receipt [11:14:08]cmd_close_receipt [11:14:08]MH_GetDate [11:14:08]Write to MH i2c: F0 00 00 99 8C 14 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 09 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 09 00 99 8C 00 88 7D 1B 67 22 05 6E 64 9D [11:14:08]GetLastDocTimeStamp 1729854783 [11:14:08]current date 1729854856 [11:14:08]FM_GetShiftState [11:14:08]SAM_PROTO_GetShiftState [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 13 01 00 [11:14:08]Write to MH i2c: E2 08 00 9A 8C 80 13 01 00 00 00 00 00 A3 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 9A 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 66 [11:14:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_GetShiftState done [11:14:08]FM_GetShiftState done [11:14:08]opened in 1729816399 [11:14:08]opened+sec_in_day 1729902799 [11:14:08]quantity*price = 70044 [11:14:08]sum+1 = 70045 [11:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 110 25.10.2024 11:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191371 ФПД: 1824409701436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191371&fm=1824409701436&tin=02508201610067®Number=0000000000091776&sum=70000 [11:14:09]StoreToDocumentArchive [11:14:09]shift 540 fd 191371 [11:14:09]save to /storage/0540/doc_00191371 [11:14:09]save last doc name /storage/0540/doc_00191371 to /storage/kkm_last_doc_name [11:14:09]save OK [11:14:09]Clear old archive folders... [11:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:09]tlvbuf is 015D8A10 [11:14:09]SAM_PROTO_ClearQueue [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 09 00 00 [11:14:09]Write to MH i2c: E2 08 00 A7 8C 80 09 00 00 00 00 00 00 A5 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 A7 8C 00 90 00 A7 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_ClearQueue done [11:14:09]KKMCreateOFDPacket [11:14:09]OFDProtocolAddRootSTLVToBuf [11:14:09]FM_MakeSignedData [11:14:09]FM_MakeSignedData [11:14:09]SAM_PROTO_SignData [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 01 02 [11:14:09]Write to MH i2c: E2 08 00 A8 8C 80 0D 01 02 00 00 00 00 AD [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 A8 8C 00 90 00 A8 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=255 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 88 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EB 02 00 35 04 06 00 01 [11:14:09]Write to MH i2c: E2 02 01 A9 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 88 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EB 02 00 35 04 06 00 01 00 00 DD [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 A9 8C 00 90 00 A9 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=10 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 02 02 05 A8 C7 4A CC 3C [11:14:09]Write to MH i2c: E2 0D 00 AA 8C 80 0D 02 02 05 00 A8 C7 4A CC 3C 00 00 7B [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 AA 8C 00 90 00 AA [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 03 02 [11:14:09]Write to MH i2c: E2 08 00 AB 8C 80 0D 03 02 00 00 00 00 B2 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 AB 8C 00 5A D0 22 88 E0 4A 39 B4 90 00 9E [11:14:09]RAPDU: 5A D0 22 88 E0 4A 39 B4 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_SignData done [11:14:09]FM_MakeSignedData done [11:14:09]CreateOFDProtocolMessage [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 11 00 00 [11:14:09]Write to MH i2c: E2 08 00 AC 8C 80 11 00 00 00 00 00 00 B2 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 AC 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [11:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:14:09]wFMCommunicate OK [11:14:09]CreateOFDProtocolMessage done [11:14:09]OFDSenderStorePacket 191371 [11:14:09]StoreOFDPacket docnum=191371 [11:14:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 50 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 88 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EB 02 00 35 04 06 00 01 A8 C7 4A CC 3C 5A D0 22 88 E0 4A 39 B4 [11:14:09]CheckFolder [11:14:09]dirname=/storage/ofd_packets [11:14:09]CheckFolder done [11:14:09]ProducePacketName [11:14:09]name=ofd_packets/00191371 [11:14:09]NVStorageSaveData ofd_packets/00191371 [11:14:09]File name is /storage/ofd_packets/00191371 [11:14:09]Write 301 bytes [11:14:09]NVStorageSaveData done [11:14:09]OFDSenderStorePacket done [11:14:09]KKMCreateOFDPacket done [11:14:09]NVStorageSaveData kkm_last_timestamp [11:14:09]File name is /storage/kkm_last_timestamp [11:14:09]Write 4 bytes [11:14:09]NVStorageSaveData done [11:14:09]ExternCall_PrintAddStr [11:14:09]wPrintStart [11:14:09]Write to MH i2c: 01 00 00 AD 8C 39 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 AD 8C 00 00 00 00 00 FF 0F 4E [11:14:09]RasterBufferAndPrint [11:14:09]line Счет N : (1)30665 [11:14:09]line ИНН: 02508201610067 [11:14:09]line Контрольно-Кассовый Чек [11:14:09]line ПРОДАЖА [11:14:09]line ТРК (МРК, ГНК) : 21 [11:14:09]line Товар: 2710124130 [11:14:09]line Аи-92-К-5 [11:14:09]line 10.470 * 66.90 [11:14:09]line = 700.44 [11:14:09]line НДС 12% НСП 1% [11:14:09]line > о реализуемом товаре [11:14:09]line ОКРУГЛЕНИЕ: -0.44 [11:14:09]line ИТОГО: 700.00 [11:14:09]line Внесено: 700.00 [11:14:09]line СДАЧА: 0.00 [11:14:09]line НСП 1% : 6.20 [11:14:09]line НДС 12% : 74.38 [11:14:09]line Наличными: 700.00 [11:14:09]line Безнал.: 0.00 [11:14:09]line Место: АЗС № 170 "Партнер Нефть" [11:14:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:14:09]line СНО: Общий режим [11:14:09]line Чек 110 25.10.2024 11:14 [11:14:09]line Смена: 540 ФФД: 1.0 [11:14:09]line ЗНМ: 0300000110 [11:14:09]line РНМ: 0000000000091776 [11:14:09]line Версия ККМ: 001 [11:14:09]line ФМ: 0000000000871754 [11:14:09]line ФД: 191371 [11:14:09]line ФПД: 1824409701436 [11:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191371&fm=1824409701436&tin=02508201610067®Number=0000000000091776&sum=70000 [11:14:10]OFD Sender: Processing packet 191371 [packets to send 75, broken 74] [11:14:10]ProducePacketName [11:14:10]name=ofd_packets/00191371 [11:14:10]OFD Sender: To server: pG, [11:14:10]CommunicateWithHost lk.salyk.kg:30040 [11:14:10]ConnectInit lk.salyk.kg [11:14:10]written 0, free lines is 4095 [11:14:10]Connected sock=10 [11:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 50 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 88 7D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EB 02 00 35 04 06 00 01 A8 C7 4A CC 3C 5A D0 22 88 E0 4A 39 B4 [11:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 52 47 00 88 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EB 02 00 F4 03 04 00 57 22 1B 67 B6 04 01 00 00 6A 19 9D 8A A9 D6 9A 63 [11:14:10]CommunicateWithHost err = 0 [11:14:10]CheckOFDResponse [11:14:10]1017 (14) - 77093643461234 [11:14:10]1041 (16) - 0000000000871754 [11:14:10]1040 (4) - 191371 [11:14:10]1012 (4) - 25.10.2024 04:45 [11:14:10]1206 (1) - 0 [11:14:10]OFD Sender: Remove packet 191371 [11:14:10]ProducePacketName [11:14:10]name=ofd_packets/00191371 [11:14:10]NVStorageDeleteData [11:14:10]Write to MH i2c: 01 00 00 D8 8C 64 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 D8 8C 00 00 00 00 00 A6 0C 1D [11:14:10]RasterBufferAndPrint [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]written 0, free lines is 3244 [11:14:10]MH_Cut [11:14:10]Write to MH i2c: D1 01 00 DF 8C 01 3D [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 DF 8C 00 3C [11:14:10]Write to MH i2c: 01 00 00 E0 8C 6C [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]OFD Sender: No OFD packet to send [11:14:11]*** Cut start [11:14:11]*** Partial cut [11:14:11]*** CUTSNS_PIN = 1 [11:14:11]*** CUTSNS_PIN = 0 [11:14:11]*** Brake cut motor [11:14:12]Read from MH i2c: 01 [11:14:12]MH_I2C_Read... [11:14:12]*** Stop cut motor [11:14:12]*** Cut end [11:14:12]Read from MH i2c: 01 07 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: 01 07 00 E0 8C 00 00 00 00 00 FF 0F 81 [11:14:12]process_action close_receipt done [11:14:12]requested_data is exist [11:14:12]produce_requested_data [11:14:12]requested_item fm.sn is exist - process it [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 11 00 00 [11:14:12]Write to MH i2c: E2 08 00 E1 8C 80 11 00 00 00 00 00 00 E7 [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 17 00 E1 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [11:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:14:12]wFMCommunicate OK [11:14:12]requested_item fd.num is exist - process it [11:14:12]SAM_PROTO_GetFieldsCounters [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 13 00 00 [11:14:12]Write to MH i2c: E2 08 00 E2 8C 80 13 00 00 00 00 00 00 EA [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 62 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 62 00 E2 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EB 02 00 0E 04 04 00 1C 02 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 F0 [11:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:12]wFMCommunicate OK [11:14:12]SAM_PROTO_GetFieldsCounters done [11:14:12]requested_item shift.num is exist - process it [11:14:12]requested_item shift.opened is exist - process it [11:14:12]req_shift_opened [11:14:12]FM_GetShiftState [11:14:12]SAM_PROTO_GetShiftState [11:14:12]wFMCommunicate request_size=4 [11:14:12]MH_SAM_APDU [11:14:12]CAPDU: 80 13 01 00 [11:14:12]Write to MH i2c: E2 08 00 E3 8C 80 13 01 00 00 00 00 00 EC [11:14:12]Write i2c OK [11:14:12]MH_I2C_Read... [11:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:12]Read from MH i2c: E2 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0E 00 [11:14:12]MH_I2C_Read... [11:14:12]Read from MH i2c: E2 0E 00 E3 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AF [11:14:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:14:12]wFMCommunicate OK [11:14:12]SAM_PROTO_GetShiftState done [11:14:12]FM_GetShiftState done [11:14:12]req_shift_opened done [11:14:12]requested_item shift.open_date is exist - process it [11:14:12]req_shift_open_date [11:14:12]req_shift_open_date done [11:14:12]produce_requested_data done [11:14:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191371,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:14:12]process_action_free close_receipt [11:14:12]json_value_free [11:14:12]json_value_free done [11:14:12]process_json_proto returns [11:14:12]Send response to host [11:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191371,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:14:12]free response buf [11:14:12]execute_script done [11:14:12]execute_script returns [11:14:12]free content buf [11:14:12]Sock 8.Close socket [11:14:12]Sock 8.Thread stoped [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:25]accept exits with 9 [11:16:25]New connection [11:16:25]New thread 3066961252 created [11:16:25]Thread 3066817892 joined [11:16:25]Waiting for new connection... [11:16:25] Sock 9.Parse request [11:16:25]Sock 9.Check first char [11:16:25]Sock 9.First char is OK [11:16:25]request: POST /json_proto HTTP/1.0 [11:16:25]Method: POST [11:16:25]URL: /json_proto [11:16:25]Method is POST - this is cgi request [11:16:25]url: /json_proto [11:16:25]query_string will be loaded in cgi processing [11:16:25]execute_cgi json_proto POST (null) [11:16:25]execute_cgi path=json_proto method=POST [11:16:25]POST find Content-Length [11:16:25]Host: 172.17.63.131:8080 [11:16:25]Content-Length: 676 [11:16:25]Content-Type: application/json [11:16:25] [11:16:25]POST finish read [11:16:25]Found Content-Length = 676 [11:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:25]execute_script... [11:16:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:25]POST & json_proto [11:16:25]process_json_proto [11:16:25]json parsed OK: [11:16:25]protocol is kg_v1.0 [11:16:25]action value=close_receipt [11:16:25]process_action close_receipt [11:16:25]cmd_close_receipt [11:16:25]MH_GetDate [11:16:25]Write to MH i2c: F0 00 00 E4 8C 5F [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 09 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 09 00 E4 8C 00 12 7E 1B 67 22 05 6E 64 73 [11:16:25]GetLastDocTimeStamp 1729854856 [11:16:25]current date 1729854994 [11:16:25]FM_GetShiftState [11:16:25]SAM_PROTO_GetShiftState [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 13 01 00 [11:16:25]Write to MH i2c: E2 08 00 E5 8C 80 13 01 00 00 00 00 00 EE [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 E5 8C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B1 [11:16:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_GetShiftState done [11:16:25]FM_GetShiftState done [11:16:25]opened in 1729816399 [11:16:25]opened+sec_in_day 1729902799 [11:16:25]quantity*price = 50041 [11:16:25]sum+1 = 50042 [11:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 111 25.10.2024 11:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191372 ФПД: 172633427045617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191372&fm=172633427045617&tin=02508201610067®Number=0000000000091776&sum=50000 [11:16:26]StoreToDocumentArchive [11:16:26]shift 540 fd 191372 [11:16:26]save to /storage/0540/doc_00191372 [11:16:26]save last doc name /storage/0540/doc_00191372 to /storage/kkm_last_doc_name [11:16:26]save OK [11:16:26]Clear old archive folders... [11:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:26]tlvbuf is 016EB540 [11:16:26]SAM_PROTO_ClearQueue [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 09 00 00 [11:16:26]Write to MH i2c: E2 08 00 F2 8C 80 09 00 00 00 00 00 00 F0 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 F2 8C 00 90 00 F2 [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_ClearQueue done [11:16:26]KKMCreateOFDPacket [11:16:26]OFDProtocolAddRootSTLVToBuf [11:16:26]FM_MakeSignedData [11:16:26]FM_MakeSignedData [11:16:26]SAM_PROTO_SignData [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 01 02 [11:16:26]Write to MH i2c: E2 08 00 F3 8C 80 0D 01 02 00 00 00 00 F8 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 F3 8C 00 90 00 F3 [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=255 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 12 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EB 02 00 35 04 06 00 9D [11:16:26]Write to MH i2c: E2 02 01 F4 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 12 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EB 02 00 35 04 06 00 9D 00 00 41 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 F4 8C 00 90 00 F4 [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=10 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 02 02 05 02 5A 18 6C F1 [11:16:26]Write to MH i2c: E2 0D 00 F5 8C 80 0D 02 02 05 00 02 5A 18 6C F1 00 00 D6 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 F5 8C 00 90 00 F5 [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 03 02 [11:16:26]Write to MH i2c: E2 08 00 F6 8C 80 0D 03 02 00 00 00 00 FD [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0B 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0B 00 F6 8C 00 B4 C3 A4 7D F3 4A C8 D2 90 00 6D [11:16:27]RAPDU: B4 C3 A4 7D F3 4A C8 D2 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_SignData done [11:16:27]FM_MakeSignedData done [11:16:27]CreateOFDProtocolMessage [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 11 00 00 [11:16:27]Write to MH i2c: E2 08 00 F7 8C 80 11 00 00 00 00 00 00 FD [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 F7 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [11:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:16:27]wFMCommunicate OK [11:16:27]CreateOFDProtocolMessage done [11:16:27]OFDSenderStorePacket 191372 [11:16:27]StoreOFDPacket docnum=191372 [11:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 56 07 01 12 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 12 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EB 02 00 35 04 06 00 9D 02 5A 18 6C F1 B4 C3 A4 7D F3 4A C8 D2 [11:16:27]CheckFolder [11:16:27]dirname=/storage/ofd_packets [11:16:27]CheckFolder done [11:16:27]ProducePacketName [11:16:27]name=ofd_packets/00191372 [11:16:27]NVStorageSaveData ofd_packets/00191372 [11:16:27]File name is /storage/ofd_packets/00191372 [11:16:27]Write 301 bytes [11:16:27]NVStorageSaveData done [11:16:27]OFDSenderStorePacket done [11:16:27]KKMCreateOFDPacket done [11:16:27]NVStorageSaveData kkm_last_timestamp [11:16:27]File name is /storage/kkm_last_timestamp [11:16:27]Write 4 bytes [11:16:27]NVStorageSaveData done [11:16:27]ExternCall_PrintAddStr [11:16:27]wPrintStart [11:16:27]Write to MH i2c: 01 00 00 F8 8C 84 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 F8 8C 00 00 00 00 00 FF 0F 99 [11:16:27]RasterBufferAndPrint [11:16:27]line Счет N : (1)30666 [11:16:27]line ИНН: 02508201610067 [11:16:27]line Контрольно-Кассовый Чек [11:16:27]line ПРОДАЖА [11:16:27]line ТРК (МРК, ГНК) : 12 [11:16:27]line Товар: 2710124130 [11:16:27]line Аи-92-К-5 [11:16:27]line 7.480 * 66.90 [11:16:27]line = 500.41 [11:16:27]line НДС 12% НСП 1% [11:16:27]line > о реализуемом товаре [11:16:27]line ОКРУГЛЕНИЕ: -0.41 [11:16:27]line ИТОГО: 500.00 [11:16:27]line Внесено: 500.00 [11:16:27]line СДАЧА: 0.00 [11:16:27]line НСП 1% : 4.43 [11:16:27]line НДС 12% : 53.14 [11:16:27]line Наличными: 500.00 [11:16:27]line Безнал.: 0.00 [11:16:27]line Место: АЗС № 170 "Партнер Нефть" [11:16:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:16:27]line СНО: Общий режим [11:16:27]line Чек 111 25.10.2024 11:16 [11:16:27]line Смена: 540 ФФД: 1.0 [11:16:27]line ЗНМ: 0300000110 [11:16:27]line РНМ: 0000000000091776 [11:16:27]line Версия ККМ: 001 [11:16:27]line ФМ: 0000000000871754 [11:16:27]line ФД: 191372 [11:16:27]line ФПД: 172633427045617 [11:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191372&fm=172633427045617&tin=02508201610067®Number=0000000000091776&sum=50000 [11:16:27]OFD Sender: Processing packet 191372 [packets to send 75, broken 74] [11:16:27]ProducePacketName [11:16:27]name=ofd_packets/00191372 [11:16:27]OFD Sender: To server: pG, [11:16:27]CommunicateWithHost lk.salyk.kg:30040 [11:16:27]ConnectInit lk.salyk.kg [11:16:27]written 0, free lines is 4095 [11:16:27]Connected sock=10 [11:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 56 07 01 12 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 12 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EB 02 00 35 04 06 00 9D 02 5A 18 6C F1 B4 C3 A4 7D F3 4A C8 D2 [11:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 49 69 47 00 D0 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EB 02 00 F4 03 04 00 E0 22 1B 67 B6 04 01 00 00 3C 36 E9 F0 CF 3D 65 40 [11:16:27]CommunicateWithHost err = 0 [11:16:27]CheckOFDResponse [11:16:27]1017 (14) - 77093643461234 [11:16:27]1041 (16) - 0000000000871754 [11:16:27]1040 (4) - 191372 [11:16:27]1012 (4) - 25.10.2024 04:47 [11:16:27]1206 (1) - 0 [11:16:27]OFD Sender: Remove packet 191372 [11:16:27]ProducePacketName [11:16:27]name=ofd_packets/00191372 [11:16:27]NVStorageDeleteData [11:16:27]Write to MH i2c: 01 00 00 23 8D B0 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 23 8D 00 00 00 00 00 A2 0C 65 [11:16:27]RasterBufferAndPrint [11:16:27]line [11:16:27]line [11:16:27]line [11:16:27]line [11:16:27]line [11:16:27]written 0, free lines is 3241 [11:16:27]MH_Cut [11:16:27]Write to MH i2c: D1 01 00 2A 8D 01 89 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 01 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 01 00 2A 8D 00 88 [11:16:27]Write to MH i2c: 01 00 00 2B 8D B8 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:28]OFD Sender: No OFD packet to send [11:16:28]*** Cut start [11:16:28]*** Partial cut [11:16:28]*** CUTSNS_PIN = 1 [11:16:28]*** CUTSNS_PIN = 0 [11:16:29]*** Brake cut motor [11:16:29]Read from MH i2c: 01 [11:16:29]MH_I2C_Read... [11:16:29]*** Stop cut motor [11:16:29]*** Cut end [11:16:29]Read from MH i2c: 01 07 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 2B 8D 00 00 00 00 00 FF 0F CD [11:16:29]process_action close_receipt done [11:16:29]requested_data is exist [11:16:29]produce_requested_data [11:16:29]requested_item fm.sn is exist - process it [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 11 00 00 [11:16:29]Write to MH i2c: E2 08 00 2C 8D 80 11 00 00 00 00 00 00 33 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:29]Read from MH i2c: E2 17 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 2C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [11:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:16:29]wFMCommunicate OK [11:16:29]requested_item fd.num is exist - process it [11:16:29]SAM_PROTO_GetFieldsCounters [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 13 00 00 [11:16:29]Write to MH i2c: E2 08 00 2D 8D 80 13 00 00 00 00 00 00 36 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 62 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 62 00 2D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EB 02 00 0E 04 04 00 1C 02 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 40 [11:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_GetFieldsCounters done [11:16:29]requested_item shift.num is exist - process it [11:16:29]requested_item shift.opened is exist - process it [11:16:29]req_shift_opened [11:16:29]FM_GetShiftState [11:16:29]SAM_PROTO_GetShiftState [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 13 01 00 [11:16:29]Write to MH i2c: E2 08 00 2E 8D 80 13 01 00 00 00 00 00 38 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 2E 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FB [11:16:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_GetShiftState done [11:16:29]FM_GetShiftState done [11:16:29]req_shift_opened done [11:16:29]requested_item shift.open_date is exist - process it [11:16:29]req_shift_open_date [11:16:29]req_shift_open_date done [11:16:29]produce_requested_data done [11:16:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191372,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:16:29]process_action_free close_receipt [11:16:29]json_value_free [11:16:29]json_value_free done [11:16:29]process_json_proto returns [11:16:29]Send response to host [11:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191372,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:16:29]free response buf [11:16:29]execute_script done [11:16:29]execute_script returns [11:16:29]free content buf [11:16:29]Sock 9.Close socket [11:16:29]Sock 9.Thread stoped [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:27]accept exits with 8 [11:18:27]New connection [11:18:27]New thread 3066817892 created [11:18:27]Thread 3066961252 joined [11:18:27]Waiting for new connection... [11:18:27] Sock 8.Parse request [11:18:27]Sock 8.Check first char [11:18:27]Sock 8.First char is OK [11:18:27]request: POST /json_proto HTTP/1.0 [11:18:27]Method: POST [11:18:27]URL: /json_proto [11:18:27]Method is POST - this is cgi request [11:18:27]url: /json_proto [11:18:27]query_string will be loaded in cgi processing [11:18:27]execute_cgi json_proto POST (null) [11:18:27]execute_cgi path=json_proto method=POST [11:18:27]POST find Content-Length [11:18:27]Host: 172.17.63.131:8080 [11:18:27]Content-Length: 678 [11:18:27]Content-Type: application/json [11:18:27] [11:18:27]POST finish read [11:18:27]Found Content-Length = 678 [11:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]execute_script... [11:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]POST & json_proto [11:18:27]process_json_proto [11:18:27]json parsed OK: [11:18:27]protocol is kg_v1.0 [11:18:27]action value=close_receipt [11:18:27]process_action close_receipt [11:18:27]cmd_close_receipt [11:18:27]MH_GetDate [11:18:27]Write to MH i2c: F0 00 00 2F 8D AB [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 2F 8D 00 8C 7E 1B 67 22 05 6E 64 39 [11:18:27]GetLastDocTimeStamp 1729854994 [11:18:27]current date 1729855116 [11:18:27]FM_GetShiftState [11:18:27]SAM_PROTO_GetShiftState [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 13 01 00 [11:18:27]Write to MH i2c: E2 08 00 30 8D 80 13 01 00 00 00 00 00 3A [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 30 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FD [11:18:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_GetShiftState done [11:18:27]FM_GetShiftState done [11:18:27]opened in 1729816399 [11:18:27]opened+sec_in_day 1729902799 [11:18:27]quantity*price = 110032 [11:18:27]sum+1 = 110034 [11:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 112 25.10.2024 11:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191373 ФПД: 270469758330481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191373&fm=270469758330481&tin=02508201610067®Number=0000000000091776&sum=110000 [11:18:28]StoreToDocumentArchive [11:18:28]shift 540 fd 191373 [11:18:28]save to /storage/0540/doc_00191373 [11:18:28]save last doc name /storage/0540/doc_00191373 to /storage/kkm_last_doc_name [11:18:28]save OK [11:18:28]Clear old archive folders... [11:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:28]tlvbuf is 015D8960 [11:18:28]SAM_PROTO_ClearQueue [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 09 00 00 [11:18:28]Write to MH i2c: E2 08 00 3D 8D 80 09 00 00 00 00 00 00 3C [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 3D 8D 00 90 00 3E [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_ClearQueue done [11:18:28]KKMCreateOFDPacket [11:18:28]OFDProtocolAddRootSTLVToBuf [11:18:28]FM_MakeSignedData [11:18:28]FM_MakeSignedData [11:18:28]SAM_PROTO_SignData [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 01 02 [11:18:28]Write to MH i2c: E2 08 00 3E 8D 80 0D 01 02 00 00 00 00 44 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 3E 8D 00 90 00 3F [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=255 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8C 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EB 02 00 35 04 06 00 F5 FD A5 DE [11:18:28]Write to MH i2c: E2 02 01 3F 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8C 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EB 02 00 35 04 06 00 F5 FD A5 DE 00 00 0E [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 3F 8D 00 90 00 40 [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=7 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 02 02 02 26 71 [11:18:28]Write to MH i2c: E2 0A 00 40 8D 80 0D 02 02 02 00 26 71 00 00 E2 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 40 8D 00 90 00 41 [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 03 02 [11:18:28]Write to MH i2c: E2 08 00 41 8D 80 0D 03 02 00 00 00 00 49 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 41 8D 00 73 61 60 E8 D5 D4 8F 27 90 00 C5 [11:18:29]RAPDU: 73 61 60 E8 D5 D4 8F 27 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_SignData done [11:18:29]FM_MakeSignedData done [11:18:29]CreateOFDProtocolMessage [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 11 00 00 [11:18:29]Write to MH i2c: E2 08 00 42 8D 80 11 00 00 00 00 00 00 49 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 17 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 17 00 42 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [11:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:18:29]wFMCommunicate OK [11:18:29]CreateOFDProtocolMessage done [11:18:29]OFDSenderStorePacket 191373 [11:18:29]StoreOFDPacket docnum=191373 [11:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D8 BA 04 01 F4 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8C 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EB 02 00 35 04 06 00 F5 FD A5 DE 26 71 73 61 60 E8 D5 D4 8F 27 [11:18:29]CheckFolder [11:18:29]dirname=/storage/ofd_packets [11:18:29]CheckFolder done [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00191373 [11:18:29]NVStorageSaveData ofd_packets/00191373 [11:18:29]File name is /storage/ofd_packets/00191373 [11:18:29]Write 298 bytes [11:18:29]NVStorageSaveData done [11:18:29]OFDSenderStorePacket done [11:18:29]KKMCreateOFDPacket done [11:18:29]NVStorageSaveData kkm_last_timestamp [11:18:29]File name is /storage/kkm_last_timestamp [11:18:29]Write 4 bytes [11:18:29]NVStorageSaveData done [11:18:29]ExternCall_PrintAddStr [11:18:29]wPrintStart [11:18:29]Write to MH i2c: 01 00 00 43 8D D0 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 43 8D 00 00 00 00 00 FF 0F E5 [11:18:29]RasterBufferAndPrint [11:18:29]line Счет N : (1)30667 [11:18:29]line ИНН: 02508201610067 [11:18:29]line Контрольно-Кассовый Чек [11:18:29]line ПРОДАЖА [11:18:29]line ТРК (МРК, ГНК) : 22 [11:18:29]line Товар: 2710194210 [11:18:29]line ДТ-К-5 [11:18:29]line 14.440 * 76.20 [11:18:29]line = 1100.33 [11:18:29]line НДС 12% НСП 1% [11:18:29]line > о реализуемом товаре [11:18:29]line ОКРУГЛЕНИЕ: -0.33 [11:18:29]line ИТОГО: 1100.00 [11:18:29]line Внесено: 1100.00 [11:18:29]line СДАЧА: 0.00 [11:18:29]line НСП 1% : 9.74 [11:18:29]line НДС 12% : 116.85 [11:18:29]line Наличными: 1100.00 [11:18:29]line Безнал.: 0.00 [11:18:29]line Место: АЗС № 170 "Партнер Нефть" [11:18:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:18:29]line СНО: Общий режим [11:18:29]line Чек 112 25.10.2024 11:18 [11:18:29]line Смена: 540 ФФД: 1.0 [11:18:29]line ЗНМ: 0300000110 [11:18:29]line РНМ: 0000000000091776 [11:18:29]line Версия ККМ: 001 [11:18:29]line ФМ: 0000000000871754 [11:18:29]line ФД: 191373 [11:18:29]line ФПД: 270469758330481 [11:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T111836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191373&fm=270469758330481&tin=02508201610067®Number=0000000000091776&sum=110000 [11:18:29]OFD Sender: Processing packet 191373 [packets to send 75, broken 74] [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00191373 [11:18:29]OFD Sender: To server: pG, [11:18:29]CommunicateWithHost lk.salyk.kg:30040 [11:18:29]ConnectInit lk.salyk.kg [11:18:29]written 0, free lines is 4095 [11:18:29]Connected sock=10 [11:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D8 BA 04 01 F4 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8C 7E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EB 02 00 35 04 06 00 F5 FD A5 DE 26 71 73 61 60 E8 D5 D4 8F 27 [11:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 6C 47 00 A8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EB 02 00 F4 03 04 00 5A 23 1B 67 B6 04 01 00 00 3D DD D2 79 E9 1E 40 B7 [11:18:29]CommunicateWithHost err = 0 [11:18:29]CheckOFDResponse [11:18:29]1017 (14) - 77093643461234 [11:18:29]1041 (16) - 0000000000871754 [11:18:29]1040 (4) - 191373 [11:18:29]1012 (4) - 25.10.2024 04:49 [11:18:29]1206 (1) - 0 [11:18:29]OFD Sender: Remove packet 191373 [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00191373 [11:18:29]NVStorageDeleteData [11:18:29]Write to MH i2c: 01 00 00 6E 8D FB [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 6E 8D 00 00 00 00 00 A2 0C B0 [11:18:29]RasterBufferAndPrint [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]written 0, free lines is 3240 [11:18:29]MH_Cut [11:18:29]Write to MH i2c: D1 01 00 75 8D 01 D4 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 75 8D 00 D3 [11:18:29]Write to MH i2c: 01 00 00 76 8D 03 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:30]OFD Sender: No OFD packet to send [11:18:30]*** Cut start [11:18:30]*** Partial cut [11:18:30]*** CUTSNS_PIN = 1 [11:18:30]*** CUTSNS_PIN = 0 [11:18:30]*** Brake cut motor [11:18:31]Read from MH i2c: 01 [11:18:31]MH_I2C_Read... [11:18:31]*** Stop cut motor [11:18:31]*** Cut end [11:18:31]Read from MH i2c: 01 07 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: 01 07 00 76 8D 00 00 00 00 00 FF 0F 18 [11:18:31]process_action close_receipt done [11:18:31]requested_data is exist [11:18:31]produce_requested_data [11:18:31]requested_item fm.sn is exist - process it [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 11 00 00 [11:18:31]Write to MH i2c: E2 08 00 77 8D 80 11 00 00 00 00 00 00 7E [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:31]Read from MH i2c: E2 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 17 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 17 00 77 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [11:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:18:31]wFMCommunicate OK [11:18:31]requested_item fd.num is exist - process it [11:18:31]SAM_PROTO_GetFieldsCounters [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 13 00 00 [11:18:31]Write to MH i2c: E2 08 00 78 8D 80 13 00 00 00 00 00 00 81 [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:31]Read from MH i2c: E2 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 62 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 62 00 78 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EB 02 00 0E 04 04 00 1C 02 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 8F [11:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:31]wFMCommunicate OK [11:18:31]SAM_PROTO_GetFieldsCounters done [11:18:31]requested_item shift.num is exist - process it [11:18:31]requested_item shift.opened is exist - process it [11:18:31]req_shift_opened [11:18:31]FM_GetShiftState [11:18:31]SAM_PROTO_GetShiftState [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 13 01 00 [11:18:31]Write to MH i2c: E2 08 00 79 8D 80 13 01 00 00 00 00 00 83 [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:31]Read from MH i2c: E2 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 0E 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 0E 00 79 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 46 [11:18:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:18:31]wFMCommunicate OK [11:18:31]SAM_PROTO_GetShiftState done [11:18:31]FM_GetShiftState done [11:18:31]req_shift_opened done [11:18:31]requested_item shift.open_date is exist - process it [11:18:31]req_shift_open_date [11:18:31]req_shift_open_date done [11:18:31]produce_requested_data done [11:18:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191373,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:18:31]process_action_free close_receipt [11:18:31]json_value_free [11:18:31]json_value_free done [11:18:31]process_json_proto returns [11:18:31]Send response to host [11:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191373,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:18:31]free response buf [11:18:31]execute_script done [11:18:31]execute_script returns [11:18:31]free content buf [11:18:31]Sock 8.Close socket [11:18:31]Sock 8.Thread stoped [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:48]accept exits with 9 [11:22:48]New connection [11:22:48]New thread 3066961252 created [11:22:48]Thread 3066817892 joined [11:22:48]Waiting for new connection... [11:22:48] Sock 9.Parse request [11:22:48]Sock 9.Check first char [11:22:48]Sock 9.First char is OK [11:22:48]request: POST /json_proto HTTP/1.0 [11:22:48]Method: POST [11:22:48]URL: /json_proto [11:22:48]Method is POST - this is cgi request [11:22:48]url: /json_proto [11:22:48]query_string will be loaded in cgi processing [11:22:48]execute_cgi json_proto POST (null) [11:22:48]execute_cgi path=json_proto method=POST [11:22:48]POST find Content-Length [11:22:48]Host: 172.17.63.131:8080 [11:22:48]Content-Length: 862 [11:22:48]Content-Type: application/json [11:22:48] [11:22:48]POST finish read [11:22:48]Found Content-Length = 862 [11:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:48]execute_script... [11:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:48]POST & json_proto [11:22:48]process_json_proto [11:22:48]json parsed OK: [11:22:48]protocol is kg_v1.0 [11:22:48]action value=close_receipt [11:22:48]process_action close_receipt [11:22:48]cmd_close_receipt [11:22:48]MH_GetDate [11:22:48]Write to MH i2c: F0 00 00 7A 8D F6 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 7A 8D 00 91 7F 1B 67 22 05 6E 64 8A [11:22:48]GetLastDocTimeStamp 1729855116 [11:22:48]current date 1729855377 [11:22:48]FM_GetShiftState [11:22:48]SAM_PROTO_GetShiftState [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 13 01 00 [11:22:48]Write to MH i2c: E2 08 00 7B 8D 80 13 01 00 00 00 00 00 85 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 7B 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 48 [11:22:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_GetShiftState done [11:22:48]FM_GetShiftState done [11:22:48]opened in 1729816399 [11:22:48]opened+sec_in_day 1729902799 [11:22:48]quantity*price = 200025 [11:22:48]sum+1 = 200026 [11:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 113 25.10.2024 11:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191374 ФПД: 151190691559724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191374&fm=151190691559724&tin=02508201610067®Number=0000000000091776&sum=200025 [11:22:49]StoreToDocumentArchive [11:22:49]shift 540 fd 191374 [11:22:49]save to /storage/0540/doc_00191374 [11:22:49]save last doc name /storage/0540/doc_00191374 to /storage/kkm_last_doc_name [11:22:49]save OK [11:22:49]Clear old archive folders... [11:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:49]tlvbuf is 017F1710 [11:22:49]SAM_PROTO_ClearQueue [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 09 00 00 [11:22:49]Write to MH i2c: E2 08 00 88 8D 80 09 00 00 00 00 00 00 87 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 88 8D 00 90 00 89 [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_ClearQueue done [11:22:50]KKMCreateOFDPacket [11:22:50]OFDProtocolAddRootSTLVToBuf [11:22:50]FM_MakeSignedData [11:22:50]FM_MakeSignedData [11:22:50]SAM_PROTO_SignData [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 01 02 [11:22:50]Write to MH i2c: E2 08 00 89 8D 80 0D 01 02 00 00 00 00 8F [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 89 8D 00 90 00 8A [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=255 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 7F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EB 02 00 35 04 06 00 89 81 D3 76 [11:22:50]Write to MH i2c: E2 02 01 8A 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 7F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EB 02 00 35 04 06 00 89 81 D3 76 00 00 28 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 8A 8D 00 90 00 8B [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=7 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 02 02 02 B9 2C [11:22:50]Write to MH i2c: E2 0A 00 8B 8D 80 0D 02 02 02 00 B9 2C 00 00 7B [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 8B 8D 00 90 00 8C [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 03 02 [11:22:50]Write to MH i2c: E2 08 00 8C 8D 80 0D 03 02 00 00 00 00 94 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 8C 8D 00 24 7B 1F 5A 5D 72 7F A4 90 00 9F [11:22:50]RAPDU: 24 7B 1F 5A 5D 72 7F A4 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_SignData done [11:22:50]FM_MakeSignedData done [11:22:50]CreateOFDProtocolMessage [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 11 00 00 [11:22:50]Write to MH i2c: E2 08 00 8D 8D 80 11 00 00 00 00 00 00 94 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 8D 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [11:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:22:50]wFMCommunicate OK [11:22:50]CreateOFDProtocolMessage done [11:22:50]OFDSenderStorePacket 191374 [11:22:50]StoreOFDPacket docnum=191374 [11:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DD 26 04 01 9C 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 7F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EB 02 00 35 04 06 00 89 81 D3 76 B9 2C 24 7B 1F 5A 5D 72 7F A4 [11:22:50]CheckFolder [11:22:50]dirname=/storage/ofd_packets [11:22:50]CheckFolder done [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00191374 [11:22:50]NVStorageSaveData ofd_packets/00191374 [11:22:50]File name is /storage/ofd_packets/00191374 [11:22:50]Write 298 bytes [11:22:50]NVStorageSaveData done [11:22:50]OFDSenderStorePacket done [11:22:50]KKMCreateOFDPacket done [11:22:50]NVStorageSaveData kkm_last_timestamp [11:22:50]File name is /storage/kkm_last_timestamp [11:22:50]Write 4 bytes [11:22:50]NVStorageSaveData done [11:22:50]ExternCall_PrintAddStr [11:22:50]wPrintStart [11:22:50]Write to MH i2c: 01 00 00 8E 8D 1B [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 8E 8D 00 00 00 00 00 FF 0F 30 [11:22:50]RasterBufferAndPrint [11:22:50]line Счет N : (1)30668 [11:22:50]line ИНН: 02508201610067 [11:22:50]line Контрольно-Кассовый Чек [11:22:50]line ПРОДАЖА [11:22:50]line ТРК (МРК, ГНК) : 11 [11:22:50]line Товар: 2710194210 [11:22:50]line ДТ-К-5 [11:22:50]line 26.250 * 76.20 [11:22:50]line = 2000.25 [11:22:50]line НДС 12% НСП 1% [11:22:50]line > о реализуемом товаре [11:22:50]line ИТОГО: 2000.25 [11:22:50]line НСП 1% : 17.70 [11:22:50]line НДС 12% : 212.42 [11:22:50]line Наличными: 0.00 [11:22:50]line Безнал.: 2000.25 [11:22:50]line Место: АЗС № 170 "Партнер Нефть" [11:22:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:22:50]line СНО: Общий режим [11:22:50]line Чек 113 25.10.2024 11:22 [11:22:50]line Смена: 540 ФФД: 1.0 [11:22:50]line ЗНМ: 0300000110 [11:22:50]line РНМ: 0000000000091776 [11:22:50]line Версия ККМ: 001 [11:22:50]line Платежная система: Кыргызкоммерцбанк [11:22:50]line ФМ: 0000000000871754 [11:22:50]line ФД: 191374 [11:22:50]line ФПД: 151190691559724 [11:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191374&fm=151190691559724&tin=02508201610067®Number=0000000000091776&sum=200025 [11:22:50]OFD Sender: Processing packet 191374 [packets to send 75, broken 74] [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00191374 [11:22:50]OFD Sender: To server: pG, [11:22:50]CommunicateWithHost lk.salyk.kg:30040 [11:22:50]ConnectInit lk.salyk.kg [11:22:50]written 0, free lines is 4095 [11:22:50]Connected sock=11 [11:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DD 26 04 01 9C 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 91 7F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EB 02 00 35 04 06 00 89 81 D3 76 B9 2C 24 7B 1F 5A 5D 72 7F A4 [11:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 D9 47 00 51 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EB 02 00 F4 03 04 00 60 24 1B 67 B6 04 01 00 00 BD 59 EF 16 15 11 AC 15 [11:22:51]CommunicateWithHost err = 0 [11:22:51]CheckOFDResponse [11:22:51]1017 (14) - 77093643461234 [11:22:51]1041 (16) - 0000000000871754 [11:22:51]1040 (4) - 191374 [11:22:51]1012 (4) - 25.10.2024 04:53 [11:22:51]1206 (1) - 0 [11:22:51]OFD Sender: Remove packet 191374 [11:22:51]ProducePacketName [11:22:51]name=ofd_packets/00191374 [11:22:51]NVStorageDeleteData [11:22:51]Write to MH i2c: 01 00 00 B8 8D 45 [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: 01 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: 01 07 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: 01 07 00 B8 8D 00 00 00 00 00 BC 0C 14 [11:22:51]RasterBufferAndPrint [11:22:51]line [11:22:51]line [11:22:51]line [11:22:51]line [11:22:51]line [11:22:51]written 0, free lines is 3267 [11:22:51]MH_Cut [11:22:51]Write to MH i2c: D1 01 00 BF 8D 01 1E [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 01 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 01 00 BF 8D 00 1D [11:22:51]Write to MH i2c: 01 00 00 C0 8D 4D [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]OFD Sender: No OFD packet to send [11:22:52]*** Cut start [11:22:52]*** Partial cut [11:22:52]*** CUTSNS_PIN = 1 [11:22:52]*** CUTSNS_PIN = 0 [11:22:52]*** Brake cut motor [11:22:52]Read from MH i2c: 01 [11:22:52]MH_I2C_Read... [11:22:52]*** Stop cut motor [11:22:52]*** Cut end [11:22:52]Read from MH i2c: 01 07 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 C0 8D 00 00 00 00 00 FF 0F 62 [11:22:52]process_action close_receipt done [11:22:52]requested_data is exist [11:22:52]produce_requested_data [11:22:52]requested_item fm.sn is exist - process it [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 11 00 00 [11:22:52]Write to MH i2c: E2 08 00 C1 8D 80 11 00 00 00 00 00 00 C8 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 C1 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [11:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:22:52]wFMCommunicate OK [11:22:52]requested_item fd.num is exist - process it [11:22:52]SAM_PROTO_GetFieldsCounters [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 00 00 [11:22:52]Write to MH i2c: E2 08 00 C2 8D 80 13 00 00 00 00 00 00 CB [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 C2 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EB 02 00 0E 04 04 00 1C 02 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 DD [11:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_GetFieldsCounters done [11:22:52]requested_item shift.num is exist - process it [11:22:52]requested_item shift.opened is exist - process it [11:22:52]req_shift_opened [11:22:52]FM_GetShiftState [11:22:52]SAM_PROTO_GetShiftState [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 01 00 [11:22:52]Write to MH i2c: E2 08 00 C3 8D 80 13 01 00 00 00 00 00 CD [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:53]Read from MH i2c: E2 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 C3 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 90 [11:22:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:22:53]wFMCommunicate OK [11:22:53]SAM_PROTO_GetShiftState done [11:22:53]FM_GetShiftState done [11:22:53]req_shift_opened done [11:22:53]requested_item shift.open_date is exist - process it [11:22:53]req_shift_open_date [11:22:53]req_shift_open_date done [11:22:53]produce_requested_data done [11:22:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191374,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:22:53]process_action_free close_receipt [11:22:53]json_value_free [11:22:53]json_value_free done [11:22:53]process_json_proto returns [11:22:53]Send response to host [11:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191374,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:22:53]free response buf [11:22:53]execute_script done [11:22:53]execute_script returns [11:22:53]free content buf [11:22:53]Sock 9.Close socket [11:22:53]Sock 9.Thread stoped [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:47]accept exits with 8 [11:24:47]New connection [11:24:47]New thread 3066817892 created [11:24:47]Thread 3066961252 joined [11:24:47]Waiting for new connection... [11:24:47] Sock 8.Parse request [11:24:47]Sock 8.Check first char [11:24:47]Sock 8.First char is OK [11:24:47]request: POST /json_proto HTTP/1.0 [11:24:47]Method: POST [11:24:47]URL: /json_proto [11:24:47]Method is POST - this is cgi request [11:24:47]url: /json_proto [11:24:47]query_string will be loaded in cgi processing [11:24:47]execute_cgi json_proto POST (null) [11:24:47]execute_cgi path=json_proto method=POST [11:24:47]POST find Content-Length [11:24:47]Host: 172.17.63.131:8080 [11:24:47]Content-Length: 681 [11:24:47]Content-Type: application/json [11:24:47] [11:24:47]POST finish read [11:24:47]Found Content-Length = 681 [11:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:47]execute_script... [11:24: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)30670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:47]POST & json_proto [11:24:47]process_json_proto [11:24:47]json parsed OK: [11:24:47]protocol is kg_v1.0 [11:24:47]action value=close_receipt [11:24:47]process_action close_receipt [11:24:47]cmd_close_receipt [11:24:47]MH_GetDate [11:24:47]Write to MH i2c: F0 00 00 C4 8D 40 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: F0 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: F0 09 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: F0 09 00 C4 8D 00 07 80 1B 67 22 05 6E 64 4B [11:24:47]GetLastDocTimeStamp 1729855377 [11:24:47]current date 1729855495 [11:24:47]FM_GetShiftState [11:24:47]SAM_PROTO_GetShiftState [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 13 01 00 [11:24:47]Write to MH i2c: E2 08 00 C5 8D 80 13 01 00 00 00 00 00 CF [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 0E 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 0E 00 C5 8D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 92 [11:24:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:24:47]wFMCommunicate OK [11:24:47]SAM_PROTO_GetShiftState done [11:24:47]FM_GetShiftState done [11:24:47]opened in 1729816399 [11:24:47]opened+sec_in_day 1729902799 [11:24:47]quantity*price = 100015 [11:24:47]sum+1 = 100017 [11:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 114 25.10.2024 11:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191375 ФПД: 10836290156259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112456&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191375&fm=10836290156259&tin=02508201610067®Number=0000000000091776&sum=100000 [11:24:48]StoreToDocumentArchive [11:24:48]shift 540 fd 191375 [11:24:48]save to /storage/0540/doc_00191375 [11:24:48]save last doc name /storage/0540/doc_00191375 to /storage/kkm_last_doc_name [11:24:48]save OK [11:24:48]Clear old archive folders... [11:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:48]tlvbuf is 017F1570 [11:24:48]SAM_PROTO_ClearQueue [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 09 00 00 [11:24:48]Write to MH i2c: E2 08 00 D2 8D 80 09 00 00 00 00 00 00 D1 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 D2 8D 00 90 00 D3 [11:24:48]RAPDU: 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_ClearQueue done [11:24:48]KKMCreateOFDPacket [11:24:48]OFDProtocolAddRootSTLVToBuf [11:24:48]FM_MakeSignedData [11:24:48]FM_MakeSignedData [11:24:48]SAM_PROTO_SignData [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 0D 01 02 [11:24:48]Write to MH i2c: E2 08 00 D3 8D 80 0D 01 02 00 00 00 00 D9 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 D3 8D 00 90 00 D4 [11:24:48]RAPDU: 90 00 [11:24:48]wFMCommunicate OK [11:24:48]wFMCommunicate request_size=255 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 08 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EB 02 00 35 04 06 00 09 [11:24:48]Write to MH i2c: E2 02 01 D4 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 08 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EB 02 00 35 04 06 00 09 00 00 86 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 D4 8D 00 90 00 D5 [11:24:48]RAPDU: 90 00 [11:24:48]wFMCommunicate OK [11:24:48]wFMCommunicate request_size=10 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 0D 02 02 05 DB 05 39 B6 E3 [11:24:48]Write to MH i2c: E2 0D 00 D5 8D 80 0D 02 02 05 00 DB 05 39 B6 E3 00 00 98 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 03 00 D5 8D 00 90 00 D6 [11:24:48]RAPDU: 90 00 [11:24:48]wFMCommunicate OK [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 0D 03 02 [11:24:48]Write to MH i2c: E2 08 00 D6 8D 80 0D 03 02 00 00 00 00 DE [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0B 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0B 00 D6 8D 00 C0 8D F0 88 FA EC 82 1F 90 00 2B [11:24:48]RAPDU: C0 8D F0 88 FA EC 82 1F 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_SignData done [11:24:48]FM_MakeSignedData done [11:24:48]CreateOFDProtocolMessage [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 11 00 00 [11:24:48]Write to MH i2c: E2 08 00 D7 8D 80 11 00 00 00 00 00 00 DE [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 D7 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [11:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:48]wFMCommunicate OK [11:24:48]CreateOFDProtocolMessage done [11:24:48]OFDSenderStorePacket 191375 [11:24:48]StoreOFDPacket docnum=191375 [11:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 3B 07 01 B1 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 08 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EB 02 00 35 04 06 00 09 DB 05 39 B6 E3 C0 8D F0 88 FA EC 82 1F [11:24:48]CheckFolder [11:24:48]dirname=/storage/ofd_packets [11:24:48]CheckFolder done [11:24:48]ProducePacketName [11:24:48]name=ofd_packets/00191375 [11:24:48]NVStorageSaveData ofd_packets/00191375 [11:24:48]File name is /storage/ofd_packets/00191375 [11:24:48]Write 301 bytes [11:24:48]NVStorageSaveData done [11:24:48]OFDSenderStorePacket done [11:24:48]KKMCreateOFDPacket done [11:24:48]NVStorageSaveData kkm_last_timestamp [11:24:48]File name is /storage/kkm_last_timestamp [11:24:48]OFD Sender: Processing packet 191375 [packets to send 75, broken 74] [11:24:48]ProducePacketName [11:24:48]name=ofd_packets/00191375 [11:24:48]OFD Sender: To server: pG, [11:24:48]CommunicateWithHost lk.salyk.kg:30040 [11:24:48]ConnectInit lk.salyk.kg [11:24:48]Write 4 bytes [11:24:48]NVStorageSaveData done [11:24:48]ExternCall_PrintAddStr [11:24:48]wPrintStart [11:24:48]Write to MH i2c: 01 00 00 D8 8D 65 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 D8 8D 00 00 00 00 00 FF 0F 7A [11:24:48]RasterBufferAndPrint [11:24:48]line Счет N : (1)30670 [11:24:48]line ИНН: 02508201610067 [11:24:48]line Контрольно-Кассовый Чек [11:24:48]line ПРОДАЖА [11:24:48]line ТРК (МРК, ГНК) : 21 [11:24:48]line Товар: 2710124130 [11:24:48]line Аи-92-К-5 [11:24:48]line 14.950 * 66.90 [11:24:48]line = 1000.16 [11:24:48]line НДС 12% НСП 1% [11:24:48]line > о реализуемом товаре [11:24:48]line ОКРУГЛЕНИЕ: -0.16 [11:24:48]line ИТОГО: 1000.00 [11:24:48]line Внесено: 1000.00 [11:24:48]line СДАЧА: 0.00 [11:24:48]line НСП 1% : 8.85 [11:24:48]line НДС 12% : 106.21 [11:24:48]line Наличными: 1000.00 [11:24:48]line Безнал.: 0.00 [11:24:48]line Место: АЗС № 170 "Партнер Нефть" [11:24:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:24:48]line СНО: Общий режим [11:24:48]line Чек 114 25.10.2024 11:24 [11:24:48]line Смена: 540 ФФД: 1.0 [11:24:48]line ЗНМ: 0300000110 [11:24:48]line РНМ: 0000000000091776 [11:24:48]line Версия ККМ: 001 [11:24:48]line ФМ: 0000000000871754 [11:24:48]line ФД: 191375 [11:24:48]line ФПД: 10836290156259 [11:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112456&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191375&fm=10836290156259&tin=02508201610067®Number=0000000000091776&sum=100000 [11:24:49]Connected sock=12 [11:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 3B 07 01 B1 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 08 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EB 02 00 35 04 06 00 09 DB 05 39 B6 E3 C0 8D F0 88 FA EC 82 1F [11:24:49]written 0, free lines is 4095 [11:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 E2 47 00 84 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EB 02 00 F4 03 04 00 D6 24 1B 67 B6 04 01 00 00 FF C4 F8 F6 16 52 02 72 [11:24:49]CommunicateWithHost err = 0 [11:24:49]CheckOFDResponse [11:24:49]1017 (14) - 77093643461234 [11:24:49]1041 (16) - 0000000000871754 [11:24:49]1040 (4) - 191375 [11:24:49]1012 (4) - 25.10.2024 04:55 [11:24:49]1206 (1) - 0 [11:24:49]OFD Sender: Remove packet 191375 [11:24:49]ProducePacketName [11:24:49]name=ofd_packets/00191375 [11:24:49]NVStorageDeleteData [11:24:49]Write to MH i2c: 01 00 00 03 8E 91 [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: 01 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: 01 07 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: 01 07 00 03 8E 00 00 00 00 00 AA 0C 4E [11:24:49]RasterBufferAndPrint [11:24:49]line [11:24:49]line [11:24:49]line [11:24:49]line [11:24:49]line [11:24:49]written 0, free lines is 3249 [11:24:49]MH_Cut [11:24:49]Write to MH i2c: D1 01 00 0A 8E 01 6A [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: D1 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: D1 01 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: D1 01 00 0A 8E 00 69 [11:24:49]Write to MH i2c: 01 00 00 0B 8E 99 [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:50]OFD Sender: No OFD packet to send [11:24:50]*** Cut start [11:24:50]*** Partial cut [11:24:50]*** CUTSNS_PIN = 1 [11:24:50]*** CUTSNS_PIN = 0 [11:24:50]*** Brake cut motor [11:24:51]Read from MH i2c: 01 [11:24:51]MH_I2C_Read... [11:24:51]*** Stop cut motor [11:24:51]*** Cut end [11:24:51]Read from MH i2c: 01 07 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 0B 8E 00 00 00 00 00 FF 0F AE [11:24:51]process_action close_receipt done [11:24:51]requested_data is exist [11:24:51]produce_requested_data [11:24:51]requested_item fm.sn is exist - process it [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 11 00 00 [11:24:51]Write to MH i2c: E2 08 00 0C 8E 80 11 00 00 00 00 00 00 14 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 0C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [11:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:51]wFMCommunicate OK [11:24:51]requested_item fd.num is exist - process it [11:24:51]SAM_PROTO_GetFieldsCounters [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 13 00 00 [11:24:51]Write to MH i2c: E2 08 00 0D 8E 80 13 00 00 00 00 00 00 17 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 62 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 62 00 0D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:51]wFMCommunicate OK [11:24:51]SAM_PROTO_GetFieldsCounters done [11:24:51]requested_item shift.num is exist - process it [11:24:51]requested_item shift.opened is exist - process it [11:24:51]req_shift_opened [11:24:51]FM_GetShiftState [11:24:51]SAM_PROTO_GetShiftState [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 13 01 00 [11:24:51]Write to MH i2c: E2 08 00 0E 8E 80 13 01 00 00 00 00 00 19 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0E 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0E 00 0E 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DC [11:24:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:24:51]wFMCommunicate OK [11:24:51]SAM_PROTO_GetShiftState done [11:24:51]FM_GetShiftState done [11:24:51]req_shift_opened done [11:24:51]requested_item shift.open_date is exist - process it [11:24:51]req_shift_open_date [11:24:51]req_shift_open_date done [11:24:51]produce_requested_data done [11:24:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191375,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:24:51]process_action_free close_receipt [11:24:51]json_value_free [11:24:51]json_value_free done [11:24:51]process_json_proto returns [11:24:51]Send response to host [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 18 8E 00 90 00 1A [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]wFMCommunicate request_size=13 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 15 02 00 08 F4 03 04 00 12 80 1B 67 [11:24:58]Write to MH i2c: E2 10 00 19 8E 80 15 02 00 08 00 F4 03 04 00 12 80 1B 67 00 00 46 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 19 8E 00 90 00 1B [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]wFMCommunicate request_size=25 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [11:24:58]Write to MH i2c: E2 1C 00 1A 8E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 8F [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 1A 8E 00 90 00 1C [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 15 03 00 [11:24:58]Write to MH i2c: E2 08 00 1B 8E 80 15 03 00 00 00 00 00 2A [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 40 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 40 00 1B 8E 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 00 00 00 35 04 06 00 35 CC 72 A7 FA B4 90 00 F6 [11:24:58]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 00 00 00 35 04 06 00 35 CC 72 A7 FA B4 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_ProcessDocument answer len = 59 [11:24:58]SAM_PROTO_ProcessDocument done [11:24:58]SetTLVBufToDocument [11:24:58]Processing tag 1209 (04B9) [11:24:58]Malloc new data [11:24:58]Processing tag 1041 (0411) [11:24:58]Processing tag 1040 (0410) [11:24:58]Malloc new data [11:24:58]Processing tag 1038 (040E) [11:24:58]Malloc new data [11:24:58]Processing tag 1042 (0412) [11:24:58]Malloc new data [11:24:58]Processing tag 1077 (0435) [11:24:58]Malloc new data [11:24:58]SetTLVBufToDocument err=0 [11:24:58]KKMLoadAndSignReceiptData store KKM data [11:24:58]KKMLoadAndSignReceiptData err=0 [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 11 00 00 [11:24:58]Write to MH i2c: E2 08 00 1C 8E 80 11 00 00 00 00 00 00 24 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 17 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 17 00 1C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [11:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:58]wFMCommunicate OK [11:24:58]Счет N : (1)30669 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-5 5.980 * 66.90 = 400.06 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 115 25.10.2024 11:25 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191376 ФПД: 59152213211828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191376&fm=59152213211828&tin=02508201610067®Number=0000000000091776&sum=40000 [11:24:58]StoreToDocumentArchive [11:24:58]shift 540 fd 191376 [11:24:58]save to /storage/0540/doc_00191376 [11:24:58]save last doc name /storage/0540/doc_00191376 to /storage/kkm_last_doc_name [11:24:58]save OK [11:24:58]Clear old archive folders... [11:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:58]tlvbuf is 0178CCD0 [11:24:58]SAM_PROTO_ClearQueue [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 09 00 00 [11:24:58]Write to MH i2c: E2 08 00 1D 8E 80 09 00 00 00 00 00 00 1D [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 1D 8E 00 90 00 1F [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_ClearQueue done [11:24:58]KKMCreateOFDPacket [11:24:58]OFDProtocolAddRootSTLVToBuf [11:24:58]FM_MakeSignedData [11:24:58]FM_MakeSignedData [11:24:58]SAM_PROTO_SignData [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 0D 01 02 [11:24:58]Write to MH i2c: E2 08 00 1E 8E 80 0D 01 02 00 00 00 00 25 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 1E 8E 00 90 00 20 [11:24:58]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=255 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 35 04 06 00 35 [11:24:59]Write to MH i2c: E2 02 01 1F 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 35 04 06 00 35 00 00 DF [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 1F 8E 00 90 00 21 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=10 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 02 02 05 CC 72 A7 FA B4 [11:24:59]Write to MH i2c: E2 0D 00 20 8E 80 0D 02 02 05 00 CC 72 A7 FA B4 00 00 C5 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 20 8E 00 90 00 22 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 03 02 [11:24:59]Write to MH i2c: E2 08 00 21 8E 80 0D 03 02 00 00 00 00 2A [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 21 8E 00 A9 64 C9 79 A1 21 01 27 90 00 64 [11:24:59]RAPDU: A9 64 C9 79 A1 21 01 27 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_SignData done [11:24:59]FM_MakeSignedData done [11:24:59]CreateOFDProtocolMessage [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 11 00 00 [11:24:59]Write to MH i2c: E2 08 00 22 8E 80 11 00 00 00 00 00 00 2A [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 22 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [11:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:59]wFMCommunicate OK [11:24:59]CreateOFDProtocolMessage done [11:24:59]OFDSenderStorePacket 191376 [11:24:59]StoreOFDPacket docnum=191376 [11:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 20 07 01 1C 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 35 04 06 00 35 CC 72 A7 FA B4 A9 64 C9 79 A1 21 01 27 [11:24:59]CheckFolder [11:24:59]dirname=/storage/ofd_packets [11:24:59]CheckFolder done [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00191376 [11:24:59]NVStorageSaveData ofd_packets/00191376 [11:24:59]File name is /storage/ofd_packets/00191376 [11:24:59]Write 301 bytes [11:24:59]NVStorageSaveData done [11:24:59]OFDSenderStorePacket done [11:24:59]KKMCreateOFDPacket done [11:24:59]NVStorageSaveData kkm_last_timestamp [11:24:59]File name is /storage/kkm_last_timestamp [11:24:59]Write 4 bytes [11:24:59]NVStorageSaveData done [11:24:59]ExternCall_PrintAddStr [11:24:59]wPrintStart [11:24:59]Write to MH i2c: 01 00 00 23 8E B1 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 23 8E 00 00 00 00 00 FF 0F C6 [11:24:59]RasterBufferAndPrint [11:24:59]line Счет N : (1)30669 [11:24:59]line ИНН: 02508201610067 [11:24:59]line Контрольно-Кассовый Чек [11:24:59]line ПРОДАЖА [11:24:59]line ТРК (МРК, ГНК) : 12 [11:24:59]line Товар: 2710124130 [11:24:59]line Аи-92-К-5 [11:24:59]line 5.980 * 66.90 [11:24:59]line = 400.06 [11:24:59]line НДС 12% НСП 1% [11:24:59]line > о реализуемом товаре [11:24:59]line ОКРУГЛЕНИЕ: -0.06 [11:24:59]line ИТОГО: 400.00 [11:24:59]line Внесено: 400.00 [11:24:59]line СДАЧА: 0.00 [11:24:59]line НСП 1% : 3.54 [11:24:59]line НДС 12% : 42.48 [11:24:59]line Наличными: 400.00 [11:24:59]line Безнал.: 0.00 [11:24:59]line Место: АЗС № 170 "Партнер Нефть" [11:24:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:24:59]line СНО: Общий режим [11:24:59]line Чек 115 25.10.2024 11:25 [11:24:59]line Смена: 540 ФФД: 1.0 [11:24:59]line ЗНМ: 0300000110 [11:24:59]line РНМ: 0000000000091776 [11:24:59]line Версия ККМ: 001 [11:24:59]line ФМ: 0000000000871754 [11:24:59]line ФД: 191376 [11:24:59]line ФПД: 59152213211828 [11:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191376&fm=59152213211828&tin=02508201610067®Number=0000000000091776&sum=40000 [11:24:59]OFD Sender: Processing packet 191376 [packets to send 75, broken 74] [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00191376 [11:24:59]OFD Sender: To server: pG, [11:24:59]CommunicateWithHost lk.salyk.kg:30040 [11:24:59]ConnectInit lk.salyk.kg [11:24:59]written 0, free lines is 4095 [11:24:59]Connected sock=11 [11:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 20 07 01 1C 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 35 04 06 00 35 CC 72 A7 FA B4 A9 64 C9 79 A1 21 01 27 [11:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6F FD 47 00 7A 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EB 02 00 F4 03 04 00 E1 24 1B 67 B6 04 01 00 00 61 CA A5 02 B2 33 49 C0 [11:25:00]CommunicateWithHost err = 0 [11:25:00]CheckOFDResponse [11:25:00]1017 (14) - 77093643461234 [11:25:00]1041 (16) - 0000000000871754 [11:25:00]1040 (4) - 191376 [11:25:00]1012 (4) - 25.10.2024 04:56 [11:25:00]1206 (1) - 0 [11:25:00]OFD Sender: Remove packet 191376 [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00191376 [11:25:00]NVStorageDeleteData [11:25:00]Write to MH i2c: 01 00 00 4E 8E DC [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 4E 8E 00 00 00 00 00 B2 0C A1 [11:25:00]RasterBufferAndPrint [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]written 0, free lines is 3269 [11:25:00]MH_Cut [11:25:00]Write to MH i2c: D1 01 00 55 8E 01 B5 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 55 8E 00 B4 [11:25:00]Write to MH i2c: 01 00 00 56 8E E4 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]OFD Sender: No OFD packet to send [11:25:01]*** Cut start [11:25:01]*** Partial cut [11:25:01]*** CUTSNS_PIN = 1 [11:25:01]*** CUTSNS_PIN = 0 [11:25:01]*** Brake cut motor [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]*** Stop cut motor [11:25:01]*** Cut end [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 56 8E 00 00 00 00 00 FF 0F F9 [11:25:01]process_action close_receipt done [11:25:01]requested_data is exist [11:25:01]produce_requested_data [11:25:01]requested_item fm.sn is exist - process it [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 11 00 00 [11:25:01]Write to MH i2c: E2 08 00 57 8E 80 11 00 00 00 00 00 00 5F [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 17 00 57 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [11:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:25:01]wFMCommunicate OK [11:25:01]requested_item fd.num is exist - process it [11:25:01]SAM_PROTO_GetFieldsCounters [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 13 00 00 [11:25:01]Write to MH i2c: E2 08 00 58 8E 80 13 00 00 00 00 00 00 62 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 58 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetFieldsCounters done [11:25:02]requested_item shift.num is exist - process it [11:25:02]requested_item shift.opened is exist - process it [11:25:02]req_shift_opened [11:25:02]FM_GetShiftState [11:25:02]SAM_PROTO_GetShiftState [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 01 00 [11:25:02]Write to MH i2c: E2 08 00 59 8E 80 13 01 00 00 00 00 00 64 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 59 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 27 [11:25:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetShiftState done [11:25:02]FM_GetShiftState done [11:25:02]req_shift_opened done [11:25:02]requested_item shift.open_date is exist - process it [11:25:02]req_shift_open_date [11:25:02]req_shift_open_date done [11:25:02]produce_requested_data done [11:25:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191376,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:25:02]process_action_free close_receipt [11:25:02]json_value_free [11:25:02]json_value_free done [11:25:02]process_json_proto returns [11:25:02]Send response to host [11:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191376,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:25:02]free response buf [11:25:02]execute_script done [11:25:02]execute_script returns [11:25:02]free content buf [11:25:02]Sock 10.Close socket [11:25:02]Sock 10.Thread stoped [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:06]accept exits with 8 [11:27:06]New connection [11:27:06]New thread 3066817892 created [11:27:06]Thread 3066961252 joined [11:27:06]Waiting for new connection... [11:27:06] Sock 8.Parse request [11:27:06]Sock 8.Check first char [11:27:06]Sock 8.First char is OK [11:27:06]request: POST /json_proto HTTP/1.0 [11:27:06]Method: POST [11:27:06]URL: /json_proto [11:27:06]Method is POST - this is cgi request [11:27:06]url: /json_proto [11:27:06]query_string will be loaded in cgi processing [11:27:06]execute_cgi json_proto POST (null) [11:27:06]execute_cgi path=json_proto method=POST [11:27:06]POST find Content-Length [11:27:06]Host: 172.17.63.131:8080 [11:27:06]Content-Length: 678 [11:27:06]Content-Type: application/json [11:27:06] [11:27:06]POST finish read [11:27:06]Found Content-Length = 678 [11:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:27:06]execute_script... [11:27: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)30671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:27:06]POST & json_proto [11:27:06]process_json_proto [11:27:06]json parsed OK: [11:27:06]protocol is kg_v1.0 [11:27:06]action value=close_receipt [11:27:06]process_action close_receipt [11:27:06]cmd_close_receipt [11:27:06]MH_GetDate [11:27:06]Write to MH i2c: F0 00 00 5A 8E D7 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: F0 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: F0 09 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: F0 09 00 5A 8E 00 92 80 1B 67 22 05 6E 64 6D [11:27:06]GetLastDocTimeStamp 1729855506 [11:27:06]current date 1729855634 [11:27:06]FM_GetShiftState [11:27:06]SAM_PROTO_GetShiftState [11:27:06]wFMCommunicate request_size=4 [11:27:06]MH_SAM_APDU [11:27:06]CAPDU: 80 13 01 00 [11:27:06]Write to MH i2c: E2 08 00 5B 8E 80 13 01 00 00 00 00 00 66 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:06]Read from MH i2c: E2 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 0E 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: E2 0E 00 5B 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 29 [11:27:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:27:06]wFMCommunicate OK [11:27:06]SAM_PROTO_GetShiftState done [11:27:06]FM_GetShiftState done [11:27:06]opened in 1729816399 [11:27:06]opened+sec_in_day 1729902799 [11:27:06]quantity*price = 180060 [11:27:06]sum+1 = 180062 [11:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 116 25.10.2024 11:27 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191377 ФПД: 5293439544131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112715&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191377&fm=5293439544131&tin=02508201610067®Number=0000000000091776&sum=180000 [11:27:07]StoreToDocumentArchive [11:27:07]shift 540 fd 191377 [11:27:07]save to /storage/0540/doc_00191377 [11:27:07]save last doc name /storage/0540/doc_00191377 to /storage/kkm_last_doc_name [11:27:07]save OK [11:27:07]Clear old archive folders... [11:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:07]tlvbuf is 016EB0F0 [11:27:07]SAM_PROTO_ClearQueue [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 09 00 00 [11:27:07]Write to MH i2c: E2 08 00 68 8E 80 09 00 00 00 00 00 00 68 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 68 8E 00 90 00 6A [11:27:07]RAPDU: 90 00 [11:27:07]wFMCommunicate OK [11:27:07]SAM_PROTO_ClearQueue done [11:27:07]KKMCreateOFDPacket [11:27:07]OFDProtocolAddRootSTLVToBuf [11:27:07]FM_MakeSignedData [11:27:07]FM_MakeSignedData [11:27:07]SAM_PROTO_SignData [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 0D 01 02 [11:27:07]Write to MH i2c: E2 08 00 69 8E 80 0D 01 02 00 00 00 00 70 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 69 8E 00 90 00 6B [11:27:07]RAPDU: 90 00 [11:27:07]wFMCommunicate OK [11:27:07]wFMCommunicate request_size=255 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 93 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EB 02 00 35 04 06 00 04 D0 79 95 [11:27:07]Write to MH i2c: E2 02 01 6A 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 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 74 00 00 00 F4 03 04 00 93 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EB 02 00 35 04 06 00 04 D0 79 95 00 00 FE [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 6A 8E 00 90 00 6C [11:27:07]RAPDU: 90 00 [11:27:07]wFMCommunicate OK [11:27:07]wFMCommunicate request_size=7 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 0D 02 02 02 6B 43 [11:27:07]Write to MH i2c: E2 0A 00 6B 8E 80 0D 02 02 02 00 6B 43 00 00 25 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:07]Read from MH i2c: E2 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 [11:27:07]MH_I2C_Read... [11:27:07]Read from MH i2c: E2 03 00 6B 8E 00 90 00 6D [11:27:07]RAPDU: 90 00 [11:27:07]wFMCommunicate OK [11:27:07]wFMCommunicate request_size=4 [11:27:07]MH_SAM_APDU [11:27:07]CAPDU: 80 0D 03 02 [11:27:07]Write to MH i2c: E2 08 00 6C 8E 80 0D 03 02 00 00 00 00 75 [11:27:07]Write i2c OK [11:27:07]MH_I2C_Read... [11:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:08]Read from MH i2c: E2 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 0B 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 0B 00 6C 8E 00 6B A9 1A 24 1D F0 A5 EC 90 00 66 [11:27:08]RAPDU: 6B A9 1A 24 1D F0 A5 EC 90 00 [11:27:08]wFMCommunicate OK [11:27:08]SAM_PROTO_SignData done [11:27:08]FM_MakeSignedData done [11:27:08]CreateOFDProtocolMessage [11:27:08]wFMCommunicate request_size=4 [11:27:08]MH_SAM_APDU [11:27:08]CAPDU: 80 11 00 00 [11:27:08]Write to MH i2c: E2 08 00 6D 8E 80 11 00 00 00 00 00 00 75 [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:08]Read from MH i2c: E2 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 17 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 17 00 6D 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [11:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:27:08]wFMCommunicate OK [11:27:08]CreateOFDProtocolMessage done [11:27:08]OFDSenderStorePacket 191377 [11:27:08]StoreOFDPacket docnum=191377 [11:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 6E 04 01 59 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 32 31 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 74 00 00 00 F4 03 04 00 93 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EB 02 00 35 04 06 00 04 D0 79 95 6B 43 6B A9 1A 24 1D F0 A5 EC [11:27:08]CheckFolder [11:27:08]dirname=/storage/ofd_packets [11:27:08]CheckFolder done [11:27:08]ProducePacketName [11:27:08]name=ofd_packets/00191377 [11:27:08]NVStorageSaveData ofd_packets/00191377 [11:27:08]File name is /storage/ofd_packets/00191377 [11:27:08]Write 298 bytes [11:27:08]NVStorageSaveData done [11:27:08]OFDSenderStorePacket done [11:27:08]KKMCreateOFDPacket done [11:27:08]NVStorageSaveData kkm_last_timestamp [11:27:08]File name is /storage/kkm_last_timestamp [11:27:08]Write 4 bytes [11:27:08]NVStorageSaveData done [11:27:08]ExternCall_PrintAddStr [11:27:08]wPrintStart [11:27:08]Write to MH i2c: 01 00 00 6E 8E FC [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 07 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 07 00 6E 8E 00 00 00 00 00 FF 0F 11 [11:27:08]RasterBufferAndPrint [11:27:08]line Счет N : (1)30671 [11:27:08]line ИНН: 02508201610067 [11:27:08]line Контрольно-Кассовый Чек [11:27:08]line ПРОДАЖА [11:27:08]line ТРК (МРК, ГНК) : 11 [11:27:08]line Товар: 2710194210 [11:27:08]line ДТ-К-5 [11:27:08]line 23.630 * 76.20 [11:27:08]line = 1800.61 [11:27:08]line НДС 12% НСП 1% [11:27:08]line > о реализуемом товаре [11:27:08]line ОКРУГЛЕНИЕ: -0.61 [11:27:08]line ИТОГО: 1800.00 [11:27:08]line Внесено: 1800.00 [11:27:08]line СДАЧА: 0.00 [11:27:08]line НСП 1% : 15.93 [11:27:08]line НДС 12% : 191.21 [11:27:08]line Наличными: 1800.00 [11:27:08]line Безнал.: 0.00 [11:27:08]line Место: АЗС № 170 "Партнер Нефть" [11:27:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:27:08]line СНО: Общий режим [11:27:08]line Чек 116 25.10.2024 11:27 [11:27:08]line Смена: 540 ФФД: 1.0 [11:27:08]line ЗНМ: 0300000110 [11:27:08]line РНМ: 0000000000091776 [11:27:08]line Версия ККМ: 001 [11:27:08]line ФМ: 0000000000871754 [11:27:08]line ФД: 191377 [11:27:08]line ФПД: 5293439544131 [11:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112715&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191377&fm=5293439544131&tin=02508201610067®Number=0000000000091776&sum=180000 [11:27:08]OFD Sender: Processing packet 191377 [packets to send 75, broken 74] [11:27:08]ProducePacketName [11:27:08]name=ofd_packets/00191377 [11:27:08]OFD Sender: To server: pG, [11:27:08]CommunicateWithHost lk.salyk.kg:30040 [11:27:08]ConnectInit lk.salyk.kg [11:27:08]written 0, free lines is 4095 [11:27:08]Connected sock=11 [11:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 6E 04 01 59 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 32 31 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 74 00 00 00 F4 03 04 00 93 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EB 02 00 35 04 06 00 04 D0 79 95 6B 43 6B A9 1A 24 1D F0 A5 EC [11:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 9C 47 00 47 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EB 02 00 F4 03 04 00 61 25 1B 67 B6 04 01 00 00 69 9E E6 AC 7A 7B DE 6F [11:27:08]CommunicateWithHost err = 0 [11:27:08]CheckOFDResponse [11:27:08]1017 (14) - 77093643461234 [11:27:08]1041 (16) - 0000000000871754 [11:27:08]1040 (4) - 191377 [11:27:08]1012 (4) - 25.10.2024 04:58 [11:27:08]1206 (1) - 0 [11:27:08]OFD Sender: Remove packet 191377 [11:27:08]ProducePacketName [11:27:08]name=ofd_packets/00191377 [11:27:08]NVStorageDeleteData [11:27:08]Write to MH i2c: 01 00 00 99 8E 27 [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 07 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 07 00 99 8E 00 00 00 00 00 D2 0C 0C [11:27:08]RasterBufferAndPrint [11:27:08]line [11:27:08]line [11:27:08]line [11:27:08]line [11:27:08]line [11:27:08]written 0, free lines is 3296 [11:27:08]MH_Cut [11:27:08]Write to MH i2c: D1 01 00 A0 8E 01 00 [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: D1 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: D1 01 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: D1 01 00 A0 8E 00 FF [11:27:08]Write to MH i2c: 01 00 00 A1 8E 2F [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:09]OFD Sender: No OFD packet to send [11:27:09]*** Cut start [11:27:09]*** Partial cut [11:27:09]*** CUTSNS_PIN = 1 [11:27:09]*** CUTSNS_PIN = 0 [11:27:09]*** Brake cut motor [11:27:10]Read from MH i2c: 01 [11:27:10]MH_I2C_Read... [11:27:10]*** Stop cut motor [11:27:10]*** Cut end [11:27:10]Read from MH i2c: 01 07 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: 01 07 00 A1 8E 00 00 00 00 00 FF 0F 44 [11:27:10]process_action close_receipt done [11:27:10]requested_data is exist [11:27:10]produce_requested_data [11:27:10]requested_item fm.sn is exist - process it [11:27:10]wFMCommunicate request_size=4 [11:27:10]MH_SAM_APDU [11:27:10]CAPDU: 80 11 00 00 [11:27:10]Write to MH i2c: E2 08 00 A2 8E 80 11 00 00 00 00 00 00 AA [11:27:10]Write i2c OK [11:27:10]MH_I2C_Read... [11:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:10]Read from MH i2c: E2 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 17 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 17 00 A2 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [11:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:27:10]wFMCommunicate OK [11:27:10]requested_item fd.num is exist - process it [11:27:10]SAM_PROTO_GetFieldsCounters [11:27:10]wFMCommunicate request_size=4 [11:27:10]MH_SAM_APDU [11:27:10]CAPDU: 80 13 00 00 [11:27:10]Write to MH i2c: E2 08 00 A3 8E 80 13 00 00 00 00 00 00 AD [11:27:10]Write i2c OK [11:27:10]MH_I2C_Read... [11:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:10]Read from MH i2c: E2 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 62 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 62 00 A3 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [11:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:10]wFMCommunicate OK [11:27:10]SAM_PROTO_GetFieldsCounters done [11:27:10]requested_item shift.num is exist - process it [11:27:10]requested_item shift.opened is exist - process it [11:27:10]req_shift_opened [11:27:10]FM_GetShiftState [11:27:10]SAM_PROTO_GetShiftState [11:27:10]wFMCommunicate request_size=4 [11:27:10]MH_SAM_APDU [11:27:10]CAPDU: 80 13 01 00 [11:27:10]Write to MH i2c: E2 08 00 A4 8E 80 13 01 00 00 00 00 00 AF [11:27:10]Write i2c OK [11:27:10]MH_I2C_Read... [11:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:10]Read from MH i2c: E2 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 0E 00 [11:27:10]MH_I2C_Read... [11:27:10]Read from MH i2c: E2 0E 00 A4 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 72 [11:27:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:27:10]wFMCommunicate OK [11:27:10]SAM_PROTO_GetShiftState done [11:27:10]FM_GetShiftState done [11:27:10]req_shift_opened done [11:27:10]requested_item shift.open_date is exist - process it [11:27:10]req_shift_open_date [11:27:10]req_shift_open_date done [11:27:10]produce_requested_data done [11:27:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191377,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:27:10]process_action_free close_receipt [11:27:10]json_value_free [11:27:10]json_value_free done [11:27:10]process_json_proto returns [11:27:10]Send response to host [11:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191377,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:27:10]free response buf [11:27:10]execute_script done [11:27:10]execute_script returns [11:27:10]free content buf [11:27:10]Sock 8.Close socket [11:27:10]Sock 8.Thread stoped [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:11]ConnectInit Can't connect to host [11:28:14]OFD Sender: No OFD packet to send [11:28:14]accept exits with 10 [11:28:14]New connection [11:28:14]New thread 3066961252 created [11:28:14]Thread 3066817892 joined [11:28:14]Waiting for new connection... [11:28:14] Sock 10.Parse request [11:28:14]Sock 10.Check first char [11:28:14]Sock 10.First char is OK [11:28:14]request: POST /json_proto HTTP/1.0 [11:28:14]Method: POST [11:28:14]URL: /json_proto [11:28:14]Method is POST - this is cgi request [11:28:14]url: /json_proto [11:28:14]query_string will be loaded in cgi processing [11:28:14]execute_cgi json_proto POST (null) [11:28:14]execute_cgi path=json_proto method=POST [11:28:14]POST find Content-Length [11:28:14]Host: 172.17.63.131:8080 [11:28:14]Content-Length: 678 [11:28:14]Content-Type: application/json [11:28:14] [11:28:14]POST finish read [11:28:14]Found Content-Length = 678 [11:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:14]execute_script... [11:28:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:14]POST & json_proto [11:28:14]process_json_proto [11:28:14]json parsed OK: [11:28:14]protocol is kg_v1.0 [11:28:14]action value=close_receipt [11:28:14]process_action close_receipt [11:28:14]cmd_close_receipt [11:28:14]MH_GetDate [11:28:14]Write to MH i2c: F0 00 00 A5 8E 22 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 09 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 09 00 A5 8E 00 D7 80 1B 67 22 05 6E 64 FD [11:28:14]GetLastDocTimeStamp 1729855635 [11:28:14]current date 1729855703 [11:28:14]FM_GetShiftState [11:28:14]SAM_PROTO_GetShiftState [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 13 01 00 [11:28:14]Write to MH i2c: E2 08 00 A6 8E 80 13 01 00 00 00 00 00 B1 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 A6 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 74 [11:28:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetShiftState done [11:28:15]FM_GetShiftState done [11:28:15]opened in 1729816399 [11:28:15]opened+sec_in_day 1729902799 [11:28:15]quantity*price = 300075 [11:28:15]sum+1 = 300077 [11:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 117 25.10.2024 11:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191378 ФПД: 279530049723320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112823&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191378&fm=279530049723320&tin=02508201610067®Number=0000000000091776&sum=300000 [11:28:16]StoreToDocumentArchive [11:28:16]shift 540 fd 191378 [11:28:16]save to /storage/0540/doc_00191378 [11:28:16]save last doc name /storage/0540/doc_00191378 to /storage/kkm_last_doc_name [11:28:16]save OK [11:28:16]Clear old archive folders... [11:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:16]tlvbuf is 018017A0 [11:28:16]SAM_PROTO_ClearQueue [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 09 00 00 [11:28:16]Write to MH i2c: E2 08 00 B3 8E 80 09 00 00 00 00 00 00 B3 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 B3 8E 00 90 00 B5 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_ClearQueue done [11:28:16]KKMCreateOFDPacket [11:28:16]OFDProtocolAddRootSTLVToBuf [11:28:16]FM_MakeSignedData [11:28:16]FM_MakeSignedData [11:28:16]SAM_PROTO_SignData [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 01 02 [11:28:16]Write to MH i2c: E2 08 00 B4 8E 80 0D 01 02 00 00 00 00 BB [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 B4 8E 00 90 00 B6 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=255 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D7 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EB 02 00 35 04 06 00 FE 3B 29 51 [11:28:16]Write to MH i2c: E2 02 01 B5 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D7 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EB 02 00 35 04 06 00 FE 3B 29 51 00 00 1A [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 B5 8E 00 90 00 B7 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=7 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 02 02 02 5B B8 [11:28:16]Write to MH i2c: E2 0A 00 B6 8E 80 0D 02 02 02 00 5B B8 00 00 D5 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 B6 8E 00 90 00 B8 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 03 02 [11:28:16]Write to MH i2c: E2 08 00 B7 8E 80 0D 03 02 00 00 00 00 C0 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0B 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0B 00 B7 8E 00 CD 41 E6 4A 0A 78 A6 CC 90 00 F3 [11:28:16]RAPDU: CD 41 E6 4A 0A 78 A6 CC 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_SignData done [11:28:16]FM_MakeSignedData done [11:28:16]CreateOFDProtocolMessage [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 B8 8E 80 11 00 00 00 00 00 00 C0 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 B8 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:16]wFMCommunicate OK [11:28:16]CreateOFDProtocolMessage done [11:28:16]OFDSenderStorePacket 191378 [11:28:16]StoreOFDPacket docnum=191378 [11:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AF 37 04 01 A0 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D7 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EB 02 00 35 04 06 00 FE 3B 29 51 5B B8 CD 41 E6 4A 0A 78 A6 CC [11:28:16]CheckFolder [11:28:16]dirname=/storage/ofd_packets [11:28:16]CheckFolder done [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00191378 [11:28:16]NVStorageSaveData ofd_packets/00191378 [11:28:16]File name is /storage/ofd_packets/00191378 [11:28:16]Write 298 bytes [11:28:16]NVStorageSaveData done [11:28:16]OFDSenderStorePacket done [11:28:16]KKMCreateOFDPacket done [11:28:16]NVStorageSaveData kkm_last_timestamp [11:28:16]File name is /storage/kkm_last_timestamp [11:28:16]Write 4 bytes [11:28:17]NVStorageSaveData done [11:28:17]ExternCall_PrintAddStr [11:28:17]wPrintStart [11:28:17]Write to MH i2c: 01 00 00 B9 8E 47 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 [11:28:17]MH_I2C_Read... [11:28:17]OFD Sender: Processing packet 191378 [packets to send 75, broken 74] [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00191378 [11:28:17]OFD Sender: To server: pG, [11:28:17]CommunicateWithHost lk.salyk.kg:30040 [11:28:17]ConnectInit lk.salyk.kg [11:28:17]Read from MH i2c: 01 07 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 B9 8E 00 00 00 00 00 FF 0F 5C [11:28:17]RasterBufferAndPrint [11:28:17]line Счет N : (1)30672 [11:28:17]line ИНН: 02508201610067 [11:28:17]line Контрольно-Кассовый Чек [11:28:17]line ПРОДАЖА [11:28:17]line ТРК (МРК, ГНК) : 22 [11:28:17]line Товар: 2710194210 [11:28:17]line ДТ-К-5 [11:28:17]line 39.380 * 76.20 [11:28:17]line = 3000.76 [11:28:17]line НДС 12% НСП 1% [11:28:17]line > о реализуемом товаре [11:28:17]line ОКРУГЛЕНИЕ: -0.76 [11:28:17]line ИТОГО: 3000.00 [11:28:17]line Внесено: 3000.00 [11:28:17]line СДАЧА: 0.00 [11:28:17]line НСП 1% : 26.55 [11:28:17]line НДС 12% : 318.66 [11:28:17]line Наличными: 3000.00 [11:28:17]line Безнал.: 0.00 [11:28:17]line Место: АЗС № 170 "Партнер Нефть" [11:28:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:17]line СНО: Общий режим [11:28:17]line Чек 117 25.10.2024 11:28 [11:28:17]line Смена: 540 ФФД: 1.0 [11:28:17]line ЗНМ: 0300000110 [11:28:17]line РНМ: 0000000000091776 [11:28:17]line Версия ККМ: 001 [11:28:17]line ФМ: 0000000000871754 [11:28:17]line ФД: 191378 [11:28:17]line ФПД: 279530049723320 [11:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112823&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191378&fm=279530049723320&tin=02508201610067®Number=0000000000091776&sum=300000 [11:28:17]written 0, free lines is 4095 [11:28:17]Connected sock=11 [11:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AF 37 04 01 A0 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D7 80 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EB 02 00 35 04 06 00 FE 3B 29 51 5B B8 CD 41 E6 4A 0A 78 A6 CC [11:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 8A 47 00 FD 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EB 02 00 F4 03 04 00 A6 25 1B 67 B6 04 01 00 00 72 DB B7 96 7F B7 45 0B [11:28:17]CommunicateWithHost err = 0 [11:28:17]CheckOFDResponse [11:28:17]1017 (14) - 77093643461234 [11:28:17]1041 (16) - 0000000000871754 [11:28:17]1040 (4) - 191378 [11:28:17]1012 (4) - 25.10.2024 04:59 [11:28:17]1206 (1) - 0 [11:28:17]OFD Sender: Remove packet 191378 [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00191378 [11:28:17]NVStorageDeleteData [11:28:17]Write to MH i2c: 01 00 00 E4 8E 72 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 E4 8E 00 00 00 00 00 CF 0C 54 [11:28:17]RasterBufferAndPrint [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]written 0, free lines is 3300 [11:28:17]MH_Cut [11:28:17]Write to MH i2c: D1 01 00 EB 8E 01 4B [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 EB 8E 00 4A [11:28:17]Write to MH i2c: 01 00 00 EC 8E 7A [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]OFD Sender: No OFD packet to send [11:28:18]*** Cut start [11:28:18]*** Partial cut [11:28:18]*** CUTSNS_PIN = 1 [11:28:18]*** CUTSNS_PIN = 0 [11:28:18]*** Brake cut motor [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]*** Stop cut motor [11:28:18]*** Cut end [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:19]Read from MH i2c: 01 07 00 EC 8E 00 00 00 00 00 FF 0F 8F [11:28:19]process_action close_receipt done [11:28:19]requested_data is exist [11:28:19]produce_requested_data [11:28:19]requested_item fm.sn is exist - process it [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 11 00 00 [11:28:19]Write to MH i2c: E2 08 00 ED 8E 80 11 00 00 00 00 00 00 F5 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 17 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 17 00 ED 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [11:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:19]wFMCommunicate OK [11:28:19]requested_item fd.num is exist - process it [11:28:19]SAM_PROTO_GetFieldsCounters [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 13 00 00 [11:28:19]Write to MH i2c: E2 08 00 EE 8E 80 13 00 00 00 00 00 00 F8 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 EE 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetFieldsCounters done [11:28:19]requested_item shift.num is exist - process it [11:28:19]requested_item shift.opened is exist - process it [11:28:19]req_shift_opened [11:28:19]FM_GetShiftState [11:28:19]SAM_PROTO_GetShiftState [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 13 01 00 [11:28:19]Write to MH i2c: E2 08 00 EF 8E 80 13 01 00 00 00 00 00 FA [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 EF 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BD [11:28:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetShiftState done [11:28:19]FM_GetShiftState done [11:28:19]req_shift_opened done [11:28:19]requested_item shift.open_date is exist - process it [11:28:19]req_shift_open_date [11:28:19]req_shift_open_date done [11:28:19]produce_requested_data done [11:28:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191378,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:28:19]process_action_free close_receipt [11:28:19]json_value_free [11:28:19]json_value_free done [11:28:19]process_json_proto returns [11:28:19]Send response to host [11:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191378,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:28:19]free response buf [11:28:19]execute_script done [11:28:19]execute_script returns [11:28:19]free content buf [11:28:19]Sock 10.Close socket [11:28:19]Sock 10.Thread stoped [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:16]accept exits with 8 [11:32:16]New connection [11:32:16]New thread 3066817892 created [11:32:16]Thread 3066961252 joined [11:32:16]Waiting for new connection... [11:32:16] Sock 8.Parse request [11:32:16]Sock 8.Check first char [11:32:16]Sock 8.First char is OK [11:32:16]request: POST /json_proto HTTP/1.0 [11:32:16]Method: POST [11:32:16]URL: /json_proto [11:32:16]Method is POST - this is cgi request [11:32:16]url: /json_proto [11:32:16]query_string will be loaded in cgi processing [11:32:16]execute_cgi json_proto POST (null) [11:32:16]execute_cgi path=json_proto method=POST [11:32:16]POST find Content-Length [11:32:16]Host: 172.17.63.131:8080 [11:32:16]Content-Length: 676 [11:32:16]Content-Type: application/json [11:32:16] [11:32:16]POST finish read [11:32:16]Found Content-Length = 676 [11:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:16]execute_script... [11:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:16]POST & json_proto [11:32:16]process_json_proto [11:32:16]json parsed OK: [11:32:16]protocol is kg_v1.0 [11:32:16]action value=close_receipt [11:32:16]process_action close_receipt [11:32:16]cmd_close_receipt [11:32:16]MH_GetDate [11:32:16]Write to MH i2c: F0 00 00 F0 8E 6D [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 09 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: F0 09 00 F0 8E 00 C9 81 1B 67 22 05 6E 64 3B [11:32:16]GetLastDocTimeStamp 1729855703 [11:32:16]current date 1729855945 [11:32:16]FM_GetShiftState [11:32:16]SAM_PROTO_GetShiftState [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 13 01 00 [11:32:16]Write to MH i2c: E2 08 00 F1 8E 80 13 01 00 00 00 00 00 FC [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0E 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0E 00 F1 8E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [11:32:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:32:16]wFMCommunicate OK [11:32:16]SAM_PROTO_GetShiftState done [11:32:16]FM_GetShiftState done [11:32:16]opened in 1729816399 [11:32:16]opened+sec_in_day 1729902799 [11:32:16]quantity*price = 50041 [11:32:16]sum+1 = 50042 [11:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 118 25.10.2024 11:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191379 ФПД: 206176491561405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T113225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191379&fm=206176491561405&tin=02508201610067®Number=0000000000091776&sum=50000 [11:32:17]StoreToDocumentArchive [11:32:17]shift 540 fd 191379 [11:32:17]save to /storage/0540/doc_00191379 [11:32:17]save last doc name /storage/0540/doc_00191379 to /storage/kkm_last_doc_name [11:32:17]save OK [11:32:17]Clear old archive folders... [11:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:17]tlvbuf is 016D41E0 [11:32:17]SAM_PROTO_ClearQueue [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 09 00 00 [11:32:17]Write to MH i2c: E2 08 00 FE 8E 80 09 00 00 00 00 00 00 FE [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 FE 8E 00 90 00 00 [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]SAM_PROTO_ClearQueue done [11:32:17]KKMCreateOFDPacket [11:32:17]OFDProtocolAddRootSTLVToBuf [11:32:17]FM_MakeSignedData [11:32:17]FM_MakeSignedData [11:32:17]SAM_PROTO_SignData [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 01 02 [11:32:17]Write to MH i2c: E2 08 00 FF 8E 80 0D 01 02 00 00 00 00 06 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 FF 8E 00 90 00 01 [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=255 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 81 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EB 02 00 35 04 06 00 BB [11:32:17]Write to MH i2c: E2 02 01 00 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 81 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EB 02 00 35 04 06 00 BB 00 00 36 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 00 8F 00 90 00 03 [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=10 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 02 02 05 84 34 8A 61 BD [11:32:17]Write to MH i2c: E2 0D 00 01 8F 80 0D 02 02 05 00 84 34 8A 61 BD 00 00 74 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 03 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 03 00 01 8F 00 90 00 04 [11:32:18]RAPDU: 90 00 [11:32:18]wFMCommunicate OK [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 0D 03 02 [11:32:18]Write to MH i2c: E2 08 00 02 8F 80 0D 03 02 00 00 00 00 0C [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0B 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0B 00 02 8F 00 A3 61 F9 F7 A8 24 BD 42 90 00 CC [11:32:18]RAPDU: A3 61 F9 F7 A8 24 BD 42 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_SignData done [11:32:18]FM_MakeSignedData done [11:32:18]CreateOFDProtocolMessage [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 11 00 00 [11:32:18]Write to MH i2c: E2 08 00 03 8F 80 11 00 00 00 00 00 00 0C [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 03 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [11:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:18]wFMCommunicate OK [11:32:18]CreateOFDProtocolMessage done [11:32:18]OFDSenderStorePacket 191379 [11:32:18]StoreOFDPacket docnum=191379 [11:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB ED 07 01 1E AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 81 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EB 02 00 35 04 06 00 BB 84 34 8A 61 BD A3 61 F9 F7 A8 24 BD 42 [11:32:18]CheckFolder [11:32:18]dirname=/storage/ofd_packets [11:32:18]CheckFolder done [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00191379 [11:32:18]NVStorageSaveData ofd_packets/00191379 [11:32:18]File name is /storage/ofd_packets/00191379 [11:32:18]Write 301 bytes [11:32:18]NVStorageSaveData done [11:32:18]OFDSenderStorePacket done [11:32:18]KKMCreateOFDPacket done [11:32:18]NVStorageSaveData kkm_last_timestamp [11:32:18]File name is /storage/kkm_last_timestamp [11:32:18]Write 4 bytes [11:32:18]NVStorageSaveData done [11:32:18]ExternCall_PrintAddStr [11:32:18]wPrintStart [11:32:18]Write to MH i2c: 01 00 00 04 8F 93 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 04 8F 00 00 00 00 00 FF 0F A8 [11:32:18]RasterBufferAndPrint [11:32:18]line Счет N : (1)30673 [11:32:18]line ИНН: 02508201610067 [11:32:18]line Контрольно-Кассовый Чек [11:32:18]line ПРОДАЖА [11:32:18]line ТРК (МРК, ГНК) : 12 [11:32:18]line Товар: 2710124130 [11:32:18]line Аи-92-К-5 [11:32:18]line 7.480 * 66.90 [11:32:18]line = 500.41 [11:32:18]line НДС 12% НСП 1% [11:32:18]line > о реализуемом товаре [11:32:18]line ОКРУГЛЕНИЕ: -0.41 [11:32:18]line ИТОГО: 500.00 [11:32:18]line Внесено: 500.00 [11:32:18]line СДАЧА: 0.00 [11:32:18]line НСП 1% : 4.43 [11:32:18]line НДС 12% : 53.14 [11:32:18]line Наличными: 500.00 [11:32:18]line Безнал.: 0.00 [11:32:18]line Место: АЗС № 170 "Партнер Нефть" [11:32:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:32:18]line СНО: Общий режим [11:32:18]line Чек 118 25.10.2024 11:32 [11:32:18]line Смена: 540 ФФД: 1.0 [11:32:18]line ЗНМ: 0300000110 [11:32:18]line РНМ: 0000000000091776 [11:32:18]line Версия ККМ: 001 [11:32:18]line ФМ: 0000000000871754 [11:32:18]line ФД: 191379 [11:32:18]line ФПД: 206176491561405 [11:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T113225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191379&fm=206176491561405&tin=02508201610067®Number=0000000000091776&sum=50000 [11:32:18]OFD Sender: Processing packet 191379 [packets to send 75, broken 74] [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00191379 [11:32:18]OFD Sender: To server: pG, [11:32:18]CommunicateWithHost lk.salyk.kg:30040 [11:32:18]ConnectInit lk.salyk.kg [11:32:18]written 0, free lines is 4095 [11:32:18]Connected sock=11 [11:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB ED 07 01 1E AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 81 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EB 02 00 35 04 06 00 BB 84 34 8A 61 BD A3 61 F9 F7 A8 24 BD 42 [11:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 64 47 00 0F 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 31 37 35 34 10 04 04 00 93 EB 02 00 F4 03 04 00 97 26 1B 67 B6 04 01 00 00 18 4B F9 51 77 5B 7C 42 [11:32:18]CommunicateWithHost err = 0 [11:32:18]CheckOFDResponse [11:32:18]1017 (14) - 77093643461234 [11:32:18]1041 (16) - 0000000000871754 [11:32:18]1040 (4) - 191379 [11:32:18]1012 (4) - 25.10.2024 05:03 [11:32:18]1206 (1) - 0 [11:32:18]OFD Sender: Remove packet 191379 [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00191379 [11:32:18]NVStorageDeleteData [11:32:18]Write to MH i2c: 01 00 00 2F 8F BE [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 2F 8F 00 00 00 00 00 BB 0C 8C [11:32:18]RasterBufferAndPrint [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]written 0, free lines is 3269 [11:32:18]MH_Cut [11:32:18]Write to MH i2c: D1 01 00 36 8F 01 97 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 36 8F 00 96 [11:32:18]Write to MH i2c: 01 00 00 37 8F C6 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:19]OFD Sender: No OFD packet to send [11:32:19]*** Cut start [11:32:19]*** Partial cut [11:32:19]*** CUTSNS_PIN = 1 [11:32:19]*** CUTSNS_PIN = 0 [11:32:20]*** Brake cut motor [11:32:20]Read from MH i2c: 01 [11:32:20]MH_I2C_Read... [11:32:20]*** Stop cut motor [11:32:20]*** Cut end [11:32:20]Read from MH i2c: 01 07 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: 01 07 00 37 8F 00 00 00 00 00 FF 0F DB [11:32:20]process_action close_receipt done [11:32:20]requested_data is exist [11:32:20]produce_requested_data [11:32:20]requested_item fm.sn is exist - process it [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 11 00 00 [11:32:20]Write to MH i2c: E2 08 00 38 8F 80 11 00 00 00 00 00 00 41 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 17 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 17 00 38 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [11:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:20]wFMCommunicate OK [11:32:20]requested_item fd.num is exist - process it [11:32:20]SAM_PROTO_GetFieldsCounters [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 00 00 [11:32:20]Write to MH i2c: E2 08 00 39 8F 80 13 00 00 00 00 00 00 44 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 62 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 62 00 39 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [11:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetFieldsCounters done [11:32:20]requested_item shift.num is exist - process it [11:32:20]requested_item shift.opened is exist - process it [11:32:20]req_shift_opened [11:32:20]FM_GetShiftState [11:32:20]SAM_PROTO_GetShiftState [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 01 00 [11:32:20]Write to MH i2c: E2 08 00 3A 8F 80 13 01 00 00 00 00 00 46 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 3A 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 09 [11:32:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetShiftState done [11:32:20]FM_GetShiftState done [11:32:20]req_shift_opened done [11:32:20]requested_item shift.open_date is exist - process it [11:32:20]req_shift_open_date [11:32:20]req_shift_open_date done [11:32:20]produce_requested_data done [11:32:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191379,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:32:20]process_action_free close_receipt [11:32:20]json_value_free [11:32:20]json_value_free done [11:32:20]process_json_proto returns [11:32:20]Send response to host [11:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191379,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:32:20]free response buf [11:32:20]execute_script done [11:32:20]execute_script returns [11:32:20]free content buf [11:32:20]Sock 8.Close socket [11:32:20]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [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:45]accept exits with 10 [11:35:45]New connection [11:35:45]New thread 3066961252 created [11:35:45]Thread 3066817892 joined [11:35:45]Waiting for new connection... [11:35:45] Sock 10.Parse request [11:35:45]Sock 10.Check first char [11:35:45]Sock 10.First char is OK [11:35:45]request: POST /json_proto HTTP/1.0 [11:35:45]Method: POST [11:35:45]URL: /json_proto [11:35:45]Method is POST - this is cgi request [11:35:45]url: /json_proto [11:35:45]query_string will be loaded in cgi processing [11:35:45]execute_cgi json_proto POST (null) [11:35:45]execute_cgi path=json_proto method=POST [11:35:45]POST find Content-Length [11:35:45]Host: 172.17.63.131:8080 [11:35:45]Content-Length: 678 [11:35:45]Content-Type: application/json [11:35:45] [11:35:45]POST finish read [11:35:45]Found Content-Length = 678 [11:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:35:45]execute_script... [11:35: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)30674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:35:45]POST & json_proto [11:35:45]process_json_proto [11:35:45]json parsed OK: [11:35:45]protocol is kg_v1.0 [11:35:45]action value=close_receipt [11:35:45]process_action close_receipt [11:35:45]cmd_close_receipt [11:35:45]MH_GetDate [11:35:45]Write to MH i2c: F0 00 00 3B 8F B9 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: F0 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: F0 09 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: F0 09 00 3B 8F 00 9A 82 1B 67 22 05 6E 64 59 [11:35:45]GetLastDocTimeStamp 1729855945 [11:35:45]current date 1729856154 [11:35:45]FM_GetShiftState [11:35:45]SAM_PROTO_GetShiftState [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 13 01 00 [11:35:45]Write to MH i2c: E2 08 00 3C 8F 80 13 01 00 00 00 00 00 48 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 0E 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 0E 00 3C 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [11:35:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:35:45]wFMCommunicate OK [11:35:45]SAM_PROTO_GetShiftState done [11:35:45]FM_GetShiftState done [11:35:45]opened in 1729816399 [11:35:45]opened+sec_in_day 1729902799 [11:35:45]quantity*price = 140055 [11:35:45]sum+1 = 140057 [11:35:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 119 25.10.2024 11:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191380 ФПД: 221287164785540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T113554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191380&fm=221287164785540&tin=02508201610067®Number=0000000000091776&sum=140000 [11:35:46]StoreToDocumentArchive [11:35:46]shift 540 fd 191380 [11:35:46]save to /storage/0540/doc_00191380 [11:35:46]save last doc name /storage/0540/doc_00191380 to /storage/kkm_last_doc_name [11:35:46]save OK [11:35:46]Clear old archive folders... [11:35:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:46]tlvbuf is 0183C1B0 [11:35:46]SAM_PROTO_ClearQueue [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 09 00 00 [11:35:46]Write to MH i2c: E2 08 00 49 8F 80 09 00 00 00 00 00 00 4A [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 49 8F 00 90 00 4C [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_ClearQueue done [11:35:46]KKMCreateOFDPacket [11:35:46]OFDProtocolAddRootSTLVToBuf [11:35:46]FM_MakeSignedData [11:35:46]FM_MakeSignedData [11:35:46]SAM_PROTO_SignData [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 01 02 [11:35:46]Write to MH i2c: E2 08 00 4A 8F 80 0D 01 02 00 00 00 00 52 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 4A 8F 00 90 00 4D [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=255 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 9A 82 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EB 02 00 35 04 06 00 C9 42 6E D9 [11:35:46]Write to MH i2c: E2 02 01 4B 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 77 00 00 00 F4 03 04 00 9A 82 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EB 02 00 35 04 06 00 C9 42 6E D9 00 00 21 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 4B 8F 00 90 00 4E [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=7 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 02 02 02 B3 84 [11:35:46]Write to MH i2c: E2 0A 00 4C 8F 80 0D 02 02 02 00 B3 84 00 00 90 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 4C 8F 00 90 00 4F [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 03 02 [11:35:46]Write to MH i2c: E2 08 00 4D 8F 80 0D 03 02 00 00 00 00 57 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 4D 8F 00 DD F3 B0 24 C4 ED 64 FF 90 00 10 [11:35:46]RAPDU: DD F3 B0 24 C4 ED 64 FF 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_SignData done [11:35:46]FM_MakeSignedData done [11:35:46]CreateOFDProtocolMessage [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 11 00 00 [11:35:46]Write to MH i2c: E2 08 00 4E 8F 80 11 00 00 00 00 00 00 57 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 17 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 17 00 4E 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [11:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:35:47]wFMCommunicate OK [11:35:47]CreateOFDProtocolMessage done [11:35:47]OFDSenderStorePacket 191380 [11:35:47]StoreOFDPacket docnum=191380 [11:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BD 04 04 01 F5 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 77 00 00 00 F4 03 04 00 9A 82 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EB 02 00 35 04 06 00 C9 42 6E D9 B3 84 DD F3 B0 24 C4 ED 64 FF [11:35:47]CheckFolder [11:35:47]dirname=/storage/ofd_packets [11:35:47]CheckFolder done [11:35:47]ProducePacketName [11:35:47]name=ofd_packets/00191380 [11:35:47]NVStorageSaveData ofd_packets/00191380 [11:35:47]File name is /storage/ofd_packets/00191380 [11:35:47]Write 298 bytes [11:35:47]NVStorageSaveData done [11:35:47]OFDSenderStorePacket done [11:35:47]KKMCreateOFDPacket done [11:35:47]NVStorageSaveData kkm_last_timestamp [11:35:47]File name is /storage/kkm_last_timestamp [11:35:47]Write 4 bytes [11:35:47]NVStorageSaveData done [11:35:47]ExternCall_PrintAddStr [11:35:47]wPrintStart [11:35:47]Write to MH i2c: 01 00 00 4F 8F DE [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 4F 8F 00 00 00 00 00 FF 0F F3 [11:35:47]RasterBufferAndPrint [11:35:47]line Счет N : (1)30674 [11:35:47]line ИНН: 02508201610067 [11:35:47]line Контрольно-Кассовый Чек [11:35:47]line ПРОДАЖА [11:35:47]line ТРК (МРК, ГНК) : 22 [11:35:47]line Товар: 2710194210 [11:35:47]line ДТ-К-5 [11:35:47]line 18.380 * 76.20 [11:35:47]line = 1400.56 [11:35:47]line НДС 12% НСП 1% [11:35:47]line > о реализуемом товаре [11:35:47]line ОКРУГЛЕНИЕ: -0.56 [11:35:47]line ИТОГО: 1400.00 [11:35:47]line Внесено: 1400.00 [11:35:47]line СДАЧА: 0.00 [11:35:47]line НСП 1% : 12.39 [11:35:47]line НДС 12% : 148.73 [11:35:47]line Наличными: 1400.00 [11:35:47]line Безнал.: 0.00 [11:35:47]line Место: АЗС № 170 "Партнер Нефть" [11:35:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:35:47]line СНО: Общий режим [11:35:47]line Чек 119 25.10.2024 11:35 [11:35:47]line Смена: 540 ФФД: 1.0 [11:35:47]line ЗНМ: 0300000110 [11:35:47]line РНМ: 0000000000091776 [11:35:47]line Версия ККМ: 001 [11:35:47]line ФМ: 0000000000871754 [11:35:47]line ФД: 191380 [11:35:47]line ФПД: 221287164785540 [11:35:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T113554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191380&fm=221287164785540&tin=02508201610067®Number=0000000000091776&sum=140000 [11:35:47]OFD Sender: Processing packet 191380 [packets to send 75, broken 74] [11:35:47]ProducePacketName [11:35:47]name=ofd_packets/00191380 [11:35:47]OFD Sender: To server: pG, [11:35:47]CommunicateWithHost lk.salyk.kg:30040 [11:35:47]ConnectInit lk.salyk.kg [11:35:47]written 0, free lines is 4095 [11:35:47]Connected sock=9 [11:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BD 04 04 01 F5 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 77 00 00 00 F4 03 04 00 9A 82 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EB 02 00 35 04 06 00 C9 42 6E D9 B3 84 DD F3 B0 24 C4 ED 64 FF [11:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 0C 47 00 13 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EB 02 00 F4 03 04 00 68 27 1B 67 B6 04 01 00 00 88 6B 27 36 34 5F F3 D5 [11:35:47]CommunicateWithHost err = 0 [11:35:47]CheckOFDResponse [11:35:47]1017 (14) - 77093643461234 [11:35:47]1041 (16) - 0000000000871754 [11:35:47]1040 (4) - 191380 [11:35:47]1012 (4) - 25.10.2024 05:06 [11:35:47]1206 (1) - 0 [11:35:47]OFD Sender: Remove packet 191380 [11:35:47]ProducePacketName [11:35:47]name=ofd_packets/00191380 [11:35:47]NVStorageDeleteData [11:35:47]Write to MH i2c: 01 00 00 7A 8F 09 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: 01 07 00 7A 8F 00 00 00 00 00 C8 0C E4 [11:35:47]RasterBufferAndPrint [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]line [11:35:47]written 0, free lines is 3278 [11:35:47]MH_Cut [11:35:47]Write to MH i2c: D1 01 00 81 8F 01 E2 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: D1 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: D1 01 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: D1 01 00 81 8F 00 E1 [11:35:47]Write to MH i2c: 01 00 00 82 8F 11 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:48]OFD Sender: No OFD packet to send [11:35:48]*** Cut start [11:35:48]*** Partial cut [11:35:48]*** CUTSNS_PIN = 1 [11:35:48]*** CUTSNS_PIN = 0 [11:35:48]*** Brake cut motor [11:35:49]Read from MH i2c: 01 [11:35:49]MH_I2C_Read... [11:35:49]*** Stop cut motor [11:35:49]*** Cut end [11:35:49]Read from MH i2c: 01 07 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 82 8F 00 00 00 00 00 FF 0F 26 [11:35:49]process_action close_receipt done [11:35:49]requested_data is exist [11:35:49]produce_requested_data [11:35:49]requested_item fm.sn is exist - process it [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 11 00 00 [11:35:49]Write to MH i2c: E2 08 00 83 8F 80 11 00 00 00 00 00 00 8C [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 17 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 17 00 83 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [11:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:35:49]wFMCommunicate OK [11:35:49]requested_item fd.num is exist - process it [11:35:49]SAM_PROTO_GetFieldsCounters [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 13 00 00 [11:35:49]Write to MH i2c: E2 08 00 84 8F 80 13 00 00 00 00 00 00 8F [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 62 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 62 00 84 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [11:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_GetFieldsCounters done [11:35:49]requested_item shift.num is exist - process it [11:35:49]requested_item shift.opened is exist - process it [11:35:49]req_shift_opened [11:35:49]FM_GetShiftState [11:35:49]SAM_PROTO_GetShiftState [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 13 01 00 [11:35:49]Write to MH i2c: E2 08 00 85 8F 80 13 01 00 00 00 00 00 91 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 85 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 54 [11:35:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_GetShiftState done [11:35:49]FM_GetShiftState done [11:35:49]req_shift_opened done [11:35:49]requested_item shift.open_date is exist - process it [11:35:49]req_shift_open_date [11:35:49]req_shift_open_date done [11:35:49]produce_requested_data done [11:35:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191380,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:35:49]process_action_free close_receipt [11:35:49]json_value_free [11:35:49]json_value_free done [11:35:49]process_json_proto returns [11:35:49]Send response to host [11:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191380,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:35:49]free response buf [11:35:49]execute_script done [11:35:49]execute_script returns [11:35:49]free content buf [11:35:49]Sock 10.Close socket [11:35:49]Sock 10.Thread stoped [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]accept exits with 8 [11:42:33]New connection [11:42:33]New thread 3066817892 created [11:42:33]Thread 3066961252 joined [11:42:33]Waiting for new connection... [11:42:33] Sock 8.Parse request [11:42:33]Sock 8.Check first char [11:42:33]Sock 8.First char is OK [11:42:33]request: POST /json_proto HTTP/1.0 [11:42:33]Method: POST [11:42:33]URL: /json_proto [11:42:33]Method is POST - this is cgi request [11:42:33]url: /json_proto [11:42:33]query_string will be loaded in cgi processing [11:42:33]execute_cgi json_proto POST (null) [11:42:33]execute_cgi path=json_proto method=POST [11:42:33]POST find Content-Length [11:42:33]Host: 172.17.63.131:8080 [11:42:33]Content-Length: 677 [11:42:33]Content-Type: application/json [11:42:33] [11:42:33]POST finish read [11:42:33]Found Content-Length = 677 [11:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:33]execute_script... [11:42: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)30675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:33]POST & json_proto [11:42:33]process_json_proto [11:42:33]json parsed OK: [11:42:33]protocol is kg_v1.0 [11:42:33]action value=close_receipt [11:42:33]process_action close_receipt [11:42:33]cmd_close_receipt [11:42:33]MH_GetDate [11:42:33]Write to MH i2c: F0 00 00 86 8F 04 [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: F0 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: F0 09 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: F0 09 00 86 8F 00 31 84 1B 67 22 05 6E 64 3D [11:42:33]GetLastDocTimeStamp 1729856154 [11:42:33]current date 1729856561 [11:42:33]FM_GetShiftState [11:42:33]SAM_PROTO_GetShiftState [11:42:33]wFMCommunicate request_size=4 [11:42:33]MH_SAM_APDU [11:42:33]CAPDU: 80 13 01 00 [11:42:33]Write to MH i2c: E2 08 00 87 8F 80 13 01 00 00 00 00 00 93 [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:33]Read from MH i2c: E2 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 0E 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 0E 00 87 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 56 [11:42:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:42:33]wFMCommunicate OK [11:42:33]SAM_PROTO_GetShiftState done [11:42:33]FM_GetShiftState done [11:42:33]opened in 1729816399 [11:42:33]opened+sec_in_day 1729902799 [11:42:33]quantity*price = 70044 [11:42:33]sum+1 = 70045 [11:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 120 25.10.2024 11:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191381 ФПД: 110502438903329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191381&fm=110502438903329&tin=02508201610067®Number=0000000000091776&sum=70000 [11:42:34]StoreToDocumentArchive [11:42:34]shift 540 fd 191381 [11:42:34]save to /storage/0540/doc_00191381 [11:42:34]save last doc name /storage/0540/doc_00191381 to /storage/kkm_last_doc_name [11:42:34]save OK [11:42:34]Clear old archive folders... [11:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:34]tlvbuf is 016BC6D0 [11:42:34]SAM_PROTO_ClearQueue [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 09 00 00 [11:42:34]Write to MH i2c: E2 08 00 94 8F 80 09 00 00 00 00 00 00 95 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 94 8F 00 90 00 97 [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_ClearQueue done [11:42:34]KKMCreateOFDPacket [11:42:34]OFDProtocolAddRootSTLVToBuf [11:42:34]FM_MakeSignedData [11:42:34]FM_MakeSignedData [11:42:34]SAM_PROTO_SignData [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 01 02 [11:42:34]Write to MH i2c: E2 08 00 95 8F 80 0D 01 02 00 00 00 00 9D [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 95 8F 00 90 00 98 [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]wFMCommunicate request_size=255 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 31 84 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EB 02 00 35 04 06 00 64 [11:42:34]Write to MH i2c: E2 02 01 96 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 31 84 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EB 02 00 35 04 06 00 64 00 00 F4 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 96 8F 00 90 00 99 [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]wFMCommunicate request_size=10 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 02 02 05 80 5A 9E 1E 21 [11:42:34]Write to MH i2c: E2 0D 00 97 8F 80 0D 02 02 05 00 80 5A 9E 1E 21 00 00 61 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 97 8F 00 90 00 9A [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 03 02 [11:42:34]Write to MH i2c: E2 08 00 98 8F 80 0D 03 02 00 00 00 00 A2 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0B 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0B 00 98 8F 00 73 0B FA CB E1 87 00 58 90 00 A6 [11:42:34]RAPDU: 73 0B FA CB E1 87 00 58 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_SignData done [11:42:34]FM_MakeSignedData done [11:42:34]CreateOFDProtocolMessage [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 11 00 00 [11:42:34]Write to MH i2c: E2 08 00 99 8F 80 11 00 00 00 00 00 00 A2 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 99 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [11:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:34]wFMCommunicate OK [11:42:34]CreateOFDProtocolMessage done [11:42:34]OFDSenderStorePacket 191381 [11:42:34]StoreOFDPacket docnum=191381 [11:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D A5 07 01 21 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 31 84 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EB 02 00 35 04 06 00 64 80 5A 9E 1E 21 73 0B FA CB E1 87 00 58 [11:42:34]CheckFolder [11:42:34]dirname=/storage/ofd_packets [11:42:34]CheckFolder done [11:42:34]ProducePacketName [11:42:34]name=ofd_packets/00191381 [11:42:34]NVStorageSaveData ofd_packets/00191381 [11:42:34]File name is /storage/ofd_packets/00191381 [11:42:34]Write 301 bytes [11:42:34]NVStorageSaveData done [11:42:34]OFDSenderStorePacket done [11:42:34]KKMCreateOFDPacket done [11:42:34]NVStorageSaveData kkm_last_timestamp [11:42:34]File name is /storage/kkm_last_timestamp [11:42:34]Write 4 bytes [11:42:34]NVStorageSaveData done [11:42:34]ExternCall_PrintAddStr [11:42:34]wPrintStart [11:42:34]Write to MH i2c: 01 00 00 9A 8F 29 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 07 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 07 00 9A 8F 00 00 00 00 00 FF 0F 3E [11:42:34]RasterBufferAndPrint [11:42:34]line Счет N : (1)30675 [11:42:34]line ИНН: 02508201610067 [11:42:34]line Контрольно-Кассовый Чек [11:42:34]line ПРОДАЖА [11:42:34]line ТРК (МРК, ГНК) : 12 [11:42:34]line Товар: 2710124130 [11:42:34]line Аи-92-К-5 [11:42:34]line 10.470 * 66.90 [11:42:34]line = 700.44 [11:42:34]line НДС 12% НСП 1% [11:42:34]line > о реализуемом товаре [11:42:34]line ОКРУГЛЕНИЕ: -0.44 [11:42:34]line ИТОГО: 700.00 [11:42:34]line Внесено: 700.00 [11:42:34]line СДАЧА: 0.00 [11:42:34]line НСП 1% : 6.20 [11:42:34]line НДС 12% : 74.38 [11:42:34]line Наличными: 700.00 [11:42:34]line Безнал.: 0.00 [11:42:34]line Место: АЗС № 170 "Партнер Нефть" [11:42:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:42:34]line СНО: Общий режим [11:42:34]line Чек 120 25.10.2024 11:42 [11:42:34]line Смена: 540 ФФД: 1.0 [11:42:34]line ЗНМ: 0300000110 [11:42:34]line РНМ: 0000000000091776 [11:42:34]line Версия ККМ: 001 [11:42:34]line ФМ: 0000000000871754 [11:42:34]line ФД: 191381 [11:42:34]line ФПД: 110502438903329 [11:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191381&fm=110502438903329&tin=02508201610067®Number=0000000000091776&sum=70000 [11:42:35]OFD Sender: Processing packet 191381 [packets to send 75, broken 74] [11:42:35]ProducePacketName [11:42:35]name=ofd_packets/00191381 [11:42:35]OFD Sender: To server: pG, [11:42:35]CommunicateWithHost lk.salyk.kg:30040 [11:42:35]ConnectInit lk.salyk.kg [11:42:35]written 0, free lines is 4095 [11:42:35]Connected sock=10 [11:42:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D A5 07 01 21 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 31 84 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EB 02 00 35 04 06 00 64 80 5A 9E 1E 21 73 0B FA CB E1 87 00 58 [11:42:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 6F 47 00 2F 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EB 02 00 F4 03 04 00 00 29 1B 67 B6 04 01 00 00 B6 C1 EF C6 76 15 8D D3 [11:42:35]CommunicateWithHost err = 0 [11:42:35]CheckOFDResponse [11:42:35]1017 (14) - 77093643461234 [11:42:35]1041 (16) - 0000000000871754 [11:42:35]1040 (4) - 191381 [11:42:35]1012 (4) - 25.10.2024 05:13 [11:42:35]1206 (1) - 0 [11:42:35]OFD Sender: Remove packet 191381 [11:42:35]ProducePacketName [11:42:35]name=ofd_packets/00191381 [11:42:35]NVStorageDeleteData [11:42:35]Write to MH i2c: 01 00 00 C5 8F 54 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 07 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 07 00 C5 8F 00 00 00 00 00 B1 0C 18 [11:42:35]RasterBufferAndPrint [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]written 0, free lines is 3257 [11:42:35]MH_Cut [11:42:35]Write to MH i2c: D1 01 00 CC 8F 01 2D [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 01 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 01 00 CC 8F 00 2C [11:42:35]Write to MH i2c: 01 00 00 CD 8F 5C [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:36]OFD Sender: No OFD packet to send [11:42:36]*** Cut start [11:42:36]*** Partial cut [11:42:36]*** CUTSNS_PIN = 1 [11:42:36]*** CUTSNS_PIN = 0 [11:42:36]*** Brake cut motor [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]*** Stop cut motor [11:42:37]*** Cut end [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 CD 8F 00 00 00 00 00 FF 0F 71 [11:42:37]process_action close_receipt done [11:42:37]requested_data is exist [11:42:37]produce_requested_data [11:42:37]requested_item fm.sn is exist - process it [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 11 00 00 [11:42:37]Write to MH i2c: E2 08 00 CE 8F 80 11 00 00 00 00 00 00 D7 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 17 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 17 00 CE 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [11:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:37]wFMCommunicate OK [11:42:37]requested_item fd.num is exist - process it [11:42:37]SAM_PROTO_GetFieldsCounters [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 00 00 [11:42:37]Write to MH i2c: E2 08 00 CF 8F 80 13 00 00 00 00 00 00 DA [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 62 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 62 00 CF 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetFieldsCounters done [11:42:37]requested_item shift.num is exist - process it [11:42:37]requested_item shift.opened is exist - process it [11:42:37]req_shift_opened [11:42:37]FM_GetShiftState [11:42:37]SAM_PROTO_GetShiftState [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 01 00 [11:42:37]Write to MH i2c: E2 08 00 D0 8F 80 13 01 00 00 00 00 00 DC [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 D0 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9F [11:42:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetShiftState done [11:42:37]FM_GetShiftState done [11:42:37]req_shift_opened done [11:42:37]requested_item shift.open_date is exist - process it [11:42:37]req_shift_open_date [11:42:37]req_shift_open_date done [11:42:37]produce_requested_data done [11:42:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191381,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:42:37]process_action_free close_receipt [11:42:37]json_value_free [11:42:37]json_value_free done [11:42:37]process_json_proto returns [11:42:37]Send response to host [11:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191381,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:42:37]free response buf [11:42:37]execute_script done [11:42:37]execute_script returns [11:42:37]free content buf [11:42:37]Sock 8.Close socket [11:42:37]Sock 8.Thread stoped [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:29]accept exits with 9 [11:49:29]New connection [11:49:29]New thread 3066961252 created [11:49:29]Thread 3066817892 joined [11:49:29]Waiting for new connection... [11:49:29] Sock 9.Parse request [11:49:29]Sock 9.Check first char [11:49:29]Sock 9.First char is OK [11:49:29]request: POST /json_proto HTTP/1.0 [11:49:29]Method: POST [11:49:29]URL: /json_proto [11:49:29]Method is POST - this is cgi request [11:49:29]url: /json_proto [11:49:29]query_string will be loaded in cgi processing [11:49:29]execute_cgi json_proto POST (null) [11:49:29]execute_cgi path=json_proto method=POST [11:49:29]POST find Content-Length [11:49:29]Host: 172.17.63.131:8080 [11:49:29]Content-Length: 676 [11:49:29]Content-Type: application/json [11:49:29] [11:49:29]POST finish read [11:49:29]Found Content-Length = 676 [11:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]execute_script... [11:49: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)30676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]POST & json_proto [11:49:29]process_json_proto [11:49:29]json parsed OK: [11:49:29]protocol is kg_v1.0 [11:49:29]action value=close_receipt [11:49:29]process_action close_receipt [11:49:29]cmd_close_receipt [11:49:29]MH_GetDate [11:49:29]Write to MH i2c: F0 00 00 D1 8F 4F [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 D1 8F 00 D2 85 1B 67 22 05 6E 64 2A [11:49:29]GetLastDocTimeStamp 1729856561 [11:49:29]current date 1729856978 [11:49:29]FM_GetShiftState [11:49:29]SAM_PROTO_GetShiftState [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 13 01 00 [11:49:29]Write to MH i2c: E2 08 00 D2 8F 80 13 01 00 00 00 00 00 DE [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:29]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0E 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0E 00 D2 8F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A1 [11:49:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:49:30]wFMCommunicate OK [11:49:30]SAM_PROTO_GetShiftState done [11:49:30]FM_GetShiftState done [11:49:30]opened in 1729816399 [11:49:30]opened+sec_in_day 1729902799 [11:49:30]quantity*price = 50041 [11:49:30]sum+1 = 50042 [11:49:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 121 25.10.2024 11:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191382 ФПД: 182387039509724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191382&fm=182387039509724&tin=02508201610067®Number=0000000000091776&sum=50000 [11:49:31]StoreToDocumentArchive [11:49:31]shift 540 fd 191382 [11:49:31]save to /storage/0540/doc_00191382 [11:49:31]save last doc name /storage/0540/doc_00191382 to /storage/kkm_last_doc_name [11:49:31]save OK [11:49:31]Clear old archive folders... [11:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:31]tlvbuf is 0183C530 [11:49:31]SAM_PROTO_ClearQueue [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 09 00 00 [11:49:31]Write to MH i2c: E2 08 00 DF 8F 80 09 00 00 00 00 00 00 E0 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 DF 8F 00 90 00 E2 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_ClearQueue done [11:49:31]KKMCreateOFDPacket [11:49:31]OFDProtocolAddRootSTLVToBuf [11:49:31]FM_MakeSignedData [11:49:31]FM_MakeSignedData [11:49:31]SAM_PROTO_SignData [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 01 02 [11:49:31]Write to MH i2c: E2 08 00 E0 8F 80 0D 01 02 00 00 00 00 E8 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 E0 8F 00 90 00 E3 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=255 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D2 85 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EB 02 00 35 04 06 00 A5 [11:49:31]Write to MH i2c: E2 02 01 E1 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D2 85 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EB 02 00 35 04 06 00 A5 00 00 14 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]OFD Sender: No OFD packet to send [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 E1 8F 00 90 00 E4 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=10 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 02 02 05 E1 4A B3 9C DC [11:49:31]Write to MH i2c: E2 0D 00 E2 8F 80 0D 02 02 05 00 E1 4A B3 9C DC 00 00 4B [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 E2 8F 00 90 00 E5 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 03 02 [11:49:31]Write to MH i2c: E2 08 00 E3 8F 80 0D 03 02 00 00 00 00 ED [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 E3 8F 00 B0 5D D2 BF 87 7D D9 99 90 00 02 [11:49:31]RAPDU: B0 5D D2 BF 87 7D D9 99 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_SignData done [11:49:31]FM_MakeSignedData done [11:49:31]CreateOFDProtocolMessage [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 11 00 00 [11:49:31]Write to MH i2c: E2 08 00 E4 8F 80 11 00 00 00 00 00 00 ED [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 E4 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [11:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:49:31]wFMCommunicate OK [11:49:31]CreateOFDProtocolMessage done [11:49:31]OFDSenderStorePacket 191382 [11:49:31]StoreOFDPacket docnum=191382 [11:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 83 07 01 FE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D2 85 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EB 02 00 35 04 06 00 A5 E1 4A B3 9C DC B0 5D D2 BF 87 7D D9 99 [11:49:31]CheckFolder [11:49:31]dirname=/storage/ofd_packets [11:49:31]CheckFolder done [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00191382 [11:49:31]NVStorageSaveData ofd_packets/00191382 [11:49:31]File name is /storage/ofd_packets/00191382 [11:49:31]Write 301 bytes [11:49:31]NVStorageSaveData done [11:49:31]OFDSenderStorePacket done [11:49:31]KKMCreateOFDPacket done [11:49:31]NVStorageSaveData kkm_last_timestamp [11:49:31]File name is /storage/kkm_last_timestamp [11:49:31]Write 4 bytes [11:49:31]NVStorageSaveData done [11:49:31]ExternCall_PrintAddStr [11:49:31]wPrintStart [11:49:31]Write to MH i2c: 01 00 00 E5 8F 74 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 E5 8F 00 00 00 00 00 FF 0F 89 [11:49:31]RasterBufferAndPrint [11:49:31]line Счет N : (1)30676 [11:49:31]line ИНН: 02508201610067 [11:49:31]line Контрольно-Кассовый Чек [11:49:31]line ПРОДАЖА [11:49:31]line ТРК (МРК, ГНК) : 12 [11:49:31]line Товар: 2710124130 [11:49:31]line Аи-92-К-5 [11:49:31]line 7.480 * 66.90 [11:49:31]line = 500.41 [11:49:31]line НДС 12% НСП 1% [11:49:31]line > о реализуемом товаре [11:49:31]line ОКРУГЛЕНИЕ: -0.41 [11:49:31]line ИТОГО: 500.00 [11:49:31]line Внесено: 500.00 [11:49:31]line СДАЧА: 0.00 [11:49:31]line НСП 1% : 4.43 [11:49:31]line НДС 12% : 53.14 [11:49:31]line Наличными: 500.00 [11:49:31]line Безнал.: 0.00 [11:49:31]line Место: АЗС № 170 "Партнер Нефть" [11:49:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:49:31]line СНО: Общий режим [11:49:31]line Чек 121 25.10.2024 11:49 [11:49:31]line Смена: 540 ФФД: 1.0 [11:49:31]line ЗНМ: 0300000110 [11:49:31]line РНМ: 0000000000091776 [11:49:31]line Версия ККМ: 001 [11:49:31]line ФМ: 0000000000871754 [11:49:31]line ФД: 191382 [11:49:31]line ФПД: 182387039509724 [11:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191382&fm=182387039509724&tin=02508201610067®Number=0000000000091776&sum=50000 [11:49:31]written 0, free lines is 4095 [11:49:31]OFD Sender: Processing packet 191382 [packets to send 75, broken 74] [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00191382 [11:49:31]OFD Sender: To server: pG, [11:49:32]CommunicateWithHost lk.salyk.kg:30040 [11:49:32]ConnectInit lk.salyk.kg [11:49:32]Connected sock=10 [11:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 83 07 01 FE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D2 85 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EB 02 00 35 04 06 00 A5 E1 4A B3 9C DC B0 5D D2 BF 87 7D D9 99 [11:49:32]Write to MH i2c: 01 00 00 10 90 A0 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 10 90 00 00 00 00 00 B4 0C 67 [11:49:32]RasterBufferAndPrint [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]written 0, free lines is 3259 [11:49:32]MH_Cut [11:49:32]Write to MH i2c: D1 01 00 17 90 01 79 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 17 90 00 78 [11:49:32]Write to MH i2c: 01 00 00 18 90 A8 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 E6 47 00 94 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EB 02 00 F4 03 04 00 A1 2A 1B 67 B6 04 01 00 00 0A 54 A0 54 3E 4B D1 29 [11:49:32]CommunicateWithHost err = 0 [11:49:32]CheckOFDResponse [11:49:32]1017 (14) - 77093643461234 [11:49:32]1041 (16) - 0000000000871754 [11:49:32]1040 (4) - 191382 [11:49:32]1012 (4) - 25.10.2024 05:20 [11:49:32]1206 (1) - 0 [11:49:32]OFD Sender: Remove packet 191382 [11:49:32]ProducePacketName [11:49:32]name=ofd_packets/00191382 [11:49:32]NVStorageDeleteData [11:49:32]OFD Sender: No OFD packet to send [11:49:32]*** Cut start [11:49:32]*** Partial cut [11:49:32]*** CUTSNS_PIN = 1 [11:49:33]*** CUTSNS_PIN = 0 [11:49:33]*** Brake cut motor [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]*** Stop cut motor [11:49:33]*** Cut end [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 18 90 00 00 00 00 00 FF 0F BD [11:49:33]process_action close_receipt done [11:49:33]requested_data is exist [11:49:33]produce_requested_data [11:49:33]requested_item fm.sn is exist - process it [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 11 00 00 [11:49:33]Write to MH i2c: E2 08 00 19 90 80 11 00 00 00 00 00 00 23 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 19 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [11:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:49:33]wFMCommunicate OK [11:49:33]requested_item fd.num is exist - process it [11:49:33]SAM_PROTO_GetFieldsCounters [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 00 00 [11:49:33]Write to MH i2c: E2 08 00 1A 90 80 13 00 00 00 00 00 00 26 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 1A 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetFieldsCounters done [11:49:33]requested_item shift.num is exist - process it [11:49:33]requested_item shift.opened is exist - process it [11:49:33]req_shift_opened [11:49:33]FM_GetShiftState [11:49:33]SAM_PROTO_GetShiftState [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 01 00 [11:49:33]Write to MH i2c: E2 08 00 1B 90 80 13 01 00 00 00 00 00 28 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 1B 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EB [11:49:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetShiftState done [11:49:33]FM_GetShiftState done [11:49:33]req_shift_opened done [11:49:33]requested_item shift.open_date is exist - process it [11:49:33]req_shift_open_date [11:49:33]req_shift_open_date done [11:49:33]produce_requested_data done [11:49:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191382,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:49:33]process_action_free close_receipt [11:49:33]json_value_free [11:49:33]json_value_free done [11:49:33]process_json_proto returns [11:49:33]Send response to host [11:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191382,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:49:33]free response buf [11:49:33]execute_script done [11:49:33]execute_script returns [11:49:33]free content buf [11:49:33]Sock 9.Close socket [11:49:33]Sock 9.Thread stoped [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:36]accept exits with 8 [11:51:36]New connection [11:51:36]New thread 3066817892 created [11:51:36]Thread 3066961252 joined [11:51:36]Waiting for new connection... [11:51:36] Sock 8.Parse request [11:51:36]Sock 8.Check first char [11:51:36]Sock 8.First char is OK [11:51:36]request: POST /json_proto HTTP/1.0 [11:51:36]Method: POST [11:51:36]URL: /json_proto [11:51:36]Method is POST - this is cgi request [11:51:36]url: /json_proto [11:51:36]query_string will be loaded in cgi processing [11:51:36]execute_cgi json_proto POST (null) [11:51:36]execute_cgi path=json_proto method=POST [11:51:36]POST find Content-Length [11:51:36]Host: 172.17.63.131:8080 [11:51:36]Content-Length: 983 [11:51:36]Content-Type: application/json [11:51:36] [11:51:36]POST finish read [11:51:36]Found Content-Length = 983 [11:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:36]execute_script... [11:51: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)30677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:36]POST & json_proto [11:51:36]process_json_proto [11:51:36]json parsed OK: [11:51:36]protocol is kg_v1.0 [11:51:36]action value=close_receipt [11:51:36]process_action close_receipt [11:51:36]cmd_close_receipt [11:51:36]MH_GetDate [11:51:36]Write to MH i2c: F0 00 00 1C 90 9B [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 09 00 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: F0 09 00 1C 90 00 51 86 1B 67 22 05 6E 64 F6 [11:51:36]GetLastDocTimeStamp 1729856978 [11:51:36]current date 1729857105 [11:51:36]FM_GetShiftState [11:51:36]SAM_PROTO_GetShiftState [11:51:36]wFMCommunicate request_size=4 [11:51:36]MH_SAM_APDU [11:51:36]CAPDU: 80 13 01 00 [11:51:36]Write to MH i2c: E2 08 00 1D 90 80 13 01 00 00 00 00 00 2A [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:37]Read from MH i2c: E2 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 1D 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [11:51:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:51:37]wFMCommunicate OK [11:51:37]SAM_PROTO_GetShiftState done [11:51:37]FM_GetShiftState done [11:51:37]opened in 1729816399 [11:51:37]opened+sec_in_day 1729902799 [11:51:37]quantity*price = 150054 [11:51:37]sum+1 = 150055 [11:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 122 25.10.2024 11:51 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191383 ФПД: 15496588294450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191383&fm=15496588294450&tin=02508201610067®Number=0000000000091776&sum=150000 [11:51:38]StoreToDocumentArchive [11:51:38]shift 540 fd 191383 [11:51:38]save to /storage/0540/doc_00191383 [11:51:38]save last doc name /storage/0540/doc_00191383 to /storage/kkm_last_doc_name [11:51:38]save OK [11:51:38]Clear old archive folders... [11:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:38]tlvbuf is 016EB800 [11:51:38]SAM_PROTO_ClearQueue [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 09 00 00 [11:51:38]Write to MH i2c: E2 08 00 2A 90 80 09 00 00 00 00 00 00 2C [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 2A 90 00 90 00 2E [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_ClearQueue done [11:51:38]KKMCreateOFDPacket [11:51:38]OFDProtocolAddRootSTLVToBuf [11:51:38]FM_MakeSignedData [11:51:38]FM_MakeSignedData [11:51:38]SAM_PROTO_SignData [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 01 02 [11:51:38]Write to MH i2c: E2 08 00 2B 90 80 0D 01 02 00 00 00 00 34 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 2B 90 00 90 00 2F [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=255 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EB 02 00 35 04 06 00 0E [11:51:38]Write to MH i2c: E2 02 01 2C 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EB 02 00 35 04 06 00 0E 00 00 81 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 2C 90 00 90 00 30 [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=10 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 02 02 05 18 14 A3 F9 32 [11:51:38]Write to MH i2c: E2 0D 00 2D 90 80 0D 02 02 05 00 18 14 A3 F9 32 00 00 3B [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 03 00 2D 90 00 90 00 31 [11:51:38]RAPDU: 90 00 [11:51:38]wFMCommunicate OK [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 0D 03 02 [11:51:38]Write to MH i2c: E2 08 00 2E 90 80 0D 03 02 00 00 00 00 39 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0B 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0B 00 2E 90 00 9E D1 14 37 E4 96 E6 AF 90 00 03 [11:51:38]RAPDU: 9E D1 14 37 E4 96 E6 AF 90 00 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_SignData done [11:51:38]FM_MakeSignedData done [11:51:38]CreateOFDProtocolMessage [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 11 00 00 [11:51:38]Write to MH i2c: E2 08 00 2F 90 80 11 00 00 00 00 00 00 39 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 2F 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [11:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:38]wFMCommunicate OK [11:51:38]CreateOFDProtocolMessage done [11:51:38]OFDSenderStorePacket 191383 [11:51:38]StoreOFDPacket docnum=191383 [11:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 07 07 01 77 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EB 02 00 35 04 06 00 0E 18 14 A3 F9 32 9E D1 14 37 E4 96 E6 AF [11:51:38]CheckFolder [11:51:38]dirname=/storage/ofd_packets [11:51:38]CheckFolder done [11:51:38]ProducePacketName [11:51:38]name=ofd_packets/00191383 [11:51:38]NVStorageSaveData ofd_packets/00191383 [11:51:38]File name is /storage/ofd_packets/00191383 [11:51:38]Write 301 bytes [11:51:38]NVStorageSaveData done [11:51:38]OFDSenderStorePacket done [11:51:38]KKMCreateOFDPacket done [11:51:38]NVStorageSaveData kkm_last_timestamp [11:51:38]File name is /storage/kkm_last_timestamp [11:51:38]Write 4 bytes [11:51:38]NVStorageSaveData done [11:51:38]ExternCall_PrintAddStr [11:51:38]wPrintStart [11:51:38]Write to MH i2c: 01 00 00 30 90 C0 [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 07 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 07 00 30 90 00 00 00 00 00 FF 0F D5 [11:51:38]RasterBufferAndPrint [11:51:38]line Счет N : (1)30677 [11:51:38]line ИНН: 02508201610067 [11:51:38]line Контрольно-Кассовый Чек [11:51:38]line ПРОДАЖА [11:51:38]line ТРК (МРК, ГНК) : 21 [11:51:38]line Товар: 2710124130 [11:51:38]line Аи-92-К-5 [11:51:38]line 22.770 * 65.90 [11:51:38]line = 1500.54 [11:51:38]line НДС 12% НСП 1% [11:51:38]line > о реализуемом товаре [11:51:38]line ОКРУГЛЕНИЕ: -0.54 [11:51:38]line ИТОГО: 1500.00 [11:51:38]line Внесено: 1500.00 [11:51:38]line СДАЧА: 0.00 [11:51:38]line НСП 1% : 13.28 [11:51:38]line НДС 12% : 159.35 [11:51:38]line Наличными: 1500.00 [11:51:38]line Безнал.: 0.00 [11:51:38]line Место: АЗС № 170 "Партнер Нефть" [11:51:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:51:38]line СНО: Общий режим [11:51:38]line Чек 122 25.10.2024 11:51 [11:51:38]line Смена: 540 ФФД: 1.0 [11:51:38]line ЗНМ: 0300000110 [11:51:38]line РНМ: 0000000000091776 [11:51:38]line Версия ККМ: 001 [11:51:38]line [11:51:38]line Дисконтная программа [11:51:38]line АИ-92 [11:51:38]line номер 170 [11:51:38]line сэкономлено 22.77 сом [11:51:38]line ФМ: 0000000000871754 [11:51:38]line ФД: 191383 [11:51:38]line ФПД: 15496588294450 [11:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191383&fm=15496588294450&tin=02508201610067®Number=0000000000091776&sum=150000 [11:51:39]OFD Sender: Processing packet 191383 [packets to send 75, broken 74] [11:51:39]ProducePacketName [11:51:39]name=ofd_packets/00191383 [11:51:39]OFD Sender: To server: pG, [11:51:39]CommunicateWithHost lk.salyk.kg:30040 [11:51:39]ConnectInit lk.salyk.kg [11:51:39]written 0, free lines is 4095 [11:51:39]Connected sock=10 [11:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 07 07 01 77 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EB 02 00 35 04 06 00 0E 18 14 A3 F9 32 9E D1 14 37 E4 96 E6 AF [11:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D9 5A 47 00 96 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EB 02 00 F4 03 04 00 20 2B 1B 67 B6 04 01 00 00 82 E7 CB B8 F0 19 B3 7C [11:51:39]CommunicateWithHost err = 0 [11:51:39]CheckOFDResponse [11:51:39]1017 (14) - 77093643461234 [11:51:39]1041 (16) - 0000000000871754 [11:51:39]1040 (4) - 191383 [11:51:39]1012 (4) - 25.10.2024 05:22 [11:51:39]1206 (1) - 0 [11:51:39]OFD Sender: Remove packet 191383 [11:51:39]ProducePacketName [11:51:39]name=ofd_packets/00191383 [11:51:39]NVStorageDeleteData [11:51:39]Write to MH i2c: 01 00 00 60 90 F0 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 07 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: 01 07 00 60 90 00 00 00 00 00 5C 0C 5F [11:51:39]RasterBufferAndPrint [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]line [11:51:39]written 0, free lines is 3170 [11:51:39]MH_Cut [11:51:39]Write to MH i2c: D1 01 00 67 90 01 C9 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 01 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: D1 01 00 67 90 00 C8 [11:51:39]Write to MH i2c: 01 00 00 68 90 F8 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]OFD Sender: No OFD packet to send [11:51:40]*** Cut start [11:51:40]*** Partial cut [11:51:40]*** CUTSNS_PIN = 1 [11:51:40]*** CUTSNS_PIN = 0 [11:51:40]*** Brake cut motor [11:51:41]Read from MH i2c: 01 [11:51:41]MH_I2C_Read... [11:51:41]*** Stop cut motor [11:51:41]*** Cut end [11:51:41]Read from MH i2c: 01 07 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 68 90 00 00 00 00 00 FF 0F 0D [11:51:41]process_action close_receipt done [11:51:41]requested_data is exist [11:51:41]produce_requested_data [11:51:41]requested_item fm.sn is exist - process it [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 11 00 00 [11:51:41]Write to MH i2c: E2 08 00 69 90 80 11 00 00 00 00 00 00 73 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 69 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [11:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:41]wFMCommunicate OK [11:51:41]requested_item fd.num is exist - process it [11:51:41]SAM_PROTO_GetFieldsCounters [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 13 00 00 [11:51:41]Write to MH i2c: E2 08 00 6A 90 80 13 00 00 00 00 00 00 76 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 62 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 62 00 6A 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_GetFieldsCounters done [11:51:41]requested_item shift.num is exist - process it [11:51:41]requested_item shift.opened is exist - process it [11:51:41]req_shift_opened [11:51:41]FM_GetShiftState [11:51:41]SAM_PROTO_GetShiftState [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 13 01 00 [11:51:41]Write to MH i2c: E2 08 00 6B 90 80 13 01 00 00 00 00 00 78 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0E 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0E 00 6B 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3B [11:51:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_GetShiftState done [11:51:41]FM_GetShiftState done [11:51:41]req_shift_opened done [11:51:41]requested_item shift.open_date is exist - process it [11:51:41]req_shift_open_date [11:51:41]req_shift_open_date done [11:51:41]produce_requested_data done [11:51:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191383,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:51:41]process_action_free close_receipt [11:51:41]json_value_free [11:51:41]json_value_free done [11:51:41]process_json_proto returns [11:51:41]Send response to host [11:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191383,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:51:41]free response buf [11:51:41]execute_script done [11:51:41]execute_script returns [11:51:41]free content buf [11:51:41]Sock 8.Close socket [11:51:41]Sock 8.Thread stoped [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:15]accept exits with 9 [11:52:15]New connection [11:52:15]New thread 3066961252 created [11:52:15]Thread 3066817892 joined [11:52:15]Waiting for new connection... [11:52:15] Sock 9.Parse request [11:52:15]Sock 9.Check first char [11:52:15]Sock 9.First char is OK [11:52:15]request: POST /json_proto HTTP/1.0 [11:52:15]Method: POST [11:52:15]URL: /json_proto [11:52:15]Method is POST - this is cgi request [11:52:15]url: /json_proto [11:52:15]query_string will be loaded in cgi processing [11:52:15]execute_cgi json_proto POST (null) [11:52:15]execute_cgi path=json_proto method=POST [11:52:15]POST find Content-Length [11:52:15]Host: 172.17.63.131:8080 [11:52:15]Content-Length: 676 [11:52:15]Content-Type: application/json [11:52:15] [11:52:15]POST finish read [11:52:15]Found Content-Length = 676 [11:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:15]execute_script... [11:52:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:15]POST & json_proto [11:52:15]process_json_proto [11:52:15]json parsed OK: [11:52:15]protocol is kg_v1.0 [11:52:15]action value=close_receipt [11:52:15]process_action close_receipt [11:52:15]cmd_close_receipt [11:52:15]MH_GetDate [11:52:15]Write to MH i2c: F0 00 00 6C 90 EB [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: F0 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: F0 09 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: F0 09 00 6C 90 00 78 86 1B 67 22 05 6E 64 6D [11:52:15]GetLastDocTimeStamp 1729857105 [11:52:15]current date 1729857144 [11:52:15]FM_GetShiftState [11:52:15]SAM_PROTO_GetShiftState [11:52:15]wFMCommunicate request_size=4 [11:52:15]MH_SAM_APDU [11:52:15]CAPDU: 80 13 01 00 [11:52:15]Write to MH i2c: E2 08 00 6D 90 80 13 01 00 00 00 00 00 7A [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:15]Read from MH i2c: E2 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 0E 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 0E 00 6D 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3D [11:52:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:52:15]wFMCommunicate OK [11:52:15]SAM_PROTO_GetShiftState done [11:52:15]FM_GetShiftState done [11:52:15]opened in 1729816399 [11:52:15]opened+sec_in_day 1729902799 [11:52:15]quantity*price = 20003 [11:52:15]sum+1 = 20004 [11:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 123 25.10.2024 11:52 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191384 ФПД: 96933902363994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191384&fm=96933902363994&tin=02508201610067®Number=0000000000091776&sum=20000 [11:52:16]StoreToDocumentArchive [11:52:16]shift 540 fd 191384 [11:52:16]save to /storage/0540/doc_00191384 [11:52:16]save last doc name /storage/0540/doc_00191384 to /storage/kkm_last_doc_name [11:52:16]save OK [11:52:16]Clear old archive folders... [11:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:16]tlvbuf is 01600CC0 [11:52:16]SAM_PROTO_ClearQueue [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 09 00 00 [11:52:16]Write to MH i2c: E2 08 00 7A 90 80 09 00 00 00 00 00 00 7C [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 03 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 03 00 7A 90 00 90 00 7E [11:52:16]RAPDU: 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_ClearQueue done [11:52:16]KKMCreateOFDPacket [11:52:16]OFDProtocolAddRootSTLVToBuf [11:52:16]FM_MakeSignedData [11:52:16]FM_MakeSignedData [11:52:16]SAM_PROTO_SignData [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 0D 01 02 [11:52:16]Write to MH i2c: E2 08 00 7B 90 80 0D 01 02 00 00 00 00 84 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 03 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 03 00 7B 90 00 90 00 7F [11:52:16]RAPDU: 90 00 [11:52:16]wFMCommunicate OK [11:52:16]wFMCommunicate request_size=255 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 78 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EB 02 00 35 04 06 00 58 [11:52:16]Write to MH i2c: E2 02 01 7C 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 78 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EB 02 00 35 04 06 00 58 00 00 D0 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:17]Read from MH i2c: E2 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 03 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 03 00 7C 90 00 90 00 80 [11:52:17]RAPDU: 90 00 [11:52:17]wFMCommunicate OK [11:52:17]wFMCommunicate request_size=10 [11:52:17]MH_SAM_APDU [11:52:17]CAPDU: 80 0D 02 02 05 29 2E D1 2D 5A [11:52:17]Write to MH i2c: E2 0D 00 7D 90 80 0D 02 02 05 00 29 2E D1 2D 5A 00 00 40 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:17]Read from MH i2c: E2 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 03 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 03 00 7D 90 00 90 00 81 [11:52:17]RAPDU: 90 00 [11:52:17]wFMCommunicate OK [11:52:17]wFMCommunicate request_size=4 [11:52:17]MH_SAM_APDU [11:52:17]CAPDU: 80 0D 03 02 [11:52:17]Write to MH i2c: E2 08 00 7E 90 80 0D 03 02 00 00 00 00 89 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:17]Read from MH i2c: E2 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 0B 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 0B 00 7E 90 00 C4 64 60 A3 F8 A3 84 99 90 00 6D [11:52:17]RAPDU: C4 64 60 A3 F8 A3 84 99 90 00 [11:52:17]wFMCommunicate OK [11:52:17]SAM_PROTO_SignData done [11:52:17]FM_MakeSignedData done [11:52:17]CreateOFDProtocolMessage [11:52:17]wFMCommunicate request_size=4 [11:52:17]MH_SAM_APDU [11:52:17]CAPDU: 80 11 00 00 [11:52:17]Write to MH i2c: E2 08 00 7F 90 80 11 00 00 00 00 00 00 89 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:17]Read from MH i2c: E2 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 17 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 17 00 7F 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [11:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:52:17]wFMCommunicate OK [11:52:17]CreateOFDProtocolMessage done [11:52:17]OFDSenderStorePacket 191384 [11:52:17]StoreOFDPacket docnum=191384 [11:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 40 07 01 45 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 78 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EB 02 00 35 04 06 00 58 29 2E D1 2D 5A C4 64 60 A3 F8 A3 84 99 [11:52:17]CheckFolder [11:52:17]dirname=/storage/ofd_packets [11:52:17]CheckFolder done [11:52:17]ProducePacketName [11:52:17]name=ofd_packets/00191384 [11:52:17]NVStorageSaveData ofd_packets/00191384 [11:52:17]File name is /storage/ofd_packets/00191384 [11:52:17]Write 301 bytes [11:52:17]NVStorageSaveData done [11:52:17]OFDSenderStorePacket done [11:52:17]KKMCreateOFDPacket done [11:52:17]NVStorageSaveData kkm_last_timestamp [11:52:17]File name is /storage/kkm_last_timestamp [11:52:17]Write 4 bytes [11:52:17]NVStorageSaveData done [11:52:17]ExternCall_PrintAddStr [11:52:17]wPrintStart [11:52:17]Write to MH i2c: 01 00 00 80 90 10 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: 01 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: 01 07 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: 01 07 00 80 90 00 00 00 00 00 FF 0F 25 [11:52:17]RasterBufferAndPrint [11:52:17]line Счет N : (1)30678 [11:52:17]line ИНН: 02508201610067 [11:52:17]line Контрольно-Кассовый Чек [11:52:17]line ПРОДАЖА [11:52:17]line ТРК (МРК, ГНК) : 12 [11:52:17]line Товар: 2710124130 [11:52:17]line Аи-92-К-5 [11:52:17]line 2.990 * 66.90 [11:52:17]line = 200.03 [11:52:17]line НДС 12% НСП 1% [11:52:17]line > о реализуемом товаре [11:52:17]line ОКРУГЛЕНИЕ: -0.03 [11:52:17]line ИТОГО: 200.00 [11:52:17]line Внесено: 200.00 [11:52:17]line СДАЧА: 0.00 [11:52:17]line НСП 1% : 1.77 [11:52:17]line НДС 12% : 21.24 [11:52:17]line Наличными: 200.00 [11:52:17]line Безнал.: 0.00 [11:52:17]line Место: АЗС № 170 "Партнер Нефть" [11:52:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:52:17]line СНО: Общий режим [11:52:17]line Чек 123 25.10.2024 11:52 [11:52:17]line Смена: 540 ФФД: 1.0 [11:52:17]line ЗНМ: 0300000110 [11:52:17]line РНМ: 0000000000091776 [11:52:17]line Версия ККМ: 001 [11:52:17]line ФМ: 0000000000871754 [11:52:17]line ФД: 191384 [11:52:17]line ФПД: 96933902363994 [11:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191384&fm=96933902363994&tin=02508201610067®Number=0000000000091776&sum=20000 [11:52:17]OFD Sender: Processing packet 191384 [packets to send 75, broken 74] [11:52:17]ProducePacketName [11:52:17]name=ofd_packets/00191384 [11:52:17]OFD Sender: To server: pG, [11:52:17]CommunicateWithHost lk.salyk.kg:30040 [11:52:17]ConnectInit lk.salyk.kg [11:52:17]written 0, free lines is 4095 [11:52:17]Connected sock=11 [11:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 40 07 01 45 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 78 86 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EB 02 00 35 04 06 00 58 29 2E D1 2D 5A C4 64 60 A3 F8 A3 84 99 [11:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4C 2B 47 00 6E 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EB 02 00 F4 03 04 00 47 2B 1B 67 B6 04 01 00 00 DC 8B 0A 02 E1 8B 0B A4 [11:52:18]CommunicateWithHost err = 0 [11:52:18]CheckOFDResponse [11:52:18]1017 (14) - 77093643461234 [11:52:18]1041 (16) - 0000000000871754 [11:52:18]1040 (4) - 191384 [11:52:18]1012 (4) - 25.10.2024 05:23 [11:52:18]1206 (1) - 0 [11:52:18]OFD Sender: Remove packet 191384 [11:52:18]ProducePacketName [11:52:18]name=ofd_packets/00191384 [11:52:18]NVStorageDeleteData [11:52:18]Write to MH i2c: 01 00 00 AB 90 3B [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 AB 90 00 00 00 00 00 B2 0C 00 [11:52:18]RasterBufferAndPrint [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]written 0, free lines is 3254 [11:52:18]MH_Cut [11:52:18]Write to MH i2c: D1 01 00 B2 90 01 14 [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 01 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 01 00 B2 90 00 13 [11:52:18]Write to MH i2c: 01 00 00 B3 90 43 [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]OFD Sender: No OFD packet to send [11:52:18]*** Cut start [11:52:18]*** Partial cut [11:52:18]*** CUTSNS_PIN = 1 [11:52:19]*** CUTSNS_PIN = 0 [11:52:19]*** Brake cut motor [11:52:19]Read from MH i2c: 01 [11:52:19]MH_I2C_Read... [11:52:19]*** Stop cut motor [11:52:19]*** Cut end [11:52:19]Read from MH i2c: 01 07 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 B3 90 00 00 00 00 00 FF 0F 58 [11:52:19]process_action close_receipt done [11:52:19]requested_data is exist [11:52:19]produce_requested_data [11:52:19]requested_item fm.sn is exist - process it [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 11 00 00 [11:52:19]Write to MH i2c: E2 08 00 B4 90 80 11 00 00 00 00 00 00 BE [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 B4 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [11:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:52:19]wFMCommunicate OK [11:52:19]requested_item fd.num is exist - process it [11:52:19]SAM_PROTO_GetFieldsCounters [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 13 00 00 [11:52:19]Write to MH i2c: E2 08 00 B5 90 80 13 00 00 00 00 00 00 C1 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 62 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 62 00 B5 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_GetFieldsCounters done [11:52:19]requested_item shift.num is exist - process it [11:52:19]requested_item shift.opened is exist - process it [11:52:19]req_shift_opened [11:52:19]FM_GetShiftState [11:52:19]SAM_PROTO_GetShiftState [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 13 01 00 [11:52:19]Write to MH i2c: E2 08 00 B6 90 80 13 01 00 00 00 00 00 C3 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 B6 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 86 [11:52:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_GetShiftState done [11:52:19]FM_GetShiftState done [11:52:19]req_shift_opened done [11:52:19]requested_item shift.open_date is exist - process it [11:52:19]req_shift_open_date [11:52:19]req_shift_open_date done [11:52:19]produce_requested_data done [11:52:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191384,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [11:52:19]process_action_free close_receipt [11:52:19]json_value_free [11:52:19]json_value_free done [11:52:19]process_json_proto returns [11:52:19]Send response to host [11:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191384,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [11:52:19]free response buf [11:52:19]execute_script done [11:52:19]execute_script returns [11:52:19]free content buf [11:52:19]Sock 9.Close socket [11:52:19]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:46]accept exits with 8 [12:00:46]New connection [12:00:46]New thread 3066817892 created [12:00:46]Thread 3066961252 joined [12:00:46]Waiting for new connection... [12:00:46] Sock 8.Parse request [12:00:46]Sock 8.Check first char [12:00:46]Sock 8.First char is OK [12:00:46]request: POST /json_proto HTTP/1.0 [12:00:46]Method: POST [12:00:46]URL: /json_proto [12:00:46]Method is POST - this is cgi request [12:00:46]url: /json_proto [12:00:46]query_string will be loaded in cgi processing [12:00:46]execute_cgi json_proto POST (null) [12:00:46]execute_cgi path=json_proto method=POST [12:00:46]POST find Content-Length [12:00:46]Host: 172.17.63.131:8080 [12:00:46]Content-Length: 676 [12:00:46]Content-Type: application/json [12:00:46] [12:00:46]POST finish read [12:00:46]Found Content-Length = 676 [12:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:46]execute_script... [12:00: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)30679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:46]POST & json_proto [12:00:46]process_json_proto [12:00:46]json parsed OK: [12:00:46]protocol is kg_v1.0 [12:00:46]action value=close_receipt [12:00:46]process_action close_receipt [12:00:46]cmd_close_receipt [12:00:46]MH_GetDate [12:00:46]Write to MH i2c: F0 00 00 B7 90 36 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 09 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 09 00 B7 90 00 77 88 1B 67 22 05 6E 64 B9 [12:00:46]GetLastDocTimeStamp 1729857144 [12:00:46]current date 1729857655 [12:00:46]FM_GetShiftState [12:00:46]SAM_PROTO_GetShiftState [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 13 01 00 [12:00:46]Write to MH i2c: E2 08 00 B8 90 80 13 01 00 00 00 00 00 C5 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0E 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0E 00 B8 90 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 88 [12:00:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:00:46]wFMCommunicate OK [12:00:46]SAM_PROTO_GetShiftState done [12:00:46]FM_GetShiftState done [12:00:46]opened in 1729816399 [12:00:46]opened+sec_in_day 1729902799 [12:00:46]quantity*price = 30038 [12:00:46]sum+1 = 30039 [12:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 124 25.10.2024 12:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191385 ФПД: 215730072184717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191385&fm=215730072184717&tin=02508201610067®Number=0000000000091776&sum=30000 [12:00:47]StoreToDocumentArchive [12:00:47]shift 540 fd 191385 [12:00:47]save to /storage/0540/doc_00191385 [12:00:47]save last doc name /storage/0540/doc_00191385 to /storage/kkm_last_doc_name [12:00:47]save OK [12:00:47]Clear old archive folders... [12:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:47]tlvbuf is 016B0200 [12:00:47]SAM_PROTO_ClearQueue [12:00:47]wFMCommunicate request_size=4 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 09 00 00 [12:00:47]Write to MH i2c: E2 08 00 C5 90 80 09 00 00 00 00 00 00 C7 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:47]Read from MH i2c: E2 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 03 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 03 00 C5 90 00 90 00 C9 [12:00:47]RAPDU: 90 00 [12:00:47]wFMCommunicate OK [12:00:47]SAM_PROTO_ClearQueue done [12:00:47]KKMCreateOFDPacket [12:00:47]OFDProtocolAddRootSTLVToBuf [12:00:47]FM_MakeSignedData [12:00:47]FM_MakeSignedData [12:00:47]SAM_PROTO_SignData [12:00:47]wFMCommunicate request_size=4 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 0D 01 02 [12:00:47]Write to MH i2c: E2 08 00 C6 90 80 0D 01 02 00 00 00 00 CF [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:47]Read from MH i2c: E2 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 03 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 03 00 C6 90 00 90 00 CA [12:00:47]RAPDU: 90 00 [12:00:47]wFMCommunicate OK [12:00:47]wFMCommunicate request_size=255 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 77 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EB 02 00 35 04 06 00 C4 [12:00:47]Write to MH i2c: E2 02 01 C7 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 77 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EB 02 00 35 04 06 00 C4 00 00 BC [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 C7 90 00 90 00 CB [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=10 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 02 02 05 34 92 51 E7 8D [12:00:48]Write to MH i2c: E2 0D 00 C8 90 80 0D 02 02 05 00 34 92 51 E7 8D 00 00 67 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 C8 90 00 90 00 CC [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 03 02 [12:00:48]Write to MH i2c: E2 08 00 C9 90 80 0D 03 02 00 00 00 00 D4 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0B 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0B 00 C9 90 00 CC D8 E5 E8 16 FE 59 14 90 00 C7 [12:00:48]RAPDU: CC D8 E5 E8 16 FE 59 14 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_SignData done [12:00:48]FM_MakeSignedData done [12:00:48]CreateOFDProtocolMessage [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 11 00 00 [12:00:48]Write to MH i2c: E2 08 00 CA 90 80 11 00 00 00 00 00 00 D4 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 CA 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [12:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:48]wFMCommunicate OK [12:00:48]CreateOFDProtocolMessage done [12:00:48]OFDSenderStorePacket 191385 [12:00:48]StoreOFDPacket docnum=191385 [12:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 79 07 01 D2 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 77 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EB 02 00 35 04 06 00 C4 34 92 51 E7 8D CC D8 E5 E8 16 FE 59 14 [12:00:48]CheckFolder [12:00:48]dirname=/storage/ofd_packets [12:00:48]CheckFolder done [12:00:48]ProducePacketName [12:00:48]name=ofd_packets/00191385 [12:00:48]NVStorageSaveData ofd_packets/00191385 [12:00:48]File name is /storage/ofd_packets/00191385 [12:00:48]Write 301 bytes [12:00:48]NVStorageSaveData done [12:00:48]OFDSenderStorePacket done [12:00:48]KKMCreateOFDPacket done [12:00:48]NVStorageSaveData kkm_last_timestamp [12:00:48]File name is /storage/kkm_last_timestamp [12:00:48]Write 4 bytes [12:00:48]NVStorageSaveData done [12:00:48]ExternCall_PrintAddStr [12:00:48]wPrintStart [12:00:48]Write to MH i2c: 01 00 00 CB 90 5B [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 CB 90 00 00 00 00 00 FF 0F 70 [12:00:48]RasterBufferAndPrint [12:00:48]line Счет N : (1)30679 [12:00:48]line ИНН: 02508201610067 [12:00:48]line Контрольно-Кассовый Чек [12:00:48]line ПРОДАЖА [12:00:48]line ТРК (МРК, ГНК) : 12 [12:00:48]line Товар: 2710124130 [12:00:48]line Аи-92-К-5 [12:00:48]line 4.490 * 66.90 [12:00:48]line = 300.38 [12:00:48]line НДС 12% НСП 1% [12:00:48]line > о реализуемом товаре [12:00:48]line ОКРУГЛЕНИЕ: -0.38 [12:00:48]line ИТОГО: 300.00 [12:00:48]line Внесено: 300.00 [12:00:48]line СДАЧА: 0.00 [12:00:48]line НСП 1% : 2.66 [12:00:48]line НДС 12% : 31.90 [12:00:48]line Наличными: 300.00 [12:00:48]line Безнал.: 0.00 [12:00:48]line Место: АЗС № 170 "Партнер Нефть" [12:00:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:00:48]line СНО: Общий режим [12:00:48]line Чек 124 25.10.2024 12:00 [12:00:48]line Смена: 540 ФФД: 1.0 [12:00:48]line ЗНМ: 0300000110 [12:00:48]line РНМ: 0000000000091776 [12:00:48]line Версия ККМ: 001 [12:00:48]line ФМ: 0000000000871754 [12:00:48]line ФД: 191385 [12:00:48]line ФПД: 215730072184717 [12:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191385&fm=215730072184717&tin=02508201610067®Number=0000000000091776&sum=30000 [12:00:48]OFD Sender: Processing packet 191385 [packets to send 75, broken 74] [12:00:48]ProducePacketName [12:00:48]name=ofd_packets/00191385 [12:00:48]OFD Sender: To server: pG, [12:00:48]CommunicateWithHost lk.salyk.kg:30040 [12:00:48]ConnectInit lk.salyk.kg [12:00:48]written 0, free lines is 4095 [12:00:48]Connected sock=10 [12:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 79 07 01 D2 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 77 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EB 02 00 35 04 06 00 C4 34 92 51 E7 8D CC D8 E5 E8 16 FE 59 14 [12:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 2F 47 00 68 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EB 02 00 F4 03 04 00 46 2D 1B 67 B6 04 01 00 00 8D 4B 84 2E 0C 75 1C EE [12:00:48]CommunicateWithHost err = 0 [12:00:48]CheckOFDResponse [12:00:48]1017 (14) - 77093643461234 [12:00:48]1041 (16) - 0000000000871754 [12:00:48]1040 (4) - 191385 [12:00:48]1012 (4) - 25.10.2024 05:31 [12:00:48]1206 (1) - 0 [12:00:48]OFD Sender: Remove packet 191385 [12:00:48]ProducePacketName [12:00:48]name=ofd_packets/00191385 [12:00:48]NVStorageDeleteData [12:00:49]Write to MH i2c: 01 00 00 F6 90 86 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 F6 90 00 00 00 00 00 C0 0C 59 [12:00:49]RasterBufferAndPrint [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]written 0, free lines is 3271 [12:00:49]MH_Cut [12:00:49]Write to MH i2c: D1 01 00 FD 90 01 5F [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 FD 90 00 5E [12:00:49]Write to MH i2c: 01 00 00 FE 90 8E [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]OFD Sender: No OFD packet to send [12:00:49]*** Cut start [12:00:49]*** Partial cut [12:00:49]*** CUTSNS_PIN = 1 [12:00:49]*** CUTSNS_PIN = 0 [12:00:50]*** Brake cut motor [12:00:50]Read from MH i2c: 01 [12:00:50]MH_I2C_Read... [12:00:50]*** Stop cut motor [12:00:50]*** Cut end [12:00:50]Read from MH i2c: 01 07 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 FE 90 00 00 00 00 00 FF 0F A3 [12:00:50]process_action close_receipt done [12:00:50]requested_data is exist [12:00:50]produce_requested_data [12:00:50]requested_item fm.sn is exist - process it [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 11 00 00 [12:00:50]Write to MH i2c: E2 08 00 FF 90 80 11 00 00 00 00 00 00 09 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 FF 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [12:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:50]wFMCommunicate OK [12:00:50]requested_item fd.num is exist - process it [12:00:50]SAM_PROTO_GetFieldsCounters [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 13 00 00 [12:00:50]Write to MH i2c: E2 08 00 00 91 80 13 00 00 00 00 00 00 0D [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 62 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 62 00 00 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [12:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_GetFieldsCounters done [12:00:50]requested_item shift.num is exist - process it [12:00:50]requested_item shift.opened is exist - process it [12:00:50]req_shift_opened [12:00:50]FM_GetShiftState [12:00:50]SAM_PROTO_GetShiftState [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 13 01 00 [12:00:50]Write to MH i2c: E2 08 00 01 91 80 13 01 00 00 00 00 00 0F [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0E 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0E 00 01 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D2 [12:00:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_GetShiftState done [12:00:50]FM_GetShiftState done [12:00:50]req_shift_opened done [12:00:50]requested_item shift.open_date is exist - process it [12:00:50]req_shift_open_date [12:00:50]req_shift_open_date done [12:00:50]produce_requested_data done [12:00:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191385,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:00:50]process_action_free close_receipt [12:00:50]json_value_free [12:00:50]json_value_free done [12:00:50]process_json_proto returns [12:00:50]Send response to host [12:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191385,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:00:50]free response buf [12:00:50]execute_script done [12:00:50]execute_script returns [12:00:50]free content buf [12:00:50]Sock 8.Close socket [12:00:50]Sock 8.Thread stoped [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:01]accept exits with 9 [12:01:01]New connection [12:01:01]New thread 3066961252 created [12:01:01]Thread 3066817892 joined [12:01:01]Waiting for new connection... [12:01:01] Sock 9.Parse request [12:01:01]Sock 9.Check first char [12:01:01]Sock 9.First char is OK [12:01:01]request: POST /json_proto HTTP/1.0 [12:01:01]Method: POST [12:01:01]URL: /json_proto [12:01:01]Method is POST - this is cgi request [12:01:01]url: /json_proto [12:01:01]query_string will be loaded in cgi processing [12:01:01]execute_cgi json_proto POST (null) [12:01:01]execute_cgi path=json_proto method=POST [12:01:01]POST find Content-Length [12:01:01]Host: 172.17.63.131:8080 [12:01:01]Content-Length: 673 [12:01:01]Content-Type: application/json [12:01:01] [12:01:01]POST finish read [12:01:01]Found Content-Length = 673 [12:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:01:01]execute_script... [12:01: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)30680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:01:01]POST & json_proto [12:01:01]process_json_proto [12:01:01]json parsed OK: [12:01:01]protocol is kg_v1.0 [12:01:01]action value=close_receipt [12:01:01]process_action close_receipt [12:01:01]cmd_close_receipt [12:01:01]MH_GetDate [12:01:01]Write to MH i2c: F0 00 00 02 91 82 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: F0 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: F0 09 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: F0 09 00 02 91 00 86 88 1B 67 22 05 6E 64 14 [12:01:01]GetLastDocTimeStamp 1729857655 [12:01:01]current date 1729857670 [12:01:01]FM_GetShiftState [12:01:01]SAM_PROTO_GetShiftState [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 13 01 00 [12:01:01]Write to MH i2c: E2 08 00 03 91 80 13 01 00 00 00 00 00 11 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 0E 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 0E 00 03 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D4 [12:01:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:01:01]wFMCommunicate OK [12:01:01]SAM_PROTO_GetShiftState done [12:01:01]FM_GetShiftState done [12:01:01]opened in 1729816399 [12:01:01]opened+sec_in_day 1729902799 [12:01:01]quantity*price = 50063 [12:01:01]sum+1 = 50064 [12:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 125 25.10.2024 12:01 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191386 ФПД: 171171760232938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120110&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191386&fm=171171760232938&tin=02508201610067®Number=0000000000091776&sum=50000 [12:01:02]StoreToDocumentArchive [12:01:02]shift 540 fd 191386 [12:01:02]save to /storage/0540/doc_00191386 [12:01:02]save last doc name /storage/0540/doc_00191386 to /storage/kkm_last_doc_name [12:01:02]save OK [12:01:02]Clear old archive folders... [12:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:02]tlvbuf is 017CE6F0 [12:01:02]SAM_PROTO_ClearQueue [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 09 00 00 [12:01:02]Write to MH i2c: E2 08 00 10 91 80 09 00 00 00 00 00 00 13 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 10 91 00 90 00 15 [12:01:02]RAPDU: 90 00 [12:01:02]wFMCommunicate OK [12:01:02]SAM_PROTO_ClearQueue done [12:01:02]KKMCreateOFDPacket [12:01:02]OFDProtocolAddRootSTLVToBuf [12:01:02]FM_MakeSignedData [12:01:02]FM_MakeSignedData [12:01:02]SAM_PROTO_SignData [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 0D 01 02 [12:01:02]Write to MH i2c: E2 08 00 11 91 80 0D 01 02 00 00 00 00 1B [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 11 91 00 90 00 16 [12:01:02]RAPDU: 90 00 [12:01:02]wFMCommunicate OK [12:01:02]wFMCommunicate request_size=255 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 86 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EB 02 00 35 04 06 00 9B AE 07 F6 [12:01:02]Write to MH i2c: E2 02 01 12 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 7D 00 00 00 F4 03 04 00 86 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EB 02 00 35 04 06 00 9B AE 07 F6 00 00 25 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 12 91 00 90 00 17 [12:01:03]RAPDU: 90 00 [12:01:03]wFMCommunicate OK [12:01:03]wFMCommunicate request_size=7 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 0D 02 02 02 D9 EA [12:01:03]Write to MH i2c: E2 0A 00 13 91 80 0D 02 02 02 00 D9 EA 00 00 E5 [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 13 91 00 90 00 18 [12:01:03]RAPDU: 90 00 [12:01:03]wFMCommunicate OK [12:01:03]wFMCommunicate request_size=4 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 0D 03 02 [12:01:03]Write to MH i2c: E2 08 00 14 91 80 0D 03 02 00 00 00 00 20 [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 0B 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 0B 00 14 91 00 31 8A C8 9D 34 9A 0F 1B 90 00 39 [12:01:03]RAPDU: 31 8A C8 9D 34 9A 0F 1B 90 00 [12:01:03]wFMCommunicate OK [12:01:03]SAM_PROTO_SignData done [12:01:03]FM_MakeSignedData done [12:01:03]CreateOFDProtocolMessage [12:01:03]wFMCommunicate request_size=4 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 11 00 00 [12:01:03]Write to MH i2c: E2 08 00 15 91 80 11 00 00 00 00 00 00 20 [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 17 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 17 00 15 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [12:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:01:03]wFMCommunicate OK [12:01:03]CreateOFDProtocolMessage done [12:01:03]OFDSenderStorePacket 191386 [12:01:03]StoreOFDPacket docnum=191386 [12:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 82 13 04 01 7F F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 7D 00 00 00 F4 03 04 00 86 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EB 02 00 35 04 06 00 9B AE 07 F6 D9 EA 31 8A C8 9D 34 9A 0F 1B [12:01:03]CheckFolder [12:01:03]dirname=/storage/ofd_packets [12:01:03]CheckFolder done [12:01:03]ProducePacketName [12:01:03]name=ofd_packets/00191386 [12:01:03]NVStorageSaveData ofd_packets/00191386 [12:01:03]File name is /storage/ofd_packets/00191386 [12:01:03]Write 298 bytes [12:01:03]NVStorageSaveData done [12:01:03]OFDSenderStorePacket done [12:01:03]KKMCreateOFDPacket done [12:01:03]NVStorageSaveData kkm_last_timestamp [12:01:03]File name is /storage/kkm_last_timestamp [12:01:03]Write 4 bytes [12:01:03]NVStorageSaveData done [12:01:03]ExternCall_PrintAddStr [12:01:03]wPrintStart [12:01:03]Write to MH i2c: 01 00 00 16 91 A7 [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: 01 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: 01 07 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: 01 07 00 16 91 00 00 00 00 00 FF 0F BC [12:01:03]RasterBufferAndPrint [12:01:03]line Счет N : (1)30680 [12:01:03]line ИНН: 02508201610067 [12:01:03]line Контрольно-Кассовый Чек [12:01:03]line ПРОДАЖА [12:01:03]line ТРК (МРК, ГНК) : 22 [12:01:03]line Товар: 2710194210 [12:01:03]line ДТ-К-5 [12:01:03]line 6.570 * 76.20 [12:01:03]line = 500.63 [12:01:03]line НДС 12% НСП 1% [12:01:03]line > о реализуемом товаре [12:01:03]line ОКРУГЛЕНИЕ: -0.63 [12:01:03]line ИТОГО: 500.00 [12:01:03]line Внесено: 500.00 [12:01:03]line СДАЧА: 0.00 [12:01:03]line НСП 1% : 4.43 [12:01:03]line НДС 12% : 53.16 [12:01:03]line Наличными: 500.00 [12:01:03]line Безнал.: 0.00 [12:01:03]line Место: АЗС № 170 "Партнер Нефть" [12:01:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:01:03]line СНО: Общий режим [12:01:03]line Чек 125 25.10.2024 12:01 [12:01:03]line Смена: 540 ФФД: 1.0 [12:01:03]line ЗНМ: 0300000110 [12:01:03]line РНМ: 0000000000091776 [12:01:03]line Версия ККМ: 001 [12:01:03]line ФМ: 0000000000871754 [12:01:03]line ФД: 191386 [12:01:03]line ФПД: 171171760232938 [12:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120110&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191386&fm=171171760232938&tin=02508201610067®Number=0000000000091776&sum=50000 [12:01:03]OFD Sender: Processing packet 191386 [packets to send 75, broken 74] [12:01:03]ProducePacketName [12:01:03]name=ofd_packets/00191386 [12:01:03]OFD Sender: To server: pG, [12:01:03]CommunicateWithHost lk.salyk.kg:30040 [12:01:03]ConnectInit lk.salyk.kg [12:01:03]written 0, free lines is 4095 [12:01:03]Connected sock=10 [12:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 82 13 04 01 7F F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 7D 00 00 00 F4 03 04 00 86 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EB 02 00 35 04 06 00 9B AE 07 F6 D9 EA 31 8A C8 9D 34 9A 0F 1B [12:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 53 47 00 4A 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EB 02 00 F4 03 04 00 55 2D 1B 67 B6 04 01 00 00 45 6E 5E F9 F8 C3 D3 A0 [12:01:04]CommunicateWithHost err = 0 [12:01:04]CheckOFDResponse [12:01:04]1017 (14) - 77093643461234 [12:01:04]1041 (16) - 0000000000871754 [12:01:04]1040 (4) - 191386 [12:01:04]1012 (4) - 25.10.2024 05:32 [12:01:04]1206 (1) - 0 [12:01:04]OFD Sender: Remove packet 191386 [12:01:04]ProducePacketName [12:01:04]name=ofd_packets/00191386 [12:01:04]NVStorageDeleteData [12:01:04]Write to MH i2c: 01 00 00 41 91 D2 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 07 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 07 00 41 91 00 00 00 00 00 B5 0C 9A [12:01:04]RasterBufferAndPrint [12:01:04]line [12:01:04]line [12:01:04]line [12:01:04]line [12:01:04]line [12:01:04]written 0, free lines is 3259 [12:01:04]MH_Cut [12:01:04]Write to MH i2c: D1 01 00 48 91 01 AB [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: D1 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: D1 01 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: D1 01 00 48 91 00 AA [12:01:04]Write to MH i2c: 01 00 00 49 91 DA [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]OFD Sender: No OFD packet to send [12:01:04]*** Cut start [12:01:04]*** Partial cut [12:01:04]*** CUTSNS_PIN = 1 [12:01:05]*** CUTSNS_PIN = 0 [12:01:05]*** Brake cut motor [12:01:05]Read from MH i2c: 01 [12:01:05]MH_I2C_Read... [12:01:05]*** Stop cut motor [12:01:05]*** Cut end [12:01:05]Read from MH i2c: 01 07 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 49 91 00 00 00 00 00 FF 0F EF [12:01:05]process_action close_receipt done [12:01:05]requested_data is exist [12:01:05]produce_requested_data [12:01:05]requested_item fm.sn is exist - process it [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 11 00 00 [12:01:05]Write to MH i2c: E2 08 00 4A 91 80 11 00 00 00 00 00 00 55 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 17 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 17 00 4A 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [12:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:01:05]wFMCommunicate OK [12:01:05]requested_item fd.num is exist - process it [12:01:05]SAM_PROTO_GetFieldsCounters [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 13 00 00 [12:01:05]Write to MH i2c: E2 08 00 4B 91 80 13 00 00 00 00 00 00 58 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 62 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 62 00 4B 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:05]wFMCommunicate OK [12:01:05]SAM_PROTO_GetFieldsCounters done [12:01:05]requested_item shift.num is exist - process it [12:01:05]requested_item shift.opened is exist - process it [12:01:05]req_shift_opened [12:01:05]FM_GetShiftState [12:01:05]SAM_PROTO_GetShiftState [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 13 01 00 [12:01:05]Write to MH i2c: E2 08 00 4C 91 80 13 01 00 00 00 00 00 5A [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 0E 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 0E 00 4C 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1D [12:01:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:01:05]wFMCommunicate OK [12:01:05]SAM_PROTO_GetShiftState done [12:01:05]FM_GetShiftState done [12:01:05]req_shift_opened done [12:01:05]requested_item shift.open_date is exist - process it [12:01:05]req_shift_open_date [12:01:05]req_shift_open_date done [12:01:05]produce_requested_data done [12:01:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191386,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:01:05]process_action_free close_receipt [12:01:05]json_value_free [12:01:05]json_value_free done [12:01:05]process_json_proto returns [12:01:05]Send response to host [12:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191386,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:01:05]free response buf [12:01:05]execute_script done [12:01:05]execute_script returns [12:01:05]free content buf [12:01:05]Sock 9.Close socket [12:01:05]Sock 9.Thread stoped [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:43]accept exits with 8 [12:02:43]New connection [12:02:43]New thread 3066817892 created [12:02:43]Thread 3066961252 joined [12:02:43]Waiting for new connection... [12:02:43] Sock 8.Parse request [12:02:43]Sock 8.Check first char [12:02:43]Sock 8.First char is OK [12:02:43]request: POST /json_proto HTTP/1.0 [12:02:43]Method: POST [12:02:43]URL: /json_proto [12:02:43]Method is POST - this is cgi request [12:02:43]url: /json_proto [12:02:43]query_string will be loaded in cgi processing [12:02:43]execute_cgi json_proto POST (null) [12:02:43]execute_cgi path=json_proto method=POST [12:02:43]POST find Content-Length [12:02:43]Host: 172.17.63.131:8080 [12:02:43]Content-Length: 677 [12:02:43]Content-Type: application/json [12:02:43] [12:02:43]POST finish read [12:02:43]Found Content-Length = 677 [12:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.560, "sum" : 840.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:43]execute_script... [12:02: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)30681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.560, "sum" : 840.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:43]POST & json_proto [12:02:43]process_json_proto [12:02:43]json parsed OK: [12:02:43]protocol is kg_v1.0 [12:02:43]action value=close_receipt [12:02:43]process_action close_receipt [12:02:43]cmd_close_receipt [12:02:43]MH_GetDate [12:02:43]Write to MH i2c: F0 00 00 4D 91 CD [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: F0 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: F0 09 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: F0 09 00 4D 91 00 EC 88 1B 67 22 05 6E 64 C5 [12:02:43]GetLastDocTimeStamp 1729857670 [12:02:43]current date 1729857772 [12:02:43]FM_GetShiftState [12:02:43]SAM_PROTO_GetShiftState [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 13 01 00 [12:02:43]Write to MH i2c: E2 08 00 4E 91 80 13 01 00 00 00 00 00 5C [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0E 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0E 00 4E 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1F [12:02:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_GetShiftState done [12:02:43]FM_GetShiftState done [12:02:43]opened in 1729816399 [12:02:43]opened+sec_in_day 1729902799 [12:02:43]quantity*price = 84026 [12:02:43]sum+1 = 84027 [12:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 840.00 Внесено: 840.00 СДАЧА: 0.00 НСП 1% : 7.44 НДС 12% : 89.23 Наличными: 840.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 126 25.10.2024 12:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191387 ФПД: 30098779268498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120252&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191387&fm=30098779268498&tin=02508201610067®Number=0000000000091776&sum=84000 [12:02:44]StoreToDocumentArchive [12:02:44]shift 540 fd 191387 [12:02:44]save to /storage/0540/doc_00191387 [12:02:44]save last doc name /storage/0540/doc_00191387 to /storage/kkm_last_doc_name [12:02:44]save OK [12:02:44]Clear old archive folders... [12:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:44]tlvbuf is 017F1570 [12:02:44]SAM_PROTO_ClearQueue [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 09 00 00 [12:02:44]Write to MH i2c: E2 08 00 5B 91 80 09 00 00 00 00 00 00 5E [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 03 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 03 00 5B 91 00 90 00 60 [12:02:44]RAPDU: 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_ClearQueue done [12:02:44]KKMCreateOFDPacket [12:02:44]OFDProtocolAddRootSTLVToBuf [12:02:44]FM_MakeSignedData [12:02:44]FM_MakeSignedData [12:02:44]SAM_PROTO_SignData [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 0D 01 02 [12:02:44]Write to MH i2c: E2 08 00 5C 91 80 0D 01 02 00 00 00 00 66 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 03 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 03 00 5C 91 00 90 00 61 [12:02:44]RAPDU: 90 00 [12:02:44]wFMCommunicate OK [12:02:44]wFMCommunicate request_size=255 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 EC 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EB 02 00 35 04 06 00 1B [12:02:44]Write to MH i2c: E2 02 01 5D 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 EC 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EB 02 00 35 04 06 00 1B 00 00 63 [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 03 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 03 00 5D 91 00 90 00 62 [12:02:45]RAPDU: 90 00 [12:02:45]wFMCommunicate OK [12:02:45]wFMCommunicate request_size=10 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 0D 02 02 05 5F EB 0B E5 92 [12:02:45]Write to MH i2c: E2 0D 00 5E 91 80 0D 02 02 05 00 5F EB 0B E5 92 00 00 3F [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 03 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 03 00 5E 91 00 90 00 63 [12:02:45]RAPDU: 90 00 [12:02:45]wFMCommunicate OK [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 0D 03 02 [12:02:45]Write to MH i2c: E2 08 00 5F 91 80 0D 03 02 00 00 00 00 6B [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 0B 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 0B 00 5F 91 00 B1 AB C7 32 F1 AB 43 27 90 00 C7 [12:02:45]RAPDU: B1 AB C7 32 F1 AB 43 27 90 00 [12:02:45]wFMCommunicate OK [12:02:45]SAM_PROTO_SignData done [12:02:45]FM_MakeSignedData done [12:02:45]CreateOFDProtocolMessage [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 11 00 00 [12:02:45]Write to MH i2c: E2 08 00 60 91 80 11 00 00 00 00 00 00 6B [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 17 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 17 00 60 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [12:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:02:45]wFMCommunicate OK [12:02:45]CreateOFDProtocolMessage done [12:02:45]OFDSenderStorePacket 191387 [12:02:45]StoreOFDPacket docnum=191387 [12:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 3E 07 01 C2 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 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 EC 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EB 02 00 35 04 06 00 1B 5F EB 0B E5 92 B1 AB C7 32 F1 AB 43 27 [12:02:45]CheckFolder [12:02:45]dirname=/storage/ofd_packets [12:02:45]CheckFolder done [12:02:45]ProducePacketName [12:02:45]name=ofd_packets/00191387 [12:02:45]NVStorageSaveData ofd_packets/00191387 [12:02:45]File name is /storage/ofd_packets/00191387 [12:02:45]Write 301 bytes [12:02:45]NVStorageSaveData done [12:02:45]OFDSenderStorePacket done [12:02:45]KKMCreateOFDPacket done [12:02:45]NVStorageSaveData kkm_last_timestamp [12:02:45]File name is /storage/kkm_last_timestamp [12:02:45]Write 4 bytes [12:02:45]NVStorageSaveData done [12:02:45]ExternCall_PrintAddStr [12:02:45]wPrintStart [12:02:45]Write to MH i2c: 01 00 00 61 91 F2 [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: 01 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: 01 07 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: 01 07 00 61 91 00 00 00 00 00 FF 0F 07 [12:02:45]RasterBufferAndPrint [12:02:45]line Счет N : (1)30681 [12:02:45]line ИНН: 02508201610067 [12:02:45]line Контрольно-Кассовый Чек [12:02:45]line ПРОДАЖА [12:02:45]line ТРК (МРК, ГНК) : 21 [12:02:45]line Товар: 2710124130 [12:02:45]line Аи-92-К-5 [12:02:45]line 12.560 * 66.90 [12:02:45]line = 840.26 [12:02:45]line НДС 12% НСП 1% [12:02:45]line > о реализуемом товаре [12:02:45]line ОКРУГЛЕНИЕ: -0.26 [12:02:45]line ИТОГО: 840.00 [12:02:45]line Внесено: 840.00 [12:02:45]line СДАЧА: 0.00 [12:02:45]line НСП 1% : 7.44 [12:02:45]line НДС 12% : 89.23 [12:02:45]line Наличными: 840.00 [12:02:45]line Безнал.: 0.00 [12:02:45]line Место: АЗС № 170 "Партнер Нефть" [12:02:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:02:45]line СНО: Общий режим [12:02:45]line Чек 126 25.10.2024 12:02 [12:02:45]line Смена: 540 ФФД: 1.0 [12:02:45]line ЗНМ: 0300000110 [12:02:45]line РНМ: 0000000000091776 [12:02:45]line Версия ККМ: 001 [12:02:45]line ФМ: 0000000000871754 [12:02:45]line ФД: 191387 [12:02:45]line ФПД: 30098779268498 [12:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120252&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191387&fm=30098779268498&tin=02508201610067®Number=0000000000091776&sum=84000 [12:02:45]OFD Sender: Processing packet 191387 [packets to send 75, broken 74] [12:02:45]ProducePacketName [12:02:45]name=ofd_packets/00191387 [12:02:45]OFD Sender: To server: pG, [12:02:45]CommunicateWithHost lk.salyk.kg:30040 [12:02:45]ConnectInit lk.salyk.kg [12:02:45]written 0, free lines is 4095 [12:02:45]Connected sock=10 [12:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 3E 07 01 C2 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 35 FF 03 08 00 03 10 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3A 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 EC 88 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EB 02 00 35 04 06 00 1B 5F EB 0B E5 92 B1 AB C7 32 F1 AB 43 27 [12:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 1E 47 00 58 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 31 37 35 34 10 04 04 00 9B EB 02 00 F4 03 04 00 BB 2D 1B 67 B6 04 01 00 00 3E F9 24 A9 93 5B 2B A0 [12:02:46]CommunicateWithHost err = 0 [12:02:46]CheckOFDResponse [12:02:46]1017 (14) - 77093643461234 [12:02:46]1041 (16) - 0000000000871754 [12:02:46]1040 (4) - 191387 [12:02:46]1012 (4) - 25.10.2024 05:33 [12:02:46]1206 (1) - 0 [12:02:46]OFD Sender: Remove packet 191387 [12:02:46]ProducePacketName [12:02:46]name=ofd_packets/00191387 [12:02:46]NVStorageDeleteData [12:02:46]Write to MH i2c: 01 00 00 8C 91 1D [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 8C 91 00 00 00 00 00 D5 0C 05 [12:02:46]RasterBufferAndPrint [12:02:46]line [12:02:46]line [12:02:46]line [12:02:46]line [12:02:46]line [12:02:46]written 0, free lines is 3293 [12:02:46]MH_Cut [12:02:46]Write to MH i2c: D1 01 00 93 91 01 F6 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: D1 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: D1 01 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: D1 01 00 93 91 00 F5 [12:02:46]Write to MH i2c: 01 00 00 94 91 25 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]OFD Sender: No OFD packet to send [12:02:47]*** Cut start [12:02:47]*** Partial cut [12:02:47]*** CUTSNS_PIN = 1 [12:02:47]*** CUTSNS_PIN = 0 [12:02:47]*** Brake cut motor [12:02:47]Read from MH i2c: 01 [12:02:47]MH_I2C_Read... [12:02:47]*** Stop cut motor [12:02:47]*** Cut end [12:02:47]Read from MH i2c: 01 07 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 94 91 00 00 00 00 00 FF 0F 3A [12:02:47]process_action close_receipt done [12:02:47]requested_data is exist [12:02:47]produce_requested_data [12:02:47]requested_item fm.sn is exist - process it [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 11 00 00 [12:02:47]Write to MH i2c: E2 08 00 95 91 80 11 00 00 00 00 00 00 A0 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 17 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 17 00 95 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [12:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:02:47]wFMCommunicate OK [12:02:47]requested_item fd.num is exist - process it [12:02:47]SAM_PROTO_GetFieldsCounters [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 13 00 00 [12:02:47]Write to MH i2c: E2 08 00 96 91 80 13 00 00 00 00 00 00 A3 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 62 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 62 00 96 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:47]wFMCommunicate OK [12:02:47]SAM_PROTO_GetFieldsCounters done [12:02:47]requested_item shift.num is exist - process it [12:02:47]requested_item shift.opened is exist - process it [12:02:47]req_shift_opened [12:02:47]FM_GetShiftState [12:02:47]SAM_PROTO_GetShiftState [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 13 01 00 [12:02:47]Write to MH i2c: E2 08 00 97 91 80 13 01 00 00 00 00 00 A5 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 97 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 68 [12:02:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:02:47]wFMCommunicate OK [12:02:47]SAM_PROTO_GetShiftState done [12:02:47]FM_GetShiftState done [12:02:47]req_shift_opened done [12:02:47]requested_item shift.open_date is exist - process it [12:02:47]req_shift_open_date [12:02:47]req_shift_open_date done [12:02:47]produce_requested_data done [12:02:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191387,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:02:47]process_action_free close_receipt [12:02:47]json_value_free [12:02:47]json_value_free done [12:02:47]process_json_proto returns [12:02:47]Send response to host [12:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191387,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:02:47]free response buf [12:02:47]execute_script done [12:02:47]execute_script returns [12:02:47]free content buf [12:02:47]Sock 8.Close socket [12:02:47]Sock 8.Thread stoped [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:14]accept exits with 9 [12:03:14]New connection [12:03:14]New thread 3066961252 created [12:03:14]Thread 3066817892 joined [12:03:14]Waiting for new connection... [12:03:14] Sock 9.Parse request [12:03:14]Sock 9.Check first char [12:03:14]Sock 9.First char is OK [12:03:14]request: POST /json_proto HTTP/1.0 [12:03:14]Method: POST [12:03:14]URL: /json_proto [12:03:14]Method is POST - this is cgi request [12:03:14]url: /json_proto [12:03:14]query_string will be loaded in cgi processing [12:03:14]execute_cgi json_proto POST (null) [12:03:14]execute_cgi path=json_proto method=POST [12:03:14]POST find Content-Length [12:03:14]Host: 172.17.63.131:8080 [12:03:14]Content-Length: 681 [12:03:14]Content-Type: application/json [12:03:14] [12:03:14]POST finish read [12:03:14]Found Content-Length = 681 [12:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:14]execute_script... [12: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)30682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:14]POST & json_proto [12:03:14]process_json_proto [12:03:14]json parsed OK: [12:03:14]protocol is kg_v1.0 [12:03:14]action value=close_receipt [12:03:14]process_action close_receipt [12:03:14]cmd_close_receipt [12:03:14]MH_GetDate [12:03:14]Write to MH i2c: F0 00 00 98 91 18 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: F0 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: F0 09 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: F0 09 00 98 91 00 0B 89 1B 67 22 05 6E 64 30 [12:03:14]GetLastDocTimeStamp 1729857772 [12:03:14]current date 1729857803 [12:03:14]FM_GetShiftState [12:03:14]SAM_PROTO_GetShiftState [12:03:14]wFMCommunicate request_size=4 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 13 01 00 [12:03:14]Write to MH i2c: E2 08 00 99 91 80 13 01 00 00 00 00 00 A7 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0E 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0E 00 99 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6A [12:03:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:03:14]wFMCommunicate OK [12:03:14]SAM_PROTO_GetShiftState done [12:03:14]FM_GetShiftState done [12:03:14]opened in 1729816399 [12:03:14]opened+sec_in_day 1729902799 [12:03:14]quantity*price = 100015 [12:03:14]sum+1 = 100017 [12:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 127 25.10.2024 12:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191388 ФПД: 41798320700137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191388&fm=41798320700137&tin=02508201610067®Number=0000000000091776&sum=100000 [12:03:15]StoreToDocumentArchive [12:03:15]shift 540 fd 191388 [12:03:15]save to /storage/0540/doc_00191388 [12:03:15]save last doc name /storage/0540/doc_00191388 to /storage/kkm_last_doc_name [12:03:15]save OK [12:03:15]Clear old archive folders... [12:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:15]tlvbuf is 01709190 [12:03:15]SAM_PROTO_ClearQueue [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 09 00 00 [12:03:15]Write to MH i2c: E2 08 00 A6 91 80 09 00 00 00 00 00 00 A9 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 A6 91 00 90 00 AB [12:03:15]RAPDU: 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_ClearQueue done [12:03:15]KKMCreateOFDPacket [12:03:15]OFDProtocolAddRootSTLVToBuf [12:03:15]FM_MakeSignedData [12:03:15]FM_MakeSignedData [12:03:15]SAM_PROTO_SignData [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 0D 01 02 [12:03:15]Write to MH i2c: E2 08 00 A7 91 80 0D 01 02 00 00 00 00 B1 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 A7 91 00 90 00 AC [12:03:15]RAPDU: 90 00 [12:03:15]wFMCommunicate OK [12:03:15]wFMCommunicate request_size=255 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0B 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EB 02 00 35 04 06 00 26 [12:03:15]Write to MH i2c: E2 02 01 A8 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0B 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EB 02 00 35 04 06 00 26 00 00 A1 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 A8 91 00 90 00 AD [12:03:15]RAPDU: 90 00 [12:03:15]wFMCommunicate OK [12:03:15]wFMCommunicate request_size=10 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 0D 02 02 05 03 EE 0E BA E9 [12:03:15]Write to MH i2c: E2 0D 00 A9 91 80 0D 02 02 05 00 03 EE 0E BA E9 00 00 60 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 03 00 A9 91 00 90 00 AE [12:03:15]RAPDU: 90 00 [12:03:15]wFMCommunicate OK [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 0D 03 02 [12:03:15]Write to MH i2c: E2 08 00 AA 91 80 0D 03 02 00 00 00 00 B6 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0B 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0B 00 AA 91 00 41 08 7C D4 51 4F 67 D5 90 00 2C [12:03:15]RAPDU: 41 08 7C D4 51 4F 67 D5 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_SignData done [12:03:15]FM_MakeSignedData done [12:03:15]CreateOFDProtocolMessage [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 11 00 00 [12:03:15]Write to MH i2c: E2 08 00 AB 91 80 11 00 00 00 00 00 00 B6 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 AB 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [12:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:03:15]wFMCommunicate OK [12:03:15]CreateOFDProtocolMessage done [12:03:15]OFDSenderStorePacket 191388 [12:03:15]StoreOFDPacket docnum=191388 [12:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E 59 07 01 A1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0B 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EB 02 00 35 04 06 00 26 03 EE 0E BA E9 41 08 7C D4 51 4F 67 D5 [12:03:15]CheckFolder [12:03:15]dirname=/storage/ofd_packets [12:03:15]CheckFolder done [12:03:15]ProducePacketName [12:03:15]name=ofd_packets/00191388 [12:03:15]NVStorageSaveData ofd_packets/00191388 [12:03:15]File name is /storage/ofd_packets/00191388 [12:03:15]Write 301 bytes [12:03:15]NVStorageSaveData done [12:03:15]OFDSenderStorePacket done [12:03:15]KKMCreateOFDPacket done [12:03:15]NVStorageSaveData kkm_last_timestamp [12:03:15]File name is /storage/kkm_last_timestamp [12:03:15]Write 4 bytes [12:03:15]NVStorageSaveData done [12:03:15]ExternCall_PrintAddStr [12:03:15]wPrintStart [12:03:15]Write to MH i2c: 01 00 00 AC 91 3D [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 AC 91 00 00 00 00 00 FF 0F 52 [12:03:15]RasterBufferAndPrint [12:03:15]line Счет N : (1)30682 [12:03:15]line ИНН: 02508201610067 [12:03:15]line Контрольно-Кассовый Чек [12:03:15]line ПРОДАЖА [12:03:15]line ТРК (МРК, ГНК) : 12 [12:03:15]line Товар: 2710124130 [12:03:15]line Аи-92-К-5 [12:03:15]line 14.950 * 66.90 [12:03:15]line = 1000.16 [12:03:15]line НДС 12% НСП 1% [12:03:15]line > о реализуемом товаре [12:03:15]line ОКРУГЛЕНИЕ: -0.16 [12:03:15]line ИТОГО: 1000.00 [12:03:15]line Внесено: 1000.00 [12:03:15]line СДАЧА: 0.00 [12:03:15]line НСП 1% : 8.85 [12:03:15]line НДС 12% : 106.21 [12:03:15]line Наличными: 1000.00 [12:03:15]line Безнал.: 0.00 [12:03:15]line Место: АЗС № 170 "Партнер Нефть" [12:03:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:03:15]line СНО: Общий режим [12:03:15]line Чек 127 25.10.2024 12:03 [12:03:15]line Смена: 540 ФФД: 1.0 [12:03:15]line ЗНМ: 0300000110 [12:03:15]line РНМ: 0000000000091776 [12:03:15]line Версия ККМ: 001 [12:03:15]line ФМ: 0000000000871754 [12:03:15]line ФД: 191388 [12:03:15]line ФПД: 41798320700137 [12:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191388&fm=41798320700137&tin=02508201610067®Number=0000000000091776&sum=100000 [12:03:16]OFD Sender: Processing packet 191388 [packets to send 75, broken 74] [12:03:16]ProducePacketName [12:03:16]name=ofd_packets/00191388 [12:03:16]OFD Sender: To server: pG, [12:03:16]CommunicateWithHost lk.salyk.kg:30040 [12:03:16]ConnectInit lk.salyk.kg [12:03:16]written 0, free lines is 4095 [12:03:16]Connected sock=10 [12: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 31 37 35 34 0F 01 00 00 5E 59 07 01 A1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0B 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EB 02 00 35 04 06 00 26 03 EE 0E BA E9 41 08 7C D4 51 4F 67 D5 [12:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 34 CF 47 00 8D D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EB 02 00 F4 03 04 00 D9 2D 1B 67 B6 04 01 00 00 0F E5 58 20 85 75 15 96 [12:03:16]CommunicateWithHost err = 0 [12:03:16]CheckOFDResponse [12:03:16]1017 (14) - 77093643461234 [12:03:16]1041 (16) - 0000000000871754 [12:03:16]1040 (4) - 191388 [12:03:16]1012 (4) - 25.10.2024 05:34 [12:03:16]1206 (1) - 0 [12:03:16]OFD Sender: Remove packet 191388 [12:03:16]ProducePacketName [12:03:16]name=ofd_packets/00191388 [12:03:16]NVStorageDeleteData [12:03:16]Write to MH i2c: 01 00 00 D7 91 68 [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: 01 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: 01 07 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: 01 07 00 D7 91 00 00 00 00 00 BF 0C 3A [12:03:16]RasterBufferAndPrint [12:03:16]line [12:03:16]line [12:03:16]line [12:03:16]line [12:03:16]line [12:03:16]written 0, free lines is 3269 [12:03:16]MH_Cut [12:03:16]Write to MH i2c: D1 01 00 DE 91 01 41 [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: D1 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: D1 01 00 [12:03:16]MH_I2C_Read... [12:03:16]Read from MH i2c: D1 01 00 DE 91 00 40 [12:03:16]Write to MH i2c: 01 00 00 DF 91 70 [12:03:16]Write i2c OK [12:03:16]MH_I2C_Read... [12:03:17]OFD Sender: No OFD packet to send [12:03:17]*** Cut start [12:03:17]*** Partial cut [12:03:17]*** CUTSNS_PIN = 1 [12:03:17]*** CUTSNS_PIN = 0 [12:03:17]*** Brake cut motor [12:03:18]Read from MH i2c: 01 [12:03:18]MH_I2C_Read... [12:03:18]*** Stop cut motor [12:03:18]*** Cut end [12:03:18]Read from MH i2c: 01 07 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: 01 07 00 DF 91 00 00 00 00 00 FF 0F 85 [12:03:18]process_action close_receipt done [12:03:18]requested_data is exist [12:03:18]produce_requested_data [12:03:18]requested_item fm.sn is exist - process it [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 11 00 00 [12:03:18]Write to MH i2c: E2 08 00 E0 91 80 11 00 00 00 00 00 00 EB [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 17 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 17 00 E0 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [12:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:03:18]wFMCommunicate OK [12:03:18]requested_item fd.num is exist - process it [12:03:18]SAM_PROTO_GetFieldsCounters [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 13 00 00 [12:03:18]Write to MH i2c: E2 08 00 E1 91 80 13 00 00 00 00 00 00 EE [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 62 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 62 00 E1 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:18]wFMCommunicate OK [12:03:18]SAM_PROTO_GetFieldsCounters done [12:03:18]requested_item shift.num is exist - process it [12:03:18]requested_item shift.opened is exist - process it [12:03:18]req_shift_opened [12:03:18]FM_GetShiftState [12:03:18]SAM_PROTO_GetShiftState [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 13 01 00 [12:03:18]Write to MH i2c: E2 08 00 E2 91 80 13 01 00 00 00 00 00 F0 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 0E 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 0E 00 E2 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B3 [12:03:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:03:18]wFMCommunicate OK [12:03:18]SAM_PROTO_GetShiftState done [12:03:18]FM_GetShiftState done [12:03:18]req_shift_opened done [12:03:18]requested_item shift.open_date is exist - process it [12:03:18]req_shift_open_date [12:03:18]req_shift_open_date done [12:03:18]produce_requested_data done [12:03:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191388,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:03:18]process_action_free close_receipt [12:03:18]json_value_free [12:03:18]json_value_free done [12:03:18]process_json_proto returns [12:03:18]Send response to host [12:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191388,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:03:18]free response buf [12:03:18]execute_script done [12:03:18]execute_script returns [12:03:18]free content buf [12:03:18]Sock 9.Close socket [12:03:18]Sock 9.Thread stoped [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:16]accept exits with 8 [12:05:16]New connection [12:05:16]New thread 3066817892 created [12:05:16]Thread 3066961252 joined [12:05:16]Waiting for new connection... [12:05:16] Sock 8.Parse request [12:05:16]Sock 8.Check first char [12:05:16]Sock 8.First char is OK [12:05:16]request: POST /json_proto HTTP/1.0 [12:05:16]Method: POST [12:05:16]URL: /json_proto [12:05:16]Method is POST - this is cgi request [12:05:16]url: /json_proto [12:05:16]query_string will be loaded in cgi processing [12:05:16]execute_cgi json_proto POST (null) [12:05:16]execute_cgi path=json_proto method=POST [12:05:16]POST find Content-Length [12:05:16]Host: 172.17.63.131:8080 [12:05:16]Content-Length: 674 [12:05:16]Content-Type: application/json [12:05:16] [12:05:16]POST finish read [12:05:16]Found Content-Length = 674 [12:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:05:16]execute_script... [12:05: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)30683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:05:16]POST & json_proto [12:05:16]process_json_proto [12:05:16]json parsed OK: [12:05:16]protocol is kg_v1.0 [12:05:16]action value=close_receipt [12:05:16]process_action close_receipt [12:05:16]cmd_close_receipt [12:05:16]MH_GetDate [12:05:16]Write to MH i2c: F0 00 00 E3 91 63 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: F0 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: F0 09 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: F0 09 00 E3 91 00 85 89 1B 67 22 05 6E 64 F5 [12:05:16]GetLastDocTimeStamp 1729857803 [12:05:16]current date 1729857925 [12:05:16]FM_GetShiftState [12:05:16]SAM_PROTO_GetShiftState [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 13 01 00 [12:05:16]Write to MH i2c: E2 08 00 E4 91 80 13 01 00 00 00 00 00 F2 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:17]Read from MH i2c: E2 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 0E 00 [12:05:17]MH_I2C_Read... [12:05:17]Read from MH i2c: E2 0E 00 E4 91 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B5 [12:05:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:05:17]wFMCommunicate OK [12:05:17]SAM_PROTO_GetShiftState done [12:05:17]FM_GetShiftState done [12:05:17]opened in 1729816399 [12:05:17]opened+sec_in_day 1729902799 [12:05:17]quantity*price = 80010 [12:05:17]sum+1 = 80011 [12:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 128 25.10.2024 12:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191389 ФПД: 116312621057209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191389&fm=116312621057209&tin=02508201610067®Number=0000000000091776&sum=80000 [12:05:18]StoreToDocumentArchive [12:05:18]shift 540 fd 191389 [12:05:18]save to /storage/0540/doc_00191389 [12:05:18]save last doc name /storage/0540/doc_00191389 to /storage/kkm_last_doc_name [12:05:18]save OK [12:05:18]Clear old archive folders... [12:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:18]tlvbuf is 01709060 [12:05:18]SAM_PROTO_ClearQueue [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 09 00 00 [12:05:18]Write to MH i2c: E2 08 00 F1 91 80 09 00 00 00 00 00 00 F4 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 F1 91 00 90 00 F6 [12:05:18]RAPDU: 90 00 [12:05:18]wFMCommunicate OK [12:05:18]SAM_PROTO_ClearQueue done [12:05:18]KKMCreateOFDPacket [12:05:18]OFDProtocolAddRootSTLVToBuf [12:05:18]FM_MakeSignedData [12:05:18]FM_MakeSignedData [12:05:18]SAM_PROTO_SignData [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 0D 01 02 [12:05:18]Write to MH i2c: E2 08 00 F2 91 80 0D 01 02 00 00 00 00 FC [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 F2 91 00 90 00 F7 [12:05:18]RAPDU: 90 00 [12:05:18]wFMCommunicate OK [12:05:18]wFMCommunicate request_size=255 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 85 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EB 02 00 35 04 06 00 69 C9 24 76 [12:05:18]Write to MH i2c: E2 02 01 F3 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 85 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EB 02 00 35 04 06 00 69 C9 24 76 00 00 3D [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 F3 91 00 90 00 F8 [12:05:18]RAPDU: 90 00 [12:05:18]wFMCommunicate OK [12:05:18]wFMCommunicate request_size=7 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 0D 02 02 02 04 B9 [12:05:18]Write to MH i2c: E2 0A 00 F4 91 80 0D 02 02 02 00 04 B9 00 00 C0 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 03 00 F4 91 00 90 00 F9 [12:05:18]RAPDU: 90 00 [12:05:18]wFMCommunicate OK [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 0D 03 02 [12:05:18]Write to MH i2c: E2 08 00 F5 91 80 0D 03 02 00 00 00 00 01 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0B 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0B 00 F5 91 00 50 F1 73 CB 39 8B 7F 82 90 00 46 [12:05:18]RAPDU: 50 F1 73 CB 39 8B 7F 82 90 00 [12:05:18]wFMCommunicate OK [12:05:18]SAM_PROTO_SignData done [12:05:18]FM_MakeSignedData done [12:05:18]CreateOFDProtocolMessage [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 11 00 00 [12:05:18]Write to MH i2c: E2 08 00 F6 91 80 11 00 00 00 00 00 00 01 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 17 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 17 00 F6 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [12:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:18]wFMCommunicate OK [12:05:18]CreateOFDProtocolMessage done [12:05:18]OFDSenderStorePacket 191389 [12:05:18]StoreOFDPacket docnum=191389 [12:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 63 34 04 01 DF 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 85 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EB 02 00 35 04 06 00 69 C9 24 76 04 B9 50 F1 73 CB 39 8B 7F 82 [12:05:18]CheckFolder [12:05:18]dirname=/storage/ofd_packets [12:05:18]CheckFolder done [12:05:18]ProducePacketName [12:05:18]name=ofd_packets/00191389 [12:05:18]NVStorageSaveData ofd_packets/00191389 [12:05:18]File name is /storage/ofd_packets/00191389 [12:05:18]Write 298 bytes [12:05:18]NVStorageSaveData done [12:05:18]OFDSenderStorePacket done [12:05:18]KKMCreateOFDPacket done [12:05:18]NVStorageSaveData kkm_last_timestamp [12:05:18]File name is /storage/kkm_last_timestamp [12:05:18]Write 4 bytes [12:05:18]NVStorageSaveData done [12:05:18]ExternCall_PrintAddStr [12:05:18]wPrintStart [12:05:18]Write to MH i2c: 01 00 00 F7 91 88 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 07 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: 01 07 00 F7 91 00 00 00 00 00 FF 0F 9D [12:05:18]RasterBufferAndPrint [12:05:18]line Счет N : (1)30683 [12:05:18]line ИНН: 02508201610067 [12:05:18]line Контрольно-Кассовый Чек [12:05:18]line ПРОДАЖА [12:05:18]line ТРК (МРК, ГНК) : 22 [12:05:18]line Товар: 2710194210 [12:05:18]line ДТ-К-5 [12:05:18]line 10.500 * 76.20 [12:05:18]line = 800.10 [12:05:18]line НДС 12% НСП 1% [12:05:18]line > о реализуемом товаре [12:05:18]line ОКРУГЛЕНИЕ: -0.10 [12:05:18]line ИТОГО: 800.00 [12:05:18]line Внесено: 800.00 [12:05:18]line СДАЧА: 0.00 [12:05:18]line НСП 1% : 7.08 [12:05:18]line НДС 12% : 84.97 [12:05:18]line Наличными: 800.00 [12:05:18]line Безнал.: 0.00 [12:05:18]line Место: АЗС № 170 "Партнер Нефть" [12:05:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:05:18]line СНО: Общий режим [12:05:18]line Чек 128 25.10.2024 12:05 [12:05:18]line Смена: 540 ФФД: 1.0 [12:05:18]line ЗНМ: 0300000110 [12:05:18]line РНМ: 0000000000091776 [12:05:18]line Версия ККМ: 001 [12:05:18]line ФМ: 0000000000871754 [12:05:18]line ФД: 191389 [12:05:18]line ФПД: 116312621057209 [12:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191389&fm=116312621057209&tin=02508201610067®Number=0000000000091776&sum=80000 [12:05:19]OFD Sender: Processing packet 191389 [packets to send 75, broken 74] [12:05:19]ProducePacketName [12:05:19]name=ofd_packets/00191389 [12:05:19]OFD Sender: To server: pG, [12:05:19]CommunicateWithHost lk.salyk.kg:30040 [12:05:19]ConnectInit lk.salyk.kg [12:05:19]written 0, free lines is 4095 [12:05:19]Connected sock=10 [12:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 63 34 04 01 DF 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 85 89 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EB 02 00 35 04 06 00 69 C9 24 76 04 B9 50 F1 73 CB 39 8B 7F 82 [12:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D6 D1 47 00 23 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EB 02 00 F4 03 04 00 54 2E 1B 67 B6 04 01 00 00 AD 1B 8E 06 53 30 0A 83 [12:05:19]CommunicateWithHost err = 0 [12:05:19]CheckOFDResponse [12:05:19]1017 (14) - 77093643461234 [12:05:19]1041 (16) - 0000000000871754 [12:05:19]1040 (4) - 191389 [12:05:19]1012 (4) - 25.10.2024 05:36 [12:05:19]1206 (1) - 0 [12:05:19]OFD Sender: Remove packet 191389 [12:05:19]ProducePacketName [12:05:19]name=ofd_packets/00191389 [12:05:19]NVStorageDeleteData [12:05:19]Write to MH i2c: 01 00 00 22 92 B4 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 22 92 00 00 00 00 00 BA 0C 81 [12:05:19]RasterBufferAndPrint [12:05:19]line [12:05:19]line [12:05:19]line [12:05:19]line [12:05:19]line [12:05:19]written 0, free lines is 3266 [12:05:19]MH_Cut [12:05:19]Write to MH i2c: D1 01 00 29 92 01 8D [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: D1 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: D1 01 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: D1 01 00 29 92 00 8C [12:05:19]Write to MH i2c: 01 00 00 2A 92 BC [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]OFD Sender: No OFD packet to send [12:05:20]*** Cut start [12:05:20]*** Partial cut [12:05:20]*** CUTSNS_PIN = 1 [12:05:20]*** CUTSNS_PIN = 0 [12:05:20]*** Brake cut motor [12:05:20]Read from MH i2c: 01 [12:05:20]MH_I2C_Read... [12:05:20]*** Stop cut motor [12:05:20]*** Cut end [12:05:20]Read from MH i2c: 01 07 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 07 00 2A 92 00 00 00 00 00 FF 0F D1 [12:05:20]process_action close_receipt done [12:05:20]requested_data is exist [12:05:20]produce_requested_data [12:05:20]requested_item fm.sn is exist - process it [12:05:20]wFMCommunicate request_size=4 [12:05:20]MH_SAM_APDU [12:05:20]CAPDU: 80 11 00 00 [12:05:20]Write to MH i2c: E2 08 00 2B 92 80 11 00 00 00 00 00 00 37 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 2B 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [12:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:21]wFMCommunicate OK [12:05:21]requested_item fd.num is exist - process it [12:05:21]SAM_PROTO_GetFieldsCounters [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 00 00 [12:05:21]Write to MH i2c: E2 08 00 2C 92 80 13 00 00 00 00 00 00 3A [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 62 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 62 00 2C 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:21]wFMCommunicate OK [12:05:21]SAM_PROTO_GetFieldsCounters done [12:05:21]requested_item shift.num is exist - process it [12:05:21]requested_item shift.opened is exist - process it [12:05:21]req_shift_opened [12:05:21]FM_GetShiftState [12:05:21]SAM_PROTO_GetShiftState [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 01 00 [12:05:21]Write to MH i2c: E2 08 00 2D 92 80 13 01 00 00 00 00 00 3C [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 2D 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FF [12:05:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:05:21]wFMCommunicate OK [12:05:21]SAM_PROTO_GetShiftState done [12:05:21]FM_GetShiftState done [12:05:21]req_shift_opened done [12:05:21]requested_item shift.open_date is exist - process it [12:05:21]req_shift_open_date [12:05:21]req_shift_open_date done [12:05:21]produce_requested_data done [12:05:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191389,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:05:21]process_action_free close_receipt [12:05:21]json_value_free [12:05:21]json_value_free done [12:05:21]process_json_proto returns [12:05:21]Send response to host [12:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191389,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:05:21]free response buf [12:05:21]execute_script done [12:05:21]execute_script returns [12:05:21]free content buf [12:05:21]Sock 8.Close socket [12:05:21]Sock 8.Thread stoped [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]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:41]accept exits with 9 [12:07:41]New connection [12:07:41]New thread 3066961252 created [12:07:41]Thread 3066817892 joined [12:07:41]Waiting for new connection... [12:07:41] Sock 9.Parse request [12:07:41]Sock 9.Check first char [12:07:41]Sock 9.First char is OK [12:07:41]request: POST /json_proto HTTP/1.0 [12:07:41]Method: POST [12:07:41]URL: /json_proto [12:07:41]Method is POST - this is cgi request [12:07:41]url: /json_proto [12:07:41]query_string will be loaded in cgi processing [12:07:41]execute_cgi json_proto POST (null) [12:07:41]execute_cgi path=json_proto method=POST [12:07:41]POST find Content-Length [12:07:41]Host: 172.17.63.131:8080 [12:07:41]Content-Length: 681 [12:07:41]Content-Type: application/json [12:07:41] [12:07:41]POST finish read [12:07:41]Found Content-Length = 681 [12:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]execute_script... [12:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]POST & json_proto [12:07:41]process_json_proto [12:07:41]json parsed OK: [12:07:41]protocol is kg_v1.0 [12:07:41]action value=close_receipt [12:07:41]process_action close_receipt [12:07:41]cmd_close_receipt [12:07:41]MH_GetDate [12:07:41]Write to MH i2c: F0 00 00 2E 92 AF [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 2E 92 00 16 8A 1B 67 22 05 6E 64 D3 [12:07:41]GetLastDocTimeStamp 1729857925 [12:07:41]current date 1729858070 [12:07:41]FM_GetShiftState [12:07:41]SAM_PROTO_GetShiftState [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 13 01 00 [12:07:41]Write to MH i2c: E2 08 00 2F 92 80 13 01 00 00 00 00 00 3E [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 2F 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 01 [12:07:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:07:41]wFMCommunicate OK [12:07:41]SAM_PROTO_GetShiftState done [12:07:41]FM_GetShiftState done [12:07:41]opened in 1729816399 [12:07:41]opened+sec_in_day 1729902799 [12:07:41]quantity*price = 100015 [12:07:41]sum+1 = 100017 [12:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 129 25.10.2024 12:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191390 ФПД: 183808524846234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191390&fm=183808524846234&tin=02508201610067®Number=0000000000091776&sum=100000 [12:07:43]StoreToDocumentArchive [12:07:43]shift 540 fd 191390 [12:07:43]save to /storage/0540/doc_00191390 [12:07:43]save last doc name /storage/0540/doc_00191390 to /storage/kkm_last_doc_name [12:07:43]save OK [12:07:43]Clear old archive folders... [12:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:43]tlvbuf is 01789EF0 [12:07:43]SAM_PROTO_ClearQueue [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 09 00 00 [12:07:43]Write to MH i2c: E2 08 00 3C 92 80 09 00 00 00 00 00 00 40 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 3C 92 00 90 00 42 [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_ClearQueue done [12:07:43]KKMCreateOFDPacket [12:07:43]OFDProtocolAddRootSTLVToBuf [12:07:43]FM_MakeSignedData [12:07:43]FM_MakeSignedData [12:07:43]SAM_PROTO_SignData [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 01 02 [12:07:43]Write to MH i2c: E2 08 00 3D 92 80 0D 01 02 00 00 00 00 48 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 3D 92 00 90 00 43 [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=255 [12:07:43]MH_SAM_APDU [12:07: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 16 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EB 02 00 35 04 06 00 A7 [12:07:43]Write to MH i2c: E2 02 01 3E 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 16 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EB 02 00 35 04 06 00 A7 00 00 C9 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 3E 92 00 90 00 44 [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=10 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 02 02 05 2C 41 D4 84 9A [12:07:43]Write to MH i2c: E2 0D 00 3F 92 80 0D 02 02 05 00 2C 41 D4 84 9A 00 00 B4 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 3F 92 00 90 00 45 [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 03 02 [12:07:43]Write to MH i2c: E2 08 00 40 92 80 0D 03 02 00 00 00 00 4D [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0B 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0B 00 40 92 00 08 53 6A 4B C1 9B B8 2F 90 00 A1 [12:07:43]RAPDU: 08 53 6A 4B C1 9B B8 2F 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_SignData done [12:07:43]FM_MakeSignedData done [12:07:43]CreateOFDProtocolMessage [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 11 00 00 [12:07:43]Write to MH i2c: E2 08 00 41 92 80 11 00 00 00 00 00 00 4D [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 41 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [12:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:07:43]wFMCommunicate OK [12:07:43]CreateOFDProtocolMessage done [12:07:43]OFDSenderStorePacket 191390 [12:07:43]StoreOFDPacket docnum=191390 [12:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 3F 07 01 B9 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 16 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EB 02 00 35 04 06 00 A7 2C 41 D4 84 9A 08 53 6A 4B C1 9B B8 2F [12:07:43]CheckFolder [12:07:43]dirname=/storage/ofd_packets [12:07:43]CheckFolder done [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00191390 [12:07:43]NVStorageSaveData ofd_packets/00191390 [12:07:43]File name is /storage/ofd_packets/00191390 [12:07:43]Write 301 bytes [12:07:43]NVStorageSaveData done [12:07:43]OFDSenderStorePacket done [12:07:43]KKMCreateOFDPacket done [12:07:43]NVStorageSaveData kkm_last_timestamp [12:07:43]File name is /storage/kkm_last_timestamp [12:07:43]Write 4 bytes [12:07:43]NVStorageSaveData done [12:07:43]ExternCall_PrintAddStr [12:07:43]wPrintStart [12:07:43]Write to MH i2c: 01 00 00 42 92 D4 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 42 92 00 00 00 00 00 FF 0F E9 [12:07:43]RasterBufferAndPrint [12:07:43]line Счет N : (1)30684 [12:07:43]line ИНН: 02508201610067 [12:07:43]line Контрольно-Кассовый Чек [12:07:43]line ПРОДАЖА [12:07:43]line ТРК (МРК, ГНК) : 12 [12:07:43]line Товар: 2710124130 [12:07:43]line Аи-92-К-5 [12:07:43]line 14.950 * 66.90 [12:07:43]line = 1000.16 [12:07:43]line НДС 12% НСП 1% [12:07:43]line > о реализуемом товаре [12:07:43]line ОКРУГЛЕНИЕ: -0.16 [12:07:43]line ИТОГО: 1000.00 [12:07:43]line Внесено: 1000.00 [12:07:43]line СДАЧА: 0.00 [12:07:43]line НСП 1% : 8.85 [12:07:43]line НДС 12% : 106.21 [12:07:43]line Наличными: 1000.00 [12:07:43]line Безнал.: 0.00 [12:07:43]line Место: АЗС № 170 "Партнер Нефть" [12:07:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:07:43]line СНО: Общий режим [12:07:43]line Чек 129 25.10.2024 12:07 [12:07:43]line Смена: 540 ФФД: 1.0 [12:07:43]line ЗНМ: 0300000110 [12:07:43]line РНМ: 0000000000091776 [12:07:43]line Версия ККМ: 001 [12:07:43]line ФМ: 0000000000871754 [12:07:43]line ФД: 191390 [12:07:43]line ФПД: 183808524846234 [12:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191390&fm=183808524846234&tin=02508201610067®Number=0000000000091776&sum=100000 [12:07:43]OFD Sender: Processing packet 191390 [packets to send 75, broken 74] [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00191390 [12:07:43]OFD Sender: To server: pG, [12:07:43]CommunicateWithHost lk.salyk.kg:30040 [12:07:43]ConnectInit lk.salyk.kg [12:07:43]written 0, free lines is 4095 [12:07:44]Connected sock=10 [12:07:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 3F 07 01 B9 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 16 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EB 02 00 35 04 06 00 A7 2C 41 D4 84 9A 08 53 6A 4B C1 9B B8 2F [12:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 36 47 00 F2 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EB 02 00 F4 03 04 00 E5 2E 1B 67 B6 04 01 00 00 1F E3 11 8D B8 B1 84 67 [12:07:44]CommunicateWithHost err = 0 [12:07:44]CheckOFDResponse [12:07:44]1017 (14) - 77093643461234 [12:07:44]1041 (16) - 0000000000871754 [12:07:44]1040 (4) - 191390 [12:07:44]1012 (4) - 25.10.2024 05:38 [12:07:44]1206 (1) - 0 [12:07:44]OFD Sender: Remove packet 191390 [12:07:44]ProducePacketName [12:07:44]name=ofd_packets/00191390 [12:07:44]NVStorageDeleteData [12:07:44]Write to MH i2c: 01 00 00 6D 92 FF [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 6D 92 00 00 00 00 00 B6 0C C8 [12:07:44]RasterBufferAndPrint [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]written 0, free lines is 3262 [12:07:44]MH_Cut [12:07:44]Write to MH i2c: D1 01 00 74 92 01 D8 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 01 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 01 00 74 92 00 D7 [12:07:44]Write to MH i2c: 01 00 00 75 92 07 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]OFD Sender: No OFD packet to send [12:07:45]*** Cut start [12:07:45]*** Partial cut [12:07:45]*** CUTSNS_PIN = 1 [12:07:45]*** CUTSNS_PIN = 0 [12:07:45]*** Brake cut motor [12:07:45]Read from MH i2c: 01 [12:07:45]MH_I2C_Read... [12:07:45]*** Stop cut motor [12:07:45]*** Cut end [12:07:45]Read from MH i2c: 01 07 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 75 92 00 00 00 00 00 FF 0F 1C [12:07:45]process_action close_receipt done [12:07:45]requested_data is exist [12:07:45]produce_requested_data [12:07:45]requested_item fm.sn is exist - process it [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 11 00 00 [12:07:45]Write to MH i2c: E2 08 00 76 92 80 11 00 00 00 00 00 00 82 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 17 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 17 00 76 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [12:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:07:45]wFMCommunicate OK [12:07:45]requested_item fd.num is exist - process it [12:07:45]SAM_PROTO_GetFieldsCounters [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 13 00 00 [12:07:45]Write to MH i2c: E2 08 00 77 92 80 13 00 00 00 00 00 00 85 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 62 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 62 00 77 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetFieldsCounters done [12:07:46]requested_item shift.num is exist - process it [12:07:46]requested_item shift.opened is exist - process it [12:07:46]req_shift_opened [12:07:46]FM_GetShiftState [12:07:46]SAM_PROTO_GetShiftState [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 13 01 00 [12:07:46]Write to MH i2c: E2 08 00 78 92 80 13 01 00 00 00 00 00 87 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 78 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4A [12:07:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetShiftState done [12:07:46]FM_GetShiftState done [12:07:46]req_shift_opened done [12:07:46]requested_item shift.open_date is exist - process it [12:07:46]req_shift_open_date [12:07:46]req_shift_open_date done [12:07:46]produce_requested_data done [12:07:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191390,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:07:46]process_action_free close_receipt [12:07:46]json_value_free [12:07:46]json_value_free done [12:07:46]process_json_proto returns [12:07:46]Send response to host [12:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191390,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:07:46]free response buf [12:07:46]execute_script done [12:07:46]execute_script returns [12:07:46]free content buf [12:07:46]Sock 9.Close socket [12:07:46]Sock 9.Thread stoped [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:26]accept exits with 8 [12:10:26]New connection [12:10:26]New thread 3066817892 created [12:10:26]Thread 3066961252 joined [12:10:26]Waiting for new connection... [12:10:26] Sock 8.Parse request [12:10:26]Sock 8.Check first char [12:10:26]Sock 8.First char is OK [12:10:26]request: POST /json_proto HTTP/1.0 [12:10:26]Method: POST [12:10:26]URL: /json_proto [12:10:26]Method is POST - this is cgi request [12:10:26]url: /json_proto [12:10:26]query_string will be loaded in cgi processing [12:10:26]execute_cgi json_proto POST (null) [12:10:26]execute_cgi path=json_proto method=POST [12:10:26]POST find Content-Length [12:10:26]Host: 172.17.63.131:8080 [12:10:26]Content-Length: 678 [12:10:26]Content-Type: application/json [12:10:26] [12:10:26]POST finish read [12:10:26]Found Content-Length = 678 [12:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:10:26]execute_script... [12:10: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)30685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:10:26]POST & json_proto [12:10:26]process_json_proto [12:10:26]json parsed OK: [12:10:26]protocol is kg_v1.0 [12:10:26]action value=close_receipt [12:10:26]process_action close_receipt [12:10:26]cmd_close_receipt [12:10:26]MH_GetDate [12:10:26]Write to MH i2c: F0 00 00 79 92 FA [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: F0 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: F0 09 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: F0 09 00 79 92 00 BB 8A 1B 67 22 05 6E 64 C3 [12:10:26]GetLastDocTimeStamp 1729858070 [12:10:26]current date 1729858235 [12:10:26]FM_GetShiftState [12:10:26]SAM_PROTO_GetShiftState [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 13 01 00 [12:10:26]Write to MH i2c: E2 08 00 7A 92 80 13 01 00 00 00 00 00 89 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0E 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0E 00 7A 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4C [12:10:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:10:26]wFMCommunicate OK [12:10:26]SAM_PROTO_GetShiftState done [12:10:26]FM_GetShiftState done [12:10:26]opened in 1729816399 [12:10:26]opened+sec_in_day 1729902799 [12:10:26]quantity*price = 100050 [12:10:26]sum+1 = 100052 [12:10: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 130 25.10.2024 12:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191391 ФПД: 265379376165296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121035&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191391&fm=265379376165296&tin=02508201610067®Number=0000000000091776&sum=100000 [12:10:27]StoreToDocumentArchive [12:10:27]shift 540 fd 191391 [12:10:27]save to /storage/0540/doc_00191391 [12:10:27]save last doc name /storage/0540/doc_00191391 to /storage/kkm_last_doc_name [12:10:27]save OK [12:10:27]Clear old archive folders... [12:10:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:10:27]tlvbuf is 017F13E0 [12:10:27]SAM_PROTO_ClearQueue [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 09 00 00 [12:10:27]Write to MH i2c: E2 08 00 87 92 80 09 00 00 00 00 00 00 8B [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 03 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 03 00 87 92 00 90 00 8D [12:10:27]RAPDU: 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_ClearQueue done [12:10:27]KKMCreateOFDPacket [12:10:27]OFDProtocolAddRootSTLVToBuf [12:10:27]FM_MakeSignedData [12:10:27]FM_MakeSignedData [12:10:27]SAM_PROTO_SignData [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 0D 01 02 [12:10:27]Write to MH i2c: E2 08 00 88 92 80 0D 01 02 00 00 00 00 93 [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 03 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 03 00 88 92 00 90 00 8E [12:10:27]RAPDU: 90 00 [12:10:27]wFMCommunicate OK [12:10:27]wFMCommunicate request_size=255 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 BB 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EB 02 00 35 04 06 00 F1 5C 73 72 [12:10:28]Write to MH i2c: E2 02 01 89 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BB 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EB 02 00 35 04 06 00 F1 5C 73 72 00 00 42 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 89 92 00 90 00 8F [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]wFMCommunicate request_size=7 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 0D 02 02 02 71 B0 [12:10:28]Write to MH i2c: E2 0A 00 8A 92 80 0D 02 02 02 00 71 B0 00 00 BB [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 03 00 8A 92 00 90 00 90 [12:10:28]RAPDU: 90 00 [12:10:28]wFMCommunicate OK [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 0D 03 02 [12:10:28]Write to MH i2c: E2 08 00 8B 92 80 0D 03 02 00 00 00 00 98 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0B 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0B 00 8B 92 00 C8 04 2F 09 B1 86 9D 1E 90 00 8F [12:10:28]RAPDU: C8 04 2F 09 B1 86 9D 1E 90 00 [12:10:28]wFMCommunicate OK [12:10:28]SAM_PROTO_SignData done [12:10:28]FM_MakeSignedData done [12:10:28]CreateOFDProtocolMessage [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 11 00 00 [12:10:28]Write to MH i2c: E2 08 00 8C 92 80 11 00 00 00 00 00 00 98 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 17 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 17 00 8C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [12:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:10:28]wFMCommunicate OK [12:10:28]CreateOFDProtocolMessage done [12:10:28]OFDSenderStorePacket 191391 [12:10:28]StoreOFDPacket docnum=191391 [12:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A0 3D 04 01 75 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 BB 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EB 02 00 35 04 06 00 F1 5C 73 72 71 B0 C8 04 2F 09 B1 86 9D 1E [12:10:28]CheckFolder [12:10:28]dirname=/storage/ofd_packets [12:10:28]CheckFolder done [12:10:28]ProducePacketName [12:10:28]name=ofd_packets/00191391 [12:10:28]NVStorageSaveData ofd_packets/00191391 [12:10:28]File name is /storage/ofd_packets/00191391 [12:10:28]Write 298 bytes [12:10:28]NVStorageSaveData done [12:10:28]OFDSenderStorePacket done [12:10:28]KKMCreateOFDPacket done [12:10:28]NVStorageSaveData kkm_last_timestamp [12:10:28]File name is /storage/kkm_last_timestamp [12:10:28]Write 4 bytes [12:10:28]NVStorageSaveData done [12:10:28]ExternCall_PrintAddStr [12:10:28]wPrintStart [12:10:28]Write to MH i2c: 01 00 00 8D 92 1F [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 8D 92 00 00 00 00 00 FF 0F 34 [12:10:28]RasterBufferAndPrint [12:10:28]line Счет N : (1)30685 [12:10:28]line ИНН: 02508201610067 [12:10:28]line Контрольно-Кассовый Чек [12:10:28]line ПРОДАЖА [12:10:28]line ТРК (МРК, ГНК) : 22 [12:10:28]line Товар: 2710194210 [12:10:28]line ДТ-К-5 [12:10:28]line 13.130 * 76.20 [12:10:28]line = 1000.51 [12:10:28]line НДС 12% НСП 1% [12:10:28]line > о реализуемом товаре [12:10:28]line ОКРУГЛЕНИЕ: -0.51 [12:10:28]line ИТОГО: 1000.00 [12:10:28]line Внесено: 1000.00 [12:10:28]line СДАЧА: 0.00 [12:10:28]line НСП 1% : 8.85 [12:10:28]line НДС 12% : 106.25 [12:10:28]line Наличными: 1000.00 [12:10:28]line Безнал.: 0.00 [12:10:28]line Место: АЗС № 170 "Партнер Нефть" [12:10:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:10:28]line СНО: Общий режим [12:10:28]line Чек 130 25.10.2024 12:10 [12:10:28]line Смена: 540 ФФД: 1.0 [12:10:28]line ЗНМ: 0300000110 [12:10:28]line РНМ: 0000000000091776 [12:10:28]line Версия ККМ: 001 [12:10:28]line ФМ: 0000000000871754 [12:10:28]line ФД: 191391 [12:10:28]line ФПД: 265379376165296 [12:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121035&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191391&fm=265379376165296&tin=02508201610067®Number=0000000000091776&sum=100000 [12:10:28]OFD Sender: Processing packet 191391 [packets to send 75, broken 74] [12:10:28]ProducePacketName [12:10:28]name=ofd_packets/00191391 [12:10:28]OFD Sender: To server: pG, [12:10:28]CommunicateWithHost lk.salyk.kg:30040 [12:10:28]ConnectInit lk.salyk.kg [12:10:28]written 0, free lines is 4095 [12:10:28]Connected sock=10 [12:10:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A0 3D 04 01 75 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 BB 8A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EB 02 00 35 04 06 00 F1 5C 73 72 71 B0 C8 04 2F 09 B1 86 9D 1E [12:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE 52 47 00 E9 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EB 02 00 F4 03 04 00 8A 2F 1B 67 B6 04 01 00 00 03 7E 7A F3 E7 8B 5B 63 [12:10:29]CommunicateWithHost err = 0 [12:10:29]CheckOFDResponse [12:10:29]1017 (14) - 77093643461234 [12:10:29]1041 (16) - 0000000000871754 [12:10:29]1040 (4) - 191391 [12:10:29]1012 (4) - 25.10.2024 05:41 [12:10:29]1206 (1) - 0 [12:10:29]OFD Sender: Remove packet 191391 [12:10:29]ProducePacketName [12:10:29]name=ofd_packets/00191391 [12:10:29]NVStorageDeleteData [12:10:29]Write to MH i2c: 01 00 00 B8 92 4A [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 B8 92 00 00 00 00 00 B6 0C 13 [12:10:29]RasterBufferAndPrint [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]line [12:10:29]written 0, free lines is 3262 [12:10:29]MH_Cut [12:10:29]Write to MH i2c: D1 01 00 BF 92 01 23 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: D1 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: D1 01 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: D1 01 00 BF 92 00 22 [12:10:29]Write to MH i2c: 01 00 00 C0 92 52 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]OFD Sender: No OFD packet to send [12:10:30]*** Cut start [12:10:30]*** Partial cut [12:10:30]*** CUTSNS_PIN = 1 [12:10:30]*** CUTSNS_PIN = 0 [12:10:30]*** Brake cut motor [12:10:30]Read from MH i2c: 01 [12:10:30]MH_I2C_Read... [12:10:30]*** Stop cut motor [12:10:30]*** Cut end [12:10:30]Read from MH i2c: 01 07 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: 01 07 00 C0 92 00 00 00 00 00 FF 0F 67 [12:10:30]process_action close_receipt done [12:10:30]requested_data is exist [12:10:30]produce_requested_data [12:10:30]requested_item fm.sn is exist - process it [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 11 00 00 [12:10:30]Write to MH i2c: E2 08 00 C1 92 80 11 00 00 00 00 00 00 CD [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 17 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 17 00 C1 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [12:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:10:30]wFMCommunicate OK [12:10:30]requested_item fd.num is exist - process it [12:10:30]SAM_PROTO_GetFieldsCounters [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 13 00 00 [12:10:30]Write to MH i2c: E2 08 00 C2 92 80 13 00 00 00 00 00 00 D0 [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 62 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 62 00 C2 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:30]wFMCommunicate OK [12:10:30]SAM_PROTO_GetFieldsCounters done [12:10:30]requested_item shift.num is exist - process it [12:10:30]requested_item shift.opened is exist - process it [12:10:30]req_shift_opened [12:10:30]FM_GetShiftState [12:10:30]SAM_PROTO_GetShiftState [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 13 01 00 [12:10:30]Write to MH i2c: E2 08 00 C3 92 80 13 01 00 00 00 00 00 D2 [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 0E 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 0E 00 C3 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 95 [12:10:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:10:30]wFMCommunicate OK [12:10:30]SAM_PROTO_GetShiftState done [12:10:30]FM_GetShiftState done [12:10:30]req_shift_opened done [12:10:30]requested_item shift.open_date is exist - process it [12:10:30]req_shift_open_date [12:10:30]req_shift_open_date done [12:10:30]produce_requested_data done [12:10:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191391,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:10:30]process_action_free close_receipt [12:10:30]json_value_free [12:10:30]json_value_free done [12:10:30]process_json_proto returns [12:10:30]Send response to host [12:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191391,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:10:30]free response buf [12:10:30]execute_script done [12:10:30]execute_script returns [12:10:30]free content buf [12:10:30]Sock 8.Close socket [12:10:30]Sock 8.Thread stoped [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:13]accept exits with 9 [12:14:13]New connection [12:14:13]New thread 3066961252 created [12:14:13]Thread 3066817892 joined [12:14:13]Waiting for new connection... [12:14:13] Sock 9.Parse request [12:14:13]Sock 9.Check first char [12:14:13]Sock 9.First char is OK [12:14:13]request: POST /json_proto HTTP/1.0 [12:14:13]Method: POST [12:14:13]URL: /json_proto [12:14:13]Method is POST - this is cgi request [12:14:13]url: /json_proto [12:14:13]query_string will be loaded in cgi processing [12:14:13]execute_cgi json_proto POST (null) [12:14:13]execute_cgi path=json_proto method=POST [12:14:13]POST find Content-Length [12:14:13]Host: 172.17.63.131:8080 [12:14:13]Content-Length: 681 [12:14:13]Content-Type: application/json [12:14:13] [12:14:13]POST finish read [12:14:13]Found Content-Length = 681 [12:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:13]execute_script... [12:14:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:13]POST & json_proto [12:14:13]process_json_proto [12:14:13]json parsed OK: [12:14:13]protocol is kg_v1.0 [12:14:13]action value=close_receipt [12:14:13]process_action close_receipt [12:14:13]cmd_close_receipt [12:14:13]MH_GetDate [12:14:13]Write to MH i2c: F0 00 00 C4 92 45 [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: F0 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: F0 09 00 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: F0 09 00 C4 92 00 9E 8B 1B 67 22 05 6E 64 F2 [12:14:13]GetLastDocTimeStamp 1729858235 [12:14:13]current date 1729858462 [12:14:13]FM_GetShiftState [12:14:13]SAM_PROTO_GetShiftState [12:14:13]wFMCommunicate request_size=4 [12:14:13]MH_SAM_APDU [12:14:13]CAPDU: 80 13 01 00 [12:14:13]Write to MH i2c: E2 08 00 C5 92 80 13 01 00 00 00 00 00 D4 [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:13]Read from MH i2c: E2 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 0E 00 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 0E 00 C5 92 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 97 [12:14:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:14:13]wFMCommunicate OK [12:14:13]SAM_PROTO_GetShiftState done [12:14:13]FM_GetShiftState done [12:14:13]opened in 1729816399 [12:14:13]opened+sec_in_day 1729902799 [12:14:13]quantity*price = 100015 [12:14:13]sum+1 = 100017 [12:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 131 25.10.2024 12:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191392 ФПД: 182775260790000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191392&fm=182775260790000&tin=02508201610067®Number=0000000000091776&sum=100000 [12:14:15]StoreToDocumentArchive [12:14:15]shift 540 fd 191392 [12:14:15]save to /storage/0540/doc_00191392 [12:14:15]save last doc name /storage/0540/doc_00191392 to /storage/kkm_last_doc_name [12:14:15]save OK [12:14:15]Clear old archive folders... [12:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:15]tlvbuf is B6DAA010 [12:14:15]SAM_PROTO_ClearQueue [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 09 00 00 [12:14:15]Write to MH i2c: E2 08 00 D2 92 80 09 00 00 00 00 00 00 D6 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 D2 92 00 90 00 D8 [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]SAM_PROTO_ClearQueue done [12:14:15]KKMCreateOFDPacket [12:14:15]OFDProtocolAddRootSTLVToBuf [12:14:15]FM_MakeSignedData [12:14:15]FM_MakeSignedData [12:14:15]SAM_PROTO_SignData [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 01 02 [12:14:15]Write to MH i2c: E2 08 00 D3 92 80 0D 01 02 00 00 00 00 DE [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 D3 92 00 90 00 D9 [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]wFMCommunicate request_size=255 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 9E 8B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EB 02 00 35 04 06 00 A6 [12:14:15]Write to MH i2c: E2 02 01 D4 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 9E 8B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EB 02 00 35 04 06 00 A6 00 00 EB [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 D4 92 00 90 00 DA [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]wFMCommunicate request_size=10 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 02 02 05 3B AE 7E 3C F0 [12:14:15]Write to MH i2c: E2 0D 00 D5 92 80 0D 02 02 05 00 3B AE 7E 3C F0 00 00 7E [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 D5 92 00 90 00 DB [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 03 02 [12:14:15]Write to MH i2c: E2 08 00 D6 92 80 0D 03 02 00 00 00 00 E3 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 0B 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 0B 00 D6 92 00 D5 C2 65 A6 15 B9 C0 13 90 00 27 [12:14:15]RAPDU: D5 C2 65 A6 15 B9 C0 13 90 00 [12:14:15]wFMCommunicate OK [12:14:15]SAM_PROTO_SignData done [12:14:15]FM_MakeSignedData done [12:14:15]CreateOFDProtocolMessage [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 11 00 00 [12:14:15]Write to MH i2c: E2 08 00 D7 92 80 11 00 00 00 00 00 00 E3 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 17 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 17 00 D7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [12:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:15]wFMCommunicate OK [12:14:15]CreateOFDProtocolMessage done [12:14:15]OFDSenderStorePacket 191392 [12:14:15]StoreOFDPacket docnum=191392 [12:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED A7 07 01 19 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 9E 8B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EB 02 00 35 04 06 00 A6 3B AE 7E 3C F0 D5 C2 65 A6 15 B9 C0 13 [12:14:15]CheckFolder [12:14:15]dirname=/storage/ofd_packets [12:14:15]CheckFolder done [12:14:15]ProducePacketName [12:14:15]name=ofd_packets/00191392 [12:14:15]NVStorageSaveData ofd_packets/00191392 [12:14:15]File name is /storage/ofd_packets/00191392 [12:14:15]Write 301 bytes [12:14:15]NVStorageSaveData done [12:14:15]OFDSenderStorePacket done [12:14:15]KKMCreateOFDPacket done [12:14:15]NVStorageSaveData kkm_last_timestamp [12:14:15]File name is /storage/kkm_last_timestamp [12:14:15]Write 4 bytes [12:14:15]NVStorageSaveData done [12:14:15]ExternCall_PrintAddStr [12:14:15]wPrintStart [12:14:15]Write to MH i2c: 01 00 00 D8 92 6A [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 D8 92 00 00 00 00 00 FF 0F 7F [12:14:15]RasterBufferAndPrint [12:14:15]line Счет N : (1)30686 [12:14:15]line ИНН: 02508201610067 [12:14:15]line Контрольно-Кассовый Чек [12:14:15]line ПРОДАЖА [12:14:15]line ТРК (МРК, ГНК) : 12 [12:14:15]line Товар: 2710124130 [12:14:15]line Аи-92-К-5 [12:14:15]line 14.950 * 66.90 [12:14:15]line = 1000.16 [12:14:15]line НДС 12% НСП 1% [12:14:15]line > о реализуемом товаре [12:14:15]line ОКРУГЛЕНИЕ: -0.16 [12:14:15]line ИТОГО: 1000.00 [12:14:15]line Внесено: 1000.00 [12:14:15]line СДАЧА: 0.00 [12:14:15]line НСП 1% : 8.85 [12:14:15]line НДС 12% : 106.21 [12:14:15]line Наличными: 1000.00 [12:14:15]line Безнал.: 0.00 [12:14:15]line Место: АЗС № 170 "Партнер Нефть" [12:14:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:14:15]line СНО: Общий режим [12:14:15]line Чек 131 25.10.2024 12:14 [12:14:15]line Смена: 540 ФФД: 1.0 [12:14:15]line ЗНМ: 0300000110 [12:14:15]line РНМ: 0000000000091776 [12:14:15]line Версия ККМ: 001 [12:14:15]line ФМ: 0000000000871754 [12:14:15]line ФД: 191392 [12:14:15]line ФПД: 182775260790000 [12:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191392&fm=182775260790000&tin=02508201610067®Number=0000000000091776&sum=100000 [12:14:15]OFD Sender: Processing packet 191392 [packets to send 75, broken 74] [12:14:15]ProducePacketName [12:14:15]name=ofd_packets/00191392 [12:14:15]OFD Sender: To server: pG, [12:14:15]CommunicateWithHost lk.salyk.kg:30040 [12:14:15]ConnectInit lk.salyk.kg [12:14:15]written 0, free lines is 4095 [12:14:16]Connected sock=10 [12:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED A7 07 01 19 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 9E 8B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EB 02 00 35 04 06 00 A6 3B AE 7E 3C F0 D5 C2 65 A6 15 B9 C0 13 [12:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 D1 47 00 09 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 31 37 35 34 10 04 04 00 A0 EB 02 00 F4 03 04 00 6D 30 1B 67 B6 04 01 00 00 EE 83 43 A9 FC D2 09 32 [12:14:16]CommunicateWithHost err = 0 [12:14:16]CheckOFDResponse [12:14:16]1017 (14) - 77093643461234 [12:14:16]1041 (16) - 0000000000871754 [12:14:16]1040 (4) - 191392 [12:14:16]1012 (4) - 25.10.2024 05:45 [12:14:16]1206 (1) - 0 [12:14:16]OFD Sender: Remove packet 191392 [12:14:16]ProducePacketName [12:14:16]name=ofd_packets/00191392 [12:14:16]NVStorageDeleteData [12:14:16]Write to MH i2c: 01 00 00 03 93 96 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 03 93 00 00 00 00 00 A5 0C 4E [12:14:16]RasterBufferAndPrint [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]written 0, free lines is 3245 [12:14:16]MH_Cut [12:14:16]Write to MH i2c: D1 01 00 0A 93 01 6F [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 01 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 01 00 0A 93 00 6E [12:14:16]Write to MH i2c: 01 00 00 0B 93 9E [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]OFD Sender: No OFD packet to send [12:14:17]*** Cut start [12:14:17]*** Partial cut [12:14:17]*** CUTSNS_PIN = 1 [12:14:17]*** CUTSNS_PIN = 0 [12:14:17]*** Brake cut motor [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]*** Stop cut motor [12:14:17]*** Cut end [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 0B 93 00 00 00 00 00 FF 0F B3 [12:14:17]process_action close_receipt done [12:14:17]requested_data is exist [12:14:17]produce_requested_data [12:14:17]requested_item fm.sn is exist - process it [12:14:17]wFMCommunicate request_size=4 [12:14:17]MH_SAM_APDU [12:14:17]CAPDU: 80 11 00 00 [12:14:17]Write to MH i2c: E2 08 00 0C 93 80 11 00 00 00 00 00 00 19 [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:17]Read from MH i2c: E2 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 17 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 17 00 0C 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [12:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:17]wFMCommunicate OK [12:14:17]requested_item fd.num is exist - process it [12:14:17]SAM_PROTO_GetFieldsCounters [12:14:17]wFMCommunicate request_size=4 [12:14:17]MH_SAM_APDU [12:14:17]CAPDU: 80 13 00 00 [12:14:17]Write to MH i2c: E2 08 00 0D 93 80 13 00 00 00 00 00 00 1C [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 62 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 62 00 0D 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:14:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetFieldsCounters done [12:14:18]requested_item shift.num is exist - process it [12:14:18]requested_item shift.opened is exist - process it [12:14:18]req_shift_opened [12:14:18]FM_GetShiftState [12:14:18]SAM_PROTO_GetShiftState [12:14:18]wFMCommunicate request_size=4 [12:14:18]MH_SAM_APDU [12:14:18]CAPDU: 80 13 01 00 [12:14:18]Write to MH i2c: E2 08 00 0E 93 80 13 01 00 00 00 00 00 1E [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 0E 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E1 [12:14:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetShiftState done [12:14:18]FM_GetShiftState done [12:14:18]req_shift_opened done [12:14:18]requested_item shift.open_date is exist - process it [12:14:18]req_shift_open_date [12:14:18]req_shift_open_date done [12:14:18]produce_requested_data done [12:14:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191392,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:14:18]process_action_free close_receipt [12:14:18]json_value_free [12:14:18]json_value_free done [12:14:18]process_json_proto returns [12:14:18]Send response to host [12:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191392,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:14:18]free response buf [12:14:18]execute_script done [12:14:18]execute_script returns [12:14:18]free content buf [12:14:18]Sock 9.Close socket [12:14:18]Sock 9.Thread stoped [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17: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:31]accept exits with 8 [12:17:31]New connection [12:17:31]New thread 3066817892 created [12:17:31]Thread 3066961252 joined [12:17:31]Waiting for new connection... [12:17:31] Sock 8.Parse request [12:17:31]Sock 8.Check first char [12:17:31]Sock 8.First char is OK [12:17:31]request: POST /json_proto HTTP/1.0 [12:17:31]Method: POST [12:17:31]URL: /json_proto [12:17:31]Method is POST - this is cgi request [12:17:31]url: /json_proto [12:17:31]query_string will be loaded in cgi processing [12:17:31]execute_cgi json_proto POST (null) [12:17:31]execute_cgi path=json_proto method=POST [12:17:31]POST find Content-Length [12:17:31]Host: 172.17.63.131:8080 [12:17:31]Content-Length: 676 [12:17:31]Content-Type: application/json [12:17:31] [12:17:31]POST finish read [12:17:31]Found Content-Length = 676 [12:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:31]execute_script... [12:17: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)30687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:31]POST & json_proto [12:17:31]process_json_proto [12:17:31]json parsed OK: [12:17:31]protocol is kg_v1.0 [12:17:31]action value=close_receipt [12:17:31]process_action close_receipt [12:17:31]cmd_close_receipt [12:17:31]MH_GetDate [12:17:31]Write to MH i2c: F0 00 00 0F 93 91 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: F0 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: F0 09 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: F0 09 00 0F 93 00 64 8C 1B 67 22 05 6E 64 05 [12:17:31]GetLastDocTimeStamp 1729858462 [12:17:31]current date 1729858660 [12:17:31]FM_GetShiftState [12:17:31]SAM_PROTO_GetShiftState [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 13 01 00 [12:17:31]Write to MH i2c: E2 08 00 10 93 80 13 01 00 00 00 00 00 20 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0E 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0E 00 10 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E3 [12:17:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_GetShiftState done [12:17:31]FM_GetShiftState done [12:17:31]opened in 1729816399 [12:17:31]opened+sec_in_day 1729902799 [12:17:31]quantity*price = 30038 [12:17:31]sum+1 = 30039 [12:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 132 25.10.2024 12:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191393 ФПД: 17447758380286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121740&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191393&fm=17447758380286&tin=02508201610067®Number=0000000000091776&sum=30000 [12:17:32]StoreToDocumentArchive [12:17:32]shift 540 fd 191393 [12:17:32]save to /storage/0540/doc_00191393 [12:17:32]save last doc name /storage/0540/doc_00191393 to /storage/kkm_last_doc_name [12:17:32]save OK [12:17:32]Clear old archive folders... [12:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:32]tlvbuf is 016CE620 [12:17:32]SAM_PROTO_ClearQueue [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 09 00 00 [12:17:32]Write to MH i2c: E2 08 00 1D 93 80 09 00 00 00 00 00 00 22 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 1D 93 00 90 00 24 [12:17:32]RAPDU: 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_ClearQueue done [12:17:32]KKMCreateOFDPacket [12:17:32]OFDProtocolAddRootSTLVToBuf [12:17:32]FM_MakeSignedData [12:17:32]FM_MakeSignedData [12:17:32]SAM_PROTO_SignData [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 0D 01 02 [12:17:32]Write to MH i2c: E2 08 00 1E 93 80 0D 01 02 00 00 00 00 2A [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 1E 93 00 90 00 25 [12:17:32]RAPDU: 90 00 [12:17:32]wFMCommunicate OK [12:17:32]wFMCommunicate request_size=255 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 64 8C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EB 02 00 35 04 06 00 0F [12:17:32]Write to MH i2c: E2 02 01 1F 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 64 8C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EB 02 00 35 04 06 00 0F 00 00 63 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 1F 93 00 90 00 26 [12:17:32]RAPDU: 90 00 [12:17:32]wFMCommunicate OK [12:17:32]wFMCommunicate request_size=10 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 0D 02 02 05 DE 5F 70 BC FE [12:17:32]Write to MH i2c: E2 0D 00 20 93 80 0D 02 02 05 00 DE 5F 70 BC FE 00 00 9E [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 03 00 20 93 00 90 00 27 [12:17:32]RAPDU: 90 00 [12:17:32]wFMCommunicate OK [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 0D 03 02 [12:17:32]Write to MH i2c: E2 08 00 21 93 80 0D 03 02 00 00 00 00 2F [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0B 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0B 00 21 93 00 49 CE 43 40 6C 71 E7 F1 90 00 7F [12:17:32]RAPDU: 49 CE 43 40 6C 71 E7 F1 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_SignData done [12:17:32]FM_MakeSignedData done [12:17:32]CreateOFDProtocolMessage [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 11 00 00 [12:17:32]Write to MH i2c: E2 08 00 22 93 80 11 00 00 00 00 00 00 2F [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 17 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 17 00 22 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [12:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:32]wFMCommunicate OK [12:17:32]CreateOFDProtocolMessage done [12:17:32]OFDSenderStorePacket 191393 [12:17:32]StoreOFDPacket docnum=191393 [12:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 D1 07 01 E3 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 64 8C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EB 02 00 35 04 06 00 0F DE 5F 70 BC FE 49 CE 43 40 6C 71 E7 F1 [12:17:32]CheckFolder [12:17:32]dirname=/storage/ofd_packets [12:17:32]CheckFolder done [12:17:32]ProducePacketName [12:17:32]name=ofd_packets/00191393 [12:17:32]NVStorageSaveData ofd_packets/00191393 [12:17:32]File name is /storage/ofd_packets/00191393 [12:17:32]Write 301 bytes [12:17:32]NVStorageSaveData done [12:17:32]OFDSenderStorePacket done [12:17:32]KKMCreateOFDPacket done [12:17:32]NVStorageSaveData kkm_last_timestamp [12:17:32]File name is /storage/kkm_last_timestamp [12:17:32]Write 4 bytes [12:17:32]NVStorageSaveData done [12:17:32]ExternCall_PrintAddStr [12:17:32]wPrintStart [12:17:32]Write to MH i2c: 01 00 00 23 93 B6 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 23 93 00 00 00 00 00 FF 0F CB [12:17:32]RasterBufferAndPrint [12:17:32]line Счет N : (1)30687 [12:17:32]line ИНН: 02508201610067 [12:17:32]line Контрольно-Кассовый Чек [12:17:32]line ПРОДАЖА [12:17:32]line ТРК (МРК, ГНК) : 12 [12:17:32]line Товар: 2710124130 [12:17:32]line Аи-92-К-5 [12:17:32]line 4.490 * 66.90 [12:17:32]line = 300.38 [12:17:32]line НДС 12% НСП 1% [12:17:32]line > о реализуемом товаре [12:17:32]line ОКРУГЛЕНИЕ: -0.38 [12:17:32]line ИТОГО: 300.00 [12:17:32]line Внесено: 300.00 [12:17:32]line СДАЧА: 0.00 [12:17:32]line НСП 1% : 2.66 [12:17:32]line НДС 12% : 31.90 [12:17:32]line Наличными: 300.00 [12:17:32]line Безнал.: 0.00 [12:17:32]line Место: АЗС № 170 "Партнер Нефть" [12:17:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:17:32]line СНО: Общий режим [12:17:32]line Чек 132 25.10.2024 12:17 [12:17:32]line Смена: 540 ФФД: 1.0 [12:17:32]line ЗНМ: 0300000110 [12:17:32]line РНМ: 0000000000091776 [12:17:32]line Версия ККМ: 001 [12:17:32]line ФМ: 0000000000871754 [12:17:32]line ФД: 191393 [12:17:32]line ФПД: 17447758380286 [12:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T121740&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191393&fm=17447758380286&tin=02508201610067®Number=0000000000091776&sum=30000 [12:17:33]OFD Sender: Processing packet 191393 [packets to send 75, broken 74] [12:17:33]ProducePacketName [12:17:33]name=ofd_packets/00191393 [12:17:33]OFD Sender: To server: pG, [12:17:33]CommunicateWithHost lk.salyk.kg:30040 [12:17:33]ConnectInit lk.salyk.kg [12:17:33]written 0, free lines is 4095 [12:17:33]Connected sock=10 [12:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 D1 07 01 E3 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 64 8C 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EB 02 00 35 04 06 00 0F DE 5F 70 BC FE 49 CE 43 40 6C 71 E7 F1 [12:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F EF 47 00 E1 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EB 02 00 F4 03 04 00 32 31 1B 67 B6 04 01 00 00 A5 A9 8F 8D D0 BE 6C 7A [12:17:33]CommunicateWithHost err = 0 [12:17:33]CheckOFDResponse [12:17:33]1017 (14) - 77093643461234 [12:17:33]1041 (16) - 0000000000871754 [12:17:33]1040 (4) - 191393 [12:17:33]1012 (4) - 25.10.2024 05:48 [12:17:33]1206 (1) - 0 [12:17:33]OFD Sender: Remove packet 191393 [12:17:33]ProducePacketName [12:17:33]name=ofd_packets/00191393 [12:17:33]NVStorageDeleteData [12:17:33]Write to MH i2c: 01 00 00 4E 93 E1 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: 01 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: 01 07 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: 01 07 00 4E 93 00 00 00 00 00 A6 0C 9A [12:17:33]RasterBufferAndPrint [12:17:33]line [12:17:33]line [12:17:33]line [12:17:33]line [12:17:33]line [12:17:33]written 0, free lines is 3243 [12:17:33]MH_Cut [12:17:33]Write to MH i2c: D1 01 00 55 93 01 BA [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: D1 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: D1 01 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: D1 01 00 55 93 00 B9 [12:17:33]Write to MH i2c: 01 00 00 56 93 E9 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]OFD Sender: No OFD packet to send [12:17:34]*** Cut start [12:17:34]*** Partial cut [12:17:34]*** CUTSNS_PIN = 1 [12:17:34]*** CUTSNS_PIN = 0 [12:17:34]*** Brake cut motor [12:17:35]Read from MH i2c: 01 [12:17:35]MH_I2C_Read... [12:17:35]*** Stop cut motor [12:17:35]*** Cut end [12:17:35]Read from MH i2c: 01 07 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: 01 07 00 56 93 00 00 00 00 00 FF 0F FE [12:17:35]process_action close_receipt done [12:17:35]requested_data is exist [12:17:35]produce_requested_data [12:17:35]requested_item fm.sn is exist - process it [12:17:35]wFMCommunicate request_size=4 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 11 00 00 [12:17:35]Write to MH i2c: E2 08 00 57 93 80 11 00 00 00 00 00 00 64 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 17 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 17 00 57 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [12:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:35]wFMCommunicate OK [12:17:35]requested_item fd.num is exist - process it [12:17:35]SAM_PROTO_GetFieldsCounters [12:17:35]wFMCommunicate request_size=4 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 13 00 00 [12:17:35]Write to MH i2c: E2 08 00 58 93 80 13 00 00 00 00 00 00 67 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 62 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 62 00 58 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [12:17:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:35]wFMCommunicate OK [12:17:35]SAM_PROTO_GetFieldsCounters done [12:17:35]requested_item shift.num is exist - process it [12:17:35]requested_item shift.opened is exist - process it [12:17:35]req_shift_opened [12:17:35]FM_GetShiftState [12:17:35]SAM_PROTO_GetShiftState [12:17:35]wFMCommunicate request_size=4 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 13 01 00 [12:17:35]Write to MH i2c: E2 08 00 59 93 80 13 01 00 00 00 00 00 69 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 0E 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 0E 00 59 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2C [12:17:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:17:35]wFMCommunicate OK [12:17:35]SAM_PROTO_GetShiftState done [12:17:35]FM_GetShiftState done [12:17:35]req_shift_opened done [12:17:35]requested_item shift.open_date is exist - process it [12:17:35]req_shift_open_date [12:17:35]req_shift_open_date done [12:17:35]produce_requested_data done [12:17:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191393,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:17:35]process_action_free close_receipt [12:17:35]json_value_free [12:17:35]json_value_free done [12:17:35]process_json_proto returns [12:17:35]Send response to host [12:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191393,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:17:35]free response buf [12:17:35]execute_script done [12:17:35]execute_script returns [12:17:35]free content buf [12:17:35]Sock 8.Close socket [12:17:35]Sock 8.Thread stoped [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]accept exits with 9 [12:20:39]New connection [12:20:39]New thread 3066961252 created [12:20:39]Thread 3066817892 joined [12:20:39]Waiting for new connection... [12:20:39] Sock 9.Parse request [12:20:39]Sock 9.Check first char [12:20:39]Sock 9.First char is OK [12:20:39]request: POST /json_proto HTTP/1.0 [12:20:39]Method: POST [12:20:39]URL: /json_proto [12:20:39]Method is POST - this is cgi request [12:20:39]url: /json_proto [12:20:39]query_string will be loaded in cgi processing [12:20:39]execute_cgi json_proto POST (null) [12:20:39]execute_cgi path=json_proto method=POST [12:20:39]POST find Content-Length [12:20:39]Host: 172.17.63.131:8080 [12:20:39]Content-Length: 676 [12:20:39]Content-Type: application/json [12:20:39] [12:20:39]POST finish read [12:20:39]Found Content-Length = 676 [12:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]execute_script... [12:20: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)30688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]POST & json_proto [12:20:39]process_json_proto [12:20:39]json parsed OK: [12:20:39]protocol is kg_v1.0 [12:20:39]action value=close_receipt [12:20:39]process_action close_receipt [12:20:39]cmd_close_receipt [12:20:39]MH_GetDate [12:20:39]Write to MH i2c: F0 00 00 5A 93 DC [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 5A 93 00 1F 8D 1B 67 22 05 6E 64 0C [12:20:39]GetLastDocTimeStamp 1729858660 [12:20:39]current date 1729858847 [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 5B 93 80 13 01 00 00 00 00 00 6B [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 5B 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2E [12:20:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]opened in 1729816399 [12:20:39]opened+sec_in_day 1729902799 [12:20:39]quantity*price = 50041 [12:20:39]sum+1 = 50042 [12:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 133 25.10.2024 12:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191394 ФПД: 203013880662618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122048&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191394&fm=203013880662618&tin=02508201610067®Number=0000000000091776&sum=50000 [12:20:40]StoreToDocumentArchive [12:20:40]shift 540 fd 191394 [12:20:40]save to /storage/0540/doc_00191394 [12:20:40]save last doc name /storage/0540/doc_00191394 to /storage/kkm_last_doc_name [12:20:40]save OK [12:20:40]Clear old archive folders... [12:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:40]tlvbuf is 015F00B0 [12:20:40]SAM_PROTO_ClearQueue [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 09 00 00 [12:20:40]Write to MH i2c: E2 08 00 68 93 80 09 00 00 00 00 00 00 6D [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 68 93 00 90 00 6F [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_ClearQueue done [12:20:40]KKMCreateOFDPacket [12:20:40]OFDProtocolAddRootSTLVToBuf [12:20:40]FM_MakeSignedData [12:20:40]FM_MakeSignedData [12:20:40]SAM_PROTO_SignData [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 01 02 [12:20:40]Write to MH i2c: E2 08 00 69 93 80 0D 01 02 00 00 00 00 75 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 69 93 00 90 00 70 [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]wFMCommunicate request_size=255 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 20 8D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EB 02 00 35 04 06 00 B8 [12:20:40]Write to MH i2c: E2 02 01 6A 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 20 8D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EB 02 00 35 04 06 00 B8 00 00 22 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 6A 93 00 90 00 71 [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]wFMCommunicate request_size=10 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 02 02 05 A3 DA 3D CA 5A [12:20:40]Write to MH i2c: E2 0D 00 6B 93 80 0D 02 02 05 00 A3 DA 3D CA 5A 00 00 60 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 6B 93 00 90 00 72 [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 03 02 [12:20:40]Write to MH i2c: E2 08 00 6C 93 80 0D 03 02 00 00 00 00 7A [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0B 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0B 00 6C 93 00 A4 69 7B 5C 7E 02 5E FA 90 00 37 [12:20:40]RAPDU: A4 69 7B 5C 7E 02 5E FA 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_SignData done [12:20:40]FM_MakeSignedData done [12:20:40]CreateOFDProtocolMessage [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 11 00 00 [12:20:40]Write to MH i2c: E2 08 00 6D 93 80 11 00 00 00 00 00 00 7A [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 6D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [12:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:40]wFMCommunicate OK [12:20:40]CreateOFDProtocolMessage done [12:20:40]OFDSenderStorePacket 191394 [12:20:40]StoreOFDPacket docnum=191394 [12:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 02 07 01 A6 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 20 8D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EB 02 00 35 04 06 00 B8 A3 DA 3D CA 5A A4 69 7B 5C 7E 02 5E FA [12:20:40]CheckFolder [12:20:40]dirname=/storage/ofd_packets [12:20:40]CheckFolder done [12:20:40]ProducePacketName [12:20:40]name=ofd_packets/00191394 [12:20:40]NVStorageSaveData ofd_packets/00191394 [12:20:40]File name is /storage/ofd_packets/00191394 [12:20:40]Write 301 bytes [12:20:40]NVStorageSaveData done [12:20:40]OFDSenderStorePacket done [12:20:40]KKMCreateOFDPacket done [12:20:40]NVStorageSaveData kkm_last_timestamp [12:20:40]File name is /storage/kkm_last_timestamp [12:20:40]Write 4 bytes [12:20:40]NVStorageSaveData done [12:20:40]ExternCall_PrintAddStr [12:20:40]wPrintStart [12:20:40]Write to MH i2c: 01 00 00 6E 93 01 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 07 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 07 00 6E 93 00 00 00 00 00 FF 0F 16 [12:20:40]RasterBufferAndPrint [12:20:40]line Счет N : (1)30688 [12:20:40]line ИНН: 02508201610067 [12:20:40]line Контрольно-Кассовый Чек [12:20:40]line ПРОДАЖА [12:20:40]line ТРК (МРК, ГНК) : 12 [12:20:40]line Товар: 2710124130 [12:20:40]line Аи-92-К-5 [12:20:40]line 7.480 * 66.90 [12:20:40]line = 500.41 [12:20:40]line НДС 12% НСП 1% [12:20:40]line > о реализуемом товаре [12:20:40]line ОКРУГЛЕНИЕ: -0.41 [12:20:40]line ИТОГО: 500.00 [12:20:40]line Внесено: 500.00 [12:20:40]line СДАЧА: 0.00 [12:20:40]line НСП 1% : 4.43 [12:20:40]line НДС 12% : 53.14 [12:20:40]line Наличными: 500.00 [12:20:40]line Безнал.: 0.00 [12:20:40]line Место: АЗС № 170 "Партнер Нефть" [12:20:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:20:40]line СНО: Общий режим [12:20:40]line Чек 133 25.10.2024 12:20 [12:20:40]line Смена: 540 ФФД: 1.0 [12:20:40]line ЗНМ: 0300000110 [12:20:40]line РНМ: 0000000000091776 [12:20:40]line Версия ККМ: 001 [12:20:40]line ФМ: 0000000000871754 [12:20:40]line ФД: 191394 [12:20:40]line ФПД: 203013880662618 [12:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122048&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191394&fm=203013880662618&tin=02508201610067®Number=0000000000091776&sum=50000 [12:20:41]OFD Sender: Processing packet 191394 [packets to send 75, broken 74] [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00191394 [12:20:41]OFD Sender: To server: pG, [12:20:41]CommunicateWithHost lk.salyk.kg:30040 [12:20:41]ConnectInit lk.salyk.kg [12:20:41]written 0, free lines is 4095 [12:20:41]Connected sock=10 [12:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 02 07 01 A6 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 20 8D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EB 02 00 35 04 06 00 B8 A3 DA 3D CA 5A A4 69 7B 5C 7E 02 5E FA [12:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 8E 47 00 E6 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EB 02 00 F4 03 04 00 EE 31 1B 67 B6 04 01 00 00 27 B4 D2 B8 F2 E2 D7 72 [12:20:41]CommunicateWithHost err = 0 [12:20:41]CheckOFDResponse [12:20:41]1017 (14) - 77093643461234 [12:20:41]1041 (16) - 0000000000871754 [12:20:41]1040 (4) - 191394 [12:20:41]1012 (4) - 25.10.2024 05:51 [12:20:41]1206 (1) - 0 [12:20:41]OFD Sender: Remove packet 191394 [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00191394 [12:20:41]NVStorageDeleteData [12:20:41]Write to MH i2c: 01 00 00 99 93 2C [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 99 93 00 00 00 00 00 C5 0C 04 [12:20:41]RasterBufferAndPrint [12:20:41]line [12:20:41]line [12:20:41]line [12:20:41]line [12:20:41]line [12:20:41]written 0, free lines is 3275 [12:20:41]MH_Cut [12:20:41]Write to MH i2c: D1 01 00 A0 93 01 05 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: D1 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: D1 01 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: D1 01 00 A0 93 00 04 [12:20:41]Write to MH i2c: 01 00 00 A1 93 34 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]OFD Sender: No OFD packet to send [12:20:42]*** Cut start [12:20:42]*** Partial cut [12:20:42]*** CUTSNS_PIN = 1 [12:20:42]*** CUTSNS_PIN = 0 [12:20:42]*** Brake cut motor [12:20:42]Read from MH i2c: 01 [12:20:42]MH_I2C_Read... [12:20:42]*** Stop cut motor [12:20:42]*** Cut end [12:20:42]Read from MH i2c: 01 07 00 [12:20:42]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 A1 93 00 00 00 00 00 FF 0F 49 [12:20:43]process_action close_receipt done [12:20:43]requested_data is exist [12:20:43]produce_requested_data [12:20:43]requested_item fm.sn is exist - process it [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 A2 93 80 11 00 00 00 00 00 00 AF [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 A2 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:43]wFMCommunicate OK [12:20:43]requested_item fd.num is exist - process it [12:20:43]SAM_PROTO_GetFieldsCounters [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 00 00 [12:20:43]Write to MH i2c: E2 08 00 A3 93 80 13 00 00 00 00 00 00 B2 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 A3 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetFieldsCounters done [12:20:43]requested_item shift.num is exist - process it [12:20:43]requested_item shift.opened is exist - process it [12:20:43]req_shift_opened [12:20:43]FM_GetShiftState [12:20:43]SAM_PROTO_GetShiftState [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 01 00 [12:20:43]Write to MH i2c: E2 08 00 A4 93 80 13 01 00 00 00 00 00 B4 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 A4 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 77 [12:20:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetShiftState done [12:20:43]FM_GetShiftState done [12:20:43]req_shift_opened done [12:20:43]requested_item shift.open_date is exist - process it [12:20:43]req_shift_open_date [12:20:43]req_shift_open_date done [12:20:43]produce_requested_data done [12:20:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191394,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:20:43]process_action_free close_receipt [12:20:43]json_value_free [12:20:43]json_value_free done [12:20:43]process_json_proto returns [12:20:43]Send response to host [12:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191394,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:20:43]free response buf [12:20:43]execute_script done [12:20:43]execute_script returns [12:20:43]free content buf [12:20:43]Sock 9.Close socket [12:20:43]Sock 9.Thread stoped [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]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:27:59]accept exits with 8 [12:27:59]New connection [12:27:59]New thread 3066817892 created [12:27:59]Thread 3066961252 joined [12:27:59]Waiting for new connection... [12:27:59] Sock 8.Parse request [12:27:59]Sock 8.Check first char [12:27:59]Sock 8.First char is OK [12:27:59]request: POST /json_proto HTTP/1.0 [12:27:59]Method: POST [12:27:59]URL: /json_proto [12:27:59]Method is POST - this is cgi request [12:27:59]url: /json_proto [12:27:59]query_string will be loaded in cgi processing [12:27:59]execute_cgi json_proto POST (null) [12:27:59]execute_cgi path=json_proto method=POST [12:27:59]POST find Content-Length [12:27:59]Host: 172.17.63.131:8080 [12:27:59]Content-Length: 678 [12:27:59]Content-Type: application/json [12:27:59] [12:27:59]POST finish read [12:27:59]Found Content-Length = 678 [12:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:59]execute_script... [12:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:59]POST & json_proto [12:27:59]process_json_proto [12:27:59]json parsed OK: [12:27:59]protocol is kg_v1.0 [12:27:59]action value=close_receipt [12:27:59]process_action close_receipt [12:27:59]cmd_close_receipt [12:27:59]MH_GetDate [12:27:59]Write to MH i2c: F0 00 00 A5 93 27 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 09 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 09 00 A5 93 00 D8 8E 1B 67 22 05 6E 64 11 [12:27:59]GetLastDocTimeStamp 1729858848 [12:27:59]current date 1729859288 [12:27:59]FM_GetShiftState [12:27:59]SAM_PROTO_GetShiftState [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 13 01 00 [12:27:59]Write to MH i2c: E2 08 00 A6 93 80 13 01 00 00 00 00 00 B6 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0E 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0E 00 A6 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 79 [12:27:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:27:59]wFMCommunicate OK [12:27:59]SAM_PROTO_GetShiftState done [12:27:59]FM_GetShiftState done [12:27:59]opened in 1729816399 [12:27:59]opened+sec_in_day 1729902799 [12:27:59]quantity*price = 130073 [12:27:59]sum+1 = 130074 [12:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 134 25.10.2024 12:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191395 ФПД: 217381941456633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191395&fm=217381941456633&tin=02508201610067®Number=0000000000091776&sum=130000 [12:28:00]StoreToDocumentArchive [12:28:00]shift 540 fd 191395 [12:28:00]save to /storage/0540/doc_00191395 [12:28:00]save last doc name /storage/0540/doc_00191395 to /storage/kkm_last_doc_name [12:28:00]save OK [12:28:00]Clear old archive folders... [12:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:00]tlvbuf is 0162F970 [12:28:00]SAM_PROTO_ClearQueue [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 09 00 00 [12:28:00]Write to MH i2c: E2 08 00 B3 93 80 09 00 00 00 00 00 00 B8 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 B3 93 00 90 00 BA [12:28:01]RAPDU: 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_ClearQueue done [12:28:01]KKMCreateOFDPacket [12:28:01]OFDProtocolAddRootSTLVToBuf [12:28:01]FM_MakeSignedData [12:28:01]FM_MakeSignedData [12:28:01]SAM_PROTO_SignData [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 0D 01 02 [12:28:01]Write to MH i2c: E2 08 00 B4 93 80 0D 01 02 00 00 00 00 C0 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 B4 93 00 90 00 BB [12:28:01]RAPDU: 90 00 [12:28:01]wFMCommunicate OK [12:28:01]wFMCommunicate request_size=255 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D8 8E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EB 02 00 35 04 06 00 C5 B5 2D 66 [12:28:01]Write to MH i2c: E2 02 01 B5 93 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D8 8E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EB 02 00 35 04 06 00 C5 B5 2D 66 00 00 77 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 B5 93 00 90 00 BC [12:28:01]RAPDU: 90 00 [12:28:01]wFMCommunicate OK [12:28:01]wFMCommunicate request_size=7 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 0D 02 02 02 AE F9 [12:28:01]Write to MH i2c: E2 0A 00 B6 93 80 0D 02 02 02 00 AE F9 00 00 6E [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 03 00 B6 93 00 90 00 BD [12:28:01]RAPDU: 90 00 [12:28:01]wFMCommunicate OK [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 0D 03 02 [12:28:01]Write to MH i2c: E2 08 00 B7 93 80 0D 03 02 00 00 00 00 C5 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0B 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0B 00 B7 93 00 76 B9 71 51 7D 1A 70 96 90 00 54 [12:28:01]RAPDU: 76 B9 71 51 7D 1A 70 96 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_SignData done [12:28:01]FM_MakeSignedData done [12:28:01]CreateOFDProtocolMessage [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 11 00 00 [12:28:01]Write to MH i2c: E2 08 00 B8 93 80 11 00 00 00 00 00 00 C5 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 B8 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [12:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:01]wFMCommunicate OK [12:28:01]CreateOFDProtocolMessage done [12:28:01]OFDSenderStorePacket 191395 [12:28:01]StoreOFDPacket docnum=191395 [12:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DA 0A 04 01 12 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D8 8E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EB 02 00 35 04 06 00 C5 B5 2D 66 AE F9 76 B9 71 51 7D 1A 70 96 [12:28:01]CheckFolder [12:28:01]dirname=/storage/ofd_packets [12:28:01]CheckFolder done [12:28:01]ProducePacketName [12:28:01]name=ofd_packets/00191395 [12:28:01]NVStorageSaveData ofd_packets/00191395 [12:28:01]File name is /storage/ofd_packets/00191395 [12:28:01]Write 298 bytes [12:28:01]NVStorageSaveData done [12:28:01]OFDSenderStorePacket done [12:28:01]KKMCreateOFDPacket done [12:28:01]NVStorageSaveData kkm_last_timestamp [12:28:01]File name is /storage/kkm_last_timestamp [12:28:01]Write 4 bytes [12:28:01]NVStorageSaveData done [12:28:01]ExternCall_PrintAddStr [12:28:01]wPrintStart [12:28:01]Write to MH i2c: 01 00 00 B9 93 4C [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 B9 93 00 00 00 00 00 FF 0F 61 [12:28:01]RasterBufferAndPrint [12:28:01]line Счет N : (1)30689 [12:28:01]line ИНН: 02508201610067 [12:28:01]line Контрольно-Кассовый Чек [12:28:01]line ПРОДАЖА [12:28:01]line ТРК (МРК, ГНК) : 22 [12:28:01]line Товар: 2710194210 [12:28:01]line ДТ-К-5 [12:28:01]line 17.070 * 76.20 [12:28:01]line = 1300.73 [12:28:01]line НДС 12% НСП 1% [12:28:01]line > о реализуемом товаре [12:28:01]line ОКРУГЛЕНИЕ: -0.73 [12:28:01]line ИТОГО: 1300.00 [12:28:01]line Внесено: 1300.00 [12:28:01]line СДАЧА: 0.00 [12:28:01]line НСП 1% : 11.51 [12:28:01]line НДС 12% : 138.13 [12:28:01]line Наличными: 1300.00 [12:28:01]line Безнал.: 0.00 [12:28:01]line Место: АЗС № 170 "Партнер Нефть" [12:28:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:28:01]line СНО: Общий режим [12:28:01]line Чек 134 25.10.2024 12:28 [12:28:01]line Смена: 540 ФФД: 1.0 [12:28:01]line ЗНМ: 0300000110 [12:28:01]line РНМ: 0000000000091776 [12:28:01]line Версия ККМ: 001 [12:28:01]line ФМ: 0000000000871754 [12:28:01]line ФД: 191395 [12:28:01]line ФПД: 217381941456633 [12:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191395&fm=217381941456633&tin=02508201610067®Number=0000000000091776&sum=130000 [12:28:01]OFD Sender: Processing packet 191395 [packets to send 75, broken 74] [12:28:01]ProducePacketName [12:28:01]name=ofd_packets/00191395 [12:28:01]OFD Sender: To server: pG, [12:28:01]CommunicateWithHost lk.salyk.kg:30040 [12:28:01]ConnectInit lk.salyk.kg [12:28:01]written 0, free lines is 4095 [12:28:01]Connected sock=10 [12:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DA 0A 04 01 12 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D8 8E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EB 02 00 35 04 06 00 C5 B5 2D 66 AE F9 76 B9 71 51 7D 1A 70 96 [12:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 5B 47 00 94 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EB 02 00 F4 03 04 00 A7 33 1B 67 B6 04 01 00 00 5F 4E 56 D7 EE B2 C8 F1 [12:28:02]CommunicateWithHost err = 0 [12:28:02]CheckOFDResponse [12:28:02]1017 (14) - 77093643461234 [12:28:02]1041 (16) - 0000000000871754 [12:28:02]1040 (4) - 191395 [12:28:02]1012 (4) - 25.10.2024 05:59 [12:28:02]1206 (1) - 0 [12:28:02]OFD Sender: Remove packet 191395 [12:28:02]ProducePacketName [12:28:02]name=ofd_packets/00191395 [12:28:02]NVStorageDeleteData [12:28:02]Write to MH i2c: 01 00 00 E4 93 77 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: 01 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: 01 07 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: 01 07 00 E4 93 00 00 00 00 00 B8 0C 42 [12:28:02]RasterBufferAndPrint [12:28:02]line [12:28:02]line [12:28:02]line [12:28:02]line [12:28:02]line [12:28:02]written 0, free lines is 3263 [12:28:02]MH_Cut [12:28:02]Write to MH i2c: D1 01 00 EB 93 01 50 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: D1 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: D1 01 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: D1 01 00 EB 93 00 4F [12:28:02]Write to MH i2c: 01 00 00 EC 93 7F [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]OFD Sender: No OFD packet to send [12:28:03]*** Cut start [12:28:03]*** Partial cut [12:28:03]*** CUTSNS_PIN = 1 [12:28:03]*** CUTSNS_PIN = 0 [12:28:03]*** Brake cut motor [12:28:03]Read from MH i2c: 01 [12:28:03]MH_I2C_Read... [12:28:03]*** Stop cut motor [12:28:03]*** Cut end [12:28:03]Read from MH i2c: 01 07 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 07 00 EC 93 00 00 00 00 00 FF 0F 94 [12:28:03]process_action close_receipt done [12:28:03]requested_data is exist [12:28:03]produce_requested_data [12:28:03]requested_item fm.sn is exist - process it [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 11 00 00 [12:28:03]Write to MH i2c: E2 08 00 ED 93 80 11 00 00 00 00 00 00 FA [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 17 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 17 00 ED 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [12:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:03]wFMCommunicate OK [12:28:03]requested_item fd.num is exist - process it [12:28:03]SAM_PROTO_GetFieldsCounters [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 13 00 00 [12:28:03]Write to MH i2c: E2 08 00 EE 93 80 13 00 00 00 00 00 00 FD [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 62 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 62 00 EE 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_GetFieldsCounters done [12:28:03]requested_item shift.num is exist - process it [12:28:03]requested_item shift.opened is exist - process it [12:28:03]req_shift_opened [12:28:03]FM_GetShiftState [12:28:03]SAM_PROTO_GetShiftState [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 13 01 00 [12:28:03]Write to MH i2c: E2 08 00 EF 93 80 13 01 00 00 00 00 00 FF [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 EF 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C2 [12:28:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_GetShiftState done [12:28:03]FM_GetShiftState done [12:28:03]req_shift_opened done [12:28:03]requested_item shift.open_date is exist - process it [12:28:03]req_shift_open_date [12:28:03]req_shift_open_date done [12:28:03]produce_requested_data done [12:28:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191395,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:28:03]process_action_free close_receipt [12:28:03]json_value_free [12:28:03]json_value_free done [12:28:03]process_json_proto returns [12:28:03]Send response to host [12:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191395,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:28:03]free response buf [12:28:03]execute_script done [12:28:03]execute_script returns [12:28:03]free content buf [12:28:03]Sock 8.Close socket [12:28:03]Sock 8.Thread stoped [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:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:40]accept exits with 9 [12:36:40]New connection [12:36:40]New thread 3066961252 created [12:36:40]Thread 3066817892 joined [12:36:40]Waiting for new connection... [12:36:40] Sock 9.Parse request [12:36:40]Sock 9.Check first char [12:36:40]Sock 9.First char is OK [12:36:40]request: POST /json_proto HTTP/1.0 [12:36:40]Method: POST [12:36:40]URL: /json_proto [12:36:40]Method is POST - this is cgi request [12:36:40]url: /json_proto [12:36:40]query_string will be loaded in cgi processing [12:36:40]execute_cgi json_proto POST (null) [12:36:40]execute_cgi path=json_proto method=POST [12:36:40]POST find Content-Length [12:36:40]Host: 172.17.63.131:8080 [12:36:40]Content-Length: 676 [12:36:40]Content-Type: application/json [12:36:40] [12:36:40]POST finish read [12:36:40]Found Content-Length = 676 [12:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:40]execute_script... [12:36: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)30690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:40]POST & json_proto [12:36:40]process_json_proto [12:36:40]json parsed OK: [12:36:40]protocol is kg_v1.0 [12:36:40]action value=close_receipt [12:36:40]process_action close_receipt [12:36:40]cmd_close_receipt [12:36:40]MH_GetDate [12:36:40]Write to MH i2c: F0 00 00 F0 93 72 [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 09 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 09 00 F0 93 00 E1 90 1B 67 22 05 6E 64 67 [12:36:40]GetLastDocTimeStamp 1729859288 [12:36:40]current date 1729859809 [12:36:40]FM_GetShiftState [12:36:40]SAM_PROTO_GetShiftState [12:36:40]wFMCommunicate request_size=4 [12:36:40]MH_SAM_APDU [12:36:40]CAPDU: 80 13 01 00 [12:36:40]Write to MH i2c: E2 08 00 F1 93 80 13 01 00 00 00 00 00 01 [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:40]Read from MH i2c: E2 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: E2 0E 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: E2 0E 00 F1 93 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C4 [12:36:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:36:40]wFMCommunicate OK [12:36:40]SAM_PROTO_GetShiftState done [12:36:40]FM_GetShiftState done [12:36:40]opened in 1729816399 [12:36:40]opened+sec_in_day 1729902799 [12:36:40]quantity*price = 20003 [12:36:40]sum+1 = 20004 [12:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 135 25.10.2024 12:36 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191396 ФПД: 108314241102110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T123649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191396&fm=108314241102110&tin=02508201610067®Number=0000000000091776&sum=20000 [12:36:41]StoreToDocumentArchive [12:36:41]shift 540 fd 191396 [12:36:41]save to /storage/0540/doc_00191396 [12:36:41]save last doc name /storage/0540/doc_00191396 to /storage/kkm_last_doc_name [12:36:41]save OK [12:36:41]Clear old archive folders... [12:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:41]tlvbuf is 015D8B20 [12:36:41]SAM_PROTO_ClearQueue [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 09 00 00 [12:36:41]Write to MH i2c: E2 08 00 FE 93 80 09 00 00 00 00 00 00 03 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 FE 93 00 90 00 05 [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]SAM_PROTO_ClearQueue done [12:36:41]KKMCreateOFDPacket [12:36:41]OFDProtocolAddRootSTLVToBuf [12:36:41]FM_MakeSignedData [12:36:41]FM_MakeSignedData [12:36:41]SAM_PROTO_SignData [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 01 02 [12:36:41]Write to MH i2c: E2 08 00 FF 93 80 0D 01 02 00 00 00 00 0B [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 FF 93 00 90 00 06 [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]wFMCommunicate request_size=255 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 90 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EB 02 00 35 04 06 00 62 [12:36:41]Write to MH i2c: E2 02 01 00 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 90 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EB 02 00 35 04 06 00 62 00 00 ED [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 00 94 00 90 00 08 [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]wFMCommunicate request_size=10 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 02 02 05 82 DF DD 71 1E [12:36:41]Write to MH i2c: E2 0D 00 01 94 80 0D 02 02 05 00 82 DF DD 71 1E 00 00 E6 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 01 94 00 90 00 09 [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 03 02 [12:36:41]Write to MH i2c: E2 08 00 02 94 80 0D 03 02 00 00 00 00 11 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 0B 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 0B 00 02 94 00 F6 1C 14 9A 83 F7 4B 45 90 00 DC [12:36:41]RAPDU: F6 1C 14 9A 83 F7 4B 45 90 00 [12:36:41]wFMCommunicate OK [12:36:41]SAM_PROTO_SignData done [12:36:41]FM_MakeSignedData done [12:36:41]CreateOFDProtocolMessage [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 11 00 00 [12:36:41]Write to MH i2c: E2 08 00 03 94 80 11 00 00 00 00 00 00 11 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 17 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 17 00 03 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [12:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:41]wFMCommunicate OK [12:36:41]CreateOFDProtocolMessage done [12:36:41]OFDSenderStorePacket 191396 [12:36:41]StoreOFDPacket docnum=191396 [12:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E EC 07 01 53 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 90 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EB 02 00 35 04 06 00 62 82 DF DD 71 1E F6 1C 14 9A 83 F7 4B 45 [12:36:41]CheckFolder [12:36:41]dirname=/storage/ofd_packets [12:36:41]CheckFolder done [12:36:41]ProducePacketName [12:36:41]name=ofd_packets/00191396 [12:36:41]NVStorageSaveData ofd_packets/00191396 [12:36:41]File name is /storage/ofd_packets/00191396 [12:36:41]Write 301 bytes [12:36:41]NVStorageSaveData done [12:36:41]OFDSenderStorePacket done [12:36:41]KKMCreateOFDPacket done [12:36:41]NVStorageSaveData kkm_last_timestamp [12:36:41]File name is /storage/kkm_last_timestamp [12:36:41]Write 4 bytes [12:36:41]NVStorageSaveData done [12:36:41]ExternCall_PrintAddStr [12:36:41]wPrintStart [12:36:41]Write to MH i2c: 01 00 00 04 94 98 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: 01 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: 01 07 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: 01 07 00 04 94 00 00 00 00 00 FF 0F AD [12:36:41]RasterBufferAndPrint [12:36:41]line Счет N : (1)30690 [12:36:41]line ИНН: 02508201610067 [12:36:41]line Контрольно-Кассовый Чек [12:36:41]line ПРОДАЖА [12:36:41]line ТРК (МРК, ГНК) : 12 [12:36:41]line Товар: 2710124130 [12:36:41]line Аи-92-К-5 [12:36:41]line 2.990 * 66.90 [12:36:41]line = 200.03 [12:36:41]line НДС 12% НСП 1% [12:36:41]line > о реализуемом товаре [12:36:41]line ОКРУГЛЕНИЕ: -0.03 [12:36:41]line ИТОГО: 200.00 [12:36:41]line Внесено: 200.00 [12:36:41]line СДАЧА: 0.00 [12:36:41]line НСП 1% : 1.77 [12:36:41]line НДС 12% : 21.24 [12:36:41]line Наличными: 200.00 [12:36:41]line Безнал.: 0.00 [12:36:41]line Место: АЗС № 170 "Партнер Нефть" [12:36:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:36:41]line СНО: Общий режим [12:36:41]line Чек 135 25.10.2024 12:36 [12:36:41]line Смена: 540 ФФД: 1.0 [12:36:41]line ЗНМ: 0300000110 [12:36:41]line РНМ: 0000000000091776 [12:36:41]line Версия ККМ: 001 [12:36:41]line ФМ: 0000000000871754 [12:36:41]line ФД: 191396 [12:36:41]line ФПД: 108314241102110 [12:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T123649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191396&fm=108314241102110&tin=02508201610067®Number=0000000000091776&sum=20000 [12:36:42]OFD Sender: Processing packet 191396 [packets to send 75, broken 74] [12:36:42]ProducePacketName [12:36:42]name=ofd_packets/00191396 [12:36:42]OFD Sender: To server: pG, [12:36:42]CommunicateWithHost lk.salyk.kg:30040 [12:36:42]ConnectInit lk.salyk.kg [12:36:42]written 0, free lines is 4095 [12:36:42]Connected sock=10 [12:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E EC 07 01 53 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 90 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EB 02 00 35 04 06 00 62 82 DF DD 71 1E F6 1C 14 9A 83 F7 4B 45 [12:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 67 47 00 22 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 31 37 35 34 10 04 04 00 A4 EB 02 00 F4 03 04 00 AF 35 1B 67 B6 04 01 00 00 39 A8 E3 6F E9 FF B7 DE [12:36:42]CommunicateWithHost err = 0 [12:36:42]CheckOFDResponse [12:36:42]1017 (14) - 77093643461234 [12:36:42]1041 (16) - 0000000000871754 [12:36:42]1040 (4) - 191396 [12:36:42]1012 (4) - 25.10.2024 06:07 [12:36:42]1206 (1) - 0 [12:36:42]OFD Sender: Remove packet 191396 [12:36:42]ProducePacketName [12:36:42]name=ofd_packets/00191396 [12:36:42]NVStorageDeleteData [12:36:42]Write to MH i2c: 01 00 00 2F 94 C3 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 07 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 07 00 2F 94 00 00 00 00 00 AD 0C 83 [12:36:42]RasterBufferAndPrint [12:36:42]line [12:36:42]line [12:36:42]line [12:36:42]line [12:36:42]line [12:36:42]written 0, free lines is 3253 [12:36:42]MH_Cut [12:36:42]Write to MH i2c: D1 01 00 36 94 01 9C [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: D1 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: D1 01 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: D1 01 00 36 94 00 9B [12:36:42]Write to MH i2c: 01 00 00 37 94 CB [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:43]OFD Sender: No OFD packet to send [12:36:43]*** Cut start [12:36:43]*** Partial cut [12:36:43]*** CUTSNS_PIN = 1 [12:36:43]*** CUTSNS_PIN = 0 [12:36:43]*** Brake cut motor [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]*** Stop cut motor [12:36:44]*** Cut end [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 37 94 00 00 00 00 00 FF 0F E0 [12:36:44]process_action close_receipt done [12:36:44]requested_data is exist [12:36:44]produce_requested_data [12:36:44]requested_item fm.sn is exist - process it [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 38 94 80 11 00 00 00 00 00 00 46 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 38 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:44]wFMCommunicate OK [12:36:44]requested_item fd.num is exist - process it [12:36:44]SAM_PROTO_GetFieldsCounters [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 13 00 00 [12:36:44]Write to MH i2c: E2 08 00 39 94 80 13 00 00 00 00 00 00 49 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 62 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 62 00 39 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_GetFieldsCounters done [12:36:44]requested_item shift.num is exist - process it [12:36:44]requested_item shift.opened is exist - process it [12:36:44]req_shift_opened [12:36:44]FM_GetShiftState [12:36:44]SAM_PROTO_GetShiftState [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 13 01 00 [12:36:44]Write to MH i2c: E2 08 00 3A 94 80 13 01 00 00 00 00 00 4B [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0E 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0E 00 3A 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0E [12:36:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_GetShiftState done [12:36:44]FM_GetShiftState done [12:36:44]req_shift_opened done [12:36:44]requested_item shift.open_date is exist - process it [12:36:44]req_shift_open_date [12:36:44]req_shift_open_date done [12:36:44]produce_requested_data done [12:36:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191396,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:36:44]process_action_free close_receipt [12:36:44]json_value_free [12:36:44]json_value_free done [12:36:44]process_json_proto returns [12:36:44]Send response to host [12:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191396,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:36:44]free response buf [12:36:44]execute_script done [12:36:44]execute_script returns [12:36:44]free content buf [12:36:44]Sock 9.Close socket [12:36:44]Sock 9.Thread stoped [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]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:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:52]accept exits with 8 [12:42:52]New connection [12:42:52]New thread 3066817892 created [12:42:52]Thread 3066961252 joined [12:42:52]Waiting for new connection... [12:42:52] Sock 8.Parse request [12:42:52]Sock 8.Check first char [12:42:52]Sock 8.First char is OK [12:42:52]request: POST /json_proto HTTP/1.0 [12:42:52]Method: POST [12:42:52]URL: /json_proto [12:42:52]Method is POST - this is cgi request [12:42:52]url: /json_proto [12:42:52]query_string will be loaded in cgi processing [12:42:52]execute_cgi json_proto POST (null) [12:42:52]execute_cgi path=json_proto method=POST [12:42:52]POST find Content-Length [12:42:52]Host: 172.17.63.131:8080 [12:42:52]Content-Length: 676 [12:42:52]Content-Type: application/json [12:42:52] [12:42:52]POST finish read [12:42:52]Found Content-Length = 676 [12:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:52]execute_script... [12:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:52]POST & json_proto [12:42:52]process_json_proto [12:42:52]json parsed OK: [12:42:52]protocol is kg_v1.0 [12:42:52]action value=close_receipt [12:42:52]process_action close_receipt [12:42:52]cmd_close_receipt [12:42:52]MH_GetDate [12:42:52]Write to MH i2c: F0 00 00 3B 94 BE [12:42:52]Write i2c OK [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: F0 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: F0 09 00 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: F0 09 00 3B 94 00 55 92 1B 67 22 05 6E 64 29 [12:42:52]GetLastDocTimeStamp 1729859809 [12:42:52]current date 1729860181 [12:42:52]FM_GetShiftState [12:42:52]SAM_PROTO_GetShiftState [12:42:52]wFMCommunicate request_size=4 [12:42:52]MH_SAM_APDU [12:42:52]CAPDU: 80 13 01 00 [12:42:52]Write to MH i2c: E2 08 00 3C 94 80 13 01 00 00 00 00 00 4D [12:42:52]Write i2c OK [12:42:52]MH_I2C_Read... [12:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:52]Read from MH i2c: E2 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: E2 0E 00 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: E2 0E 00 3C 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 10 [12:42:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:42:52]wFMCommunicate OK [12:42:52]SAM_PROTO_GetShiftState done [12:42:52]FM_GetShiftState done [12:42:52]opened in 1729816399 [12:42:52]opened+sec_in_day 1729902799 [12:42:52]quantity*price = 30038 [12:42:52]sum+1 = 30039 [12:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 136 25.10.2024 12:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191397 ФПД: 201433069339486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191397&fm=201433069339486&tin=02508201610067®Number=0000000000091776&sum=30000 [12:42:54]StoreToDocumentArchive [12:42:54]shift 540 fd 191397 [12:42:54]save to /storage/0540/doc_00191397 [12:42:54]save last doc name /storage/0540/doc_00191397 to /storage/kkm_last_doc_name [12:42:54]save OK [12:42:54]Clear old archive folders... [12:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:54]tlvbuf is 016EB6E0 [12:42:54]SAM_PROTO_ClearQueue [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 09 00 00 [12:42:54]Write to MH i2c: E2 08 00 49 94 80 09 00 00 00 00 00 00 4F [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 49 94 00 90 00 51 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]SAM_PROTO_ClearQueue done [12:42:54]KKMCreateOFDPacket [12:42:54]OFDProtocolAddRootSTLVToBuf [12:42:54]FM_MakeSignedData [12:42:54]FM_MakeSignedData [12:42:54]SAM_PROTO_SignData [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 01 02 [12:42:54]Write to MH i2c: E2 08 00 4A 94 80 0D 01 02 00 00 00 00 57 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 4A 94 00 90 00 52 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=255 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 55 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EB 02 00 35 04 06 00 B7 [12:42:54]Write to MH i2c: E2 02 01 4B 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 55 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EB 02 00 35 04 06 00 B7 00 00 37 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 4B 94 00 90 00 53 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=10 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 02 02 05 33 CA 8B 43 5E [12:42:54]Write to MH i2c: E2 0D 00 4C 94 80 0D 02 02 05 00 33 CA 8B 43 5E 00 00 8D [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 4C 94 00 90 00 54 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 03 02 [12:42:54]Write to MH i2c: E2 08 00 4D 94 80 0D 03 02 00 00 00 00 5C [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 0B 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 0B 00 4D 94 00 34 D9 8A B5 B3 C1 53 3F 90 00 AF [12:42:54]RAPDU: 34 D9 8A B5 B3 C1 53 3F 90 00 [12:42:54]wFMCommunicate OK [12:42:54]SAM_PROTO_SignData done [12:42:54]FM_MakeSignedData done [12:42:54]CreateOFDProtocolMessage [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 11 00 00 [12:42:54]Write to MH i2c: E2 08 00 4E 94 80 11 00 00 00 00 00 00 5C [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 17 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 17 00 4E 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [12:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:42:54]wFMCommunicate OK [12:42:54]CreateOFDProtocolMessage done [12:42:54]OFDSenderStorePacket 191397 [12:42:54]StoreOFDPacket docnum=191397 [12:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 95 07 01 CE B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 55 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EB 02 00 35 04 06 00 B7 33 CA 8B 43 5E 34 D9 8A B5 B3 C1 53 3F [12:42:54]CheckFolder [12:42:54]dirname=/storage/ofd_packets [12:42:54]CheckFolder done [12:42:54]ProducePacketName [12:42:54]name=ofd_packets/00191397 [12:42:54]NVStorageSaveData ofd_packets/00191397 [12:42:54]File name is /storage/ofd_packets/00191397 [12:42:54]Write 301 bytes [12:42:54]NVStorageSaveData done [12:42:54]OFDSenderStorePacket done [12:42:54]KKMCreateOFDPacket done [12:42:54]NVStorageSaveData kkm_last_timestamp [12:42:54]File name is /storage/kkm_last_timestamp [12:42:54]Write 4 bytes [12:42:54]NVStorageSaveData done [12:42:54]ExternCall_PrintAddStr [12:42:54]wPrintStart [12:42:54]Write to MH i2c: 01 00 00 4F 94 E3 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 4F 94 00 00 00 00 00 FF 0F F8 [12:42:54]RasterBufferAndPrint [12:42:54]line Счет N : (1)30692 [12:42:54]line ИНН: 02508201610067 [12:42:54]line Контрольно-Кассовый Чек [12:42:54]line ПРОДАЖА [12:42:54]line ТРК (МРК, ГНК) : 21 [12:42:54]line Товар: 2710124130 [12:42:54]line Аи-92-К-5 [12:42:54]line 4.490 * 66.90 [12:42:54]line = 300.38 [12:42:54]line НДС 12% НСП 1% [12:42:54]line > о реализуемом товаре [12:42:54]line ОКРУГЛЕНИЕ: -0.38 [12:42:54]line ИТОГО: 300.00 [12:42:54]line Внесено: 300.00 [12:42:54]line СДАЧА: 0.00 [12:42:54]line НСП 1% : 2.66 [12:42:54]line НДС 12% : 31.90 [12:42:54]line Наличными: 300.00 [12:42:54]line Безнал.: 0.00 [12:42:54]line Место: АЗС № 170 "Партнер Нефть" [12:42:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:42:54]line СНО: Общий режим [12:42:54]line Чек 136 25.10.2024 12:43 [12:42:54]line Смена: 540 ФФД: 1.0 [12:42:54]line ЗНМ: 0300000110 [12:42:54]line РНМ: 0000000000091776 [12:42:54]line Версия ККМ: 001 [12:42:54]line ФМ: 0000000000871754 [12:42:54]line ФД: 191397 [12:42:54]line ФПД: 201433069339486 [12:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191397&fm=201433069339486&tin=02508201610067®Number=0000000000091776&sum=30000 [12:42:54]OFD Sender: Processing packet 191397 [packets to send 75, broken 74] [12:42:54]ProducePacketName [12:42:54]name=ofd_packets/00191397 [12:42:54]OFD Sender: To server: pG, [12:42:54]CommunicateWithHost lk.salyk.kg:30040 [12:42:54]ConnectInit lk.salyk.kg [12:42:54]written 0, free lines is 4095 [12:42:55]Connected sock=10 [12:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 95 07 01 CE B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 55 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EB 02 00 35 04 06 00 B7 33 CA 8B 43 5E 34 D9 8A B5 B3 C1 53 3F [12:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 0E 47 00 66 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 31 37 35 34 10 04 04 00 A5 EB 02 00 F4 03 04 00 24 37 1B 67 B6 04 01 00 00 F3 F7 69 5B 86 88 50 84 [12:42:55]CommunicateWithHost err = 0 [12:42:55]CheckOFDResponse [12:42:55]1017 (14) - 77093643461234 [12:42:55]1041 (16) - 0000000000871754 [12:42:55]1040 (4) - 191397 [12:42:55]1012 (4) - 25.10.2024 06:13 [12:42:55]1206 (1) - 0 [12:42:55]OFD Sender: Remove packet 191397 [12:42:55]ProducePacketName [12:42:55]name=ofd_packets/00191397 [12:42:55]NVStorageDeleteData [12:42:55]Write to MH i2c: 01 00 00 7A 94 0E [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 07 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 07 00 7A 94 00 00 00 00 00 B5 0C D6 [12:42:55]RasterBufferAndPrint [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]written 0, free lines is 3259 [12:42:55]MH_Cut [12:42:55]Write to MH i2c: D1 01 00 81 94 01 E7 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 01 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 01 00 81 94 00 E6 [12:42:55]Write to MH i2c: 01 00 00 82 94 16 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]OFD Sender: No OFD packet to send [12:42:56]*** Cut start [12:42:56]*** Partial cut [12:42:56]*** CUTSNS_PIN = 1 [12:42:56]*** CUTSNS_PIN = 0 [12:42:56]*** Brake cut motor [12:42:56]Read from MH i2c: 01 [12:42:56]MH_I2C_Read... [12:42:56]*** Stop cut motor [12:42:56]*** Cut end [12:42:56]Read from MH i2c: 01 07 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: 01 07 00 82 94 00 00 00 00 00 FF 0F 2B [12:42:56]process_action close_receipt done [12:42:56]requested_data is exist [12:42:56]produce_requested_data [12:42:56]requested_item fm.sn is exist - process it [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 11 00 00 [12:42:56]Write to MH i2c: E2 08 00 83 94 80 11 00 00 00 00 00 00 91 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 83 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [12:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:42:56]wFMCommunicate OK [12:42:56]requested_item fd.num is exist - process it [12:42:56]SAM_PROTO_GetFieldsCounters [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 13 00 00 [12:42:56]Write to MH i2c: E2 08 00 84 94 80 13 00 00 00 00 00 00 94 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 62 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 62 00 84 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [12:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_GetFieldsCounters done [12:42:57]requested_item shift.num is exist - process it [12:42:57]requested_item shift.opened is exist - process it [12:42:57]req_shift_opened [12:42:57]FM_GetShiftState [12:42:57]SAM_PROTO_GetShiftState [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 13 01 00 [12:42:57]Write to MH i2c: E2 08 00 85 94 80 13 01 00 00 00 00 00 96 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0E 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0E 00 85 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 59 [12:42:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_GetShiftState done [12:42:57]FM_GetShiftState done [12:42:57]req_shift_opened done [12:42:57]requested_item shift.open_date is exist - process it [12:42:57]req_shift_open_date [12:42:57]req_shift_open_date done [12:42:57]produce_requested_data done [12:42:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191397,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:42:57]process_action_free close_receipt [12:42:57]json_value_free [12:42:57]json_value_free done [12:42:57]process_json_proto returns [12:42:57]Send response to host [12:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191397,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:42:57]free response buf [12:42:57]execute_script done [12:42:57]execute_script returns [12:42:57]free content buf [12:42:57]Sock 8.Close socket [12:42:57]Sock 8.Thread stoped [12:43:00]OFD Sender: No OFD packet to send [12:43:00]accept exits with 9 [12:43:00]New connection [12:43:00]New thread 3066961252 created [12:43:00]Thread 3066817892 joined [12:43:00]Waiting for new connection... [12:43:00] Sock 9.Parse request [12:43:00]Sock 9.Check first char [12:43:00]Sock 9.First char is OK [12:43:00]request: POST /json_proto HTTP/1.0 [12:43:00]Method: POST [12:43:00]URL: /json_proto [12:43:00]Method is POST - this is cgi request [12:43:00]url: /json_proto [12:43:00]query_string will be loaded in cgi processing [12:43:00]execute_cgi json_proto POST (null) [12:43:00]execute_cgi path=json_proto method=POST [12:43:00]POST find Content-Length [12:43:00]Host: 172.17.63.131:8080 [12:43:00]Content-Length: 673 [12:43:00]Content-Type: application/json [12:43:00] [12:43:00]POST finish read [12:43:00]Found Content-Length = 673 [12:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:00]execute_script... [12:43: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)30691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:00]POST & json_proto [12:43:00]process_json_proto [12:43:00]json parsed OK: [12:43:00]protocol is kg_v1.0 [12:43:00]action value=close_receipt [12:43:00]process_action close_receipt [12:43:00]cmd_close_receipt [12:43:00]MH_GetDate [12:43:00]Write to MH i2c: F0 00 00 86 94 09 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 09 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 09 00 86 94 00 5D 92 1B 67 22 05 6E 64 7C [12:43:00]GetLastDocTimeStamp 1729860181 [12:43:00]current date 1729860189 [12:43:00]FM_GetShiftState [12:43:00]SAM_PROTO_GetShiftState [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 01 00 [12:43:00]Write to MH i2c: E2 08 00 87 94 80 13 01 00 00 00 00 00 98 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 87 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5B [12:43:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetShiftState done [12:43:00]FM_GetShiftState done [12:43:00]opened in 1729816399 [12:43:00]opened+sec_in_day 1729902799 [12:43:00]quantity*price = 50063 [12:43:00]sum+1 = 50064 [12:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 137 25.10.2024 12:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191398 ФПД: 248874064520736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191398&fm=248874064520736&tin=02508201610067®Number=0000000000091776&sum=50000 [12:43:02]StoreToDocumentArchive [12:43:02]shift 540 fd 191398 [12:43:02]save to /storage/0540/doc_00191398 [12:43:02]save last doc name /storage/0540/doc_00191398 to /storage/kkm_last_doc_name [12:43:02]save OK [12:43:02]Clear old archive folders... [12:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:02]tlvbuf is 01685600 [12:43:02]SAM_PROTO_ClearQueue [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 09 00 00 [12:43:02]Write to MH i2c: E2 08 00 94 94 80 09 00 00 00 00 00 00 9A [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 94 94 00 90 00 9C [12:43:02]RAPDU: 90 00 [12:43:02]wFMCommunicate OK [12:43:02]SAM_PROTO_ClearQueue done [12:43:02]KKMCreateOFDPacket [12:43:02]OFDProtocolAddRootSTLVToBuf [12:43:02]FM_MakeSignedData [12:43:02]FM_MakeSignedData [12:43:02]SAM_PROTO_SignData [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 0D 01 02 [12:43:02]Write to MH i2c: E2 08 00 95 94 80 0D 01 02 00 00 00 00 A2 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 95 94 00 90 00 9D [12:43:02]RAPDU: 90 00 [12:43:02]wFMCommunicate OK [12:43:02]wFMCommunicate request_size=255 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 5D 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EB 02 00 35 04 06 00 E2 59 82 35 [12:43:02]Write to MH i2c: E2 02 01 96 94 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 89 00 00 00 F4 03 04 00 5D 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EB 02 00 35 04 06 00 E2 59 82 35 00 00 51 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 96 94 00 90 00 9E [12:43:02]RAPDU: 90 00 [12:43:02]wFMCommunicate OK [12:43:02]wFMCommunicate request_size=7 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 0D 02 02 02 A6 20 [12:43:02]Write to MH i2c: E2 0A 00 97 94 80 0D 02 02 02 00 A6 20 00 00 6F [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 03 00 97 94 00 90 00 9F [12:43:02]RAPDU: 90 00 [12:43:02]wFMCommunicate OK [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 0D 03 02 [12:43:02]Write to MH i2c: E2 08 00 98 94 80 0D 03 02 00 00 00 00 A7 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 0B 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 0B 00 98 94 00 64 6C 5C EF 81 89 C7 F4 90 00 88 [12:43:02]RAPDU: 64 6C 5C EF 81 89 C7 F4 90 00 [12:43:02]wFMCommunicate OK [12:43:02]SAM_PROTO_SignData done [12:43:02]FM_MakeSignedData done [12:43:02]CreateOFDProtocolMessage [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 11 00 00 [12:43:02]Write to MH i2c: E2 08 00 99 94 80 11 00 00 00 00 00 00 A7 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 17 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 17 00 99 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [12:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:43:02]wFMCommunicate OK [12:43:02]CreateOFDProtocolMessage done [12:43:02]OFDSenderStorePacket 191398 [12:43:02]StoreOFDPacket docnum=191398 [12:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5F AB 04 01 E5 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 5D 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EB 02 00 35 04 06 00 E2 59 82 35 A6 20 64 6C 5C EF 81 89 C7 F4 [12:43:02]CheckFolder [12:43:02]dirname=/storage/ofd_packets [12:43:02]CheckFolder done [12:43:02]ProducePacketName [12:43:02]name=ofd_packets/00191398 [12:43:02]NVStorageSaveData ofd_packets/00191398 [12:43:02]File name is /storage/ofd_packets/00191398 [12:43:02]Write 298 bytes [12:43:02]NVStorageSaveData done [12:43:02]OFDSenderStorePacket done [12:43:02]KKMCreateOFDPacket done [12:43:02]NVStorageSaveData kkm_last_timestamp [12:43:02]File name is /storage/kkm_last_timestamp [12:43:02]Write 4 bytes [12:43:02]NVStorageSaveData done [12:43:02]ExternCall_PrintAddStr [12:43:02]wPrintStart [12:43:02]Write to MH i2c: 01 00 00 9A 94 2E [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 07 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 07 00 9A 94 00 00 00 00 00 FF 0F 43 [12:43:02]RasterBufferAndPrint [12:43:02]line Счет N : (1)30691 [12:43:02]line ИНН: 02508201610067 [12:43:02]line Контрольно-Кассовый Чек [12:43:02]line ПРОДАЖА [12:43:02]line ТРК (МРК, ГНК) : 11 [12:43:02]line Товар: 2710194210 [12:43:02]line ДТ-К-5 [12:43:02]line 6.570 * 76.20 [12:43:02]line = 500.63 [12:43:02]line НДС 12% НСП 1% [12:43:02]line > о реализуемом товаре [12:43:02]line ОКРУГЛЕНИЕ: -0.63 [12:43:02]line ИТОГО: 500.00 [12:43:02]line Внесено: 500.00 [12:43:02]line СДАЧА: 0.00 [12:43:02]line НСП 1% : 4.43 [12:43:02]line НДС 12% : 53.16 [12:43:02]line Наличными: 500.00 [12:43:02]line Безнал.: 0.00 [12:43:02]line Место: АЗС № 170 "Партнер Нефть" [12:43:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:43:02]line СНО: Общий режим [12:43:02]line Чек 137 25.10.2024 12:43 [12:43:02]line Смена: 540 ФФД: 1.0 [12:43:02]line ЗНМ: 0300000110 [12:43:02]line РНМ: 0000000000091776 [12:43:02]line Версия ККМ: 001 [12:43:02]line ФМ: 0000000000871754 [12:43:02]line ФД: 191398 [12:43:02]line ФПД: 248874064520736 [12:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191398&fm=248874064520736&tin=02508201610067®Number=0000000000091776&sum=50000 [12:43:02]written 0, free lines is 4095 [12:43:02]OFD Sender: Processing packet 191398 [packets to send 75, broken 74] [12:43:02]ProducePacketName [12:43:02]name=ofd_packets/00191398 [12:43:02]OFD Sender: To server: pG, [12:43:02]CommunicateWithHost lk.salyk.kg:30040 [12:43:02]ConnectInit lk.salyk.kg [12:43:02]Connected sock=11 [12:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5F AB 04 01 E5 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 5D 92 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EB 02 00 35 04 06 00 E2 59 82 35 A6 20 64 6C 5C EF 81 89 C7 F4 [12:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 C8 47 00 FA CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EB 02 00 F4 03 04 00 2C 37 1B 67 B6 04 01 00 00 FF B2 0E F8 90 C3 88 CF [12:43:03]CommunicateWithHost err = 0 [12:43:03]CheckOFDResponse [12:43:03]1017 (14) - 77093643461234 [12:43:03]1041 (16) - 0000000000871754 [12:43:03]1040 (4) - 191398 [12:43:03]1012 (4) - 25.10.2024 06:14 [12:43:03]1206 (1) - 0 [12:43:03]OFD Sender: Remove packet 191398 [12:43:03]ProducePacketName [12:43:03]name=ofd_packets/00191398 [12:43:03]NVStorageDeleteData [12:43:03]Write to MH i2c: 01 00 00 C5 94 59 [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: 01 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: 01 07 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: 01 07 00 C5 94 00 00 00 00 00 C5 0C 31 [12:43:03]RasterBufferAndPrint [12:43:03]line [12:43:03]line [12:43:03]line [12:43:03]line [12:43:03]line [12:43:03]written 0, free lines is 3278 [12:43:03]MH_Cut [12:43:03]Write to MH i2c: D1 01 00 CC 94 01 32 [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: D1 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: D1 01 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: D1 01 00 CC 94 00 31 [12:43:03]Write to MH i2c: 01 00 00 CD 94 61 [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]OFD Sender: No OFD packet to send [12:43:03]*** Cut start [12:43:03]*** Partial cut [12:43:03]*** CUTSNS_PIN = 1 [12:43:04]*** CUTSNS_PIN = 0 [12:43:04]*** Brake cut motor [12:43:04]Read from MH i2c: 01 [12:43:04]MH_I2C_Read... [12:43:04]*** Stop cut motor [12:43:04]*** Cut end [12:43:04]Read from MH i2c: 01 07 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: 01 07 00 CD 94 00 00 00 00 00 FF 0F 76 [12:43:04]process_action close_receipt done [12:43:04]requested_data is exist [12:43:04]produce_requested_data [12:43:04]requested_item fm.sn is exist - process it [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 11 00 00 [12:43:04]Write to MH i2c: E2 08 00 CE 94 80 11 00 00 00 00 00 00 DC [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 17 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 17 00 CE 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [12:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:43:04]wFMCommunicate OK [12:43:04]requested_item fd.num is exist - process it [12:43:04]SAM_PROTO_GetFieldsCounters [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 00 00 [12:43:04]Write to MH i2c: E2 08 00 CF 94 80 13 00 00 00 00 00 00 DF [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 62 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 62 00 CF 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetFieldsCounters done [12:43:04]requested_item shift.num is exist - process it [12:43:04]requested_item shift.opened is exist - process it [12:43:04]req_shift_opened [12:43:04]FM_GetShiftState [12:43:04]SAM_PROTO_GetShiftState [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 01 00 [12:43:04]Write to MH i2c: E2 08 00 D0 94 80 13 01 00 00 00 00 00 E1 [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 D0 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A4 [12:43:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetShiftState done [12:43:04]FM_GetShiftState done [12:43:04]req_shift_opened done [12:43:04]requested_item shift.open_date is exist - process it [12:43:04]req_shift_open_date [12:43:04]req_shift_open_date done [12:43:04]produce_requested_data done [12:43:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191398,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:43:04]process_action_free close_receipt [12:43:04]json_value_free [12:43:04]json_value_free done [12:43:04]process_json_proto returns [12:43:04]Send response to host [12:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191398,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:43:04]free response buf [12:43:04]execute_script done [12:43:04]execute_script returns [12:43:04]free content buf [12:43:04]Sock 9.Close socket [12:43:04]Sock 9.Thread stoped [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:44]accept exits with 8 [12:45:44]New connection [12:45:44]New thread 3066817892 created [12:45:44]Thread 3066961252 joined [12:45:44]Waiting for new connection... [12:45:44] Sock 8.Parse request [12:45:44]Sock 8.Check first char [12:45:44]Sock 8.First char is OK [12:45:44]request: POST /json_proto HTTP/1.0 [12:45:44]Method: POST [12:45:44]URL: /json_proto [12:45:44]Method is POST - this is cgi request [12:45:44]url: /json_proto [12:45:44]query_string will be loaded in cgi processing [12:45:44]execute_cgi json_proto POST (null) [12:45:44]execute_cgi path=json_proto method=POST [12:45:44]POST find Content-Length [12:45:44]Host: 172.17.63.131:8080 [12:45:44]Content-Length: 678 [12:45:44]Content-Type: application/json [12:45:44] [12:45:44]POST finish read [12:45:44]Found Content-Length = 678 [12:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:44]execute_script... [12:45: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)30693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:44]POST & json_proto [12:45:44]process_json_proto [12:45:44]json parsed OK: [12:45:44]protocol is kg_v1.0 [12:45:44]action value=close_receipt [12:45:44]process_action close_receipt [12:45:44]cmd_close_receipt [12:45:44]MH_GetDate [12:45:44]Write to MH i2c: F0 00 00 D1 94 54 [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 09 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: F0 09 00 D1 94 00 01 93 1B 67 22 05 6E 64 6C [12:45:44]GetLastDocTimeStamp 1729860189 [12:45:44]current date 1729860353 [12:45:44]FM_GetShiftState [12:45:44]SAM_PROTO_GetShiftState [12:45:44]wFMCommunicate request_size=4 [12:45:44]MH_SAM_APDU [12:45:44]CAPDU: 80 13 01 00 [12:45:44]Write to MH i2c: E2 08 00 D2 94 80 13 01 00 00 00 00 00 E3 [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:44]Read from MH i2c: E2 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: E2 0E 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: E2 0E 00 D2 94 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A6 [12:45:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:45:44]wFMCommunicate OK [12:45:44]SAM_PROTO_GetShiftState done [12:45:44]FM_GetShiftState done [12:45:44]opened in 1729816399 [12:45:44]opened+sec_in_day 1729902799 [12:45:44]quantity*price = 230047 [12:45:44]sum+1 = 230049 [12:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 138 25.10.2024 12:45 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191399 ФПД: 106487491224773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124553&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191399&fm=106487491224773&tin=02508201610067®Number=0000000000091776&sum=230000 [12:45:45]StoreToDocumentArchive [12:45:45]shift 540 fd 191399 [12:45:45]save to /storage/0540/doc_00191399 [12:45:45]save last doc name /storage/0540/doc_00191399 to /storage/kkm_last_doc_name [12:45:45]save OK [12:45:45]Clear old archive folders... [12:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:45:45]tlvbuf is 01831710 [12:45:45]SAM_PROTO_ClearQueue [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 09 00 00 [12:45:45]Write to MH i2c: E2 08 00 DF 94 80 09 00 00 00 00 00 00 E5 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 DF 94 00 90 00 E7 [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_ClearQueue done [12:45:45]KKMCreateOFDPacket [12:45:45]OFDProtocolAddRootSTLVToBuf [12:45:45]FM_MakeSignedData [12:45:45]FM_MakeSignedData [12:45:45]SAM_PROTO_SignData [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 01 02 [12:45:45]Write to MH i2c: E2 08 00 E0 94 80 0D 01 02 00 00 00 00 ED [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 E0 94 00 90 00 E8 [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=255 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 82 03 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 01 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EB 02 00 35 04 06 00 60 D9 8D 16 [12:45:45]Write to MH i2c: E2 02 01 E1 94 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 70 82 03 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 01 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EB 02 00 35 04 06 00 60 D9 8D 16 00 00 98 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 E1 94 00 90 00 E9 [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=7 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 02 02 02 64 C5 [12:45:45]Write to MH i2c: E2 0A 00 E2 94 80 0D 02 02 02 00 64 C5 00 00 1D [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 E2 94 00 90 00 EA [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 03 02 [12:45:45]Write to MH i2c: E2 08 00 E3 94 80 0D 03 02 00 00 00 00 F2 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0B 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0B 00 E3 94 00 62 5D D4 60 05 66 5E 41 90 00 F0 [12:45:45]RAPDU: 62 5D D4 60 05 66 5E 41 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_SignData done [12:45:45]FM_MakeSignedData done [12:45:45]CreateOFDProtocolMessage [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 11 00 00 [12:45:45]Write to MH i2c: E2 08 00 E4 94 80 11 00 00 00 00 00 00 F2 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 17 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 17 00 E4 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [12:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:45]wFMCommunicate OK [12:45:45]CreateOFDProtocolMessage done [12:45:45]OFDSenderStorePacket 191399 [12:45:45]StoreOFDPacket docnum=191399 [12:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D1 0B 04 01 67 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 70 82 03 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 01 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EB 02 00 35 04 06 00 60 D9 8D 16 64 C5 62 5D D4 60 05 66 5E 41 [12:45:45]CheckFolder [12:45:45]dirname=/storage/ofd_packets [12:45:45]CheckFolder done [12:45:45]ProducePacketName [12:45:45]name=ofd_packets/00191399 [12:45:45]NVStorageSaveData ofd_packets/00191399 [12:45:45]File name is /storage/ofd_packets/00191399 [12:45:45]Write 298 bytes [12:45:45]NVStorageSaveData done [12:45:45]OFDSenderStorePacket done [12:45:45]KKMCreateOFDPacket done [12:45:45]NVStorageSaveData kkm_last_timestamp [12:45:45]File name is /storage/kkm_last_timestamp [12:45:45]Write 4 bytes [12:45:45]NVStorageSaveData done [12:45:45]ExternCall_PrintAddStr [12:45:45]wPrintStart [12:45:45]Write to MH i2c: 01 00 00 E5 94 79 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 07 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 07 00 E5 94 00 00 00 00 00 FF 0F 8E [12:45:45]RasterBufferAndPrint [12:45:45]line Счет N : (1)30693 [12:45:45]line ИНН: 02508201610067 [12:45:45]line Контрольно-Кассовый Чек [12:45:45]line ПРОДАЖА [12:45:45]line ТРК (МРК, ГНК) : 11 [12:45:45]line Товар: 2710194210 [12:45:45]line ДТ-К-5 [12:45:45]line 30.190 * 76.20 [12:45:45]line = 2300.48 [12:45:45]line НДС 12% НСП 1% [12:45:45]line > о реализуемом товаре [12:45:45]line ОКРУГЛЕНИЕ: -0.48 [12:45:45]line ИТОГО: 2300.00 [12:45:45]line Внесено: 2300.00 [12:45:45]line СДАЧА: 0.00 [12:45:45]line НСП 1% : 20.36 [12:45:45]line НДС 12% : 244.30 [12:45:45]line Наличными: 2300.00 [12:45:45]line Безнал.: 0.00 [12:45:45]line Место: АЗС № 170 "Партнер Нефть" [12:45:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:45:45]line СНО: Общий режим [12:45:45]line Чек 138 25.10.2024 12:45 [12:45:45]line Смена: 540 ФФД: 1.0 [12:45:45]line ЗНМ: 0300000110 [12:45:45]line РНМ: 0000000000091776 [12:45:45]line Версия ККМ: 001 [12:45:45]line ФМ: 0000000000871754 [12:45:45]line ФД: 191399 [12:45:45]line ФПД: 106487491224773 [12:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124553&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191399&fm=106487491224773&tin=02508201610067®Number=0000000000091776&sum=230000 [12:45:46]OFD Sender: Processing packet 191399 [packets to send 75, broken 74] [12:45:46]ProducePacketName [12:45:46]name=ofd_packets/00191399 [12:45:46]OFD Sender: To server: pG, [12:45:46]CommunicateWithHost lk.salyk.kg:30040 [12:45:46]ConnectInit lk.salyk.kg [12:45:46]written 0, free lines is 4095 [12:45:46]Connected sock=10 [12:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D1 0B 04 01 67 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 70 82 03 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 01 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EB 02 00 35 04 06 00 60 D9 8D 16 64 C5 62 5D D4 60 05 66 5E 41 [12:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 14 47 00 05 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EB 02 00 F4 03 04 00 CF 37 1B 67 B6 04 01 00 00 C0 88 4A 67 E4 66 F7 55 [12:45:46]CommunicateWithHost err = 0 [12:45:46]CheckOFDResponse [12:45:46]1017 (14) - 77093643461234 [12:45:46]1041 (16) - 0000000000871754 [12:45:46]1040 (4) - 191399 [12:45:46]1012 (4) - 25.10.2024 06:16 [12:45:46]1206 (1) - 0 [12:45:46]OFD Sender: Remove packet 191399 [12:45:46]ProducePacketName [12:45:46]name=ofd_packets/00191399 [12:45:46]NVStorageDeleteData [12:45:46]Write to MH i2c: 01 00 00 10 95 A5 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 10 95 00 00 00 00 00 C7 0C 7F [12:45:46]RasterBufferAndPrint [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]written 0, free lines is 3278 [12:45:46]MH_Cut [12:45:46]Write to MH i2c: D1 01 00 17 95 01 7E [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 01 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 01 00 17 95 00 7D [12:45:46]Write to MH i2c: 01 00 00 18 95 AD [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:47]OFD Sender: No OFD packet to send [12:45:47]*** Cut start [12:45:47]*** Partial cut [12:45:47]*** CUTSNS_PIN = 1 [12:45:47]*** CUTSNS_PIN = 0 [12:45:47]*** Brake cut motor [12:45:48]Read from MH i2c: 01 [12:45:48]MH_I2C_Read... [12:45:48]*** Stop cut motor [12:45:48]*** Cut end [12:45:48]Read from MH i2c: 01 07 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: 01 07 00 18 95 00 00 00 00 00 FF 0F C2 [12:45:48]process_action close_receipt done [12:45:48]requested_data is exist [12:45:48]produce_requested_data [12:45:48]requested_item fm.sn is exist - process it [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 11 00 00 [12:45:48]Write to MH i2c: E2 08 00 19 95 80 11 00 00 00 00 00 00 28 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 19 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [12:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:48]wFMCommunicate OK [12:45:48]requested_item fd.num is exist - process it [12:45:48]SAM_PROTO_GetFieldsCounters [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 00 00 [12:45:48]Write to MH i2c: E2 08 00 1A 95 80 13 00 00 00 00 00 00 2B [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 1A 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetFieldsCounters done [12:45:48]requested_item shift.num is exist - process it [12:45:48]requested_item shift.opened is exist - process it [12:45:48]req_shift_opened [12:45:48]FM_GetShiftState [12:45:48]SAM_PROTO_GetShiftState [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 01 00 [12:45:48]Write to MH i2c: E2 08 00 1B 95 80 13 01 00 00 00 00 00 2D [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 1B 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F0 [12:45:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetShiftState done [12:45:48]FM_GetShiftState done [12:45:48]req_shift_opened done [12:45:48]requested_item shift.open_date is exist - process it [12:45:48]req_shift_open_date [12:45:48]req_shift_open_date done [12:45:48]produce_requested_data done [12:45:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191399,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:45:48]process_action_free close_receipt [12:45:48]json_value_free [12:45:48]json_value_free done [12:45:48]process_json_proto returns [12:45:48]Send response to host [12:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191399,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:45:48]free response buf [12:45:48]execute_script done [12:45:48]execute_script returns [12:45:48]free content buf [12:45:48]Sock 8.Close socket [12:45:48]Sock 8.Thread stoped [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]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:22]accept exits with 9 [12:48:22]New connection [12:48:22]New thread 3066961252 created [12:48:22]Thread 3066817892 joined [12:48:22]Waiting for new connection... [12:48:22] Sock 9.Parse request [12:48:22]Sock 9.Check first char [12:48:22]Sock 9.First char is OK [12:48:22]request: POST /json_proto HTTP/1.0 [12:48:22]Method: POST [12:48:22]URL: /json_proto [12:48:22]Method is POST - this is cgi request [12:48:22]url: /json_proto [12:48:22]query_string will be loaded in cgi processing [12:48:22]execute_cgi json_proto POST (null) [12:48:22]execute_cgi path=json_proto method=POST [12:48:22]POST find Content-Length [12:48:22]Host: 172.17.63.131:8080 [12:48:22]Content-Length: 678 [12:48:22]Content-Type: application/json [12:48:22] [12:48:22]POST finish read [12:48:22]Found Content-Length = 678 [12:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 58.750, "sum" : 4476.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4476.00, "payments": [ { "type": 0, "sum" : 4476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]execute_script... [12:48: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)30694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 58.750, "sum" : 4476.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4476.00, "payments": [ { "type": 0, "sum" : 4476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]POST & json_proto [12:48:22]process_json_proto [12:48:22]json parsed OK: [12:48:22]protocol is kg_v1.0 [12:48:22]action value=close_receipt [12:48:22]process_action close_receipt [12:48:22]cmd_close_receipt [12:48:22]MH_GetDate [12:48:22]Write to MH i2c: F0 00 00 1C 95 A0 [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 1C 95 00 9F 93 1B 67 22 05 6E 64 56 [12:48:22]GetLastDocTimeStamp 1729860353 [12:48:22]current date 1729860511 [12:48:22]FM_GetShiftState [12:48:22]SAM_PROTO_GetShiftState [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 13 01 00 [12:48:22]Write to MH i2c: E2 08 00 1D 95 80 13 01 00 00 00 00 00 2F [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 1D 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F2 [12:48:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_GetShiftState done [12:48:22]FM_GetShiftState done [12:48:22]opened in 1729816399 [12:48:22]opened+sec_in_day 1729902799 [12:48:22]quantity*price = 447675 [12:48:22]sum+1 = 447676 [12:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 4476.00 Внесено: 5000.00 СДАЧА: 524.00 НСП 1% : 39.62 НДС 12% : 475.41 Наличными: 4476.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 139 25.10.2024 12:48 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191400 ФПД: 48104279127416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124831&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191400&fm=48104279127416&tin=02508201610067®Number=0000000000091776&sum=447600 [12:48:23]StoreToDocumentArchive [12:48:23]shift 540 fd 191400 [12:48:23]save to /storage/0540/doc_00191400 [12:48:23]save last doc name /storage/0540/doc_00191400 to /storage/kkm_last_doc_name [12:48:23]save OK [12:48:23]Clear old archive folders... [12:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:23]tlvbuf is 016EB540 [12:48:23]SAM_PROTO_ClearQueue [12:48:23]wFMCommunicate request_size=4 [12:48:23]MH_SAM_APDU [12:48:23]CAPDU: 80 09 00 00 [12:48:23]Write to MH i2c: E2 08 00 2A 95 80 09 00 00 00 00 00 00 31 [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:23]Read from MH i2c: E2 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: E2 03 00 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: E2 03 00 2A 95 00 90 00 33 [12:48:23]RAPDU: 90 00 [12:48:23]wFMCommunicate OK [12:48:23]SAM_PROTO_ClearQueue done [12:48:23]KKMCreateOFDPacket [12:48:23]OFDProtocolAddRootSTLVToBuf [12:48:23]FM_MakeSignedData [12:48:23]FM_MakeSignedData [12:48:23]SAM_PROTO_SignData [12:48:23]wFMCommunicate request_size=4 [12:48:23]MH_SAM_APDU [12:48:23]CAPDU: 80 0D 01 02 [12:48:23]Write to MH i2c: E2 08 00 2B 95 80 0D 01 02 00 00 00 00 39 [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 2B 95 00 90 00 34 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=255 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BB D4 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D4 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 B9 00 00 00 00 07 04 06 00 70 D4 06 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 9F 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EB 02 00 35 04 06 00 2B C0 26 78 [12:48:24]Write to MH i2c: E2 02 01 2C 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BB D4 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D4 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 B9 00 00 00 00 07 04 06 00 70 D4 06 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 9F 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EB 02 00 35 04 06 00 2B C0 26 78 00 00 7A [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 2C 95 00 90 00 35 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=7 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 02 35 78 [12:48:24]Write to MH i2c: E2 0A 00 2D 95 80 0D 02 02 02 00 35 78 00 00 ED [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 2D 95 00 90 00 36 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 03 02 [12:48:24]Write to MH i2c: E2 08 00 2E 95 80 0D 03 02 00 00 00 00 3E [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 2E 95 00 76 B3 F6 BF 36 B1 65 9E 90 00 07 [12:48:24]RAPDU: 76 B3 F6 BF 36 B1 65 9E 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_SignData done [12:48:24]FM_MakeSignedData done [12:48:24]CreateOFDProtocolMessage [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 11 00 00 [12:48:24]Write to MH i2c: E2 08 00 2F 95 80 11 00 00 00 00 00 00 3E [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 2F 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [12:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:24]wFMCommunicate OK [12:48:24]CreateOFDProtocolMessage done [12:48:24]OFDSenderStorePacket 191400 [12:48:24]StoreOFDPacket docnum=191400 [12:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 19 28 04 01 06 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BB D4 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D4 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 B9 00 00 00 00 07 04 06 00 70 D4 06 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 9F 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EB 02 00 35 04 06 00 2B C0 26 78 35 78 76 B3 F6 BF 36 B1 65 9E [12:48:24]CheckFolder [12:48:24]dirname=/storage/ofd_packets [12:48:24]CheckFolder done [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00191400 [12:48:24]NVStorageSaveData ofd_packets/00191400 [12:48:24]File name is /storage/ofd_packets/00191400 [12:48:24]Write 298 bytes [12:48:24]NVStorageSaveData done [12:48:24]OFDSenderStorePacket done [12:48:24]KKMCreateOFDPacket done [12:48:24]NVStorageSaveData kkm_last_timestamp [12:48:24]File name is /storage/kkm_last_timestamp [12:48:24]Write 4 bytes [12:48:24]NVStorageSaveData done [12:48:24]ExternCall_PrintAddStr [12:48:24]wPrintStart [12:48:24]Write to MH i2c: 01 00 00 30 95 C5 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 30 95 00 00 00 00 00 FF 0F DA [12:48:24]RasterBufferAndPrint [12:48:24]line Счет N : (1)30694 [12:48:24]line ИНН: 02508201610067 [12:48:24]line Контрольно-Кассовый Чек [12:48:24]line ПРОДАЖА [12:48:24]line ТРК (МРК, ГНК) : 22 [12:48:24]line Товар: 2710194210 [12:48:24]line ДТ-К-5 [12:48:24]line 58.750 * 76.20 [12:48:24]line = 4476.75 [12:48:24]line НДС 12% НСП 1% [12:48:24]line > о реализуемом товаре [12:48:24]line ОКРУГЛЕНИЕ: -0.75 [12:48:24]line ИТОГО: 4476.00 [12:48:24]line Внесено: 5000.00 [12:48:24]line СДАЧА: 524.00 [12:48:24]line НСП 1% : 39.62 [12:48:24]line НДС 12% : 475.41 [12:48:24]line Наличными: 4476.00 [12:48:24]line Безнал.: 0.00 [12:48:24]line Место: АЗС № 170 "Партнер Нефть" [12:48:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:48:24]line СНО: Общий режим [12:48:24]line Чек 139 25.10.2024 12:48 [12:48:24]line Смена: 540 ФФД: 1.0 [12:48:24]line ЗНМ: 0300000110 [12:48:24]line РНМ: 0000000000091776 [12:48:24]line Версия ККМ: 001 [12:48:24]line ФМ: 0000000000871754 [12:48:24]line ФД: 191400 [12:48:24]line ФПД: 48104279127416 [12:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124831&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191400&fm=48104279127416&tin=02508201610067®Number=0000000000091776&sum=447600 [12:48:24]OFD Sender: Processing packet 191400 [packets to send 75, broken 74] [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00191400 [12:48:24]OFD Sender: To server: pG, [12:48:24]CommunicateWithHost lk.salyk.kg:30040 [12:48:24]ConnectInit lk.salyk.kg [12:48:24]written 0, free lines is 4095 [12:48:24]Connected sock=10 [12:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 19 28 04 01 06 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BB D4 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D4 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 B9 00 00 00 00 07 04 06 00 70 D4 06 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 9F 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EB 02 00 35 04 06 00 2B C0 26 78 35 78 76 B3 F6 BF 36 B1 65 9E [12:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 6D 47 00 09 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EB 02 00 F4 03 04 00 6E 38 1B 67 B6 04 01 00 00 B7 20 5D FE 12 4C 62 09 [12:48:25]CommunicateWithHost err = 0 [12:48:25]CheckOFDResponse [12:48:25]1017 (14) - 77093643461234 [12:48:25]1041 (16) - 0000000000871754 [12:48:25]1040 (4) - 191400 [12:48:25]1012 (4) - 25.10.2024 06:19 [12:48:25]1206 (1) - 0 [12:48:25]OFD Sender: Remove packet 191400 [12:48:25]ProducePacketName [12:48:25]name=ofd_packets/00191400 [12:48:25]NVStorageDeleteData [12:48:25]Write to MH i2c: 01 00 00 5B 95 F0 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 5B 95 00 00 00 00 00 B6 0C B9 [12:48:25]RasterBufferAndPrint [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]written 0, free lines is 3262 [12:48:25]MH_Cut [12:48:25]Write to MH i2c: D1 01 00 62 95 01 C9 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 62 95 00 C8 [12:48:25]Write to MH i2c: 01 00 00 63 95 F8 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]OFD Sender: No OFD packet to send [12:48:26]*** Cut start [12:48:26]*** Partial cut [12:48:26]*** CUTSNS_PIN = 1 [12:48:26]*** CUTSNS_PIN = 0 [12:48:26]*** Brake cut motor [12:48:26]Read from MH i2c: 01 [12:48:26]MH_I2C_Read... [12:48:26]*** Stop cut motor [12:48:26]*** Cut end [12:48:26]Read from MH i2c: 01 07 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 07 00 63 95 00 00 00 00 00 FF 0F 0D [12:48:26]process_action close_receipt done [12:48:26]requested_data is exist [12:48:26]produce_requested_data [12:48:26]requested_item fm.sn is exist - process it [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 11 00 00 [12:48:26]Write to MH i2c: E2 08 00 64 95 80 11 00 00 00 00 00 00 73 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 64 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [12:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:26]wFMCommunicate OK [12:48:26]requested_item fd.num is exist - process it [12:48:26]SAM_PROTO_GetFieldsCounters [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 00 00 [12:48:26]Write to MH i2c: E2 08 00 65 95 80 13 00 00 00 00 00 00 76 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 65 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [12:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetFieldsCounters done [12:48:26]requested_item shift.num is exist - process it [12:48:26]requested_item shift.opened is exist - process it [12:48:26]req_shift_opened [12:48:26]FM_GetShiftState [12:48:26]SAM_PROTO_GetShiftState [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 01 00 [12:48:26]Write to MH i2c: E2 08 00 66 95 80 13 01 00 00 00 00 00 78 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 66 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3B [12:48:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetShiftState done [12:48:26]FM_GetShiftState done [12:48:26]req_shift_opened done [12:48:26]requested_item shift.open_date is exist - process it [12:48:26]req_shift_open_date [12:48:26]req_shift_open_date done [12:48:26]produce_requested_data done [12:48:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191400,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:48:26]process_action_free close_receipt [12:48:26]json_value_free [12:48:26]json_value_free done [12:48:26]process_json_proto returns [12:48:26]Send response to host [12:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191400,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:48:26]free response buf [12:48:26]execute_script done [12:48:26]execute_script returns [12:48:26]free content buf [12:48:26]Sock 9.Close socket [12:48:26]Sock 9.Thread stoped [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:49:56]accept exits with 8 [12:49:56]New connection [12:49:56]New thread 3066817892 created [12:49:56]Thread 3066961252 joined [12:49:56]Waiting for new connection... [12:49:56] Sock 8.Parse request [12:49:56]Sock 8.Check first char [12:49:56]Sock 8.First char is OK [12:49:56]request: POST /json_proto HTTP/1.0 [12:49:56]Method: POST [12:49:56]URL: /json_proto [12:49:56]Method is POST - this is cgi request [12:49:56]url: /json_proto [12:49:56]query_string will be loaded in cgi processing [12:49:56]execute_cgi json_proto POST (null) [12:49:56]execute_cgi path=json_proto method=POST [12:49:56]POST find Content-Length [12:49:56]Host: 172.17.63.131:8080 [12:49:56]Content-Length: 676 [12:49:56]Content-Type: application/json [12:49:56] [12:49:56]POST finish read [12:49:56]Found Content-Length = 676 [12:49:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:56]execute_script... [12:49: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)30695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:56]POST & json_proto [12:49:56]process_json_proto [12:49:56]json parsed OK: [12:49:56]protocol is kg_v1.0 [12:49:56]action value=close_receipt [12:49:56]process_action close_receipt [12:49:56]cmd_close_receipt [12:49:56]MH_GetDate [12:49:56]Write to MH i2c: F0 00 00 67 95 EB [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: F0 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: F0 09 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: F0 09 00 67 95 00 FD 93 1B 67 22 05 6E 64 FF [12:49:56]GetLastDocTimeStamp 1729860511 [12:49:56]current date 1729860605 [12:49:56]FM_GetShiftState [12:49:56]SAM_PROTO_GetShiftState [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 13 01 00 [12:49:56]Write to MH i2c: E2 08 00 68 95 80 13 01 00 00 00 00 00 7A [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0E 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0E 00 68 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3D [12:49:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_GetShiftState done [12:49:56]FM_GetShiftState done [12:49:56]opened in 1729816399 [12:49:56]opened+sec_in_day 1729902799 [12:49:56]quantity*price = 50041 [12:49:56]sum+1 = 50042 [12:49:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 140 25.10.2024 12:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191401 ФПД: 112342616965010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125005&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191401&fm=112342616965010&tin=02508201610067®Number=0000000000091776&sum=50000 [12:49:57]StoreToDocumentArchive [12:49:57]shift 540 fd 191401 [12:49:57]save to /storage/0540/doc_00191401 [12:49:57]save last doc name /storage/0540/doc_00191401 to /storage/kkm_last_doc_name [12:49:57]save OK [12:49:57]Clear old archive folders... [12:49:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:57]tlvbuf is 017024A0 [12:49:57]SAM_PROTO_ClearQueue [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 09 00 00 [12:49:57]Write to MH i2c: E2 08 00 75 95 80 09 00 00 00 00 00 00 7C [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 75 95 00 90 00 7E [12:49:57]RAPDU: 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_ClearQueue done [12:49:57]KKMCreateOFDPacket [12:49:57]OFDProtocolAddRootSTLVToBuf [12:49:57]FM_MakeSignedData [12:49:57]FM_MakeSignedData [12:49:57]SAM_PROTO_SignData [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 0D 01 02 [12:49:57]Write to MH i2c: E2 08 00 76 95 80 0D 01 02 00 00 00 00 84 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 76 95 00 90 00 7F [12:49:57]RAPDU: 90 00 [12:49:57]wFMCommunicate OK [12:49:57]wFMCommunicate request_size=255 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FD 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EB 02 00 35 04 06 00 66 [12:49:57]Write to MH i2c: E2 02 01 77 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FD 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EB 02 00 35 04 06 00 66 00 00 D0 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 03 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 03 00 77 95 00 90 00 80 [12:49:58]RAPDU: 90 00 [12:49:58]wFMCommunicate OK [12:49:58]wFMCommunicate request_size=10 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 0D 02 02 05 2C CD C6 FF 92 [12:49:58]Write to MH i2c: E2 0D 00 78 95 80 0D 02 02 05 00 2C CD C6 FF 92 00 00 E1 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 03 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 03 00 78 95 00 90 00 81 [12:49:58]RAPDU: 90 00 [12:49:58]wFMCommunicate OK [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 0D 03 02 [12:49:58]Write to MH i2c: E2 08 00 79 95 80 0D 03 02 00 00 00 00 89 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0B 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0B 00 79 95 00 7C 48 F0 29 A1 3C 6B 11 90 00 C0 [12:49:58]RAPDU: 7C 48 F0 29 A1 3C 6B 11 90 00 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_SignData done [12:49:58]FM_MakeSignedData done [12:49:58]CreateOFDProtocolMessage [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 11 00 00 [12:49:58]Write to MH i2c: E2 08 00 7A 95 80 11 00 00 00 00 00 00 89 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 7A 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [12:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:49:58]wFMCommunicate OK [12:49:58]CreateOFDProtocolMessage done [12:49:58]OFDSenderStorePacket 191401 [12:49:58]StoreOFDPacket docnum=191401 [12:49:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 B9 07 01 22 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FD 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EB 02 00 35 04 06 00 66 2C CD C6 FF 92 7C 48 F0 29 A1 3C 6B 11 [12:49:58]CheckFolder [12:49:58]dirname=/storage/ofd_packets [12:49:58]CheckFolder done [12:49:58]ProducePacketName [12:49:58]name=ofd_packets/00191401 [12:49:58]NVStorageSaveData ofd_packets/00191401 [12:49:58]File name is /storage/ofd_packets/00191401 [12:49:58]Write 301 bytes [12:49:58]NVStorageSaveData done [12:49:58]OFDSenderStorePacket done [12:49:58]KKMCreateOFDPacket done [12:49:58]NVStorageSaveData kkm_last_timestamp [12:49:58]File name is /storage/kkm_last_timestamp [12:49:58]Write 4 bytes [12:49:58]NVStorageSaveData done [12:49:58]ExternCall_PrintAddStr [12:49:58]wPrintStart [12:49:58]Write to MH i2c: 01 00 00 7B 95 10 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 7B 95 00 00 00 00 00 FF 0F 25 [12:49:58]RasterBufferAndPrint [12:49:58]line Счет N : (1)30695 [12:49:58]line ИНН: 02508201610067 [12:49:58]line Контрольно-Кассовый Чек [12:49:58]line ПРОДАЖА [12:49:58]line ТРК (МРК, ГНК) : 21 [12:49:58]line Товар: 2710124130 [12:49:58]line Аи-92-К-5 [12:49:58]line 7.480 * 66.90 [12:49:58]line = 500.41 [12:49:58]line НДС 12% НСП 1% [12:49:58]line > о реализуемом товаре [12:49:58]line ОКРУГЛЕНИЕ: -0.41 [12:49:58]line ИТОГО: 500.00 [12:49:58]line Внесено: 500.00 [12:49:58]line СДАЧА: 0.00 [12:49:58]line НСП 1% : 4.43 [12:49:58]line НДС 12% : 53.14 [12:49:58]line Наличными: 500.00 [12:49:58]line Безнал.: 0.00 [12:49:58]line Место: АЗС № 170 "Партнер Нефть" [12:49:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:49:58]line СНО: Общий режим [12:49:58]line Чек 140 25.10.2024 12:50 [12:49:58]line Смена: 540 ФФД: 1.0 [12:49:58]line ЗНМ: 0300000110 [12:49:58]line РНМ: 0000000000091776 [12:49:58]line Версия ККМ: 001 [12:49:58]line ФМ: 0000000000871754 [12:49:58]line ФД: 191401 [12:49:58]line ФПД: 112342616965010 [12:49:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125005&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191401&fm=112342616965010&tin=02508201610067®Number=0000000000091776&sum=50000 [12:49:58]OFD Sender: Processing packet 191401 [packets to send 75, broken 74] [12:49:58]ProducePacketName [12:49:58]name=ofd_packets/00191401 [12:49:58]OFD Sender: To server: pG, [12:49:58]CommunicateWithHost lk.salyk.kg:30040 [12:49:58]ConnectInit lk.salyk.kg [12:49:58]written 0, free lines is 4095 [12:49:58]Connected sock=10 [12:49:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 B9 07 01 22 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FD 93 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EB 02 00 35 04 06 00 66 2C CD C6 FF 92 7C 48 F0 29 A1 3C 6B 11 [12:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 63 47 00 10 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EB 02 00 F4 03 04 00 CC 38 1B 67 B6 04 01 00 00 5D 8D 37 05 D2 B8 1A 96 [12:49:59]CommunicateWithHost err = 0 [12:49:59]CheckOFDResponse [12:49:59]1017 (14) - 77093643461234 [12:49:59]1041 (16) - 0000000000871754 [12:49:59]1040 (4) - 191401 [12:49:59]1012 (4) - 25.10.2024 06:21 [12:49:59]1206 (1) - 0 [12:49:59]OFD Sender: Remove packet 191401 [12:49:59]ProducePacketName [12:49:59]name=ofd_packets/00191401 [12:49:59]NVStorageDeleteData [12:49:59]Write to MH i2c: 01 00 00 A6 95 3B [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 07 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 07 00 A6 95 00 00 00 00 00 C6 0C 14 [12:49:59]RasterBufferAndPrint [12:49:59]line [12:49:59]line [12:49:59]line [12:49:59]line [12:49:59]line [12:49:59]written 0, free lines is 3279 [12:49:59]MH_Cut [12:49:59]Write to MH i2c: D1 01 00 AD 95 01 14 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: D1 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: D1 01 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: D1 01 00 AD 95 00 13 [12:49:59]Write to MH i2c: 01 00 00 AE 95 43 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]OFD Sender: No OFD packet to send [12:49:59]*** Cut start [12:49:59]*** Partial cut [12:49:59]*** CUTSNS_PIN = 1 [12:50:00]*** CUTSNS_PIN = 0 [12:50:00]*** Brake cut motor [12:50:00]Read from MH i2c: 01 [12:50:00]MH_I2C_Read... [12:50:00]*** Stop cut motor [12:50:00]*** Cut end [12:50:00]Read from MH i2c: 01 07 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: 01 07 00 AE 95 00 00 00 00 00 FF 0F 58 [12:50:00]process_action close_receipt done [12:50:00]requested_data is exist [12:50:00]produce_requested_data [12:50:00]requested_item fm.sn is exist - process it [12:50:00]wFMCommunicate request_size=4 [12:50:00]MH_SAM_APDU [12:50:00]CAPDU: 80 11 00 00 [12:50:00]Write to MH i2c: E2 08 00 AF 95 80 11 00 00 00 00 00 00 BE [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:00]Read from MH i2c: E2 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 17 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 17 00 AF 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [12:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:50:00]wFMCommunicate OK [12:50:00]requested_item fd.num is exist - process it [12:50:00]SAM_PROTO_GetFieldsCounters [12:50:00]wFMCommunicate request_size=4 [12:50:00]MH_SAM_APDU [12:50:00]CAPDU: 80 13 00 00 [12:50:00]Write to MH i2c: E2 08 00 B0 95 80 13 00 00 00 00 00 00 C1 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:00]Read from MH i2c: E2 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 62 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 62 00 B0 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:50:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:00]wFMCommunicate OK [12:50:00]SAM_PROTO_GetFieldsCounters done [12:50:00]requested_item shift.num is exist - process it [12:50:00]requested_item shift.opened is exist - process it [12:50:00]req_shift_opened [12:50:00]FM_GetShiftState [12:50:00]SAM_PROTO_GetShiftState [12:50:00]wFMCommunicate request_size=4 [12:50:00]MH_SAM_APDU [12:50:00]CAPDU: 80 13 01 00 [12:50:00]Write to MH i2c: E2 08 00 B1 95 80 13 01 00 00 00 00 00 C3 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:00]Read from MH i2c: E2 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 0E 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 0E 00 B1 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 86 [12:50:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:50:00]wFMCommunicate OK [12:50:00]SAM_PROTO_GetShiftState done [12:50:00]FM_GetShiftState done [12:50:00]req_shift_opened done [12:50:00]requested_item shift.open_date is exist - process it [12:50:00]req_shift_open_date [12:50:00]req_shift_open_date done [12:50:00]produce_requested_data done [12:50:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191401,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:50:00]process_action_free close_receipt [12:50:00]json_value_free [12:50:00]json_value_free done [12:50:00]process_json_proto returns [12:50:00]Send response to host [12:50:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191401,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:50:00]free response buf [12:50:00]execute_script done [12:50:00]execute_script returns [12:50:00]free content buf [12:50:00]Sock 8.Close socket [12:50:00]Sock 8.Thread stoped [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:35]accept exits with 9 [12:51:35]New connection [12:51:35]New thread 3066961252 created [12:51:35]Thread 3066817892 joined [12:51:35]Waiting for new connection... [12:51:35] Sock 9.Parse request [12:51:35]Sock 9.Check first char [12:51:35]Sock 9.First char is OK [12:51:35]request: POST /json_proto HTTP/1.0 [12:51:35]Method: POST [12:51:35]URL: /json_proto [12:51:35]Method is POST - this is cgi request [12:51:35]url: /json_proto [12:51:35]query_string will be loaded in cgi processing [12:51:35]execute_cgi json_proto POST (null) [12:51:35]execute_cgi path=json_proto method=POST [12:51:35]POST find Content-Length [12:51:35]Host: 172.17.63.131:8080 [12:51:35]Content-Length: 676 [12:51:35]Content-Type: application/json [12:51:35] [12:51:35]POST finish read [12:51:35]Found Content-Length = 676 [12:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:35]execute_script... [12:51: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)30696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:35]POST & json_proto [12:51:35]process_json_proto [12:51:35]json parsed OK: [12:51:35]protocol is kg_v1.0 [12:51:35]action value=close_receipt [12:51:35]process_action close_receipt [12:51:35]cmd_close_receipt [12:51:35]MH_GetDate [12:51:35]Write to MH i2c: F0 00 00 B2 95 36 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 09 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: F0 09 00 B2 95 00 60 94 1B 67 22 05 6E 64 AE [12:51:35]GetLastDocTimeStamp 1729860605 [12:51:35]current date 1729860704 [12:51:35]FM_GetShiftState [12:51:35]SAM_PROTO_GetShiftState [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 13 01 00 [12:51:35]Write to MH i2c: E2 08 00 B3 95 80 13 01 00 00 00 00 00 C5 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 B3 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 88 [12:51:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:51:35]wFMCommunicate OK [12:51:35]SAM_PROTO_GetShiftState done [12:51:35]FM_GetShiftState done [12:51:35]opened in 1729816399 [12:51:35]opened+sec_in_day 1729902799 [12:51:35]quantity*price = 34052 [12:51:35]sum+1 = 34053 [12:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 141 25.10.2024 12:51 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191402 ФПД: 104606503525513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191402&fm=104606503525513&tin=02508201610067®Number=0000000000091776&sum=34000 [12:51:36]StoreToDocumentArchive [12:51:36]shift 540 fd 191402 [12:51:36]save to /storage/0540/doc_00191402 [12:51:36]save last doc name /storage/0540/doc_00191402 to /storage/kkm_last_doc_name [12:51:36]save OK [12:51:36]Clear old archive folders... [12:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:36]tlvbuf is 01708DA0 [12:51:36]SAM_PROTO_ClearQueue [12:51:36]wFMCommunicate request_size=4 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 09 00 00 [12:51:36]Write to MH i2c: E2 08 00 C0 95 80 09 00 00 00 00 00 00 C7 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:36]Read from MH i2c: E2 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 C0 95 00 90 00 C9 [12:51:36]RAPDU: 90 00 [12:51:36]wFMCommunicate OK [12:51:36]SAM_PROTO_ClearQueue done [12:51:36]KKMCreateOFDPacket [12:51:36]OFDProtocolAddRootSTLVToBuf [12:51:36]FM_MakeSignedData [12:51:36]FM_MakeSignedData [12:51:36]SAM_PROTO_SignData [12:51:36]wFMCommunicate request_size=4 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 0D 01 02 [12:51:36]Write to MH i2c: E2 08 00 C1 95 80 0D 01 02 00 00 00 00 CF [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:36]Read from MH i2c: E2 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 03 00 C1 95 00 90 00 CA [12:51:36]RAPDU: 90 00 [12:51:36]wFMCommunicate OK [12:51:36]wFMCommunicate request_size=255 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 60 94 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EB 02 00 35 04 06 00 5F [12:51:37]Write to MH i2c: E2 02 01 C2 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 60 94 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EB 02 00 35 04 06 00 5F 00 00 B3 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 C2 95 00 90 00 CB [12:51:37]RAPDU: 90 00 [12:51:37]wFMCommunicate OK [12:51:37]wFMCommunicate request_size=10 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 0D 02 02 05 23 99 7B DC 89 [12:51:37]Write to MH i2c: E2 0D 00 C3 95 80 0D 02 02 05 00 23 99 7B DC 89 00 00 78 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 03 00 C3 95 00 90 00 CC [12:51:37]RAPDU: 90 00 [12:51:37]wFMCommunicate OK [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 0D 03 02 [12:51:37]Write to MH i2c: E2 08 00 C4 95 80 0D 03 02 00 00 00 00 D4 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0B 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0B 00 C4 95 00 45 1A B1 1A F8 22 06 64 90 00 83 [12:51:37]RAPDU: 45 1A B1 1A F8 22 06 64 90 00 [12:51:37]wFMCommunicate OK [12:51:37]SAM_PROTO_SignData done [12:51:37]FM_MakeSignedData done [12:51:37]CreateOFDProtocolMessage [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 11 00 00 [12:51:37]Write to MH i2c: E2 08 00 C5 95 80 11 00 00 00 00 00 00 D4 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 17 00 C5 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [12:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:51:37]wFMCommunicate OK [12:51:37]CreateOFDProtocolMessage done [12:51:37]OFDSenderStorePacket 191402 [12:51:37]StoreOFDPacket docnum=191402 [12:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 E9 07 01 FD EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 60 94 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EB 02 00 35 04 06 00 5F 23 99 7B DC 89 45 1A B1 1A F8 22 06 64 [12:51:37]CheckFolder [12:51:37]dirname=/storage/ofd_packets [12:51:37]CheckFolder done [12:51:37]ProducePacketName [12:51:37]name=ofd_packets/00191402 [12:51:37]NVStorageSaveData ofd_packets/00191402 [12:51:37]File name is /storage/ofd_packets/00191402 [12:51:37]Write 301 bytes [12:51:37]NVStorageSaveData done [12:51:37]OFDSenderStorePacket done [12:51:37]KKMCreateOFDPacket done [12:51:37]NVStorageSaveData kkm_last_timestamp [12:51:37]File name is /storage/kkm_last_timestamp [12:51:37]Write 4 bytes [12:51:37]NVStorageSaveData done [12:51:37]ExternCall_PrintAddStr [12:51:37]wPrintStart [12:51:37]Write to MH i2c: 01 00 00 C6 95 5B [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 07 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: 01 07 00 C6 95 00 00 00 00 00 FF 0F 70 [12:51:37]RasterBufferAndPrint [12:51:37]line Счет N : (1)30696 [12:51:37]line ИНН: 02508201610067 [12:51:37]line Контрольно-Кассовый Чек [12:51:37]line ПРОДАЖА [12:51:37]line ТРК (МРК, ГНК) : 12 [12:51:37]line Товар: 2710124130 [12:51:37]line Аи-92-К-5 [12:51:37]line 5.090 * 66.90 [12:51:37]line = 340.52 [12:51:37]line НДС 12% НСП 1% [12:51:37]line > о реализуемом товаре [12:51:37]line ОКРУГЛЕНИЕ: -0.52 [12:51:37]line ИТОГО: 340.00 [12:51:37]line Внесено: 340.00 [12:51:37]line СДАЧА: 0.00 [12:51:37]line НСП 1% : 3.01 [12:51:37]line НДС 12% : 36.16 [12:51:37]line Наличными: 340.00 [12:51:37]line Безнал.: 0.00 [12:51:37]line Место: АЗС № 170 "Партнер Нефть" [12:51:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:51:37]line СНО: Общий режим [12:51:37]line Чек 141 25.10.2024 12:51 [12:51:37]line Смена: 540 ФФД: 1.0 [12:51:37]line ЗНМ: 0300000110 [12:51:37]line РНМ: 0000000000091776 [12:51:37]line Версия ККМ: 001 [12:51:37]line ФМ: 0000000000871754 [12:51:37]line ФД: 191402 [12:51:37]line ФПД: 104606503525513 [12:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191402&fm=104606503525513&tin=02508201610067®Number=0000000000091776&sum=34000 [12:51:37]OFD Sender: Processing packet 191402 [packets to send 75, broken 74] [12:51:37]ProducePacketName [12:51:37]name=ofd_packets/00191402 [12:51:37]OFD Sender: To server: pG, [12:51:37]CommunicateWithHost lk.salyk.kg:30040 [12:51:37]ConnectInit lk.salyk.kg [12:51:37]written 0, free lines is 4095 [12:51:37]Connected sock=10 [12:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 E9 07 01 FD EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 60 94 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EB 02 00 35 04 06 00 5F 23 99 7B DC 89 45 1A B1 1A F8 22 06 64 [12:51:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 D0 47 00 73 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EB 02 00 F4 03 04 00 2F 39 1B 67 B6 04 01 00 00 BA E7 32 09 3C E8 D4 71 [12:51:38]CommunicateWithHost err = 0 [12:51:38]CheckOFDResponse [12:51:38]1017 (14) - 77093643461234 [12:51:38]1041 (16) - 0000000000871754 [12:51:38]1040 (4) - 191402 [12:51:38]1012 (4) - 25.10.2024 06:22 [12:51:38]1206 (1) - 0 [12:51:38]OFD Sender: Remove packet 191402 [12:51:38]ProducePacketName [12:51:38]name=ofd_packets/00191402 [12:51:38]NVStorageDeleteData [12:51:38]Write to MH i2c: 01 00 00 F1 95 86 [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 07 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: 01 07 00 F1 95 00 00 00 00 00 AD 0C 46 [12:51:38]RasterBufferAndPrint [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]line [12:51:38]written 0, free lines is 3249 [12:51:38]MH_Cut [12:51:38]Write to MH i2c: D1 01 00 F8 95 01 5F [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 01 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: D1 01 00 F8 95 00 5E [12:51:38]Write to MH i2c: 01 00 00 F9 95 8E [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]OFD Sender: No OFD packet to send [12:51:39]*** Cut start [12:51:39]*** Partial cut [12:51:39]*** CUTSNS_PIN = 1 [12:51:39]*** CUTSNS_PIN = 0 [12:51:39]*** Brake cut motor [12:51:39]Read from MH i2c: 01 [12:51:39]MH_I2C_Read... [12:51:39]*** Stop cut motor [12:51:39]*** Cut end [12:51:39]Read from MH i2c: 01 07 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 F9 95 00 00 00 00 00 FF 0F A3 [12:51:39]process_action close_receipt done [12:51:39]requested_data is exist [12:51:39]produce_requested_data [12:51:39]requested_item fm.sn is exist - process it [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 11 00 00 [12:51:39]Write to MH i2c: E2 08 00 FA 95 80 11 00 00 00 00 00 00 09 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 FA 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [12:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:51:39]wFMCommunicate OK [12:51:39]requested_item fd.num is exist - process it [12:51:39]SAM_PROTO_GetFieldsCounters [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 13 00 00 [12:51:39]Write to MH i2c: E2 08 00 FB 95 80 13 00 00 00 00 00 00 0C [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 62 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 62 00 FB 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [12:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_GetFieldsCounters done [12:51:39]requested_item shift.num is exist - process it [12:51:39]requested_item shift.opened is exist - process it [12:51:39]req_shift_opened [12:51:39]FM_GetShiftState [12:51:39]SAM_PROTO_GetShiftState [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 13 01 00 [12:51:39]Write to MH i2c: E2 08 00 FC 95 80 13 01 00 00 00 00 00 0E [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0E 00 FC 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D1 [12:51:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_GetShiftState done [12:51:39]FM_GetShiftState done [12:51:39]req_shift_opened done [12:51:39]requested_item shift.open_date is exist - process it [12:51:39]req_shift_open_date [12:51:39]req_shift_open_date done [12:51:39]produce_requested_data done [12:51:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191402,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:51:39]process_action_free close_receipt [12:51:39]json_value_free [12:51:39]json_value_free done [12:51:39]process_json_proto returns [12:51:39]Send response to host [12:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191402,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:51:39]free response buf [12:51:39]execute_script done [12:51:39]execute_script returns [12:51:39]free content buf [12:51:39]Sock 9.Close socket [12:51:39]Sock 9.Thread stoped [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:46]accept exits with 8 [12:54:46]New connection [12:54:46]New thread 3066817892 created [12:54:46]Thread 3066961252 joined [12:54:46]Waiting for new connection... [12:54:46] Sock 8.Parse request [12:54:46]Sock 8.Check first char [12:54:46]Sock 8.First char is OK [12:54:46]request: POST /json_proto HTTP/1.0 [12:54:46]Method: POST [12:54:46]URL: /json_proto [12:54:46]Method is POST - this is cgi request [12:54:46]url: /json_proto [12:54:46]query_string will be loaded in cgi processing [12:54:46]execute_cgi json_proto POST (null) [12:54:46]execute_cgi path=json_proto method=POST [12:54:46]POST find Content-Length [12:54:46]Host: 172.17.63.131:8080 [12:54:46]Content-Length: 676 [12:54:46]Content-Type: application/json [12:54:46] [12:54:46]POST finish read [12:54:46]Found Content-Length = 676 [12:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:46]execute_script... [12:54: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)30697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:46]POST & json_proto [12:54:46]process_json_proto [12:54:46]json parsed OK: [12:54:46]protocol is kg_v1.0 [12:54:46]action value=close_receipt [12:54:46]process_action close_receipt [12:54:46]cmd_close_receipt [12:54:46]MH_GetDate [12:54:46]Write to MH i2c: F0 00 00 FD 95 81 [12:54:46]Write i2c OK [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: F0 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: F0 09 00 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: F0 09 00 FD 95 00 1F 95 1B 67 22 05 6E 64 B9 [12:54:46]GetLastDocTimeStamp 1729860704 [12:54:46]current date 1729860895 [12:54:46]FM_GetShiftState [12:54:46]SAM_PROTO_GetShiftState [12:54:46]wFMCommunicate request_size=4 [12:54:46]MH_SAM_APDU [12:54:46]CAPDU: 80 13 01 00 [12:54:46]Write to MH i2c: E2 08 00 FE 95 80 13 01 00 00 00 00 00 10 [12:54:46]Write i2c OK [12:54:46]MH_I2C_Read... [12:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:46]Read from MH i2c: E2 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: E2 0E 00 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: E2 0E 00 FE 95 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D3 [12:54:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:54:46]wFMCommunicate OK [12:54:46]SAM_PROTO_GetShiftState done [12:54:46]FM_GetShiftState done [12:54:46]opened in 1729816399 [12:54:46]opened+sec_in_day 1729902799 [12:54:46]quantity*price = 50041 [12:54:46]sum+1 = 50042 [12:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 142 25.10.2024 12:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191403 ФПД: 61053035194351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191403&fm=61053035194351&tin=02508201610067®Number=0000000000091776&sum=50000 [12:54:47]StoreToDocumentArchive [12:54:47]shift 540 fd 191403 [12:54:47]save to /storage/0540/doc_00191403 [12:54:47]save last doc name /storage/0540/doc_00191403 to /storage/kkm_last_doc_name [12:54:47]save OK [12:54:47]Clear old archive folders... [12:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:47]tlvbuf is 015B0E90 [12:54:47]SAM_PROTO_ClearQueue [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 09 00 00 [12:54:47]Write to MH i2c: E2 08 00 0B 96 80 09 00 00 00 00 00 00 13 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 0B 96 00 90 00 15 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_ClearQueue done [12:54:47]KKMCreateOFDPacket [12:54:47]OFDProtocolAddRootSTLVToBuf [12:54:47]FM_MakeSignedData [12:54:47]FM_MakeSignedData [12:54:47]SAM_PROTO_SignData [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 01 02 [12:54:47]Write to MH i2c: E2 08 00 0C 96 80 0D 01 02 00 00 00 00 1B [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 0C 96 00 90 00 16 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]wFMCommunicate request_size=255 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1F 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EB 02 00 35 04 06 00 37 [12:54:47]Write to MH i2c: E2 02 01 0D 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1F 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EB 02 00 35 04 06 00 37 00 00 60 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 0D 96 00 90 00 17 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]wFMCommunicate request_size=10 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 02 02 05 87 04 79 A7 EF [12:54:47]Write to MH i2c: E2 0D 00 0E 96 80 0D 02 02 05 00 87 04 79 A7 EF 00 00 C2 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 0E 96 00 90 00 18 [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 03 02 [12:54:48]Write to MH i2c: E2 08 00 0F 96 80 0D 03 02 00 00 00 00 20 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0B 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0B 00 0F 96 00 94 E5 90 F3 37 F6 BB 9F 90 00 A4 [12:54:48]RAPDU: 94 E5 90 F3 37 F6 BB 9F 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_SignData done [12:54:48]FM_MakeSignedData done [12:54:48]CreateOFDProtocolMessage [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 11 00 00 [12:54:48]Write to MH i2c: E2 08 00 10 96 80 11 00 00 00 00 00 00 20 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 10 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [12:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:48]wFMCommunicate OK [12:54:48]CreateOFDProtocolMessage done [12:54:48]OFDSenderStorePacket 191403 [12:54:48]StoreOFDPacket docnum=191403 [12:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 60 07 01 26 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1F 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EB 02 00 35 04 06 00 37 87 04 79 A7 EF 94 E5 90 F3 37 F6 BB 9F [12:54:48]CheckFolder [12:54:48]dirname=/storage/ofd_packets [12:54:48]CheckFolder done [12:54:48]ProducePacketName [12:54:48]name=ofd_packets/00191403 [12:54:48]NVStorageSaveData ofd_packets/00191403 [12:54:48]File name is /storage/ofd_packets/00191403 [12:54:48]Write 301 bytes [12:54:48]NVStorageSaveData done [12:54:48]OFDSenderStorePacket done [12:54:48]KKMCreateOFDPacket done [12:54:48]NVStorageSaveData kkm_last_timestamp [12:54:48]File name is /storage/kkm_last_timestamp [12:54:48]Write 4 bytes [12:54:48]NVStorageSaveData done [12:54:48]ExternCall_PrintAddStr [12:54:48]wPrintStart [12:54:48]Write to MH i2c: 01 00 00 11 96 A7 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 11 96 00 00 00 00 00 FF 0F BC [12:54:48]RasterBufferAndPrint [12:54:48]line Счет N : (1)30697 [12:54:48]line ИНН: 02508201610067 [12:54:48]line Контрольно-Кассовый Чек [12:54:48]line ПРОДАЖА [12:54:48]line ТРК (МРК, ГНК) : 12 [12:54:48]line Товар: 2710124130 [12:54:48]line Аи-92-К-5 [12:54:48]line 7.480 * 66.90 [12:54:48]line = 500.41 [12:54:48]line НДС 12% НСП 1% [12:54:48]line > о реализуемом товаре [12:54:48]line ОКРУГЛЕНИЕ: -0.41 [12:54:48]line ИТОГО: 500.00 [12:54:48]line Внесено: 500.00 [12:54:48]line СДАЧА: 0.00 [12:54:48]line НСП 1% : 4.43 [12:54:48]line НДС 12% : 53.14 [12:54:48]line Наличными: 500.00 [12:54:48]line Безнал.: 0.00 [12:54:48]line Место: АЗС № 170 "Партнер Нефть" [12:54:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:54:48]line СНО: Общий режим [12:54:48]line Чек 142 25.10.2024 12:54 [12:54:48]line Смена: 540 ФФД: 1.0 [12:54:48]line ЗНМ: 0300000110 [12:54:48]line РНМ: 0000000000091776 [12:54:48]line Версия ККМ: 001 [12:54:48]line ФМ: 0000000000871754 [12:54:48]line ФД: 191403 [12:54:48]line ФПД: 61053035194351 [12:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191403&fm=61053035194351&tin=02508201610067®Number=0000000000091776&sum=50000 [12:54:48]OFD Sender: Processing packet 191403 [packets to send 75, broken 74] [12:54:48]ProducePacketName [12:54:48]name=ofd_packets/00191403 [12:54:48]OFD Sender: To server: pG, [12:54:48]CommunicateWithHost lk.salyk.kg:30040 [12:54:48]ConnectInit lk.salyk.kg [12:54:48]written 0, free lines is 4095 [12:54:48]Connected sock=10 [12:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 60 07 01 26 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1F 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EB 02 00 35 04 06 00 37 87 04 79 A7 EF 94 E5 90 F3 37 F6 BB 9F [12:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C BC 47 00 C5 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EB 02 00 F4 03 04 00 EE 39 1B 67 B6 04 01 00 00 01 CC 7F A5 A2 76 CE 2A [12:54:48]CommunicateWithHost err = 0 [12:54:48]CheckOFDResponse [12:54:48]1017 (14) - 77093643461234 [12:54:48]1041 (16) - 0000000000871754 [12:54:48]1040 (4) - 191403 [12:54:48]1012 (4) - 25.10.2024 06:25 [12:54:48]1206 (1) - 0 [12:54:48]OFD Sender: Remove packet 191403 [12:54:48]ProducePacketName [12:54:48]name=ofd_packets/00191403 [12:54:48]NVStorageDeleteData [12:54:48]Write to MH i2c: 01 00 00 3C 96 D2 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 3C 96 00 00 00 00 00 AD 0C 92 [12:54:48]RasterBufferAndPrint [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]written 0, free lines is 3249 [12:54:48]MH_Cut [12:54:48]Write to MH i2c: D1 01 00 43 96 01 AB [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 01 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 01 00 43 96 00 AA [12:54:48]Write to MH i2c: 01 00 00 44 96 DA [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:49]OFD Sender: No OFD packet to send [12:54:49]*** Cut start [12:54:49]*** Partial cut [12:54:49]*** CUTSNS_PIN = 1 [12:54:49]*** CUTSNS_PIN = 0 [12:54:50]*** Brake cut motor [12:54:50]Read from MH i2c: 01 [12:54:50]MH_I2C_Read... [12:54:50]*** Stop cut motor [12:54:50]*** Cut end [12:54:50]Read from MH i2c: 01 07 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 07 00 44 96 00 00 00 00 00 FF 0F EF [12:54:50]process_action close_receipt done [12:54:50]requested_data is exist [12:54:50]produce_requested_data [12:54:50]requested_item fm.sn is exist - process it [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 11 00 00 [12:54:50]Write to MH i2c: E2 08 00 45 96 80 11 00 00 00 00 00 00 55 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:50]Read from MH i2c: E2 17 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 17 00 45 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [12:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:50]wFMCommunicate OK [12:54:50]requested_item fd.num is exist - process it [12:54:50]SAM_PROTO_GetFieldsCounters [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 13 00 00 [12:54:50]Write to MH i2c: E2 08 00 46 96 80 13 00 00 00 00 00 00 58 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 62 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 62 00 46 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [12:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_GetFieldsCounters done [12:54:50]requested_item shift.num is exist - process it [12:54:50]requested_item shift.opened is exist - process it [12:54:50]req_shift_opened [12:54:50]FM_GetShiftState [12:54:50]SAM_PROTO_GetShiftState [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 13 01 00 [12:54:50]Write to MH i2c: E2 08 00 47 96 80 13 01 00 00 00 00 00 5A [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0E 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0E 00 47 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1D [12:54:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_GetShiftState done [12:54:50]FM_GetShiftState done [12:54:50]req_shift_opened done [12:54:50]requested_item shift.open_date is exist - process it [12:54:50]req_shift_open_date [12:54:50]req_shift_open_date done [12:54:50]produce_requested_data done [12:54:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191403,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:54:50]process_action_free close_receipt [12:54:50]json_value_free [12:54:50]json_value_free done [12:54:50]process_json_proto returns [12:54:50]Send response to host [12:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191403,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:54:50]free response buf [12:54:50]execute_script done [12:54:50]execute_script returns [12:54:50]free content buf [12:54:50]Sock 8.Close socket [12:54:50]Sock 8.Thread stoped [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:45]accept exits with 9 [12:56:45]New connection [12:56:45]New thread 3066961252 created [12:56:45]Thread 3066817892 joined [12:56:45]Waiting for new connection... [12:56:45] Sock 9.Parse request [12:56:45]Sock 9.Check first char [12:56:45]Sock 9.First char is OK [12:56:45]request: POST /json_proto HTTP/1.0 [12:56:45]Method: POST [12:56:45]URL: /json_proto [12:56:45]Method is POST - this is cgi request [12:56:45]url: /json_proto [12:56:45]query_string will be loaded in cgi processing [12:56:45]execute_cgi json_proto POST (null) [12:56:45]execute_cgi path=json_proto method=POST [12:56:45]POST find Content-Length [12:56:45]Host: 172.17.63.131:8080 [12:56:45]Content-Length: 678 [12:56:45]Content-Type: application/json [12:56:45] [12:56:45]POST finish read [12:56:45]Found Content-Length = 678 [12:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:56:45]execute_script... [12:56: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)30700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:56:45]POST & json_proto [12:56:45]process_json_proto [12:56:45]json parsed OK: [12:56:45]protocol is kg_v1.0 [12:56:45]action value=close_receipt [12:56:45]process_action close_receipt [12:56:45]cmd_close_receipt [12:56:45]MH_GetDate [12:56:45]Write to MH i2c: F0 00 00 48 96 CD [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: F0 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: F0 09 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: F0 09 00 48 96 00 96 95 1B 67 22 05 6E 64 7C [12:56:45]GetLastDocTimeStamp 1729860895 [12:56:45]current date 1729861014 [12:56:45]FM_GetShiftState [12:56:45]SAM_PROTO_GetShiftState [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 13 01 00 [12:56:45]Write to MH i2c: E2 08 00 49 96 80 13 01 00 00 00 00 00 5C [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 49 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1F [12:56:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_GetShiftState done [12:56:45]FM_GetShiftState done [12:56:45]opened in 1729816399 [12:56:45]opened+sec_in_day 1729902799 [12:56:45]quantity*price = 200025 [12:56:45]sum+1 = 200026 [12:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 143 25.10.2024 12:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191404 ФПД: 168507890015525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125654&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191404&fm=168507890015525&tin=02508201610067®Number=0000000000091776&sum=200000 [12:56:46]StoreToDocumentArchive [12:56:46]shift 540 fd 191404 [12:56:46]save to /storage/0540/doc_00191404 [12:56:46]save last doc name /storage/0540/doc_00191404 to /storage/kkm_last_doc_name [12:56:46]save OK [12:56:46]Clear old archive folders... [12:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:56:46]tlvbuf is 015B0C60 [12:56:46]SAM_PROTO_ClearQueue [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 09 00 00 [12:56:46]Write to MH i2c: E2 08 00 56 96 80 09 00 00 00 00 00 00 5E [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 03 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 03 00 56 96 00 90 00 60 [12:56:46]RAPDU: 90 00 [12:56:46]wFMCommunicate OK [12:56:46]SAM_PROTO_ClearQueue done [12:56:46]KKMCreateOFDPacket [12:56:46]OFDProtocolAddRootSTLVToBuf [12:56:46]FM_MakeSignedData [12:56:46]FM_MakeSignedData [12:56:46]SAM_PROTO_SignData [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 0D 01 02 [12:56:46]Write to MH i2c: E2 08 00 57 96 80 0D 01 02 00 00 00 00 66 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 03 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 03 00 57 96 00 90 00 61 [12:56:46]RAPDU: 90 00 [12:56:46]wFMCommunicate OK [12:56:46]wFMCommunicate request_size=255 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 96 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EB 02 00 35 04 06 00 99 41 CC ED [12:56:46]Write to MH i2c: E2 02 01 58 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 96 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EB 02 00 35 04 06 00 99 41 CC ED 00 00 64 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 58 96 00 90 00 62 [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]wFMCommunicate request_size=7 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 0D 02 02 02 1D 25 [12:56:47]Write to MH i2c: E2 0A 00 59 96 80 0D 02 02 02 00 1D 25 00 00 AF [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 03 00 59 96 00 90 00 63 [12:56:47]RAPDU: 90 00 [12:56:47]wFMCommunicate OK [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 0D 03 02 [12:56:47]Write to MH i2c: E2 08 00 5A 96 80 0D 03 02 00 00 00 00 6B [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0B 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0B 00 5A 96 00 1F D9 8C E2 E6 82 D3 58 90 00 65 [12:56:47]RAPDU: 1F D9 8C E2 E6 82 D3 58 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_SignData done [12:56:47]FM_MakeSignedData done [12:56:47]CreateOFDProtocolMessage [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 11 00 00 [12:56:47]Write to MH i2c: E2 08 00 5B 96 80 11 00 00 00 00 00 00 6B [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 17 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 17 00 5B 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [12:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:56:47]wFMCommunicate OK [12:56:47]CreateOFDProtocolMessage done [12:56:47]OFDSenderStorePacket 191404 [12:56:47]StoreOFDPacket docnum=191404 [12:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B9 B1 04 01 EC 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 96 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EB 02 00 35 04 06 00 99 41 CC ED 1D 25 1F D9 8C E2 E6 82 D3 58 [12:56:47]CheckFolder [12:56:47]dirname=/storage/ofd_packets [12:56:47]CheckFolder done [12:56:47]ProducePacketName [12:56:47]name=ofd_packets/00191404 [12:56:47]NVStorageSaveData ofd_packets/00191404 [12:56:47]File name is /storage/ofd_packets/00191404 [12:56:47]Write 298 bytes [12:56:47]NVStorageSaveData done [12:56:47]OFDSenderStorePacket done [12:56:47]KKMCreateOFDPacket done [12:56:47]NVStorageSaveData kkm_last_timestamp [12:56:47]File name is /storage/kkm_last_timestamp [12:56:47]Write 4 bytes [12:56:47]NVStorageSaveData done [12:56:47]ExternCall_PrintAddStr [12:56:47]wPrintStart [12:56:47]Write to MH i2c: 01 00 00 5C 96 F2 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 07 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 07 00 5C 96 00 00 00 00 00 FF 0F 07 [12:56:47]RasterBufferAndPrint [12:56:47]line Счет N : (1)30700 [12:56:47]line ИНН: 02508201610067 [12:56:47]line Контрольно-Кассовый Чек [12:56:47]line ПРОДАЖА [12:56:47]line ТРК (МРК, ГНК) : 22 [12:56:47]line Товар: 2710194210 [12:56:47]line ДТ-К-5 [12:56:47]line 26.250 * 76.20 [12:56:47]line = 2000.25 [12:56:47]line НДС 12% НСП 1% [12:56:47]line > о реализуемом товаре [12:56:47]line ОКРУГЛЕНИЕ: -0.25 [12:56:47]line ИТОГО: 2000.00 [12:56:47]line Внесено: 2000.00 [12:56:47]line СДАЧА: 0.00 [12:56:47]line НСП 1% : 17.70 [12:56:47]line НДС 12% : 212.42 [12:56:47]line Наличными: 2000.00 [12:56:47]line Безнал.: 0.00 [12:56:47]line Место: АЗС № 170 "Партнер Нефть" [12:56:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:56:47]line СНО: Общий режим [12:56:47]line Чек 143 25.10.2024 12:56 [12:56:47]line Смена: 540 ФФД: 1.0 [12:56:47]line ЗНМ: 0300000110 [12:56:47]line РНМ: 0000000000091776 [12:56:47]line Версия ККМ: 001 [12:56:47]line ФМ: 0000000000871754 [12:56:47]line ФД: 191404 [12:56:47]line ФПД: 168507890015525 [12:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125654&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191404&fm=168507890015525&tin=02508201610067®Number=0000000000091776&sum=200000 [12:56:47]OFD Sender: Processing packet 191404 [packets to send 75, broken 74] [12:56:47]ProducePacketName [12:56:47]name=ofd_packets/00191404 [12:56:47]OFD Sender: To server: pG, [12:56:47]CommunicateWithHost lk.salyk.kg:30040 [12:56:47]ConnectInit lk.salyk.kg [12:56:47]written 0, free lines is 4095 [12:56:47]Connected sock=10 [12:56:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B9 B1 04 01 EC 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 96 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EB 02 00 35 04 06 00 99 41 CC ED 1D 25 1F D9 8C E2 E6 82 D3 58 [12:56:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7A BE 47 00 60 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EB 02 00 F4 03 04 00 65 3A 1B 67 B6 04 01 00 00 AA 28 0C F6 14 9C F6 A2 [12:56:47]CommunicateWithHost err = 0 [12:56:47]CheckOFDResponse [12:56:47]1017 (14) - 77093643461234 [12:56:47]1041 (16) - 0000000000871754 [12:56:47]1040 (4) - 191404 [12:56:47]1012 (4) - 25.10.2024 06:27 [12:56:47]1206 (1) - 0 [12:56:47]OFD Sender: Remove packet 191404 [12:56:47]ProducePacketName [12:56:47]name=ofd_packets/00191404 [12:56:47]NVStorageDeleteData [12:56:47]Write to MH i2c: 01 00 00 87 96 1D [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 07 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: 01 07 00 87 96 00 00 00 00 00 AD 0C DD [12:56:47]RasterBufferAndPrint [12:56:47]line [12:56:47]line [12:56:47]line [12:56:47]line [12:56:47]line [12:56:47]written 0, free lines is 3251 [12:56:47]MH_Cut [12:56:47]Write to MH i2c: D1 01 00 8E 96 01 F6 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: D1 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: D1 01 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: D1 01 00 8E 96 00 F5 [12:56:47]Write to MH i2c: 01 00 00 8F 96 25 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:48]OFD Sender: No OFD packet to send [12:56:48]*** Cut start [12:56:48]*** Partial cut [12:56:48]*** CUTSNS_PIN = 1 [12:56:48]*** CUTSNS_PIN = 0 [12:56:49]*** Brake cut motor [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]*** Stop cut motor [12:56:49]*** Cut end [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 8F 96 00 00 00 00 00 FF 0F 3A [12:56:49]process_action close_receipt done [12:56:49]requested_data is exist [12:56:49]produce_requested_data [12:56:49]requested_item fm.sn is exist - process it [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 11 00 00 [12:56:49]Write to MH i2c: E2 08 00 90 96 80 11 00 00 00 00 00 00 A0 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 90 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [12:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:56:49]wFMCommunicate OK [12:56:49]requested_item fd.num is exist - process it [12:56:49]SAM_PROTO_GetFieldsCounters [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 13 00 00 [12:56:49]Write to MH i2c: E2 08 00 91 96 80 13 00 00 00 00 00 00 A3 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 62 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 62 00 91 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_GetFieldsCounters done [12:56:49]requested_item shift.num is exist - process it [12:56:49]requested_item shift.opened is exist - process it [12:56:49]req_shift_opened [12:56:49]FM_GetShiftState [12:56:49]SAM_PROTO_GetShiftState [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 13 01 00 [12:56:49]Write to MH i2c: E2 08 00 92 96 80 13 01 00 00 00 00 00 A5 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 92 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 68 [12:56:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_GetShiftState done [12:56:49]FM_GetShiftState done [12:56:49]req_shift_opened done [12:56:49]requested_item shift.open_date is exist - process it [12:56:49]req_shift_open_date [12:56:49]req_shift_open_date done [12:56:49]produce_requested_data done [12:56:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191404,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:56:49]process_action_free close_receipt [12:56:49]json_value_free [12:56:49]json_value_free done [12:56:49]process_json_proto returns [12:56:49]Send response to host [12:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191404,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:56:49]free response buf [12:56:49]execute_script done [12:56:49]execute_script returns [12:56:49]free content buf [12:56:49]Sock 9.Close socket [12:56:49]Sock 9.Thread stoped [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:56:59]accept exits with 8 [12:56:59]New connection [12:56:59]New thread 3066817892 created [12:56:59]Thread 3066961252 joined [12:56:59]Waiting for new connection... [12:56:59] Sock 8.Parse request [12:56:59]Sock 8.Check first char [12:56:59]Sock 8.First char is OK [12:56:59]request: POST /json_proto HTTP/1.0 [12:56:59]Method: POST [12:56:59]URL: /json_proto [12:56:59]Method is POST - this is cgi request [12:56:59]url: /json_proto [12:56:59]query_string will be loaded in cgi processing [12:56:59]execute_cgi json_proto POST (null) [12:56:59]execute_cgi path=json_proto method=POST [12:56:59]POST find Content-Length [12:56:59]Host: 172.17.63.131:8080 [12:56:59]Content-Length: 676 [12:56:59]Content-Type: application/json [12:56:59] [12:56:59]POST finish read [12:56:59]Found Content-Length = 676 [12:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:59]execute_script... [12:56: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)30699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:59]POST & json_proto [12:56:59]process_json_proto [12:56:59]json parsed OK: [12:56:59]protocol is kg_v1.0 [12:56:59]action value=close_receipt [12:56:59]process_action close_receipt [12:56:59]cmd_close_receipt [12:56:59]MH_GetDate [12:56:59]Write to MH i2c: F0 00 00 93 96 18 [12:56:59]Write i2c OK [12:56:59]MH_I2C_Read... [12:56:59]Read from MH i2c: F0 [12:56:59]MH_I2C_Read... [12:56:59]Read from MH i2c: F0 09 00 [12:56:59]MH_I2C_Read... [12:56:59]Read from MH i2c: F0 09 00 93 96 00 A4 95 1B 67 22 05 6E 64 D5 [12:56:59]GetLastDocTimeStamp 1729861014 [12:56:59]current date 1729861028 [12:56:59]FM_GetShiftState [12:56:59]SAM_PROTO_GetShiftState [12:56:59]wFMCommunicate request_size=4 [12:56:59]MH_SAM_APDU [12:56:59]CAPDU: 80 13 01 00 [12:56:59]Write to MH i2c: E2 08 00 94 96 80 13 01 00 00 00 00 00 A7 [12:56:59]Write i2c OK [12:56:59]MH_I2C_Read... [12:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:59]Read from MH i2c: E2 [12:56:59]MH_I2C_Read... [12:56:59]Read from MH i2c: E2 0E 00 [12:56:59]MH_I2C_Read... [12:56:59]Read from MH i2c: E2 0E 00 94 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6A [12:56:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:56:59]wFMCommunicate OK [12:56:59]SAM_PROTO_GetShiftState done [12:56:59]FM_GetShiftState done [12:56:59]opened in 1729816399 [12:56:59]opened+sec_in_day 1729902799 [12:56:59]quantity*price = 60009 [12:56:59]sum+1 = 60010 [12:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 144 25.10.2024 12:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191405 ФПД: 54022830999092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191405&fm=54022830999092&tin=02508201610067®Number=0000000000091776&sum=60000 [12:57:00]StoreToDocumentArchive [12:57:00]shift 540 fd 191405 [12:57:00]save to /storage/0540/doc_00191405 [12:57:00]save last doc name /storage/0540/doc_00191405 to /storage/kkm_last_doc_name [12:57:00]save OK [12:57:00]Clear old archive folders... [12:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:00]tlvbuf is 017F1B30 [12:57:00]SAM_PROTO_ClearQueue [12:57:00]wFMCommunicate request_size=4 [12:57:00]MH_SAM_APDU [12:57:00]CAPDU: 80 09 00 00 [12:57:00]Write to MH i2c: E2 08 00 A1 96 80 09 00 00 00 00 00 00 A9 [12:57:00]Write i2c OK [12:57:00]MH_I2C_Read... [12:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:00]Read from MH i2c: E2 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 03 00 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 03 00 A1 96 00 90 00 AB [12:57:00]RAPDU: 90 00 [12:57:00]wFMCommunicate OK [12:57:00]SAM_PROTO_ClearQueue done [12:57:00]KKMCreateOFDPacket [12:57:00]OFDProtocolAddRootSTLVToBuf [12:57:00]FM_MakeSignedData [12:57:00]FM_MakeSignedData [12:57:00]SAM_PROTO_SignData [12:57:00]wFMCommunicate request_size=4 [12:57:00]MH_SAM_APDU [12:57:00]CAPDU: 80 0D 01 02 [12:57:00]Write to MH i2c: E2 08 00 A2 96 80 0D 01 02 00 00 00 00 B1 [12:57:00]Write i2c OK [12:57:00]MH_I2C_Read... [12:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:00]Read from MH i2c: E2 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 03 00 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 03 00 A2 96 00 90 00 AC [12:57:00]RAPDU: 90 00 [12:57:00]wFMCommunicate OK [12:57:00]wFMCommunicate request_size=255 [12:57:00]MH_SAM_APDU [12:57:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A4 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EB 02 00 35 04 06 00 31 [12:57:00]Write to MH i2c: E2 02 01 A3 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A4 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EB 02 00 35 04 06 00 31 00 00 56 [12:57:00]Write i2c OK [12:57:00]MH_I2C_Read... [12:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:01]Read from MH i2c: E2 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 A3 96 00 90 00 AD [12:57:01]RAPDU: 90 00 [12:57:01]wFMCommunicate OK [12:57:01]wFMCommunicate request_size=10 [12:57:01]MH_SAM_APDU [12:57:01]CAPDU: 80 0D 02 02 05 22 2B A6 C6 34 [12:57:01]Write to MH i2c: E2 0D 00 A4 96 80 0D 02 02 05 00 22 2B A6 C6 34 00 00 AB [12:57:01]Write i2c OK [12:57:01]MH_I2C_Read... [12:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:01]Read from MH i2c: E2 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 A4 96 00 90 00 AE [12:57:01]RAPDU: 90 00 [12:57:01]wFMCommunicate OK [12:57:01]wFMCommunicate request_size=4 [12:57:01]MH_SAM_APDU [12:57:01]CAPDU: 80 0D 03 02 [12:57:01]Write to MH i2c: E2 08 00 A5 96 80 0D 03 02 00 00 00 00 B6 [12:57:01]Write i2c OK [12:57:01]MH_I2C_Read... [12:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:01]Read from MH i2c: E2 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 0B 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 0B 00 A5 96 00 42 94 2E ED E1 6C C7 20 90 00 DC [12:57:01]RAPDU: 42 94 2E ED E1 6C C7 20 90 00 [12:57:01]wFMCommunicate OK [12:57:01]SAM_PROTO_SignData done [12:57:01]FM_MakeSignedData done [12:57:01]CreateOFDProtocolMessage [12:57:01]wFMCommunicate request_size=4 [12:57:01]MH_SAM_APDU [12:57:01]CAPDU: 80 11 00 00 [12:57:01]Write to MH i2c: E2 08 00 A6 96 80 11 00 00 00 00 00 00 B6 [12:57:01]Write i2c OK [12:57:01]MH_I2C_Read... [12:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:01]Read from MH i2c: E2 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 17 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 17 00 A6 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [12:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:57:01]wFMCommunicate OK [12:57:01]CreateOFDProtocolMessage done [12:57:01]OFDSenderStorePacket 191405 [12:57:01]StoreOFDPacket docnum=191405 [12:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 77 07 01 B2 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A4 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EB 02 00 35 04 06 00 31 22 2B A6 C6 34 42 94 2E ED E1 6C C7 20 [12:57:01]CheckFolder [12:57:01]dirname=/storage/ofd_packets [12:57:01]CheckFolder done [12:57:01]ProducePacketName [12:57:01]name=ofd_packets/00191405 [12:57:01]NVStorageSaveData ofd_packets/00191405 [12:57:01]File name is /storage/ofd_packets/00191405 [12:57:01]Write 301 bytes [12:57:01]NVStorageSaveData done [12:57:01]OFDSenderStorePacket done [12:57:01]KKMCreateOFDPacket done [12:57:01]NVStorageSaveData kkm_last_timestamp [12:57:01]File name is /storage/kkm_last_timestamp [12:57:01]Write 4 bytes [12:57:01]NVStorageSaveData done [12:57:01]ExternCall_PrintAddStr [12:57:01]wPrintStart [12:57:01]Write to MH i2c: 01 00 00 A7 96 3D [12:57:01]Write i2c OK [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: 01 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: 01 07 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: 01 07 00 A7 96 00 00 00 00 00 FF 0F 52 [12:57:01]RasterBufferAndPrint [12:57:01]line Счет N : (1)30699 [12:57:01]line ИНН: 02508201610067 [12:57:01]line Контрольно-Кассовый Чек [12:57:01]line ПРОДАЖА [12:57:01]line ТРК (МРК, ГНК) : 12 [12:57:01]line Товар: 2710124130 [12:57:01]line Аи-92-К-5 [12:57:01]line 8.970 * 66.90 [12:57:01]line = 600.09 [12:57:01]line НДС 12% НСП 1% [12:57:01]line > о реализуемом товаре [12:57:01]line ОКРУГЛЕНИЕ: -0.09 [12:57:01]line ИТОГО: 600.00 [12:57:01]line Внесено: 600.00 [12:57:01]line СДАЧА: 0.00 [12:57:01]line НСП 1% : 5.31 [12:57:01]line НДС 12% : 63.73 [12:57:01]line Наличными: 600.00 [12:57:01]line Безнал.: 0.00 [12:57:01]line Место: АЗС № 170 "Партнер Нефть" [12:57:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:57:01]line СНО: Общий режим [12:57:01]line Чек 144 25.10.2024 12:57 [12:57:01]line Смена: 540 ФФД: 1.0 [12:57:01]line ЗНМ: 0300000110 [12:57:01]line РНМ: 0000000000091776 [12:57:01]line Версия ККМ: 001 [12:57:01]line ФМ: 0000000000871754 [12:57:01]line ФД: 191405 [12:57:01]line ФПД: 54022830999092 [12:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191405&fm=54022830999092&tin=02508201610067®Number=0000000000091776&sum=60000 [12:57:01]OFD Sender: Processing packet 191405 [packets to send 75, broken 74] [12:57:01]ProducePacketName [12:57:01]name=ofd_packets/00191405 [12:57:01]OFD Sender: To server: pG, [12:57:01]CommunicateWithHost lk.salyk.kg:30040 [12:57:01]ConnectInit lk.salyk.kg [12:57:01]written 0, free lines is 4095 [12:57:01]Connected sock=10 [12:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 77 07 01 B2 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A4 95 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EB 02 00 35 04 06 00 31 22 2B A6 C6 34 42 94 2E ED E1 6C C7 20 [12:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D4 8C 47 00 3B 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 31 37 35 34 10 04 04 00 AD EB 02 00 F4 03 04 00 73 3A 1B 67 B6 04 01 00 00 90 31 15 79 83 F9 C7 3C [12:57:01]CommunicateWithHost err = 0 [12:57:01]CheckOFDResponse [12:57:01]1017 (14) - 77093643461234 [12:57:01]1041 (16) - 0000000000871754 [12:57:01]1040 (4) - 191405 [12:57:01]1012 (4) - 25.10.2024 06:28 [12:57:01]1206 (1) - 0 [12:57:01]OFD Sender: Remove packet 191405 [12:57:01]ProducePacketName [12:57:01]name=ofd_packets/00191405 [12:57:01]NVStorageDeleteData [12:57:02]Write to MH i2c: 01 00 00 D2 96 68 [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 D2 96 00 00 00 00 00 CD 0C 48 [12:57:02]RasterBufferAndPrint [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]written 0, free lines is 3287 [12:57:02]MH_Cut [12:57:02]Write to MH i2c: D1 01 00 D9 96 01 41 [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: D1 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: D1 01 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: D1 01 00 D9 96 00 40 [12:57:02]Write to MH i2c: 01 00 00 DA 96 70 [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]OFD Sender: No OFD packet to send [12:57:02]*** Cut start [12:57:02]*** Partial cut [12:57:02]*** CUTSNS_PIN = 1 [12:57:02]*** CUTSNS_PIN = 0 [12:57:03]*** Brake cut motor [12:57:03]Read from MH i2c: 01 [12:57:03]MH_I2C_Read... [12:57:03]*** Stop cut motor [12:57:03]*** Cut end [12:57:03]Read from MH i2c: 01 07 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: 01 07 00 DA 96 00 00 00 00 00 FF 0F 85 [12:57:03]process_action close_receipt done [12:57:03]requested_data is exist [12:57:03]produce_requested_data [12:57:03]requested_item fm.sn is exist - process it [12:57:03]wFMCommunicate request_size=4 [12:57:03]MH_SAM_APDU [12:57:03]CAPDU: 80 11 00 00 [12:57:03]Write to MH i2c: E2 08 00 DB 96 80 11 00 00 00 00 00 00 EB [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:03]Read from MH i2c: E2 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 17 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 17 00 DB 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [12:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:57:03]wFMCommunicate OK [12:57:03]requested_item fd.num is exist - process it [12:57:03]SAM_PROTO_GetFieldsCounters [12:57:03]wFMCommunicate request_size=4 [12:57:03]MH_SAM_APDU [12:57:03]CAPDU: 80 13 00 00 [12:57:03]Write to MH i2c: E2 08 00 DC 96 80 13 00 00 00 00 00 00 EE [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:03]Read from MH i2c: E2 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 62 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 62 00 DC 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:57:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:03]wFMCommunicate OK [12:57:03]SAM_PROTO_GetFieldsCounters done [12:57:03]requested_item shift.num is exist - process it [12:57:03]requested_item shift.opened is exist - process it [12:57:03]req_shift_opened [12:57:03]FM_GetShiftState [12:57:03]SAM_PROTO_GetShiftState [12:57:03]wFMCommunicate request_size=4 [12:57:03]MH_SAM_APDU [12:57:03]CAPDU: 80 13 01 00 [12:57:03]Write to MH i2c: E2 08 00 DD 96 80 13 01 00 00 00 00 00 F0 [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:03]Read from MH i2c: E2 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 0E 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: E2 0E 00 DD 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B3 [12:57:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:57:03]wFMCommunicate OK [12:57:03]SAM_PROTO_GetShiftState done [12:57:03]FM_GetShiftState done [12:57:03]req_shift_opened done [12:57:03]requested_item shift.open_date is exist - process it [12:57:03]req_shift_open_date [12:57:03]req_shift_open_date done [12:57:03]produce_requested_data done [12:57:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191405,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:57:03]process_action_free close_receipt [12:57:03]json_value_free [12:57:03]json_value_free done [12:57:03]process_json_proto returns [12:57:03]Send response to host [12:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191405,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:57:03]free response buf [12:57:03]execute_script done [12:57:03]execute_script returns [12:57:03]free content buf [12:57:03]Sock 8.Close socket [12:57:03]Sock 8.Thread stoped [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:56]accept exits with 9 [12:58:56]New connection [12:58:56]New thread 3066961252 created [12:58:56]Thread 3066817892 joined [12:58:56]Waiting for new connection... [12:58:56] Sock 9.Parse request [12:58:56]Sock 9.Check first char [12:58:56]Sock 9.First char is OK [12:58:56]request: POST /json_proto HTTP/1.0 [12:58:56]Method: POST [12:58:56]URL: /json_proto [12:58:56]Method is POST - this is cgi request [12:58:56]url: /json_proto [12:58:56]query_string will be loaded in cgi processing [12:58:56]execute_cgi json_proto POST (null) [12:58:56]execute_cgi path=json_proto method=POST [12:58:56]POST find Content-Length [12:58:56]Host: 172.17.63.131:8080 [12:58:56]Content-Length: 676 [12:58:56]Content-Type: application/json [12:58:56] [12:58:56]POST finish read [12:58:56]Found Content-Length = 676 [12:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:56]execute_script... [12: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)30701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:56]POST & json_proto [12:58:56]process_json_proto [12:58:56]json parsed OK: [12:58:56]protocol is kg_v1.0 [12:58:56]action value=close_receipt [12:58:56]process_action close_receipt [12:58:56]cmd_close_receipt [12:58:56]MH_GetDate [12:58:56]Write to MH i2c: F0 00 00 DE 96 63 [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 09 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 09 00 DE 96 00 19 96 1B 67 22 05 6E 64 96 [12:58:56]GetLastDocTimeStamp 1729861028 [12:58:56]current date 1729861145 [12:58:56]FM_GetShiftState [12:58:56]SAM_PROTO_GetShiftState [12:58:56]wFMCommunicate request_size=4 [12:58:56]MH_SAM_APDU [12:58:56]CAPDU: 80 13 01 00 [12:58:56]Write to MH i2c: E2 08 00 DF 96 80 13 01 00 00 00 00 00 F2 [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:56]Read from MH i2c: E2 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: E2 0E 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: E2 0E 00 DF 96 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B5 [12:58:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:58:56]wFMCommunicate OK [12:58:56]SAM_PROTO_GetShiftState done [12:58:56]FM_GetShiftState done [12:58:56]opened in 1729816399 [12:58:56]opened+sec_in_day 1729902799 [12:58:56]quantity*price = 30038 [12:58:56]sum+1 = 30039 [12:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 145 25.10.2024 12:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191406 ФПД: 171251023806024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191406&fm=171251023806024&tin=02508201610067®Number=0000000000091776&sum=30000 [12:58:57]StoreToDocumentArchive [12:58:57]shift 540 fd 191406 [12:58:57]save to /storage/0540/doc_00191406 [12:58:57]save last doc name /storage/0540/doc_00191406 to /storage/kkm_last_doc_name [12:58:57]save OK [12:58:57]Clear old archive folders... [12:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:57]tlvbuf is 0187DA40 [12:58:57]SAM_PROTO_ClearQueue [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 09 00 00 [12:58:57]Write to MH i2c: E2 08 00 EC 96 80 09 00 00 00 00 00 00 F4 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 EC 96 00 90 00 F6 [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]SAM_PROTO_ClearQueue done [12:58:57]KKMCreateOFDPacket [12:58:57]OFDProtocolAddRootSTLVToBuf [12:58:57]FM_MakeSignedData [12:58:57]FM_MakeSignedData [12:58:57]SAM_PROTO_SignData [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 0D 01 02 [12:58:57]Write to MH i2c: E2 08 00 ED 96 80 0D 01 02 00 00 00 00 FC [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 ED 96 00 90 00 F7 [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]wFMCommunicate request_size=255 [12:58:57]MH_SAM_APDU [12: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 19 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EB 02 00 35 04 06 00 9B [12:58:57]Write to MH i2c: E2 02 01 EE 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 19 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EB 02 00 35 04 06 00 9B 00 00 9A [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]OFD Sender: No OFD packet to send [12:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 EE 96 00 90 00 F8 [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]wFMCommunicate request_size=10 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 0D 02 02 05 C0 7C 70 FE 48 [12:58:57]Write to MH i2c: E2 0D 00 EF 96 80 0D 02 02 05 00 C0 7C 70 FE 48 00 00 FB [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 EF 96 00 90 00 F9 [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 0D 03 02 [12:58:57]Write to MH i2c: E2 08 00 F0 96 80 0D 03 02 00 00 00 00 01 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 0B 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 0B 00 F0 96 00 BB BB B9 D8 62 E1 30 61 90 00 DD [12:58:57]RAPDU: BB BB B9 D8 62 E1 30 61 90 00 [12:58:57]wFMCommunicate OK [12:58:57]SAM_PROTO_SignData done [12:58:57]FM_MakeSignedData done [12:58:57]CreateOFDProtocolMessage [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 11 00 00 [12:58:57]Write to MH i2c: E2 08 00 F1 96 80 11 00 00 00 00 00 00 01 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 17 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 17 00 F1 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [12:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:58:57]wFMCommunicate OK [12:58:57]CreateOFDProtocolMessage done [12:58:57]OFDSenderStorePacket 191406 [12:58:57]StoreOFDPacket docnum=191406 [12:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 D3 07 01 33 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 19 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EB 02 00 35 04 06 00 9B C0 7C 70 FE 48 BB BB B9 D8 62 E1 30 61 [12:58:57]CheckFolder [12:58:57]dirname=/storage/ofd_packets [12:58:57]CheckFolder done [12:58:57]ProducePacketName [12:58:57]name=ofd_packets/00191406 [12:58:57]NVStorageSaveData ofd_packets/00191406 [12:58:57]File name is /storage/ofd_packets/00191406 [12:58:57]Write 301 bytes [12:58:57]NVStorageSaveData done [12:58:57]OFDSenderStorePacket done [12:58:57]KKMCreateOFDPacket done [12:58:57]NVStorageSaveData kkm_last_timestamp [12:58:57]File name is /storage/kkm_last_timestamp [12:58:57]Write 4 bytes [12:58:57]NVStorageSaveData done [12:58:57]ExternCall_PrintAddStr [12:58:57]wPrintStart [12:58:57]Write to MH i2c: 01 00 00 F2 96 88 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: 01 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: 01 07 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: 01 07 00 F2 96 00 00 00 00 00 FF 0F 9D [12:58:57]RasterBufferAndPrint [12:58:57]line Счет N : (1)30701 [12:58:57]line ИНН: 02508201610067 [12:58:57]line Контрольно-Кассовый Чек [12:58:57]line ПРОДАЖА [12:58:57]line ТРК (МРК, ГНК) : 21 [12:58:57]line Товар: 2710124130 [12:58:57]line Аи-92-К-5 [12:58:57]line 4.490 * 66.90 [12:58:57]line = 300.38 [12:58:57]line НДС 12% НСП 1% [12:58:57]line > о реализуемом товаре [12:58:57]line ОКРУГЛЕНИЕ: -0.38 [12:58:57]line ИТОГО: 300.00 [12:58:57]line Внесено: 300.00 [12:58:57]line СДАЧА: 0.00 [12:58:57]line НСП 1% : 2.66 [12:58:57]line НДС 12% : 31.90 [12:58:57]line Наличными: 300.00 [12:58:57]line Безнал.: 0.00 [12:58:57]line Место: АЗС № 170 "Партнер Нефть" [12:58:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:58:57]line СНО: Общий режим [12:58:57]line Чек 145 25.10.2024 12:59 [12:58:57]line Смена: 540 ФФД: 1.0 [12:58:57]line ЗНМ: 0300000110 [12:58:57]line РНМ: 0000000000091776 [12:58:57]line Версия ККМ: 001 [12:58:57]line ФМ: 0000000000871754 [12:58:57]line ФД: 191406 [12:58:57]line ФПД: 171251023806024 [12:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191406&fm=171251023806024&tin=02508201610067®Number=0000000000091776&sum=30000 [12:58:58]OFD Sender: Processing packet 191406 [packets to send 75, broken 74] [12:58:58]ProducePacketName [12:58:58]name=ofd_packets/00191406 [12:58:58]OFD Sender: To server: pG, [12:58:58]CommunicateWithHost lk.salyk.kg:30040 [12:58:58]ConnectInit lk.salyk.kg [12:58:58]written 0, free lines is 4095 [12:58:58]Connected sock=10 [12: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 31 37 35 34 0F 01 00 00 A0 D3 07 01 33 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 19 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EB 02 00 35 04 06 00 9B C0 7C 70 FE 48 BB BB B9 D8 62 E1 30 61 [12:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 35 47 00 8E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EB 02 00 F4 03 04 00 E7 3A 1B 67 B6 04 01 00 00 9E 13 6F 63 90 26 3A 5F [12:58:58]CommunicateWithHost err = 0 [12:58:58]CheckOFDResponse [12:58:58]1017 (14) - 77093643461234 [12:58:58]1041 (16) - 0000000000871754 [12:58:58]1040 (4) - 191406 [12:58:58]1012 (4) - 25.10.2024 06:29 [12:58:58]1206 (1) - 0 [12:58:58]OFD Sender: Remove packet 191406 [12:58:58]ProducePacketName [12:58:58]name=ofd_packets/00191406 [12:58:58]NVStorageDeleteData [12:58:58]Write to MH i2c: 01 00 00 1D 97 B4 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 1D 97 00 00 00 00 00 BB 0C 82 [12:58:58]RasterBufferAndPrint [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]written 0, free lines is 3266 [12:58:58]MH_Cut [12:58:58]Write to MH i2c: D1 01 00 24 97 01 8D [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 01 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 01 00 24 97 00 8C [12:58:58]Write to MH i2c: 01 00 00 25 97 BC [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:59]OFD Sender: No OFD packet to send [12:58:59]*** Cut start [12:58:59]*** Partial cut [12:58:59]*** CUTSNS_PIN = 1 [12:58:59]*** CUTSNS_PIN = 0 [12:58:59]*** Brake cut motor [12:59:00]Read from MH i2c: 01 [12:59:00]MH_I2C_Read... [12:59:00]*** Stop cut motor [12:59:00]*** Cut end [12:59:00]Read from MH i2c: 01 07 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: 01 07 00 25 97 00 00 00 00 00 FF 0F D1 [12:59:00]process_action close_receipt done [12:59:00]requested_data is exist [12:59:00]produce_requested_data [12:59:00]requested_item fm.sn is exist - process it [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 11 00 00 [12:59:00]Write to MH i2c: E2 08 00 26 97 80 11 00 00 00 00 00 00 37 [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 17 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 17 00 26 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [12:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:00]wFMCommunicate OK [12:59:00]requested_item fd.num is exist - process it [12:59:00]SAM_PROTO_GetFieldsCounters [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 13 00 00 [12:59:00]Write to MH i2c: E2 08 00 27 97 80 13 00 00 00 00 00 00 3A [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 62 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 62 00 27 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:00]wFMCommunicate OK [12:59:00]SAM_PROTO_GetFieldsCounters done [12:59:00]requested_item shift.num is exist - process it [12:59:00]requested_item shift.opened is exist - process it [12:59:00]req_shift_opened [12:59:00]FM_GetShiftState [12:59:00]SAM_PROTO_GetShiftState [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 13 01 00 [12:59:00]Write to MH i2c: E2 08 00 28 97 80 13 01 00 00 00 00 00 3C [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 28 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FF [12:59:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:59:00]wFMCommunicate OK [12:59:00]SAM_PROTO_GetShiftState done [12:59:00]FM_GetShiftState done [12:59:00]req_shift_opened done [12:59:00]requested_item shift.open_date is exist - process it [12:59:00]req_shift_open_date [12:59:00]req_shift_open_date done [12:59:00]produce_requested_data done [12:59:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191406,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:59:00]process_action_free close_receipt [12:59:00]json_value_free [12:59:00]json_value_free done [12:59:00]process_json_proto returns [12:59:00]Send response to host [12:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191406,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:59:00]free response buf [12:59:00]execute_script done [12:59:00]execute_script returns [12:59:00]free content buf [12:59:00]Sock 9.Close socket [12:59:00]Sock 9.Thread stoped [12:59:00]accept exits with 8 [12:59:00]New connection [12:59:00]New thread 3066817892 created [12:59:00]Thread 3066961252 joined [12:59:00]Waiting for new connection... [12:59:00] Sock 8.Parse request [12:59:00]Sock 8.Check first char [12:59:00]Sock 8.First char is OK [12:59:00]request: POST /json_proto HTTP/1.0 [12:59:00]Method: POST [12:59:00]URL: /json_proto [12:59:00]Method is POST - this is cgi request [12:59:00]url: /json_proto [12:59:00]query_string will be loaded in cgi processing [12:59:00]execute_cgi json_proto POST (null) [12:59:00]execute_cgi path=json_proto method=POST [12:59:00]POST find Content-Length [12:59:00]Host: 172.17.63.131:8080 [12:59:00]Content-Length: 676 [12:59:00]Content-Type: application/json [12:59:00] [12:59:00]POST finish read [12:59:00]Found Content-Length = 676 [12:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:00]execute_script... [12:59: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)30702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:00]POST & json_proto [12:59:00]process_json_proto [12:59:00]json parsed OK: [12:59:00]protocol is kg_v1.0 [12:59:00]action value=close_receipt [12:59:00]process_action close_receipt [12:59:00]cmd_close_receipt [12:59:00]MH_GetDate [12:59:00]Write to MH i2c: F0 00 00 29 97 AF [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: F0 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: F0 09 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: F0 09 00 29 97 00 1D 96 1B 67 22 05 6E 64 E6 [12:59:00]GetLastDocTimeStamp 1729861145 [12:59:00]current date 1729861149 [12:59:00]FM_GetShiftState [12:59:00]SAM_PROTO_GetShiftState [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 13 01 00 [12:59:00]Write to MH i2c: E2 08 00 2A 97 80 13 01 00 00 00 00 00 3E [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 2A 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 01 [12:59:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:59:00]wFMCommunicate OK [12:59:00]SAM_PROTO_GetShiftState done [12:59:00]FM_GetShiftState done [12:59:00]opened in 1729816399 [12:59:00]opened+sec_in_day 1729902799 [12:59:00]quantity*price = 20003 [12:59:00]sum+1 = 20004 [12:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 146 25.10.2024 12:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191407 ФПД: 103057835675982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191407&fm=103057835675982&tin=02508201610067®Number=0000000000091776&sum=20000 [12:59:02]StoreToDocumentArchive [12:59:02]shift 540 fd 191407 [12:59:02]save to /storage/0540/doc_00191407 [12:59:02]save last doc name /storage/0540/doc_00191407 to /storage/kkm_last_doc_name [12:59:02]save OK [12:59:02]Clear old archive folders... [12:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:02]tlvbuf is 015A9C70 [12:59:02]SAM_PROTO_ClearQueue [12:59:02]wFMCommunicate request_size=4 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 09 00 00 [12:59:02]Write to MH i2c: E2 08 00 37 97 80 09 00 00 00 00 00 00 40 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 37 97 00 90 00 42 [12:59:02]RAPDU: 90 00 [12:59:02]wFMCommunicate OK [12:59:02]SAM_PROTO_ClearQueue done [12:59:02]KKMCreateOFDPacket [12:59:02]OFDProtocolAddRootSTLVToBuf [12:59:02]FM_MakeSignedData [12:59:02]FM_MakeSignedData [12:59:02]SAM_PROTO_SignData [12:59:02]wFMCommunicate request_size=4 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 0D 01 02 [12:59:02]Write to MH i2c: E2 08 00 38 97 80 0D 01 02 00 00 00 00 48 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 38 97 00 90 00 43 [12:59:02]RAPDU: 90 00 [12:59:02]wFMCommunicate OK [12:59:02]wFMCommunicate request_size=255 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1D 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EB 02 00 35 04 06 00 5D [12:59:02]Write to MH i2c: E2 02 01 39 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1D 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EB 02 00 35 04 06 00 5D 00 00 7C [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 39 97 00 90 00 44 [12:59:02]RAPDU: 90 00 [12:59:02]wFMCommunicate OK [12:59:02]wFMCommunicate request_size=10 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 0D 02 02 05 BB 05 AF D1 4E [12:59:02]Write to MH i2c: E2 0D 00 3A 97 80 0D 02 02 05 00 BB 05 AF D1 4E 00 00 E3 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 03 00 3A 97 00 90 00 45 [12:59:02]RAPDU: 90 00 [12:59:02]wFMCommunicate OK [12:59:02]wFMCommunicate request_size=4 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 0D 03 02 [12:59:02]Write to MH i2c: E2 08 00 3B 97 80 0D 03 02 00 00 00 00 4D [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 0B 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 0B 00 3B 97 00 12 64 A3 76 C6 F6 6C 1B 90 00 20 [12:59:02]RAPDU: 12 64 A3 76 C6 F6 6C 1B 90 00 [12:59:02]wFMCommunicate OK [12:59:02]SAM_PROTO_SignData done [12:59:02]FM_MakeSignedData done [12:59:02]CreateOFDProtocolMessage [12:59:02]wFMCommunicate request_size=4 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 11 00 00 [12:59:02]Write to MH i2c: E2 08 00 3C 97 80 11 00 00 00 00 00 00 4D [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:02]Read from MH i2c: E2 17 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 17 00 3C 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [12:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:02]wFMCommunicate OK [12:59:02]CreateOFDProtocolMessage done [12:59:02]OFDSenderStorePacket 191407 [12:59:02]StoreOFDPacket docnum=191407 [12:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 97 07 01 08 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1D 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EB 02 00 35 04 06 00 5D BB 05 AF D1 4E 12 64 A3 76 C6 F6 6C 1B [12:59:02]CheckFolder [12:59:02]dirname=/storage/ofd_packets [12:59:02]CheckFolder done [12:59:02]ProducePacketName [12:59:02]name=ofd_packets/00191407 [12:59:02]NVStorageSaveData ofd_packets/00191407 [12:59:02]File name is /storage/ofd_packets/00191407 [12:59:02]Write 301 bytes [12:59:02]NVStorageSaveData done [12:59:02]OFDSenderStorePacket done [12:59:02]KKMCreateOFDPacket done [12:59:02]NVStorageSaveData kkm_last_timestamp [12:59:02]File name is /storage/kkm_last_timestamp [12:59:02]Write 4 bytes [12:59:02]NVStorageSaveData done [12:59:02]ExternCall_PrintAddStr [12:59:02]wPrintStart [12:59:02]Write to MH i2c: 01 00 00 3D 97 D4 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: 01 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: 01 07 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: 01 07 00 3D 97 00 00 00 00 00 FF 0F E9 [12:59:02]RasterBufferAndPrint [12:59:02]line Счет N : (1)30702 [12:59:02]line ИНН: 02508201610067 [12:59:02]line Контрольно-Кассовый Чек [12:59:02]line ПРОДАЖА [12:59:02]line ТРК (МРК, ГНК) : 12 [12:59:02]line Товар: 2710124130 [12:59:02]line Аи-92-К-5 [12:59:02]line 2.990 * 66.90 [12:59:02]line = 200.03 [12:59:02]line НДС 12% НСП 1% [12:59:02]line > о реализуемом товаре [12:59:02]line ОКРУГЛЕНИЕ: -0.03 [12:59:02]line ИТОГО: 200.00 [12:59:02]line Внесено: 200.00 [12:59:02]line СДАЧА: 0.00 [12:59:02]line НСП 1% : 1.77 [12:59:02]line НДС 12% : 21.24 [12:59:02]line Наличными: 200.00 [12:59:02]line Безнал.: 0.00 [12:59:02]line Место: АЗС № 170 "Партнер Нефть" [12:59:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:02]line СНО: Общий режим [12:59:02]line Чек 146 25.10.2024 12:59 [12:59:02]line Смена: 540 ФФД: 1.0 [12:59:02]line ЗНМ: 0300000110 [12:59:02]line РНМ: 0000000000091776 [12:59:02]line Версия ККМ: 001 [12:59:02]line ФМ: 0000000000871754 [12:59:02]line ФД: 191407 [12:59:02]line ФПД: 103057835675982 [12:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T125909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191407&fm=103057835675982&tin=02508201610067®Number=0000000000091776&sum=20000 [12:59:02]OFD Sender: Processing packet 191407 [packets to send 75, broken 74] [12:59:02]ProducePacketName [12:59:02]name=ofd_packets/00191407 [12:59:02]OFD Sender: To server: pG, [12:59:02]CommunicateWithHost lk.salyk.kg:30040 [12:59:02]ConnectInit lk.salyk.kg [12:59:02]written 0, free lines is 4095 [12:59:02]Connected sock=10 [12:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 97 07 01 08 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1D 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EB 02 00 35 04 06 00 5D BB 05 AF D1 4E 12 64 A3 76 C6 F6 6C 1B [12:59:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F 14 47 00 CF F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EB 02 00 F4 03 04 00 EC 3A 1B 67 B6 04 01 00 00 44 22 D7 A4 9C 60 90 26 [12:59:03]CommunicateWithHost err = 0 [12:59:03]CheckOFDResponse [12:59:03]1017 (14) - 77093643461234 [12:59:03]1041 (16) - 0000000000871754 [12:59:03]1040 (4) - 191407 [12:59:03]1012 (4) - 25.10.2024 06:30 [12:59:03]1206 (1) - 0 [12:59:03]OFD Sender: Remove packet 191407 [12:59:03]ProducePacketName [12:59:03]name=ofd_packets/00191407 [12:59:03]NVStorageDeleteData [12:59:03]Write to MH i2c: 01 00 00 68 97 FF [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: 01 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: 01 07 00 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: 01 07 00 68 97 00 00 00 00 00 C6 0C D8 [12:59:03]RasterBufferAndPrint [12:59:03]line [12:59:03]line [12:59:03]line [12:59:03]line [12:59:03]line [12:59:03]written 0, free lines is 3283 [12:59:03]MH_Cut [12:59:03]Write to MH i2c: D1 01 00 6F 97 01 D8 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: D1 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: D1 01 00 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: D1 01 00 6F 97 00 D7 [12:59:03]Write to MH i2c: 01 00 00 70 97 07 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]OFD Sender: No OFD packet to send [12:59:04]*** Cut start [12:59:04]*** Partial cut [12:59:04]*** CUTSNS_PIN = 1 [12:59:04]*** CUTSNS_PIN = 0 [12:59:04]*** Brake cut motor [12:59:04]Read from MH i2c: *** Stop cut motor [12:59:04]*** Cut end [12:59:04]01 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 70 97 00 00 00 00 00 FF 0F 1C [12:59:04]process_action close_receipt done [12:59:04]requested_data is exist [12:59:04]produce_requested_data [12:59:04]requested_item fm.sn is exist - process it [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 11 00 00 [12:59:04]Write to MH i2c: E2 08 00 71 97 80 11 00 00 00 00 00 00 82 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 17 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 17 00 71 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [12:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:04]wFMCommunicate OK [12:59:04]requested_item fd.num is exist - process it [12:59:04]SAM_PROTO_GetFieldsCounters [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 13 00 00 [12:59:04]Write to MH i2c: E2 08 00 72 97 80 13 00 00 00 00 00 00 85 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 62 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 62 00 72 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [12:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:04]wFMCommunicate OK [12:59:04]SAM_PROTO_GetFieldsCounters done [12:59:04]requested_item shift.num is exist - process it [12:59:04]requested_item shift.opened is exist - process it [12:59:04]req_shift_opened [12:59:04]FM_GetShiftState [12:59:04]SAM_PROTO_GetShiftState [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 13 01 00 [12:59:04]Write to MH i2c: E2 08 00 73 97 80 13 01 00 00 00 00 00 87 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 0E 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 0E 00 73 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4A [12:59:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [12:59:05]wFMCommunicate OK [12:59:05]SAM_PROTO_GetShiftState done [12:59:05]FM_GetShiftState done [12:59:05]req_shift_opened done [12:59:05]requested_item shift.open_date is exist - process it [12:59:05]req_shift_open_date [12:59:05]req_shift_open_date done [12:59:05]produce_requested_data done [12:59:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191407,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [12:59:05]process_action_free close_receipt [12:59:05]json_value_free [12:59:05]json_value_free done [12:59:05]process_json_proto returns [12:59:05]Send response to host [12:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191407,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [12:59:05]free response buf [12:59:05]execute_script done [12:59:05]execute_script returns [12:59:05]free content buf [12:59:05]Sock 8.Close socket [12:59:05]Sock 8.Thread stoped [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59: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:33]OFD Sender: No OFD packet to send [13:00:34]accept exits with 9 [13:00:34]New connection [13:00:34]New thread 3066961252 created [13:00:34]Thread 3066817892 joined [13:00:34]Waiting for new connection... [13:00:34] Sock 9.Parse request [13:00:34]Sock 9.Check first char [13:00:34]Sock 9.First char is OK [13:00:34]request: POST /json_proto HTTP/1.0 [13:00:34]Method: POST [13:00:34]URL: /json_proto [13:00:34]Method is POST - this is cgi request [13:00:34]url: /json_proto [13:00:34]query_string will be loaded in cgi processing [13:00:34]execute_cgi json_proto POST (null) [13:00:34]execute_cgi path=json_proto method=POST [13:00:34]POST find Content-Length [13:00:34]Host: 172.17.63.131:8080 [13:00:34]Content-Length: 676 [13:00:34]Content-Type: application/json [13:00:34] [13:00:34]POST finish read [13:00:34]Found Content-Length = 676 [13:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:34]execute_script... [13:00:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:34]POST & json_proto [13:00:34]process_json_proto [13:00:34]json parsed OK: [13:00:34]protocol is kg_v1.0 [13:00:34]action value=close_receipt [13:00:34]process_action close_receipt [13:00:34]cmd_close_receipt [13:00:34]MH_GetDate [13:00:34]Write to MH i2c: F0 00 00 74 97 FA [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: F0 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: F0 09 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: F0 09 00 74 97 00 7B 96 1B 67 22 05 6E 64 8F [13:00:34]GetLastDocTimeStamp 1729861149 [13:00:34]current date 1729861243 [13:00:34]FM_GetShiftState [13:00:34]SAM_PROTO_GetShiftState [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 13 01 00 [13:00:34]Write to MH i2c: E2 08 00 75 97 80 13 01 00 00 00 00 00 89 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0E 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0E 00 75 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4C [13:00:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:00:34]wFMCommunicate OK [13:00:34]SAM_PROTO_GetShiftState done [13:00:34]FM_GetShiftState done [13:00:34]opened in 1729816399 [13:00:34]opened+sec_in_day 1729902799 [13:00:34]quantity*price = 10035 [13:00:34]sum+1 = 10036 [13:00:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 147 25.10.2024 13:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191408 ФПД: 201252661017660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191408&fm=201252661017660&tin=02508201610067®Number=0000000000091776&sum=10000 [13:00:35]StoreToDocumentArchive [13:00:35]shift 540 fd 191408 [13:00:35]save to /storage/0540/doc_00191408 [13:00:35]save last doc name /storage/0540/doc_00191408 to /storage/kkm_last_doc_name [13:00:35]save OK [13:00:35]Clear old archive folders... [13:00:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:35]tlvbuf is 017090F0 [13:00:35]SAM_PROTO_ClearQueue [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 09 00 00 [13:00:35]Write to MH i2c: E2 08 00 82 97 80 09 00 00 00 00 00 00 8B [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 03 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 03 00 82 97 00 90 00 8D [13:00:35]RAPDU: 90 00 [13:00:35]wFMCommunicate OK [13:00:35]SAM_PROTO_ClearQueue done [13:00:35]KKMCreateOFDPacket [13:00:35]OFDProtocolAddRootSTLVToBuf [13:00:35]FM_MakeSignedData [13:00:35]FM_MakeSignedData [13:00:35]SAM_PROTO_SignData [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 0D 01 02 [13:00:35]Write to MH i2c: E2 08 00 83 97 80 0D 01 02 00 00 00 00 93 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 03 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 03 00 83 97 00 90 00 8E [13:00:35]RAPDU: 90 00 [13:00:35]wFMCommunicate OK [13:00:35]wFMCommunicate request_size=255 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EB 02 00 35 04 06 00 B7 [13:00:35]Write to MH i2c: E2 02 01 84 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EB 02 00 35 04 06 00 B7 00 00 A6 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 03 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 03 00 84 97 00 90 00 8F [13:00:36]RAPDU: 90 00 [13:00:36]wFMCommunicate OK [13:00:36]wFMCommunicate request_size=10 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 0D 02 02 05 09 C9 5E BC 3C [13:00:36]Write to MH i2c: E2 0D 00 85 97 80 0D 02 02 05 00 09 C9 5E BC 3C 00 00 C8 [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 03 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 03 00 85 97 00 90 00 90 [13:00:36]RAPDU: 90 00 [13:00:36]wFMCommunicate OK [13:00:36]wFMCommunicate request_size=4 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 0D 03 02 [13:00:36]Write to MH i2c: E2 08 00 86 97 80 0D 03 02 00 00 00 00 98 [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 0B 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 0B 00 86 97 00 31 3C 27 9B 73 9F 03 7E 90 00 5B [13:00:36]RAPDU: 31 3C 27 9B 73 9F 03 7E 90 00 [13:00:36]wFMCommunicate OK [13:00:36]SAM_PROTO_SignData done [13:00:36]FM_MakeSignedData done [13:00:36]CreateOFDProtocolMessage [13:00:36]wFMCommunicate request_size=4 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 11 00 00 [13:00:36]Write to MH i2c: E2 08 00 87 97 80 11 00 00 00 00 00 00 98 [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 17 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 17 00 87 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [13:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:36]wFMCommunicate OK [13:00:36]CreateOFDProtocolMessage done [13:00:36]OFDSenderStorePacket 191408 [13:00:36]StoreOFDPacket docnum=191408 [13:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 28 3E 07 01 36 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EB 02 00 35 04 06 00 B7 09 C9 5E BC 3C 31 3C 27 9B 73 9F 03 7E [13:00:36]CheckFolder [13:00:36]dirname=/storage/ofd_packets [13:00:36]CheckFolder done [13:00:36]ProducePacketName [13:00:36]name=ofd_packets/00191408 [13:00:36]NVStorageSaveData ofd_packets/00191408 [13:00:36]File name is /storage/ofd_packets/00191408 [13:00:36]Write 301 bytes [13:00:36]NVStorageSaveData done [13:00:36]OFDSenderStorePacket done [13:00:36]KKMCreateOFDPacket done [13:00:36]NVStorageSaveData kkm_last_timestamp [13:00:36]File name is /storage/kkm_last_timestamp [13:00:36]Write 4 bytes [13:00:36]NVStorageSaveData done [13:00:36]ExternCall_PrintAddStr [13:00:36]wPrintStart [13:00:36]Write to MH i2c: 01 00 00 88 97 1F [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: 01 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: 01 07 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: 01 07 00 88 97 00 00 00 00 00 FF 0F 34 [13:00:36]RasterBufferAndPrint [13:00:36]line Счет N : (1)30704 [13:00:36]line ИНН: 02508201610067 [13:00:36]line Контрольно-Кассовый Чек [13:00:36]line ПРОДАЖА [13:00:36]line ТРК (МРК, ГНК) : 12 [13:00:36]line Товар: 2710124130 [13:00:36]line Аи-92-К-5 [13:00:36]line 1.500 * 66.90 [13:00:36]line = 100.35 [13:00:36]line НДС 12% НСП 1% [13:00:36]line > о реализуемом товаре [13:00:36]line ОКРУГЛЕНИЕ: -0.35 [13:00:36]line ИТОГО: 100.00 [13:00:36]line Внесено: 100.00 [13:00:36]line СДАЧА: 0.00 [13:00:36]line НСП 1% : 0.89 [13:00:36]line НДС 12% : 10.66 [13:00:36]line Наличными: 100.00 [13:00:36]line Безнал.: 0.00 [13:00:36]line Место: АЗС № 170 "Партнер Нефть" [13:00:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:00:36]line СНО: Общий режим [13:00:36]line Чек 147 25.10.2024 13:00 [13:00:36]line Смена: 540 ФФД: 1.0 [13:00:36]line ЗНМ: 0300000110 [13:00:36]line РНМ: 0000000000091776 [13:00:36]line Версия ККМ: 001 [13:00:36]line ФМ: 0000000000871754 [13:00:36]line ФД: 191408 [13:00:36]line ФПД: 201252661017660 [13:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191408&fm=201252661017660&tin=02508201610067®Number=0000000000091776&sum=10000 [13:00:36]OFD Sender: Processing packet 191408 [packets to send 75, broken 74] [13:00:36]ProducePacketName [13:00:36]name=ofd_packets/00191408 [13:00:36]OFD Sender: To server: pG, [13:00:36]CommunicateWithHost lk.salyk.kg:30040 [13:00:36]ConnectInit lk.salyk.kg [13:00:36]written 0, free lines is 4095 [13:00:36]Connected sock=10 [13:00:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 28 3E 07 01 36 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EB 02 00 35 04 06 00 B7 09 C9 5E BC 3C 31 3C 27 9B 73 9F 03 7E [13:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8A 1D 47 00 FA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EB 02 00 F4 03 04 00 4A 3B 1B 67 B6 04 01 00 00 C3 00 6B 26 2B CB 86 A6 [13:00:36]CommunicateWithHost err = 0 [13:00:36]CheckOFDResponse [13:00:36]1017 (14) - 77093643461234 [13:00:36]1041 (16) - 0000000000871754 [13:00:36]1040 (4) - 191408 [13:00:36]1012 (4) - 25.10.2024 06:31 [13:00:36]1206 (1) - 0 [13:00:36]OFD Sender: Remove packet 191408 [13:00:36]ProducePacketName [13:00:36]name=ofd_packets/00191408 [13:00:36]NVStorageDeleteData [13:00:37]Write to MH i2c: 01 00 00 B3 97 4A [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: 01 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: 01 07 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: 01 07 00 B3 97 00 00 00 00 00 B2 0C 0F [13:00:37]RasterBufferAndPrint [13:00:37]line [13:00:37]line [13:00:37]line [13:00:37]line [13:00:37]line [13:00:37]written 0, free lines is 3257 [13:00:37]MH_Cut [13:00:37]Write to MH i2c: D1 01 00 BA 97 01 23 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: D1 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: D1 01 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: D1 01 00 BA 97 00 22 [13:00:37]Write to MH i2c: 01 00 00 BB 97 52 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]OFD Sender: No OFD packet to send [13:00:37]*** Cut start [13:00:37]*** Partial cut [13:00:37]*** CUTSNS_PIN = 1 [13:00:37]*** CUTSNS_PIN = 0 [13:00:38]*** Brake cut motor [13:00:38]Read from MH i2c: 01 [13:00:38]MH_I2C_Read... [13:00:38]*** Stop cut motor [13:00:38]*** Cut end [13:00:38]Read from MH i2c: 01 07 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: 01 07 00 BB 97 00 00 00 00 00 FF 0F 67 [13:00:38]process_action close_receipt done [13:00:38]requested_data is exist [13:00:38]produce_requested_data [13:00:38]requested_item fm.sn is exist - process it [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 11 00 00 [13:00:38]Write to MH i2c: E2 08 00 BC 97 80 11 00 00 00 00 00 00 CD [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 17 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 17 00 BC 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [13:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:38]wFMCommunicate OK [13:00:38]requested_item fd.num is exist - process it [13:00:38]SAM_PROTO_GetFieldsCounters [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 13 00 00 [13:00:38]Write to MH i2c: E2 08 00 BD 97 80 13 00 00 00 00 00 00 D0 [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 62 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 62 00 BD 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [13:00:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_GetFieldsCounters done [13:00:38]requested_item shift.num is exist - process it [13:00:38]requested_item shift.opened is exist - process it [13:00:38]req_shift_opened [13:00:38]FM_GetShiftState [13:00:38]SAM_PROTO_GetShiftState [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 13 01 00 [13:00:38]Write to MH i2c: E2 08 00 BE 97 80 13 01 00 00 00 00 00 D2 [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 BE 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 95 [13:00:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_GetShiftState done [13:00:38]FM_GetShiftState done [13:00:38]req_shift_opened done [13:00:38]requested_item shift.open_date is exist - process it [13:00:38]req_shift_open_date [13:00:38]req_shift_open_date done [13:00:38]produce_requested_data done [13:00:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191408,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:00:38]process_action_free close_receipt [13:00:38]json_value_free [13:00:38]json_value_free done [13:00:38]process_json_proto returns [13:00:38]Send response to host [13:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191408,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:00:38]free response buf [13:00:38]execute_script done [13:00:38]execute_script returns [13:00:38]free content buf [13:00:38]Sock 9.Close socket [13:00:38]Sock 9.Thread stoped [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:33]accept exits with 8 [13:01:33]New connection [13:01:33]New thread 3066817892 created [13:01:33]Thread 3066961252 joined [13:01:33]Waiting for new connection... [13:01:33] Sock 8.Parse request [13:01:33]Sock 8.Check first char [13:01:33]Sock 8.First char is OK [13:01:33]request: POST /json_proto HTTP/1.0 [13:01:33]Method: POST [13:01:33]URL: /json_proto [13:01:33]Method is POST - this is cgi request [13:01:33]url: /json_proto [13:01:33]query_string will be loaded in cgi processing [13:01:33]execute_cgi json_proto POST (null) [13:01:33]execute_cgi path=json_proto method=POST [13:01:33]POST find Content-Length [13:01:33]Host: 172.17.63.131:8080 [13:01:33]Content-Length: 865 [13:01:33]Content-Type: application/json [13:01:33] [13:01:33]POST finish read [13:01:33]Found Content-Length = 865 [13:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:33]execute_script... [13: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)30705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:33]POST & json_proto [13:01:33]process_json_proto [13:01:33]json parsed OK: [13:01:33]protocol is kg_v1.0 [13:01:33]action value=close_receipt [13:01:33]process_action close_receipt [13:01:33]cmd_close_receipt [13:01:33]MH_GetDate [13:01:33]Write to MH i2c: F0 00 00 BF 97 45 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 09 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 09 00 BF 97 00 B6 96 1B 67 22 05 6E 64 15 [13:01:33]GetLastDocTimeStamp 1729861243 [13:01:33]current date 1729861302 [13:01:33]FM_GetShiftState [13:01:33]SAM_PROTO_GetShiftState [13:01:33]wFMCommunicate request_size=4 [13:01:33]MH_SAM_APDU [13:01:33]CAPDU: 80 13 01 00 [13:01:33]Write to MH i2c: E2 08 00 C0 97 80 13 01 00 00 00 00 00 D4 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 C0 97 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 97 [13:01:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:01:33]wFMCommunicate OK [13:01:33]SAM_PROTO_GetShiftState done [13:01:33]FM_GetShiftState done [13:01:33]opened in 1729816399 [13:01:33]opened+sec_in_day 1729902799 [13:01:33]quantity*price = 100015 [13:01:33]sum+1 = 100017 [13:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 148 25.10.2024 13:01 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191409 ФПД: 149297128381320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191409&fm=149297128381320&tin=02508201610067®Number=0000000000091776&sum=100016 [13:01:34]StoreToDocumentArchive [13:01:34]shift 540 fd 191409 [13:01:34]save to /storage/0540/doc_00191409 [13:01:34]save last doc name /storage/0540/doc_00191409 to /storage/kkm_last_doc_name [13:01:34]save OK [13:01:34]Clear old archive folders... [13:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:34]tlvbuf is 017CE8F0 [13:01:34]SAM_PROTO_ClearQueue [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 09 00 00 [13:01:34]Write to MH i2c: E2 08 00 CD 97 80 09 00 00 00 00 00 00 D6 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 CD 97 00 90 00 D8 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_ClearQueue done [13:01:34]KKMCreateOFDPacket [13:01:34]OFDProtocolAddRootSTLVToBuf [13:01:34]FM_MakeSignedData [13:01:34]FM_MakeSignedData [13:01:34]SAM_PROTO_SignData [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 01 02 [13:01:34]Write to MH i2c: E2 08 00 CE 97 80 0D 01 02 00 00 00 00 DE [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 CE 97 00 90 00 D9 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=255 [13:01:34]MH_SAM_APDU [13: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B6 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EB 02 00 35 04 06 00 87 [13:01:34]Write to MH i2c: E2 02 01 CF 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B6 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EB 02 00 35 04 06 00 87 00 00 31 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 CF 97 00 90 00 DA [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=10 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 02 02 05 C8 F2 4D 9B 88 [13:01:34]Write to MH i2c: E2 0D 00 D0 97 80 0D 02 02 05 00 C8 F2 4D 9B 88 00 00 15 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 D0 97 00 90 00 DB [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 03 02 [13:01:34]Write to MH i2c: E2 08 00 D1 97 80 0D 03 02 00 00 00 00 E3 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0B 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0B 00 D1 97 00 80 47 B4 00 1C 68 ED 54 90 00 24 [13:01:34]RAPDU: 80 47 B4 00 1C 68 ED 54 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_SignData done [13:01:34]FM_MakeSignedData done [13:01:34]CreateOFDProtocolMessage [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 11 00 00 [13:01:34]Write to MH i2c: E2 08 00 D2 97 80 11 00 00 00 00 00 00 E3 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 D2 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [13:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:34]wFMCommunicate OK [13:01:34]CreateOFDProtocolMessage done [13:01:34]OFDSenderStorePacket 191409 [13:01:34]StoreOFDPacket docnum=191409 [13:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 69 45 07 01 2F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B6 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EB 02 00 35 04 06 00 87 C8 F2 4D 9B 88 80 47 B4 00 1C 68 ED 54 [13:01:34]CheckFolder [13:01:34]dirname=/storage/ofd_packets [13:01:34]CheckFolder done [13:01:34]ProducePacketName [13:01:34]name=ofd_packets/00191409 [13:01:34]NVStorageSaveData ofd_packets/00191409 [13:01:34]File name is /storage/ofd_packets/00191409 [13:01:34]Write 301 bytes [13:01:34]NVStorageSaveData done [13:01:34]OFDSenderStorePacket done [13:01:34]KKMCreateOFDPacket done [13:01:34]NVStorageSaveData kkm_last_timestamp [13:01:34]File name is /storage/kkm_last_timestamp [13:01:34]Write 4 bytes [13:01:34]NVStorageSaveData done [13:01:34]ExternCall_PrintAddStr [13:01:34]wPrintStart [13:01:34]Write to MH i2c: 01 00 00 D3 97 6A [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 07 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 07 00 D3 97 00 00 00 00 00 FF 0F 7F [13:01:34]RasterBufferAndPrint [13:01:34]line Счет N : (1)30705 [13:01:34]line ИНН: 02508201610067 [13:01:34]line Контрольно-Кассовый Чек [13:01:34]line ПРОДАЖА [13:01:34]line ТРК (МРК, ГНК) : 21 [13:01:34]line Товар: 2710124130 [13:01:34]line Аи-92-К-5 [13:01:34]line 14.950 * 66.90 [13:01:34]line = 1000.16 [13:01:34]line НДС 12% НСП 1% [13:01:34]line > о реализуемом товаре [13:01:34]line ИТОГО: 1000.16 [13:01:34]line НСП 1% : 8.85 [13:01:34]line НДС 12% : 106.21 [13:01:34]line Наличными: 0.00 [13:01:34]line Безнал.: 1000.16 [13:01:34]line Место: АЗС № 170 "Партнер Нефть" [13:01:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:01:34]line СНО: Общий режим [13:01:34]line Чек 148 25.10.2024 13:01 [13:01:34]line Смена: 540 ФФД: 1.0 [13:01:34]line ЗНМ: 0300000110 [13:01:34]line РНМ: 0000000000091776 [13:01:34]line Версия ККМ: 001 [13:01:34]line Платежная система: Кыргызкоммерцбанк [13:01:34]line ФМ: 0000000000871754 [13:01:34]line ФД: 191409 [13:01:34]line ФПД: 149297128381320 [13:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191409&fm=149297128381320&tin=02508201610067®Number=0000000000091776&sum=100016 [13:01:35]OFD Sender: Processing packet 191409 [packets to send 75, broken 74] [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00191409 [13:01:35]OFD Sender: To server: pG, [13:01:35]CommunicateWithHost lk.salyk.kg:30040 [13:01:35]ConnectInit lk.salyk.kg [13:01:35]written 0, free lines is 4095 [13:01:35]Connected sock=10 [13: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 31 37 35 34 0F 01 00 00 69 45 07 01 2F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B6 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EB 02 00 35 04 06 00 87 C8 F2 4D 9B 88 80 47 B4 00 1C 68 ED 54 [13:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2E B9 47 00 D2 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EB 02 00 F4 03 04 00 84 3B 1B 67 B6 04 01 00 00 B2 E8 2F 5C 8F A5 F9 20 [13:01:35]CommunicateWithHost err = 0 [13:01:35]CheckOFDResponse [13:01:35]1017 (14) - 77093643461234 [13:01:35]1041 (16) - 0000000000871754 [13:01:35]1040 (4) - 191409 [13:01:35]1012 (4) - 25.10.2024 06:32 [13:01:35]1206 (1) - 0 [13:01:35]OFD Sender: Remove packet 191409 [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00191409 [13:01:35]NVStorageDeleteData [13:01:35]Write to MH i2c: 01 00 00 FD 97 94 [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 FD 97 00 00 00 00 00 D9 0C 80 [13:01:35]RasterBufferAndPrint [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]line [13:01:35]written 0, free lines is 3297 [13:01:35]MH_Cut [13:01:35]Write to MH i2c: D1 01 00 04 98 01 6E [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 01 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: D1 01 00 04 98 00 6D [13:01:35]Write to MH i2c: 01 00 00 05 98 9D [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:36]OFD Sender: No OFD packet to send [13:01:36]*** Cut start [13:01:36]*** Partial cut [13:01:36]*** CUTSNS_PIN = 1 [13:01:36]*** CUTSNS_PIN = 0 [13:01:36]*** Brake cut motor [13:01:37]Read from MH i2c: 01 [13:01:37]*** Stop cut motor [13:01:37]*** Cut end [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 05 98 00 00 00 00 00 FF 0F B2 [13:01:37]process_action close_receipt done [13:01:37]requested_data is exist [13:01:37]produce_requested_data [13:01:37]requested_item fm.sn is exist - process it [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 11 00 00 [13:01:37]Write to MH i2c: E2 08 00 06 98 80 11 00 00 00 00 00 00 18 [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 17 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 17 00 06 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [13:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:37]wFMCommunicate OK [13:01:37]requested_item fd.num is exist - process it [13:01:37]SAM_PROTO_GetFieldsCounters [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 13 00 00 [13:01:37]Write to MH i2c: E2 08 00 07 98 80 13 00 00 00 00 00 00 1B [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 62 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 62 00 07 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:37]wFMCommunicate OK [13:01:37]SAM_PROTO_GetFieldsCounters done [13:01:37]requested_item shift.num is exist - process it [13:01:37]requested_item shift.opened is exist - process it [13:01:37]req_shift_opened [13:01:37]FM_GetShiftState [13:01:37]SAM_PROTO_GetShiftState [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 13 01 00 [13:01:37]Write to MH i2c: E2 08 00 08 98 80 13 01 00 00 00 00 00 1D [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 0E 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 0E 00 08 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [13:01:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:01:37]wFMCommunicate OK [13:01:37]SAM_PROTO_GetShiftState done [13:01:37]FM_GetShiftState done [13:01:37]req_shift_opened done [13:01:37]requested_item shift.open_date is exist - process it [13:01:37]req_shift_open_date [13:01:37]req_shift_open_date done [13:01:37]produce_requested_data done [13:01:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191409,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:01:37]process_action_free close_receipt [13:01:37]json_value_free [13:01:37]json_value_free done [13:01:37]process_json_proto returns [13:01:37]Send response to host [13:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191409,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:01:37]free response buf [13:01:37]execute_script done [13:01:37]execute_script returns [13:01:37]free content buf [13:01:37]Sock 8.Close socket [13:01:37]Sock 8.Thread stoped [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:14]accept exits with 9 [13:02:14]New connection [13:02:14]New thread 3066961252 created [13:02:14]Thread 3066817892 joined [13:02:14]Waiting for new connection... [13:02:14] Sock 9.Parse request [13:02:14]Sock 9.Check first char [13:02:14]Sock 9.First char is OK [13:02:14]request: POST /json_proto HTTP/1.0 [13:02:14]Method: POST [13:02:14]URL: /json_proto [13:02:14]Method is POST - this is cgi request [13:02:14]url: /json_proto [13:02:14]query_string will be loaded in cgi processing [13:02:14]execute_cgi json_proto POST (null) [13:02:14]execute_cgi path=json_proto method=POST [13:02:14]POST find Content-Length [13:02:14]Host: 172.17.63.131:8080 [13:02:14]Content-Length: 678 [13:02:14]Content-Type: application/json [13:02:14] [13:02:14]POST finish read [13:02:14]Found Content-Length = 678 [13:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:14]execute_script... [13: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)30703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:14]POST & json_proto [13:02:14]process_json_proto [13:02:14]json parsed OK: [13:02:14]protocol is kg_v1.0 [13:02:14]action value=close_receipt [13:02:14]process_action close_receipt [13:02:14]cmd_close_receipt [13:02:14]MH_GetDate [13:02:14]Write to MH i2c: F0 00 00 09 98 90 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 09 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 09 00 09 98 00 DF 96 1B 67 22 05 6E 64 89 [13:02:14]GetLastDocTimeStamp 1729861302 [13:02:14]current date 1729861343 [13:02:14]FM_GetShiftState [13:02:14]SAM_PROTO_GetShiftState [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 01 00 [13:02:14]Write to MH i2c: E2 08 00 0A 98 80 13 01 00 00 00 00 00 1F [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 0A 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E2 [13:02:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetShiftState done [13:02:14]FM_GetShiftState done [13:02:14]opened in 1729816399 [13:02:14]opened+sec_in_day 1729902799 [13:02:14]quantity*price = 300075 [13:02:14]sum+1 = 300077 [13:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 149 25.10.2024 13:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191410 ФПД: 209600398939317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191410&fm=209600398939317&tin=02508201610067®Number=0000000000091776&sum=300000 [13:02:15]StoreToDocumentArchive [13:02:15]shift 540 fd 191410 [13:02:15]save to /storage/0540/doc_00191410 [13:02:15]save last doc name /storage/0540/doc_00191410 to /storage/kkm_last_doc_name [13:02:15]save OK [13:02:15]Clear old archive folders... [13:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:15]tlvbuf is 016CE5F0 [13:02:15]SAM_PROTO_ClearQueue [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 09 00 00 [13:02:15]Write to MH i2c: E2 08 00 17 98 80 09 00 00 00 00 00 00 21 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 17 98 00 90 00 23 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_ClearQueue done [13:02:15]KKMCreateOFDPacket [13:02:15]OFDProtocolAddRootSTLVToBuf [13:02:15]FM_MakeSignedData [13:02:15]FM_MakeSignedData [13:02:15]SAM_PROTO_SignData [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 01 02 [13:02:15]Write to MH i2c: E2 08 00 18 98 80 0D 01 02 00 00 00 00 29 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 18 98 00 90 00 24 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]wFMCommunicate request_size=255 [13:02:15]MH_SAM_APDU [13: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 DF 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EB 02 00 35 04 06 00 BE A1 65 52 [13:02:15]Write to MH i2c: E2 02 01 19 98 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 DF 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EB 02 00 35 04 06 00 BE A1 65 52 00 00 49 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 19 98 00 90 00 25 [13:02:16]RAPDU: 90 00 [13:02:16]wFMCommunicate OK [13:02:16]wFMCommunicate request_size=7 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 0D 02 02 02 D4 B5 [13:02:16]Write to MH i2c: E2 0A 00 1A 98 80 0D 02 02 02 00 D4 B5 00 00 B9 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]OFD Sender: No OFD packet to send [13:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 1A 98 00 90 00 26 [13:02:16]RAPDU: 90 00 [13:02:16]wFMCommunicate OK [13:02:16]wFMCommunicate request_size=4 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 0D 03 02 [13:02:16]Write to MH i2c: E2 08 00 1B 98 80 0D 03 02 00 00 00 00 2E [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 0B 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 0B 00 1B 98 00 59 D9 7F 26 65 C6 D1 C8 90 00 CA [13:02:16]RAPDU: 59 D9 7F 26 65 C6 D1 C8 90 00 [13:02:16]wFMCommunicate OK [13:02:16]SAM_PROTO_SignData done [13:02:16]FM_MakeSignedData done [13:02:16]CreateOFDProtocolMessage [13:02:16]wFMCommunicate request_size=4 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 11 00 00 [13:02:16]Write to MH i2c: E2 08 00 1C 98 80 11 00 00 00 00 00 00 2E [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 17 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 17 00 1C 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [13:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:16]wFMCommunicate OK [13:02:16]CreateOFDProtocolMessage done [13:02:16]OFDSenderStorePacket 191410 [13:02:16]StoreOFDPacket docnum=191410 [13:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 72 23 04 01 DA 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 DF 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EB 02 00 35 04 06 00 BE A1 65 52 D4 B5 59 D9 7F 26 65 C6 D1 C8 [13:02:16]CheckFolder [13:02:16]dirname=/storage/ofd_packets [13:02:16]CheckFolder done [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00191410 [13:02:16]NVStorageSaveData ofd_packets/00191410 [13:02:16]File name is /storage/ofd_packets/00191410 [13:02:16]Write 298 bytes [13:02:16]NVStorageSaveData done [13:02:16]OFDSenderStorePacket done [13:02:16]KKMCreateOFDPacket done [13:02:16]NVStorageSaveData kkm_last_timestamp [13:02:16]File name is /storage/kkm_last_timestamp [13:02:16]Write 4 bytes [13:02:16]NVStorageSaveData done [13:02:16]ExternCall_PrintAddStr [13:02:16]wPrintStart [13:02:16]Write to MH i2c: 01 00 00 1D 98 B5 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 1D 98 00 00 00 00 00 FF 0F CA [13:02:16]RasterBufferAndPrint [13:02:16]line Счет N : (1)30703 [13:02:16]line ИНН: 02508201610067 [13:02:16]line Контрольно-Кассовый Чек [13:02:16]line ПРОДАЖА [13:02:16]line ТРК (МРК, ГНК) : 11 [13:02:16]line Товар: 2710194210 [13:02:16]line ДТ-К-5 [13:02:16]line 39.380 * 76.20 [13:02:16]line = 3000.76 [13:02:16]line НДС 12% НСП 1% [13:02:16]line > о реализуемом товаре [13:02:16]line ОКРУГЛЕНИЕ: -0.76 [13:02:16]line ИТОГО: 3000.00 [13:02:16]line Внесено: 3000.00 [13:02:16]line СДАЧА: 0.00 [13:02:16]line НСП 1% : 26.55 [13:02:16]line НДС 12% : 318.66 [13:02:16]line Наличными: 3000.00 [13:02:16]line Безнал.: 0.00 [13:02:16]line Место: АЗС № 170 "Партнер Нефть" [13:02:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:02:16]line СНО: Общий режим [13:02:16]line Чек 149 25.10.2024 13:02 [13:02:16]line Смена: 540 ФФД: 1.0 [13:02:16]line ЗНМ: 0300000110 [13:02:16]line РНМ: 0000000000091776 [13:02:16]line Версия ККМ: 001 [13:02:16]line ФМ: 0000000000871754 [13:02:16]line ФД: 191410 [13:02:16]line ФПД: 209600398939317 [13:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191410&fm=209600398939317&tin=02508201610067®Number=0000000000091776&sum=300000 [13:02:16]OFD Sender: Processing packet 191410 [packets to send 75, broken 74] [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00191410 [13:02:16]OFD Sender: To server: pG, [13:02:16]CommunicateWithHost lk.salyk.kg:30040 [13:02:16]ConnectInit lk.salyk.kg [13:02:16]written 0, free lines is 4095 [13:02:16]Connected sock=10 [13: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 31 37 35 34 0C 01 00 00 72 23 04 01 DA 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 DF 96 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EB 02 00 35 04 06 00 BE A1 65 52 D4 B5 59 D9 7F 26 65 C6 D1 C8 [13:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0E 0F 47 00 BA CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EB 02 00 F4 03 04 00 AE 3B 1B 67 B6 04 01 00 00 13 96 83 0C C9 2A 1A 05 [13:02:16]CommunicateWithHost err = 0 [13:02:16]CheckOFDResponse [13:02:16]1017 (14) - 77093643461234 [13:02:16]1041 (16) - 0000000000871754 [13:02:16]1040 (4) - 191410 [13:02:16]1012 (4) - 25.10.2024 06:33 [13:02:16]1206 (1) - 0 [13:02:16]OFD Sender: Remove packet 191410 [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00191410 [13:02:16]NVStorageDeleteData [13:02:17]Write to MH i2c: 01 00 00 48 98 E0 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 48 98 00 00 00 00 00 C1 0C B4 [13:02:17]RasterBufferAndPrint [13:02:17]line [13:02:17]line [13:02:17]line [13:02:17]line [13:02:17]line [13:02:17]written 0, free lines is 3272 [13:02:17]MH_Cut [13:02:17]Write to MH i2c: D1 01 00 4F 98 01 B9 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: D1 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: D1 01 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: D1 01 00 4F 98 00 B8 [13:02:17]Write to MH i2c: 01 00 00 50 98 E8 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]OFD Sender: No OFD packet to send [13:02:17]*** Cut start [13:02:17]*** Partial cut [13:02:17]*** CUTSNS_PIN = 1 [13:02:17]*** CUTSNS_PIN = 0 [13:02:18]*** Brake cut motor [13:02:18]Read from MH i2c: 01 [13:02:18]MH_I2C_Read... [13:02:18]*** Stop cut motor [13:02:18]*** Cut end [13:02:18]Read from MH i2c: 01 07 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: 01 07 00 50 98 00 00 00 00 00 FF 0F FD [13:02:18]process_action close_receipt done [13:02:18]requested_data is exist [13:02:18]produce_requested_data [13:02:18]requested_item fm.sn is exist - process it [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 11 00 00 [13:02:18]Write to MH i2c: E2 08 00 51 98 80 11 00 00 00 00 00 00 63 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 17 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 17 00 51 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [13:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:18]wFMCommunicate OK [13:02:18]requested_item fd.num is exist - process it [13:02:18]SAM_PROTO_GetFieldsCounters [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 13 00 00 [13:02:18]Write to MH i2c: E2 08 00 52 98 80 13 00 00 00 00 00 00 66 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 62 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 62 00 52 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:18]wFMCommunicate OK [13:02:18]SAM_PROTO_GetFieldsCounters done [13:02:18]requested_item shift.num is exist - process it [13:02:18]requested_item shift.opened is exist - process it [13:02:18]req_shift_opened [13:02:18]FM_GetShiftState [13:02:18]SAM_PROTO_GetShiftState [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 13 01 00 [13:02:18]Write to MH i2c: E2 08 00 53 98 80 13 01 00 00 00 00 00 68 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 0E 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 0E 00 53 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2B [13:02:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:02:18]wFMCommunicate OK [13:02:18]SAM_PROTO_GetShiftState done [13:02:18]FM_GetShiftState done [13:02:18]req_shift_opened done [13:02:18]requested_item shift.open_date is exist - process it [13:02:18]req_shift_open_date [13:02:18]req_shift_open_date done [13:02:18]produce_requested_data done [13:02:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191410,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:02:18]process_action_free close_receipt [13:02:18]json_value_free [13:02:18]json_value_free done [13:02:18]process_json_proto returns [13:02:18]Send response to host [13:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191410,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:02:18]free response buf [13:02:18]execute_script done [13:02:18]execute_script returns [13:02:18]free content buf [13:02:18]Sock 9.Close socket [13:02:18]Sock 9.Thread stoped [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:13]accept exits with 8 [13:06:13]New connection [13:06:13]New thread 3066817892 created [13:06:13]Thread 3066961252 joined [13:06:13]Waiting for new connection... [13:06:13] Sock 8.Parse request [13:06:13]Sock 8.Check first char [13:06:13]Sock 8.First char is OK [13:06:13]request: POST /json_proto HTTP/1.0 [13:06:13]Method: POST [13:06:13]URL: /json_proto [13:06:13]Method is POST - this is cgi request [13:06:13]url: /json_proto [13:06:13]query_string will be loaded in cgi processing [13:06:13]execute_cgi json_proto POST (null) [13:06:13]execute_cgi path=json_proto method=POST [13:06:13]POST find Content-Length [13:06:13]Host: 172.17.63.131:8080 [13:06:13]Content-Length: 779 [13:06:13]Content-Type: application/json [13:06:13] [13:06:13]POST finish read [13:06:13]Found Content-Length = 779 [13:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A24268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:13]execute_script... [13:06: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)30706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A24268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:13]POST & json_proto [13:06:13]process_json_proto [13:06:13]json parsed OK: [13:06:13]protocol is kg_v1.0 [13:06:13]action value=close_receipt [13:06:13]process_action close_receipt [13:06:13]cmd_close_receipt [13:06:13]MH_GetDate [13:06:13]Write to MH i2c: F0 00 00 54 98 DB [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: F0 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: F0 09 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: F0 09 00 54 98 00 CE 97 1B 67 22 05 6E 64 C4 [13:06:13]GetLastDocTimeStamp 1729861343 [13:06:13]current date 1729861582 [13:06:13]FM_GetShiftState [13:06:13]SAM_PROTO_GetShiftState [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 13 01 00 [13:06:13]Write to MH i2c: E2 08 00 55 98 80 13 01 00 00 00 00 00 6A [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 0E 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 0E 00 55 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2D [13:06:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:06:13]wFMCommunicate OK [13:06:13]SAM_PROTO_GetShiftState done [13:06:13]FM_GetShiftState done [13:06:13]opened in 1729816399 [13:06:13]opened+sec_in_day 1729902799 [13:06:13]quantity*price = 0 [13:06:13]sum+1 = 1 [13:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 150 25.10.2024 13:06 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 24268 ФМ: 0000000000871754 ФД: 191411 ФПД: 277093156653352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191411&fm=277093156653352&tin=02508201610067®Number=0000000000091776&sum=0 [13:06:14]StoreToDocumentArchive [13:06:14]shift 540 fd 191411 [13:06:14]save to /storage/0540/doc_00191411 [13:06:14]save last doc name /storage/0540/doc_00191411 to /storage/kkm_last_doc_name [13:06:14]save OK [13:06:14]Clear old archive folders... [13:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:14]tlvbuf is 0160B600 [13:06:14]SAM_PROTO_ClearQueue [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 09 00 00 [13:06:14]Write to MH i2c: E2 08 00 62 98 80 09 00 00 00 00 00 00 6C [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 62 98 00 90 00 6E [13:06:14]RAPDU: 90 00 [13:06:14]wFMCommunicate OK [13:06:14]SAM_PROTO_ClearQueue done [13:06:14]KKMCreateOFDPacket [13:06:14]OFDProtocolAddRootSTLVToBuf [13:06:14]FM_MakeSignedData [13:06:14]FM_MakeSignedData [13:06:14]SAM_PROTO_SignData [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 0D 01 02 [13:06:14]Write to MH i2c: E2 08 00 63 98 80 0D 01 02 00 00 00 00 74 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 63 98 00 90 00 6F [13:06:14]RAPDU: 90 00 [13:06:14]wFMCommunicate OK [13:06:14]wFMCommunicate request_size=255 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 97 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EB 02 00 35 04 06 00 FC [13:06:14]Write to MH i2c: E2 02 01 64 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 97 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EB 02 00 35 04 06 00 FC 00 00 28 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 64 98 00 90 00 70 [13:06:14]RAPDU: 90 00 [13:06:14]wFMCommunicate OK [13:06:14]wFMCommunicate request_size=10 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 0D 02 02 05 03 C7 2C 09 28 [13:06:14]Write to MH i2c: E2 0D 00 65 98 80 0D 02 02 05 00 03 C7 2C 09 28 00 00 A8 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 03 00 65 98 00 90 00 71 [13:06:14]RAPDU: 90 00 [13:06:14]wFMCommunicate OK [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 0D 03 02 [13:06:14]Write to MH i2c: E2 08 00 66 98 80 0D 03 02 00 00 00 00 79 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0B 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0B 00 66 98 00 E4 75 0A 1E 49 C7 3C BB 90 00 02 [13:06:14]RAPDU: E4 75 0A 1E 49 C7 3C BB 90 00 [13:06:14]wFMCommunicate OK [13:06:14]SAM_PROTO_SignData done [13:06:14]FM_MakeSignedData done [13:06:14]CreateOFDProtocolMessage [13:06:14]wFMCommunicate request_size=4 [13:06:14]MH_SAM_APDU [13:06:14]CAPDU: 80 11 00 00 [13:06:14]Write to MH i2c: E2 08 00 67 98 80 11 00 00 00 00 00 00 79 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 17 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 17 00 67 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [13:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:14]wFMCommunicate OK [13:06:14]CreateOFDProtocolMessage done [13:06:14]OFDSenderStorePacket 191411 [13:06:14]StoreOFDPacket docnum=191411 [13:06:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 6E 07 01 59 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 97 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EB 02 00 35 04 06 00 FC 03 C7 2C 09 28 E4 75 0A 1E 49 C7 3C BB [13:06:14]CheckFolder [13:06:14]dirname=/storage/ofd_packets [13:06:14]CheckFolder done [13:06:14]ProducePacketName [13:06:14]name=ofd_packets/00191411 [13:06:14]NVStorageSaveData ofd_packets/00191411 [13:06:14]File name is /storage/ofd_packets/00191411 [13:06:14]Write 301 bytes [13:06:14]NVStorageSaveData done [13:06:14]OFDSenderStorePacket done [13:06:14]KKMCreateOFDPacket done [13:06:14]NVStorageSaveData kkm_last_timestamp [13:06:14]File name is /storage/kkm_last_timestamp [13:06:14]Write 4 bytes [13:06:14]NVStorageSaveData done [13:06:14]ExternCall_PrintAddStr [13:06:14]wPrintStart [13:06:14]Write to MH i2c: 01 00 00 68 98 00 [13:06:14]Write i2c OK [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: 01 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: 01 07 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: 01 07 00 68 98 00 00 00 00 00 FF 0F 15 [13:06:14]RasterBufferAndPrint [13:06:14]line Счет N : (1)30706 [13:06:14]line ИНН: 02508201610067 [13:06:14]line Контрольно-Кассовый Чек [13:06:14]line ПРОДАЖА [13:06:14]line ТРК (МРК, ГНК) : 12 [13:06:14]line Товар: 2710124130 [13:06:14]line Аи-92-К-5 [13:06:14]line 20.000 * 0.00 [13:06:14]line = 0.00 [13:06:14]line НДС 12% НСП 1% [13:06:14]line > о реализуемом товаре [13:06:14]line ИТОГО: 0.00 [13:06:14]line НСП 1% : 0.00 [13:06:14]line НДС 12% : 0.00 [13:06:14]line Наличными: 0.00 [13:06:14]line Безнал.: 0.00 [13:06:14]line Место: АЗС № 170 "Партнер Нефть" [13:06:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:06:14]line СНО: Общий режим [13:06:14]line Чек 150 25.10.2024 13:06 [13:06:14]line Смена: 540 ФФД: 1.0 [13:06:14]line ЗНМ: 0300000110 [13:06:14]line РНМ: 0000000000091776 [13:06:14]line Версия ККМ: 001 [13:06:14]line Талоны: Партнер нефть [13:06:14]line 24268 [13:06:14]line ФМ: 0000000000871754 [13:06:14]line ФД: 191411 [13:06:14]line ФПД: 277093156653352 [13:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191411&fm=277093156653352&tin=02508201610067®Number=0000000000091776&sum=0 [13:06:15]written 0, free lines is 4095 [13:06:15]OFD Sender: Processing packet 191411 [packets to send 75, broken 74] [13:06:15]ProducePacketName [13:06:15]name=ofd_packets/00191411 [13:06:15]OFD Sender: To server: pG, [13:06:15]CommunicateWithHost lk.salyk.kg:30040 [13:06:15]ConnectInit lk.salyk.kg [13:06:15]Connected sock=10 [13:06:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 6E 07 01 59 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 97 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EB 02 00 35 04 06 00 FC 03 C7 2C 09 28 E4 75 0A 1E 49 C7 3C BB [13:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 D8 47 00 85 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EB 02 00 F4 03 04 00 9C 3C 1B 67 B6 04 01 00 00 1E 3A 72 DB 02 FA 2B 34 [13:06:15]CommunicateWithHost err = 0 [13:06:15]CheckOFDResponse [13:06:15]1017 (14) - 77093643461234 [13:06:15]1041 (16) - 0000000000871754 [13:06:15]1040 (4) - 191411 [13:06:15]1012 (4) - 25.10.2024 06:37 [13:06:15]1206 (1) - 0 [13:06:15]OFD Sender: Remove packet 191411 [13:06:15]ProducePacketName [13:06:15]name=ofd_packets/00191411 [13:06:15]NVStorageDeleteData [13:06:15]Write to MH i2c: 01 00 00 92 98 2A [13:06:15]Write i2c OK [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: 01 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: 01 07 00 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: 01 07 00 92 98 00 00 00 00 00 C0 0C FD [13:06:15]RasterBufferAndPrint [13:06:15]line [13:06:15]line [13:06:15]line [13:06:15]line [13:06:15]line [13:06:15]written 0, free lines is 3271 [13:06:15]MH_Cut [13:06:15]Write to MH i2c: D1 01 00 99 98 01 03 [13:06:15]Write i2c OK [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: D1 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: D1 01 00 [13:06:15]MH_I2C_Read... [13:06:15]Read from MH i2c: D1 01 00 99 98 00 02 [13:06:15]Write to MH i2c: 01 00 00 9A 98 32 [13:06:15]Write i2c OK [13:06:15]MH_I2C_Read... [13:06:16]OFD Sender: No OFD packet to send [13:06:16]*** Cut start [13:06:16]*** Partial cut [13:06:16]*** CUTSNS_PIN = 1 [13:06:16]*** CUTSNS_PIN = 0 [13:06:16]*** Brake cut motor [13:06:17]Read from MH i2c: 01 [13:06:17]MH_I2C_Read... [13:06:17]*** Stop cut motor [13:06:17]*** Cut end [13:06:17]Read from MH i2c: 01 07 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 07 00 9A 98 00 00 00 00 00 FF 0F 47 [13:06:17]process_action close_receipt done [13:06:17]requested_data is exist [13:06:17]produce_requested_data [13:06:17]requested_item fm.sn is exist - process it [13:06:17]wFMCommunicate request_size=4 [13:06:17]MH_SAM_APDU [13:06:17]CAPDU: 80 11 00 00 [13:06:17]Write to MH i2c: E2 08 00 9B 98 80 11 00 00 00 00 00 00 AD [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:17]Read from MH i2c: E2 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 17 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 17 00 9B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [13:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:17]wFMCommunicate OK [13:06:17]requested_item fd.num is exist - process it [13:06:17]SAM_PROTO_GetFieldsCounters [13:06:17]wFMCommunicate request_size=4 [13:06:17]MH_SAM_APDU [13:06:17]CAPDU: 80 13 00 00 [13:06:17]Write to MH i2c: E2 08 00 9C 98 80 13 00 00 00 00 00 00 B0 [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:17]Read from MH i2c: E2 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 62 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 62 00 9C 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:17]wFMCommunicate OK [13:06:17]SAM_PROTO_GetFieldsCounters done [13:06:17]requested_item shift.num is exist - process it [13:06:17]requested_item shift.opened is exist - process it [13:06:17]req_shift_opened [13:06:17]FM_GetShiftState [13:06:17]SAM_PROTO_GetShiftState [13:06:17]wFMCommunicate request_size=4 [13:06:17]MH_SAM_APDU [13:06:17]CAPDU: 80 13 01 00 [13:06:17]Write to MH i2c: E2 08 00 9D 98 80 13 01 00 00 00 00 00 B2 [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:17]Read from MH i2c: E2 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 0E 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: E2 0E 00 9D 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 75 [13:06:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:06:17]wFMCommunicate OK [13:06:17]SAM_PROTO_GetShiftState done [13:06:17]FM_GetShiftState done [13:06:17]req_shift_opened done [13:06:17]requested_item shift.open_date is exist - process it [13:06:17]req_shift_open_date [13:06:17]req_shift_open_date done [13:06:17]produce_requested_data done [13:06:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191411,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:06:17]process_action_free close_receipt [13:06:17]json_value_free [13:06:17]json_value_free done [13:06:17]process_json_proto returns [13:06:17]Send response to host [13:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191411,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:06:17]free response buf [13:06:17]execute_script done [13:06:17]execute_script returns [13:06:17]free content buf [13:06:17]Sock 8.Close socket [13:06:17]Sock 8.Thread stoped [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:08]accept exits with 9 [13:07:08]New connection [13:07:08]New thread 3066961252 created [13:07:08]Thread 3066817892 joined [13:07:08]Waiting for new connection... [13:07:08] Sock 9.Parse request [13:07:08]Sock 9.Check first char [13:07:08]Sock 9.First char is OK [13:07:08]request: POST /json_proto HTTP/1.0 [13:07:08]Method: POST [13:07:08]URL: /json_proto [13:07:08]Method is POST - this is cgi request [13:07:08]url: /json_proto [13:07:08]query_string will be loaded in cgi processing [13:07:08]execute_cgi json_proto POST (null) [13:07:08]execute_cgi path=json_proto method=POST [13:07:08]POST find Content-Length [13:07:08]Host: 172.17.63.131:8080 [13:07:08]Content-Length: 779 [13:07:08]Content-Type: application/json [13:07:08] [13:07:08]POST finish read [13:07:08]Found Content-Length = 779 [13:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A24268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:08]execute_script... [13:07: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)30707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A24268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:08]POST & json_proto [13:07:08]process_json_proto [13:07:08]json parsed OK: [13:07:08]protocol is kg_v1.0 [13:07:08]action value=close_receipt [13:07:08]process_action close_receipt [13:07:08]cmd_close_receipt [13:07:08]MH_GetDate [13:07:08]Write to MH i2c: F0 00 00 9E 98 25 [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: F0 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: F0 09 00 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: F0 09 00 9E 98 00 05 98 1B 67 22 05 6E 64 46 [13:07:08]GetLastDocTimeStamp 1729861582 [13:07:08]current date 1729861637 [13:07:08]FM_GetShiftState [13:07:08]SAM_PROTO_GetShiftState [13:07:08]wFMCommunicate request_size=4 [13:07:08]MH_SAM_APDU [13:07:08]CAPDU: 80 13 01 00 [13:07:08]Write to MH i2c: E2 08 00 9F 98 80 13 01 00 00 00 00 00 B4 [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:08]Read from MH i2c: E2 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: E2 0E 00 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: E2 0E 00 9F 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 77 [13:07:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:07:08]wFMCommunicate OK [13:07:08]SAM_PROTO_GetShiftState done [13:07:08]FM_GetShiftState done [13:07:08]opened in 1729816399 [13:07:08]opened+sec_in_day 1729902799 [13:07:08]quantity*price = 0 [13:07:08]sum+1 = 1 [13:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 151 25.10.2024 13:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 24268 ФМ: 0000000000871754 ФД: 191412 ФПД: 198215917503115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191412&fm=198215917503115&tin=02508201610067®Number=0000000000091776&sum=0 [13:07:09]StoreToDocumentArchive [13:07:09]shift 540 fd 191412 [13:07:09]save to /storage/0540/doc_00191412 [13:07:09]save last doc name /storage/0540/doc_00191412 to /storage/kkm_last_doc_name [13:07:09]save OK [13:07:09]Clear old archive folders... [13:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:09]tlvbuf is 01830E10 [13:07:09]SAM_PROTO_ClearQueue [13:07:09]wFMCommunicate request_size=4 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 09 00 00 [13:07:09]Write to MH i2c: E2 08 00 AC 98 80 09 00 00 00 00 00 00 B6 [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 [13:07:09]MH_I2C_Read... [13:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:09]Read from MH i2c: E2 03 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 03 00 AC 98 00 90 00 B8 [13:07:09]RAPDU: 90 00 [13:07:09]wFMCommunicate OK [13:07:09]SAM_PROTO_ClearQueue done [13:07:09]KKMCreateOFDPacket [13:07:09]OFDProtocolAddRootSTLVToBuf [13:07:09]FM_MakeSignedData [13:07:09]FM_MakeSignedData [13:07:09]SAM_PROTO_SignData [13:07:09]wFMCommunicate request_size=4 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 0D 01 02 [13:07:09]Write to MH i2c: E2 08 00 AD 98 80 0D 01 02 00 00 00 00 BE [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:09]Read from MH i2c: E2 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 03 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 03 00 AD 98 00 90 00 B9 [13:07:09]RAPDU: 90 00 [13:07:09]wFMCommunicate OK [13:07:09]wFMCommunicate request_size=255 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EB 02 00 35 04 06 00 B4 [13:07:09]Write to MH i2c: E2 02 01 AE 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EB 02 00 35 04 06 00 B4 00 00 2D [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:10]Read from MH i2c: E2 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 03 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 03 00 AE 98 00 90 00 BA [13:07:10]RAPDU: 90 00 [13:07:10]wFMCommunicate OK [13:07:10]wFMCommunicate request_size=10 [13:07:10]MH_SAM_APDU [13:07:10]CAPDU: 80 0D 02 02 05 46 BD 5A 02 8B [13:07:10]Write to MH i2c: E2 0D 00 AF 98 80 0D 02 02 05 00 46 BD 5A 02 8B 00 00 B5 [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:10]Read from MH i2c: E2 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 03 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 03 00 AF 98 00 90 00 BB [13:07:10]RAPDU: 90 00 [13:07:10]wFMCommunicate OK [13:07:10]wFMCommunicate request_size=4 [13:07:10]MH_SAM_APDU [13:07:10]CAPDU: 80 0D 03 02 [13:07:10]Write to MH i2c: E2 08 00 B0 98 80 0D 03 02 00 00 00 00 C3 [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:10]Read from MH i2c: E2 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 0B 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 0B 00 B0 98 00 6E B6 98 B8 15 36 37 92 90 00 4C [13:07:10]RAPDU: 6E B6 98 B8 15 36 37 92 90 00 [13:07:10]wFMCommunicate OK [13:07:10]SAM_PROTO_SignData done [13:07:10]FM_MakeSignedData done [13:07:10]CreateOFDProtocolMessage [13:07:10]wFMCommunicate request_size=4 [13:07:10]MH_SAM_APDU [13:07:10]CAPDU: 80 11 00 00 [13:07:10]Write to MH i2c: E2 08 00 B1 98 80 11 00 00 00 00 00 00 C3 [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:10]Read from MH i2c: E2 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 17 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: E2 17 00 B1 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [13:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:07:10]wFMCommunicate OK [13:07:10]CreateOFDProtocolMessage done [13:07:10]OFDSenderStorePacket 191412 [13:07:10]StoreOFDPacket docnum=191412 [13:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 39 D5 07 01 4F 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EB 02 00 35 04 06 00 B4 46 BD 5A 02 8B 6E B6 98 B8 15 36 37 92 [13:07:10]CheckFolder [13:07:10]dirname=/storage/ofd_packets [13:07:10]CheckFolder done [13:07:10]ProducePacketName [13:07:10]name=ofd_packets/00191412 [13:07:10]NVStorageSaveData ofd_packets/00191412 [13:07:10]File name is /storage/ofd_packets/00191412 [13:07:10]Write 301 bytes [13:07:10]NVStorageSaveData done [13:07:10]OFDSenderStorePacket done [13:07:10]KKMCreateOFDPacket done [13:07:10]NVStorageSaveData kkm_last_timestamp [13:07:10]File name is /storage/kkm_last_timestamp [13:07:10]Write 4 bytes [13:07:10]NVStorageSaveData done [13:07:10]ExternCall_PrintAddStr [13:07:10]wPrintStart [13:07:10]Write to MH i2c: 01 00 00 B2 98 4A [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 07 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 07 00 B2 98 00 00 00 00 00 FF 0F 5F [13:07:10]RasterBufferAndPrint [13:07:10]line Счет N : (1)30707 [13:07:10]line ИНН: 02508201610067 [13:07:10]line Контрольно-Кассовый Чек [13:07:10]line ПРОДАЖА [13:07:10]line ТРК (МРК, ГНК) : 12 [13:07:10]line Товар: 2710124130 [13:07:10]line Аи-92-К-5 [13:07:10]line 10.000 * 0.00 [13:07:10]line = 0.00 [13:07:10]line НДС 12% НСП 1% [13:07:10]line > о реализуемом товаре [13:07:10]line ИТОГО: 0.00 [13:07:10]line НСП 1% : 0.00 [13:07:10]line НДС 12% : 0.00 [13:07:10]line Наличными: 0.00 [13:07:10]line Безнал.: 0.00 [13:07:10]line Место: АЗС № 170 "Партнер Нефть" [13:07:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:07:10]line СНО: Общий режим [13:07:10]line Чек 151 25.10.2024 13:07 [13:07:10]line Смена: 540 ФФД: 1.0 [13:07:10]line ЗНМ: 0300000110 [13:07:10]line РНМ: 0000000000091776 [13:07:10]line Версия ККМ: 001 [13:07:10]line Талоны: Партнер нефть [13:07:10]line 24268 [13:07:10]line ФМ: 0000000000871754 [13:07:10]line ФД: 191412 [13:07:10]line ФПД: 198215917503115 [13:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191412&fm=198215917503115&tin=02508201610067®Number=0000000000091776&sum=0 [13:07:10]written 0, free lines is 4095 [13:07:10]OFD Sender: Processing packet 191412 [packets to send 75, broken 74] [13:07:10]ProducePacketName [13:07:10]name=ofd_packets/00191412 [13:07:10]OFD Sender: To server: pG, [13:07:10]CommunicateWithHost lk.salyk.kg:30040 [13:07:10]ConnectInit lk.salyk.kg [13:07:10]Connected sock=11 [13:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 39 D5 07 01 4F 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 05 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EB 02 00 35 04 06 00 B4 46 BD 5A 02 8B 6E B6 98 B8 15 36 37 92 [13:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 A9 47 00 47 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EB 02 00 F4 03 04 00 D3 3C 1B 67 B6 04 01 00 00 55 00 C7 64 D7 80 47 1D [13:07:10]CommunicateWithHost err = 0 [13:07:10]CheckOFDResponse [13:07:10]1017 (14) - 77093643461234 [13:07:10]1041 (16) - 0000000000871754 [13:07:10]1040 (4) - 191412 [13:07:10]1012 (4) - 25.10.2024 06:38 [13:07:10]1206 (1) - 0 [13:07:10]OFD Sender: Remove packet 191412 [13:07:10]ProducePacketName [13:07:10]name=ofd_packets/00191412 [13:07:10]NVStorageDeleteData [13:07:10]Write to MH i2c: 01 00 00 DC 98 74 [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 07 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: 01 07 00 DC 98 00 00 00 00 00 BB 0C 42 [13:07:10]RasterBufferAndPrint [13:07:10]line [13:07:10]line [13:07:10]line [13:07:10]line [13:07:10]line [13:07:10]written 0, free lines is 3264 [13:07:10]MH_Cut [13:07:10]Write to MH i2c: D1 01 00 E3 98 01 4D [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: D1 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: D1 01 00 [13:07:10]MH_I2C_Read... [13:07:10]Read from MH i2c: D1 01 00 E3 98 00 4C [13:07:10]Write to MH i2c: 01 00 00 E4 98 7C [13:07:10]Write i2c OK [13:07:10]MH_I2C_Read... [13:07:11]OFD Sender: No OFD packet to send [13:07:11]*** Cut start [13:07:11]*** Partial cut [13:07:11]*** CUTSNS_PIN = 1 [13:07:11]*** CUTSNS_PIN = 0 [13:07:11]*** Brake cut motor [13:07:12]Read from MH i2c: 01 [13:07:12]MH_I2C_Read... [13:07:12]*** Stop cut motor [13:07:12]*** Cut end [13:07:12]Read from MH i2c: 01 07 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 07 00 E4 98 00 00 00 00 00 FF 0F 91 [13:07:12]process_action close_receipt done [13:07:12]requested_data is exist [13:07:12]produce_requested_data [13:07:12]requested_item fm.sn is exist - process it [13:07:12]wFMCommunicate request_size=4 [13:07:12]MH_SAM_APDU [13:07:12]CAPDU: 80 11 00 00 [13:07:12]Write to MH i2c: E2 08 00 E5 98 80 11 00 00 00 00 00 00 F7 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:12]Read from MH i2c: E2 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 17 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 17 00 E5 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [13:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:07:12]wFMCommunicate OK [13:07:12]requested_item fd.num is exist - process it [13:07:12]SAM_PROTO_GetFieldsCounters [13:07:12]wFMCommunicate request_size=4 [13:07:12]MH_SAM_APDU [13:07:12]CAPDU: 80 13 00 00 [13:07:12]Write to MH i2c: E2 08 00 E6 98 80 13 00 00 00 00 00 00 FA [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:12]Read from MH i2c: E2 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 62 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 62 00 E6 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [13:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:12]wFMCommunicate OK [13:07:12]SAM_PROTO_GetFieldsCounters done [13:07:12]requested_item shift.num is exist - process it [13:07:12]requested_item shift.opened is exist - process it [13:07:12]req_shift_opened [13:07:12]FM_GetShiftState [13:07:12]SAM_PROTO_GetShiftState [13:07:12]wFMCommunicate request_size=4 [13:07:12]MH_SAM_APDU [13:07:12]CAPDU: 80 13 01 00 [13:07:12]Write to MH i2c: E2 08 00 E7 98 80 13 01 00 00 00 00 00 FC [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:12]Read from MH i2c: E2 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 0E 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 0E 00 E7 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [13:07:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:07:12]wFMCommunicate OK [13:07:12]SAM_PROTO_GetShiftState done [13:07:12]FM_GetShiftState done [13:07:12]req_shift_opened done [13:07:12]requested_item shift.open_date is exist - process it [13:07:12]req_shift_open_date [13:07:12]req_shift_open_date done [13:07:12]produce_requested_data done [13:07:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191412,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:07:12]process_action_free close_receipt [13:07:12]json_value_free [13:07:12]json_value_free done [13:07:12]process_json_proto returns [13:07:12]Send response to host [13:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191412,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:07:12]free response buf [13:07:12]execute_script done [13:07:12]execute_script returns [13:07:12]free content buf [13:07:12]Sock 9.Close socket [13:07:12]Sock 9.Thread stoped [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:44]accept exits with 8 [13:08:44]New connection [13:08:44]New thread 3066817892 created [13:08:44]Thread 3066961252 joined [13:08:44]Waiting for new connection... [13:08:44] Sock 8.Parse request [13:08:44]Sock 8.Check first char [13:08:44]Sock 8.First char is OK [13:08:44]request: POST /json_proto HTTP/1.0 [13:08:44]Method: POST [13:08:44]URL: /json_proto [13:08:44]Method is POST - this is cgi request [13:08:44]url: /json_proto [13:08:44]query_string will be loaded in cgi processing [13:08:44]execute_cgi json_proto POST (null) [13:08:44]execute_cgi path=json_proto method=POST [13:08:44]POST find Content-Length [13:08:44]Host: 172.17.63.131:8080 [13:08:44]Content-Length: 681 [13:08:44]Content-Type: application/json [13:08:44] [13:08:44]POST finish read [13:08:44]Found Content-Length = 681 [13:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:44]execute_script... [13:08: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)30708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:44]POST & json_proto [13:08:44]process_json_proto [13:08:44]json parsed OK: [13:08:44]protocol is kg_v1.0 [13:08:44]action value=close_receipt [13:08:44]process_action close_receipt [13:08:44]cmd_close_receipt [13:08:44]MH_GetDate [13:08:44]Write to MH i2c: F0 00 00 E8 98 6F [13:08:44]Write i2c OK [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: F0 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: F0 09 00 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: F0 09 00 E8 98 00 65 98 1B 67 22 05 6E 64 F0 [13:08:44]GetLastDocTimeStamp 1729861637 [13:08:44]current date 1729861733 [13:08:44]FM_GetShiftState [13:08:44]SAM_PROTO_GetShiftState [13:08:44]wFMCommunicate request_size=4 [13:08:44]MH_SAM_APDU [13:08:44]CAPDU: 80 13 01 00 [13:08:44]Write to MH i2c: E2 08 00 E9 98 80 13 01 00 00 00 00 00 FE [13:08:44]Write i2c OK [13:08:44]MH_I2C_Read... [13:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:44]Read from MH i2c: E2 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 0E 00 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 0E 00 E9 98 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C1 [13:08:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:08:44]wFMCommunicate OK [13:08:44]SAM_PROTO_GetShiftState done [13:08:44]FM_GetShiftState done [13:08:44]opened in 1729816399 [13:08:44]opened+sec_in_day 1729902799 [13:08:44]quantity*price = 100015 [13:08:44]sum+1 = 100017 [13:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 152 25.10.2024 13:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191413 ФПД: 153724498367487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191413&fm=153724498367487&tin=02508201610067®Number=0000000000091776&sum=100000 [13:08:45]StoreToDocumentArchive [13:08:45]shift 540 fd 191413 [13:08:45]save to /storage/0540/doc_00191413 [13:08:45]save last doc name /storage/0540/doc_00191413 to /storage/kkm_last_doc_name [13:08:45]save OK [13:08:45]Clear old archive folders... [13:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:45]tlvbuf is 01831100 [13:08:45]SAM_PROTO_ClearQueue [13:08:45]wFMCommunicate request_size=4 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 09 00 00 [13:08:45]Write to MH i2c: E2 08 00 F6 98 80 09 00 00 00 00 00 00 00 [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 F6 98 00 90 00 02 [13:08:45]RAPDU: 90 00 [13:08:45]wFMCommunicate OK [13:08:45]SAM_PROTO_ClearQueue done [13:08:45]KKMCreateOFDPacket [13:08:45]OFDProtocolAddRootSTLVToBuf [13:08:45]FM_MakeSignedData [13:08:45]FM_MakeSignedData [13:08:45]SAM_PROTO_SignData [13:08:45]wFMCommunicate request_size=4 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 0D 01 02 [13:08:45]Write to MH i2c: E2 08 00 F7 98 80 0D 01 02 00 00 00 00 08 [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 F7 98 00 90 00 03 [13:08:45]RAPDU: 90 00 [13:08:45]wFMCommunicate OK [13:08:45]wFMCommunicate request_size=255 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EB 02 00 35 04 06 00 8B [13:08:45]Write to MH i2c: E2 02 01 F8 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EB 02 00 35 04 06 00 8B 00 00 F8 [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 F8 98 00 90 00 04 [13:08:45]RAPDU: 90 00 [13:08:45]wFMCommunicate OK [13:08:45]wFMCommunicate request_size=10 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 0D 02 02 05 CF C6 1E 53 FF [13:08:45]Write to MH i2c: E2 0D 00 F9 98 80 0D 02 02 05 00 CF C6 1E 53 FF 00 00 1A [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 03 00 F9 98 00 90 00 05 [13:08:45]RAPDU: 90 00 [13:08:45]wFMCommunicate OK [13:08:45]wFMCommunicate request_size=4 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 0D 03 02 [13:08:45]Write to MH i2c: E2 08 00 FA 98 80 0D 03 02 00 00 00 00 0D [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 0B 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 0B 00 FA 98 00 F5 03 91 75 D2 45 1F F2 90 00 34 [13:08:45]RAPDU: F5 03 91 75 D2 45 1F F2 90 00 [13:08:45]wFMCommunicate OK [13:08:45]SAM_PROTO_SignData done [13:08:45]FM_MakeSignedData done [13:08:45]CreateOFDProtocolMessage [13:08:45]wFMCommunicate request_size=4 [13:08:45]MH_SAM_APDU [13:08:45]CAPDU: 80 11 00 00 [13:08:45]Write to MH i2c: E2 08 00 FB 98 80 11 00 00 00 00 00 00 0D [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:45]Read from MH i2c: E2 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 17 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: E2 17 00 FB 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [13:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:08:45]wFMCommunicate OK [13:08:45]CreateOFDProtocolMessage done [13:08:45]OFDSenderStorePacket 191413 [13:08:45]StoreOFDPacket docnum=191413 [13:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 09 07 01 DB FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EB 02 00 35 04 06 00 8B CF C6 1E 53 FF F5 03 91 75 D2 45 1F F2 [13:08:45]CheckFolder [13:08:45]dirname=/storage/ofd_packets [13:08:45]CheckFolder done [13:08:45]ProducePacketName [13:08:45]name=ofd_packets/00191413 [13:08:45]NVStorageSaveData ofd_packets/00191413 [13:08:45]File name is /storage/ofd_packets/00191413 [13:08:45]Write 301 bytes [13:08:45]NVStorageSaveData done [13:08:45]OFDSenderStorePacket done [13:08:45]KKMCreateOFDPacket done [13:08:45]NVStorageSaveData kkm_last_timestamp [13:08:45]File name is /storage/kkm_last_timestamp [13:08:45]Write 4 bytes [13:08:45]NVStorageSaveData done [13:08:45]ExternCall_PrintAddStr [13:08:45]wPrintStart [13:08:45]Write to MH i2c: 01 00 00 FC 98 94 [13:08:45]Write i2c OK [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: 01 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: 01 07 00 [13:08:45]MH_I2C_Read... [13:08:45]Read from MH i2c: 01 07 00 FC 98 00 00 00 00 00 FF 0F A9 [13:08:45]RasterBufferAndPrint [13:08:45]line Счет N : (1)30708 [13:08:45]line ИНН: 02508201610067 [13:08:45]line Контрольно-Кассовый Чек [13:08:45]line ПРОДАЖА [13:08:45]line ТРК (МРК, ГНК) : 12 [13:08:45]line Товар: 2710124130 [13:08:45]line Аи-92-К-5 [13:08:45]line 14.950 * 66.90 [13:08:45]line = 1000.16 [13:08:45]line НДС 12% НСП 1% [13:08:45]line > о реализуемом товаре [13:08:45]line ОКРУГЛЕНИЕ: -0.16 [13:08:45]line ИТОГО: 1000.00 [13:08:45]line Внесено: 1000.00 [13:08:45]line СДАЧА: 0.00 [13:08:45]line НСП 1% : 8.85 [13:08:45]line НДС 12% : 106.21 [13:08:45]line Наличными: 1000.00 [13:08:45]line Безнал.: 0.00 [13:08:45]line Место: АЗС № 170 "Партнер Нефть" [13:08:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:08:45]line СНО: Общий режим [13:08:45]line Чек 152 25.10.2024 13:08 [13:08:45]line Смена: 540 ФФД: 1.0 [13:08:45]line ЗНМ: 0300000110 [13:08:45]line РНМ: 0000000000091776 [13:08:45]line Версия ККМ: 001 [13:08:45]line ФМ: 0000000000871754 [13:08:45]line ФД: 191413 [13:08:45]line ФПД: 153724498367487 [13:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T130853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191413&fm=153724498367487&tin=02508201610067®Number=0000000000091776&sum=100000 [13:08:46]OFD Sender: Processing packet 191413 [packets to send 75, broken 74] [13:08:46]ProducePacketName [13:08:46]name=ofd_packets/00191413 [13:08:46]OFD Sender: To server: pG, [13:08:46]CommunicateWithHost lk.salyk.kg:30040 [13:08:46]ConnectInit lk.salyk.kg [13:08:46]written 0, free lines is 4095 [13:08:46]Connected sock=10 [13:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 09 07 01 DB FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 65 98 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EB 02 00 35 04 06 00 8B CF C6 1E 53 FF F5 03 91 75 D2 45 1F F2 [13:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 30 47 00 74 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EB 02 00 F4 03 04 00 33 3D 1B 67 B6 04 01 00 00 C0 11 94 66 5E E8 6C 0E [13:08:46]CommunicateWithHost err = 0 [13:08:46]CheckOFDResponse [13:08:46]1017 (14) - 77093643461234 [13:08:46]1041 (16) - 0000000000871754 [13:08:46]1040 (4) - 191413 [13:08:46]1012 (4) - 25.10.2024 06:39 [13:08:46]1206 (1) - 0 [13:08:46]OFD Sender: Remove packet 191413 [13:08:46]ProducePacketName [13:08:46]name=ofd_packets/00191413 [13:08:46]NVStorageDeleteData [13:08:46]Write to MH i2c: 01 00 00 27 99 C0 [13:08:46]Write i2c OK [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: 01 [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: 01 07 00 [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: 01 07 00 27 99 00 00 00 00 00 B5 0C 88 [13:08:46]RasterBufferAndPrint [13:08:46]line [13:08:46]line [13:08:46]line [13:08:46]line [13:08:46]line [13:08:46]written 0, free lines is 3257 [13:08:46]MH_Cut [13:08:46]Write to MH i2c: D1 01 00 2E 99 01 99 [13:08:46]Write i2c OK [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: D1 [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: D1 01 00 [13:08:46]MH_I2C_Read... [13:08:46]Read from MH i2c: D1 01 00 2E 99 00 98 [13:08:46]Write to MH i2c: 01 00 00 2F 99 C8 [13:08:46]Write i2c OK [13:08:46]MH_I2C_Read... [13:08:47]OFD Sender: No OFD packet to send [13:08:47]*** Cut start [13:08:47]*** Partial cut [13:08:47]*** CUTSNS_PIN = 1 [13:08:47]*** CUTSNS_PIN = 0 [13:08:47]*** Brake cut motor [13:08:48]Read from MH i2c: 01 [13:08:48]MH_I2C_Read... [13:08:48]*** Stop cut motor [13:08:48]*** Cut end [13:08:48]Read from MH i2c: 01 07 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: 01 07 00 2F 99 00 00 00 00 00 FF 0F DD [13:08:48]process_action close_receipt done [13:08:48]requested_data is exist [13:08:48]produce_requested_data [13:08:48]requested_item fm.sn is exist - process it [13:08:48]wFMCommunicate request_size=4 [13:08:48]MH_SAM_APDU [13:08:48]CAPDU: 80 11 00 00 [13:08:48]Write to MH i2c: E2 08 00 30 99 80 11 00 00 00 00 00 00 43 [13:08:48]Write i2c OK [13:08:48]MH_I2C_Read... [13:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:48]Read from MH i2c: E2 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 17 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 17 00 30 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [13:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:08:48]wFMCommunicate OK [13:08:48]requested_item fd.num is exist - process it [13:08:48]SAM_PROTO_GetFieldsCounters [13:08:48]wFMCommunicate request_size=4 [13:08:48]MH_SAM_APDU [13:08:48]CAPDU: 80 13 00 00 [13:08:48]Write to MH i2c: E2 08 00 31 99 80 13 00 00 00 00 00 00 46 [13:08:48]Write i2c OK [13:08:48]MH_I2C_Read... [13:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:48]Read from MH i2c: E2 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 62 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 62 00 31 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:48]wFMCommunicate OK [13:08:48]SAM_PROTO_GetFieldsCounters done [13:08:48]requested_item shift.num is exist - process it [13:08:48]requested_item shift.opened is exist - process it [13:08:48]req_shift_opened [13:08:48]FM_GetShiftState [13:08:48]SAM_PROTO_GetShiftState [13:08:48]wFMCommunicate request_size=4 [13:08:48]MH_SAM_APDU [13:08:48]CAPDU: 80 13 01 00 [13:08:48]Write to MH i2c: E2 08 00 32 99 80 13 01 00 00 00 00 00 48 [13:08:48]Write i2c OK [13:08:48]MH_I2C_Read... [13:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:48]Read from MH i2c: E2 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 32 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [13:08:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:08:48]wFMCommunicate OK [13:08:48]SAM_PROTO_GetShiftState done [13:08:48]FM_GetShiftState done [13:08:48]req_shift_opened done [13:08:48]requested_item shift.open_date is exist - process it [13:08:48]req_shift_open_date [13:08:48]req_shift_open_date done [13:08:48]produce_requested_data done [13:08:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191413,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:08:48]process_action_free close_receipt [13:08:48]json_value_free [13:08:48]json_value_free done [13:08:48]process_json_proto returns [13:08:48]Send response to host [13:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191413,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:08:48]free response buf [13:08:48]execute_script done [13:08:48]execute_script returns [13:08:48]free content buf [13:08:48]Sock 8.Close socket [13:08:48]Sock 8.Thread stoped [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:50]accept exits with 9 [13:12:50]New connection [13:12:50]New thread 3066961252 created [13:12:50]Thread 3066817892 joined [13:12:50]Waiting for new connection... [13:12:50] Sock 9.Parse request [13:12:50]Sock 9.Check first char [13:12:50]Sock 9.First char is OK [13:12:50]request: POST /json_proto HTTP/1.0 [13:12:50]Method: POST [13:12:50]URL: /json_proto [13:12:50]Method is POST - this is cgi request [13:12:50]url: /json_proto [13:12:50]query_string will be loaded in cgi processing [13:12:50]execute_cgi json_proto POST (null) [13:12:50]execute_cgi path=json_proto method=POST [13:12:50]POST find Content-Length [13:12:50]Host: 172.17.63.131:8080 [13:12:50]Content-Length: 676 [13:12:50]Content-Type: application/json [13:12:50] [13:12:50]POST finish read [13:12:50]Found Content-Length = 676 [13:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:50]execute_script... [13:12: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)30709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:50]POST & json_proto [13:12:50]process_json_proto [13:12:50]json parsed OK: [13:12:50]protocol is kg_v1.0 [13:12:50]action value=close_receipt [13:12:50]process_action close_receipt [13:12:50]cmd_close_receipt [13:12:50]MH_GetDate [13:12:50]Write to MH i2c: F0 00 00 33 99 BB [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 09 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 09 00 33 99 00 5B 99 1B 67 22 05 6E 64 33 [13:12:50]GetLastDocTimeStamp 1729861733 [13:12:50]current date 1729861979 [13:12:50]FM_GetShiftState [13:12:50]SAM_PROTO_GetShiftState [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 13 01 00 [13:12:50]Write to MH i2c: E2 08 00 34 99 80 13 01 00 00 00 00 00 4A [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0E 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0E 00 34 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [13:12:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_GetShiftState done [13:12:50]FM_GetShiftState done [13:12:50]opened in 1729816399 [13:12:50]opened+sec_in_day 1729902799 [13:12:50]quantity*price = 45023 [13:12:50]sum+1 = 45025 [13:12:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 153 25.10.2024 13:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191414 ФПД: 147418798989834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191414&fm=147418798989834&tin=02508201610067®Number=0000000000091776&sum=45000 [13:12:51]StoreToDocumentArchive [13:12:51]shift 540 fd 191414 [13:12:51]save to /storage/0540/doc_00191414 [13:12:51]save last doc name /storage/0540/doc_00191414 to /storage/kkm_last_doc_name [13:12:51]save OK [13:12:51]Clear old archive folders... [13:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:51]tlvbuf is 016CEB70 [13:12:51]SAM_PROTO_ClearQueue [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 09 00 00 [13:12:51]Write to MH i2c: E2 08 00 41 99 80 09 00 00 00 00 00 00 4C [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 41 99 00 90 00 4E [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]SAM_PROTO_ClearQueue done [13:12:51]KKMCreateOFDPacket [13:12:51]OFDProtocolAddRootSTLVToBuf [13:12:51]FM_MakeSignedData [13:12:51]FM_MakeSignedData [13:12:51]SAM_PROTO_SignData [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 01 02 [13:12:51]Write to MH i2c: E2 08 00 42 99 80 0D 01 02 00 00 00 00 54 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 42 99 00 90 00 4F [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=255 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 99 00 00 00 F4 03 04 00 5B 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EB 02 00 35 04 06 00 86 [13:12:51]Write to MH i2c: E2 02 01 43 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 99 00 00 00 F4 03 04 00 5B 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EB 02 00 35 04 06 00 86 00 00 24 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 43 99 00 90 00 50 [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=10 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 02 02 05 13 9D 25 A2 0A [13:12:51]Write to MH i2c: E2 0D 00 44 99 80 0D 02 02 05 00 13 9D 25 A2 0A 00 00 E2 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 44 99 00 90 00 51 [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 03 02 [13:12:51]Write to MH i2c: E2 08 00 45 99 80 0D 03 02 00 00 00 00 59 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 0B 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 0B 00 45 99 00 AF 17 9F 56 E2 9D 08 E0 90 00 7C [13:12:52]RAPDU: AF 17 9F 56 E2 9D 08 E0 90 00 [13:12:52]wFMCommunicate OK [13:12:52]SAM_PROTO_SignData done [13:12:52]FM_MakeSignedData done [13:12:52]CreateOFDProtocolMessage [13:12:52]wFMCommunicate request_size=4 [13:12:52]MH_SAM_APDU [13:12:52]CAPDU: 80 11 00 00 [13:12:52]Write to MH i2c: E2 08 00 46 99 80 11 00 00 00 00 00 00 59 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 17 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 17 00 46 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [13:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:52]wFMCommunicate OK [13:12:52]CreateOFDProtocolMessage done [13:12:52]OFDSenderStorePacket 191414 [13:12:52]StoreOFDPacket docnum=191414 [13:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 CA 07 01 AA 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 99 00 00 00 F4 03 04 00 5B 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EB 02 00 35 04 06 00 86 13 9D 25 A2 0A AF 17 9F 56 E2 9D 08 E0 [13:12:52]CheckFolder [13:12:52]dirname=/storage/ofd_packets [13:12:52]CheckFolder done [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00191414 [13:12:52]NVStorageSaveData ofd_packets/00191414 [13:12:52]File name is /storage/ofd_packets/00191414 [13:12:52]Write 301 bytes [13:12:52]NVStorageSaveData done [13:12:52]OFDSenderStorePacket done [13:12:52]KKMCreateOFDPacket done [13:12:52]NVStorageSaveData kkm_last_timestamp [13:12:52]File name is /storage/kkm_last_timestamp [13:12:52]Write 4 bytes [13:12:52]NVStorageSaveData done [13:12:52]ExternCall_PrintAddStr [13:12:52]wPrintStart [13:12:52]Write to MH i2c: 01 00 00 47 99 E0 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 47 99 00 00 00 00 00 FF 0F F5 [13:12:52]RasterBufferAndPrint [13:12:52]line Счет N : (1)30709 [13:12:52]line ИНН: 02508201610067 [13:12:52]line Контрольно-Кассовый Чек [13:12:52]line ПРОДАЖА [13:12:52]line ТРК (МРК, ГНК) : 12 [13:12:52]line Товар: 2710124130 [13:12:52]line Аи-92-К-5 [13:12:52]line 6.730 * 66.90 [13:12:52]line = 450.24 [13:12:52]line НДС 12% НСП 1% [13:12:52]line > о реализуемом товаре [13:12:52]line ОКРУГЛЕНИЕ: -0.24 [13:12:52]line ИТОГО: 450.00 [13:12:52]line Внесено: 450.00 [13:12:52]line СДАЧА: 0.00 [13:12:52]line НСП 1% : 3.98 [13:12:52]line НДС 12% : 47.81 [13:12:52]line Наличными: 450.00 [13:12:52]line Безнал.: 0.00 [13:12:52]line Место: АЗС № 170 "Партнер Нефть" [13:12:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:12:52]line СНО: Общий режим [13:12:52]line Чек 153 25.10.2024 13:12 [13:12:52]line Смена: 540 ФФД: 1.0 [13:12:52]line ЗНМ: 0300000110 [13:12:52]line РНМ: 0000000000091776 [13:12:52]line Версия ККМ: 001 [13:12:52]line ФМ: 0000000000871754 [13:12:52]line ФД: 191414 [13:12:52]line ФПД: 147418798989834 [13:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191414&fm=147418798989834&tin=02508201610067®Number=0000000000091776&sum=45000 [13:12:52]OFD Sender: Processing packet 191414 [packets to send 75, broken 74] [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00191414 [13:12:52]OFD Sender: To server: pG, [13:12:52]CommunicateWithHost lk.salyk.kg:30040 [13:12:52]ConnectInit lk.salyk.kg [13:12:52]written 0, free lines is 4095 [13:12:52]Connected sock=10 [13:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 CA 07 01 AA 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 99 00 00 00 F4 03 04 00 5B 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EB 02 00 35 04 06 00 86 13 9D 25 A2 0A AF 17 9F 56 E2 9D 08 E0 [13:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 5F 47 00 5B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EB 02 00 F4 03 04 00 2A 3E 1B 67 B6 04 01 00 00 1E D8 0D 2D F2 F0 E8 05 [13:12:52]CommunicateWithHost err = 0 [13:12:52]CheckOFDResponse [13:12:52]1017 (14) - 77093643461234 [13:12:52]1041 (16) - 0000000000871754 [13:12:52]1040 (4) - 191414 [13:12:52]1012 (4) - 25.10.2024 06:43 [13:12:52]1206 (1) - 0 [13:12:52]OFD Sender: Remove packet 191414 [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00191414 [13:12:52]NVStorageDeleteData [13:12:52]Write to MH i2c: 01 00 00 72 99 0B [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 72 99 00 00 00 00 00 B7 0C D5 [13:12:52]RasterBufferAndPrint [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]written 0, free lines is 3265 [13:12:52]MH_Cut [13:12:52]Write to MH i2c: D1 01 00 79 99 01 E4 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 01 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 01 00 79 99 00 E3 [13:12:52]Write to MH i2c: 01 00 00 7A 99 13 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:53]OFD Sender: No OFD packet to send [13:12:53]*** Cut start [13:12:53]*** Partial cut [13:12:53]*** CUTSNS_PIN = 1 [13:12:53]*** CUTSNS_PIN = 0 [13:12:53]*** Brake cut motor [13:12:54]Read from MH i2c: 01 [13:12:54]MH_I2C_Read... [13:12:54]*** Stop cut motor [13:12:54]*** Cut end [13:12:54]Read from MH i2c: 01 07 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 7A 99 00 00 00 00 00 FF 0F 28 [13:12:54]process_action close_receipt done [13:12:54]requested_data is exist [13:12:54]produce_requested_data [13:12:54]requested_item fm.sn is exist - process it [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 11 00 00 [13:12:54]Write to MH i2c: E2 08 00 7B 99 80 11 00 00 00 00 00 00 8E [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 7B 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [13:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:54]wFMCommunicate OK [13:12:54]requested_item fd.num is exist - process it [13:12:54]SAM_PROTO_GetFieldsCounters [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 00 00 [13:12:54]Write to MH i2c: E2 08 00 7C 99 80 13 00 00 00 00 00 00 91 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 62 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 62 00 7C 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [13:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_GetFieldsCounters done [13:12:54]requested_item shift.num is exist - process it [13:12:54]requested_item shift.opened is exist - process it [13:12:54]req_shift_opened [13:12:54]FM_GetShiftState [13:12:54]SAM_PROTO_GetShiftState [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 01 00 [13:12:54]Write to MH i2c: E2 08 00 7D 99 80 13 01 00 00 00 00 00 93 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 7D 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 56 [13:12:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_GetShiftState done [13:12:54]FM_GetShiftState done [13:12:54]req_shift_opened done [13:12:54]requested_item shift.open_date is exist - process it [13:12:54]req_shift_open_date [13:12:54]req_shift_open_date done [13:12:54]produce_requested_data done [13:12:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191414,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:12:54]process_action_free close_receipt [13:12:54]json_value_free [13:12:54]json_value_free done [13:12:54]process_json_proto returns [13:12:54]Send response to host [13:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191414,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:12:54]free response buf [13:12:54]execute_script done [13:12:54]execute_script returns [13:12:54]free content buf [13:12:54]Sock 9.Close socket [13:12:54]Sock 9.Thread stoped [13:12:54]accept exits with 8 [13:12:54]New connection [13:12:54]New thread 3066817892 created [13:12:54]Thread 3066961252 joined [13:12:54]Waiting for new connection... [13:12:54] Sock 8.Parse request [13:12:54]Sock 8.Check first char [13:12:54]Sock 8.First char is OK [13:12:54]request: POST /json_proto HTTP/1.0 [13:12:54]Method: POST [13:12:54]URL: /json_proto [13:12:54]Method is POST - this is cgi request [13:12:54]url: /json_proto [13:12:54]query_string will be loaded in cgi processing [13:12:54]execute_cgi json_proto POST (null) [13:12:54]execute_cgi path=json_proto method=POST [13:12:54]POST find Content-Length [13:12:54]Host: 172.17.63.131:8080 [13:12:54]Content-Length: 676 [13:12:54]Content-Type: application/json [13:12:54] [13:12:54]POST finish read [13:12:54]Found Content-Length = 676 [13:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:54]execute_script... [13:12: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)30710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:54]POST & json_proto [13:12:54]process_json_proto [13:12:54]json parsed OK: [13:12:54]protocol is kg_v1.0 [13:12:54]action value=close_receipt [13:12:54]process_action close_receipt [13:12:54]cmd_close_receipt [13:12:54]MH_GetDate [13:12:54]Write to MH i2c: F0 00 00 7E 99 06 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 09 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 09 00 7E 99 00 60 99 1B 67 22 05 6E 64 83 [13:12:54]GetLastDocTimeStamp 1729861979 [13:12:54]current date 1729861984 [13:12:54]FM_GetShiftState [13:12:54]SAM_PROTO_GetShiftState [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 01 00 [13:12:54]Write to MH i2c: E2 08 00 7F 99 80 13 01 00 00 00 00 00 95 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 7F 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 58 [13:12:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_GetShiftState done [13:12:55]FM_GetShiftState done [13:12:55]opened in 1729816399 [13:12:55]opened+sec_in_day 1729902799 [13:12:55]quantity*price = 40006 [13:12:55]sum+1 = 40007 [13:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 154 25.10.2024 13:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191415 ФПД: 168450764681579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191415&fm=168450764681579&tin=02508201610067®Number=0000000000091776&sum=40000 [13:12:56]StoreToDocumentArchive [13:12:56]shift 540 fd 191415 [13:12:56]save to /storage/0540/doc_00191415 [13:12:56]save last doc name /storage/0540/doc_00191415 to /storage/kkm_last_doc_name [13:12:56]save OK [13:12:56]Clear old archive folders... [13:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:56]tlvbuf is 01614450 [13:12:56]SAM_PROTO_ClearQueue [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 09 00 00 [13:12:56]Write to MH i2c: E2 08 00 8C 99 80 09 00 00 00 00 00 00 97 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 8C 99 00 90 00 99 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_ClearQueue done [13:12:56]KKMCreateOFDPacket [13:12:56]OFDProtocolAddRootSTLVToBuf [13:12:56]FM_MakeSignedData [13:12:56]FM_MakeSignedData [13:12:56]SAM_PROTO_SignData [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 01 02 [13:12:56]Write to MH i2c: E2 08 00 8D 99 80 0D 01 02 00 00 00 00 9F [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 8D 99 00 90 00 9A [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=255 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 60 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EB 02 00 35 04 06 00 99 [13:12:56]Write to MH i2c: E2 02 01 8E 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 60 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EB 02 00 35 04 06 00 99 00 00 72 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 8E 99 00 90 00 9B [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=10 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 05 34 7F FD B1 6B [13:12:56]Write to MH i2c: E2 0D 00 8F 99 80 0D 02 02 05 00 34 7F FD B1 6B 00 00 78 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 8F 99 00 90 00 9C [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 03 02 [13:12:56]Write to MH i2c: E2 08 00 90 99 80 0D 03 02 00 00 00 00 A4 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 90 99 00 C9 B1 F5 62 BF EC 68 A0 90 00 29 [13:12:56]RAPDU: C9 B1 F5 62 BF EC 68 A0 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_SignData done [13:12:56]FM_MakeSignedData done [13:12:56]CreateOFDProtocolMessage [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 11 00 00 [13:12:56]Write to MH i2c: E2 08 00 91 99 80 11 00 00 00 00 00 00 A4 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 91 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [13:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:57]wFMCommunicate OK [13:12:57]CreateOFDProtocolMessage done [13:12:57]OFDSenderStorePacket 191415 [13:12:57]StoreOFDPacket docnum=191415 [13:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F F4 07 01 F4 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 60 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EB 02 00 35 04 06 00 99 34 7F FD B1 6B C9 B1 F5 62 BF EC 68 A0 [13:12:57]CheckFolder [13:12:57]dirname=/storage/ofd_packets [13:12:57]CheckFolder done [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00191415 [13:12:57]NVStorageSaveData ofd_packets/00191415 [13:12:57]File name is /storage/ofd_packets/00191415 [13:12:57]Write 301 bytes [13:12:57]NVStorageSaveData done [13:12:57]OFDSenderStorePacket done [13:12:57]KKMCreateOFDPacket done [13:12:57]NVStorageSaveData kkm_last_timestamp [13:12:57]File name is /storage/kkm_last_timestamp [13:12:57]Write 4 bytes [13:12:57]NVStorageSaveData done [13:12:57]ExternCall_PrintAddStr [13:12:57]wPrintStart [13:12:57]Write to MH i2c: 01 00 00 92 99 2B [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 92 99 00 00 00 00 00 FF 0F 40 [13:12:57]RasterBufferAndPrint [13:12:57]line Счет N : (1)30710 [13:12:57]line ИНН: 02508201610067 [13:12:57]line Контрольно-Кассовый Чек [13:12:57]line ПРОДАЖА [13:12:57]line ТРК (МРК, ГНК) : 21 [13:12:57]line Товар: 2710124130 [13:12:57]line Аи-92-К-5 [13:12:57]line 5.980 * 66.90 [13:12:57]line = 400.06 [13:12:57]line НДС 12% НСП 1% [13:12:57]line > о реализуемом товаре [13:12:57]line ОКРУГЛЕНИЕ: -0.06 [13:12:57]line ИТОГО: 400.00 [13:12:57]line Внесено: 400.00 [13:12:57]line СДАЧА: 0.00 [13:12:57]line НСП 1% : 3.54 [13:12:57]line НДС 12% : 42.48 [13:12:57]line Наличными: 400.00 [13:12:57]line Безнал.: 0.00 [13:12:57]line Место: АЗС № 170 "Партнер Нефть" [13:12:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:12:57]line СНО: Общий режим [13:12:57]line Чек 154 25.10.2024 13:13 [13:12:57]line Смена: 540 ФФД: 1.0 [13:12:57]line ЗНМ: 0300000110 [13:12:57]line РНМ: 0000000000091776 [13:12:57]line Версия ККМ: 001 [13:12:57]line ФМ: 0000000000871754 [13:12:57]line ФД: 191415 [13:12:57]line ФПД: 168450764681579 [13:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191415&fm=168450764681579&tin=02508201610067®Number=0000000000091776&sum=40000 [13:12:57]OFD Sender: Processing packet 191415 [packets to send 75, broken 74] [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00191415 [13:12:57]OFD Sender: To server: pG, [13:12:57]CommunicateWithHost lk.salyk.kg:30040 [13:12:57]ConnectInit lk.salyk.kg [13:12:57]written 0, free lines is 4095 [13:12:57]Connected sock=10 [13:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F F4 07 01 F4 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 60 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EB 02 00 35 04 06 00 99 34 7F FD B1 6B C9 B1 F5 62 BF EC 68 A0 [13:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 64 EB 47 00 0C 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 31 37 35 34 10 04 04 00 B7 EB 02 00 F4 03 04 00 2F 3E 1B 67 B6 04 01 00 00 D4 1B E9 64 9E E6 91 D4 [13:12:57]CommunicateWithHost err = 0 [13:12:57]CheckOFDResponse [13:12:57]1017 (14) - 77093643461234 [13:12:57]1041 (16) - 0000000000871754 [13:12:57]1040 (4) - 191415 [13:12:57]1012 (4) - 25.10.2024 06:43 [13:12:57]1206 (1) - 0 [13:12:57]OFD Sender: Remove packet 191415 [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00191415 [13:12:57]NVStorageDeleteData [13:12:57]Write to MH i2c: 01 00 00 BD 99 56 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 BD 99 00 00 00 00 00 CD 0C 36 [13:12:57]RasterBufferAndPrint [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]written 0, free lines is 3293 [13:12:57]MH_Cut [13:12:57]Write to MH i2c: D1 01 00 C4 99 01 2F [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 C4 99 00 2E [13:12:57]Write to MH i2c: 01 00 00 C5 99 5E [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:58]OFD Sender: No OFD packet to send [13:12:58]*** Cut start [13:12:58]*** Partial cut [13:12:58]*** CUTSNS_PIN = 1 [13:12:58]*** CUTSNS_PIN = 0 [13:12:58]*** Brake cut motor [13:12:59]Read from MH i2c: 01 [13:12:59]MH_I2C_Read... [13:12:59]*** Stop cut motor [13:12:59]*** Cut end [13:12:59]Read from MH i2c: 01 07 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 C5 99 00 00 00 00 00 FF 0F 73 [13:12:59]process_action close_receipt done [13:12:59]requested_data is exist [13:12:59]produce_requested_data [13:12:59]requested_item fm.sn is exist - process it [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 11 00 00 [13:12:59]Write to MH i2c: E2 08 00 C6 99 80 11 00 00 00 00 00 00 D9 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 C6 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [13:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:59]wFMCommunicate OK [13:12:59]requested_item fd.num is exist - process it [13:12:59]SAM_PROTO_GetFieldsCounters [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 00 00 [13:12:59]Write to MH i2c: E2 08 00 C7 99 80 13 00 00 00 00 00 00 DC [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 C7 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetFieldsCounters done [13:12:59]requested_item shift.num is exist - process it [13:12:59]requested_item shift.opened is exist - process it [13:12:59]req_shift_opened [13:12:59]FM_GetShiftState [13:12:59]SAM_PROTO_GetShiftState [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 01 00 [13:12:59]Write to MH i2c: E2 08 00 C8 99 80 13 01 00 00 00 00 00 DE [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:59]Read from MH i2c: E2 0E 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 C8 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A1 [13:12:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetShiftState done [13:12:59]FM_GetShiftState done [13:12:59]req_shift_opened done [13:12:59]requested_item shift.open_date is exist - process it [13:12:59]req_shift_open_date [13:12:59]req_shift_open_date done [13:12:59]produce_requested_data done [13:12:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191415,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:12:59]process_action_free close_receipt [13:12:59]json_value_free [13:12:59]json_value_free done [13:12:59]process_json_proto returns [13:12:59]Send response to host [13:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191415,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:12:59]free response buf [13:12:59]execute_script done [13:12:59]execute_script returns [13:12:59]free content buf [13:12:59]Sock 8.Close socket [13:12:59]Sock 8.Thread stoped [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:22]accept exits with 9 [13:15:22]New connection [13:15:22]New thread 3066961252 created [13:15:22]Thread 3066817892 joined [13:15:22]Waiting for new connection... [13:15:22] Sock 9.Parse request [13:15:22]Sock 9.Check first char [13:15:22]Sock 9.First char is OK [13:15:22]request: POST /json_proto HTTP/1.0 [13:15:22]Method: POST [13:15:22]URL: /json_proto [13:15:22]Method is POST - this is cgi request [13:15:22]url: /json_proto [13:15:22]query_string will be loaded in cgi processing [13:15:22]execute_cgi json_proto POST (null) [13:15:22]execute_cgi path=json_proto method=POST [13:15:22]POST find Content-Length [13:15:22]Host: 172.17.63.131:8080 [13:15:22]Content-Length: 676 [13:15:22]Content-Type: application/json [13:15:22] [13:15:22]POST finish read [13:15:22]Found Content-Length = 676 [13:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:22]execute_script... [13:15: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)30711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:22]POST & json_proto [13:15:22]process_json_proto [13:15:22]json parsed OK: [13:15:22]protocol is kg_v1.0 [13:15:22]action value=close_receipt [13:15:22]process_action close_receipt [13:15:22]cmd_close_receipt [13:15:22]MH_GetDate [13:15:22]Write to MH i2c: F0 00 00 C9 99 51 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: F0 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: F0 09 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: F0 09 00 C9 99 00 F3 99 1B 67 22 05 6E 64 61 [13:15:22]GetLastDocTimeStamp 1729861984 [13:15:22]current date 1729862131 [13:15:22]FM_GetShiftState [13:15:22]SAM_PROTO_GetShiftState [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 13 01 00 [13:15:22]Write to MH i2c: E2 08 00 CA 99 80 13 01 00 00 00 00 00 E0 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 CA 99 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A3 [13:15:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetShiftState done [13:15:22]FM_GetShiftState done [13:15:22]opened in 1729816399 [13:15:22]opened+sec_in_day 1729902799 [13:15:22]quantity*price = 50041 [13:15:22]sum+1 = 50042 [13:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 155 25.10.2024 13:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191416 ФПД: 244857961355360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131531&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191416&fm=244857961355360&tin=02508201610067®Number=0000000000091776&sum=50000 [13:15:23]StoreToDocumentArchive [13:15:23]shift 540 fd 191416 [13:15:23]save to /storage/0540/doc_00191416 [13:15:23]save last doc name /storage/0540/doc_00191416 to /storage/kkm_last_doc_name [13:15:23]save OK [13:15:23]Clear old archive folders... [13:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:23]tlvbuf is 01600C50 [13:15:23]SAM_PROTO_ClearQueue [13:15:23]wFMCommunicate request_size=4 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 09 00 00 [13:15:23]Write to MH i2c: E2 08 00 D7 99 80 09 00 00 00 00 00 00 E2 [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 D7 99 00 90 00 E4 [13:15:23]RAPDU: 90 00 [13:15:23]wFMCommunicate OK [13:15:23]SAM_PROTO_ClearQueue done [13:15:23]KKMCreateOFDPacket [13:15:23]OFDProtocolAddRootSTLVToBuf [13:15:23]FM_MakeSignedData [13:15:23]FM_MakeSignedData [13:15:23]SAM_PROTO_SignData [13:15:23]wFMCommunicate request_size=4 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 0D 01 02 [13:15:23]Write to MH i2c: E2 08 00 D8 99 80 0D 01 02 00 00 00 00 EA [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 D8 99 00 90 00 E5 [13:15:23]RAPDU: 90 00 [13:15:23]wFMCommunicate OK [13:15:23]wFMCommunicate request_size=255 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 F3 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EB 02 00 35 04 06 00 DE [13:15:23]Write to MH i2c: E2 02 01 D9 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 F3 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EB 02 00 35 04 06 00 DE 00 00 C8 [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 D9 99 00 90 00 E6 [13:15:23]RAPDU: 90 00 [13:15:23]wFMCommunicate OK [13:15:23]wFMCommunicate request_size=10 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 0D 02 02 05 B2 6F CE 98 60 [13:15:23]Write to MH i2c: E2 0D 00 DA 99 80 0D 02 02 05 00 B2 6F CE 98 60 00 00 DE [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 03 00 DA 99 00 90 00 E7 [13:15:23]RAPDU: 90 00 [13:15:23]wFMCommunicate OK [13:15:23]wFMCommunicate request_size=4 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 0D 03 02 [13:15:23]Write to MH i2c: E2 08 00 DB 99 80 0D 03 02 00 00 00 00 EF [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0B 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0B 00 DB 99 00 CA 87 F0 79 90 1D DE 39 90 00 6E [13:15:24]RAPDU: CA 87 F0 79 90 1D DE 39 90 00 [13:15:24]wFMCommunicate OK [13:15:24]SAM_PROTO_SignData done [13:15:24]FM_MakeSignedData done [13:15:24]CreateOFDProtocolMessage [13:15:24]wFMCommunicate request_size=4 [13:15:24]MH_SAM_APDU [13:15:24]CAPDU: 80 11 00 00 [13:15:24]Write to MH i2c: E2 08 00 DC 99 80 11 00 00 00 00 00 00 EF [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 17 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 17 00 DC 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [13:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:24]wFMCommunicate OK [13:15:24]CreateOFDProtocolMessage done [13:15:24]OFDSenderStorePacket 191416 [13:15:24]StoreOFDPacket docnum=191416 [13:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 98 07 01 54 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 F3 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EB 02 00 35 04 06 00 DE B2 6F CE 98 60 CA 87 F0 79 90 1D DE 39 [13:15:24]CheckFolder [13:15:24]dirname=/storage/ofd_packets [13:15:24]CheckFolder done [13:15:24]ProducePacketName [13:15:24]name=ofd_packets/00191416 [13:15:24]NVStorageSaveData ofd_packets/00191416 [13:15:24]File name is /storage/ofd_packets/00191416 [13:15:24]Write 301 bytes [13:15:24]NVStorageSaveData done [13:15:24]OFDSenderStorePacket done [13:15:24]KKMCreateOFDPacket done [13:15:24]NVStorageSaveData kkm_last_timestamp [13:15:24]File name is /storage/kkm_last_timestamp [13:15:24]Write 4 bytes [13:15:24]NVStorageSaveData done [13:15:24]ExternCall_PrintAddStr [13:15:24]wPrintStart [13:15:24]Write to MH i2c: 01 00 00 DD 99 76 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 07 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 07 00 DD 99 00 00 00 00 00 FF 0F 8B [13:15:24]RasterBufferAndPrint [13:15:24]line Счет N : (1)30711 [13:15:24]line ИНН: 02508201610067 [13:15:24]line Контрольно-Кассовый Чек [13:15:24]line ПРОДАЖА [13:15:24]line ТРК (МРК, ГНК) : 21 [13:15:24]line Товар: 2710124130 [13:15:24]line Аи-92-К-5 [13:15:24]line 7.480 * 66.90 [13:15:24]line = 500.41 [13:15:24]line НДС 12% НСП 1% [13:15:24]line > о реализуемом товаре [13:15:24]line ОКРУГЛЕНИЕ: -0.41 [13:15:24]line ИТОГО: 500.00 [13:15:24]line Внесено: 500.00 [13:15:24]line СДАЧА: 0.00 [13:15:24]line НСП 1% : 4.43 [13:15:24]line НДС 12% : 53.14 [13:15:24]line Наличными: 500.00 [13:15:24]line Безнал.: 0.00 [13:15:24]line Место: АЗС № 170 "Партнер Нефть" [13:15:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:24]line СНО: Общий режим [13:15:24]line Чек 155 25.10.2024 13:15 [13:15:24]line Смена: 540 ФФД: 1.0 [13:15:24]line ЗНМ: 0300000110 [13:15:24]line РНМ: 0000000000091776 [13:15:24]line Версия ККМ: 001 [13:15:24]line ФМ: 0000000000871754 [13:15:24]line ФД: 191416 [13:15:24]line ФПД: 244857961355360 [13:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131531&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191416&fm=244857961355360&tin=02508201610067®Number=0000000000091776&sum=50000 [13:15:24]OFD Sender: Processing packet 191416 [packets to send 75, broken 74] [13:15:24]ProducePacketName [13:15:24]name=ofd_packets/00191416 [13:15:24]OFD Sender: To server: pG, [13:15:24]CommunicateWithHost lk.salyk.kg:30040 [13:15:24]ConnectInit lk.salyk.kg [13:15:24]written 0, free lines is 4095 [13:15:24]Connected sock=10 [13:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 98 07 01 54 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 F3 99 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EB 02 00 35 04 06 00 DE B2 6F CE 98 60 CA 87 F0 79 90 1D DE 39 [13:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 78 E3 47 00 5B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EB 02 00 F4 03 04 00 C2 3E 1B 67 B6 04 01 00 00 C2 FD 0E EA C6 64 78 EB [13:15:24]CommunicateWithHost err = 0 [13:15:24]CheckOFDResponse [13:15:24]1017 (14) - 77093643461234 [13:15:24]1041 (16) - 0000000000871754 [13:15:24]1040 (4) - 191416 [13:15:24]1012 (4) - 25.10.2024 06:46 [13:15:24]1206 (1) - 0 [13:15:24]OFD Sender: Remove packet 191416 [13:15:24]ProducePacketName [13:15:24]name=ofd_packets/00191416 [13:15:24]NVStorageDeleteData [13:15:24]Write to MH i2c: 01 00 00 08 9A A2 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 07 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 07 00 08 9A 00 00 00 00 00 C2 0C 77 [13:15:24]RasterBufferAndPrint [13:15:24]line [13:15:24]line [13:15:24]line [13:15:24]line [13:15:24]line [13:15:24]written 0, free lines is 3272 [13:15:24]MH_Cut [13:15:24]Write to MH i2c: D1 01 00 0F 9A 01 7B [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: D1 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: D1 01 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: D1 01 00 0F 9A 00 7A [13:15:24]Write to MH i2c: 01 00 00 10 9A AA [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:25]OFD Sender: No OFD packet to send [13:15:25]*** Cut start [13:15:25]*** Partial cut [13:15:25]*** CUTSNS_PIN = 1 [13:15:25]*** CUTSNS_PIN = 0 [13:15:25]*** Brake cut motor [13:15:26]Read from MH i2c: 01 [13:15:26]MH_I2C_Read... [13:15:26]*** Stop cut motor [13:15:26]*** Cut end [13:15:26]Read from MH i2c: 01 07 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: 01 07 00 10 9A 00 00 00 00 00 FF 0F BF [13:15:26]process_action close_receipt done [13:15:26]requested_data is exist [13:15:26]produce_requested_data [13:15:26]requested_item fm.sn is exist - process it [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 11 00 00 [13:15:26]Write to MH i2c: E2 08 00 11 9A 80 11 00 00 00 00 00 00 25 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 17 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 17 00 11 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [13:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:26]wFMCommunicate OK [13:15:26]requested_item fd.num is exist - process it [13:15:26]SAM_PROTO_GetFieldsCounters [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 13 00 00 [13:15:26]Write to MH i2c: E2 08 00 12 9A 80 13 00 00 00 00 00 00 28 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 62 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 62 00 12 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:26]wFMCommunicate OK [13:15:26]SAM_PROTO_GetFieldsCounters done [13:15:26]requested_item shift.num is exist - process it [13:15:26]requested_item shift.opened is exist - process it [13:15:26]req_shift_opened [13:15:26]FM_GetShiftState [13:15:26]SAM_PROTO_GetShiftState [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 13 01 00 [13:15:26]Write to MH i2c: E2 08 00 13 9A 80 13 01 00 00 00 00 00 2A [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 0E 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 0E 00 13 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [13:15:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:15:26]wFMCommunicate OK [13:15:26]SAM_PROTO_GetShiftState done [13:15:26]FM_GetShiftState done [13:15:26]req_shift_opened done [13:15:26]requested_item shift.open_date is exist - process it [13:15:26]req_shift_open_date [13:15:26]req_shift_open_date done [13:15:26]produce_requested_data done [13:15:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191416,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:15:26]process_action_free close_receipt [13:15:26]json_value_free [13:15:26]json_value_free done [13:15:26]process_json_proto returns [13:15:26]Send response to host [13:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191416,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:15:26]free response buf [13:15:26]execute_script done [13:15:26]execute_script returns [13:15:26]free content buf [13:15:26]Sock 9.Close socket [13:15:26]Sock 9.Thread stoped [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:19]accept exits with 8 [13:17:19]New connection [13:17:19]New thread 3066817892 created [13:17:19]Thread 3066961252 joined [13:17:19]Waiting for new connection... [13:17:19] Sock 8.Parse request [13:17:19]Sock 8.Check first char [13:17:19]Sock 8.First char is OK [13:17:19]request: POST /json_proto HTTP/1.0 [13:17:19]Method: POST [13:17:19]URL: /json_proto [13:17:19]Method is POST - this is cgi request [13:17:19]url: /json_proto [13:17:19]query_string will be loaded in cgi processing [13:17:19]execute_cgi json_proto POST (null) [13:17:19]execute_cgi path=json_proto method=POST [13:17:19]POST find Content-Length [13:17:19]Host: 172.17.63.131:8080 [13:17:19]Content-Length: 681 [13:17:19]Content-Type: application/json [13:17:19] [13:17:19]POST finish read [13:17:19]Found Content-Length = 681 [13:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:19]execute_script... [13:17: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)30712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:19]POST & json_proto [13:17:19]process_json_proto [13:17:19]json parsed OK: [13:17:19]protocol is kg_v1.0 [13:17:19]action value=close_receipt [13:17:19]process_action close_receipt [13:17:19]cmd_close_receipt [13:17:19]MH_GetDate [13:17:19]Write to MH i2c: F0 00 00 14 9A 9D [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 09 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 09 00 14 9A 00 68 9A 1B 67 22 05 6E 64 23 [13:17:19]GetLastDocTimeStamp 1729862131 [13:17:19]current date 1729862248 [13:17:19]FM_GetShiftState [13:17:19]SAM_PROTO_GetShiftState [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 13 01 00 [13:17:19]Write to MH i2c: E2 08 00 15 9A 80 13 01 00 00 00 00 00 2C [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0E 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0E 00 15 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EF [13:17:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:17:19]wFMCommunicate OK [13:17:19]SAM_PROTO_GetShiftState done [13:17:19]FM_GetShiftState done [13:17:19]opened in 1729816399 [13:17:19]opened+sec_in_day 1729902799 [13:17:19]quantity*price = 100015 [13:17:19]sum+1 = 100017 [13:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 156 25.10.2024 13:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191417 ФПД: 209724628862287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191417&fm=209724628862287&tin=02508201610067®Number=0000000000091776&sum=100000 [13:17:20]StoreToDocumentArchive [13:17:20]shift 540 fd 191417 [13:17:20]save to /storage/0540/doc_00191417 [13:17:20]save last doc name /storage/0540/doc_00191417 to /storage/kkm_last_doc_name [13:17:20]save OK [13:17:20]Clear old archive folders... [13:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:20]tlvbuf is 015C87F0 [13:17:20]SAM_PROTO_ClearQueue [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 09 00 00 [13:17:20]Write to MH i2c: E2 08 00 22 9A 80 09 00 00 00 00 00 00 2E [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 22 9A 00 90 00 30 [13:17:20]RAPDU: 90 00 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_ClearQueue done [13:17:20]KKMCreateOFDPacket [13:17:20]OFDProtocolAddRootSTLVToBuf [13:17:20]FM_MakeSignedData [13:17:20]FM_MakeSignedData [13:17:20]SAM_PROTO_SignData [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 0D 01 02 [13:17:20]Write to MH i2c: E2 08 00 23 9A 80 0D 01 02 00 00 00 00 36 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 23 9A 00 90 00 31 [13:17:21]RAPDU: 90 00 [13:17:21]wFMCommunicate OK [13:17:21]wFMCommunicate request_size=255 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 68 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EB 02 00 35 04 06 00 BE [13:17:21]Write to MH i2c: E2 02 01 24 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 68 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EB 02 00 35 04 06 00 BE 00 00 66 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 24 9A 00 90 00 32 [13:17:21]RAPDU: 90 00 [13:17:21]wFMCommunicate OK [13:17:21]wFMCommunicate request_size=10 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 0D 02 02 05 BE 52 01 05 4F [13:17:21]Write to MH i2c: E2 0D 00 25 9A 80 0D 02 02 05 00 BE 52 01 05 4F 00 00 A8 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 25 9A 00 90 00 33 [13:17:21]RAPDU: 90 00 [13:17:21]wFMCommunicate OK [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 0D 03 02 [13:17:21]Write to MH i2c: E2 08 00 26 9A 80 0D 03 02 00 00 00 00 3B [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0B 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0B 00 26 9A 00 EE 97 DD 85 C3 AC DA 10 90 00 7C [13:17:21]RAPDU: EE 97 DD 85 C3 AC DA 10 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_SignData done [13:17:21]FM_MakeSignedData done [13:17:21]CreateOFDProtocolMessage [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 11 00 00 [13:17:21]Write to MH i2c: E2 08 00 27 9A 80 11 00 00 00 00 00 00 3B [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 27 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [13:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:21]wFMCommunicate OK [13:17:21]CreateOFDProtocolMessage done [13:17:21]OFDSenderStorePacket 191417 [13:17:21]StoreOFDPacket docnum=191417 [13:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 03 89 07 01 61 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 68 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EB 02 00 35 04 06 00 BE BE 52 01 05 4F EE 97 DD 85 C3 AC DA 10 [13:17:21]CheckFolder [13:17:21]dirname=/storage/ofd_packets [13:17:21]CheckFolder done [13:17:21]ProducePacketName [13:17:21]name=ofd_packets/00191417 [13:17:21]NVStorageSaveData ofd_packets/00191417 [13:17:21]File name is /storage/ofd_packets/00191417 [13:17:21]Write 301 bytes [13:17:21]NVStorageSaveData done [13:17:21]OFDSenderStorePacket done [13:17:21]KKMCreateOFDPacket done [13:17:21]NVStorageSaveData kkm_last_timestamp [13:17:21]File name is /storage/kkm_last_timestamp [13:17:21]Write 4 bytes [13:17:21]NVStorageSaveData done [13:17:21]ExternCall_PrintAddStr [13:17:21]wPrintStart [13:17:21]Write to MH i2c: 01 00 00 28 9A C2 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 28 9A 00 00 00 00 00 FF 0F D7 [13:17:21]RasterBufferAndPrint [13:17:21]line Счет N : (1)30712 [13:17:21]line ИНН: 02508201610067 [13:17:21]line Контрольно-Кассовый Чек [13:17:21]line ПРОДАЖА [13:17:21]line ТРК (МРК, ГНК) : 21 [13:17:21]line Товар: 2710124130 [13:17:21]line Аи-92-К-5 [13:17:21]line 14.950 * 66.90 [13:17:21]line = 1000.16 [13:17:21]line НДС 12% НСП 1% [13:17:21]line > о реализуемом товаре [13:17:21]line ОКРУГЛЕНИЕ: -0.16 [13:17:21]line ИТОГО: 1000.00 [13:17:21]line Внесено: 1000.00 [13:17:21]line СДАЧА: 0.00 [13:17:21]line НСП 1% : 8.85 [13:17:21]line НДС 12% : 106.21 [13:17:21]line Наличными: 1000.00 [13:17:21]line Безнал.: 0.00 [13:17:21]line Место: АЗС № 170 "Партнер Нефть" [13:17:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:17:21]line СНО: Общий режим [13:17:21]line Чек 156 25.10.2024 13:17 [13:17:21]line Смена: 540 ФФД: 1.0 [13:17:21]line ЗНМ: 0300000110 [13:17:21]line РНМ: 0000000000091776 [13:17:21]line Версия ККМ: 001 [13:17:21]line ФМ: 0000000000871754 [13:17:21]line ФД: 191417 [13:17:21]line ФПД: 209724628862287 [13:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191417&fm=209724628862287&tin=02508201610067®Number=0000000000091776&sum=100000 [13:17:21]OFD Sender: Processing packet 191417 [packets to send 75, broken 74] [13:17:21]ProducePacketName [13:17:21]name=ofd_packets/00191417 [13:17:21]OFD Sender: To server: pG, [13:17:21]CommunicateWithHost lk.salyk.kg:30040 [13:17:21]ConnectInit lk.salyk.kg [13:17:21]written 0, free lines is 4095 [13:17:21]Connected sock=10 [13:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 03 89 07 01 61 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 68 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EB 02 00 35 04 06 00 BE BE 52 01 05 4F EE 97 DD 85 C3 AC DA 10 [13:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D6 ED 47 00 12 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EB 02 00 F4 03 04 00 37 3F 1B 67 B6 04 01 00 00 71 16 8A E1 38 6D 89 BE [13:17:22]CommunicateWithHost err = 0 [13:17:22]CheckOFDResponse [13:17:22]1017 (14) - 77093643461234 [13:17:22]1041 (16) - 0000000000871754 [13:17:22]1040 (4) - 191417 [13:17:22]1012 (4) - 25.10.2024 06:48 [13:17:22]1206 (1) - 0 [13:17:22]OFD Sender: Remove packet 191417 [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00191417 [13:17:22]NVStorageDeleteData [13:17:22]Write to MH i2c: 01 00 00 53 9A ED [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 53 9A 00 00 00 00 00 C6 0C C6 [13:17:22]RasterBufferAndPrint [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]written 0, free lines is 3275 [13:17:22]MH_Cut [13:17:22]Write to MH i2c: D1 01 00 5A 9A 01 C6 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: D1 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: D1 01 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: D1 01 00 5A 9A 00 C5 [13:17:22]Write to MH i2c: 01 00 00 5B 9A F5 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]OFD Sender: No OFD packet to send [13:17:23]*** Cut start [13:17:23]*** Partial cut [13:17:23]*** CUTSNS_PIN = 1 [13:17:23]*** CUTSNS_PIN = 0 [13:17:23]*** Brake cut motor [13:17:23]Read from MH i2c: 01 [13:17:23]MH_I2C_Read... [13:17:23]*** Stop cut motor [13:17:23]*** Cut end [13:17:23]Read from MH i2c: 01 07 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 5B 9A 00 00 00 00 00 FF 0F 0A [13:17:23]process_action close_receipt done [13:17:23]requested_data is exist [13:17:23]produce_requested_data [13:17:23]requested_item fm.sn is exist - process it [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 11 00 00 [13:17:23]Write to MH i2c: E2 08 00 5C 9A 80 11 00 00 00 00 00 00 70 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 17 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 17 00 5C 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [13:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:23]wFMCommunicate OK [13:17:23]requested_item fd.num is exist - process it [13:17:23]SAM_PROTO_GetFieldsCounters [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 13 00 00 [13:17:23]Write to MH i2c: E2 08 00 5D 9A 80 13 00 00 00 00 00 00 73 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 62 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 62 00 5D 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [13:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:23]wFMCommunicate OK [13:17:23]SAM_PROTO_GetFieldsCounters done [13:17:23]requested_item shift.num is exist - process it [13:17:23]requested_item shift.opened is exist - process it [13:17:23]req_shift_opened [13:17:23]FM_GetShiftState [13:17:23]SAM_PROTO_GetShiftState [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 13 01 00 [13:17:23]Write to MH i2c: E2 08 00 5E 9A 80 13 01 00 00 00 00 00 75 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 0E 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 0E 00 5E 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 38 [13:17:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:17:23]wFMCommunicate OK [13:17:23]SAM_PROTO_GetShiftState done [13:17:23]FM_GetShiftState done [13:17:23]req_shift_opened done [13:17:23]requested_item shift.open_date is exist - process it [13:17:23]req_shift_open_date [13:17:23]req_shift_open_date done [13:17:23]produce_requested_data done [13:17:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191417,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:17:23]process_action_free close_receipt [13:17:23]json_value_free [13:17:23]json_value_free done [13:17:23]process_json_proto returns [13:17:23]Send response to host [13:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191417,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:17:23]free response buf [13:17:23]execute_script done [13:17:23]execute_script returns [13:17:23]free content buf [13:17:23]Sock 8.Close socket [13:17:23]Sock 8.Thread stoped [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]accept exits with 9 [13:19:02]New connection [13:19:02]New thread 3066961252 created [13:19:02]Thread 3066817892 joined [13:19:02]Waiting for new connection... [13:19:02] Sock 9.Parse request [13:19:02]Sock 9.Check first char [13:19:02]Sock 9.First char is OK [13:19:02]request: POST /json_proto HTTP/1.0 [13:19:02]Method: POST [13:19:02]URL: /json_proto [13:19:02]Method is POST - this is cgi request [13:19:02]url: /json_proto [13:19:02]query_string will be loaded in cgi processing [13:19:02]execute_cgi json_proto POST (null) [13:19:02]execute_cgi path=json_proto method=POST [13:19:02]POST find Content-Length [13:19:02]Host: 172.17.63.131:8080 [13:19:02]Content-Length: 677 [13:19:02]Content-Type: application/json [13:19:02] [13:19:02]POST finish read [13:19:02]Found Content-Length = 677 [13:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:02]execute_script... [13: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)30713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:02]POST & json_proto [13:19:02]process_json_proto [13:19:02]json parsed OK: [13:19:02]protocol is kg_v1.0 [13:19:02]action value=close_receipt [13:19:02]process_action close_receipt [13:19:02]cmd_close_receipt [13:19:02]MH_GetDate [13:19:02]Write to MH i2c: F0 00 00 5F 9A E8 [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: F0 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: F0 09 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: F0 09 00 5F 9A 00 CF 9A 1B 67 22 05 6E 64 D5 [13:19:02]GetLastDocTimeStamp 1729862248 [13:19:02]current date 1729862351 [13:19:02]FM_GetShiftState [13:19:02]SAM_PROTO_GetShiftState [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 13 01 00 [13:19:02]Write to MH i2c: E2 08 00 60 9A 80 13 01 00 00 00 00 00 77 [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:02]Read from MH i2c: E2 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 0E 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 0E 00 60 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3A [13:19:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:19:02]wFMCommunicate OK [13:19:02]SAM_PROTO_GetShiftState done [13:19:02]FM_GetShiftState done [13:19:02]opened in 1729816399 [13:19:02]opened+sec_in_day 1729902799 [13:19:02]quantity*price = 70044 [13:19:02]sum+1 = 70045 [13:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 157 25.10.2024 13:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191418 ФПД: 223203478468285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131911&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191418&fm=223203478468285&tin=02508201610067®Number=0000000000091776&sum=70000 [13:19:03]StoreToDocumentArchive [13:19:03]shift 540 fd 191418 [13:19:03]save to /storage/0540/doc_00191418 [13:19:03]save last doc name /storage/0540/doc_00191418 to /storage/kkm_last_doc_name [13:19:03]save OK [13:19:03]Clear old archive folders... [13:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:03]tlvbuf is 01600BB0 [13:19:03]SAM_PROTO_ClearQueue [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 09 00 00 [13:19:03]Write to MH i2c: E2 08 00 6D 9A 80 09 00 00 00 00 00 00 79 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 6D 9A 00 90 00 7B [13:19:03]RAPDU: 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_ClearQueue done [13:19:03]KKMCreateOFDPacket [13:19:03]OFDProtocolAddRootSTLVToBuf [13:19:03]FM_MakeSignedData [13:19:03]FM_MakeSignedData [13:19:03]SAM_PROTO_SignData [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 0D 01 02 [13:19:03]Write to MH i2c: E2 08 00 6E 9A 80 0D 01 02 00 00 00 00 81 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 6E 9A 00 90 00 7C [13:19:03]RAPDU: 90 00 [13:19:03]wFMCommunicate OK [13:19:03]wFMCommunicate request_size=255 [13:19:03]MH_SAM_APDU [13: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CF 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EB 02 00 35 04 06 00 CB [13:19:03]Write to MH i2c: E2 02 01 6F 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CF 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EB 02 00 35 04 06 00 CB 00 00 3D [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 6F 9A 00 90 00 7D [13:19:03]RAPDU: 90 00 [13:19:03]wFMCommunicate OK [13:19:03]wFMCommunicate request_size=10 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 0D 02 02 05 00 9C 0B F6 BD [13:19:03]Write to MH i2c: E2 0D 00 70 9A 80 0D 02 02 05 00 00 9C 0B F6 BD 00 00 E8 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 03 00 70 9A 00 90 00 7E [13:19:03]RAPDU: 90 00 [13:19:03]wFMCommunicate OK [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 0D 03 02 [13:19:03]Write to MH i2c: E2 08 00 71 9A 80 0D 03 02 00 00 00 00 86 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0B 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0B 00 71 9A 00 D2 0A 59 6B 46 78 83 85 90 00 ED [13:19:03]RAPDU: D2 0A 59 6B 46 78 83 85 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_SignData done [13:19:03]FM_MakeSignedData done [13:19:03]CreateOFDProtocolMessage [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 11 00 00 [13:19:03]Write to MH i2c: E2 08 00 72 9A 80 11 00 00 00 00 00 00 86 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 17 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 17 00 72 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [13:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:03]wFMCommunicate OK [13:19:03]CreateOFDProtocolMessage done [13:19:03]OFDSenderStorePacket 191418 [13:19:03]StoreOFDPacket docnum=191418 [13:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 9E 07 01 5C 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CF 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EB 02 00 35 04 06 00 CB 00 9C 0B F6 BD D2 0A 59 6B 46 78 83 85 [13:19:03]CheckFolder [13:19:03]dirname=/storage/ofd_packets [13:19:03]CheckFolder done [13:19:03]ProducePacketName [13:19:03]name=ofd_packets/00191418 [13:19:03]NVStorageSaveData ofd_packets/00191418 [13:19:03]File name is /storage/ofd_packets/00191418 [13:19:03]Write 301 bytes [13:19:03]NVStorageSaveData done [13:19:03]OFDSenderStorePacket done [13:19:03]KKMCreateOFDPacket done [13:19:03]NVStorageSaveData kkm_last_timestamp [13:19:03]File name is /storage/kkm_last_timestamp [13:19:03]Write 4 bytes [13:19:03]NVStorageSaveData done [13:19:03]ExternCall_PrintAddStr [13:19:03]wPrintStart [13:19:03]Write to MH i2c: 01 00 00 73 9A 0D [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: 01 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: 01 07 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: 01 07 00 73 9A 00 00 00 00 00 FF 0F 22 [13:19:03]RasterBufferAndPrint [13:19:03]line Счет N : (1)30713 [13:19:03]line ИНН: 02508201610067 [13:19:03]line Контрольно-Кассовый Чек [13:19:03]line ПРОДАЖА [13:19:03]line ТРК (МРК, ГНК) : 21 [13:19:03]line Товар: 2710124130 [13:19:03]line Аи-92-К-5 [13:19:03]line 10.470 * 66.90 [13:19:03]line = 700.44 [13:19:03]line НДС 12% НСП 1% [13:19:03]line > о реализуемом товаре [13:19:03]line ОКРУГЛЕНИЕ: -0.44 [13:19:03]line ИТОГО: 700.00 [13:19:03]line Внесено: 700.00 [13:19:03]line СДАЧА: 0.00 [13:19:03]line НСП 1% : 6.20 [13:19:03]line НДС 12% : 74.38 [13:19:03]line Наличными: 700.00 [13:19:03]line Безнал.: 0.00 [13:19:03]line Место: АЗС № 170 "Партнер Нефть" [13:19:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:19:03]line СНО: Общий режим [13:19:03]line Чек 157 25.10.2024 13:19 [13:19:03]line Смена: 540 ФФД: 1.0 [13:19:03]line ЗНМ: 0300000110 [13:19:03]line РНМ: 0000000000091776 [13:19:03]line Версия ККМ: 001 [13:19:03]line ФМ: 0000000000871754 [13:19:03]line ФД: 191418 [13:19:03]line ФПД: 223203478468285 [13:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131911&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191418&fm=223203478468285&tin=02508201610067®Number=0000000000091776&sum=70000 [13:19:04]OFD Sender: Processing packet 191418 [packets to send 75, broken 74] [13:19:04]ProducePacketName [13:19:04]name=ofd_packets/00191418 [13:19:04]OFD Sender: To server: pG, [13:19:04]CommunicateWithHost lk.salyk.kg:30040 [13:19:04]ConnectInit lk.salyk.kg [13:19:04]written 0, free lines is 4095 [13:19:04]Connected sock=10 [13: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 31 37 35 34 0F 01 00 00 DD 9E 07 01 5C 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CF 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EB 02 00 35 04 06 00 CB 00 9C 0B F6 BD D2 0A 59 6B 46 78 83 85 [13:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D7 F8 47 00 6A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EB 02 00 F4 03 04 00 9D 3F 1B 67 B6 04 01 00 00 0E D1 6F B0 1F 32 24 9D [13:19:04]CommunicateWithHost err = 0 [13:19:04]CheckOFDResponse [13:19:04]1017 (14) - 77093643461234 [13:19:04]1041 (16) - 0000000000871754 [13:19:04]1040 (4) - 191418 [13:19:04]1012 (4) - 25.10.2024 06:50 [13:19:04]1206 (1) - 0 [13:19:04]OFD Sender: Remove packet 191418 [13:19:04]ProducePacketName [13:19:04]name=ofd_packets/00191418 [13:19:04]NVStorageDeleteData [13:19:04]Write to MH i2c: 01 00 00 9E 9A 38 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 07 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 07 00 9E 9A 00 00 00 00 00 C6 0C 11 [13:19:04]RasterBufferAndPrint [13:19:04]line [13:19:04]line [13:19:04]line [13:19:04]line [13:19:04]line [13:19:04]written 0, free lines is 3276 [13:19:04]MH_Cut [13:19:04]Write to MH i2c: D1 01 00 A5 9A 01 11 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: D1 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: D1 01 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: D1 01 00 A5 9A 00 10 [13:19:04]Write to MH i2c: 01 00 00 A6 9A 40 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:05]OFD Sender: No OFD packet to send [13:19:05]*** Cut start [13:19:05]*** Partial cut [13:19:05]*** CUTSNS_PIN = 1 [13:19:05]*** CUTSNS_PIN = 0 [13:19:05]*** Brake cut motor [13:19:06]Read from MH i2c: 01 [13:19:06]MH_I2C_Read... [13:19:06]*** Stop cut motor [13:19:06]*** Cut end [13:19:06]Read from MH i2c: 01 07 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: 01 07 00 A6 9A 00 00 00 00 00 FF 0F 55 [13:19:06]process_action close_receipt done [13:19:06]requested_data is exist [13:19:06]produce_requested_data [13:19:06]requested_item fm.sn is exist - process it [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 11 00 00 [13:19:06]Write to MH i2c: E2 08 00 A7 9A 80 11 00 00 00 00 00 00 BB [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 17 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 17 00 A7 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [13:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:06]wFMCommunicate OK [13:19:06]requested_item fd.num is exist - process it [13:19:06]SAM_PROTO_GetFieldsCounters [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 13 00 00 [13:19:06]Write to MH i2c: E2 08 00 A8 9A 80 13 00 00 00 00 00 00 BE [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 62 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 62 00 A8 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:06]wFMCommunicate OK [13:19:06]SAM_PROTO_GetFieldsCounters done [13:19:06]requested_item shift.num is exist - process it [13:19:06]requested_item shift.opened is exist - process it [13:19:06]req_shift_opened [13:19:06]FM_GetShiftState [13:19:06]SAM_PROTO_GetShiftState [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 13 01 00 [13:19:06]Write to MH i2c: E2 08 00 A9 9A 80 13 01 00 00 00 00 00 C0 [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 0E 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 0E 00 A9 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 83 [13:19:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:19:06]wFMCommunicate OK [13:19:06]SAM_PROTO_GetShiftState done [13:19:06]FM_GetShiftState done [13:19:06]req_shift_opened done [13:19:06]requested_item shift.open_date is exist - process it [13:19:06]req_shift_open_date [13:19:06]req_shift_open_date done [13:19:06]produce_requested_data done [13:19:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191418,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:19:06]process_action_free close_receipt [13:19:06]json_value_free [13:19:06]json_value_free done [13:19:06]process_json_proto returns [13:19:06]Send response to host [13:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191418,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:19:06]free response buf [13:19:06]execute_script done [13:19:06]execute_script returns [13:19:06]free content buf [13:19:06]Sock 9.Close socket [13:19:06]Sock 9.Thread stoped [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:25]accept exits with 8 [13:19:25]New connection [13:19:25]New thread 3066817892 created [13:19:25]Thread 3066961252 joined [13:19:25]Waiting for new connection... [13:19:25] Sock 8.Parse request [13:19:25]Sock 8.Check first char [13:19:25]Sock 8.First char is OK [13:19:25]request: POST /json_proto HTTP/1.0 [13:19:25]Method: POST [13:19:25]URL: /json_proto [13:19:25]Method is POST - this is cgi request [13:19:25]url: /json_proto [13:19:25]query_string will be loaded in cgi processing [13:19:25]execute_cgi json_proto POST (null) [13:19:25]execute_cgi path=json_proto method=POST [13:19:25]POST find Content-Length [13:19:25]Host: 172.17.63.131:8080 [13:19:25]Content-Length: 676 [13:19:25]Content-Type: application/json [13:19:25] [13:19:25]POST finish read [13:19:25]Found Content-Length = 676 [13:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:25]execute_script... [13:19: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)30714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:25]POST & json_proto [13:19:25]process_json_proto [13:19:25]json parsed OK: [13:19:25]protocol is kg_v1.0 [13:19:25]action value=close_receipt [13:19:25]process_action close_receipt [13:19:25]cmd_close_receipt [13:19:25]MH_GetDate [13:19:25]Write to MH i2c: F0 00 00 AA 9A 33 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 09 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 09 00 AA 9A 00 E7 9A 1B 67 22 05 6E 64 38 [13:19:25]GetLastDocTimeStamp 1729862351 [13:19:25]current date 1729862375 [13:19:25]FM_GetShiftState [13:19:25]SAM_PROTO_GetShiftState [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 13 01 00 [13:19:25]Write to MH i2c: E2 08 00 AB 9A 80 13 01 00 00 00 00 00 C2 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 0E 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 0E 00 AB 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 85 [13:19:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:19:26]wFMCommunicate OK [13:19:26]SAM_PROTO_GetShiftState done [13:19:26]FM_GetShiftState done [13:19:26]opened in 1729816399 [13:19:26]opened+sec_in_day 1729902799 [13:19:26]quantity*price = 40006 [13:19:26]sum+1 = 40007 [13:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 158 25.10.2024 13:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191419 ФПД: 160881403370331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191419&fm=160881403370331&tin=02508201610067®Number=0000000000091776&sum=40000 [13:19:27]StoreToDocumentArchive [13:19:27]shift 540 fd 191419 [13:19:27]save to /storage/0540/doc_00191419 [13:19:27]save last doc name /storage/0540/doc_00191419 to /storage/kkm_last_doc_name [13:19:27]save OK [13:19:27]Clear old archive folders... [13:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:27]tlvbuf is 016257C0 [13:19:27]SAM_PROTO_ClearQueue [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 09 00 00 [13:19:27]Write to MH i2c: E2 08 00 B8 9A 80 09 00 00 00 00 00 00 C4 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 B8 9A 00 90 00 C6 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_ClearQueue done [13:19:27]KKMCreateOFDPacket [13:19:27]OFDProtocolAddRootSTLVToBuf [13:19:27]FM_MakeSignedData [13:19:27]FM_MakeSignedData [13:19:27]SAM_PROTO_SignData [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 01 02 [13:19:27]Write to MH i2c: E2 08 00 B9 9A 80 0D 01 02 00 00 00 00 CC [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 B9 9A 00 90 00 C7 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=255 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E7 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EB 02 00 35 04 06 00 92 [13:19:27]Write to MH i2c: E2 02 01 BA 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E7 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EB 02 00 35 04 06 00 92 00 00 28 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 BA 9A 00 90 00 C8 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=10 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 02 02 05 52 1E E6 1B 5B [13:19:27]Write to MH i2c: E2 0D 00 BB 9A 80 0D 02 02 05 00 52 1E E6 1B 5B 00 00 A5 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 BB 9A 00 90 00 C9 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 03 02 [13:19:27]Write to MH i2c: E2 08 00 BC 9A 80 0D 03 02 00 00 00 00 D1 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0B 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0B 00 BC 9A 00 1B DE 9E 18 F6 C1 7C F3 90 00 A7 [13:19:27]RAPDU: 1B DE 9E 18 F6 C1 7C F3 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_SignData done [13:19:27]FM_MakeSignedData done [13:19:27]CreateOFDProtocolMessage [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 11 00 00 [13:19:27]Write to MH i2c: E2 08 00 BD 9A 80 11 00 00 00 00 00 00 D1 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 17 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 17 00 BD 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [13:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:27]wFMCommunicate OK [13:19:27]CreateOFDProtocolMessage done [13:19:27]OFDSenderStorePacket 191419 [13:19:27]StoreOFDPacket docnum=191419 [13:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 55 07 01 A2 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E7 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EB 02 00 35 04 06 00 92 52 1E E6 1B 5B 1B DE 9E 18 F6 C1 7C F3 [13:19:27]CheckFolder [13:19:27]dirname=/storage/ofd_packets [13:19:27]CheckFolder done [13:19:27]ProducePacketName [13:19:27]name=ofd_packets/00191419 [13:19:27]NVStorageSaveData ofd_packets/00191419 [13:19:27]File name is /storage/ofd_packets/00191419 [13:19:27]Write 301 bytes [13:19:27]NVStorageSaveData done [13:19:27]OFDSenderStorePacket done [13:19:27]KKMCreateOFDPacket done [13:19:27]NVStorageSaveData kkm_last_timestamp [13:19:27]File name is /storage/kkm_last_timestamp [13:19:27]Write 4 bytes [13:19:27]NVStorageSaveData done [13:19:27]ExternCall_PrintAddStr [13:19:27]wPrintStart [13:19:27]Write to MH i2c: 01 00 00 BE 9A 58 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 BE 9A 00 00 00 00 00 FF 0F 6D [13:19:27]RasterBufferAndPrint [13:19:27]line Счет N : (1)30714 [13:19:27]line ИНН: 02508201610067 [13:19:27]line Контрольно-Кассовый Чек [13:19:27]line ПРОДАЖА [13:19:27]line ТРК (МРК, ГНК) : 12 [13:19:27]line Товар: 2710124130 [13:19:27]line Аи-92-К-5 [13:19:27]line 5.980 * 66.90 [13:19:27]line = 400.06 [13:19:27]line НДС 12% НСП 1% [13:19:27]line > о реализуемом товаре [13:19:27]line ОКРУГЛЕНИЕ: -0.06 [13:19:27]line ИТОГО: 400.00 [13:19:27]line Внесено: 400.00 [13:19:27]line СДАЧА: 0.00 [13:19:27]line НСП 1% : 3.54 [13:19:27]line НДС 12% : 42.48 [13:19:27]line Наличными: 400.00 [13:19:27]line Безнал.: 0.00 [13:19:27]line Место: АЗС № 170 "Партнер Нефть" [13:19:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:19:27]line СНО: Общий режим [13:19:27]line Чек 158 25.10.2024 13:19 [13:19:27]line Смена: 540 ФФД: 1.0 [13:19:27]line ЗНМ: 0300000110 [13:19:27]line РНМ: 0000000000091776 [13:19:27]line Версия ККМ: 001 [13:19:27]line ФМ: 0000000000871754 [13:19:27]line ФД: 191419 [13:19:27]line ФПД: 160881403370331 [13:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191419&fm=160881403370331&tin=02508201610067®Number=0000000000091776&sum=40000 [13:19:28]OFD Sender: Processing packet 191419 [packets to send 75, broken 74] [13:19:28]ProducePacketName [13:19:28]name=ofd_packets/00191419 [13:19:28]OFD Sender: To server: pG, [13:19:28]CommunicateWithHost lk.salyk.kg:30040 [13:19:28]ConnectInit lk.salyk.kg [13:19:28]written 0, free lines is 4095 [13:19:28]Connected sock=10 [13:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 55 07 01 A2 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E7 9A 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EB 02 00 35 04 06 00 92 52 1E E6 1B 5B 1B DE 9E 18 F6 C1 7C F3 [13:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 81 47 00 25 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EB 02 00 F4 03 04 00 B5 3F 1B 67 B6 04 01 00 00 86 FC 35 FE 7D AB 81 36 [13:19:28]CommunicateWithHost err = 0 [13:19:28]CheckOFDResponse [13:19:28]1017 (14) - 77093643461234 [13:19:28]1041 (16) - 0000000000871754 [13:19:28]1040 (4) - 191419 [13:19:28]1012 (4) - 25.10.2024 06:50 [13:19:28]1206 (1) - 0 [13:19:28]OFD Sender: Remove packet 191419 [13:19:28]ProducePacketName [13:19:28]name=ofd_packets/00191419 [13:19:28]NVStorageDeleteData [13:19:28]Write to MH i2c: 01 00 00 E9 9A 83 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 E9 9A 00 00 00 00 00 BF 0C 55 [13:19:28]RasterBufferAndPrint [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]written 0, free lines is 3269 [13:19:28]MH_Cut [13:19:28]Write to MH i2c: D1 01 00 F0 9A 01 5C [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 F0 9A 00 5B [13:19:28]Write to MH i2c: 01 00 00 F1 9A 8B [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]OFD Sender: No OFD packet to send [13:19:29]*** Cut start [13:19:29]*** Partial cut [13:19:29]*** CUTSNS_PIN = 1 [13:19:29]*** CUTSNS_PIN = 0 [13:19:29]*** Brake cut motor [13:19:29]Read from MH i2c: 01 [13:19:29]*** Stop cut motor [13:19:29]*** Cut end [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: 01 07 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: 01 07 00 F1 9A 00 00 00 00 00 FF 0F A0 [13:19:29]process_action close_receipt done [13:19:29]requested_data is exist [13:19:29]produce_requested_data [13:19:29]requested_item fm.sn is exist - process it [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 11 00 00 [13:19:29]Write to MH i2c: E2 08 00 F2 9A 80 11 00 00 00 00 00 00 06 [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 17 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 17 00 F2 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [13:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:29]wFMCommunicate OK [13:19:29]requested_item fd.num is exist - process it [13:19:29]SAM_PROTO_GetFieldsCounters [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 00 00 [13:19:29]Write to MH i2c: E2 08 00 F3 9A 80 13 00 00 00 00 00 00 09 [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 62 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 62 00 F3 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [13:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_GetFieldsCounters done [13:19:30]requested_item shift.num is exist - process it [13:19:30]requested_item shift.opened is exist - process it [13:19:30]req_shift_opened [13:19:30]FM_GetShiftState [13:19:30]SAM_PROTO_GetShiftState [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 13 01 00 [13:19:30]Write to MH i2c: E2 08 00 F4 9A 80 13 01 00 00 00 00 00 0B [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 F4 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CE [13:19:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_GetShiftState done [13:19:30]FM_GetShiftState done [13:19:30]req_shift_opened done [13:19:30]requested_item shift.open_date is exist - process it [13:19:30]req_shift_open_date [13:19:30]req_shift_open_date done [13:19:30]produce_requested_data done [13:19:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191419,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:19:30]process_action_free close_receipt [13:19:30]json_value_free [13:19:30]json_value_free done [13:19:30]process_json_proto returns [13:19:30]Send response to host [13:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191419,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:19:30]free response buf [13:19:30]execute_script done [13:19:30]execute_script returns [13:19:30]free content buf [13:19:30]Sock 8.Close socket [13:19:30]Sock 8.Thread stoped [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:11]accept exits with 9 [13:21:11]New connection [13:21:11]New thread 3066961252 created [13:21:11]Thread 3066817892 joined [13:21:11]Waiting for new connection... [13:21:11] Sock 9.Parse request [13:21:11]Sock 9.Check first char [13:21:11]Sock 9.First char is OK [13:21:11]request: POST /json_proto HTTP/1.0 [13:21:11]Method: POST [13:21:11]URL: /json_proto [13:21:11]Method is POST - this is cgi request [13:21:11]url: /json_proto [13:21:11]query_string will be loaded in cgi processing [13:21:11]execute_cgi json_proto POST (null) [13:21:11]execute_cgi path=json_proto method=POST [13:21:11]POST find Content-Length [13:21:11]Host: 172.17.63.131:8080 [13:21:11]Content-Length: 983 [13:21:11]Content-Type: application/json [13:21:11] [13:21:11]POST finish read [13:21:11]Found Content-Length = 983 [13:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:11]execute_script... [13:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:11]POST & json_proto [13:21:11]process_json_proto [13:21:11]json parsed OK: [13:21:11]protocol is kg_v1.0 [13:21:11]action value=close_receipt [13:21:11]process_action close_receipt [13:21:11]cmd_close_receipt [13:21:11]MH_GetDate [13:21:11]Write to MH i2c: F0 00 00 F5 9A 7E [13:21:11]Write i2c OK [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: F0 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: F0 09 00 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: F0 09 00 F5 9A 00 50 9B 1B 67 22 05 6E 64 ED [13:21:11]GetLastDocTimeStamp 1729862375 [13:21:11]current date 1729862480 [13:21:11]FM_GetShiftState [13:21:11]SAM_PROTO_GetShiftState [13:21:11]wFMCommunicate request_size=4 [13:21:11]MH_SAM_APDU [13:21:11]CAPDU: 80 13 01 00 [13:21:11]Write to MH i2c: E2 08 00 F6 9A 80 13 01 00 00 00 00 00 0D [13:21:11]Write i2c OK [13:21:11]MH_I2C_Read... [13:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:11]Read from MH i2c: E2 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: E2 0E 00 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: E2 0E 00 F6 9A 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D0 [13:21:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:21:11]wFMCommunicate OK [13:21:11]SAM_PROTO_GetShiftState done [13:21:11]FM_GetShiftState done [13:21:11]opened in 1729816399 [13:21:11]opened+sec_in_day 1729902799 [13:21:11]quantity*price = 150054 [13:21:11]sum+1 = 150055 [13:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 159 25.10.2024 13:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191420 ФПД: 25355894716550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132120&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191420&fm=25355894716550&tin=02508201610067®Number=0000000000091776&sum=150000 [13:21:12]StoreToDocumentArchive [13:21:12]shift 540 fd 191420 [13:21:12]save to /storage/0540/doc_00191420 [13:21:12]save last doc name /storage/0540/doc_00191420 to /storage/kkm_last_doc_name [13:21:12]save OK [13:21:12]Clear old archive folders... [13:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:12]tlvbuf is 016252B0 [13:21:12]SAM_PROTO_ClearQueue [13:21:12]wFMCommunicate request_size=4 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 09 00 00 [13:21:12]Write to MH i2c: E2 08 00 03 9B 80 09 00 00 00 00 00 00 10 [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 03 9B 00 90 00 12 [13:21:12]RAPDU: 90 00 [13:21:12]wFMCommunicate OK [13:21:12]SAM_PROTO_ClearQueue done [13:21:12]KKMCreateOFDPacket [13:21:12]OFDProtocolAddRootSTLVToBuf [13:21:12]FM_MakeSignedData [13:21:12]FM_MakeSignedData [13:21:12]SAM_PROTO_SignData [13:21:12]wFMCommunicate request_size=4 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 0D 01 02 [13:21:12]Write to MH i2c: E2 08 00 04 9B 80 0D 01 02 00 00 00 00 18 [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 04 9B 00 90 00 13 [13:21:12]RAPDU: 90 00 [13:21:12]wFMCommunicate OK [13:21:12]wFMCommunicate request_size=255 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EB 02 00 35 04 06 00 17 [13:21:12]Write to MH i2c: E2 02 01 05 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EB 02 00 35 04 06 00 17 00 00 CC [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 05 9B 00 90 00 14 [13:21:12]RAPDU: 90 00 [13:21:12]wFMCommunicate OK [13:21:12]wFMCommunicate request_size=10 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 0D 02 02 05 0F A1 18 F8 86 [13:21:12]Write to MH i2c: E2 0D 00 06 9B 80 0D 02 02 05 00 0F A1 18 F8 86 00 00 6B [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 03 00 06 9B 00 90 00 15 [13:21:12]RAPDU: 90 00 [13:21:12]wFMCommunicate OK [13:21:12]wFMCommunicate request_size=4 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 0D 03 02 [13:21:12]Write to MH i2c: E2 08 00 07 9B 80 0D 03 02 00 00 00 00 1D [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 0B 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 0B 00 07 9B 00 59 F2 2D 5A FF B0 1E 7B 90 00 38 [13:21:13]RAPDU: 59 F2 2D 5A FF B0 1E 7B 90 00 [13:21:13]wFMCommunicate OK [13:21:13]SAM_PROTO_SignData done [13:21:13]FM_MakeSignedData done [13:21:13]CreateOFDProtocolMessage [13:21:13]wFMCommunicate request_size=4 [13:21:13]MH_SAM_APDU [13:21:13]CAPDU: 80 11 00 00 [13:21:13]Write to MH i2c: E2 08 00 08 9B 80 11 00 00 00 00 00 00 1D [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:13]Read from MH i2c: E2 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 17 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: E2 17 00 08 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [13:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:13]wFMCommunicate OK [13:21:13]CreateOFDProtocolMessage done [13:21:13]OFDSenderStorePacket 191420 [13:21:13]StoreOFDPacket docnum=191420 [13:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 9A 07 01 52 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EB 02 00 35 04 06 00 17 0F A1 18 F8 86 59 F2 2D 5A FF B0 1E 7B [13:21:13]CheckFolder [13:21:13]dirname=/storage/ofd_packets [13:21:13]CheckFolder done [13:21:13]ProducePacketName [13:21:13]name=ofd_packets/00191420 [13:21:13]NVStorageSaveData ofd_packets/00191420 [13:21:13]File name is /storage/ofd_packets/00191420 [13:21:13]Write 301 bytes [13:21:13]NVStorageSaveData done [13:21:13]OFDSenderStorePacket done [13:21:13]KKMCreateOFDPacket done [13:21:13]NVStorageSaveData kkm_last_timestamp [13:21:13]File name is /storage/kkm_last_timestamp [13:21:13]Write 4 bytes [13:21:13]NVStorageSaveData done [13:21:13]ExternCall_PrintAddStr [13:21:13]wPrintStart [13:21:13]Write to MH i2c: 01 00 00 09 9B A4 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 09 9B 00 00 00 00 00 FF 0F B9 [13:21:13]RasterBufferAndPrint [13:21:13]line Счет N : (1)30715 [13:21:13]line ИНН: 02508201610067 [13:21:13]line Контрольно-Кассовый Чек [13:21:13]line ПРОДАЖА [13:21:13]line ТРК (МРК, ГНК) : 21 [13:21:13]line Товар: 2710124130 [13:21:13]line Аи-92-К-5 [13:21:13]line 22.770 * 65.90 [13:21:13]line = 1500.54 [13:21:13]line НДС 12% НСП 1% [13:21:13]line > о реализуемом товаре [13:21:13]line ОКРУГЛЕНИЕ: -0.54 [13:21:13]line ИТОГО: 1500.00 [13:21:13]line Внесено: 1500.00 [13:21:13]line СДАЧА: 0.00 [13:21:13]line НСП 1% : 13.28 [13:21:13]line НДС 12% : 159.35 [13:21:13]line Наличными: 1500.00 [13:21:13]line Безнал.: 0.00 [13:21:13]line Место: АЗС № 170 "Партнер Нефть" [13:21:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:21:13]line СНО: Общий режим [13:21:13]line Чек 159 25.10.2024 13:21 [13:21:13]line Смена: 540 ФФД: 1.0 [13:21:13]line ЗНМ: 0300000110 [13:21:13]line РНМ: 0000000000091776 [13:21:13]line Версия ККМ: 001 [13:21:13]line [13:21:13]line Дисконтная программа [13:21:13]line АИ-92 [13:21:13]line номер 170 [13:21:13]line сэкономлено 22.77 сом [13:21:13]line ФМ: 0000000000871754 [13:21:13]line ФД: 191420 [13:21:13]line ФПД: 25355894716550 [13:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132120&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191420&fm=25355894716550&tin=02508201610067®Number=0000000000091776&sum=150000 [13:21:13]OFD Sender: Processing packet 191420 [packets to send 75, broken 74] [13:21:13]ProducePacketName [13:21:13]name=ofd_packets/00191420 [13:21:13]OFD Sender: To server: pG, [13:21:13]CommunicateWithHost lk.salyk.kg:30040 [13:21:13]ConnectInit lk.salyk.kg [13:21:13]written 0, free lines is 4095 [13:21:13]Connected sock=10 [13:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 9A 07 01 52 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EB 02 00 35 04 06 00 17 0F A1 18 F8 86 59 F2 2D 5A FF B0 1E 7B [13:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C 56 47 00 E1 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EB 02 00 F4 03 04 00 1F 40 1B 67 B6 04 01 00 00 3D 86 24 98 37 A5 9A BA [13:21:13]CommunicateWithHost err = 0 [13:21:13]CheckOFDResponse [13:21:13]1017 (14) - 77093643461234 [13:21:13]1041 (16) - 0000000000871754 [13:21:13]1040 (4) - 191420 [13:21:13]1012 (4) - 25.10.2024 06:52 [13:21:13]1206 (1) - 0 [13:21:13]OFD Sender: Remove packet 191420 [13:21:13]ProducePacketName [13:21:13]name=ofd_packets/00191420 [13:21:13]NVStorageDeleteData [13:21:13]Write to MH i2c: 01 00 00 39 9B D4 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 39 9B 00 00 00 00 00 7C 0C 63 [13:21:13]RasterBufferAndPrint [13:21:13]line [13:21:13]line [13:21:13]line [13:21:13]line [13:21:13]line [13:21:13]written 0, free lines is 3202 [13:21:13]MH_Cut [13:21:13]Write to MH i2c: D1 01 00 40 9B 01 AD [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: D1 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: D1 01 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: D1 01 00 40 9B 00 AC [13:21:13]Write to MH i2c: 01 00 00 41 9B DC [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:14]OFD Sender: No OFD packet to send [13:21:14]*** Cut start [13:21:14]*** Partial cut [13:21:14]*** CUTSNS_PIN = 1 [13:21:14]*** CUTSNS_PIN = 0 [13:21:15]*** Brake cut motor [13:21:15]Read from MH i2c: 01 [13:21:15]MH_I2C_Read... [13:21:15]*** Stop cut motor [13:21:15]*** Cut end [13:21:15]Read from MH i2c: 01 07 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: 01 07 00 41 9B 00 00 00 00 00 FF 0F F1 [13:21:15]process_action close_receipt done [13:21:15]requested_data is exist [13:21:15]produce_requested_data [13:21:15]requested_item fm.sn is exist - process it [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 11 00 00 [13:21:15]Write to MH i2c: E2 08 00 42 9B 80 11 00 00 00 00 00 00 57 [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 17 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 17 00 42 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [13:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:15]wFMCommunicate OK [13:21:15]requested_item fd.num is exist - process it [13:21:15]SAM_PROTO_GetFieldsCounters [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 13 00 00 [13:21:15]Write to MH i2c: E2 08 00 43 9B 80 13 00 00 00 00 00 00 5A [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 62 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 62 00 43 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [13:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_GetFieldsCounters done [13:21:15]requested_item shift.num is exist - process it [13:21:15]requested_item shift.opened is exist - process it [13:21:15]req_shift_opened [13:21:15]FM_GetShiftState [13:21:15]SAM_PROTO_GetShiftState [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 13 01 00 [13:21:15]Write to MH i2c: E2 08 00 44 9B 80 13 01 00 00 00 00 00 5C [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 44 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1F [13:21:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_GetShiftState done [13:21:15]FM_GetShiftState done [13:21:15]req_shift_opened done [13:21:15]requested_item shift.open_date is exist - process it [13:21:15]req_shift_open_date [13:21:15]req_shift_open_date done [13:21:15]produce_requested_data done [13:21:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191420,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:21:15]process_action_free close_receipt [13:21:15]json_value_free [13:21:15]json_value_free done [13:21:15]process_json_proto returns [13:21:15]Send response to host [13:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191420,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:21:15]free response buf [13:21:15]execute_script done [13:21:15]execute_script returns [13:21:15]free content buf [13:21:15]Sock 9.Close socket [13:21:15]Sock 9.Thread stoped [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:21]accept exits with 8 [13:22:21]New connection [13:22:21]New thread 3066817892 created [13:22:21]Thread 3066961252 joined [13:22:21]Waiting for new connection... [13:22:21] Sock 8.Parse request [13:22:21]Sock 8.Check first char [13:22:21]Sock 8.First char is OK [13:22:21]request: POST /json_proto HTTP/1.0 [13:22:21]Method: POST [13:22:21]URL: /json_proto [13:22:21]Method is POST - this is cgi request [13:22:21]url: /json_proto [13:22:21]query_string will be loaded in cgi processing [13:22:21]execute_cgi json_proto POST (null) [13:22:21]execute_cgi path=json_proto method=POST [13:22:21]POST find Content-Length [13:22:21]Host: 172.17.63.131:8080 [13:22:21]Content-Length: 983 [13:22:21]Content-Type: application/json [13:22:21] [13:22:21]POST finish read [13:22:21]Found Content-Length = 983 [13:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:21]execute_script... [13:22: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)30716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:21]POST & json_proto [13:22:21]process_json_proto [13:22:21]json parsed OK: [13:22:21]protocol is kg_v1.0 [13:22:21]action value=close_receipt [13:22:21]process_action close_receipt [13:22:21]cmd_close_receipt [13:22:21]MH_GetDate [13:22:21]Write to MH i2c: F0 00 00 45 9B CF [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: F0 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: F0 09 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: F0 09 00 45 9B 00 96 9B 1B 67 22 05 6E 64 84 [13:22:21]GetLastDocTimeStamp 1729862480 [13:22:21]current date 1729862550 [13:22:21]FM_GetShiftState [13:22:21]SAM_PROTO_GetShiftState [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 13 01 00 [13:22:21]Write to MH i2c: E2 08 00 46 9B 80 13 01 00 00 00 00 00 5E [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0E 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0E 00 46 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 21 [13:22:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:22:21]wFMCommunicate OK [13:22:21]SAM_PROTO_GetShiftState done [13:22:21]FM_GetShiftState done [13:22:21]opened in 1729816399 [13:22:21]opened+sec_in_day 1729902799 [13:22:21]quantity*price = 250024 [13:22:21]sum+1 = 250026 [13:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 160 25.10.2024 13:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 37.94 сом ФМ: 0000000000871754 ФД: 191421 ФПД: 204946630354526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191421&fm=204946630354526&tin=02508201610067®Number=0000000000091776&sum=250000 [13:22:22]StoreToDocumentArchive [13:22:22]shift 540 fd 191421 [13:22:22]save to /storage/0540/doc_00191421 [13:22:22]save last doc name /storage/0540/doc_00191421 to /storage/kkm_last_doc_name [13:22:22]save OK [13:22:22]Clear old archive folders... [13:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:22]tlvbuf is 016BC680 [13:22:22]SAM_PROTO_ClearQueue [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 09 00 00 [13:22:22]Write to MH i2c: E2 08 00 53 9B 80 09 00 00 00 00 00 00 60 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 53 9B 00 90 00 62 [13:22:22]RAPDU: 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_ClearQueue done [13:22:22]KKMCreateOFDPacket [13:22:22]OFDProtocolAddRootSTLVToBuf [13:22:22]FM_MakeSignedData [13:22:22]FM_MakeSignedData [13:22:22]SAM_PROTO_SignData [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 0D 01 02 [13:22:22]Write to MH i2c: E2 08 00 54 9B 80 0D 01 02 00 00 00 00 68 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 54 9B 00 90 00 63 [13:22:23]RAPDU: 90 00 [13:22:23]wFMCommunicate OK [13:22:23]wFMCommunicate request_size=255 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 A0 00 00 00 F4 03 04 00 96 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EB 02 00 35 04 06 00 BA [13:22:23]Write to MH i2c: E2 02 01 55 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 A0 00 00 00 F4 03 04 00 96 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EB 02 00 35 04 06 00 BA 00 00 F8 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 55 9B 00 90 00 64 [13:22:23]RAPDU: 90 00 [13:22:23]wFMCommunicate OK [13:22:23]wFMCommunicate request_size=10 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 0D 02 02 05 65 DB 19 A6 5E [13:22:23]Write to MH i2c: E2 0D 00 56 9B 80 0D 02 02 05 00 65 DB 19 A6 5E 00 00 D2 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 56 9B 00 90 00 65 [13:22:23]RAPDU: 90 00 [13:22:23]wFMCommunicate OK [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 0D 03 02 [13:22:23]Write to MH i2c: E2 08 00 57 9B 80 0D 03 02 00 00 00 00 6D [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0B 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0B 00 57 9B 00 8D CC 94 09 E1 A5 4A 7E 90 00 B2 [13:22:23]RAPDU: 8D CC 94 09 E1 A5 4A 7E 90 00 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_SignData done [13:22:23]FM_MakeSignedData done [13:22:23]CreateOFDProtocolMessage [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 11 00 00 [13:22:23]Write to MH i2c: E2 08 00 58 9B 80 11 00 00 00 00 00 00 6D [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 58 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [13:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:22:23]wFMCommunicate OK [13:22:23]CreateOFDProtocolMessage done [13:22:23]OFDSenderStorePacket 191421 [13:22:23]StoreOFDPacket docnum=191421 [13:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 95 FB 07 01 AB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 A0 00 00 00 F4 03 04 00 96 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EB 02 00 35 04 06 00 BA 65 DB 19 A6 5E 8D CC 94 09 E1 A5 4A 7E [13:22:23]CheckFolder [13:22:23]dirname=/storage/ofd_packets [13:22:23]CheckFolder done [13:22:23]ProducePacketName [13:22:23]name=ofd_packets/00191421 [13:22:23]NVStorageSaveData ofd_packets/00191421 [13:22:23]File name is /storage/ofd_packets/00191421 [13:22:23]Write 301 bytes [13:22:23]NVStorageSaveData done [13:22:23]OFDSenderStorePacket done [13:22:23]KKMCreateOFDPacket done [13:22:23]NVStorageSaveData kkm_last_timestamp [13:22:23]File name is /storage/kkm_last_timestamp [13:22:23]Write 4 bytes [13:22:23]NVStorageSaveData done [13:22:23]ExternCall_PrintAddStr [13:22:23]wPrintStart [13:22:23]Write to MH i2c: 01 00 00 59 9B F4 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 07 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 07 00 59 9B 00 00 00 00 00 FF 0F 09 [13:22:23]RasterBufferAndPrint [13:22:23]line Счет N : (1)30716 [13:22:23]line ИНН: 02508201610067 [13:22:23]line Контрольно-Кассовый Чек [13:22:23]line ПРОДАЖА [13:22:23]line ТРК (МРК, ГНК) : 12 [13:22:23]line Товар: 2710124130 [13:22:23]line Аи-92-К-5 [13:22:23]line 37.940 * 65.90 [13:22:23]line = 2500.25 [13:22:23]line НДС 12% НСП 1% [13:22:23]line > о реализуемом товаре [13:22:23]line ОКРУГЛЕНИЕ: -0.25 [13:22:23]line ИТОГО: 2500.00 [13:22:23]line Внесено: 2500.00 [13:22:23]line СДАЧА: 0.00 [13:22:23]line НСП 1% : 22.13 [13:22:23]line НДС 12% : 265.51 [13:22:23]line Наличными: 2500.00 [13:22:23]line Безнал.: 0.00 [13:22:23]line Место: АЗС № 170 "Партнер Нефть" [13:22:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:22:23]line СНО: Общий режим [13:22:23]line Чек 160 25.10.2024 13:22 [13:22:23]line Смена: 540 ФФД: 1.0 [13:22:23]line ЗНМ: 0300000110 [13:22:23]line РНМ: 0000000000091776 [13:22:23]line Версия ККМ: 001 [13:22:23]line [13:22:23]line Дисконтная программа [13:22:23]line АИ-92 [13:22:23]line номер 170 [13:22:23]line сэкономлено 37.94 сом [13:22:23]line ФМ: 0000000000871754 [13:22:23]line ФД: 191421 [13:22:23]line ФПД: 204946630354526 [13:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191421&fm=204946630354526&tin=02508201610067®Number=0000000000091776&sum=250000 [13:22:23]OFD Sender: Processing packet 191421 [packets to send 75, broken 74] [13:22:23]ProducePacketName [13:22:23]name=ofd_packets/00191421 [13:22:23]OFD Sender: To server: pG, [13:22:23]CommunicateWithHost lk.salyk.kg:30040 [13:22:23]ConnectInit lk.salyk.kg [13:22:23]written 0, free lines is 4095 [13:22:23]Connected sock=10 [13:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 95 FB 07 01 AB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 A0 00 00 00 F4 03 04 00 96 9B 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EB 02 00 35 04 06 00 BA 65 DB 19 A6 5E 8D CC 94 09 E1 A5 4A 7E [13:22:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 CA 47 00 1D 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 31 37 35 34 10 04 04 00 BD EB 02 00 F4 03 04 00 65 40 1B 67 B6 04 01 00 00 CD 4F BB D5 14 10 95 4C [13:22:24]CommunicateWithHost err = 0 [13:22:24]CheckOFDResponse [13:22:24]1017 (14) - 77093643461234 [13:22:24]1041 (16) - 0000000000871754 [13:22:24]1040 (4) - 191421 [13:22:24]1012 (4) - 25.10.2024 06:53 [13:22:24]1206 (1) - 0 [13:22:24]OFD Sender: Remove packet 191421 [13:22:24]ProducePacketName [13:22:24]name=ofd_packets/00191421 [13:22:24]NVStorageDeleteData [13:22:24]Write to MH i2c: 01 00 00 89 9B 24 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 89 9B 00 00 00 00 00 6C 0C A3 [13:22:24]RasterBufferAndPrint [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]written 0, free lines is 3187 [13:22:24]MH_Cut [13:22:24]Write to MH i2c: D1 01 00 90 9B 01 FD [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 90 9B 00 FC [13:22:24]Write to MH i2c: 01 00 00 91 9B 2C [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]OFD Sender: No OFD packet to send [13:22:25]*** Cut start [13:22:25]*** Partial cut [13:22:25]*** CUTSNS_PIN = 1 [13:22:25]*** CUTSNS_PIN = 0 [13:22:25]*** Brake cut motor [13:22:25]Read from MH i2c: 01 [13:22:25]MH_I2C_Read... [13:22:25]*** Stop cut motor [13:22:25]*** Cut end [13:22:25]Read from MH i2c: 01 07 00 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: 01 07 00 91 9B 00 00 00 00 00 FF 0F 41 [13:22:25]process_action close_receipt done [13:22:25]requested_data is exist [13:22:25]produce_requested_data [13:22:25]requested_item fm.sn is exist - process it [13:22:25]wFMCommunicate request_size=4 [13:22:25]MH_SAM_APDU [13:22:25]CAPDU: 80 11 00 00 [13:22:25]Write to MH i2c: E2 08 00 92 9B 80 11 00 00 00 00 00 00 A7 [13:22:25]Write i2c OK [13:22:25]MH_I2C_Read... [13:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:25]Read from MH i2c: E2 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 17 00 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 17 00 92 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [13:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:22:25]wFMCommunicate OK [13:22:25]requested_item fd.num is exist - process it [13:22:25]SAM_PROTO_GetFieldsCounters [13:22:25]wFMCommunicate request_size=4 [13:22:25]MH_SAM_APDU [13:22:25]CAPDU: 80 13 00 00 [13:22:25]Write to MH i2c: E2 08 00 93 9B 80 13 00 00 00 00 00 00 AA [13:22:25]Write i2c OK [13:22:25]MH_I2C_Read... [13:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:25]Read from MH i2c: E2 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 62 00 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 62 00 93 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:22:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:25]wFMCommunicate OK [13:22:25]SAM_PROTO_GetFieldsCounters done [13:22:25]requested_item shift.num is exist - process it [13:22:25]requested_item shift.opened is exist - process it [13:22:25]req_shift_opened [13:22:25]FM_GetShiftState [13:22:25]SAM_PROTO_GetShiftState [13:22:25]wFMCommunicate request_size=4 [13:22:25]MH_SAM_APDU [13:22:25]CAPDU: 80 13 01 00 [13:22:25]Write to MH i2c: E2 08 00 94 9B 80 13 01 00 00 00 00 00 AC [13:22:25]Write i2c OK [13:22:25]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 0E 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 0E 00 94 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6F [13:22:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:22:26]wFMCommunicate OK [13:22:26]SAM_PROTO_GetShiftState done [13:22:26]FM_GetShiftState done [13:22:26]req_shift_opened done [13:22:26]requested_item shift.open_date is exist - process it [13:22:26]req_shift_open_date [13:22:26]req_shift_open_date done [13:22:26]produce_requested_data done [13:22:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191421,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:22:26]process_action_free close_receipt [13:22:26]json_value_free [13:22:26]json_value_free done [13:22:26]process_json_proto returns [13:22:26]Send response to host [13:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191421,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:22:26]free response buf [13:22:26]execute_script done [13:22:26]execute_script returns [13:22:26]free content buf [13:22:26]Sock 8.Close socket [13:22:26]Sock 8.Thread stoped [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:28:19]ConnectInit Can't connect to host [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:29:58]accept exits with 9 [13:29:58]New connection [13:29:58]New thread 3066961252 created [13:29:58]Thread 3066817892 joined [13:29:58]Waiting for new connection... [13:29:58] Sock 9.Parse request [13:29:58]Sock 9.Check first char [13:29:58]Sock 9.First char is OK [13:29:58]request: POST /json_proto HTTP/1.0 [13:29:58]Method: POST [13:29:58]URL: /json_proto [13:29:58]Method is POST - this is cgi request [13:29:58]url: /json_proto [13:29:58]query_string will be loaded in cgi processing [13:29:58]execute_cgi json_proto POST (null) [13:29:58]execute_cgi path=json_proto method=POST [13:29:58]POST find Content-Length [13:29:58]Host: 172.17.63.131:8080 [13:29:58]Content-Length: 677 [13:29:58]Content-Type: application/json [13:29:58] [13:29:58]POST finish read [13:29:58]Found Content-Length = 677 [13:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:58]execute_script... [13:29: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)30717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:58]POST & json_proto [13:29:58]process_json_proto [13:29:58]json parsed OK: [13:29:58]protocol is kg_v1.0 [13:29:58]action value=close_receipt [13:29:58]process_action close_receipt [13:29:58]cmd_close_receipt [13:29:58]MH_GetDate [13:29:58]Write to MH i2c: F0 00 00 95 9B 1F [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: F0 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: F0 09 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: F0 09 00 95 9B 00 60 9D 1B 67 22 05 6E 64 A0 [13:29:58]GetLastDocTimeStamp 1729862550 [13:29:58]current date 1729863008 [13:29:58]FM_GetShiftState [13:29:58]SAM_PROTO_GetShiftState [13:29:58]wFMCommunicate request_size=4 [13:29:58]MH_SAM_APDU [13:29:58]CAPDU: 80 13 01 00 [13:29:58]Write to MH i2c: E2 08 00 96 9B 80 13 01 00 00 00 00 00 AE [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:58]Read from MH i2c: E2 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 0E 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 0E 00 96 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 71 [13:29:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:29:58]wFMCommunicate OK [13:29:58]SAM_PROTO_GetShiftState done [13:29:58]FM_GetShiftState done [13:29:58]opened in 1729816399 [13:29:58]opened+sec_in_day 1729902799 [13:29:58]quantity*price = 80012 [13:29:58]sum+1 = 80013 [13:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 161 25.10.2024 13:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191422 ФПД: 50287531160931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191422&fm=50287531160931&tin=02508201610067®Number=0000000000091776&sum=80000 [13:30:00]StoreToDocumentArchive [13:30:00]shift 540 fd 191422 [13:30:00]save to /storage/0540/doc_00191422 [13:30:00]save last doc name /storage/0540/doc_00191422 to /storage/kkm_last_doc_name [13:30:00]save OK [13:30:00]Clear old archive folders... [13:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:00]tlvbuf is 01789CC0 [13:30:00]SAM_PROTO_ClearQueue [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 09 00 00 [13:30:00]Write to MH i2c: E2 08 00 A3 9B 80 09 00 00 00 00 00 00 B0 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:00]OFD Sender: No OFD packet to send [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 A3 9B 00 90 00 B2 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]SAM_PROTO_ClearQueue done [13:30:00]KKMCreateOFDPacket [13:30:00]OFDProtocolAddRootSTLVToBuf [13:30:00]FM_MakeSignedData [13:30:00]FM_MakeSignedData [13:30:00]SAM_PROTO_SignData [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 01 02 [13:30:00]Write to MH i2c: E2 08 00 A4 9B 80 0D 01 02 00 00 00 00 B8 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 A4 9B 00 90 00 B3 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=255 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 60 9D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EB 02 00 35 04 06 00 2D [13:30:00]Write to MH i2c: E2 02 01 A5 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 60 9D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EB 02 00 35 04 06 00 2D 00 00 4E [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 A5 9B 00 90 00 B4 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=10 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 02 02 05 BC 7A 6E 75 63 [13:30:00]Write to MH i2c: E2 0D 00 A6 9B 80 0D 02 02 05 00 BC 7A 6E 75 63 00 00 41 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 03 00 A6 9B 00 90 00 B5 [13:30:00]RAPDU: 90 00 [13:30:00]wFMCommunicate OK [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 0D 03 02 [13:30:00]Write to MH i2c: E2 08 00 A7 9B 80 0D 03 02 00 00 00 00 BD [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0B 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0B 00 A7 9B 00 F8 09 D5 68 29 14 CC 0E 90 00 13 [13:30:00]RAPDU: F8 09 D5 68 29 14 CC 0E 90 00 [13:30:00]wFMCommunicate OK [13:30:00]SAM_PROTO_SignData done [13:30:00]FM_MakeSignedData done [13:30:00]CreateOFDProtocolMessage [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 11 00 00 [13:30:00]Write to MH i2c: E2 08 00 A8 9B 80 11 00 00 00 00 00 00 BD [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 17 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 17 00 A8 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [13:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:30:00]wFMCommunicate OK [13:30:00]CreateOFDProtocolMessage done [13:30:00]OFDSenderStorePacket 191422 [13:30:00]StoreOFDPacket docnum=191422 [13:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 13 07 01 CD 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 60 9D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EB 02 00 35 04 06 00 2D BC 7A 6E 75 63 F8 09 D5 68 29 14 CC 0E [13:30:00]CheckFolder [13:30:00]dirname=/storage/ofd_packets [13:30:00]CheckFolder done [13:30:00]ProducePacketName [13:30:00]name=ofd_packets/00191422 [13:30:00]NVStorageSaveData ofd_packets/00191422 [13:30:00]File name is /storage/ofd_packets/00191422 [13:30:00]Write 301 bytes [13:30:00]NVStorageSaveData done [13:30:00]OFDSenderStorePacket done [13:30:00]KKMCreateOFDPacket done [13:30:00]NVStorageSaveData kkm_last_timestamp [13:30:00]File name is /storage/kkm_last_timestamp [13:30:00]Write 4 bytes [13:30:00]NVStorageSaveData done [13:30:00]ExternCall_PrintAddStr [13:30:00]wPrintStart [13:30:00]Write to MH i2c: 01 00 00 A9 9B 44 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: 01 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: 01 07 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: 01 07 00 A9 9B 00 00 00 00 00 FF 0F 59 [13:30:00]RasterBufferAndPrint [13:30:00]line Счет N : (1)30717 [13:30:00]line ИНН: 02508201610067 [13:30:00]line Контрольно-Кассовый Чек [13:30:00]line ПРОДАЖА [13:30:00]line ТРК (МРК, ГНК) : 21 [13:30:00]line Товар: 2710124130 [13:30:00]line Аи-92-К-5 [13:30:00]line 11.960 * 66.90 [13:30:00]line = 800.12 [13:30:00]line НДС 12% НСП 1% [13:30:00]line > о реализуемом товаре [13:30:00]line ОКРУГЛЕНИЕ: -0.12 [13:30:00]line ИТОГО: 800.00 [13:30:00]line Внесено: 800.00 [13:30:00]line СДАЧА: 0.00 [13:30:00]line НСП 1% : 7.08 [13:30:00]line НДС 12% : 84.97 [13:30:00]line Наличными: 800.00 [13:30:00]line Безнал.: 0.00 [13:30:00]line Место: АЗС № 170 "Партнер Нефть" [13:30:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:30:00]line СНО: Общий режим [13:30:00]line Чек 161 25.10.2024 13:30 [13:30:00]line Смена: 540 ФФД: 1.0 [13:30:00]line ЗНМ: 0300000110 [13:30:00]line РНМ: 0000000000091776 [13:30:00]line Версия ККМ: 001 [13:30:00]line ФМ: 0000000000871754 [13:30:00]line ФД: 191422 [13:30:00]line ФПД: 50287531160931 [13:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191422&fm=50287531160931&tin=02508201610067®Number=0000000000091776&sum=80000 [13:30:00]written 0, free lines is 4095 [13:30:00]OFD Sender: Processing packet 191422 [packets to send 75, broken 74] [13:30:00]ProducePacketName [13:30:00]name=ofd_packets/00191422 [13:30:00]OFD Sender: To server: pG, [13:30:00]CommunicateWithHost lk.salyk.kg:30040 [13:30:00]ConnectInit lk.salyk.kg [13:30:00]Connected sock=11 [13:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 13 07 01 CD 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 60 9D 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EB 02 00 35 04 06 00 2D BC 7A 6E 75 63 F8 09 D5 68 29 14 CC 0E [13:30:01]Write to MH i2c: 01 00 00 D4 9B 6F [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 D4 9B 00 00 00 00 00 C5 0C 47 [13:30:01]RasterBufferAndPrint [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]line [13:30:01]written 0, free lines is 3275 [13:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 8D 47 00 6C 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 31 37 35 34 10 04 04 00 BE EB 02 00 F4 03 04 00 2E 42 1B 67 B6 04 01 00 00 14 22 8C F4 A5 FF 37 74 [13:30:01]CommunicateWithHost err = 0 [13:30:01]CheckOFDResponse [13:30:01]1017 (14) - 77093643461234 [13:30:01]1041 (16) - 0000000000871754 [13:30:01]1040 (4) - 191422 [13:30:01]1012 (4) - 25.10.2024 07:01 [13:30:01]1206 (1) - 0 [13:30:01]OFD Sender: Remove packet 191422 [13:30:01]ProducePacketName [13:30:01]name=ofd_packets/00191422 [13:30:01]NVStorageDeleteData [13:30:01]MH_Cut [13:30:01]Write to MH i2c: D1 01 00 DB 9B 01 48 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: D1 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: D1 01 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: D1 01 00 DB 9B 00 47 [13:30:01]Write to MH i2c: 01 00 00 DC 9B 77 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]OFD Sender: No OFD packet to send [13:30:01]*** Cut start [13:30:01]*** Partial cut [13:30:01]*** CUTSNS_PIN = 1 [13:30:01]*** CUTSNS_PIN = 0 [13:30:02]*** Brake cut motor [13:30:02]Read from MH i2c: 01 [13:30:02]MH_I2C_Read... [13:30:02]*** Stop cut motor [13:30:02]*** Cut end [13:30:02]Read from MH i2c: 01 07 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: 01 07 00 DC 9B 00 00 00 00 00 FF 0F 8C [13:30:02]process_action close_receipt done [13:30:02]requested_data is exist [13:30:02]produce_requested_data [13:30:02]requested_item fm.sn is exist - process it [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 11 00 00 [13:30:02]Write to MH i2c: E2 08 00 DD 9B 80 11 00 00 00 00 00 00 F2 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 17 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 17 00 DD 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [13:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:30:02]wFMCommunicate OK [13:30:02]requested_item fd.num is exist - process it [13:30:02]SAM_PROTO_GetFieldsCounters [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 13 00 00 [13:30:02]Write to MH i2c: E2 08 00 DE 9B 80 13 00 00 00 00 00 00 F5 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 62 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 62 00 DE 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [13:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_GetFieldsCounters done [13:30:02]requested_item shift.num is exist - process it [13:30:02]requested_item shift.opened is exist - process it [13:30:02]req_shift_opened [13:30:02]FM_GetShiftState [13:30:02]SAM_PROTO_GetShiftState [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 13 01 00 [13:30:02]Write to MH i2c: E2 08 00 DF 9B 80 13 01 00 00 00 00 00 F7 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 DF 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BA [13:30:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_GetShiftState done [13:30:02]FM_GetShiftState done [13:30:02]req_shift_opened done [13:30:02]requested_item shift.open_date is exist - process it [13:30:02]req_shift_open_date [13:30:02]req_shift_open_date done [13:30:02]produce_requested_data done [13:30:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191422,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:30:02]process_action_free close_receipt [13:30:02]json_value_free [13:30:02]json_value_free done [13:30:02]process_json_proto returns [13:30:02]Send response to host [13:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191422,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:30:02]free response buf [13:30:02]execute_script done [13:30:02]execute_script returns [13:30:02]free content buf [13:30:02]Sock 9.Close socket [13:30:02]Sock 9.Thread stoped [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:13]accept exits with 8 [13:35:13]New connection [13:35:13]New thread 3066817892 created [13:35:13]Thread 3066961252 joined [13:35:13]Waiting for new connection... [13:35:13] Sock 8.Parse request [13:35:13]Sock 8.Check first char [13:35:13]Sock 8.First char is OK [13:35:13]request: POST /json_proto HTTP/1.0 [13:35:13]Method: POST [13:35:13]URL: /json_proto [13:35:13]Method is POST - this is cgi request [13:35:13]url: /json_proto [13:35:13]query_string will be loaded in cgi processing [13:35:13]execute_cgi json_proto POST (null) [13:35:13]execute_cgi path=json_proto method=POST [13:35:13]POST find Content-Length [13:35:13]Host: 172.17.63.131:8080 [13:35:13]Content-Length: 865 [13:35:13]Content-Type: application/json [13:35:13] [13:35:13]POST finish read [13:35:13]Found Content-Length = 865 [13:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:13]execute_script... [13:35: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)30718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:13]POST & json_proto [13:35:13]process_json_proto [13:35:13]json parsed OK: [13:35:13]protocol is kg_v1.0 [13:35:13]action value=close_receipt [13:35:13]process_action close_receipt [13:35:13]cmd_close_receipt [13:35:13]MH_GetDate [13:35:13]Write to MH i2c: F0 00 00 E0 9B 6A [13:35:13]Write i2c OK [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: F0 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: F0 09 00 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: F0 09 00 E0 9B 00 9A 9E 1B 67 22 05 6E 64 26 [13:35:13]GetLastDocTimeStamp 1729863008 [13:35:13]current date 1729863322 [13:35:13]FM_GetShiftState [13:35:13]SAM_PROTO_GetShiftState [13:35:13]wFMCommunicate request_size=4 [13:35:13]MH_SAM_APDU [13:35:13]CAPDU: 80 13 01 00 [13:35:13]Write to MH i2c: E2 08 00 E1 9B 80 13 01 00 00 00 00 00 F9 [13:35:13]Write i2c OK [13:35:13]MH_I2C_Read... [13:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:13]Read from MH i2c: E2 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: E2 0E 00 [13:35:13]MH_I2C_Read... [13:35:13]Read from MH i2c: E2 0E 00 E1 9B 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BC [13:35:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:35:13]wFMCommunicate OK [13:35:13]SAM_PROTO_GetShiftState done [13:35:13]FM_GetShiftState done [13:35:13]opened in 1729816399 [13:35:13]opened+sec_in_day 1729902799 [13:35:13]quantity*price = 100015 [13:35:13]sum+1 = 100017 [13:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 162 25.10.2024 13:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191423 ФПД: 212021395112803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191423&fm=212021395112803&tin=02508201610067®Number=0000000000091776&sum=100016 [13:35:14]StoreToDocumentArchive [13:35:14]shift 540 fd 191423 [13:35:14]save to /storage/0540/doc_00191423 [13:35:14]save last doc name /storage/0540/doc_00191423 to /storage/kkm_last_doc_name [13:35:14]save OK [13:35:14]Clear old archive folders... [13:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:14]tlvbuf is 01744FF0 [13:35:14]SAM_PROTO_ClearQueue [13:35:14]wFMCommunicate request_size=4 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 09 00 00 [13:35:14]Write to MH i2c: E2 08 00 EE 9B 80 09 00 00 00 00 00 00 FB [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 EE 9B 00 90 00 FD [13:35:14]RAPDU: 90 00 [13:35:14]wFMCommunicate OK [13:35:14]SAM_PROTO_ClearQueue done [13:35:14]KKMCreateOFDPacket [13:35:14]OFDProtocolAddRootSTLVToBuf [13:35:14]FM_MakeSignedData [13:35:14]FM_MakeSignedData [13:35:14]SAM_PROTO_SignData [13:35:14]wFMCommunicate request_size=4 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 0D 01 02 [13:35:14]Write to MH i2c: E2 08 00 EF 9B 80 0D 01 02 00 00 00 00 03 [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 EF 9B 00 90 00 FE [13:35:14]RAPDU: 90 00 [13:35:14]wFMCommunicate OK [13:35:14]wFMCommunicate request_size=255 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9A 9E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EB 02 00 35 04 06 00 C0 [13:35:14]Write to MH i2c: E2 02 01 F0 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9A 9E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EB 02 00 35 04 06 00 C0 00 00 97 [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 F0 9B 00 90 00 FF [13:35:14]RAPDU: 90 00 [13:35:14]wFMCommunicate OK [13:35:14]wFMCommunicate request_size=10 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 0D 02 02 05 D5 13 F0 C3 63 [13:35:14]Write to MH i2c: E2 0D 00 F1 9B 80 0D 02 02 05 00 D5 13 F0 C3 63 00 00 0E [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 03 00 F1 9B 00 90 00 00 [13:35:14]RAPDU: 90 00 [13:35:14]wFMCommunicate OK [13:35:14]wFMCommunicate request_size=4 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 0D 03 02 [13:35:14]Write to MH i2c: E2 08 00 F2 9B 80 0D 03 02 00 00 00 00 08 [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 0B 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 0B 00 F2 9B 00 EC 74 AA 63 DD 66 C8 ED 90 00 6E [13:35:14]RAPDU: EC 74 AA 63 DD 66 C8 ED 90 00 [13:35:14]wFMCommunicate OK [13:35:14]SAM_PROTO_SignData done [13:35:14]FM_MakeSignedData done [13:35:14]CreateOFDProtocolMessage [13:35:14]wFMCommunicate request_size=4 [13:35:14]MH_SAM_APDU [13:35:14]CAPDU: 80 11 00 00 [13:35:14]Write to MH i2c: E2 08 00 F3 9B 80 11 00 00 00 00 00 00 08 [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:14]Read from MH i2c: E2 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 17 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: E2 17 00 F3 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [13:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:14]wFMCommunicate OK [13:35:14]CreateOFDProtocolMessage done [13:35:14]OFDSenderStorePacket 191423 [13:35:14]StoreOFDPacket docnum=191423 [13:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE FF 07 01 5A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9A 9E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EB 02 00 35 04 06 00 C0 D5 13 F0 C3 63 EC 74 AA 63 DD 66 C8 ED [13:35:14]CheckFolder [13:35:14]dirname=/storage/ofd_packets [13:35:14]CheckFolder done [13:35:14]ProducePacketName [13:35:14]name=ofd_packets/00191423 [13:35:14]NVStorageSaveData ofd_packets/00191423 [13:35:14]File name is /storage/ofd_packets/00191423 [13:35:14]Write 301 bytes [13:35:14]NVStorageSaveData done [13:35:14]OFDSenderStorePacket done [13:35:14]KKMCreateOFDPacket done [13:35:14]NVStorageSaveData kkm_last_timestamp [13:35:14]File name is /storage/kkm_last_timestamp [13:35:14]Write 4 bytes [13:35:14]NVStorageSaveData done [13:35:14]ExternCall_PrintAddStr [13:35:14]wPrintStart [13:35:14]Write to MH i2c: 01 00 00 F4 9B 8F [13:35:14]Write i2c OK [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: 01 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: 01 07 00 [13:35:14]MH_I2C_Read... [13:35:14]Read from MH i2c: 01 07 00 F4 9B 00 00 00 00 00 FF 0F A4 [13:35:14]RasterBufferAndPrint [13:35:14]line Счет N : (1)30718 [13:35:14]line ИНН: 02508201610067 [13:35:14]line Контрольно-Кассовый Чек [13:35:14]line ПРОДАЖА [13:35:14]line ТРК (МРК, ГНК) : 21 [13:35:14]line Товар: 2710124130 [13:35:14]line Аи-92-К-5 [13:35:14]line 14.950 * 66.90 [13:35:14]line = 1000.16 [13:35:14]line НДС 12% НСП 1% [13:35:14]line > о реализуемом товаре [13:35:14]line ИТОГО: 1000.16 [13:35:14]line НСП 1% : 8.85 [13:35:14]line НДС 12% : 106.21 [13:35:14]line Наличными: 0.00 [13:35:14]line Безнал.: 1000.16 [13:35:14]line Место: АЗС № 170 "Партнер Нефть" [13:35:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:35:14]line СНО: Общий режим [13:35:14]line Чек 162 25.10.2024 13:35 [13:35:14]line Смена: 540 ФФД: 1.0 [13:35:14]line ЗНМ: 0300000110 [13:35:14]line РНМ: 0000000000091776 [13:35:14]line Версия ККМ: 001 [13:35:14]line Платежная система: Кыргызкоммерцбанк [13:35:14]line ФМ: 0000000000871754 [13:35:14]line ФД: 191423 [13:35:14]line ФПД: 212021395112803 [13:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191423&fm=212021395112803&tin=02508201610067®Number=0000000000091776&sum=100016 [13:35:15]OFD Sender: Processing packet 191423 [packets to send 75, broken 74] [13:35:15]ProducePacketName [13:35:15]name=ofd_packets/00191423 [13:35:15]OFD Sender: To server: pG, [13:35:15]CommunicateWithHost lk.salyk.kg:30040 [13:35:15]ConnectInit lk.salyk.kg [13:35:15]written 0, free lines is 4095 [13:35:15]Connected sock=10 [13:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE FF 07 01 5A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9A 9E 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EB 02 00 35 04 06 00 C0 D5 13 F0 C3 63 EC 74 AA 63 DD 66 C8 ED [13:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE 49 47 00 4E 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EB 02 00 F4 03 04 00 68 43 1B 67 B6 04 01 00 00 45 3C 90 20 32 8E 7B AF [13:35:15]CommunicateWithHost err = 0 [13:35:15]CheckOFDResponse [13:35:15]1017 (14) - 77093643461234 [13:35:15]1041 (16) - 0000000000871754 [13:35:15]1040 (4) - 191423 [13:35:15]1012 (4) - 25.10.2024 07:06 [13:35:15]1206 (1) - 0 [13:35:15]OFD Sender: Remove packet 191423 [13:35:15]ProducePacketName [13:35:15]name=ofd_packets/00191423 [13:35:15]NVStorageDeleteData [13:35:15]Write to MH i2c: 01 00 00 1E 9C BA [13:35:15]Write i2c OK [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: 01 [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: 01 07 00 [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: 01 07 00 1E 9C 00 00 00 00 00 E4 0C B1 [13:35:15]RasterBufferAndPrint [13:35:15]line [13:35:15]line [13:35:15]line [13:35:15]line [13:35:15]line [13:35:15]written 0, free lines is 3307 [13:35:15]MH_Cut [13:35:15]Write to MH i2c: D1 01 00 25 9C 01 93 [13:35:15]Write i2c OK [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: D1 [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: D1 01 00 [13:35:15]MH_I2C_Read... [13:35:15]Read from MH i2c: D1 01 00 25 9C 00 92 [13:35:15]Write to MH i2c: 01 00 00 26 9C C2 [13:35:15]Write i2c OK [13:35:15]MH_I2C_Read... [13:35:16]OFD Sender: No OFD packet to send [13:35:16]*** Cut start [13:35:16]*** Partial cut [13:35:16]*** CUTSNS_PIN = 1 [13:35:16]*** CUTSNS_PIN = 0 [13:35:16]*** Brake cut motor [13:35:17]Read from MH i2c: 01 [13:35:17]MH_I2C_Read... [13:35:17]*** Stop cut motor [13:35:17]*** Cut end [13:35:17]Read from MH i2c: 01 07 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: 01 07 00 26 9C 00 00 00 00 00 FF 0F D7 [13:35:17]process_action close_receipt done [13:35:17]requested_data is exist [13:35:17]produce_requested_data [13:35:17]requested_item fm.sn is exist - process it [13:35:17]wFMCommunicate request_size=4 [13:35:17]MH_SAM_APDU [13:35:17]CAPDU: 80 11 00 00 [13:35:17]Write to MH i2c: E2 08 00 27 9C 80 11 00 00 00 00 00 00 3D [13:35:17]Write i2c OK [13:35:17]MH_I2C_Read... [13:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:17]Read from MH i2c: E2 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 17 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 17 00 27 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [13:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:17]wFMCommunicate OK [13:35:17]requested_item fd.num is exist - process it [13:35:17]SAM_PROTO_GetFieldsCounters [13:35:17]wFMCommunicate request_size=4 [13:35:17]MH_SAM_APDU [13:35:17]CAPDU: 80 13 00 00 [13:35:17]Write to MH i2c: E2 08 00 28 9C 80 13 00 00 00 00 00 00 40 [13:35:17]Write i2c OK [13:35:17]MH_I2C_Read... [13:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:17]Read from MH i2c: E2 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 62 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 62 00 28 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:35:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:17]wFMCommunicate OK [13:35:17]SAM_PROTO_GetFieldsCounters done [13:35:17]requested_item shift.num is exist - process it [13:35:17]requested_item shift.opened is exist - process it [13:35:17]req_shift_opened [13:35:17]FM_GetShiftState [13:35:17]SAM_PROTO_GetShiftState [13:35:17]wFMCommunicate request_size=4 [13:35:17]MH_SAM_APDU [13:35:17]CAPDU: 80 13 01 00 [13:35:17]Write to MH i2c: E2 08 00 29 9C 80 13 01 00 00 00 00 00 42 [13:35:17]Write i2c OK [13:35:17]MH_I2C_Read... [13:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:17]Read from MH i2c: E2 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 0E 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 0E 00 29 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [13:35:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:35:17]wFMCommunicate OK [13:35:17]SAM_PROTO_GetShiftState done [13:35:17]FM_GetShiftState done [13:35:17]req_shift_opened done [13:35:17]requested_item shift.open_date is exist - process it [13:35:17]req_shift_open_date [13:35:17]req_shift_open_date done [13:35:17]produce_requested_data done [13:35:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191423,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:35:17]process_action_free close_receipt [13:35:17]json_value_free [13:35:17]json_value_free done [13:35:17]process_json_proto returns [13:35:17]Send response to host [13:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191423,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:35:17]free response buf [13:35:17]execute_script done [13:35:17]execute_script returns [13:35:17]free content buf [13:35:17]Sock 8.Close socket [13:35:17]Sock 8.Thread stoped [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:00]accept exits with 9 [13:41:00]New connection [13:41:00]New thread 3066961252 created [13:41:00]Thread 3066817892 joined [13:41:00]Waiting for new connection... [13:41:00] Sock 9.Parse request [13:41:00]Sock 9.Check first char [13:41:00]Sock 9.First char is OK [13:41:00]request: POST /json_proto HTTP/1.0 [13:41:00]Method: POST [13:41:00]URL: /json_proto [13:41:00]Method is POST - this is cgi request [13:41:00]url: /json_proto [13:41:00]query_string will be loaded in cgi processing [13:41:00]execute_cgi json_proto POST (null) [13:41:00]execute_cgi path=json_proto method=POST [13:41:00]POST find Content-Length [13:41:00]Host: 172.17.63.131:8080 [13:41:00]Content-Length: 672 [13:41:00]Content-Type: application/json [13:41:00] [13:41:00]POST finish read [13:41:00]Found Content-Length = 672 [13:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.450, "sum" : 97.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 97.00, "total" : 97.00, "payments": [ { "type": 0, "sum" : 97.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:00]execute_script... [13:41: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)30719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.450, "sum" : 97.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 97.00, "total" : 97.00, "payments": [ { "type": 0, "sum" : 97.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:00]POST & json_proto [13:41:00]process_json_proto [13:41:00]json parsed OK: [13:41:00]protocol is kg_v1.0 [13:41:00]action value=close_receipt [13:41:00]process_action close_receipt [13:41:00]cmd_close_receipt [13:41:00]MH_GetDate [13:41:00]Write to MH i2c: F0 00 00 2A 9C B5 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 09 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: F0 09 00 2A 9C 00 F5 9F 1B 67 22 05 6E 64 CD [13:41:00]GetLastDocTimeStamp 1729863322 [13:41:00]current date 1729863669 [13:41:00]FM_GetShiftState [13:41:00]SAM_PROTO_GetShiftState [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 01 00 [13:41:00]Write to MH i2c: E2 08 00 2B 9C 80 13 01 00 00 00 00 00 44 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 2B 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [13:41:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetShiftState done [13:41:00]FM_GetShiftState done [13:41:00]opened in 1729816399 [13:41:00]opened+sec_in_day 1729902799 [13:41:00]quantity*price = 9700 [13:41:00]sum+1 = 9702 [13:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 97.00 Внесено: 97.00 СДАЧА: 0.00 НСП 1% : 0.86 НДС 12% : 10.30 Наличными: 97.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 163 25.10.2024 13:41 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191424 ФПД: 195200778611308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T134109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191424&fm=195200778611308&tin=02508201610067®Number=0000000000091776&sum=9700 [13:41:01]StoreToDocumentArchive [13:41:01]shift 540 fd 191424 [13:41:01]save to /storage/0540/doc_00191424 [13:41:01]save last doc name /storage/0540/doc_00191424 to /storage/kkm_last_doc_name [13:41:01]save OK [13:41:01]Clear old archive folders... [13:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:01]tlvbuf is 017F1390 [13:41:01]SAM_PROTO_ClearQueue [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 09 00 00 [13:41:01]Write to MH i2c: E2 08 00 38 9C 80 09 00 00 00 00 00 00 46 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 38 9C 00 90 00 48 [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]SAM_PROTO_ClearQueue done [13:41:01]KKMCreateOFDPacket [13:41:01]OFDProtocolAddRootSTLVToBuf [13:41:01]FM_MakeSignedData [13:41:01]FM_MakeSignedData [13:41:01]SAM_PROTO_SignData [13:41:01]wFMCommunicate request_size=4 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 01 02 [13:41:01]Write to MH i2c: E2 08 00 39 9C 80 0D 01 02 00 00 00 00 4E [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:01]Read from MH i2c: E2 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: E2 03 00 39 9C 00 90 00 49 [13:41:01]RAPDU: 90 00 [13:41:01]wFMCommunicate OK [13:41:01]wFMCommunicate request_size=255 [13:41:01]MH_SAM_APDU [13:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 04 00 00 00 00 07 04 06 00 E4 25 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 F5 9F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EB 02 00 35 04 06 00 B1 [13:41:01]Write to MH i2c: E2 02 01 3A 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 04 00 00 00 00 07 04 06 00 E4 25 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 F5 9F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EB 02 00 35 04 06 00 B1 00 00 F9 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 03 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 03 00 3A 9C 00 90 00 4A [13:41:02]RAPDU: 90 00 [13:41:02]wFMCommunicate OK [13:41:02]wFMCommunicate request_size=10 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 0D 02 02 05 88 B9 11 AA 6C [13:41:02]Write to MH i2c: E2 0D 00 3B 9C 80 0D 02 02 05 00 88 B9 11 AA 6C 00 00 C3 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 03 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 03 00 3B 9C 00 90 00 4B [13:41:02]RAPDU: 90 00 [13:41:02]wFMCommunicate OK [13:41:02]wFMCommunicate request_size=4 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 0D 03 02 [13:41:02]Write to MH i2c: E2 08 00 3C 9C 80 0D 03 02 00 00 00 00 53 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 0B 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 0B 00 3C 9C 00 BD EF 2C EB A4 94 1D 85 90 00 F1 [13:41:02]RAPDU: BD EF 2C EB A4 94 1D 85 90 00 [13:41:02]wFMCommunicate OK [13:41:02]SAM_PROTO_SignData done [13:41:02]FM_MakeSignedData done [13:41:02]CreateOFDProtocolMessage [13:41:02]wFMCommunicate request_size=4 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 11 00 00 [13:41:02]Write to MH i2c: E2 08 00 3D 9C 80 11 00 00 00 00 00 00 53 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 17 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 17 00 3D 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [13:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:02]wFMCommunicate OK [13:41:02]CreateOFDProtocolMessage done [13:41:02]OFDSenderStorePacket 191424 [13:41:02]StoreOFDPacket docnum=191424 [13:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9D 77 07 01 69 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 04 00 00 00 00 07 04 06 00 E4 25 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 F5 9F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EB 02 00 35 04 06 00 B1 88 B9 11 AA 6C BD EF 2C EB A4 94 1D 85 [13:41:02]CheckFolder [13:41:02]dirname=/storage/ofd_packets [13:41:02]CheckFolder done [13:41:02]ProducePacketName [13:41:02]name=ofd_packets/00191424 [13:41:02]NVStorageSaveData ofd_packets/00191424 [13:41:02]File name is /storage/ofd_packets/00191424 [13:41:02]Write 301 bytes [13:41:02]NVStorageSaveData done [13:41:02]OFDSenderStorePacket done [13:41:02]KKMCreateOFDPacket done [13:41:02]NVStorageSaveData kkm_last_timestamp [13:41:02]File name is /storage/kkm_last_timestamp [13:41:02]Write 4 bytes [13:41:02]NVStorageSaveData done [13:41:02]ExternCall_PrintAddStr [13:41:02]wPrintStart [13:41:02]Write to MH i2c: 01 00 00 3E 9C DA [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 07 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 07 00 3E 9C 00 00 00 00 00 FF 0F EF [13:41:02]RasterBufferAndPrint [13:41:02]line Счет N : (1)30719 [13:41:02]line ИНН: 02508201610067 [13:41:02]line Контрольно-Кассовый Чек [13:41:02]line ПРОДАЖА [13:41:02]line ТРК (МРК, ГНК) : 12 [13:41:02]line Товар: 2710124130 [13:41:02]line Аи-92-К-5 [13:41:02]line 1.450 * 66.90 [13:41:02]line = 97.01 [13:41:02]line НДС 12% НСП 1% [13:41:02]line > о реализуемом товаре [13:41:02]line ОКРУГЛЕНИЕ: -0.01 [13:41:02]line ИТОГО: 97.00 [13:41:02]line Внесено: 97.00 [13:41:02]line СДАЧА: 0.00 [13:41:02]line НСП 1% : 0.86 [13:41:02]line НДС 12% : 10.30 [13:41:02]line Наличными: 97.00 [13:41:02]line Безнал.: 0.00 [13:41:02]line Место: АЗС № 170 "Партнер Нефть" [13:41:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:41:02]line СНО: Общий режим [13:41:02]line Чек 163 25.10.2024 13:41 [13:41:02]line Смена: 540 ФФД: 1.0 [13:41:02]line ЗНМ: 0300000110 [13:41:02]line РНМ: 0000000000091776 [13:41:02]line Версия ККМ: 001 [13:41:02]line ФМ: 0000000000871754 [13:41:02]line ФД: 191424 [13:41:02]line ФПД: 195200778611308 [13:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T134109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191424&fm=195200778611308&tin=02508201610067®Number=0000000000091776&sum=9700 [13:41:02]OFD Sender: Processing packet 191424 [packets to send 75, broken 74] [13:41:02]ProducePacketName [13:41:02]name=ofd_packets/00191424 [13:41:02]OFD Sender: To server: pG, [13:41:02]CommunicateWithHost lk.salyk.kg:30040 [13:41:02]ConnectInit lk.salyk.kg [13:41:02]written 0, free lines is 4095 [13:41:02]Connected sock=10 [13:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9D 77 07 01 69 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 04 00 00 00 00 07 04 06 00 E4 25 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 F5 9F 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EB 02 00 35 04 06 00 B1 88 B9 11 AA 6C BD EF 2C EB A4 94 1D 85 [13:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 86 47 00 A0 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 31 37 35 34 10 04 04 00 C0 EB 02 00 F4 03 04 00 C4 44 1B 67 B6 04 01 00 00 CD F0 3A D1 EC 6E 75 5F [13:41:02]CommunicateWithHost err = 0 [13:41:02]CheckOFDResponse [13:41:02]1017 (14) - 77093643461234 [13:41:02]1041 (16) - 0000000000871754 [13:41:02]1040 (4) - 191424 [13:41:02]1012 (4) - 25.10.2024 07:12 [13:41:02]1206 (1) - 0 [13:41:02]OFD Sender: Remove packet 191424 [13:41:02]ProducePacketName [13:41:02]name=ofd_packets/00191424 [13:41:02]NVStorageDeleteData [13:41:03]Write to MH i2c: 01 00 00 69 9C 05 [13:41:03]Write i2c OK [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: 01 [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: 01 07 00 [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: 01 07 00 69 9C 00 00 00 00 00 C4 0C DC [13:41:03]RasterBufferAndPrint [13:41:03]line [13:41:03]line [13:41:03]line [13:41:03]line [13:41:03]line [13:41:03]written 0, free lines is 3277 [13:41:03]MH_Cut [13:41:03]Write to MH i2c: D1 01 00 70 9C 01 DE [13:41:03]Write i2c OK [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: D1 [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: D1 01 00 [13:41:03]MH_I2C_Read... [13:41:03]Read from MH i2c: D1 01 00 70 9C 00 DD [13:41:03]Write to MH i2c: 01 00 00 71 9C 0D [13:41:03]Write i2c OK [13:41:03]MH_I2C_Read... [13:41:03]OFD Sender: No OFD packet to send [13:41:03]*** Cut start [13:41:03]*** Partial cut [13:41:03]*** CUTSNS_PIN = 1 [13:41:03]*** CUTSNS_PIN = 0 [13:41:04]*** Brake cut motor [13:41:04]Read from MH i2c: 01 [13:41:04]MH_I2C_Read... [13:41:04]*** Stop cut motor [13:41:04]*** Cut end [13:41:04]Read from MH i2c: 01 07 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: 01 07 00 71 9C 00 00 00 00 00 FF 0F 22 [13:41:04]process_action close_receipt done [13:41:04]requested_data is exist [13:41:04]produce_requested_data [13:41:04]requested_item fm.sn is exist - process it [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 11 00 00 [13:41:04]Write to MH i2c: E2 08 00 72 9C 80 11 00 00 00 00 00 00 88 [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 17 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 17 00 72 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [13:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:04]wFMCommunicate OK [13:41:04]requested_item fd.num is exist - process it [13:41:04]SAM_PROTO_GetFieldsCounters [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 13 00 00 [13:41:04]Write to MH i2c: E2 08 00 73 9C 80 13 00 00 00 00 00 00 8B [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 62 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 62 00 73 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:04]wFMCommunicate OK [13:41:04]SAM_PROTO_GetFieldsCounters done [13:41:04]requested_item shift.num is exist - process it [13:41:04]requested_item shift.opened is exist - process it [13:41:04]req_shift_opened [13:41:04]FM_GetShiftState [13:41:04]SAM_PROTO_GetShiftState [13:41:04]wFMCommunicate request_size=4 [13:41:04]MH_SAM_APDU [13:41:04]CAPDU: 80 13 01 00 [13:41:04]Write to MH i2c: E2 08 00 74 9C 80 13 01 00 00 00 00 00 8D [13:41:04]Write i2c OK [13:41:04]MH_I2C_Read... [13:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:04]Read from MH i2c: E2 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 0E 00 [13:41:04]MH_I2C_Read... [13:41:04]Read from MH i2c: E2 0E 00 74 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 50 [13:41:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:41:04]wFMCommunicate OK [13:41:04]SAM_PROTO_GetShiftState done [13:41:04]FM_GetShiftState done [13:41:04]req_shift_opened done [13:41:04]requested_item shift.open_date is exist - process it [13:41:04]req_shift_open_date [13:41:04]req_shift_open_date done [13:41:04]produce_requested_data done [13:41:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191424,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:41:04]process_action_free close_receipt [13:41:04]json_value_free [13:41:04]json_value_free done [13:41:04]process_json_proto returns [13:41:04]Send response to host [13:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191424,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:41:04]free response buf [13:41:04]execute_script done [13:41:04]execute_script returns [13:41:04]free content buf [13:41:04]Sock 9.Close socket [13:41:04]Sock 9.Thread stoped [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:27]accept exits with 8 [13:42:27]New connection [13:42:27]New thread 3066817892 created [13:42:27]Thread 3066961252 joined [13:42:27]Waiting for new connection... [13:42:27] Sock 8.Parse request [13:42:27]Sock 8.Check first char [13:42:27]Sock 8.First char is OK [13:42:27]request: POST /json_proto HTTP/1.0 [13:42:27]Method: POST [13:42:27]URL: /json_proto [13:42:27]Method is POST - this is cgi request [13:42:27]url: /json_proto [13:42:27]query_string will be loaded in cgi processing [13:42:27]execute_cgi json_proto POST (null) [13:42:27]execute_cgi path=json_proto method=POST [13:42:27]POST find Content-Length [13:42:27]Host: 172.17.63.131:8080 [13:42:27]Content-Length: 677 [13:42:27]Content-Type: application/json [13:42:27] [13:42:27]POST finish read [13:42:27]Found Content-Length = 677 [13:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:27]execute_script... [13: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)30720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:27]POST & json_proto [13:42:27]process_json_proto [13:42:27]json parsed OK: [13:42:27]protocol is kg_v1.0 [13:42:27]action value=close_receipt [13:42:27]process_action close_receipt [13:42:27]cmd_close_receipt [13:42:27]MH_GetDate [13:42:27]Write to MH i2c: F0 00 00 75 9C 00 [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: F0 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: F0 09 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: F0 09 00 75 9C 00 4C A0 1B 67 22 05 6E 64 70 [13:42:27]GetLastDocTimeStamp 1729863669 [13:42:27]current date 1729863756 [13:42:27]FM_GetShiftState [13:42:27]SAM_PROTO_GetShiftState [13:42:27]wFMCommunicate request_size=4 [13:42:27]MH_SAM_APDU [13:42:27]CAPDU: 80 13 01 00 [13:42:27]Write to MH i2c: E2 08 00 76 9C 80 13 01 00 00 00 00 00 8F [13:42:27]Write i2c OK [13:42:27]MH_I2C_Read... [13:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:27]Read from MH i2c: E2 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 0E 00 [13:42:27]MH_I2C_Read... [13:42:27]Read from MH i2c: E2 0E 00 76 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 52 [13:42:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:42:27]wFMCommunicate OK [13:42:27]SAM_PROTO_GetShiftState done [13:42:27]FM_GetShiftState done [13:42:27]opened in 1729816399 [13:42:27]opened+sec_in_day 1729902799 [13:42:27]quantity*price = 80012 [13:42:27]sum+1 = 80013 [13:42:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 164 25.10.2024 13:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191425 ФПД: 27629429894508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T134236&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191425&fm=27629429894508&tin=02508201610067®Number=0000000000091776&sum=80000 [13:42:28]StoreToDocumentArchive [13:42:28]shift 540 fd 191425 [13:42:28]save to /storage/0540/doc_00191425 [13:42:28]save last doc name /storage/0540/doc_00191425 to /storage/kkm_last_doc_name [13:42:28]save OK [13:42:28]Clear old archive folders... [13:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:28]tlvbuf is 01625730 [13:42:28]SAM_PROTO_ClearQueue [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 09 00 00 [13:42:28]Write to MH i2c: E2 08 00 83 9C 80 09 00 00 00 00 00 00 91 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 83 9C 00 90 00 93 [13:42:28]RAPDU: 90 00 [13:42:28]wFMCommunicate OK [13:42:28]SAM_PROTO_ClearQueue done [13:42:28]KKMCreateOFDPacket [13:42:28]OFDProtocolAddRootSTLVToBuf [13:42:28]FM_MakeSignedData [13:42:28]FM_MakeSignedData [13:42:28]SAM_PROTO_SignData [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 0D 01 02 [13:42:28]Write to MH i2c: E2 08 00 84 9C 80 0D 01 02 00 00 00 00 99 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 84 9C 00 90 00 94 [13:42:28]RAPDU: 90 00 [13:42:28]wFMCommunicate OK [13:42:28]wFMCommunicate request_size=255 [13:42:28]MH_SAM_APDU [13: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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4C A0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EB 02 00 35 04 06 00 19 [13:42:28]Write to MH i2c: E2 02 01 85 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4C A0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EB 02 00 35 04 06 00 19 00 00 10 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]OFD Sender: No OFD packet to send [13:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 85 9C 00 90 00 95 [13:42:28]RAPDU: 90 00 [13:42:28]wFMCommunicate OK [13:42:28]wFMCommunicate request_size=10 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 0D 02 02 05 20 FA 5A AD 6C [13:42:28]Write to MH i2c: E2 0D 00 86 9C 80 0D 02 02 05 00 20 FA 5A AD 6C 00 00 33 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 03 00 86 9C 00 90 00 96 [13:42:28]RAPDU: 90 00 [13:42:28]wFMCommunicate OK [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 0D 03 02 [13:42:28]Write to MH i2c: E2 08 00 87 9C 80 0D 03 02 00 00 00 00 9E [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 0B 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 0B 00 87 9C 00 D8 A3 E8 41 27 D2 5E D8 90 00 72 [13:42:28]RAPDU: D8 A3 E8 41 27 D2 5E D8 90 00 [13:42:28]wFMCommunicate OK [13:42:28]SAM_PROTO_SignData done [13:42:28]FM_MakeSignedData done [13:42:28]CreateOFDProtocolMessage [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 11 00 00 [13:42:28]Write to MH i2c: E2 08 00 88 9C 80 11 00 00 00 00 00 00 9E [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 17 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 17 00 88 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [13:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:28]wFMCommunicate OK [13:42:28]CreateOFDProtocolMessage done [13:42:28]OFDSenderStorePacket 191425 [13:42:28]StoreOFDPacket docnum=191425 [13:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB E2 07 01 7D DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4C A0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EB 02 00 35 04 06 00 19 20 FA 5A AD 6C D8 A3 E8 41 27 D2 5E D8 [13:42:28]CheckFolder [13:42:28]dirname=/storage/ofd_packets [13:42:28]CheckFolder done [13:42:28]ProducePacketName [13:42:28]name=ofd_packets/00191425 [13:42:28]NVStorageSaveData ofd_packets/00191425 [13:42:28]File name is /storage/ofd_packets/00191425 [13:42:28]Write 301 bytes [13:42:28]NVStorageSaveData done [13:42:28]OFDSenderStorePacket done [13:42:28]KKMCreateOFDPacket done [13:42:28]NVStorageSaveData kkm_last_timestamp [13:42:28]File name is /storage/kkm_last_timestamp [13:42:28]Write 4 bytes [13:42:28]NVStorageSaveData done [13:42:28]ExternCall_PrintAddStr [13:42:28]wPrintStart [13:42:28]Write to MH i2c: 01 00 00 89 9C 25 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: 01 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: 01 07 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: 01 07 00 89 9C 00 00 00 00 00 FF 0F 3A [13:42:28]RasterBufferAndPrint [13:42:28]line Счет N : (1)30720 [13:42:28]line ИНН: 02508201610067 [13:42:28]line Контрольно-Кассовый Чек [13:42:28]line ПРОДАЖА [13:42:28]line ТРК (МРК, ГНК) : 21 [13:42:28]line Товар: 2710124130 [13:42:28]line Аи-92-К-5 [13:42:28]line 11.960 * 66.90 [13:42:28]line = 800.12 [13:42:28]line НДС 12% НСП 1% [13:42:28]line > о реализуемом товаре [13:42:28]line ОКРУГЛЕНИЕ: -0.12 [13:42:28]line ИТОГО: 800.00 [13:42:28]line Внесено: 800.00 [13:42:28]line СДАЧА: 0.00 [13:42:28]line НСП 1% : 7.08 [13:42:28]line НДС 12% : 84.97 [13:42:28]line Наличными: 800.00 [13:42:28]line Безнал.: 0.00 [13:42:28]line Место: АЗС № 170 "Партнер Нефть" [13:42:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:42:28]line СНО: Общий режим [13:42:28]line Чек 164 25.10.2024 13:42 [13:42:28]line Смена: 540 ФФД: 1.0 [13:42:28]line ЗНМ: 0300000110 [13:42:28]line РНМ: 0000000000091776 [13:42:28]line Версия ККМ: 001 [13:42:28]line ФМ: 0000000000871754 [13:42:28]line ФД: 191425 [13:42:28]line ФПД: 27629429894508 [13:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T134236&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191425&fm=27629429894508&tin=02508201610067®Number=0000000000091776&sum=80000 [13:42:29]OFD Sender: Processing packet 191425 [packets to send 75, broken 74] [13:42:29]ProducePacketName [13:42:29]name=ofd_packets/00191425 [13:42:29]OFD Sender: To server: pG, [13:42:29]CommunicateWithHost lk.salyk.kg:30040 [13:42:29]ConnectInit lk.salyk.kg [13:42:29]written 0, free lines is 4095 [13:42:29]Connected sock=10 [13: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 31 37 35 34 0F 01 00 00 AB E2 07 01 7D DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4C A0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EB 02 00 35 04 06 00 19 20 FA 5A AD 6C D8 A3 E8 41 27 D2 5E D8 [13:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 41 3B 47 00 FE 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EB 02 00 F4 03 04 00 1A 45 1B 67 B6 04 01 00 00 65 76 14 18 70 14 FE 65 [13:42:29]CommunicateWithHost err = 0 [13:42:29]CheckOFDResponse [13:42:29]1017 (14) - 77093643461234 [13:42:29]1041 (16) - 0000000000871754 [13:42:29]1040 (4) - 191425 [13:42:29]1012 (4) - 25.10.2024 07:13 [13:42:29]1206 (1) - 0 [13:42:29]OFD Sender: Remove packet 191425 [13:42:29]ProducePacketName [13:42:29]name=ofd_packets/00191425 [13:42:29]NVStorageDeleteData [13:42:29]Write to MH i2c: 01 00 00 B4 9C 50 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: 01 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: 01 07 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: 01 07 00 B4 9C 00 00 00 00 00 C8 0C 2B [13:42:29]RasterBufferAndPrint [13:42:29]line [13:42:29]line [13:42:29]line [13:42:29]line [13:42:29]line [13:42:29]written 0, free lines is 3281 [13:42:29]MH_Cut [13:42:29]Write to MH i2c: D1 01 00 BB 9C 01 29 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: D1 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: D1 01 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: D1 01 00 BB 9C 00 28 [13:42:29]Write to MH i2c: 01 00 00 BC 9C 58 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]OFD Sender: No OFD packet to send [13:42:30]*** Cut start [13:42:30]*** Partial cut [13:42:30]*** CUTSNS_PIN = 1 [13:42:30]*** CUTSNS_PIN = 0 [13:42:30]*** Brake cut motor [13:42:30]Read from MH i2c: 01 [13:42:30]MH_I2C_Read... [13:42:30]*** Stop cut motor [13:42:31]*** Cut end [13:42:31]Read from MH i2c: 01 07 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 BC 9C 00 00 00 00 00 FF 0F 6D [13:42:31]process_action close_receipt done [13:42:31]requested_data is exist [13:42:31]produce_requested_data [13:42:31]requested_item fm.sn is exist - process it [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 11 00 00 [13:42:31]Write to MH i2c: E2 08 00 BD 9C 80 11 00 00 00 00 00 00 D3 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 BD 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [13:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:31]wFMCommunicate OK [13:42:31]requested_item fd.num is exist - process it [13:42:31]SAM_PROTO_GetFieldsCounters [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 13 00 00 [13:42:31]Write to MH i2c: E2 08 00 BE 9C 80 13 00 00 00 00 00 00 D6 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 62 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 62 00 BE 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:31]wFMCommunicate OK [13:42:31]SAM_PROTO_GetFieldsCounters done [13:42:31]requested_item shift.num is exist - process it [13:42:31]requested_item shift.opened is exist - process it [13:42:31]req_shift_opened [13:42:31]FM_GetShiftState [13:42:31]SAM_PROTO_GetShiftState [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 13 01 00 [13:42:31]Write to MH i2c: E2 08 00 BF 9C 80 13 01 00 00 00 00 00 D8 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0E 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0E 00 BF 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9B [13:42:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:42:31]wFMCommunicate OK [13:42:31]SAM_PROTO_GetShiftState done [13:42:31]FM_GetShiftState done [13:42:31]req_shift_opened done [13:42:31]requested_item shift.open_date is exist - process it [13:42:31]req_shift_open_date [13:42:31]req_shift_open_date done [13:42:31]produce_requested_data done [13:42:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191425,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:42:31]process_action_free close_receipt [13:42:31]json_value_free [13:42:31]json_value_free done [13:42:31]process_json_proto returns [13:42:31]Send response to host [13:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191425,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:42:31]free response buf [13:42:31]execute_script done [13:42:31]execute_script returns [13:42:31]free content buf [13:42:31]Sock 8.Close socket [13:42:31]Sock 8.Thread stoped [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:42]ConnectInit Can't connect to host [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:47]accept exits with 9 [13:50:47]New connection [13:50:47]New thread 3066961252 created [13:50:47]Thread 3066817892 joined [13:50:47]Waiting for new connection... [13:50:47] Sock 9.Parse request [13:50:47]Sock 9.Check first char [13:50:47]Sock 9.First char is OK [13:50:47]request: POST /json_proto HTTP/1.0 [13:50:47]Method: POST [13:50:47]URL: /json_proto [13:50:47]Method is POST - this is cgi request [13:50:47]url: /json_proto [13:50:47]query_string will be loaded in cgi processing [13:50:47]execute_cgi json_proto POST (null) [13:50:47]execute_cgi path=json_proto method=POST [13:50:47]POST find Content-Length [13:50:47]Host: 172.17.63.131:8080 [13:50:47]Content-Length: 678 [13:50:47]Content-Type: application/json [13:50:47] [13:50:47]POST finish read [13:50:47]Found Content-Length = 678 [13:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:50:47]execute_script... [13:50: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)30721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:50:47]POST & json_proto [13:50:47]process_json_proto [13:50:47]json parsed OK: [13:50:47]protocol is kg_v1.0 [13:50:47]action value=close_receipt [13:50:47]process_action close_receipt [13:50:47]cmd_close_receipt [13:50:47]MH_GetDate [13:50:47]Write to MH i2c: F0 00 00 C0 9C 4B [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: F0 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: F0 09 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: F0 09 00 C0 9C 00 41 A2 1B 67 22 05 6E 64 B2 [13:50:47]GetLastDocTimeStamp 1729863756 [13:50:47]current date 1729864257 [13:50:47]FM_GetShiftState [13:50:47]SAM_PROTO_GetShiftState [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 13 01 00 [13:50:47]Write to MH i2c: E2 08 00 C1 9C 80 13 01 00 00 00 00 00 DA [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0E 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0E 00 C1 9C 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9D [13:50:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:50:47]wFMCommunicate OK [13:50:47]SAM_PROTO_GetShiftState done [13:50:47]FM_GetShiftState done [13:50:47]opened in 1729816399 [13:50:47]opened+sec_in_day 1729902799 [13:50:47]quantity*price = 100050 [13:50:47]sum+1 = 100052 [13:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 165 25.10.2024 13:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191426 ФПД: 161316732118794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191426&fm=161316732118794&tin=02508201610067®Number=0000000000091776&sum=100000 [13:50:49]StoreToDocumentArchive [13:50:49]shift 540 fd 191426 [13:50:49]save to /storage/0540/doc_00191426 [13:50:49]save last doc name /storage/0540/doc_00191426 to /storage/kkm_last_doc_name [13:50:49]save OK [13:50:49]Clear old archive folders... [13:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:49]tlvbuf is 018310B0 [13:50:49]SAM_PROTO_ClearQueue [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 09 00 00 [13:50:49]Write to MH i2c: E2 08 00 CE 9C 80 09 00 00 00 00 00 00 DC [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 CE 9C 00 90 00 DE [13:50:49]RAPDU: 90 00 [13:50:49]wFMCommunicate OK [13:50:49]SAM_PROTO_ClearQueue done [13:50:49]KKMCreateOFDPacket [13:50:49]OFDProtocolAddRootSTLVToBuf [13:50:49]FM_MakeSignedData [13:50:49]FM_MakeSignedData [13:50:49]SAM_PROTO_SignData [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 0D 01 02 [13:50:49]Write to MH i2c: E2 08 00 CF 9C 80 0D 01 02 00 00 00 00 E4 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 CF 9C 00 90 00 DF [13:50:49]RAPDU: 90 00 [13:50:49]wFMCommunicate OK [13:50:49]wFMCommunicate request_size=255 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 41 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EB 02 00 35 04 06 00 92 B7 7A 83 [13:50:49]Write to MH i2c: E2 02 01 D0 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 41 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EB 02 00 35 04 06 00 92 B7 7A 83 00 00 8B [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 D0 9C 00 90 00 E0 [13:50:49]RAPDU: 90 00 [13:50:49]wFMCommunicate OK [13:50:49]wFMCommunicate request_size=7 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 0D 02 02 02 A7 0A [13:50:49]Write to MH i2c: E2 0A 00 D1 9C 80 0D 02 02 02 00 A7 0A 00 00 9C [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 03 00 D1 9C 00 90 00 E1 [13:50:49]RAPDU: 90 00 [13:50:49]wFMCommunicate OK [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 0D 03 02 [13:50:49]Write to MH i2c: E2 08 00 D2 9C 80 0D 03 02 00 00 00 00 E9 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0B 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0B 00 D2 9C 00 EB 27 37 6F CA 08 20 33 90 00 C7 [13:50:49]RAPDU: EB 27 37 6F CA 08 20 33 90 00 [13:50:49]wFMCommunicate OK [13:50:49]SAM_PROTO_SignData done [13:50:49]FM_MakeSignedData done [13:50:49]CreateOFDProtocolMessage [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 11 00 00 [13:50:49]Write to MH i2c: E2 08 00 D3 9C 80 11 00 00 00 00 00 00 E9 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 17 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 17 00 D3 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [13:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:50:49]wFMCommunicate OK [13:50:49]CreateOFDProtocolMessage done [13:50:49]OFDSenderStorePacket 191426 [13:50:49]StoreOFDPacket docnum=191426 [13:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7D F8 04 01 21 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 41 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EB 02 00 35 04 06 00 92 B7 7A 83 A7 0A EB 27 37 6F CA 08 20 33 [13:50:49]CheckFolder [13:50:49]dirname=/storage/ofd_packets [13:50:49]CheckFolder done [13:50:49]ProducePacketName [13:50:49]name=ofd_packets/00191426 [13:50:49]NVStorageSaveData ofd_packets/00191426 [13:50:49]File name is /storage/ofd_packets/00191426 [13:50:49]Write 298 bytes [13:50:49]NVStorageSaveData done [13:50:49]OFDSenderStorePacket done [13:50:49]KKMCreateOFDPacket done [13:50:49]NVStorageSaveData kkm_last_timestamp [13:50:49]File name is /storage/kkm_last_timestamp [13:50:49]Write 4 bytes [13:50:49]NVStorageSaveData done [13:50:49]ExternCall_PrintAddStr [13:50:49]wPrintStart [13:50:49]Write to MH i2c: 01 00 00 D4 9C 70 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: 01 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: 01 07 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: 01 07 00 D4 9C 00 00 00 00 00 FF 0F 85 [13:50:49]RasterBufferAndPrint [13:50:49]line Счет N : (1)30721 [13:50:49]line ИНН: 02508201610067 [13:50:49]line Контрольно-Кассовый Чек [13:50:49]line ПРОДАЖА [13:50:49]line ТРК (МРК, ГНК) : 11 [13:50:49]line Товар: 2710194210 [13:50:49]line ДТ-К-5 [13:50:49]line 13.130 * 76.20 [13:50:49]line = 1000.51 [13:50:49]line НДС 12% НСП 1% [13:50:49]line > о реализуемом товаре [13:50:49]line ОКРУГЛЕНИЕ: -0.51 [13:50:49]line ИТОГО: 1000.00 [13:50:49]line Внесено: 1000.00 [13:50:49]line СДАЧА: 0.00 [13:50:49]line НСП 1% : 8.85 [13:50:49]line НДС 12% : 106.25 [13:50:49]line Наличными: 1000.00 [13:50:49]line Безнал.: 0.00 [13:50:49]line Место: АЗС № 170 "Партнер Нефть" [13:50:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:50:49]line СНО: Общий режим [13:50:49]line Чек 165 25.10.2024 13:50 [13:50:49]line Смена: 540 ФФД: 1.0 [13:50:49]line ЗНМ: 0300000110 [13:50:49]line РНМ: 0000000000091776 [13:50:49]line Версия ККМ: 001 [13:50:49]line ФМ: 0000000000871754 [13:50:49]line ФД: 191426 [13:50:49]line ФПД: 161316732118794 [13:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191426&fm=161316732118794&tin=02508201610067®Number=0000000000091776&sum=100000 [13:50:49]OFD Sender: Processing packet 191426 [packets to send 75, broken 74] [13:50:49]ProducePacketName [13:50:49]name=ofd_packets/00191426 [13:50:49]OFD Sender: To server: pG, [13:50:49]CommunicateWithHost lk.salyk.kg:30040 [13:50:49]ConnectInit lk.salyk.kg [13:50:49]written 0, free lines is 4095 [13:50:50]Connected sock=10 [13:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7D F8 04 01 21 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 41 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EB 02 00 35 04 06 00 92 B7 7A 83 A7 0A EB 27 37 6F CA 08 20 33 [13:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F F0 47 00 05 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EB 02 00 F4 03 04 00 0F 47 1B 67 B6 04 01 00 00 B2 52 48 39 B7 15 13 E0 [13:50:50]CommunicateWithHost err = 0 [13:50:50]CheckOFDResponse [13:50:50]1017 (14) - 77093643461234 [13:50:50]1041 (16) - 0000000000871754 [13:50:50]1040 (4) - 191426 [13:50:50]1012 (4) - 25.10.2024 07:21 [13:50:50]1206 (1) - 0 [13:50:50]OFD Sender: Remove packet 191426 [13:50:50]ProducePacketName [13:50:50]name=ofd_packets/00191426 [13:50:50]NVStorageDeleteData [13:50:50]Write to MH i2c: 01 00 00 FF 9C 9B [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 FF 9C 00 00 00 00 00 CE 0C 7C [13:50:50]RasterBufferAndPrint [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]written 0, free lines is 3283 [13:50:50]MH_Cut [13:50:50]Write to MH i2c: D1 01 00 06 9D 01 75 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 01 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 01 00 06 9D 00 74 [13:50:50]Write to MH i2c: 01 00 00 07 9D A4 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]OFD Sender: No OFD packet to send [13:50:51]*** Cut start [13:50:51]*** Partial cut [13:50:51]*** CUTSNS_PIN = 1 [13:50:51]*** CUTSNS_PIN = 0 [13:50:51]*** Brake cut motor [13:50:51]Read from MH i2c: 01 [13:50:51]MH_I2C_Read... [13:50:51]*** Stop cut motor [13:50:51]*** Cut end [13:50:51]Read from MH i2c: 01 07 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: 01 07 00 07 9D 00 00 00 00 00 FF 0F B9 [13:50:51]process_action close_receipt done [13:50:51]requested_data is exist [13:50:51]produce_requested_data [13:50:51]requested_item fm.sn is exist - process it [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 11 00 00 [13:50:51]Write to MH i2c: E2 08 00 08 9D 80 11 00 00 00 00 00 00 1F [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 17 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 17 00 08 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [13:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:50:51]wFMCommunicate OK [13:50:51]requested_item fd.num is exist - process it [13:50:51]SAM_PROTO_GetFieldsCounters [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 13 00 00 [13:50:51]Write to MH i2c: E2 08 00 09 9D 80 13 00 00 00 00 00 00 22 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 62 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 62 00 09 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_GetFieldsCounters done [13:50:52]requested_item shift.num is exist - process it [13:50:52]requested_item shift.opened is exist - process it [13:50:52]req_shift_opened [13:50:52]FM_GetShiftState [13:50:52]SAM_PROTO_GetShiftState [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 13 01 00 [13:50:52]Write to MH i2c: E2 08 00 0A 9D 80 13 01 00 00 00 00 00 24 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0E 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 0E 00 0A 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E7 [13:50:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:50:52]wFMCommunicate OK [13:50:52]SAM_PROTO_GetShiftState done [13:50:52]FM_GetShiftState done [13:50:52]req_shift_opened done [13:50:52]requested_item shift.open_date is exist - process it [13:50:52]req_shift_open_date [13:50:52]req_shift_open_date done [13:50:52]produce_requested_data done [13:50:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191426,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:50:52]process_action_free close_receipt [13:50:52]json_value_free [13:50:52]json_value_free done [13:50:52]process_json_proto returns [13:50:52]Send response to host [13:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191426,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:50:52]free response buf [13:50:52]execute_script done [13:50:52]execute_script returns [13:50:52]free content buf [13:50:52]Sock 9.Close socket [13:50:52]Sock 9.Thread stoped [13:50:55]OFD Sender: No OFD packet to send [13:50:57]int [13:50:57]Write to MH i2c: 01 00 00 0B 9D A8 [13:50:57]*** FLAG_PRN_PAP1 set [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 0B 9D 00 01 00 00 00 FF 0F BE [13:50:57]state=0 [13:50:57]No paper [13:50:57]int [13:50:57]Write to MH i2c: 01 00 00 0C 9D A9 [13:50:57]*** FLAG_PRN_PAP2 set [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 0C 9D 00 03 00 00 00 FF 0F C1 [13:50:57]state=0 [13:50:57]No paper [13:50:57]Cover opened [13:51:00]OFD Sender: No OFD packet to send [13:51:02]Write to MH i2c: 01 00 00 0D 9D AA [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: 01 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: 01 07 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: 01 07 00 0D 9D 00 03 00 00 00 FF 0F C2 [13:51:02]state=3 [13:51:02]No paper [13:51:02]Cover opened [13:51:05]OFD Sender: No OFD packet to send [13:51:07]Write to MH i2c: 01 00 00 0E 9D AB [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 0E 9D 00 03 00 00 00 FF 0F C3 [13:51:07]state=3 [13:51:07]No paper [13:51:07]Cover opened [13:51:10]OFD Sender: No OFD packet to send [13:51:12]Write to MH i2c: 01 00 00 0F 9D AC [13:51:12]Write i2c OK [13:51:12]MH_I2C_Read... [13:51:12]Read from MH i2c: 01 [13:51:12]MH_I2C_Read... [13:51:12]Read from MH i2c: 01 07 00 [13:51:12]MH_I2C_Read... [13:51:12]Read from MH i2c: 01 07 00 0F 9D 00 03 00 00 00 FF 0F C4 [13:51:12]state=3 [13:51:12]No paper [13:51:12]Cover opened [13:51:15]OFD Sender: No OFD packet to send [13:51:17]Write to MH i2c: 01 00 00 10 9D AD [13:51:17]Write i2c OK [13:51:17]MH_I2C_Read... [13:51:17]Read from MH i2c: 01 [13:51:17]MH_I2C_Read... [13:51:17]Read from MH i2c: 01 07 00 [13:51:17]MH_I2C_Read... [13:51:17]Read from MH i2c: 01 07 00 10 9D 00 03 00 00 00 FF 0F C5 [13:51:17]state=3 [13:51:17]No paper [13:51:17]Cover opened [13:51:20]OFD Sender: No OFD packet to send [13:51:22]Write to MH i2c: 01 00 00 11 9D AE [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 07 00 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 07 00 11 9D 00 03 00 00 00 FF 0F C6 [13:51:22]state=3 [13:51:22]No paper [13:51:22]Cover opened [13:51:25]OFD Sender: No OFD packet to send [13:51:27]Write to MH i2c: 01 00 00 12 9D AF [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 07 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 07 00 12 9D 00 03 00 00 00 FF 0F C7 [13:51:27]state=3 [13:51:27]No paper [13:51:27]Cover opened [13:51:30]OFD Sender: No OFD packet to send [13:51:32]Write to MH i2c: 01 00 00 13 9D B0 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: 01 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: 01 07 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: 01 07 00 13 9D 00 03 00 00 00 FF 0F C8 [13:51:32]state=3 [13:51:32]No paper [13:51:32]Cover opened [13:51:35]int [13:51:35]Write to MH i2c: 01 00 00 14 9D B1 [13:51:35]*** FLAG_PRN_PAP2 reset [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 14 9D 00 01 00 00 00 FF 0F C7 [13:51:35]state=3 [13:51:35]No paper [13:51:35]Cover closed [13:51:35]OFD Sender: No OFD packet to send [13:51:37]int [13:51:37]Write to MH i2c: 01 00 00 15 9D B2 [13:51:37]*** FLAG_PRN_PAP2 set [13:51:37]Write i2c OK [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: 01 [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: 01 07 00 [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: 01 07 00 15 9D 00 03 00 00 00 FF 0F CA [13:51:37]state=0 [13:51:37]No paper [13:51:37]Cover opened [13:51:37]int [13:51:37]Write to MH i2c: 01 00 00 16 9D B3 [13:51:37]Write i2c OK [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: 01 [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: 01 07 00 [13:51:37]MH_I2C_Read... [13:51:37]*** FLAG_PRN_PAP2 reset [13:51:37]*** FLAG_PRN_PAP1 reset [13:51:37]Read from MH i2c: 01 07 00 16 9D 00 00 00 00 00 FF 0F C8 [13:51:37]state=3 [13:51:37]Cover closed [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:34]accept exits with 8 [13:53:34]New connection [13:53:34]New thread 3066817892 created [13:53:34]Thread 3066961252 joined [13:53:34]Waiting for new connection... [13:53:34] Sock 8.Parse request [13:53:34]Sock 8.Check first char [13:53:34]Sock 8.First char is OK [13:53:34]request: POST /json_proto HTTP/1.0 [13:53:34]Method: POST [13:53:34]URL: /json_proto [13:53:34]Method is POST - this is cgi request [13:53:34]url: /json_proto [13:53:34]query_string will be loaded in cgi processing [13:53:34]execute_cgi json_proto POST (null) [13:53:34]execute_cgi path=json_proto method=POST [13:53:34]POST find Content-Length [13:53:34]Host: 172.17.63.131:8080 [13:53:34]Content-Length: 676 [13:53:34]Content-Type: application/json [13:53:34] [13:53:34]POST finish read [13:53:34]Found Content-Length = 676 [13:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:34]execute_script... [13:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:34]POST & json_proto [13:53:34]process_json_proto [13:53:34]json parsed OK: [13:53:34]protocol is kg_v1.0 [13:53:34]action value=close_receipt [13:53:34]process_action close_receipt [13:53:34]cmd_close_receipt [13:53:34]MH_GetDate [13:53:34]Write to MH i2c: F0 00 00 17 9D A3 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: F0 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: F0 09 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: F0 09 00 17 9D 00 E7 A2 1B 67 22 05 6E 64 B0 [13:53:34]GetLastDocTimeStamp 1729864257 [13:53:34]current date 1729864423 [13:53:34]FM_GetShiftState [13:53:34]SAM_PROTO_GetShiftState [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 13 01 00 [13:53:34]Write to MH i2c: E2 08 00 18 9D 80 13 01 00 00 00 00 00 32 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 18 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F5 [13:53:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:53:34]wFMCommunicate OK [13:53:34]SAM_PROTO_GetShiftState done [13:53:34]FM_GetShiftState done [13:53:34]opened in 1729816399 [13:53:34]opened+sec_in_day 1729902799 [13:53:34]quantity*price = 40006 [13:53:34]sum+1 = 40007 [13:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 166 25.10.2024 13:53 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191427 ФПД: 72897357648346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191427&fm=72897357648346&tin=02508201610067®Number=0000000000091776&sum=40000 [13:53:35]StoreToDocumentArchive [13:53:35]shift 540 fd 191427 [13:53:35]save to /storage/0540/doc_00191427 [13:53:35]save last doc name /storage/0540/doc_00191427 to /storage/kkm_last_doc_name [13:53:35]save OK [13:53:35]Clear old archive folders... [13:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:35]tlvbuf is 016EB550 [13:53:35]SAM_PROTO_ClearQueue [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 09 00 00 [13:53:35]Write to MH i2c: E2 08 00 25 9D 80 09 00 00 00 00 00 00 34 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 25 9D 00 90 00 36 [13:53:35]RAPDU: 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_ClearQueue done [13:53:35]KKMCreateOFDPacket [13:53:35]OFDProtocolAddRootSTLVToBuf [13:53:35]FM_MakeSignedData [13:53:35]FM_MakeSignedData [13:53:35]SAM_PROTO_SignData [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 0D 01 02 [13:53:35]Write to MH i2c: E2 08 00 26 9D 80 0D 01 02 00 00 00 00 3C [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 26 9D 00 90 00 37 [13:53:35]RAPDU: 90 00 [13:53:35]wFMCommunicate OK [13:53:35]wFMCommunicate request_size=255 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E7 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EB 02 00 35 04 06 00 42 [13:53:35]Write to MH i2c: E2 02 01 27 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E7 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EB 02 00 35 04 06 00 42 00 00 60 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 27 9D 00 90 00 38 [13:53:35]RAPDU: 90 00 [13:53:35]wFMCommunicate OK [13:53:35]wFMCommunicate request_size=10 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 0D 02 02 05 4C BD 1B 91 DA [13:53:35]Write to MH i2c: E2 0D 00 28 9D 80 0D 02 02 05 00 4C BD 1B 91 DA 00 00 D8 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 28 9D 00 90 00 39 [13:53:35]RAPDU: 90 00 [13:53:35]wFMCommunicate OK [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 0D 03 02 [13:53:35]Write to MH i2c: E2 08 00 29 9D 80 0D 03 02 00 00 00 00 41 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0B 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0B 00 29 9D 00 2C 38 2D 5B 60 DC 8C AA 90 00 A0 [13:53:35]RAPDU: 2C 38 2D 5B 60 DC 8C AA 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_SignData done [13:53:35]FM_MakeSignedData done [13:53:35]CreateOFDProtocolMessage [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 11 00 00 [13:53:35]Write to MH i2c: E2 08 00 2A 9D 80 11 00 00 00 00 00 00 41 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 2A 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [13:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:35]wFMCommunicate OK [13:53:35]CreateOFDProtocolMessage done [13:53:35]OFDSenderStorePacket 191427 [13:53:35]StoreOFDPacket docnum=191427 [13:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 61 07 01 BE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E7 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EB 02 00 35 04 06 00 42 4C BD 1B 91 DA 2C 38 2D 5B 60 DC 8C AA [13:53:35]CheckFolder [13:53:35]dirname=/storage/ofd_packets [13:53:35]CheckFolder done [13:53:35]ProducePacketName [13:53:35]name=ofd_packets/00191427 [13:53:35]NVStorageSaveData ofd_packets/00191427 [13:53:35]File name is /storage/ofd_packets/00191427 [13:53:35]Write 301 bytes [13:53:35]NVStorageSaveData done [13:53:35]OFDSenderStorePacket done [13:53:35]KKMCreateOFDPacket done [13:53:35]NVStorageSaveData kkm_last_timestamp [13:53:35]File name is /storage/kkm_last_timestamp [13:53:35]Write 4 bytes [13:53:35]NVStorageSaveData done [13:53:35]ExternCall_PrintAddStr [13:53:35]wPrintStart [13:53:35]Write to MH i2c: 01 00 00 2B 9D C8 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 2B 9D 00 00 00 00 00 FF 0F DD [13:53:35]RasterBufferAndPrint [13:53:35]line Счет N : (1)30722 [13:53:35]line ИНН: 02508201610067 [13:53:35]line Контрольно-Кассовый Чек [13:53:35]line ПРОДАЖА [13:53:35]line ТРК (МРК, ГНК) : 21 [13:53:35]line Товар: 2710124130 [13:53:35]line Аи-92-К-5 [13:53:35]line 5.980 * 66.90 [13:53:35]line = 400.06 [13:53:35]line НДС 12% НСП 1% [13:53:35]line > о реализуемом товаре [13:53:35]line ОКРУГЛЕНИЕ: -0.06 [13:53:35]line ИТОГО: 400.00 [13:53:35]line Внесено: 400.00 [13:53:35]line СДАЧА: 0.00 [13:53:35]line НСП 1% : 3.54 [13:53:35]line НДС 12% : 42.48 [13:53:35]line Наличными: 400.00 [13:53:35]line Безнал.: 0.00 [13:53:35]line Место: АЗС № 170 "Партнер Нефть" [13:53:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:53:35]line СНО: Общий режим [13:53:35]line Чек 166 25.10.2024 13:53 [13:53:35]line Смена: 540 ФФД: 1.0 [13:53:35]line ЗНМ: 0300000110 [13:53:35]line РНМ: 0000000000091776 [13:53:35]line Версия ККМ: 001 [13:53:35]line ФМ: 0000000000871754 [13:53:35]line ФД: 191427 [13:53:35]line ФПД: 72897357648346 [13:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191427&fm=72897357648346&tin=02508201610067®Number=0000000000091776&sum=40000 [13:53:36]OFD Sender: Processing packet 191427 [packets to send 75, broken 74] [13:53:36]ProducePacketName [13:53:36]name=ofd_packets/00191427 [13:53:36]OFD Sender: To server: pG, [13:53:36]CommunicateWithHost lk.salyk.kg:30040 [13:53:36]ConnectInit lk.salyk.kg [13:53:36]written 0, free lines is 4095 [13:53:36]Connected sock=10 [13:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 61 07 01 BE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E7 A2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EB 02 00 35 04 06 00 42 4C BD 1B 91 DA 2C 38 2D 5B 60 DC 8C AA [13:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 E7 47 00 C1 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EB 02 00 F4 03 04 00 B5 47 1B 67 B6 04 01 00 00 09 A9 47 09 9A B2 B5 9C [13:53:36]CommunicateWithHost err = 0 [13:53:36]CheckOFDResponse [13:53:36]1017 (14) - 77093643461234 [13:53:36]1041 (16) - 0000000000871754 [13:53:36]1040 (4) - 191427 [13:53:36]1012 (4) - 25.10.2024 07:24 [13:53:36]1206 (1) - 0 [13:53:36]OFD Sender: Remove packet 191427 [13:53:36]ProducePacketName [13:53:36]name=ofd_packets/00191427 [13:53:36]NVStorageDeleteData [13:53:36]Write to MH i2c: 01 00 00 56 9D F3 [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: 01 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: 01 07 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: 01 07 00 56 9D 00 00 00 00 00 CD 0C D3 [13:53:36]RasterBufferAndPrint [13:53:36]line [13:53:36]line [13:53:36]line [13:53:36]line [13:53:36]line [13:53:36]written 0, free lines is 3284 [13:53:36]MH_Cut [13:53:36]Write to MH i2c: D1 01 00 5D 9D 01 CC [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: D1 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: D1 01 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: D1 01 00 5D 9D 00 CB [13:53:36]Write to MH i2c: 01 00 00 5E 9D FB [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:37]OFD Sender: No OFD packet to send [13:53:37]*** Cut start [13:53:37]*** Partial cut [13:53:37]*** CUTSNS_PIN = 1 [13:53:37]*** CUTSNS_PIN = 0 [13:53:37]*** Brake cut motor [13:53:38]Read from MH i2c: 01 [13:53:38]MH_I2C_Read... [13:53:38]*** Stop cut motor [13:53:38]*** Cut end [13:53:38]Read from MH i2c: 01 07 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: 01 07 00 5E 9D 00 00 00 00 00 FF 0F 10 [13:53:38]process_action close_receipt done [13:53:38]requested_data is exist [13:53:38]produce_requested_data [13:53:38]requested_item fm.sn is exist - process it [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 11 00 00 [13:53:38]Write to MH i2c: E2 08 00 5F 9D 80 11 00 00 00 00 00 00 76 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 17 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 17 00 5F 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [13:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:38]wFMCommunicate OK [13:53:38]requested_item fd.num is exist - process it [13:53:38]SAM_PROTO_GetFieldsCounters [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 13 00 00 [13:53:38]Write to MH i2c: E2 08 00 60 9D 80 13 00 00 00 00 00 00 79 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 62 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 62 00 60 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [13:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:38]wFMCommunicate OK [13:53:38]SAM_PROTO_GetFieldsCounters done [13:53:38]requested_item shift.num is exist - process it [13:53:38]requested_item shift.opened is exist - process it [13:53:38]req_shift_opened [13:53:38]FM_GetShiftState [13:53:38]SAM_PROTO_GetShiftState [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 13 01 00 [13:53:38]Write to MH i2c: E2 08 00 61 9D 80 13 01 00 00 00 00 00 7B [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 0E 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 0E 00 61 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3E [13:53:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:53:38]wFMCommunicate OK [13:53:38]SAM_PROTO_GetShiftState done [13:53:38]FM_GetShiftState done [13:53:38]req_shift_opened done [13:53:38]requested_item shift.open_date is exist - process it [13:53:38]req_shift_open_date [13:53:38]req_shift_open_date done [13:53:38]produce_requested_data done [13:53:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191427,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:53:38]process_action_free close_receipt [13:53:38]json_value_free [13:53:38]json_value_free done [13:53:38]process_json_proto returns [13:53:38]Send response to host [13:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191427,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:53:38]free response buf [13:53:38]execute_script done [13:53:38]execute_script returns [13:53:38]free content buf [13:53:38]Sock 8.Close socket [13:53:38]Sock 8.Thread stoped [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:16]accept exits with 9 [13:55:16]New connection [13:55:16]New thread 3066961252 created [13:55:16]Thread 3066817892 joined [13:55:16]Waiting for new connection... [13:55:16] Sock 9.Parse request [13:55:16]Sock 9.Check first char [13:55:16]Sock 9.First char is OK [13:55:16]request: POST /json_proto HTTP/1.0 [13:55:16]Method: POST [13:55:16]URL: /json_proto [13:55:16]Method is POST - this is cgi request [13:55:16]url: /json_proto [13:55:16]query_string will be loaded in cgi processing [13:55:16]execute_cgi json_proto POST (null) [13:55:16]execute_cgi path=json_proto method=POST [13:55:16]POST find Content-Length [13:55:16]Host: 172.17.63.131:8080 [13:55:16]Content-Length: 681 [13:55:16]Content-Type: application/json [13:55:16] [13:55:16]POST finish read [13:55:16]Found Content-Length = 681 [13:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:16]execute_script... [13:55: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)30723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:16]POST & json_proto [13:55:16]process_json_proto [13:55:16]json parsed OK: [13:55:16]protocol is kg_v1.0 [13:55:16]action value=close_receipt [13:55:16]process_action close_receipt [13:55:16]cmd_close_receipt [13:55:16]MH_GetDate [13:55:16]Write to MH i2c: F0 00 00 62 9D EE [13:55:16]Write i2c OK [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 09 00 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 09 00 62 9D 00 4D A3 1B 67 22 05 6E 64 62 [13:55:16]GetLastDocTimeStamp 1729864423 [13:55:16]current date 1729864525 [13:55:16]FM_GetShiftState [13:55:16]SAM_PROTO_GetShiftState [13:55:16]wFMCommunicate request_size=4 [13:55:16]MH_SAM_APDU [13:55:16]CAPDU: 80 13 01 00 [13:55:16]Write to MH i2c: E2 08 00 63 9D 80 13 01 00 00 00 00 00 7D [13:55:16]Write i2c OK [13:55:16]MH_I2C_Read... [13:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:16]Read from MH i2c: E2 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: E2 0E 00 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: E2 0E 00 63 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 40 [13:55:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:55:16]wFMCommunicate OK [13:55:16]SAM_PROTO_GetShiftState done [13:55:16]FM_GetShiftState done [13:55:16]opened in 1729816399 [13:55:16]opened+sec_in_day 1729902799 [13:55:16]quantity*price = 100015 [13:55:16]sum+1 = 100017 [13:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 167 25.10.2024 13:55 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191428 ФПД: 60823749726722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191428&fm=60823749726722&tin=02508201610067®Number=0000000000091776&sum=100000 [13:55:17]StoreToDocumentArchive [13:55:17]shift 540 fd 191428 [13:55:17]save to /storage/0540/doc_00191428 [13:55:17]save last doc name /storage/0540/doc_00191428 to /storage/kkm_last_doc_name [13:55:17]save OK [13:55:17]Clear old archive folders... [13:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:17]tlvbuf is 017F1430 [13:55:17]SAM_PROTO_ClearQueue [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 09 00 00 [13:55:17]Write to MH i2c: E2 08 00 70 9D 80 09 00 00 00 00 00 00 7F [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 70 9D 00 90 00 81 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]SAM_PROTO_ClearQueue done [13:55:17]KKMCreateOFDPacket [13:55:17]OFDProtocolAddRootSTLVToBuf [13:55:17]FM_MakeSignedData [13:55:17]FM_MakeSignedData [13:55:17]SAM_PROTO_SignData [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 01 02 [13:55:17]Write to MH i2c: E2 08 00 71 9D 80 0D 01 02 00 00 00 00 87 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 71 9D 00 90 00 82 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]wFMCommunicate request_size=255 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 4D A3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EB 02 00 35 04 06 00 37 [13:55:17]Write to MH i2c: E2 02 01 72 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 4D A3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EB 02 00 35 04 06 00 37 00 00 34 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 72 9D 00 90 00 83 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]wFMCommunicate request_size=10 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 02 02 05 51 A1 FF 12 02 [13:55:17]Write to MH i2c: E2 0D 00 73 9D 80 0D 02 02 05 00 51 A1 FF 12 02 00 00 99 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:18]Read from MH i2c: E2 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 03 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 03 00 73 9D 00 90 00 84 [13:55:18]RAPDU: 90 00 [13:55:18]wFMCommunicate OK [13:55:18]wFMCommunicate request_size=4 [13:55:18]MH_SAM_APDU [13:55:18]CAPDU: 80 0D 03 02 [13:55:18]Write to MH i2c: E2 08 00 74 9D 80 0D 03 02 00 00 00 00 8C [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:18]Read from MH i2c: E2 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 0B 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 0B 00 74 9D 00 2A 25 D1 20 86 89 F3 26 90 00 F5 [13:55:18]RAPDU: 2A 25 D1 20 86 89 F3 26 90 00 [13:55:18]wFMCommunicate OK [13:55:18]SAM_PROTO_SignData done [13:55:18]FM_MakeSignedData done [13:55:18]CreateOFDProtocolMessage [13:55:18]wFMCommunicate request_size=4 [13:55:18]MH_SAM_APDU [13:55:18]CAPDU: 80 11 00 00 [13:55:18]Write to MH i2c: E2 08 00 75 9D 80 11 00 00 00 00 00 00 8C [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:18]Read from MH i2c: E2 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 17 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 17 00 75 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [13:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:55:18]wFMCommunicate OK [13:55:18]CreateOFDProtocolMessage done [13:55:18]OFDSenderStorePacket 191428 [13:55:18]StoreOFDPacket docnum=191428 [13:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C D0 07 01 6E E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 4D A3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EB 02 00 35 04 06 00 37 51 A1 FF 12 02 2A 25 D1 20 86 89 F3 26 [13:55:18]CheckFolder [13:55:18]dirname=/storage/ofd_packets [13:55:18]CheckFolder done [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00191428 [13:55:18]NVStorageSaveData ofd_packets/00191428 [13:55:18]File name is /storage/ofd_packets/00191428 [13:55:18]Write 301 bytes [13:55:18]NVStorageSaveData done [13:55:18]OFDSenderStorePacket done [13:55:18]KKMCreateOFDPacket done [13:55:18]NVStorageSaveData kkm_last_timestamp [13:55:18]File name is /storage/kkm_last_timestamp [13:55:18]Write 4 bytes [13:55:18]NVStorageSaveData done [13:55:18]ExternCall_PrintAddStr [13:55:18]wPrintStart [13:55:18]Write to MH i2c: 01 00 00 76 9D 13 [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 76 9D 00 00 00 00 00 FF 0F 28 [13:55:18]RasterBufferAndPrint [13:55:18]line Счет N : (1)30723 [13:55:18]line ИНН: 02508201610067 [13:55:18]line Контрольно-Кассовый Чек [13:55:18]line ПРОДАЖА [13:55:18]line ТРК (МРК, ГНК) : 21 [13:55:18]line Товар: 2710124130 [13:55:18]line Аи-92-К-5 [13:55:18]line 14.950 * 66.90 [13:55:18]line = 1000.16 [13:55:18]line НДС 12% НСП 1% [13:55:18]line > о реализуемом товаре [13:55:18]line ОКРУГЛЕНИЕ: -0.16 [13:55:18]line ИТОГО: 1000.00 [13:55:18]line Внесено: 1000.00 [13:55:18]line СДАЧА: 0.00 [13:55:18]line НСП 1% : 8.85 [13:55:18]line НДС 12% : 106.21 [13:55:18]line Наличными: 1000.00 [13:55:18]line Безнал.: 0.00 [13:55:18]line Место: АЗС № 170 "Партнер Нефть" [13:55:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:55:18]line СНО: Общий режим [13:55:18]line Чек 167 25.10.2024 13:55 [13:55:18]line Смена: 540 ФФД: 1.0 [13:55:18]line ЗНМ: 0300000110 [13:55:18]line РНМ: 0000000000091776 [13:55:18]line Версия ККМ: 001 [13:55:18]line ФМ: 0000000000871754 [13:55:18]line ФД: 191428 [13:55:18]line ФПД: 60823749726722 [13:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191428&fm=60823749726722&tin=02508201610067®Number=0000000000091776&sum=100000 [13:55:18]OFD Sender: Processing packet 191428 [packets to send 75, broken 74] [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00191428 [13:55:18]OFD Sender: To server: pG, [13:55:18]CommunicateWithHost lk.salyk.kg:30040 [13:55:18]ConnectInit lk.salyk.kg [13:55:18]written 0, free lines is 4095 [13:55:18]Connected sock=10 [13:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C D0 07 01 6E E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 4D A3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EB 02 00 35 04 06 00 37 51 A1 FF 12 02 2A 25 D1 20 86 89 F3 26 [13:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 FE 47 00 89 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EB 02 00 F4 03 04 00 1C 48 1B 67 B6 04 01 00 00 54 1C E6 82 7C 80 44 88 [13:55:18]CommunicateWithHost err = 0 [13:55:18]CheckOFDResponse [13:55:18]1017 (14) - 77093643461234 [13:55:18]1041 (16) - 0000000000871754 [13:55:18]1040 (4) - 191428 [13:55:18]1012 (4) - 25.10.2024 07:26 [13:55:18]1206 (1) - 0 [13:55:18]OFD Sender: Remove packet 191428 [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00191428 [13:55:18]NVStorageDeleteData [13:55:18]Write to MH i2c: 01 00 00 A1 9D 3E [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 A1 9D 00 00 00 00 00 CC 0C 1D [13:55:18]RasterBufferAndPrint [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]written 0, free lines is 3282 [13:55:18]MH_Cut [13:55:18]Write to MH i2c: D1 01 00 A8 9D 01 17 [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 01 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 01 00 A8 9D 00 16 [13:55:18]Write to MH i2c: 01 00 00 A9 9D 46 [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:19]OFD Sender: No OFD packet to send [13:55:19]*** Cut start [13:55:19]*** Partial cut [13:55:19]*** CUTSNS_PIN = 1 [13:55:19]*** CUTSNS_PIN = 0 [13:55:20]*** Brake cut motor [13:55:20]Read from MH i2c: 01 [13:55:20]MH_I2C_Read... [13:55:20]*** Stop cut motor [13:55:20]*** Cut end [13:55:20]Read from MH i2c: 01 07 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: 01 07 00 A9 9D 00 00 00 00 00 FF 0F 5B [13:55:20]process_action close_receipt done [13:55:20]requested_data is exist [13:55:20]produce_requested_data [13:55:20]requested_item fm.sn is exist - process it [13:55:20]wFMCommunicate request_size=4 [13:55:20]MH_SAM_APDU [13:55:20]CAPDU: 80 11 00 00 [13:55:20]Write to MH i2c: E2 08 00 AA 9D 80 11 00 00 00 00 00 00 C1 [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 17 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 17 00 AA 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [13:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:55:20]wFMCommunicate OK [13:55:20]requested_item fd.num is exist - process it [13:55:20]SAM_PROTO_GetFieldsCounters [13:55:20]wFMCommunicate request_size=4 [13:55:20]MH_SAM_APDU [13:55:20]CAPDU: 80 13 00 00 [13:55:20]Write to MH i2c: E2 08 00 AB 9D 80 13 00 00 00 00 00 00 C4 [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 62 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 62 00 AB 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [13:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:20]wFMCommunicate OK [13:55:20]SAM_PROTO_GetFieldsCounters done [13:55:20]requested_item shift.num is exist - process it [13:55:20]requested_item shift.opened is exist - process it [13:55:20]req_shift_opened [13:55:20]FM_GetShiftState [13:55:20]SAM_PROTO_GetShiftState [13:55:20]wFMCommunicate request_size=4 [13:55:20]MH_SAM_APDU [13:55:20]CAPDU: 80 13 01 00 [13:55:20]Write to MH i2c: E2 08 00 AC 9D 80 13 01 00 00 00 00 00 C6 [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 AC 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 89 [13:55:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:55:20]wFMCommunicate OK [13:55:20]SAM_PROTO_GetShiftState done [13:55:20]FM_GetShiftState done [13:55:20]req_shift_opened done [13:55:20]requested_item shift.open_date is exist - process it [13:55:20]req_shift_open_date [13:55:20]req_shift_open_date done [13:55:20]produce_requested_data done [13:55:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191428,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:55:20]process_action_free close_receipt [13:55:20]json_value_free [13:55:20]json_value_free done [13:55:20]process_json_proto returns [13:55:20]Send response to host [13:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191428,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:55:20]free response buf [13:55:20]execute_script done [13:55:20]execute_script returns [13:55:20]free content buf [13:55:20]Sock 9.Close socket [13:55:20]Sock 9.Thread stoped [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:56]accept exits with 8 [13:58:56]New connection [13:58:56]New thread 3066817892 created [13:58:56]Thread 3066961252 joined [13:58:56]Waiting for new connection... [13:58:56] Sock 8.Parse request [13:58:56]Sock 8.Check first char [13:58:56]Sock 8.First char is OK [13:58:56]request: POST /json_proto HTTP/1.0 [13:58:56]Method: POST [13:58:56]URL: /json_proto [13:58:56]Method is POST - this is cgi request [13:58:56]url: /json_proto [13:58:56]query_string will be loaded in cgi processing [13:58:56]execute_cgi json_proto POST (null) [13:58:56]execute_cgi path=json_proto method=POST [13:58:56]POST find Content-Length [13:58:56]Host: 172.17.63.131:8080 [13:58:56]Content-Length: 673 [13:58:56]Content-Type: application/json [13:58:56] [13:58:56]POST finish read [13:58:56]Found Content-Length = 673 [13:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [13:58:56]execute_script... [13: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)30724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [13:58:56]POST & json_proto [13:58:56]process_json_proto [13:58:56]json parsed OK: [13:58:56]protocol is kg_v1.0 [13:58:56]action value=close_receipt [13:58:56]process_action close_receipt [13:58:56]cmd_close_receipt [13:58:56]MH_GetDate [13:58:56]Write to MH i2c: F0 00 00 AD 9D 39 [13:58:56]Write i2c OK [13:58:56]MH_I2C_Read... [13:58:56]Read from MH i2c: F0 [13:58:56]MH_I2C_Read... [13:58:56]Read from MH i2c: F0 09 00 [13:58:56]MH_I2C_Read... [13:58:56]Read from MH i2c: F0 09 00 AD 9D 00 2A A4 1B 67 22 05 6E 64 8B [13:58:56]GetLastDocTimeStamp 1729864525 [13:58:56]current date 1729864746 [13:58:56]FM_GetShiftState [13:58:56]SAM_PROTO_GetShiftState [13:58:56]wFMCommunicate request_size=4 [13:58:56]MH_SAM_APDU [13:58:56]CAPDU: 80 13 01 00 [13:58:56]Write to MH i2c: E2 08 00 AE 9D 80 13 01 00 00 00 00 00 C8 [13:58:56]Write i2c OK [13:58:56]MH_I2C_Read... [13:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:56]Read from MH i2c: E2 [13:58:56]MH_I2C_Read... [13:58:56]Read from MH i2c: E2 0E 00 [13:58:56]MH_I2C_Read... [13:58:56]Read from MH i2c: E2 0E 00 AE 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8B [13:58:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:58:56]wFMCommunicate OK [13:58:56]SAM_PROTO_GetShiftState done [13:58:56]FM_GetShiftState done [13:58:56]opened in 1729816399 [13:58:56]opened+sec_in_day 1729902799 [13:58:56]quantity*price = 50063 [13:58:56]sum+1 = 50064 [13:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 168 25.10.2024 13:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191429 ФПД: 22556518347616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191429&fm=22556518347616&tin=02508201610067®Number=0000000000091776&sum=50000 [13:58:58]StoreToDocumentArchive [13:58:58]shift 540 fd 191429 [13:58:58]save to /storage/0540/doc_00191429 [13:58:58]save last doc name /storage/0540/doc_00191429 to /storage/kkm_last_doc_name [13:58:58]save OK [13:58:58]Clear old archive folders... [13:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:58]tlvbuf is 01625860 [13:58:58]SAM_PROTO_ClearQueue [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 09 00 00 [13:58:58]Write to MH i2c: E2 08 00 BB 9D 80 09 00 00 00 00 00 00 CA [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 BB 9D 00 90 00 CC [13:58:58]RAPDU: 90 00 [13:58:58]wFMCommunicate OK [13:58:58]SAM_PROTO_ClearQueue done [13:58:58]KKMCreateOFDPacket [13:58:58]OFDProtocolAddRootSTLVToBuf [13:58:58]FM_MakeSignedData [13:58:58]FM_MakeSignedData [13:58:58]SAM_PROTO_SignData [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 0D 01 02 [13:58:58]Write to MH i2c: E2 08 00 BC 9D 80 0D 01 02 00 00 00 00 D2 [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 BC 9D 00 90 00 CD [13:58:58]RAPDU: 90 00 [13:58:58]wFMCommunicate OK [13:58:58]wFMCommunicate request_size=255 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 2A A4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EB 02 00 35 04 06 00 14 83 D9 43 [13:58:58]Write to MH i2c: E2 02 01 BD 9D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 A8 00 00 00 F4 03 04 00 2A A4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EB 02 00 35 04 06 00 14 83 D9 43 00 00 5F [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 BD 9D 00 90 00 CE [13:58:58]RAPDU: 90 00 [13:58:58]wFMCommunicate OK [13:58:58]wFMCommunicate request_size=7 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 0D 02 02 02 73 60 [13:58:58]Write to MH i2c: E2 0A 00 BE 9D 80 0D 02 02 02 00 73 60 00 00 AC [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 03 00 BE 9D 00 90 00 CF [13:58:58]RAPDU: 90 00 [13:58:58]wFMCommunicate OK [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 0D 03 02 [13:58:58]Write to MH i2c: E2 08 00 BF 9D 80 0D 03 02 00 00 00 00 D7 [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0B 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0B 00 BF 9D 00 34 4E D2 7C 59 8A 0E 80 90 00 19 [13:58:58]RAPDU: 34 4E D2 7C 59 8A 0E 80 90 00 [13:58:58]wFMCommunicate OK [13:58:58]SAM_PROTO_SignData done [13:58:58]FM_MakeSignedData done [13:58:58]CreateOFDProtocolMessage [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 11 00 00 [13:58:58]Write to MH i2c: E2 08 00 C0 9D 80 11 00 00 00 00 00 00 D7 [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 17 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 17 00 C0 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [13:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:58:58]wFMCommunicate OK [13:58:58]CreateOFDProtocolMessage done [13:58:58]OFDSenderStorePacket 191429 [13:58:58]StoreOFDPacket docnum=191429 [13:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 05 E9 04 01 1C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 2A A4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EB 02 00 35 04 06 00 14 83 D9 43 73 60 34 4E D2 7C 59 8A 0E 80 [13:58:58]CheckFolder [13:58:58]dirname=/storage/ofd_packets [13:58:58]CheckFolder done [13:58:58]ProducePacketName [13:58:58]name=ofd_packets/00191429 [13:58:58]NVStorageSaveData ofd_packets/00191429 [13:58:58]File name is /storage/ofd_packets/00191429 [13:58:58]Write 298 bytes [13:58:58]NVStorageSaveData done [13:58:58]OFDSenderStorePacket done [13:58:58]KKMCreateOFDPacket done [13:58:58]NVStorageSaveData kkm_last_timestamp [13:58:58]File name is /storage/kkm_last_timestamp [13:58:58]Write 4 bytes [13:58:58]NVStorageSaveData done [13:58:58]ExternCall_PrintAddStr [13:58:58]wPrintStart [13:58:58]Write to MH i2c: 01 00 00 C1 9D 5E [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: 01 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: 01 07 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: 01 07 00 C1 9D 00 00 00 00 00 FF 0F 73 [13:58:58]RasterBufferAndPrint [13:58:58]line Счет N : (1)30724 [13:58:58]line ИНН: 02508201610067 [13:58:58]line Контрольно-Кассовый Чек [13:58:58]line ПРОДАЖА [13:58:58]line ТРК (МРК, ГНК) : 11 [13:58:58]line Товар: 2710194210 [13:58:58]line ДТ-К-5 [13:58:58]line 6.570 * 76.20 [13:58:58]line = 500.63 [13:58:58]line НДС 12% НСП 1% [13:58:58]line > о реализуемом товаре [13:58:58]line ОКРУГЛЕНИЕ: -0.63 [13:58:58]line ИТОГО: 500.00 [13:58:58]line Внесено: 500.00 [13:58:58]line СДАЧА: 0.00 [13:58:58]line НСП 1% : 4.43 [13:58:58]line НДС 12% : 53.16 [13:58:58]line Наличными: 500.00 [13:58:58]line Безнал.: 0.00 [13:58:58]line Место: АЗС № 170 "Партнер Нефть" [13:58:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:58:58]line СНО: Общий режим [13:58:58]line Чек 168 25.10.2024 13:59 [13:58:58]line Смена: 540 ФФД: 1.0 [13:58:58]line ЗНМ: 0300000110 [13:58:58]line РНМ: 0000000000091776 [13:58:58]line Версия ККМ: 001 [13:58:58]line ФМ: 0000000000871754 [13:58:58]line ФД: 191429 [13:58:58]line ФПД: 22556518347616 [13:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T135906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191429&fm=22556518347616&tin=02508201610067®Number=0000000000091776&sum=50000 [13:58:58]OFD Sender: Processing packet 191429 [packets to send 75, broken 74] [13:58:58]ProducePacketName [13:58:58]name=ofd_packets/00191429 [13:58:58]OFD Sender: To server: pG, [13:58:58]CommunicateWithHost lk.salyk.kg:30040 [13:58:58]ConnectInit lk.salyk.kg [13:58:58]written 0, free lines is 4095 [13:58:59]Connected sock=10 [13:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 05 E9 04 01 1C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 2A A4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EB 02 00 35 04 06 00 14 83 D9 43 73 60 34 4E D2 7C 59 8A 0E 80 [13:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 5F 47 00 39 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EB 02 00 F4 03 04 00 F8 48 1B 67 B6 04 01 00 00 C2 96 DE 12 05 7F 0D 7D [13:58:59]CommunicateWithHost err = 0 [13:58:59]CheckOFDResponse [13:58:59]1017 (14) - 77093643461234 [13:58:59]1041 (16) - 0000000000871754 [13:58:59]1040 (4) - 191429 [13:58:59]1012 (4) - 25.10.2024 07:30 [13:58:59]1206 (1) - 0 [13:58:59]OFD Sender: Remove packet 191429 [13:58:59]ProducePacketName [13:58:59]name=ofd_packets/00191429 [13:58:59]NVStorageDeleteData [13:58:59]Write to MH i2c: 01 00 00 EC 9D 89 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 07 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 07 00 EC 9D 00 00 00 00 00 B1 0C 4D [13:58:59]RasterBufferAndPrint [13:58:59]line [13:58:59]line [13:58:59]line [13:58:59]line [13:58:59]line [13:58:59]written 0, free lines is 3256 [13:58:59]MH_Cut [13:58:59]Write to MH i2c: D1 01 00 F3 9D 01 62 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: D1 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: D1 01 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: D1 01 00 F3 9D 00 61 [13:58:59]Write to MH i2c: 01 00 00 F4 9D 91 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]OFD Sender: No OFD packet to send [13:59:00]*** Cut start [13:59:00]*** Partial cut [13:59:00]*** CUTSNS_PIN = 1 [13:59:00]*** CUTSNS_PIN = 0 [13:59:00]*** Brake cut motor [13:59:00]Read from MH i2c: 01 [13:59:00]MH_I2C_Read... [13:59:00]*** Stop cut motor [13:59:00]*** Cut end [13:59:00]Read from MH i2c: 01 07 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 F4 9D 00 00 00 00 00 FF 0F A6 [13:59:00]process_action close_receipt done [13:59:00]requested_data is exist [13:59:00]produce_requested_data [13:59:00]requested_item fm.sn is exist - process it [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 11 00 00 [13:59:00]Write to MH i2c: E2 08 00 F5 9D 80 11 00 00 00 00 00 00 0C [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 F5 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [13:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:59:00]wFMCommunicate OK [13:59:00]requested_item fd.num is exist - process it [13:59:00]SAM_PROTO_GetFieldsCounters [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 13 00 00 [13:59:00]Write to MH i2c: E2 08 00 F6 9D 80 13 00 00 00 00 00 00 0F [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 62 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 62 00 F6 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [13:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:01]wFMCommunicate OK [13:59:01]SAM_PROTO_GetFieldsCounters done [13:59:01]requested_item shift.num is exist - process it [13:59:01]requested_item shift.opened is exist - process it [13:59:01]req_shift_opened [13:59:01]FM_GetShiftState [13:59:01]SAM_PROTO_GetShiftState [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 13 01 00 [13:59:01]Write to MH i2c: E2 08 00 F7 9D 80 13 01 00 00 00 00 00 11 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 0E 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 0E 00 F7 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D4 [13:59:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [13:59:01]wFMCommunicate OK [13:59:01]SAM_PROTO_GetShiftState done [13:59:01]FM_GetShiftState done [13:59:01]req_shift_opened done [13:59:01]requested_item shift.open_date is exist - process it [13:59:01]req_shift_open_date [13:59:01]req_shift_open_date done [13:59:01]produce_requested_data done [13:59:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191429,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [13:59:01]process_action_free close_receipt [13:59:01]json_value_free [13:59:01]json_value_free done [13:59:01]process_json_proto returns [13:59:01]Send response to host [13:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191429,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [13:59:01]free response buf [13:59:01]execute_script done [13:59:01]execute_script returns [13:59:01]free content buf [13:59:01]Sock 8.Close socket [13:59:01]Sock 8.Thread stoped [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:04:57]accept exits with 9 [14:04:57]New connection [14:04:57]New thread 3066961252 created [14:04:57]Thread 3066817892 joined [14:04:57]Waiting for new connection... [14:04:57] Sock 9.Parse request [14:04:57]Sock 9.Check first char [14:04:57]Sock 9.First char is OK [14:04:57]request: POST /json_proto HTTP/1.0 [14:04:57]Method: POST [14:04:57]URL: /json_proto [14:04:57]Method is POST - this is cgi request [14:04:57]url: /json_proto [14:04:57]query_string will be loaded in cgi processing [14:04:57]execute_cgi json_proto POST (null) [14:04:57]execute_cgi path=json_proto method=POST [14:04:57]POST find Content-Length [14:04:57]Host: 172.17.63.131:8080 [14:04:57]Content-Length: 681 [14:04:57]Content-Type: application/json [14:04:57] [14:04:57]POST finish read [14:04:57]Found Content-Length = 681 [14:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:57]execute_script... [14:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:57]POST & json_proto [14:04:57]process_json_proto [14:04:57]json parsed OK: [14:04:57]protocol is kg_v1.0 [14:04:57]action value=close_receipt [14:04:57]process_action close_receipt [14:04:57]cmd_close_receipt [14:04:57]MH_GetDate [14:04:57]Write to MH i2c: F0 00 00 F8 9D 84 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 09 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: F0 09 00 F8 9D 00 92 A5 1B 67 22 05 6E 64 3F [14:04:57]GetLastDocTimeStamp 1729864746 [14:04:57]current date 1729865106 [14:04:57]FM_GetShiftState [14:04:57]SAM_PROTO_GetShiftState [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 01 00 [14:04:57]Write to MH i2c: E2 08 00 F9 9D 80 13 01 00 00 00 00 00 13 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 F9 9D 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [14:04:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetShiftState done [14:04:57]FM_GetShiftState done [14:04:57]opened in 1729816399 [14:04:57]opened+sec_in_day 1729902799 [14:04:57]quantity*price = 100015 [14:04:57]sum+1 = 100017 [14:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 169 25.10.2024 14:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191430 ФПД: 175002884663007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191430&fm=175002884663007&tin=02508201610067®Number=0000000000091776&sum=100000 [14:04:58]StoreToDocumentArchive [14:04:58]shift 540 fd 191430 [14:04:58]save to /storage/0540/doc_00191430 [14:04:58]save last doc name /storage/0540/doc_00191430 to /storage/kkm_last_doc_name [14:04:58]save OK [14:04:58]Clear old archive folders... [14:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:58]tlvbuf is 0183C3A0 [14:04:58]SAM_PROTO_ClearQueue [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 09 00 00 [14:04:58]Write to MH i2c: E2 08 00 06 9E 80 09 00 00 00 00 00 00 16 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 06 9E 00 90 00 18 [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_ClearQueue done [14:04:58]KKMCreateOFDPacket [14:04:58]OFDProtocolAddRootSTLVToBuf [14:04:58]FM_MakeSignedData [14:04:58]FM_MakeSignedData [14:04:58]SAM_PROTO_SignData [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 01 02 [14:04:58]Write to MH i2c: E2 08 00 07 9E 80 0D 01 02 00 00 00 00 1E [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 07 9E 00 90 00 19 [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=255 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 92 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EB 02 00 35 04 06 00 9F [14:04:58]Write to MH i2c: E2 02 01 08 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 92 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EB 02 00 35 04 06 00 9F 00 00 7E [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 08 9E 00 90 00 1A [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=10 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 02 02 05 2A 08 C6 66 DF [14:04:58]Write to MH i2c: E2 0D 00 09 9E 80 0D 02 02 05 00 2A 08 C6 66 DF 00 00 68 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 09 9E 00 90 00 1B [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 03 02 [14:04:58]Write to MH i2c: E2 08 00 0A 9E 80 0D 03 02 00 00 00 00 23 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0B 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0B 00 0A 9E 00 1B 63 1C 48 55 77 88 07 90 00 61 [14:04:58]RAPDU: 1B 63 1C 48 55 77 88 07 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_SignData done [14:04:58]FM_MakeSignedData done [14:04:58]CreateOFDProtocolMessage [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 11 00 00 [14:04:58]Write to MH i2c: E2 08 00 0B 9E 80 11 00 00 00 00 00 00 23 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 17 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 17 00 0B 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [14:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:04:58]wFMCommunicate OK [14:04:58]CreateOFDProtocolMessage done [14:04:58]OFDSenderStorePacket 191430 [14:04:58]StoreOFDPacket docnum=191430 [14:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 38 07 01 4B 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 92 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EB 02 00 35 04 06 00 9F 2A 08 C6 66 DF 1B 63 1C 48 55 77 88 07 [14:04:58]CheckFolder [14:04:58]dirname=/storage/ofd_packets [14:04:58]CheckFolder done [14:04:58]ProducePacketName [14:04:58]name=ofd_packets/00191430 [14:04:58]NVStorageSaveData ofd_packets/00191430 [14:04:58]File name is /storage/ofd_packets/00191430 [14:04:58]Write 301 bytes [14:04:58]NVStorageSaveData done [14:04:58]OFDSenderStorePacket done [14:04:58]KKMCreateOFDPacket done [14:04:58]NVStorageSaveData kkm_last_timestamp [14:04:58]File name is /storage/kkm_last_timestamp [14:04:58]Write 4 bytes [14:04:58]NVStorageSaveData done [14:04:58]ExternCall_PrintAddStr [14:04:58]wPrintStart [14:04:58]Write to MH i2c: 01 00 00 0C 9E AA [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 07 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 07 00 0C 9E 00 00 00 00 00 FF 0F BF [14:04:58]RasterBufferAndPrint [14:04:58]line Счет N : (1)30725 [14:04:58]line ИНН: 02508201610067 [14:04:58]line Контрольно-Кассовый Чек [14:04:58]line ПРОДАЖА [14:04:58]line ТРК (МРК, ГНК) : 21 [14:04:58]line Товар: 2710124130 [14:04:58]line Аи-92-К-5 [14:04:58]line 14.950 * 66.90 [14:04:58]line = 1000.16 [14:04:58]line НДС 12% НСП 1% [14:04:58]line > о реализуемом товаре [14:04:58]line ОКРУГЛЕНИЕ: -0.16 [14:04:58]line ИТОГО: 1000.00 [14:04:58]line Внесено: 1000.00 [14:04:58]line СДАЧА: 0.00 [14:04:58]line НСП 1% : 8.85 [14:04:58]line НДС 12% : 106.21 [14:04:58]line Наличными: 1000.00 [14:04:58]line Безнал.: 0.00 [14:04:58]line Место: АЗС № 170 "Партнер Нефть" [14:04:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:04:58]line СНО: Общий режим [14:04:58]line Чек 169 25.10.2024 14:05 [14:04:58]line Смена: 540 ФФД: 1.0 [14:04:58]line ЗНМ: 0300000110 [14:04:58]line РНМ: 0000000000091776 [14:04:58]line Версия ККМ: 001 [14:04:58]line ФМ: 0000000000871754 [14:04:58]line ФД: 191430 [14:04:58]line ФПД: 175002884663007 [14:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191430&fm=175002884663007&tin=02508201610067®Number=0000000000091776&sum=100000 [14:04:58]written 0, free lines is 4095 [14:04:58]OFD Sender: Processing packet 191430 [packets to send 75, broken 74] [14:04:58]ProducePacketName [14:04:58]name=ofd_packets/00191430 [14:04:58]OFD Sender: To server: pG, [14:04:58]CommunicateWithHost lk.salyk.kg:30040 [14:04:59]ConnectInit lk.salyk.kg [14:04:59]Connected sock=10 [14:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 38 07 01 4B 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 92 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EB 02 00 35 04 06 00 9F 2A 08 C6 66 DF 1B 63 1C 48 55 77 88 07 [14:04:59]Write to MH i2c: 01 00 00 37 9E D5 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 07 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: 01 07 00 37 9E 00 00 00 00 00 B6 0C 9E [14:04:59]RasterBufferAndPrint [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]written 0, free lines is 3259 [14:04:59]MH_Cut [14:04:59]Write to MH i2c: D1 01 00 3E 9E 01 AE [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 01 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 01 00 3E 9E 00 AD [14:04:59]Write to MH i2c: 01 00 00 3F 9E DD [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 73 47 00 CA 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 31 37 35 34 10 04 04 00 C6 EB 02 00 F4 03 04 00 60 4A 1B 67 B6 04 01 00 00 B2 BE EE EE 84 FE 37 1A [14:04:59]CommunicateWithHost err = 0 [14:04:59]CheckOFDResponse [14:04:59]1017 (14) - 77093643461234 [14:04:59]1041 (16) - 0000000000871754 [14:04:59]1040 (4) - 191430 [14:04:59]1012 (4) - 25.10.2024 07:36 [14:04:59]1206 (1) - 0 [14:04:59]OFD Sender: Remove packet 191430 [14:04:59]ProducePacketName [14:04:59]name=ofd_packets/00191430 [14:04:59]NVStorageDeleteData [14:04:59]OFD Sender: No OFD packet to send [14:05:00]*** Cut start [14:05:00]*** Partial cut [14:05:00]*** CUTSNS_PIN = 1 [14:05:00]*** CUTSNS_PIN = 0 [14:05:00]*** Brake cut motor [14:05:00]Read from MH i2c: 01 [14:05:00]*** Stop cut motor [14:05:00]*** Cut end [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: 01 07 00 3F 9E 00 00 00 00 00 FF 0F F2 [14:05:00]process_action close_receipt done [14:05:00]requested_data is exist [14:05:00]produce_requested_data [14:05:00]requested_item fm.sn is exist - process it [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 11 00 00 [14:05:00]Write to MH i2c: E2 08 00 40 9E 80 11 00 00 00 00 00 00 58 [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 17 00 40 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [14:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:00]wFMCommunicate OK [14:05:00]requested_item fd.num is exist - process it [14:05:00]SAM_PROTO_GetFieldsCounters [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 00 00 [14:05:00]Write to MH i2c: E2 08 00 41 9E 80 13 00 00 00 00 00 00 5B [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 62 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 62 00 41 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [14:05:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetFieldsCounters done [14:05:00]requested_item shift.num is exist - process it [14:05:00]requested_item shift.opened is exist - process it [14:05:00]req_shift_opened [14:05:00]FM_GetShiftState [14:05:00]SAM_PROTO_GetShiftState [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 01 00 [14:05:00]Write to MH i2c: E2 08 00 42 9E 80 13 01 00 00 00 00 00 5D [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 42 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 20 [14:05:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetShiftState done [14:05:00]FM_GetShiftState done [14:05:00]req_shift_opened done [14:05:00]requested_item shift.open_date is exist - process it [14:05:00]req_shift_open_date [14:05:00]req_shift_open_date done [14:05:00]produce_requested_data done [14:05:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191430,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:05:00]process_action_free close_receipt [14:05:00]json_value_free [14:05:00]json_value_free done [14:05:00]process_json_proto returns [14:05:00]Send response to host [14:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191430,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:05:00]free response buf [14:05:00]execute_script done [14:05:00]execute_script returns [14:05:00]free content buf [14:05:00]Sock 9.Close socket [14:05:00]Sock 9.Thread stoped [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]accept exits with 8 [14:05:19]New connection [14:05:19]New thread 3066817892 created [14:05:19]Thread 3066961252 joined [14:05:19]Waiting for new connection... [14:05:19] Sock 8.Parse request [14:05:19]Sock 8.Check first char [14:05:19]Sock 8.First char is OK [14:05:19]request: POST /json_proto HTTP/1.0 [14:05:19]Method: POST [14:05:19]URL: /json_proto [14:05:19]Method is POST - this is cgi request [14:05:19]url: /json_proto [14:05:19]query_string will be loaded in cgi processing [14:05:19]execute_cgi json_proto POST (null) [14:05:19]execute_cgi path=json_proto method=POST [14:05:19]POST find Content-Length [14:05:19]Host: 172.17.63.131:8080 [14:05:19]Content-Length: 673 [14:05:19]Content-Type: application/json [14:05:19] [14:05:19]POST finish read [14:05:19]Found Content-Length = 673 [14:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:05:19]execute_script... [14:05: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)30726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:05:19]POST & json_proto [14:05:19]process_json_proto [14:05:19]json parsed OK: [14:05:19]protocol is kg_v1.0 [14:05:19]action value=close_receipt [14:05:19]process_action close_receipt [14:05:19]cmd_close_receipt [14:05:19]MH_GetDate [14:05:19]Write to MH i2c: F0 00 00 43 9E D0 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 09 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 09 00 43 9E 00 A8 A5 1B 67 22 05 6E 64 A1 [14:05:19]GetLastDocTimeStamp 1729865106 [14:05:19]current date 1729865128 [14:05:19]FM_GetShiftState [14:05:19]SAM_PROTO_GetShiftState [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 13 01 00 [14:05:19]Write to MH i2c: E2 08 00 44 9E 80 13 01 00 00 00 00 00 5F [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0E 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0E 00 44 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 22 [14:05:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:05:19]wFMCommunicate OK [14:05:19]SAM_PROTO_GetShiftState done [14:05:19]FM_GetShiftState done [14:05:19]opened in 1729816399 [14:05:19]opened+sec_in_day 1729902799 [14:05:19]quantity*price = 70027 [14:05:19]sum+1 = 70029 [14:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 170 25.10.2024 14:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191431 ФПД: 33351252892202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191431&fm=33351252892202&tin=02508201610067®Number=0000000000091776&sum=70000 [14:05:20]StoreToDocumentArchive [14:05:20]shift 540 fd 191431 [14:05:20]save to /storage/0540/doc_00191431 [14:05:20]save last doc name /storage/0540/doc_00191431 to /storage/kkm_last_doc_name [14:05:20]save OK [14:05:20]Clear old archive folders... [14:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:20]tlvbuf is 01831130 [14:05:20]SAM_PROTO_ClearQueue [14:05:20]wFMCommunicate request_size=4 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 09 00 00 [14:05:20]Write to MH i2c: E2 08 00 51 9E 80 09 00 00 00 00 00 00 61 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 51 9E 00 90 00 63 [14:05:20]RAPDU: 90 00 [14:05:20]wFMCommunicate OK [14:05:20]SAM_PROTO_ClearQueue done [14:05:20]KKMCreateOFDPacket [14:05:20]OFDProtocolAddRootSTLVToBuf [14:05:20]FM_MakeSignedData [14:05:20]FM_MakeSignedData [14:05:20]SAM_PROTO_SignData [14:05:20]wFMCommunicate request_size=4 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 0D 01 02 [14:05:20]Write to MH i2c: E2 08 00 52 9E 80 0D 01 02 00 00 00 00 69 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 52 9E 00 90 00 64 [14:05:20]RAPDU: 90 00 [14:05:20]wFMCommunicate OK [14:05:20]wFMCommunicate request_size=255 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 A8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EB 02 00 35 04 06 00 1E 55 31 94 [14:05:20]Write to MH i2c: E2 02 01 53 9E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EB 02 00 35 04 06 00 1E 55 31 94 00 00 72 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 53 9E 00 90 00 65 [14:05:21]RAPDU: 90 00 [14:05:21]wFMCommunicate OK [14:05:21]wFMCommunicate request_size=7 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 0D 02 02 02 DA 2A [14:05:21]Write to MH i2c: E2 0A 00 54 9E 80 0D 02 02 02 00 DA 2A 00 00 74 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 54 9E 00 90 00 66 [14:05:21]RAPDU: 90 00 [14:05:21]wFMCommunicate OK [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 0D 03 02 [14:05:21]Write to MH i2c: E2 08 00 55 9E 80 0D 03 02 00 00 00 00 6E [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0B 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0B 00 55 9E 00 F4 62 85 7C 19 AE 88 08 90 00 1D [14:05:21]RAPDU: F4 62 85 7C 19 AE 88 08 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_SignData done [14:05:21]FM_MakeSignedData done [14:05:21]CreateOFDProtocolMessage [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 11 00 00 [14:05:21]Write to MH i2c: E2 08 00 56 9E 80 11 00 00 00 00 00 00 6E [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 56 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [14:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:21]wFMCommunicate OK [14:05:21]CreateOFDProtocolMessage done [14:05:21]OFDSenderStorePacket 191431 [14:05:21]StoreOFDPacket docnum=191431 [14:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E E8 04 01 07 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 AA 00 00 00 F4 03 04 00 A8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EB 02 00 35 04 06 00 1E 55 31 94 DA 2A F4 62 85 7C 19 AE 88 08 [14:05:21]CheckFolder [14:05:21]dirname=/storage/ofd_packets [14:05:21]CheckFolder done [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00191431 [14:05:21]NVStorageSaveData ofd_packets/00191431 [14:05:21]File name is /storage/ofd_packets/00191431 [14:05:21]Write 298 bytes [14:05:21]NVStorageSaveData done [14:05:21]OFDSenderStorePacket done [14:05:21]KKMCreateOFDPacket done [14:05:21]NVStorageSaveData kkm_last_timestamp [14:05:21]File name is /storage/kkm_last_timestamp [14:05:21]Write 4 bytes [14:05:21]NVStorageSaveData done [14:05:21]ExternCall_PrintAddStr [14:05:21]wPrintStart [14:05:21]Write to MH i2c: 01 00 00 57 9E F5 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 57 9E 00 00 00 00 00 FF 0F 0A [14:05:21]RasterBufferAndPrint [14:05:21]line Счет N : (1)30726 [14:05:21]line ИНН: 02508201610067 [14:05:21]line Контрольно-Кассовый Чек [14:05:21]line ПРОДАЖА [14:05:21]line ТРК (МРК, ГНК) : 22 [14:05:21]line Товар: 2710194210 [14:05:21]line ДТ-К-5 [14:05:21]line 9.190 * 76.20 [14:05:21]line = 700.28 [14:05:21]line НДС 12% НСП 1% [14:05:21]line > о реализуемом товаре [14:05:21]line ОКРУГЛЕНИЕ: -0.28 [14:05:21]line ИТОГО: 700.00 [14:05:21]line Внесено: 700.00 [14:05:21]line СДАЧА: 0.00 [14:05:21]line НСП 1% : 6.20 [14:05:21]line НДС 12% : 74.37 [14:05:21]line Наличными: 700.00 [14:05:21]line Безнал.: 0.00 [14:05:21]line Место: АЗС № 170 "Партнер Нефть" [14:05:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:05:21]line СНО: Общий режим [14:05:21]line Чек 170 25.10.2024 14:05 [14:05:21]line Смена: 540 ФФД: 1.0 [14:05:21]line ЗНМ: 0300000110 [14:05:21]line РНМ: 0000000000091776 [14:05:21]line Версия ККМ: 001 [14:05:21]line ФМ: 0000000000871754 [14:05:21]line ФД: 191431 [14:05:21]line ФПД: 33351252892202 [14:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191431&fm=33351252892202&tin=02508201610067®Number=0000000000091776&sum=70000 [14:05:21]OFD Sender: Processing packet 191431 [packets to send 75, broken 74] [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00191431 [14:05:21]OFD Sender: To server: pG, [14:05:21]CommunicateWithHost lk.salyk.kg:30040 [14:05:21]ConnectInit lk.salyk.kg [14:05:21]written 0, free lines is 4095 [14:05:21]Connected sock=10 [14:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E E8 04 01 07 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 AA 00 00 00 F4 03 04 00 A8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EB 02 00 35 04 06 00 1E 55 31 94 DA 2A F4 62 85 7C 19 AE 88 08 [14:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 8A 47 00 C3 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EB 02 00 F4 03 04 00 77 4A 1B 67 B6 04 01 00 00 E3 8A DB 96 B3 FE 34 AE [14:05:21]CommunicateWithHost err = 0 [14:05:21]CheckOFDResponse [14:05:21]1017 (14) - 77093643461234 [14:05:21]1041 (16) - 0000000000871754 [14:05:21]1040 (4) - 191431 [14:05:21]1012 (4) - 25.10.2024 07:36 [14:05:21]1206 (1) - 0 [14:05:21]OFD Sender: Remove packet 191431 [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00191431 [14:05:21]NVStorageDeleteData [14:05:21]Write to MH i2c: 01 00 00 82 9E 20 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 82 9E 00 00 00 00 00 B7 0C EA [14:05:21]RasterBufferAndPrint [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]written 0, free lines is 3263 [14:05:22]MH_Cut [14:05:22]Write to MH i2c: D1 01 00 89 9E 01 F9 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: D1 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: D1 01 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: D1 01 00 89 9E 00 F8 [14:05:22]Write to MH i2c: 01 00 00 8A 9E 28 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]OFD Sender: No OFD packet to send [14:05:22]*** Cut start [14:05:22]*** Partial cut [14:05:22]*** CUTSNS_PIN = 1 [14:05:22]*** CUTSNS_PIN = 0 [14:05:23]*** Brake cut motor [14:05:23]Read from MH i2c: 01 [14:05:23]MH_I2C_Read... [14:05:23]*** Stop cut motor [14:05:23]*** Cut end [14:05:23]Read from MH i2c: 01 07 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 8A 9E 00 00 00 00 00 FF 0F 3D [14:05:23]process_action close_receipt done [14:05:23]requested_data is exist [14:05:23]produce_requested_data [14:05:23]requested_item fm.sn is exist - process it [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 11 00 00 [14:05:23]Write to MH i2c: E2 08 00 8B 9E 80 11 00 00 00 00 00 00 A3 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:23]Read from MH i2c: E2 17 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 17 00 8B 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [14:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:23]wFMCommunicate OK [14:05:23]requested_item fd.num is exist - process it [14:05:23]SAM_PROTO_GetFieldsCounters [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 13 00 00 [14:05:23]Write to MH i2c: E2 08 00 8C 9E 80 13 00 00 00 00 00 00 A6 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 62 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 62 00 8C 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [14:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:23]wFMCommunicate OK [14:05:23]SAM_PROTO_GetFieldsCounters done [14:05:23]requested_item shift.num is exist - process it [14:05:23]requested_item shift.opened is exist - process it [14:05:23]req_shift_opened [14:05:23]FM_GetShiftState [14:05:23]SAM_PROTO_GetShiftState [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 13 01 00 [14:05:23]Write to MH i2c: E2 08 00 8D 9E 80 13 01 00 00 00 00 00 A8 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 0E 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 0E 00 8D 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6B [14:05:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:05:23]wFMCommunicate OK [14:05:23]SAM_PROTO_GetShiftState done [14:05:23]FM_GetShiftState done [14:05:23]req_shift_opened done [14:05:23]requested_item shift.open_date is exist - process it [14:05:23]req_shift_open_date [14:05:23]req_shift_open_date done [14:05:23]produce_requested_data done [14:05:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191431,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:05:23]process_action_free close_receipt [14:05:23]json_value_free [14:05:23]json_value_free done [14:05:23]process_json_proto returns [14:05:23]Send response to host [14:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191431,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:05:23]free response buf [14:05:23]execute_script done [14:05:23]execute_script returns [14:05:23]free content buf [14:05:23]Sock 8.Close socket [14:05:23]Sock 8.Thread stoped [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:51]accept exits with 9 [14:05:51]New connection [14:05:51]New thread 3066961252 created [14:05:51]Thread 3066817892 joined [14:05:51]Waiting for new connection... [14:05:51] Sock 9.Parse request [14:05:51]Sock 9.Check first char [14:05:51]Sock 9.First char is OK [14:05:51]request: POST /json_proto HTTP/1.0 [14:05:51]Method: POST [14:05:51]URL: /json_proto [14:05:51]Method is POST - this is cgi request [14:05:51]url: /json_proto [14:05:51]query_string will be loaded in cgi processing [14:05:51]execute_cgi json_proto POST (null) [14:05:51]execute_cgi path=json_proto method=POST [14:05:51]POST find Content-Length [14:05:51]Host: 172.17.63.131:8080 [14:05:51]Content-Length: 676 [14:05:51]Content-Type: application/json [14:05:51] [14:05:51]POST finish read [14:05:51]Found Content-Length = 676 [14:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:51]execute_script... [14:05: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)30727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:51]POST & json_proto [14:05:51]process_json_proto [14:05:51]json parsed OK: [14:05:51]protocol is kg_v1.0 [14:05:51]action value=close_receipt [14:05:51]process_action close_receipt [14:05:51]cmd_close_receipt [14:05:51]MH_GetDate [14:05:51]Write to MH i2c: F0 00 00 8E 9E 1B [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: F0 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: F0 09 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: F0 09 00 8E 9E 00 C8 A5 1B 67 22 05 6E 64 0C [14:05:51]GetLastDocTimeStamp 1729865128 [14:05:51]current date 1729865160 [14:05:51]FM_GetShiftState [14:05:51]SAM_PROTO_GetShiftState [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 13 01 00 [14:05:51]Write to MH i2c: E2 08 00 8F 9E 80 13 01 00 00 00 00 00 AA [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0E 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0E 00 8F 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6D [14:05:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:05:51]wFMCommunicate OK [14:05:51]SAM_PROTO_GetShiftState done [14:05:51]FM_GetShiftState done [14:05:51]opened in 1729816399 [14:05:51]opened+sec_in_day 1729902799 [14:05:51]quantity*price = 50041 [14:05:51]sum+1 = 50042 [14:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 171 25.10.2024 14:06 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191432 ФПД: 170407182536730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191432&fm=170407182536730&tin=02508201610067®Number=0000000000091776&sum=50000 [14:05:52]StoreToDocumentArchive [14:05:52]shift 540 fd 191432 [14:05:52]save to /storage/0540/doc_00191432 [14:05:52]save last doc name /storage/0540/doc_00191432 to /storage/kkm_last_doc_name [14:05:52]save OK [14:05:52]Clear old archive folders... [14:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:52]tlvbuf is 016EBA40 [14:05:52]SAM_PROTO_ClearQueue [14:05:52]wFMCommunicate request_size=4 [14:05:52]MH_SAM_APDU [14:05:52]CAPDU: 80 09 00 00 [14:05:52]Write to MH i2c: E2 08 00 9C 9E 80 09 00 00 00 00 00 00 AC [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:52]Read from MH i2c: E2 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 9C 9E 00 90 00 AE [14:05:52]RAPDU: 90 00 [14:05:52]wFMCommunicate OK [14:05:52]SAM_PROTO_ClearQueue done [14:05:52]KKMCreateOFDPacket [14:05:52]OFDProtocolAddRootSTLVToBuf [14:05:52]FM_MakeSignedData [14:05:52]FM_MakeSignedData [14:05:52]SAM_PROTO_SignData [14:05:52]wFMCommunicate request_size=4 [14:05:52]MH_SAM_APDU [14:05:52]CAPDU: 80 0D 01 02 [14:05:52]Write to MH i2c: E2 08 00 9D 9E 80 0D 01 02 00 00 00 00 B4 [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:52]Read from MH i2c: E2 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 9D 9E 00 90 00 AF [14:05:52]RAPDU: 90 00 [14:05:52]wFMCommunicate OK [14:05:52]wFMCommunicate request_size=255 [14:05:52]MH_SAM_APDU [14:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EB 02 00 35 04 06 00 9A [14:05:52]Write to MH i2c: E2 02 01 9E 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EB 02 00 35 04 06 00 9A 00 00 4F [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:52]Read from MH i2c: E2 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 03 00 9E 9E 00 90 00 B0 [14:05:52]RAPDU: 90 00 [14:05:52]wFMCommunicate OK [14:05:52]wFMCommunicate request_size=10 [14:05:52]MH_SAM_APDU [14:05:52]CAPDU: 80 0D 02 02 05 FC 03 95 10 1A [14:05:52]Write to MH i2c: E2 0D 00 9F 9E 80 0D 02 02 05 00 FC 03 95 10 1A 00 00 7F [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 03 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 03 00 9F 9E 00 90 00 B1 [14:05:53]RAPDU: 90 00 [14:05:53]wFMCommunicate OK [14:05:53]wFMCommunicate request_size=4 [14:05:53]MH_SAM_APDU [14:05:53]CAPDU: 80 0D 03 02 [14:05:53]Write to MH i2c: E2 08 00 A0 9E 80 0D 03 02 00 00 00 00 B9 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 0B 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 0B 00 A0 9E 00 49 14 69 CE 97 D1 45 D4 90 00 CF [14:05:53]RAPDU: 49 14 69 CE 97 D1 45 D4 90 00 [14:05:53]wFMCommunicate OK [14:05:53]SAM_PROTO_SignData done [14:05:53]FM_MakeSignedData done [14:05:53]CreateOFDProtocolMessage [14:05:53]wFMCommunicate request_size=4 [14:05:53]MH_SAM_APDU [14:05:53]CAPDU: 80 11 00 00 [14:05:53]Write to MH i2c: E2 08 00 A1 9E 80 11 00 00 00 00 00 00 B9 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 17 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 17 00 A1 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [14:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:53]wFMCommunicate OK [14:05:53]CreateOFDProtocolMessage done [14:05:53]OFDSenderStorePacket 191432 [14:05:53]StoreOFDPacket docnum=191432 [14:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 30 07 01 7E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EB 02 00 35 04 06 00 9A FC 03 95 10 1A 49 14 69 CE 97 D1 45 D4 [14:05:53]CheckFolder [14:05:53]dirname=/storage/ofd_packets [14:05:53]CheckFolder done [14:05:53]ProducePacketName [14:05:53]name=ofd_packets/00191432 [14:05:53]NVStorageSaveData ofd_packets/00191432 [14:05:53]File name is /storage/ofd_packets/00191432 [14:05:53]Write 301 bytes [14:05:53]NVStorageSaveData done [14:05:53]OFDSenderStorePacket done [14:05:53]KKMCreateOFDPacket done [14:05:53]NVStorageSaveData kkm_last_timestamp [14:05:53]File name is /storage/kkm_last_timestamp [14:05:53]Write 4 bytes [14:05:53]NVStorageSaveData done [14:05:53]ExternCall_PrintAddStr [14:05:53]wPrintStart [14:05:53]Write to MH i2c: 01 00 00 A2 9E 40 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 07 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 07 00 A2 9E 00 00 00 00 00 FF 0F 55 [14:05:53]RasterBufferAndPrint [14:05:53]line Счет N : (1)30727 [14:05:53]line ИНН: 02508201610067 [14:05:53]line Контрольно-Кассовый Чек [14:05:53]line ПРОДАЖА [14:05:53]line ТРК (МРК, ГНК) : 12 [14:05:53]line Товар: 2710124130 [14:05:53]line Аи-92-К-5 [14:05:53]line 7.480 * 66.90 [14:05:53]line = 500.41 [14:05:53]line НДС 12% НСП 1% [14:05:53]line > о реализуемом товаре [14:05:53]line ОКРУГЛЕНИЕ: -0.41 [14:05:53]line ИТОГО: 500.00 [14:05:53]line Внесено: 500.00 [14:05:53]line СДАЧА: 0.00 [14:05:53]line НСП 1% : 4.43 [14:05:53]line НДС 12% : 53.14 [14:05:53]line Наличными: 500.00 [14:05:53]line Безнал.: 0.00 [14:05:53]line Место: АЗС № 170 "Партнер Нефть" [14:05:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:05:53]line СНО: Общий режим [14:05:53]line Чек 171 25.10.2024 14:06 [14:05:53]line Смена: 540 ФФД: 1.0 [14:05:53]line ЗНМ: 0300000110 [14:05:53]line РНМ: 0000000000091776 [14:05:53]line Версия ККМ: 001 [14:05:53]line ФМ: 0000000000871754 [14:05:53]line ФД: 191432 [14:05:53]line ФПД: 170407182536730 [14:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191432&fm=170407182536730&tin=02508201610067®Number=0000000000091776&sum=50000 [14:05:53]OFD Sender: Processing packet 191432 [packets to send 75, broken 74] [14:05:53]ProducePacketName [14:05:53]name=ofd_packets/00191432 [14:05:53]OFD Sender: To server: pG, [14:05:53]CommunicateWithHost lk.salyk.kg:30040 [14:05:53]ConnectInit lk.salyk.kg [14:05:53]written 0, free lines is 4095 [14:05:53]Connected sock=10 [14:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 30 07 01 7E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C8 A5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EB 02 00 35 04 06 00 9A FC 03 95 10 1A 49 14 69 CE 97 D1 45 D4 [14:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F 55 47 00 14 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EB 02 00 F4 03 04 00 97 4A 1B 67 B6 04 01 00 00 21 27 6D 7B 0A C9 E9 74 [14:05:53]CommunicateWithHost err = 0 [14:05:53]CheckOFDResponse [14:05:53]1017 (14) - 77093643461234 [14:05:53]1041 (16) - 0000000000871754 [14:05:53]1040 (4) - 191432 [14:05:53]1012 (4) - 25.10.2024 07:36 [14:05:53]1206 (1) - 0 [14:05:53]OFD Sender: Remove packet 191432 [14:05:53]ProducePacketName [14:05:53]name=ofd_packets/00191432 [14:05:53]NVStorageDeleteData [14:05:53]Write to MH i2c: 01 00 00 CD 9E 6B [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 07 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 07 00 CD 9E 00 00 00 00 00 BB 0C 39 [14:05:53]RasterBufferAndPrint [14:05:53]line [14:05:53]line [14:05:53]line [14:05:53]line [14:05:53]line [14:05:53]written 0, free lines is 3266 [14:05:53]MH_Cut [14:05:53]Write to MH i2c: D1 01 00 D4 9E 01 44 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: D1 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: D1 01 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: D1 01 00 D4 9E 00 43 [14:05:53]Write to MH i2c: 01 00 00 D5 9E 73 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:54]OFD Sender: No OFD packet to send [14:05:54]*** Cut start [14:05:54]*** Partial cut [14:05:54]*** CUTSNS_PIN = 1 [14:05:54]*** CUTSNS_PIN = 0 [14:05:55]*** Brake cut motor [14:05:55]Read from MH i2c: 01 [14:05:55]MH_I2C_Read... [14:05:55]*** Stop cut motor [14:05:55]Read from MH i2c: *** Cut end [14:05:55]01 07 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: 01 07 00 D5 9E 00 00 00 00 00 FF 0F 88 [14:05:55]process_action close_receipt done [14:05:55]requested_data is exist [14:05:55]produce_requested_data [14:05:55]requested_item fm.sn is exist - process it [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 11 00 00 [14:05:55]Write to MH i2c: E2 08 00 D6 9E 80 11 00 00 00 00 00 00 EE [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 17 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 17 00 D6 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [14:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:55]wFMCommunicate OK [14:05:55]requested_item fd.num is exist - process it [14:05:55]SAM_PROTO_GetFieldsCounters [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 13 00 00 [14:05:55]Write to MH i2c: E2 08 00 D7 9E 80 13 00 00 00 00 00 00 F1 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 62 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 62 00 D7 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [14:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_GetFieldsCounters done [14:05:55]requested_item shift.num is exist - process it [14:05:55]requested_item shift.opened is exist - process it [14:05:55]req_shift_opened [14:05:55]FM_GetShiftState [14:05:55]SAM_PROTO_GetShiftState [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 13 01 00 [14:05:55]Write to MH i2c: E2 08 00 D8 9E 80 13 01 00 00 00 00 00 F3 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 D8 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B6 [14:05:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_GetShiftState done [14:05:55]FM_GetShiftState done [14:05:55]req_shift_opened done [14:05:55]requested_item shift.open_date is exist - process it [14:05:55]req_shift_open_date [14:05:55]req_shift_open_date done [14:05:55]produce_requested_data done [14:05:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191432,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:05:55]process_action_free close_receipt [14:05:55]json_value_free [14:05:55]json_value_free done [14:05:55]process_json_proto returns [14:05:55]Send response to host [14:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191432,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:05:55]free response buf [14:05:55]execute_script done [14:05:55]execute_script returns [14:05:55]free content buf [14:05:55]Sock 9.Close socket [14:05:55]Sock 9.Thread stoped [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:23]accept exits with 8 [14:08:23]New connection [14:08:23]New thread 3066817892 created [14:08:23]Thread 3066961252 joined [14:08:23]Waiting for new connection... [14:08:23] Sock 8.Parse request [14:08:23]Sock 8.Check first char [14:08:23]Sock 8.First char is OK [14:08:23]request: POST /json_proto HTTP/1.0 [14:08:23]Method: POST [14:08:23]URL: /json_proto [14:08:23]Method is POST - this is cgi request [14:08:23]url: /json_proto [14:08:23]query_string will be loaded in cgi processing [14:08:23]execute_cgi json_proto POST (null) [14:08:23]execute_cgi path=json_proto method=POST [14:08:23]POST find Content-Length [14:08:23]Host: 172.17.63.131:8080 [14:08:23]Content-Length: 676 [14:08:23]Content-Type: application/json [14:08:23] [14:08:23]POST finish read [14:08:23]Found Content-Length = 676 [14:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:23]execute_script... [14:08: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)30728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:23]POST & json_proto [14:08:23]process_json_proto [14:08:23]json parsed OK: [14:08:23]protocol is kg_v1.0 [14:08:23]action value=close_receipt [14:08:23]process_action close_receipt [14:08:23]cmd_close_receipt [14:08:23]MH_GetDate [14:08:23]Write to MH i2c: F0 00 00 D9 9E 66 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 09 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 09 00 D9 9E 00 60 A6 1B 67 22 05 6E 64 F0 [14:08:23]GetLastDocTimeStamp 1729865160 [14:08:23]current date 1729865312 [14:08:23]FM_GetShiftState [14:08:23]SAM_PROTO_GetShiftState [14:08:23]wFMCommunicate request_size=4 [14:08:23]MH_SAM_APDU [14:08:23]CAPDU: 80 13 01 00 [14:08:23]Write to MH i2c: E2 08 00 DA 9E 80 13 01 00 00 00 00 00 F5 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:23]Read from MH i2c: E2 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 0E 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 0E 00 DA 9E 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B8 [14:08:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:08:23]wFMCommunicate OK [14:08:23]SAM_PROTO_GetShiftState done [14:08:23]FM_GetShiftState done [14:08:23]opened in 1729816399 [14:08:23]opened+sec_in_day 1729902799 [14:08:23]quantity*price = 50041 [14:08:23]sum+1 = 50042 [14:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 172 25.10.2024 14:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191433 ФПД: 113544368603218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191433&fm=113544368603218&tin=02508201610067®Number=0000000000091776&sum=50000 [14:08:24]StoreToDocumentArchive [14:08:24]shift 540 fd 191433 [14:08:24]save to /storage/0540/doc_00191433 [14:08:24]save last doc name /storage/0540/doc_00191433 to /storage/kkm_last_doc_name [14:08:24]save OK [14:08:24]Clear old archive folders... [14:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:24]tlvbuf is 01789CF0 [14:08:24]SAM_PROTO_ClearQueue [14:08:24]wFMCommunicate request_size=4 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 09 00 00 [14:08:24]Write to MH i2c: E2 08 00 E7 9E 80 09 00 00 00 00 00 00 F7 [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 E7 9E 00 90 00 F9 [14:08:24]RAPDU: 90 00 [14:08:24]wFMCommunicate OK [14:08:24]SAM_PROTO_ClearQueue done [14:08:24]KKMCreateOFDPacket [14:08:24]OFDProtocolAddRootSTLVToBuf [14:08:24]FM_MakeSignedData [14:08:24]FM_MakeSignedData [14:08:24]SAM_PROTO_SignData [14:08:24]wFMCommunicate request_size=4 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 0D 01 02 [14:08:24]Write to MH i2c: E2 08 00 E8 9E 80 0D 01 02 00 00 00 00 FF [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 E8 9E 00 90 00 FA [14:08:24]RAPDU: 90 00 [14:08:24]wFMCommunicate OK [14:08:24]wFMCommunicate request_size=255 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 60 A6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EB 02 00 35 04 06 00 67 [14:08:24]Write to MH i2c: E2 02 01 E9 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 60 A6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EB 02 00 35 04 06 00 67 00 00 02 [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]OFD Sender: No OFD packet to send [14:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 E9 9E 00 90 00 FB [14:08:24]RAPDU: 90 00 [14:08:24]wFMCommunicate OK [14:08:24]wFMCommunicate request_size=10 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 0D 02 02 05 44 9B C1 C0 52 [14:08:24]Write to MH i2c: E2 0D 00 EA 9E 80 0D 02 02 05 00 44 9B C1 C0 52 00 00 BE [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 03 00 EA 9E 00 90 00 FC [14:08:24]RAPDU: 90 00 [14:08:24]wFMCommunicate OK [14:08:24]wFMCommunicate request_size=4 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 0D 03 02 [14:08:24]Write to MH i2c: E2 08 00 EB 9E 80 0D 03 02 00 00 00 00 04 [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 0B 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 0B 00 EB 9E 00 2F F6 50 65 F5 CC 82 AB 90 00 CD [14:08:24]RAPDU: 2F F6 50 65 F5 CC 82 AB 90 00 [14:08:24]wFMCommunicate OK [14:08:24]SAM_PROTO_SignData done [14:08:24]FM_MakeSignedData done [14:08:24]CreateOFDProtocolMessage [14:08:24]wFMCommunicate request_size=4 [14:08:24]MH_SAM_APDU [14:08:24]CAPDU: 80 11 00 00 [14:08:24]Write to MH i2c: E2 08 00 EC 9E 80 11 00 00 00 00 00 00 04 [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 17 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 17 00 EC 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [14:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:08:24]wFMCommunicate OK [14:08:24]CreateOFDProtocolMessage done [14:08:24]OFDSenderStorePacket 191433 [14:08:24]StoreOFDPacket docnum=191433 [14:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 C2 07 01 B1 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 60 A6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EB 02 00 35 04 06 00 67 44 9B C1 C0 52 2F F6 50 65 F5 CC 82 AB [14:08:24]CheckFolder [14:08:24]dirname=/storage/ofd_packets [14:08:24]CheckFolder done [14:08:24]ProducePacketName [14:08:24]name=ofd_packets/00191433 [14:08:24]NVStorageSaveData ofd_packets/00191433 [14:08:24]File name is /storage/ofd_packets/00191433 [14:08:24]Write 301 bytes [14:08:24]NVStorageSaveData done [14:08:24]OFDSenderStorePacket done [14:08:24]KKMCreateOFDPacket done [14:08:24]NVStorageSaveData kkm_last_timestamp [14:08:24]File name is /storage/kkm_last_timestamp [14:08:24]Write 4 bytes [14:08:24]NVStorageSaveData done [14:08:24]ExternCall_PrintAddStr [14:08:24]wPrintStart [14:08:24]Write to MH i2c: 01 00 00 ED 9E 8B [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 ED 9E 00 00 00 00 00 FF 0F A0 [14:08:24]RasterBufferAndPrint [14:08:24]line Счет N : (1)30728 [14:08:24]line ИНН: 02508201610067 [14:08:24]line Контрольно-Кассовый Чек [14:08:24]line ПРОДАЖА [14:08:24]line ТРК (МРК, ГНК) : 12 [14:08:24]line Товар: 2710124130 [14:08:24]line Аи-92-К-5 [14:08:24]line 7.480 * 66.90 [14:08:24]line = 500.41 [14:08:24]line НДС 12% НСП 1% [14:08:24]line > о реализуемом товаре [14:08:24]line ОКРУГЛЕНИЕ: -0.41 [14:08:24]line ИТОГО: 500.00 [14:08:24]line Внесено: 500.00 [14:08:24]line СДАЧА: 0.00 [14:08:24]line НСП 1% : 4.43 [14:08:24]line НДС 12% : 53.14 [14:08:24]line Наличными: 500.00 [14:08:24]line Безнал.: 0.00 [14:08:24]line Место: АЗС № 170 "Партнер Нефть" [14:08:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:08:24]line СНО: Общий режим [14:08:24]line Чек 172 25.10.2024 14:08 [14:08:24]line Смена: 540 ФФД: 1.0 [14:08:24]line ЗНМ: 0300000110 [14:08:24]line РНМ: 0000000000091776 [14:08:24]line Версия ККМ: 001 [14:08:24]line ФМ: 0000000000871754 [14:08:24]line ФД: 191433 [14:08:24]line ФПД: 113544368603218 [14:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191433&fm=113544368603218&tin=02508201610067®Number=0000000000091776&sum=50000 [14:08:25]OFD Sender: Processing packet 191433 [packets to send 75, broken 74] [14:08:25]ProducePacketName [14:08:25]name=ofd_packets/00191433 [14:08:25]OFD Sender: To server: pG, [14:08:25]CommunicateWithHost lk.salyk.kg:30040 [14:08:25]ConnectInit lk.salyk.kg [14:08:25]written 0, free lines is 4095 [14:08:25]Connected sock=10 [14:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 C2 07 01 B1 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 60 A6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EB 02 00 35 04 06 00 67 44 9B C1 C0 52 2F F6 50 65 F5 CC 82 AB [14:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 1A 47 00 13 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 31 37 35 34 10 04 04 00 C9 EB 02 00 F4 03 04 00 2E 4B 1B 67 B6 04 01 00 00 64 04 76 F1 BD 98 BA FE [14:08:25]CommunicateWithHost err = 0 [14:08:25]CheckOFDResponse [14:08:25]1017 (14) - 77093643461234 [14:08:25]1041 (16) - 0000000000871754 [14:08:25]1040 (4) - 191433 [14:08:25]1012 (4) - 25.10.2024 07:39 [14:08:25]1206 (1) - 0 [14:08:25]OFD Sender: Remove packet 191433 [14:08:25]ProducePacketName [14:08:25]name=ofd_packets/00191433 [14:08:25]NVStorageDeleteData [14:08:25]Write to MH i2c: 01 00 00 18 9F B7 [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 07 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 07 00 18 9F 00 00 00 00 00 B2 0C 7C [14:08:25]RasterBufferAndPrint [14:08:25]line [14:08:25]line [14:08:25]line [14:08:25]line [14:08:25]line [14:08:25]written 0, free lines is 3257 [14:08:25]MH_Cut [14:08:25]Write to MH i2c: D1 01 00 1F 9F 01 90 [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: D1 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: D1 01 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: D1 01 00 1F 9F 00 8F [14:08:25]Write to MH i2c: 01 00 00 20 9F BF [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]OFD Sender: No OFD packet to send [14:08:26]*** Cut start [14:08:26]*** Partial cut [14:08:26]*** CUTSNS_PIN = 1 [14:08:26]*** CUTSNS_PIN = 0 [14:08:26]*** Brake cut motor [14:08:26]Read from MH i2c: 01 [14:08:26]MH_I2C_Read... [14:08:26]*** Stop cut motor [14:08:26]*** Cut end [14:08:26]Read from MH i2c: 01 07 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: 01 07 00 20 9F 00 00 00 00 00 FF 0F D4 [14:08:26]process_action close_receipt done [14:08:26]requested_data is exist [14:08:26]produce_requested_data [14:08:26]requested_item fm.sn is exist - process it [14:08:26]wFMCommunicate request_size=4 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 11 00 00 [14:08:26]Write to MH i2c: E2 08 00 21 9F 80 11 00 00 00 00 00 00 3A [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 21 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [14:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:08:27]wFMCommunicate OK [14:08:27]requested_item fd.num is exist - process it [14:08:27]SAM_PROTO_GetFieldsCounters [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 13 00 00 [14:08:27]Write to MH i2c: E2 08 00 22 9F 80 13 00 00 00 00 00 00 3D [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 62 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 62 00 22 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [14:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_GetFieldsCounters done [14:08:27]requested_item shift.num is exist - process it [14:08:27]requested_item shift.opened is exist - process it [14:08:27]req_shift_opened [14:08:27]FM_GetShiftState [14:08:27]SAM_PROTO_GetShiftState [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 13 01 00 [14:08:27]Write to MH i2c: E2 08 00 23 9F 80 13 01 00 00 00 00 00 3F [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0E 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0E 00 23 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 02 [14:08:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_GetShiftState done [14:08:27]FM_GetShiftState done [14:08:27]req_shift_opened done [14:08:27]requested_item shift.open_date is exist - process it [14:08:27]req_shift_open_date [14:08:27]req_shift_open_date done [14:08:27]produce_requested_data done [14:08:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191433,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:08:27]process_action_free close_receipt [14:08:27]json_value_free [14:08:27]json_value_free done [14:08:27]process_json_proto returns [14:08:27]Send response to host [14:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191433,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:08:27]free response buf [14:08:27]execute_script done [14:08:27]execute_script returns [14:08:27]free content buf [14:08:27]Sock 8.Close socket [14:08:27]Sock 8.Thread stoped [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:35]accept exits with 9 [14:14:35]New connection [14:14:35]New thread 3066961252 created [14:14:35]Thread 3066817892 joined [14:14:35]Waiting for new connection... [14:14:35] Sock 9.Parse request [14:14:35]Sock 9.Check first char [14:14:35]Sock 9.First char is OK [14:14:35]request: POST /json_proto HTTP/1.0 [14:14:35]Method: POST [14:14:35]URL: /json_proto [14:14:35]Method is POST - this is cgi request [14:14:35]url: /json_proto [14:14:35]query_string will be loaded in cgi processing [14:14:35]execute_cgi json_proto POST (null) [14:14:35]execute_cgi path=json_proto method=POST [14:14:35]POST find Content-Length [14:14:35]Host: 172.17.63.131:8080 [14:14:35]Content-Length: 676 [14:14:35]Content-Type: application/json [14:14:35] [14:14:35]POST finish read [14:14:35]Found Content-Length = 676 [14:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:35]execute_script... [14:14: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)30729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:35]POST & json_proto [14:14:35]process_json_proto [14:14:35]json parsed OK: [14:14:35]protocol is kg_v1.0 [14:14:35]action value=close_receipt [14:14:35]process_action close_receipt [14:14:35]cmd_close_receipt [14:14:35]MH_GetDate [14:14:35]Write to MH i2c: F0 00 00 24 9F B2 [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: F0 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: F0 09 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: F0 09 00 24 9F 00 D4 A7 1B 67 22 05 6E 64 B1 [14:14:35]GetLastDocTimeStamp 1729865312 [14:14:35]current date 1729865684 [14:14:35]FM_GetShiftState [14:14:35]SAM_PROTO_GetShiftState [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 13 01 00 [14:14:35]Write to MH i2c: E2 08 00 25 9F 80 13 01 00 00 00 00 00 41 [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 0E 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 0E 00 25 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 04 [14:14:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:14:35]wFMCommunicate OK [14:14:35]SAM_PROTO_GetShiftState done [14:14:35]FM_GetShiftState done [14:14:35]opened in 1729816399 [14:14:35]opened+sec_in_day 1729902799 [14:14:35]quantity*price = 50041 [14:14:35]sum+1 = 50042 [14:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 173 25.10.2024 14:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191434 ФПД: 202954983856914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141444&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191434&fm=202954983856914&tin=02508201610067®Number=0000000000091776&sum=50000 [14:14:36]StoreToDocumentArchive [14:14:36]shift 540 fd 191434 [14:14:36]save to /storage/0540/doc_00191434 [14:14:36]save last doc name /storage/0540/doc_00191434 to /storage/kkm_last_doc_name [14:14:36]save OK [14:14:36]Clear old archive folders... [14:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:36]tlvbuf is 016CEBF0 [14:14:36]SAM_PROTO_ClearQueue [14:14:36]wFMCommunicate request_size=4 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 09 00 00 [14:14:36]Write to MH i2c: E2 08 00 32 9F 80 09 00 00 00 00 00 00 43 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 32 9F 00 90 00 45 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]SAM_PROTO_ClearQueue done [14:14:36]KKMCreateOFDPacket [14:14:36]OFDProtocolAddRootSTLVToBuf [14:14:36]FM_MakeSignedData [14:14:36]FM_MakeSignedData [14:14:36]SAM_PROTO_SignData [14:14:36]wFMCommunicate request_size=4 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 01 02 [14:14:36]Write to MH i2c: E2 08 00 33 9F 80 0D 01 02 00 00 00 00 4B [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 33 9F 00 90 00 46 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]wFMCommunicate request_size=255 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D4 A7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EB 02 00 35 04 06 00 B8 [14:14:36]Write to MH i2c: E2 02 01 34 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D4 A7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EB 02 00 35 04 06 00 B8 00 00 16 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 34 9F 00 90 00 47 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]wFMCommunicate request_size=10 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 02 02 05 96 23 B7 DB 12 [14:14:36]Write to MH i2c: E2 0D 00 35 9F 80 0D 02 02 05 00 96 23 B7 DB 12 00 00 B5 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 35 9F 00 90 00 48 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]wFMCommunicate request_size=4 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 03 02 [14:14:36]Write to MH i2c: E2 08 00 36 9F 80 0D 03 02 00 00 00 00 50 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:37]Read from MH i2c: E2 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: E2 0B 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: E2 0B 00 36 9F 00 28 D3 DE 4E 10 A4 30 7F 90 00 DB [14:14:37]RAPDU: 28 D3 DE 4E 10 A4 30 7F 90 00 [14:14:37]wFMCommunicate OK [14:14:37]SAM_PROTO_SignData done [14:14:37]FM_MakeSignedData done [14:14:37]CreateOFDProtocolMessage [14:14:37]wFMCommunicate request_size=4 [14:14:37]MH_SAM_APDU [14:14:37]CAPDU: 80 11 00 00 [14:14:37]Write to MH i2c: E2 08 00 37 9F 80 11 00 00 00 00 00 00 50 [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:37]Read from MH i2c: E2 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: E2 17 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: E2 17 00 37 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [14:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:37]wFMCommunicate OK [14:14:37]CreateOFDProtocolMessage done [14:14:37]OFDSenderStorePacket 191434 [14:14:37]StoreOFDPacket docnum=191434 [14:14:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 10 07 01 6C 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D4 A7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EB 02 00 35 04 06 00 B8 96 23 B7 DB 12 28 D3 DE 4E 10 A4 30 7F [14:14:37]CheckFolder [14:14:37]dirname=/storage/ofd_packets [14:14:37]CheckFolder done [14:14:37]ProducePacketName [14:14:37]name=ofd_packets/00191434 [14:14:37]NVStorageSaveData ofd_packets/00191434 [14:14:37]File name is /storage/ofd_packets/00191434 [14:14:37]Write 301 bytes [14:14:37]NVStorageSaveData done [14:14:37]OFDSenderStorePacket done [14:14:37]KKMCreateOFDPacket done [14:14:37]NVStorageSaveData kkm_last_timestamp [14:14:37]File name is /storage/kkm_last_timestamp [14:14:37]Write 4 bytes [14:14:37]NVStorageSaveData done [14:14:37]ExternCall_PrintAddStr [14:14:37]wPrintStart [14:14:37]Write to MH i2c: 01 00 00 38 9F D7 [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 07 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 07 00 38 9F 00 00 00 00 00 FF 0F EC [14:14:37]RasterBufferAndPrint [14:14:37]line Счет N : (1)30729 [14:14:37]line ИНН: 02508201610067 [14:14:37]line Контрольно-Кассовый Чек [14:14:37]line ПРОДАЖА [14:14:37]line ТРК (МРК, ГНК) : 21 [14:14:37]line Товар: 2710124130 [14:14:37]line Аи-92-К-5 [14:14:37]line 7.480 * 66.90 [14:14:37]line = 500.41 [14:14:37]line НДС 12% НСП 1% [14:14:37]line > о реализуемом товаре [14:14:37]line ОКРУГЛЕНИЕ: -0.41 [14:14:37]line ИТОГО: 500.00 [14:14:37]line Внесено: 500.00 [14:14:37]line СДАЧА: 0.00 [14:14:37]line НСП 1% : 4.43 [14:14:37]line НДС 12% : 53.14 [14:14:37]line Наличными: 500.00 [14:14:37]line Безнал.: 0.00 [14:14:37]line Место: АЗС № 170 "Партнер Нефть" [14:14:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:14:37]line СНО: Общий режим [14:14:37]line Чек 173 25.10.2024 14:14 [14:14:37]line Смена: 540 ФФД: 1.0 [14:14:37]line ЗНМ: 0300000110 [14:14:37]line РНМ: 0000000000091776 [14:14:37]line Версия ККМ: 001 [14:14:37]line ФМ: 0000000000871754 [14:14:37]line ФД: 191434 [14:14:37]line ФПД: 202954983856914 [14:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141444&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191434&fm=202954983856914&tin=02508201610067®Number=0000000000091776&sum=50000 [14:14:37]OFD Sender: Processing packet 191434 [packets to send 75, broken 74] [14:14:37]ProducePacketName [14:14:37]name=ofd_packets/00191434 [14:14:37]OFD Sender: To server: pG, [14:14:37]CommunicateWithHost lk.salyk.kg:30040 [14:14:37]ConnectInit lk.salyk.kg [14:14:37]written 0, free lines is 4095 [14:14:37]Connected sock=10 [14:14:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 10 07 01 6C 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D4 A7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EB 02 00 35 04 06 00 B8 96 23 B7 DB 12 28 D3 DE 4E 10 A4 30 7F [14:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9C 5E 47 00 67 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EB 02 00 F4 03 04 00 A3 4C 1B 67 B6 04 01 00 00 FA A3 E2 63 F8 7C FB 64 [14:14:37]CommunicateWithHost err = 0 [14:14:37]CheckOFDResponse [14:14:37]1017 (14) - 77093643461234 [14:14:37]1041 (16) - 0000000000871754 [14:14:37]1040 (4) - 191434 [14:14:37]1012 (4) - 25.10.2024 07:45 [14:14:37]1206 (1) - 0 [14:14:37]OFD Sender: Remove packet 191434 [14:14:37]ProducePacketName [14:14:37]name=ofd_packets/00191434 [14:14:37]NVStorageDeleteData [14:14:37]Write to MH i2c: 01 00 00 63 9F 02 [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 07 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: 01 07 00 63 9F 00 00 00 00 00 B9 0C CE [14:14:37]RasterBufferAndPrint [14:14:37]line [14:14:37]line [14:14:37]line [14:14:37]line [14:14:37]line [14:14:37]written 0, free lines is 3264 [14:14:37]MH_Cut [14:14:37]Write to MH i2c: D1 01 00 6A 9F 01 DB [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 01 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 01 00 6A 9F 00 DA [14:14:37]Write to MH i2c: 01 00 00 6B 9F 0A [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:38]OFD Sender: No OFD packet to send [14:14:38]*** Cut start [14:14:38]*** Partial cut [14:14:38]*** CUTSNS_PIN = 1 [14:14:38]*** CUTSNS_PIN = 0 [14:14:38]*** Brake cut motor [14:14:39]Read from MH i2c: 01 [14:14:39]MH_I2C_Read... [14:14:39]*** Stop cut motor [14:14:39]*** Cut end [14:14:39]Read from MH i2c: 01 07 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: 01 07 00 6B 9F 00 00 00 00 00 FF 0F 1F [14:14:39]process_action close_receipt done [14:14:39]requested_data is exist [14:14:39]produce_requested_data [14:14:39]requested_item fm.sn is exist - process it [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 11 00 00 [14:14:39]Write to MH i2c: E2 08 00 6C 9F 80 11 00 00 00 00 00 00 85 [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 17 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 17 00 6C 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [14:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:39]wFMCommunicate OK [14:14:39]requested_item fd.num is exist - process it [14:14:39]SAM_PROTO_GetFieldsCounters [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 13 00 00 [14:14:39]Write to MH i2c: E2 08 00 6D 9F 80 13 00 00 00 00 00 00 88 [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 62 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 62 00 6D 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [14:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:39]wFMCommunicate OK [14:14:39]SAM_PROTO_GetFieldsCounters done [14:14:39]requested_item shift.num is exist - process it [14:14:39]requested_item shift.opened is exist - process it [14:14:39]req_shift_opened [14:14:39]FM_GetShiftState [14:14:39]SAM_PROTO_GetShiftState [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 13 01 00 [14:14:39]Write to MH i2c: E2 08 00 6E 9F 80 13 01 00 00 00 00 00 8A [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 0E 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 0E 00 6E 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4D [14:14:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:14:39]wFMCommunicate OK [14:14:39]SAM_PROTO_GetShiftState done [14:14:39]FM_GetShiftState done [14:14:39]req_shift_opened done [14:14:39]requested_item shift.open_date is exist - process it [14:14:39]req_shift_open_date [14:14:39]req_shift_open_date done [14:14:39]produce_requested_data done [14:14:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191434,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:14:39]process_action_free close_receipt [14:14:39]json_value_free [14:14:39]json_value_free done [14:14:39]process_json_proto returns [14:14:39]Send response to host [14:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191434,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:14:39]free response buf [14:14:39]execute_script done [14:14:39]execute_script returns [14:14:39]free content buf [14:14:39]Sock 9.Close socket [14:14:39]Sock 9.Thread stoped [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:42]accept exits with 8 [14:15:42]New connection [14:15:42]New thread 3066817892 created [14:15:42]Thread 3066961252 joined [14:15:42]Waiting for new connection... [14:15:42] Sock 8.Parse request [14:15:42]Sock 8.Check first char [14:15:42]Sock 8.First char is OK [14:15:42]request: POST /json_proto HTTP/1.0 [14:15:42]Method: POST [14:15:42]URL: /json_proto [14:15:42]Method is POST - this is cgi request [14:15:42]url: /json_proto [14:15:42]query_string will be loaded in cgi processing [14:15:42]execute_cgi json_proto POST (null) [14:15:42]execute_cgi path=json_proto method=POST [14:15:42]POST find Content-Length [14:15:42]Host: 172.17.63.131:8080 [14:15:42]Content-Length: 676 [14:15:42]Content-Type: application/json [14:15:42] [14:15:42]POST finish read [14:15:42]Found Content-Length = 676 [14:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:42]execute_script... [14: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)30730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:42]POST & json_proto [14:15:42]process_json_proto [14:15:42]json parsed OK: [14:15:42]protocol is kg_v1.0 [14:15:42]action value=close_receipt [14:15:42]process_action close_receipt [14:15:42]cmd_close_receipt [14:15:42]MH_GetDate [14:15:42]Write to MH i2c: F0 00 00 6F 9F FD [14:15:42]Write i2c OK [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: F0 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: F0 09 00 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: F0 09 00 6F 9F 00 17 A8 1B 67 22 05 6E 64 40 [14:15:42]GetLastDocTimeStamp 1729865684 [14:15:42]current date 1729865751 [14:15:42]FM_GetShiftState [14:15:42]SAM_PROTO_GetShiftState [14:15:42]wFMCommunicate request_size=4 [14:15:42]MH_SAM_APDU [14:15:42]CAPDU: 80 13 01 00 [14:15:42]Write to MH i2c: E2 08 00 70 9F 80 13 01 00 00 00 00 00 8C [14:15:42]Write i2c OK [14:15:42]MH_I2C_Read... [14:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:42]Read from MH i2c: E2 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: E2 0E 00 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: E2 0E 00 70 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4F [14:15:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:15:42]wFMCommunicate OK [14:15:42]SAM_PROTO_GetShiftState done [14:15:42]FM_GetShiftState done [14:15:42]opened in 1729816399 [14:15:42]opened+sec_in_day 1729902799 [14:15:42]quantity*price = 40006 [14:15:42]sum+1 = 40007 [14:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 174 25.10.2024 14:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191435 ФПД: 148809005858360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191435&fm=148809005858360&tin=02508201610067®Number=0000000000091776&sum=40000 [14:15:43]StoreToDocumentArchive [14:15:43]shift 540 fd 191435 [14:15:43]save to /storage/0540/doc_00191435 [14:15:43]save last doc name /storage/0540/doc_00191435 to /storage/kkm_last_doc_name [14:15:43]save OK [14:15:43]Clear old archive folders... [14:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:43]tlvbuf is 016AFDC0 [14:15:43]SAM_PROTO_ClearQueue [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 09 00 00 [14:15:43]Write to MH i2c: E2 08 00 7D 9F 80 09 00 00 00 00 00 00 8E [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:43]OFD Sender: No OFD packet to send [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 7D 9F 00 90 00 90 [14:15:43]RAPDU: 90 00 [14:15:43]wFMCommunicate OK [14:15:43]SAM_PROTO_ClearQueue done [14:15:43]KKMCreateOFDPacket [14:15:43]OFDProtocolAddRootSTLVToBuf [14:15:43]FM_MakeSignedData [14:15:43]FM_MakeSignedData [14:15:43]SAM_PROTO_SignData [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 0D 01 02 [14:15:43]Write to MH i2c: E2 08 00 7E 9F 80 0D 01 02 00 00 00 00 96 [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 7E 9F 00 90 00 91 [14:15:43]RAPDU: 90 00 [14:15:43]wFMCommunicate OK [14:15:43]wFMCommunicate request_size=255 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 17 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EB 02 00 35 04 06 00 87 [14:15:43]Write to MH i2c: E2 02 01 7F 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 17 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EB 02 00 35 04 06 00 87 00 00 45 [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 7F 9F 00 90 00 92 [14:15:43]RAPDU: 90 00 [14:15:43]wFMCommunicate OK [14:15:43]wFMCommunicate request_size=10 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 0D 02 02 05 57 4B EE FE 38 [14:15:43]Write to MH i2c: E2 0D 00 80 9F 80 0D 02 02 05 00 57 4B EE FE 38 00 00 69 [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 03 00 80 9F 00 90 00 93 [14:15:43]RAPDU: 90 00 [14:15:43]wFMCommunicate OK [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 0D 03 02 [14:15:43]Write to MH i2c: E2 08 00 81 9F 80 0D 03 02 00 00 00 00 9B [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0B 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0B 00 81 9F 00 75 47 C0 62 2D 01 BC 21 90 00 85 [14:15:43]RAPDU: 75 47 C0 62 2D 01 BC 21 90 00 [14:15:43]wFMCommunicate OK [14:15:43]SAM_PROTO_SignData done [14:15:43]FM_MakeSignedData done [14:15:43]CreateOFDProtocolMessage [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 11 00 00 [14:15:43]Write to MH i2c: E2 08 00 82 9F 80 11 00 00 00 00 00 00 9B [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 17 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 17 00 82 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [14:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:15:43]wFMCommunicate OK [14:15:43]CreateOFDProtocolMessage done [14:15:43]OFDSenderStorePacket 191435 [14:15:43]StoreOFDPacket docnum=191435 [14:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 56 07 01 62 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 17 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EB 02 00 35 04 06 00 87 57 4B EE FE 38 75 47 C0 62 2D 01 BC 21 [14:15:43]CheckFolder [14:15:43]dirname=/storage/ofd_packets [14:15:43]CheckFolder done [14:15:43]ProducePacketName [14:15:43]name=ofd_packets/00191435 [14:15:43]NVStorageSaveData ofd_packets/00191435 [14:15:43]File name is /storage/ofd_packets/00191435 [14:15:43]Write 301 bytes [14:15:43]NVStorageSaveData done [14:15:43]OFDSenderStorePacket done [14:15:43]KKMCreateOFDPacket done [14:15:43]NVStorageSaveData kkm_last_timestamp [14:15:43]File name is /storage/kkm_last_timestamp [14:15:43]Write 4 bytes [14:15:43]NVStorageSaveData done [14:15:43]ExternCall_PrintAddStr [14:15:43]wPrintStart [14:15:43]Write to MH i2c: 01 00 00 83 9F 22 [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: 01 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: 01 07 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: 01 07 00 83 9F 00 00 00 00 00 FF 0F 37 [14:15:43]RasterBufferAndPrint [14:15:43]line Счет N : (1)30730 [14:15:43]line ИНН: 02508201610067 [14:15:43]line Контрольно-Кассовый Чек [14:15:43]line ПРОДАЖА [14:15:43]line ТРК (МРК, ГНК) : 12 [14:15:43]line Товар: 2710124130 [14:15:43]line Аи-92-К-5 [14:15:43]line 5.980 * 66.90 [14:15:43]line = 400.06 [14:15:43]line НДС 12% НСП 1% [14:15:43]line > о реализуемом товаре [14:15:43]line ОКРУГЛЕНИЕ: -0.06 [14:15:43]line ИТОГО: 400.00 [14:15:43]line Внесено: 400.00 [14:15:43]line СДАЧА: 0.00 [14:15:43]line НСП 1% : 3.54 [14:15:43]line НДС 12% : 42.48 [14:15:43]line Наличными: 400.00 [14:15:43]line Безнал.: 0.00 [14:15:43]line Место: АЗС № 170 "Партнер Нефть" [14:15:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:15:43]line СНО: Общий режим [14:15:43]line Чек 174 25.10.2024 14:15 [14:15:43]line Смена: 540 ФФД: 1.0 [14:15:43]line ЗНМ: 0300000110 [14:15:43]line РНМ: 0000000000091776 [14:15:43]line Версия ККМ: 001 [14:15:43]line ФМ: 0000000000871754 [14:15:43]line ФД: 191435 [14:15:43]line ФПД: 148809005858360 [14:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191435&fm=148809005858360&tin=02508201610067®Number=0000000000091776&sum=40000 [14:15:44]OFD Sender: Processing packet 191435 [packets to send 75, broken 74] [14:15:44]ProducePacketName [14:15:44]name=ofd_packets/00191435 [14:15:44]OFD Sender: To server: pG, [14:15:44]CommunicateWithHost lk.salyk.kg:30040 [14:15:44]ConnectInit lk.salyk.kg [14:15:44]written 0, free lines is 4095 [14:15:44]Connected sock=10 [14: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 31 37 35 34 0F 01 00 00 E6 56 07 01 62 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 17 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EB 02 00 35 04 06 00 87 57 4B EE FE 38 75 47 C0 62 2D 01 BC 21 [14:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 BD 47 00 FC BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EB 02 00 F4 03 04 00 E5 4C 1B 67 B6 04 01 00 00 CD 42 15 3F 49 48 07 29 [14:15:44]CommunicateWithHost err = 0 [14:15:44]CheckOFDResponse [14:15:44]1017 (14) - 77093643461234 [14:15:44]1041 (16) - 0000000000871754 [14:15:44]1040 (4) - 191435 [14:15:44]1012 (4) - 25.10.2024 07:46 [14:15:44]1206 (1) - 0 [14:15:44]OFD Sender: Remove packet 191435 [14:15:44]ProducePacketName [14:15:44]name=ofd_packets/00191435 [14:15:44]NVStorageDeleteData [14:15:44]Write to MH i2c: 01 00 00 AE 9F 4D [14:15:44]Write i2c OK [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: 01 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: 01 07 00 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: 01 07 00 AE 9F 00 00 00 00 00 C8 0C 28 [14:15:44]RasterBufferAndPrint [14:15:44]line [14:15:44]line [14:15:44]line [14:15:44]line [14:15:44]line [14:15:44]written 0, free lines is 3278 [14:15:44]MH_Cut [14:15:44]Write to MH i2c: D1 01 00 B5 9F 01 26 [14:15:44]Write i2c OK [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: D1 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: D1 01 00 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: D1 01 00 B5 9F 00 25 [14:15:44]Write to MH i2c: 01 00 00 B6 9F 55 [14:15:44]Write i2c OK [14:15:44]MH_I2C_Read... [14:15:45]OFD Sender: No OFD packet to send [14:15:45]*** Cut start [14:15:45]*** Partial cut [14:15:45]*** CUTSNS_PIN = 1 [14:15:45]*** CUTSNS_PIN = 0 [14:15:45]*** Brake cut motor [14:15:46]Read from MH i2c: 01 [14:15:46]MH_I2C_Read... [14:15:46]*** Stop cut motor [14:15:46]*** Cut end [14:15:46]Read from MH i2c: 01 07 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 07 00 B6 9F 00 00 00 00 00 FF 0F 6A [14:15:46]process_action close_receipt done [14:15:46]requested_data is exist [14:15:46]produce_requested_data [14:15:46]requested_item fm.sn is exist - process it [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 11 00 00 [14:15:46]Write to MH i2c: E2 08 00 B7 9F 80 11 00 00 00 00 00 00 D0 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 17 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 17 00 B7 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [14:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:15:46]wFMCommunicate OK [14:15:46]requested_item fd.num is exist - process it [14:15:46]SAM_PROTO_GetFieldsCounters [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 13 00 00 [14:15:46]Write to MH i2c: E2 08 00 B8 9F 80 13 00 00 00 00 00 00 D3 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 62 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 62 00 B8 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [14:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:46]wFMCommunicate OK [14:15:46]SAM_PROTO_GetFieldsCounters done [14:15:46]requested_item shift.num is exist - process it [14:15:46]requested_item shift.opened is exist - process it [14:15:46]req_shift_opened [14:15:46]FM_GetShiftState [14:15:46]SAM_PROTO_GetShiftState [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 13 01 00 [14:15:46]Write to MH i2c: E2 08 00 B9 9F 80 13 01 00 00 00 00 00 D5 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 0E 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 0E 00 B9 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 98 [14:15:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:15:46]wFMCommunicate OK [14:15:46]SAM_PROTO_GetShiftState done [14:15:46]FM_GetShiftState done [14:15:46]req_shift_opened done [14:15:46]requested_item shift.open_date is exist - process it [14:15:46]req_shift_open_date [14:15:46]req_shift_open_date done [14:15:46]produce_requested_data done [14:15:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191435,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:15:46]process_action_free close_receipt [14:15:46]json_value_free [14:15:46]json_value_free done [14:15:46]process_json_proto returns [14:15:46]Send response to host [14:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191435,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:15:46]free response buf [14:15:46]execute_script done [14:15:46]execute_script returns [14:15:46]free content buf [14:15:46]Sock 8.Close socket [14:15:46]Sock 8.Thread stoped [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:18]accept exits with 9 [14:17:18]New connection [14:17:18]New thread 3066961252 created [14:17:18]Thread 3066817892 joined [14:17:18]Waiting for new connection... [14:17:18] Sock 9.Parse request [14:17:18]Sock 9.Check first char [14:17:18]Sock 9.First char is OK [14:17:18]request: POST /json_proto HTTP/1.0 [14:17:18]Method: POST [14:17:18]URL: /json_proto [14:17:18]Method is POST - this is cgi request [14:17:18]url: /json_proto [14:17:18]query_string will be loaded in cgi processing [14:17:18]execute_cgi json_proto POST (null) [14:17:18]execute_cgi path=json_proto method=POST [14:17:18]POST find Content-Length [14:17:18]Host: 172.17.63.131:8080 [14:17:18]Content-Length: 677 [14:17:18]Content-Type: application/json [14:17:18] [14:17:18]POST finish read [14:17:18]Found Content-Length = 677 [14:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:18]execute_script... [14:17: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)30731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:18]POST & json_proto [14:17:18]process_json_proto [14:17:18]json parsed OK: [14:17:18]protocol is kg_v1.0 [14:17:18]action value=close_receipt [14:17:18]process_action close_receipt [14:17:18]cmd_close_receipt [14:17:18]MH_GetDate [14:17:18]Write to MH i2c: F0 00 00 BA 9F 48 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 09 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 09 00 BA 9F 00 77 A8 1B 67 22 05 6E 64 EB [14:17:18]GetLastDocTimeStamp 1729865751 [14:17:18]current date 1729865847 [14:17:18]FM_GetShiftState [14:17:18]SAM_PROTO_GetShiftState [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 13 01 00 [14:17:18]Write to MH i2c: E2 08 00 BB 9F 80 13 01 00 00 00 00 00 D7 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0E 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0E 00 BB 9F 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9A [14:17:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:17:18]wFMCommunicate OK [14:17:18]SAM_PROTO_GetShiftState done [14:17:18]FM_GetShiftState done [14:17:18]opened in 1729816399 [14:17:18]opened+sec_in_day 1729902799 [14:17:18]quantity*price = 80012 [14:17:18]sum+1 = 80013 [14:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 175 25.10.2024 14:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191436 ФПД: 57315688268345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191436&fm=57315688268345&tin=02508201610067®Number=0000000000091776&sum=80000 [14:17:19]StoreToDocumentArchive [14:17:19]shift 540 fd 191436 [14:17:19]save to /storage/0540/doc_00191436 [14:17:19]save last doc name /storage/0540/doc_00191436 to /storage/kkm_last_doc_name [14:17:19]save OK [14:17:19]Clear old archive folders... [14:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:19]tlvbuf is 01625060 [14:17:19]SAM_PROTO_ClearQueue [14:17:19]wFMCommunicate request_size=4 [14:17:19]MH_SAM_APDU [14:17:19]CAPDU: 80 09 00 00 [14:17:19]Write to MH i2c: E2 08 00 C8 9F 80 09 00 00 00 00 00 00 D9 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:19]Read from MH i2c: E2 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 03 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 03 00 C8 9F 00 90 00 DB [14:17:19]RAPDU: 90 00 [14:17:19]wFMCommunicate OK [14:17:19]SAM_PROTO_ClearQueue done [14:17:19]KKMCreateOFDPacket [14:17:19]OFDProtocolAddRootSTLVToBuf [14:17:19]FM_MakeSignedData [14:17:19]FM_MakeSignedData [14:17:19]SAM_PROTO_SignData [14:17:19]wFMCommunicate request_size=4 [14:17:19]MH_SAM_APDU [14:17:19]CAPDU: 80 0D 01 02 [14:17:19]Write to MH i2c: E2 08 00 C9 9F 80 0D 01 02 00 00 00 00 E1 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:19]Read from MH i2c: E2 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 03 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 03 00 C9 9F 00 90 00 DC [14:17:19]RAPDU: 90 00 [14:17:19]wFMCommunicate OK [14:17:19]wFMCommunicate request_size=255 [14:17:19]MH_SAM_APDU [14:17:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EB 02 00 35 04 06 00 34 [14:17:19]Write to MH i2c: E2 02 01 CA 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EB 02 00 35 04 06 00 34 00 00 BC [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 CA 9F 00 90 00 DD [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]wFMCommunicate request_size=10 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 0D 02 02 05 20 D9 3D 42 39 [14:17:20]Write to MH i2c: E2 0D 00 CB 9F 80 0D 02 02 05 00 20 D9 3D 42 39 00 00 9F [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 CB 9F 00 90 00 DE [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 0D 03 02 [14:17:20]Write to MH i2c: E2 08 00 CC 9F 80 0D 03 02 00 00 00 00 E6 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]OFD Sender: No OFD packet to send [14:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 0B 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 0B 00 CC 9F 00 D3 DE A6 91 38 5B 6B 78 90 00 45 [14:17:20]RAPDU: D3 DE A6 91 38 5B 6B 78 90 00 [14:17:20]wFMCommunicate OK [14:17:20]SAM_PROTO_SignData done [14:17:20]FM_MakeSignedData done [14:17:20]CreateOFDProtocolMessage [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 11 00 00 [14:17:20]Write to MH i2c: E2 08 00 CD 9F 80 11 00 00 00 00 00 00 E6 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 17 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 17 00 CD 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [14:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:17:20]wFMCommunicate OK [14:17:20]CreateOFDProtocolMessage done [14:17:20]OFDSenderStorePacket 191436 [14:17:20]StoreOFDPacket docnum=191436 [14:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 2E 07 01 30 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EB 02 00 35 04 06 00 34 20 D9 3D 42 39 D3 DE A6 91 38 5B 6B 78 [14:17:20]CheckFolder [14:17:20]dirname=/storage/ofd_packets [14:17:20]CheckFolder done [14:17:20]ProducePacketName [14:17:20]name=ofd_packets/00191436 [14:17:20]NVStorageSaveData ofd_packets/00191436 [14:17:20]File name is /storage/ofd_packets/00191436 [14:17:20]Write 301 bytes [14:17:20]NVStorageSaveData done [14:17:20]OFDSenderStorePacket done [14:17:20]KKMCreateOFDPacket done [14:17:20]NVStorageSaveData kkm_last_timestamp [14:17:20]File name is /storage/kkm_last_timestamp [14:17:20]Write 4 bytes [14:17:20]NVStorageSaveData done [14:17:20]ExternCall_PrintAddStr [14:17:20]wPrintStart [14:17:20]Write to MH i2c: 01 00 00 CE 9F 6D [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 07 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 07 00 CE 9F 00 00 00 00 00 FF 0F 82 [14:17:20]RasterBufferAndPrint [14:17:20]line Счет N : (1)30731 [14:17:20]line ИНН: 02508201610067 [14:17:20]line Контрольно-Кассовый Чек [14:17:20]line ПРОДАЖА [14:17:20]line ТРК (МРК, ГНК) : 12 [14:17:20]line Товар: 2710124130 [14:17:20]line Аи-92-К-5 [14:17:20]line 11.960 * 66.90 [14:17:20]line = 800.12 [14:17:20]line НДС 12% НСП 1% [14:17:20]line > о реализуемом товаре [14:17:20]line ОКРУГЛЕНИЕ: -0.12 [14:17:20]line ИТОГО: 800.00 [14:17:20]line Внесено: 800.00 [14:17:20]line СДАЧА: 0.00 [14:17:20]line НСП 1% : 7.08 [14:17:20]line НДС 12% : 84.97 [14:17:20]line Наличными: 800.00 [14:17:20]line Безнал.: 0.00 [14:17:20]line Место: АЗС № 170 "Партнер Нефть" [14:17:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:17:20]line СНО: Общий режим [14:17:20]line Чек 175 25.10.2024 14:17 [14:17:20]line Смена: 540 ФФД: 1.0 [14:17:20]line ЗНМ: 0300000110 [14:17:20]line РНМ: 0000000000091776 [14:17:20]line Версия ККМ: 001 [14:17:20]line ФМ: 0000000000871754 [14:17:20]line ФД: 191436 [14:17:20]line ФПД: 57315688268345 [14:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191436&fm=57315688268345&tin=02508201610067®Number=0000000000091776&sum=80000 [14:17:20]OFD Sender: Processing packet 191436 [packets to send 75, broken 74] [14:17:20]ProducePacketName [14:17:20]name=ofd_packets/00191436 [14:17:20]OFD Sender: To server: pG, [14:17:20]CommunicateWithHost lk.salyk.kg:30040 [14:17:20]ConnectInit lk.salyk.kg [14:17:20]written 0, free lines is 4095 [14:17:20]Connected sock=10 [14:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 2E 07 01 30 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 A8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EB 02 00 35 04 06 00 34 20 D9 3D 42 39 D3 DE A6 91 38 5B 6B 78 [14:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 59 47 00 98 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EB 02 00 F4 03 04 00 46 4D 1B 67 B6 04 01 00 00 94 FD 31 6A 5E A8 AB 5B [14:17:20]CommunicateWithHost err = 0 [14:17:20]CheckOFDResponse [14:17:20]1017 (14) - 77093643461234 [14:17:20]1041 (16) - 0000000000871754 [14:17:20]1040 (4) - 191436 [14:17:20]1012 (4) - 25.10.2024 07:48 [14:17:20]1206 (1) - 0 [14:17:20]OFD Sender: Remove packet 191436 [14:17:20]ProducePacketName [14:17:20]name=ofd_packets/00191436 [14:17:20]NVStorageDeleteData [14:17:21]Write to MH i2c: 01 00 00 F9 9F 98 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 F9 9F 00 00 00 00 00 AE 0C 59 [14:17:21]RasterBufferAndPrint [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]written 0, free lines is 3252 [14:17:21]MH_Cut [14:17:21]Write to MH i2c: D1 01 00 00 A0 01 72 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 01 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 01 00 00 A0 00 71 [14:17:21]Write to MH i2c: 01 00 00 01 A0 A1 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]OFD Sender: No OFD packet to send [14:17:21]*** Cut start [14:17:21]*** Partial cut [14:17:21]*** CUTSNS_PIN = 1 [14:17:21]*** CUTSNS_PIN = 0 [14:17:22]*** Brake cut motor [14:17:22]Read from MH i2c: 01 [14:17:22]MH_I2C_Read... [14:17:22]*** Stop cut motor [14:17:22]*** Cut end [14:17:22]Read from MH i2c: 01 07 00 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: 01 07 00 01 A0 00 00 00 00 00 FF 0F B6 [14:17:22]process_action close_receipt done [14:17:22]requested_data is exist [14:17:22]produce_requested_data [14:17:22]requested_item fm.sn is exist - process it [14:17:22]wFMCommunicate request_size=4 [14:17:22]MH_SAM_APDU [14:17:22]CAPDU: 80 11 00 00 [14:17:22]Write to MH i2c: E2 08 00 02 A0 80 11 00 00 00 00 00 00 1C [14:17:22]Write i2c OK [14:17:22]MH_I2C_Read... [14:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:22]Read from MH i2c: E2 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 17 00 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 17 00 02 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [14:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:17:22]wFMCommunicate OK [14:17:22]requested_item fd.num is exist - process it [14:17:22]SAM_PROTO_GetFieldsCounters [14:17:22]wFMCommunicate request_size=4 [14:17:22]MH_SAM_APDU [14:17:22]CAPDU: 80 13 00 00 [14:17:22]Write to MH i2c: E2 08 00 03 A0 80 13 00 00 00 00 00 00 1F [14:17:22]Write i2c OK [14:17:22]MH_I2C_Read... [14:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:22]Read from MH i2c: E2 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 62 00 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 62 00 03 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [14:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:22]wFMCommunicate OK [14:17:22]SAM_PROTO_GetFieldsCounters done [14:17:22]requested_item shift.num is exist - process it [14:17:22]requested_item shift.opened is exist - process it [14:17:22]req_shift_opened [14:17:22]FM_GetShiftState [14:17:22]SAM_PROTO_GetShiftState [14:17:22]wFMCommunicate request_size=4 [14:17:22]MH_SAM_APDU [14:17:22]CAPDU: 80 13 01 00 [14:17:22]Write to MH i2c: E2 08 00 04 A0 80 13 01 00 00 00 00 00 21 [14:17:22]Write i2c OK [14:17:22]MH_I2C_Read... [14:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:22]Read from MH i2c: E2 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 0E 00 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: E2 0E 00 04 A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E4 [14:17:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:17:22]wFMCommunicate OK [14:17:22]SAM_PROTO_GetShiftState done [14:17:22]FM_GetShiftState done [14:17:22]req_shift_opened done [14:17:22]requested_item shift.open_date is exist - process it [14:17:22]req_shift_open_date [14:17:22]req_shift_open_date done [14:17:22]produce_requested_data done [14:17:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191436,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:17:22]process_action_free close_receipt [14:17:22]json_value_free [14:17:22]json_value_free done [14:17:22]process_json_proto returns [14:17:22]Send response to host [14:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191436,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:17:22]free response buf [14:17:22]execute_script done [14:17:22]execute_script returns [14:17:22]free content buf [14:17:22]Sock 9.Close socket [14:17:22]Sock 9.Thread stoped [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:20]accept exits with 8 [14:21:20]New connection [14:21:20]New thread 3066817892 created [14:21:20]Thread 3066961252 joined [14:21:20]Waiting for new connection... [14:21:20] Sock 8.Parse request [14:21:20]Sock 8.Check first char [14:21:20]Sock 8.First char is OK [14:21:20]request: POST /json_proto HTTP/1.0 [14:21:20]Method: POST [14:21:20]URL: /json_proto [14:21:20]Method is POST - this is cgi request [14:21:20]url: /json_proto [14:21:20]query_string will be loaded in cgi processing [14:21:20]execute_cgi json_proto POST (null) [14:21:20]execute_cgi path=json_proto method=POST [14:21:20]POST find Content-Length [14:21:20]Host: 172.17.63.131:8080 [14:21:20]Content-Length: 676 [14:21:20]Content-Type: application/json [14:21:20] [14:21:20]POST finish read [14:21:20]Found Content-Length = 676 [14:21:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:20]execute_script... [14:21: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)30732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:20]POST & json_proto [14:21:20]process_json_proto [14:21:20]json parsed OK: [14:21:20]protocol is kg_v1.0 [14:21:20]action value=close_receipt [14:21:20]process_action close_receipt [14:21:20]cmd_close_receipt [14:21:20]MH_GetDate [14:21:20]Write to MH i2c: F0 00 00 05 A0 94 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: F0 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: F0 09 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: F0 09 00 05 A0 00 6A A9 1B 67 22 05 6E 64 2B [14:21:20]GetLastDocTimeStamp 1729865847 [14:21:20]current date 1729866090 [14:21:20]FM_GetShiftState [14:21:20]SAM_PROTO_GetShiftState [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 13 01 00 [14:21:20]Write to MH i2c: E2 08 00 06 A0 80 13 01 00 00 00 00 00 23 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0E 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0E 00 06 A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E6 [14:21:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:21:20]wFMCommunicate OK [14:21:20]SAM_PROTO_GetShiftState done [14:21:20]FM_GetShiftState done [14:21:20]opened in 1729816399 [14:21:20]opened+sec_in_day 1729902799 [14:21:20]quantity*price = 40006 [14:21:20]sum+1 = 40007 [14:21:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 176 25.10.2024 14:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191437 ФПД: 27454623091433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191437&fm=27454623091433&tin=02508201610067®Number=0000000000091776&sum=40000 [14:21:21]StoreToDocumentArchive [14:21:21]shift 540 fd 191437 [14:21:21]save to /storage/0540/doc_00191437 [14:21:21]save last doc name /storage/0540/doc_00191437 to /storage/kkm_last_doc_name [14:21:21]save OK [14:21:21]Clear old archive folders... [14:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:21]tlvbuf is 01600FA0 [14:21:21]SAM_PROTO_ClearQueue [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 09 00 00 [14:21:21]Write to MH i2c: E2 08 00 13 A0 80 09 00 00 00 00 00 00 25 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 13 A0 00 90 00 27 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]SAM_PROTO_ClearQueue done [14:21:21]KKMCreateOFDPacket [14:21:21]OFDProtocolAddRootSTLVToBuf [14:21:21]FM_MakeSignedData [14:21:21]FM_MakeSignedData [14:21:21]SAM_PROTO_SignData [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 01 02 [14:21:21]Write to MH i2c: E2 08 00 14 A0 80 0D 01 02 00 00 00 00 2D [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 14 A0 00 90 00 28 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]wFMCommunicate request_size=255 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6A A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EB 02 00 35 04 06 00 18 [14:21:21]Write to MH i2c: E2 02 01 15 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6A A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EB 02 00 35 04 06 00 18 00 00 C5 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 03 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 03 00 15 A0 00 90 00 29 [14:21:22]RAPDU: 90 00 [14:21:22]wFMCommunicate OK [14:21:22]wFMCommunicate request_size=10 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 0D 02 02 05 F8 47 0E 8A E9 [14:21:22]Write to MH i2c: E2 0D 00 16 A0 80 0D 02 02 05 00 F8 47 0E 8A E9 00 00 FA [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 03 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 03 00 16 A0 00 90 00 2A [14:21:22]RAPDU: 90 00 [14:21:22]wFMCommunicate OK [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 0D 03 02 [14:21:22]Write to MH i2c: E2 08 00 17 A0 80 0D 03 02 00 00 00 00 32 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 0B 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 0B 00 17 A0 00 E2 5F 32 C5 BE 67 CC 5F 90 00 BB [14:21:22]RAPDU: E2 5F 32 C5 BE 67 CC 5F 90 00 [14:21:22]wFMCommunicate OK [14:21:22]SAM_PROTO_SignData done [14:21:22]FM_MakeSignedData done [14:21:22]CreateOFDProtocolMessage [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 11 00 00 [14:21:22]Write to MH i2c: E2 08 00 18 A0 80 11 00 00 00 00 00 00 32 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 18 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [14:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:22]wFMCommunicate OK [14:21:22]CreateOFDProtocolMessage done [14:21:22]OFDSenderStorePacket 191437 [14:21:22]StoreOFDPacket docnum=191437 [14:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 45 07 01 2C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6A A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EB 02 00 35 04 06 00 18 F8 47 0E 8A E9 E2 5F 32 C5 BE 67 CC 5F [14:21:22]CheckFolder [14:21:22]dirname=/storage/ofd_packets [14:21:22]CheckFolder done [14:21:22]ProducePacketName [14:21:22]name=ofd_packets/00191437 [14:21:22]NVStorageSaveData ofd_packets/00191437 [14:21:22]File name is /storage/ofd_packets/00191437 [14:21:22]Write 301 bytes [14:21:22]NVStorageSaveData done [14:21:22]OFDSenderStorePacket done [14:21:22]KKMCreateOFDPacket done [14:21:22]NVStorageSaveData kkm_last_timestamp [14:21:22]File name is /storage/kkm_last_timestamp [14:21:22]Write 4 bytes [14:21:22]NVStorageSaveData done [14:21:22]ExternCall_PrintAddStr [14:21:22]wPrintStart [14:21:22]Write to MH i2c: 01 00 00 19 A0 B9 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 19 A0 00 00 00 00 00 FF 0F CE [14:21:22]RasterBufferAndPrint [14:21:22]line Счет N : (1)30732 [14:21:22]line ИНН: 02508201610067 [14:21:22]line Контрольно-Кассовый Чек [14:21:22]line ПРОДАЖА [14:21:22]line ТРК (МРК, ГНК) : 21 [14:21:22]line Товар: 2710124130 [14:21:22]line Аи-92-К-5 [14:21:22]line 5.980 * 66.90 [14:21:22]line = 400.06 [14:21:22]line НДС 12% НСП 1% [14:21:22]line > о реализуемом товаре [14:21:22]line ОКРУГЛЕНИЕ: -0.06 [14:21:22]line ИТОГО: 400.00 [14:21:22]line Внесено: 400.00 [14:21:22]line СДАЧА: 0.00 [14:21:22]line НСП 1% : 3.54 [14:21:22]line НДС 12% : 42.48 [14:21:22]line Наличными: 400.00 [14:21:22]line Безнал.: 0.00 [14:21:22]line Место: АЗС № 170 "Партнер Нефть" [14:21:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:22]line СНО: Общий режим [14:21:22]line Чек 176 25.10.2024 14:21 [14:21:22]line Смена: 540 ФФД: 1.0 [14:21:22]line ЗНМ: 0300000110 [14:21:22]line РНМ: 0000000000091776 [14:21:22]line Версия ККМ: 001 [14:21:22]line ФМ: 0000000000871754 [14:21:22]line ФД: 191437 [14:21:22]line ФПД: 27454623091433 [14:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191437&fm=27454623091433&tin=02508201610067®Number=0000000000091776&sum=40000 [14:21:22]OFD Sender: Processing packet 191437 [packets to send 75, broken 74] [14:21:22]ProducePacketName [14:21:22]name=ofd_packets/00191437 [14:21:22]OFD Sender: To server: pG, [14:21:22]CommunicateWithHost lk.salyk.kg:30040 [14:21:22]ConnectInit lk.salyk.kg [14:21:22]written 0, free lines is 4095 [14:21:22]Connected sock=10 [14:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 45 07 01 2C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6A A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EB 02 00 35 04 06 00 18 F8 47 0E 8A E9 E2 5F 32 C5 BE 67 CC 5F [14:21:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FC 20 47 00 DC 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EB 02 00 F4 03 04 00 38 4E 1B 67 B6 04 01 00 00 82 E9 7F 69 C4 62 25 86 [14:21:22]CommunicateWithHost err = 0 [14:21:22]CheckOFDResponse [14:21:22]1017 (14) - 77093643461234 [14:21:22]1041 (16) - 0000000000871754 [14:21:22]1040 (4) - 191437 [14:21:22]1012 (4) - 25.10.2024 07:52 [14:21:22]1206 (1) - 0 [14:21:22]OFD Sender: Remove packet 191437 [14:21:22]ProducePacketName [14:21:22]name=ofd_packets/00191437 [14:21:22]NVStorageDeleteData [14:21:23]Write to MH i2c: 01 00 00 44 A0 E4 [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: 01 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: 01 07 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: 01 07 00 44 A0 00 00 00 00 00 A9 0C A0 [14:21:23]RasterBufferAndPrint [14:21:23]line [14:21:23]line [14:21:23]line [14:21:23]line [14:21:23]line [14:21:23]written 0, free lines is 3247 [14:21:23]MH_Cut [14:21:23]Write to MH i2c: D1 01 00 4B A0 01 BD [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: D1 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: D1 01 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: D1 01 00 4B A0 00 BC [14:21:23]Write to MH i2c: 01 00 00 4C A0 EC [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]OFD Sender: No OFD packet to send [14:21:23]*** Cut start [14:21:23]*** Partial cut [14:21:23]*** CUTSNS_PIN = 1 [14:21:23]*** CUTSNS_PIN = 0 [14:21:24]*** Brake cut motor [14:21:24]Read from MH i2c: 01 [14:21:24]MH_I2C_Read... [14:21:24]*** Stop cut motor [14:21:24]*** Cut end [14:21:24]Read from MH i2c: 01 07 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: 01 07 00 4C A0 00 00 00 00 00 FF 0F 01 [14:21:24]process_action close_receipt done [14:21:24]requested_data is exist [14:21:24]produce_requested_data [14:21:24]requested_item fm.sn is exist - process it [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 11 00 00 [14:21:24]Write to MH i2c: E2 08 00 4D A0 80 11 00 00 00 00 00 00 67 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:24]Read from MH i2c: E2 17 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 17 00 4D A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [14:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:24]wFMCommunicate OK [14:21:24]requested_item fd.num is exist - process it [14:21:24]SAM_PROTO_GetFieldsCounters [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 13 00 00 [14:21:24]Write to MH i2c: E2 08 00 4E A0 80 13 00 00 00 00 00 00 6A [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 62 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 62 00 4E A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [14:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_GetFieldsCounters done [14:21:24]requested_item shift.num is exist - process it [14:21:24]requested_item shift.opened is exist - process it [14:21:24]req_shift_opened [14:21:24]FM_GetShiftState [14:21:24]SAM_PROTO_GetShiftState [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 13 01 00 [14:21:24]Write to MH i2c: E2 08 00 4F A0 80 13 01 00 00 00 00 00 6C [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 4F A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2F [14:21:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_GetShiftState done [14:21:24]FM_GetShiftState done [14:21:24]req_shift_opened done [14:21:24]requested_item shift.open_date is exist - process it [14:21:24]req_shift_open_date [14:21:24]req_shift_open_date done [14:21:24]produce_requested_data done [14:21:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191437,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:21:24]process_action_free close_receipt [14:21:24]json_value_free [14:21:24]json_value_free done [14:21:24]process_json_proto returns [14:21:24]Send response to host [14:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191437,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:21:24]free response buf [14:21:24]execute_script done [14:21:24]execute_script returns [14:21:24]free content buf [14:21:24]Sock 8.Close socket [14:21:24]Sock 8.Thread stoped [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:48]accept exits with 9 [14:21:48]New connection [14:21:48]New thread 3066961252 created [14:21:48]Thread 3066817892 joined [14:21:48]Waiting for new connection... [14:21:48] Sock 9.Parse request [14:21:48]Sock 9.Check first char [14:21:48]Sock 9.First char is OK [14:21:48]request: POST /json_proto HTTP/1.0 [14:21:48]Method: POST [14:21:48]URL: /json_proto [14:21:48]Method is POST - this is cgi request [14:21:48]url: /json_proto [14:21:48]query_string will be loaded in cgi processing [14:21:48]execute_cgi json_proto POST (null) [14:21:48]execute_cgi path=json_proto method=POST [14:21:48]POST find Content-Length [14:21:48]Host: 172.17.63.131:8080 [14:21:48]Content-Length: 676 [14:21:48]Content-Type: application/json [14:21:48] [14:21:48]POST finish read [14:21:48]Found Content-Length = 676 [14:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "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" ] } } [14:21:48]execute_script... [14:21:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "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" ] } } [14:21:48]POST & json_proto [14:21:48]process_json_proto [14:21:48]json parsed OK: [14:21:48]protocol is kg_v1.0 [14:21:48]action value=close_receipt [14:21:48]process_action close_receipt [14:21:48]cmd_close_receipt [14:21:48]MH_GetDate [14:21:48]Write to MH i2c: F0 00 00 50 A0 DF [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 09 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 09 00 50 A0 00 85 A9 1B 67 22 05 6E 64 91 [14:21:48]GetLastDocTimeStamp 1729866090 [14:21:48]current date 1729866117 [14:21:48]FM_GetShiftState [14:21:48]SAM_PROTO_GetShiftState [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 13 01 00 [14:21:48]Write to MH i2c: E2 08 00 51 A0 80 13 01 00 00 00 00 00 6E [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 51 A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 31 [14:21:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_GetShiftState done [14:21:48]FM_GetShiftState done [14:21:48]opened in 1729816399 [14:21:48]opened+sec_in_day 1729902799 [14:21:48]quantity*price = 33048 [14:21:48]sum+1 = 33050 [14:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 177 25.10.2024 14:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191438 ФПД: 180368517806459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191438&fm=180368517806459&tin=02508201610067®Number=0000000000091776&sum=33000 [14:21:49]StoreToDocumentArchive [14:21:49]shift 540 fd 191438 [14:21:49]save to /storage/0540/doc_00191438 [14:21:49]save last doc name /storage/0540/doc_00191438 to /storage/kkm_last_doc_name [14:21:49]save OK [14:21:49]Clear old archive folders... [14:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:49]tlvbuf is 017090E0 [14:21:49]SAM_PROTO_ClearQueue [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 09 00 00 [14:21:49]Write to MH i2c: E2 08 00 5E A0 80 09 00 00 00 00 00 00 70 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 5E A0 00 90 00 72 [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_ClearQueue done [14:21:49]KKMCreateOFDPacket [14:21:49]OFDProtocolAddRootSTLVToBuf [14:21:49]FM_MakeSignedData [14:21:49]FM_MakeSignedData [14:21:49]SAM_PROTO_SignData [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 0D 01 02 [14:21:49]Write to MH i2c: E2 08 00 5F A0 80 0D 01 02 00 00 00 00 78 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 5F A0 00 90 00 73 [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]wFMCommunicate request_size=255 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B1 00 00 00 F4 03 04 00 85 A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EB 02 00 35 04 06 00 A4 [14:21:49]Write to MH i2c: E2 02 01 60 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B1 00 00 00 F4 03 04 00 85 A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EB 02 00 35 04 06 00 A4 00 00 52 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 60 A0 00 90 00 74 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=10 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 02 02 05 0B 51 6E B9 7B [14:21:50]Write to MH i2c: E2 0D 00 61 A0 80 0D 02 02 05 00 0B 51 6E B9 7B 00 00 83 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 61 A0 00 90 00 75 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 03 02 [14:21:50]Write to MH i2c: E2 08 00 62 A0 80 0D 03 02 00 00 00 00 7D [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 62 A0 00 C3 9B 1B 5B D6 95 C5 75 90 00 F7 [14:21:50]RAPDU: C3 9B 1B 5B D6 95 C5 75 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_SignData done [14:21:50]FM_MakeSignedData done [14:21:50]CreateOFDProtocolMessage [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 11 00 00 [14:21:50]Write to MH i2c: E2 08 00 63 A0 80 11 00 00 00 00 00 00 7D [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 63 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [14:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:50]wFMCommunicate OK [14:21:50]CreateOFDProtocolMessage done [14:21:50]OFDSenderStorePacket 191438 [14:21:50]StoreOFDPacket docnum=191438 [14:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA 1A 07 01 1E 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B1 00 00 00 F4 03 04 00 85 A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EB 02 00 35 04 06 00 A4 0B 51 6E B9 7B C3 9B 1B 5B D6 95 C5 75 [14:21:50]CheckFolder [14:21:50]dirname=/storage/ofd_packets [14:21:50]CheckFolder done [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00191438 [14:21:50]NVStorageSaveData ofd_packets/00191438 [14:21:50]File name is /storage/ofd_packets/00191438 [14:21:50]Write 301 bytes [14:21:50]NVStorageSaveData done [14:21:50]OFDSenderStorePacket done [14:21:50]KKMCreateOFDPacket done [14:21:50]NVStorageSaveData kkm_last_timestamp [14:21:50]File name is /storage/kkm_last_timestamp [14:21:50]Write 4 bytes [14:21:50]NVStorageSaveData done [14:21:50]ExternCall_PrintAddStr [14:21:50]wPrintStart [14:21:50]Write to MH i2c: 01 00 00 64 A0 04 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 64 A0 00 00 00 00 00 FF 0F 19 [14:21:50]RasterBufferAndPrint [14:21:50]line Счет N : (1)30733 [14:21:50]line ИНН: 02508201610067 [14:21:50]line Контрольно-Кассовый Чек [14:21:50]line ПРОДАЖА [14:21:50]line ТРК (МРК, ГНК) : 21 [14:21:50]line Товар: 2710124130 [14:21:50]line Аи-92-К-5 [14:21:50]line 4.940 * 66.90 [14:21:50]line = 330.49 [14:21:50]line НДС 12% НСП 1% [14:21:50]line > о реализуемом товаре [14:21:50]line ОКРУГЛЕНИЕ: -0.49 [14:21:50]line ИТОГО: 330.00 [14:21:50]line Внесено: 330.00 [14:21:50]line СДАЧА: 0.00 [14:21:50]line НСП 1% : 2.92 [14:21:50]line НДС 12% : 35.10 [14:21:50]line Наличными: 330.00 [14:21:50]line Безнал.: 0.00 [14:21:50]line Место: АЗС № 170 "Партнер Нефть" [14:21:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:50]line СНО: Общий режим [14:21:50]line Чек 177 25.10.2024 14:21 [14:21:50]line Смена: 540 ФФД: 1.0 [14:21:50]line ЗНМ: 0300000110 [14:21:50]line РНМ: 0000000000091776 [14:21:50]line Версия ККМ: 001 [14:21:50]line ФМ: 0000000000871754 [14:21:50]line ФД: 191438 [14:21:50]line ФПД: 180368517806459 [14:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191438&fm=180368517806459&tin=02508201610067®Number=0000000000091776&sum=33000 [14:21:50]OFD Sender: Processing packet 191438 [packets to send 75, broken 74] [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00191438 [14:21:50]OFD Sender: To server: pG, [14:21:50]CommunicateWithHost lk.salyk.kg:30040 [14:21:50]ConnectInit lk.salyk.kg [14:21:50]written 0, free lines is 4095 [14:21:50]Connected sock=10 [14:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA 1A 07 01 1E 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B1 00 00 00 F4 03 04 00 85 A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EB 02 00 35 04 06 00 A4 0B 51 6E B9 7B C3 9B 1B 5B D6 95 C5 75 [14:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BE AE 47 00 F6 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 31 37 35 34 10 04 04 00 CE EB 02 00 F4 03 04 00 54 4E 1B 67 B6 04 01 00 00 11 5F EB 6F 00 FB E1 93 [14:21:50]CommunicateWithHost err = 0 [14:21:50]CheckOFDResponse [14:21:50]1017 (14) - 77093643461234 [14:21:50]1041 (16) - 0000000000871754 [14:21:50]1040 (4) - 191438 [14:21:50]1012 (4) - 25.10.2024 07:52 [14:21:50]1206 (1) - 0 [14:21:50]OFD Sender: Remove packet 191438 [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00191438 [14:21:50]NVStorageDeleteData [14:21:51]Write to MH i2c: 01 00 00 8F A0 2F [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 8F A0 00 00 00 00 00 B7 0C F9 [14:21:51]RasterBufferAndPrint [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]written 0, free lines is 3262 [14:21:51]MH_Cut [14:21:51]Write to MH i2c: D1 01 00 96 A0 01 08 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 96 A0 00 07 [14:21:51]Write to MH i2c: 01 00 00 97 A0 37 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]OFD Sender: No OFD packet to send [14:21:51]*** Cut start [14:21:51]*** Partial cut [14:21:51]*** CUTSNS_PIN = 1 [14:21:51]*** CUTSNS_PIN = 0 [14:21:52]*** Brake cut motor [14:21:52]Read from MH i2c: 01 [14:21:52]MH_I2C_Read... [14:21:52]*** Stop cut motor [14:21:52]*** Cut end [14:21:52]Read from MH i2c: 01 07 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 07 00 97 A0 00 00 00 00 00 FF 0F 4C [14:21:52]process_action close_receipt done [14:21:52]requested_data is exist [14:21:52]produce_requested_data [14:21:52]requested_item fm.sn is exist - process it [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 11 00 00 [14:21:52]Write to MH i2c: E2 08 00 98 A0 80 11 00 00 00 00 00 00 B2 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 17 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 17 00 98 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [14:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:52]wFMCommunicate OK [14:21:52]requested_item fd.num is exist - process it [14:21:52]SAM_PROTO_GetFieldsCounters [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 00 00 [14:21:52]Write to MH i2c: E2 08 00 99 A0 80 13 00 00 00 00 00 00 B5 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 62 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 62 00 99 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [14:21:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetFieldsCounters done [14:21:52]requested_item shift.num is exist - process it [14:21:52]requested_item shift.opened is exist - process it [14:21:52]req_shift_opened [14:21:52]FM_GetShiftState [14:21:52]SAM_PROTO_GetShiftState [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 01 00 [14:21:52]Write to MH i2c: E2 08 00 9A A0 80 13 01 00 00 00 00 00 B7 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 9A A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7A [14:21:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetShiftState done [14:21:52]FM_GetShiftState done [14:21:52]req_shift_opened done [14:21:52]requested_item shift.open_date is exist - process it [14:21:52]req_shift_open_date [14:21:52]req_shift_open_date done [14:21:52]produce_requested_data done [14:21:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191438,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:21:52]process_action_free close_receipt [14:21:52]json_value_free [14:21:52]json_value_free done [14:21:52]process_json_proto returns [14:21:52]Send response to host [14:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191438,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:21:52]free response buf [14:21:52]execute_script done [14:21:52]execute_script returns [14:21:52]free content buf [14:21:52]Sock 9.Close socket [14:21:52]Sock 9.Thread stoped [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:22:59]accept exits with 8 [14:22:59]New connection [14:22:59]New thread 3066817892 created [14:22:59]Thread 3066961252 joined [14:22:59]Waiting for new connection... [14:22:59] Sock 8.Parse request [14:22:59]Sock 8.Check first char [14:22:59]Sock 8.First char is OK [14:22:59]request: POST /json_proto HTTP/1.0 [14:22:59]Method: POST [14:22:59]URL: /json_proto [14:22:59]Method is POST - this is cgi request [14:22:59]url: /json_proto [14:22:59]query_string will be loaded in cgi processing [14:22:59]execute_cgi json_proto POST (null) [14:22:59]execute_cgi path=json_proto method=POST [14:22:59]POST find Content-Length [14:22:59]Host: 172.17.63.131:8080 [14:22:59]Content-Length: 674 [14:22:59]Content-Type: application/json [14:22:59] [14:22:59]POST finish read [14:22:59]Found Content-Length = 674 [14:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:22:59]execute_script... [14:22: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)30734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:22:59]POST & json_proto [14:22:59]process_json_proto [14:22:59]json parsed OK: [14:22:59]protocol is kg_v1.0 [14:22:59]action value=close_receipt [14:22:59]process_action close_receipt [14:22:59]cmd_close_receipt [14:22:59]MH_GetDate [14:22:59]Write to MH i2c: F0 00 00 9B A0 2A [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: F0 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: F0 09 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: F0 09 00 9B A0 00 CC A9 1B 67 22 05 6E 64 23 [14:22:59]GetLastDocTimeStamp 1729866117 [14:22:59]current date 1729866188 [14:22:59]FM_GetShiftState [14:22:59]SAM_PROTO_GetShiftState [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 13 01 00 [14:22:59]Write to MH i2c: E2 08 00 9C A0 80 13 01 00 00 00 00 00 B9 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 9C A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7C [14:22:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_GetShiftState done [14:22:59]FM_GetShiftState done [14:22:59]opened in 1729816399 [14:22:59]opened+sec_in_day 1729902799 [14:22:59]quantity*price = 80010 [14:22:59]sum+1 = 80011 [14:22:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 178 25.10.2024 14:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191439 ФПД: 65370947118496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191439&fm=65370947118496&tin=02508201610067®Number=0000000000091776&sum=80000 [14:23:00]StoreToDocumentArchive [14:23:00]shift 540 fd 191439 [14:23:00]save to /storage/0540/doc_00191439 [14:23:00]save last doc name /storage/0540/doc_00191439 to /storage/kkm_last_doc_name [14:23:00]save OK [14:23:00]Clear old archive folders... [14:23:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:00]tlvbuf is 015D87D0 [14:23:00]SAM_PROTO_ClearQueue [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 09 00 00 [14:23:00]Write to MH i2c: E2 08 00 A9 A0 80 09 00 00 00 00 00 00 BB [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 03 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 03 00 A9 A0 00 90 00 BD [14:23:00]RAPDU: 90 00 [14:23:00]wFMCommunicate OK [14:23:00]SAM_PROTO_ClearQueue done [14:23:00]KKMCreateOFDPacket [14:23:00]OFDProtocolAddRootSTLVToBuf [14:23:00]FM_MakeSignedData [14:23:00]FM_MakeSignedData [14:23:00]SAM_PROTO_SignData [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 0D 01 02 [14:23:00]Write to MH i2c: E2 08 00 AA A0 80 0D 01 02 00 00 00 00 C3 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 03 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 03 00 AA A0 00 90 00 BE [14:23:00]RAPDU: 90 00 [14:23:00]wFMCommunicate OK [14:23:00]wFMCommunicate request_size=255 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 CC A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EB 02 00 35 04 06 00 3B 74 5C 14 [14:23:00]Write to MH i2c: E2 02 01 AB A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 CC A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EB 02 00 35 04 06 00 3B 74 5C 14 00 00 22 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 03 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 03 00 AB A0 00 90 00 BF [14:23:01]RAPDU: 90 00 [14:23:01]wFMCommunicate OK [14:23:01]wFMCommunicate request_size=7 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 0D 02 02 02 E5 A0 [14:23:01]Write to MH i2c: E2 0A 00 AC A0 80 0D 02 02 02 00 E5 A0 00 00 4F [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 03 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 03 00 AC A0 00 90 00 C0 [14:23:01]RAPDU: 90 00 [14:23:01]wFMCommunicate OK [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 0D 03 02 [14:23:01]Write to MH i2c: E2 08 00 AD A0 80 0D 03 02 00 00 00 00 C8 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0B 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0B 00 AD A0 00 8F EA F7 18 CA 17 02 97 90 00 CB [14:23:01]RAPDU: 8F EA F7 18 CA 17 02 97 90 00 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_SignData done [14:23:01]FM_MakeSignedData done [14:23:01]CreateOFDProtocolMessage [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 11 00 00 [14:23:01]Write to MH i2c: E2 08 00 AE A0 80 11 00 00 00 00 00 00 C8 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 17 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 17 00 AE A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [14:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:23:01]wFMCommunicate OK [14:23:01]CreateOFDProtocolMessage done [14:23:01]OFDSenderStorePacket 191439 [14:23:01]StoreOFDPacket docnum=191439 [14:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 14 52 04 01 F9 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 CC A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EB 02 00 35 04 06 00 3B 74 5C 14 E5 A0 8F EA F7 18 CA 17 02 97 [14:23:01]CheckFolder [14:23:01]dirname=/storage/ofd_packets [14:23:01]CheckFolder done [14:23:01]ProducePacketName [14:23:01]name=ofd_packets/00191439 [14:23:01]NVStorageSaveData ofd_packets/00191439 [14:23:01]File name is /storage/ofd_packets/00191439 [14:23:01]Write 298 bytes [14:23:01]NVStorageSaveData done [14:23:01]OFDSenderStorePacket done [14:23:01]KKMCreateOFDPacket done [14:23:01]NVStorageSaveData kkm_last_timestamp [14:23:01]File name is /storage/kkm_last_timestamp [14:23:01]Write 4 bytes [14:23:01]NVStorageSaveData done [14:23:01]ExternCall_PrintAddStr [14:23:01]wPrintStart [14:23:01]Write to MH i2c: 01 00 00 AF A0 4F [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: 01 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: 01 07 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: 01 07 00 AF A0 00 00 00 00 00 FF 0F 64 [14:23:01]RasterBufferAndPrint [14:23:01]line Счет N : (1)30734 [14:23:01]line ИНН: 02508201610067 [14:23:01]line Контрольно-Кассовый Чек [14:23:01]line ПРОДАЖА [14:23:01]line ТРК (МРК, ГНК) : 11 [14:23:01]line Товар: 2710194210 [14:23:01]line ДТ-К-5 [14:23:01]line 10.500 * 76.20 [14:23:01]line = 800.10 [14:23:01]line НДС 12% НСП 1% [14:23:01]line > о реализуемом товаре [14:23:01]line ОКРУГЛЕНИЕ: -0.10 [14:23:01]line ИТОГО: 800.00 [14:23:01]line Внесено: 800.00 [14:23:01]line СДАЧА: 0.00 [14:23:01]line НСП 1% : 7.08 [14:23:01]line НДС 12% : 84.97 [14:23:01]line Наличными: 800.00 [14:23:01]line Безнал.: 0.00 [14:23:01]line Место: АЗС № 170 "Партнер Нефть" [14:23:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:23:01]line СНО: Общий режим [14:23:01]line Чек 178 25.10.2024 14:23 [14:23:01]line Смена: 540 ФФД: 1.0 [14:23:01]line ЗНМ: 0300000110 [14:23:01]line РНМ: 0000000000091776 [14:23:01]line Версия ККМ: 001 [14:23:01]line ФМ: 0000000000871754 [14:23:01]line ФД: 191439 [14:23:01]line ФПД: 65370947118496 [14:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191439&fm=65370947118496&tin=02508201610067®Number=0000000000091776&sum=80000 [14:23:01]OFD Sender: Processing packet 191439 [packets to send 75, broken 74] [14:23:01]ProducePacketName [14:23:01]name=ofd_packets/00191439 [14:23:01]OFD Sender: To server: pG, [14:23:01]CommunicateWithHost lk.salyk.kg:30040 [14:23:01]ConnectInit lk.salyk.kg [14:23:01]written 0, free lines is 4095 [14:23:01]Connected sock=10 [14:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 14 52 04 01 F9 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 CC A9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EB 02 00 35 04 06 00 3B 74 5C 14 E5 A0 8F EA F7 18 CA 17 02 97 [14:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 F8 47 00 71 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EB 02 00 F4 03 04 00 9B 4E 1B 67 B6 04 01 00 00 76 82 31 92 88 47 85 4A [14:23:01]CommunicateWithHost err = 0 [14:23:01]CheckOFDResponse [14:23:01]1017 (14) - 77093643461234 [14:23:01]1041 (16) - 0000000000871754 [14:23:01]1040 (4) - 191439 [14:23:01]1012 (4) - 25.10.2024 07:54 [14:23:01]1206 (1) - 0 [14:23:01]OFD Sender: Remove packet 191439 [14:23:01]ProducePacketName [14:23:01]name=ofd_packets/00191439 [14:23:01]NVStorageDeleteData [14:23:02]Write to MH i2c: 01 00 00 DA A0 7A [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 07 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 07 00 DA A0 00 00 00 00 00 B9 0C 46 [14:23:02]RasterBufferAndPrint [14:23:02]line [14:23:02]line [14:23:02]line [14:23:02]line [14:23:02]line [14:23:02]written 0, free lines is 3264 [14:23:02]MH_Cut [14:23:02]Write to MH i2c: D1 01 00 E1 A0 01 53 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: D1 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: D1 01 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: D1 01 00 E1 A0 00 52 [14:23:02]Write to MH i2c: 01 00 00 E2 A0 82 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]OFD Sender: No OFD packet to send [14:23:02]*** Cut start [14:23:02]*** Partial cut [14:23:02]*** CUTSNS_PIN = 1 [14:23:02]*** CUTSNS_PIN = 0 [14:23:03]*** Brake cut motor [14:23:03]Read from MH i2c: 01 [14:23:03]MH_I2C_Read... [14:23:03]*** Stop cut motor [14:23:03]*** Cut end [14:23:03]Read from MH i2c: 01 07 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 E2 A0 00 00 00 00 00 FF 0F 97 [14:23:03]process_action close_receipt done [14:23:03]requested_data is exist [14:23:03]produce_requested_data [14:23:03]requested_item fm.sn is exist - process it [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 11 00 00 [14:23:03]Write to MH i2c: E2 08 00 E3 A0 80 11 00 00 00 00 00 00 FD [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 E3 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [14:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:23:03]wFMCommunicate OK [14:23:03]requested_item fd.num is exist - process it [14:23:03]SAM_PROTO_GetFieldsCounters [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 13 00 00 [14:23:03]Write to MH i2c: E2 08 00 E4 A0 80 13 00 00 00 00 00 00 00 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 62 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 62 00 E4 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:23:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_GetFieldsCounters done [14:23:03]requested_item shift.num is exist - process it [14:23:03]requested_item shift.opened is exist - process it [14:23:03]req_shift_opened [14:23:03]FM_GetShiftState [14:23:03]SAM_PROTO_GetShiftState [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 13 01 00 [14:23:03]Write to MH i2c: E2 08 00 E5 A0 80 13 01 00 00 00 00 00 02 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0E 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0E 00 E5 A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C5 [14:23:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_GetShiftState done [14:23:03]FM_GetShiftState done [14:23:03]req_shift_opened done [14:23:03]requested_item shift.open_date is exist - process it [14:23:03]req_shift_open_date [14:23:03]req_shift_open_date done [14:23:03]produce_requested_data done [14:23:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191439,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:23:03]process_action_free close_receipt [14:23:03]json_value_free [14:23:03]json_value_free done [14:23:03]process_json_proto returns [14:23:03]Send response to host [14:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191439,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:23:03]free response buf [14:23:03]execute_script done [14:23:03]execute_script returns [14:23:03]free content buf [14:23:03]Sock 8.Close socket [14:23:03]Sock 8.Thread stoped [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:43]accept exits with 9 [14:26:43]New connection [14:26:43]New thread 3066961252 created [14:26:43]Thread 3066817892 joined [14:26:43]Waiting for new connection... [14:26:43] Sock 9.Parse request [14:26:43]Sock 9.Check first char [14:26:43]Sock 9.First char is OK [14:26:43]request: POST /json_proto HTTP/1.0 [14:26:43]Method: POST [14:26:43]URL: /json_proto [14:26:43]Method is POST - this is cgi request [14:26:43]url: /json_proto [14:26:43]query_string will be loaded in cgi processing [14:26:43]execute_cgi json_proto POST (null) [14:26:43]execute_cgi path=json_proto method=POST [14:26:43]POST find Content-Length [14:26:43]Host: 172.17.63.131:8080 [14:26:43]Content-Length: 678 [14:26:43]Content-Type: application/json [14:26:43] [14:26:43]POST finish read [14:26:43]Found Content-Length = 678 [14:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:43]execute_script... [14:26: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)30735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:43]POST & json_proto [14:26:43]process_json_proto [14:26:43]json parsed OK: [14:26:43]protocol is kg_v1.0 [14:26:43]action value=close_receipt [14:26:43]process_action close_receipt [14:26:43]cmd_close_receipt [14:26:43]MH_GetDate [14:26:43]Write to MH i2c: F0 00 00 E6 A0 75 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 E6 A0 00 AC AA 1B 67 22 05 6E 64 4F [14:26:43]GetLastDocTimeStamp 1729866188 [14:26:43]current date 1729866412 [14:26:43]FM_GetShiftState [14:26:43]SAM_PROTO_GetShiftState [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 13 01 00 [14:26:43]Write to MH i2c: E2 08 00 E7 A0 80 13 01 00 00 00 00 00 04 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 E7 A0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C7 [14:26:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_GetShiftState done [14:26:43]FM_GetShiftState done [14:26:43]opened in 1729816399 [14:26:43]opened+sec_in_day 1729902799 [14:26:43]quantity*price = 100050 [14:26:43]sum+1 = 100052 [14:26: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 179 25.10.2024 14:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191440 ФПД: 32827507529560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191440&fm=32827507529560&tin=02508201610067®Number=0000000000091776&sum=100000 [14:26:44]StoreToDocumentArchive [14:26:44]shift 540 fd 191440 [14:26:44]save to /storage/0540/doc_00191440 [14:26:44]save last doc name /storage/0540/doc_00191440 to /storage/kkm_last_doc_name [14:26:44]save OK [14:26:44]Clear old archive folders... [14:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:44]tlvbuf is 00051440 [14:26:44]SAM_PROTO_ClearQueue [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 09 00 00 [14:26:44]Write to MH i2c: E2 08 00 F4 A0 80 09 00 00 00 00 00 00 06 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 F4 A0 00 90 00 08 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_ClearQueue done [14:26:44]KKMCreateOFDPacket [14:26:44]OFDProtocolAddRootSTLVToBuf [14:26:44]FM_MakeSignedData [14:26:44]FM_MakeSignedData [14:26:44]SAM_PROTO_SignData [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 01 02 [14:26:44]Write to MH i2c: E2 08 00 F5 A0 80 0D 01 02 00 00 00 00 0E [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 F5 A0 00 90 00 09 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=255 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 AD AA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EB 02 00 35 04 06 00 1D DB 3F EC [14:26:44]Write to MH i2c: E2 02 01 F6 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AD AA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EB 02 00 35 04 06 00 1D DB 3F EC 00 00 22 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 F6 A0 00 90 00 0A [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=7 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 02 02 02 D7 58 [14:26:45]Write to MH i2c: E2 0A 00 F7 A0 80 0D 02 02 02 00 D7 58 00 00 44 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 F7 A0 00 90 00 0B [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 F8 A0 80 0D 03 02 00 00 00 00 13 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 F8 A0 00 0A 88 A8 D9 49 EC BF 9C 90 00 B7 [14:26:45]RAPDU: 0A 88 A8 D9 49 EC BF 9C 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 F9 A0 80 11 00 00 00 00 00 00 13 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 F9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 191440 [14:26:45]StoreOFDPacket docnum=191440 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 84 2C 04 01 5A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AD AA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EB 02 00 35 04 06 00 1D DB 3F EC D7 58 0A 88 A8 D9 49 EC BF 9C [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00191440 [14:26:45]NVStorageSaveData ofd_packets/00191440 [14:26:45]File name is /storage/ofd_packets/00191440 [14:26:45]Write 298 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 FA A0 9A [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 FA A0 00 00 00 00 00 FF 0F AF [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (1)30735 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line ТРК (МРК, ГНК) : 22 [14:26:45]line Товар: 2710194210 [14:26:45]line ДТ-К-5 [14:26:45]line 13.130 * 76.20 [14:26:45]line = 1000.51 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ОКРУГЛЕНИЕ: -0.51 [14:26:45]line ИТОГО: 1000.00 [14:26:45]line Внесено: 1000.00 [14:26:45]line СДАЧА: 0.00 [14:26:45]line НСП 1% : 8.85 [14:26:45]line НДС 12% : 106.25 [14:26:45]line Наличными: 1000.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 170 "Партнер Нефть" [14:26:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 179 25.10.2024 14:26 [14:26:45]line Смена: 540 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000110 [14:26:45]line РНМ: 0000000000091776 [14:26:45]line Версия ККМ: 001 [14:26:45]line ФМ: 0000000000871754 [14:26:45]line ФД: 191440 [14:26:45]line ФПД: 32827507529560 [14:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191440&fm=32827507529560&tin=02508201610067®Number=0000000000091776&sum=100000 [14:26:45]OFD Sender: Processing packet 191440 [packets to send 75, broken 74] [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00191440 [14:26:45]OFD Sender: To server: pG, [14:26:45]CommunicateWithHost lk.salyk.kg:30040 [14:26:45]ConnectInit lk.salyk.kg [14:26:45]written 0, free lines is 4095 [14:26:45]Connected sock=10 [14:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 84 2C 04 01 5A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AD AA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EB 02 00 35 04 06 00 1D DB 3F EC D7 58 0A 88 A8 D9 49 EC BF 9C [14:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 47 47 00 72 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EB 02 00 F4 03 04 00 7B 4F 1B 67 B6 04 01 00 00 C1 B0 9A FE EB 49 68 7C [14:26:45]CommunicateWithHost err = 0 [14:26:45]CheckOFDResponse [14:26:45]1017 (14) - 77093643461234 [14:26:45]1041 (16) - 0000000000871754 [14:26:45]1040 (4) - 191440 [14:26:45]1012 (4) - 25.10.2024 07:57 [14:26:45]1206 (1) - 0 [14:26:45]OFD Sender: Remove packet 191440 [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00191440 [14:26:45]NVStorageDeleteData [14:26:46]Write to MH i2c: 01 00 00 25 A1 C6 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: 01 07 00 25 A1 00 00 00 00 00 BA 0C 93 [14:26:46]RasterBufferAndPrint [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]line [14:26:46]written 0, free lines is 3264 [14:26:46]MH_Cut [14:26:46]Write to MH i2c: D1 01 00 2C A1 01 9F [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 2C A1 00 9E [14:26:46]Write to MH i2c: 01 00 00 2D A1 CE [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]OFD Sender: No OFD packet to send [14:26:46]*** Cut start [14:26:46]*** Partial cut [14:26:46]*** CUTSNS_PIN = 1 [14:26:46]*** CUTSNS_PIN = 0 [14:26:47]*** Brake cut motor [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]*** Stop cut motor [14:26:47]*** Cut end [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 2D A1 00 00 00 00 00 FF 0F E3 [14:26:47]process_action close_receipt done [14:26:47]requested_data is exist [14:26:47]produce_requested_data [14:26:47]requested_item fm.sn is exist - process it [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 11 00 00 [14:26:47]Write to MH i2c: E2 08 00 2E A1 80 11 00 00 00 00 00 00 49 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 2E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [14:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:47]wFMCommunicate OK [14:26:47]requested_item fd.num is exist - process it [14:26:47]SAM_PROTO_GetFieldsCounters [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 00 00 [14:26:47]Write to MH i2c: E2 08 00 2F A1 80 13 00 00 00 00 00 00 4C [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 2F A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [14:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetFieldsCounters done [14:26:47]requested_item shift.num is exist - process it [14:26:47]requested_item shift.opened is exist - process it [14:26:47]req_shift_opened [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 30 A1 80 13 01 00 00 00 00 00 4E [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 30 A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 11 [14:26:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]req_shift_opened done [14:26:47]requested_item shift.open_date is exist - process it [14:26:47]req_shift_open_date [14:26:47]req_shift_open_date done [14:26:47]produce_requested_data done [14:26:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191440,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:26:47]process_action_free close_receipt [14:26:47]json_value_free [14:26:47]json_value_free done [14:26:47]process_json_proto returns [14:26:47]Send response to host [14:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191440,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:26:47]free response buf [14:26:47]execute_script done [14:26:47]execute_script returns [14:26:47]free content buf [14:26:47]Sock 9.Close socket [14:26:47]Sock 9.Thread stoped [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:35]accept exits with 8 [14:29:35]New connection [14:29:35]New thread 3066817892 created [14:29:35]Thread 3066961252 joined [14:29:35]Waiting for new connection... [14:29:35] Sock 8.Parse request [14:29:35]Sock 8.Check first char [14:29:35]Sock 8.First char is OK [14:29:35]request: POST /json_proto HTTP/1.0 [14:29:35]Method: POST [14:29:35]URL: /json_proto [14:29:35]Method is POST - this is cgi request [14:29:35]url: /json_proto [14:29:35]query_string will be loaded in cgi processing [14:29:35]execute_cgi json_proto POST (null) [14:29:35]execute_cgi path=json_proto method=POST [14:29:35]POST find Content-Length [14:29:35]Host: 172.17.63.131:8080 [14:29:35]Content-Length: 676 [14:29:35]Content-Type: application/json [14:29:35] [14:29:35]POST finish read [14:29:35]Found Content-Length = 676 [14:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:35]execute_script... [14:29: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)30736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:35]POST & json_proto [14:29:35]process_json_proto [14:29:35]json parsed OK: [14:29:35]protocol is kg_v1.0 [14:29:35]action value=close_receipt [14:29:35]process_action close_receipt [14:29:35]cmd_close_receipt [14:29:35]MH_GetDate [14:29:35]Write to MH i2c: F0 00 00 31 A1 C1 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: F0 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: F0 09 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: F0 09 00 31 A1 00 58 AB 1B 67 22 05 6E 64 48 [14:29:35]GetLastDocTimeStamp 1729866413 [14:29:35]current date 1729866584 [14:29:35]FM_GetShiftState [14:29:35]SAM_PROTO_GetShiftState [14:29:35]wFMCommunicate request_size=4 [14:29:35]MH_SAM_APDU [14:29:35]CAPDU: 80 13 01 00 [14:29:35]Write to MH i2c: E2 08 00 32 A1 80 13 01 00 00 00 00 00 50 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:35]Read from MH i2c: E2 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: E2 0E 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: E2 0E 00 32 A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 13 [14:29:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:29:35]wFMCommunicate OK [14:29:35]SAM_PROTO_GetShiftState done [14:29:35]FM_GetShiftState done [14:29:35]opened in 1729816399 [14:29:35]opened+sec_in_day 1729902799 [14:29:35]quantity*price = 30038 [14:29:35]sum+1 = 30039 [14:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 180 25.10.2024 14:29 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191441 ФПД: 100024470448283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142944&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191441&fm=100024470448283&tin=02508201610067®Number=0000000000091776&sum=30000 [14:29:36]StoreToDocumentArchive [14:29:36]shift 540 fd 191441 [14:29:36]save to /storage/0540/doc_00191441 [14:29:36]save last doc name /storage/0540/doc_00191441 to /storage/kkm_last_doc_name [14:29:36]save OK [14:29:36]Clear old archive folders... [14:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:36]tlvbuf is 017F1710 [14:29:36]SAM_PROTO_ClearQueue [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 09 00 00 [14:29:36]Write to MH i2c: E2 08 00 3F A1 80 09 00 00 00 00 00 00 52 [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 3F A1 00 90 00 54 [14:29:36]RAPDU: 90 00 [14:29:36]wFMCommunicate OK [14:29:36]SAM_PROTO_ClearQueue done [14:29:36]KKMCreateOFDPacket [14:29:36]OFDProtocolAddRootSTLVToBuf [14:29:36]FM_MakeSignedData [14:29:36]FM_MakeSignedData [14:29:36]SAM_PROTO_SignData [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 0D 01 02 [14:29:36]Write to MH i2c: E2 08 00 40 A1 80 0D 01 02 00 00 00 00 5A [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:36]OFD Sender: No OFD packet to send [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 40 A1 00 90 00 55 [14:29:36]RAPDU: 90 00 [14:29:36]wFMCommunicate OK [14:29:36]wFMCommunicate request_size=255 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 58 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EB 02 00 35 04 06 00 5A [14:29:36]Write to MH i2c: E2 02 01 41 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 58 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EB 02 00 35 04 06 00 5A 00 00 51 [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 41 A1 00 90 00 56 [14:29:36]RAPDU: 90 00 [14:29:36]wFMCommunicate OK [14:29:36]wFMCommunicate request_size=10 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 0D 02 02 05 F8 C3 07 A8 9B [14:29:36]Write to MH i2c: E2 0D 00 42 A1 80 0D 02 02 05 00 F8 C3 07 A8 9B 00 00 6C [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 03 00 42 A1 00 90 00 57 [14:29:36]RAPDU: 90 00 [14:29:36]wFMCommunicate OK [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 0D 03 02 [14:29:36]Write to MH i2c: E2 08 00 43 A1 80 0D 03 02 00 00 00 00 5F [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0B 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0B 00 43 A1 00 89 FC 09 79 90 86 D9 54 90 00 AA [14:29:37]RAPDU: 89 FC 09 79 90 86 D9 54 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_SignData done [14:29:37]FM_MakeSignedData done [14:29:37]CreateOFDProtocolMessage [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 11 00 00 [14:29:37]Write to MH i2c: E2 08 00 44 A1 80 11 00 00 00 00 00 00 5F [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 17 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 17 00 44 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [14:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:37]wFMCommunicate OK [14:29:37]CreateOFDProtocolMessage done [14:29:37]OFDSenderStorePacket 191441 [14:29:37]StoreOFDPacket docnum=191441 [14:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 AD 07 01 3E BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 58 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EB 02 00 35 04 06 00 5A F8 C3 07 A8 9B 89 FC 09 79 90 86 D9 54 [14:29:37]CheckFolder [14:29:37]dirname=/storage/ofd_packets [14:29:37]CheckFolder done [14:29:37]ProducePacketName [14:29:37]name=ofd_packets/00191441 [14:29:37]NVStorageSaveData ofd_packets/00191441 [14:29:37]File name is /storage/ofd_packets/00191441 [14:29:37]Write 301 bytes [14:29:37]NVStorageSaveData done [14:29:37]OFDSenderStorePacket done [14:29:37]KKMCreateOFDPacket done [14:29:37]NVStorageSaveData kkm_last_timestamp [14:29:37]File name is /storage/kkm_last_timestamp [14:29:37]Write 4 bytes [14:29:37]NVStorageSaveData done [14:29:37]ExternCall_PrintAddStr [14:29:37]wPrintStart [14:29:37]Write to MH i2c: 01 00 00 45 A1 E6 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 07 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 07 00 45 A1 00 00 00 00 00 FF 0F FB [14:29:37]RasterBufferAndPrint [14:29:37]line Счет N : (1)30736 [14:29:37]line ИНН: 02508201610067 [14:29:37]line Контрольно-Кассовый Чек [14:29:37]line ПРОДАЖА [14:29:37]line ТРК (МРК, ГНК) : 21 [14:29:37]line Товар: 2710124130 [14:29:37]line Аи-92-К-5 [14:29:37]line 4.490 * 66.90 [14:29:37]line = 300.38 [14:29:37]line НДС 12% НСП 1% [14:29:37]line > о реализуемом товаре [14:29:37]line ОКРУГЛЕНИЕ: -0.38 [14:29:37]line ИТОГО: 300.00 [14:29:37]line Внесено: 300.00 [14:29:37]line СДАЧА: 0.00 [14:29:37]line НСП 1% : 2.66 [14:29:37]line НДС 12% : 31.90 [14:29:37]line Наличными: 300.00 [14:29:37]line Безнал.: 0.00 [14:29:37]line Место: АЗС № 170 "Партнер Нефть" [14:29:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:29:37]line СНО: Общий режим [14:29:37]line Чек 180 25.10.2024 14:29 [14:29:37]line Смена: 540 ФФД: 1.0 [14:29:37]line ЗНМ: 0300000110 [14:29:37]line РНМ: 0000000000091776 [14:29:37]line Версия ККМ: 001 [14:29:37]line ФМ: 0000000000871754 [14:29:37]line ФД: 191441 [14:29:37]line ФПД: 100024470448283 [14:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T142944&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191441&fm=100024470448283&tin=02508201610067®Number=0000000000091776&sum=30000 [14:29:37]OFD Sender: Processing packet 191441 [packets to send 75, broken 74] [14:29:37]ProducePacketName [14:29:37]name=ofd_packets/00191441 [14:29:37]OFD Sender: To server: pG, [14:29:37]CommunicateWithHost lk.salyk.kg:30040 [14:29:37]ConnectInit lk.salyk.kg [14:29:37]written 0, free lines is 4095 [14:29:37]Connected sock=10 [14:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 AD 07 01 3E BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 58 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EB 02 00 35 04 06 00 5A F8 C3 07 A8 9B 89 FC 09 79 90 86 D9 54 [14:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CB E4 47 00 33 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EB 02 00 F4 03 04 00 27 50 1B 67 B6 04 01 00 00 FB 58 26 50 D2 28 FA 02 [14:29:37]CommunicateWithHost err = 0 [14:29:37]CheckOFDResponse [14:29:37]1017 (14) - 77093643461234 [14:29:37]1041 (16) - 0000000000871754 [14:29:37]1040 (4) - 191441 [14:29:37]1012 (4) - 25.10.2024 08:00 [14:29:37]1206 (1) - 0 [14:29:37]OFD Sender: Remove packet 191441 [14:29:37]ProducePacketName [14:29:37]name=ofd_packets/00191441 [14:29:37]NVStorageDeleteData [14:29:37]Write to MH i2c: 01 00 00 70 A1 11 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 07 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 07 00 70 A1 00 00 00 00 00 C2 0C E6 [14:29:37]RasterBufferAndPrint [14:29:37]line [14:29:37]line [14:29:37]line [14:29:37]line [14:29:37]line [14:29:37]written 0, free lines is 3275 [14:29:37]MH_Cut [14:29:37]Write to MH i2c: D1 01 00 77 A1 01 EA [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: D1 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: D1 01 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: D1 01 00 77 A1 00 E9 [14:29:37]Write to MH i2c: 01 00 00 78 A1 19 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:38]OFD Sender: No OFD packet to send [14:29:38]*** Cut start [14:29:38]*** Partial cut [14:29:38]*** CUTSNS_PIN = 1 [14:29:38]*** CUTSNS_PIN = 0 [14:29:38]*** Brake cut motor [14:29:39]Read from MH i2c: 01 [14:29:39]MH_I2C_Read... [14:29:39]*** Stop cut motor [14:29:39]*** Cut end [14:29:39]Read from MH i2c: 01 07 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 07 00 78 A1 00 00 00 00 00 FF 0F 2E [14:29:39]process_action close_receipt done [14:29:39]requested_data is exist [14:29:39]produce_requested_data [14:29:39]requested_item fm.sn is exist - process it [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 11 00 00 [14:29:39]Write to MH i2c: E2 08 00 79 A1 80 11 00 00 00 00 00 00 94 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 17 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 17 00 79 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [14:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:39]wFMCommunicate OK [14:29:39]requested_item fd.num is exist - process it [14:29:39]SAM_PROTO_GetFieldsCounters [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 13 00 00 [14:29:39]Write to MH i2c: E2 08 00 7A A1 80 13 00 00 00 00 00 00 97 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 62 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 62 00 7A A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [14:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:39]wFMCommunicate OK [14:29:39]SAM_PROTO_GetFieldsCounters done [14:29:39]requested_item shift.num is exist - process it [14:29:39]requested_item shift.opened is exist - process it [14:29:39]req_shift_opened [14:29:39]FM_GetShiftState [14:29:39]SAM_PROTO_GetShiftState [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 13 01 00 [14:29:39]Write to MH i2c: E2 08 00 7B A1 80 13 01 00 00 00 00 00 99 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 0E 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 0E 00 7B A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5C [14:29:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:29:39]wFMCommunicate OK [14:29:39]SAM_PROTO_GetShiftState done [14:29:39]FM_GetShiftState done [14:29:39]req_shift_opened done [14:29:39]requested_item shift.open_date is exist - process it [14:29:39]req_shift_open_date [14:29:39]req_shift_open_date done [14:29:39]produce_requested_data done [14:29:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191441,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:29:39]process_action_free close_receipt [14:29:39]json_value_free [14:29:39]json_value_free done [14:29:39]process_json_proto returns [14:29:39]Send response to host [14:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191441,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:29:39]free response buf [14:29:39]execute_script done [14:29:39]execute_script returns [14:29:39]free content buf [14:29:39]Sock 8.Close socket [14:29:39]Sock 8.Thread stoped [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:49]accept exits with 9 [14:30:49]New connection [14:30:49]New thread 3066961252 created [14:30:49]Thread 3066817892 joined [14:30:49]Waiting for new connection... [14:30:49] Sock 9.Parse request [14:30:49]Sock 9.Check first char [14:30:49]Sock 9.First char is OK [14:30:49]request: POST /json_proto HTTP/1.0 [14:30:49]Method: POST [14:30:49]URL: /json_proto [14:30:49]Method is POST - this is cgi request [14:30:49]url: /json_proto [14:30:49]query_string will be loaded in cgi processing [14:30:49]execute_cgi json_proto POST (null) [14:30:49]execute_cgi path=json_proto method=POST [14:30:49]POST find Content-Length [14:30:49]Host: 172.17.63.131:8080 [14:30:49]Content-Length: 677 [14:30:49]Content-Type: application/json [14:30:49] [14:30:49]POST finish read [14:30:49]Found Content-Length = 677 [14:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:49]execute_script... [14:30: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)30737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:49]POST & json_proto [14:30:49]process_json_proto [14:30:49]json parsed OK: [14:30:49]protocol is kg_v1.0 [14:30:49]action value=close_receipt [14:30:49]process_action close_receipt [14:30:49]cmd_close_receipt [14:30:49]MH_GetDate [14:30:49]Write to MH i2c: F0 00 00 7C A1 0C [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 09 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: F0 09 00 7C A1 00 A2 AB 1B 67 22 05 6E 64 DD [14:30:49]GetLastDocTimeStamp 1729866584 [14:30:49]current date 1729866658 [14:30:49]FM_GetShiftState [14:30:49]SAM_PROTO_GetShiftState [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 01 00 [14:30:49]Write to MH i2c: E2 08 00 7D A1 80 13 01 00 00 00 00 00 9B [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 7D A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5E [14:30:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetShiftState done [14:30:49]FM_GetShiftState done [14:30:49]opened in 1729816399 [14:30:49]opened+sec_in_day 1729902799 [14:30:49]quantity*price = 70044 [14:30:49]sum+1 = 70045 [14:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 181 25.10.2024 14:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191442 ФПД: 60912258230709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191442&fm=60912258230709&tin=02508201610067®Number=0000000000091776&sum=70000 [14:30:50]StoreToDocumentArchive [14:30:50]shift 540 fd 191442 [14:30:50]save to /storage/0540/doc_00191442 [14:30:50]save last doc name /storage/0540/doc_00191442 to /storage/kkm_last_doc_name [14:30:50]save OK [14:30:50]Clear old archive folders... [14:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:50]tlvbuf is 016CE530 [14:30:50]SAM_PROTO_ClearQueue [14:30:50]wFMCommunicate request_size=4 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 09 00 00 [14:30:50]Write to MH i2c: E2 08 00 8A A1 80 09 00 00 00 00 00 00 9D [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 8A A1 00 90 00 9F [14:30:50]RAPDU: 90 00 [14:30:50]wFMCommunicate OK [14:30:50]SAM_PROTO_ClearQueue done [14:30:50]KKMCreateOFDPacket [14:30:50]OFDProtocolAddRootSTLVToBuf [14:30:50]FM_MakeSignedData [14:30:50]FM_MakeSignedData [14:30:50]SAM_PROTO_SignData [14:30:50]wFMCommunicate request_size=4 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 0D 01 02 [14:30:50]Write to MH i2c: E2 08 00 8B A1 80 0D 01 02 00 00 00 00 A5 [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 8B A1 00 90 00 A0 [14:30:50]RAPDU: 90 00 [14:30:50]wFMCommunicate OK [14:30:50]wFMCommunicate request_size=255 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A2 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EB 02 00 35 04 06 00 37 [14:30:50]Write to MH i2c: E2 02 01 8C A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A2 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EB 02 00 35 04 06 00 37 00 00 E1 [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 8C A1 00 90 00 A1 [14:30:50]RAPDU: 90 00 [14:30:50]wFMCommunicate OK [14:30:50]wFMCommunicate request_size=10 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 0D 02 02 05 66 3D 83 A9 B5 [14:30:50]Write to MH i2c: E2 0D 00 8D A1 80 0D 02 02 05 00 66 3D 83 A9 B5 00 00 36 [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 03 00 8D A1 00 90 00 A2 [14:30:50]RAPDU: 90 00 [14:30:50]wFMCommunicate OK [14:30:50]wFMCommunicate request_size=4 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 0D 03 02 [14:30:50]Write to MH i2c: E2 08 00 8E A1 80 0D 03 02 00 00 00 00 AA [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0B 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0B 00 8E A1 00 CE 81 78 6E 6A E0 87 4C 90 00 FD [14:30:50]RAPDU: CE 81 78 6E 6A E0 87 4C 90 00 [14:30:50]wFMCommunicate OK [14:30:50]SAM_PROTO_SignData done [14:30:50]FM_MakeSignedData done [14:30:50]CreateOFDProtocolMessage [14:30:50]wFMCommunicate request_size=4 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 11 00 00 [14:30:50]Write to MH i2c: E2 08 00 8F A1 80 11 00 00 00 00 00 00 AA [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 17 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 17 00 8F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [14:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:50]wFMCommunicate OK [14:30:50]CreateOFDProtocolMessage done [14:30:50]OFDSenderStorePacket 191442 [14:30:50]StoreOFDPacket docnum=191442 [14:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 7C 07 01 2F BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A2 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EB 02 00 35 04 06 00 37 66 3D 83 A9 B5 CE 81 78 6E 6A E0 87 4C [14:30:50]CheckFolder [14:30:50]dirname=/storage/ofd_packets [14:30:50]CheckFolder done [14:30:50]ProducePacketName [14:30:50]name=ofd_packets/00191442 [14:30:50]NVStorageSaveData ofd_packets/00191442 [14:30:50]File name is /storage/ofd_packets/00191442 [14:30:50]Write 301 bytes [14:30:50]NVStorageSaveData done [14:30:50]OFDSenderStorePacket done [14:30:50]KKMCreateOFDPacket done [14:30:50]NVStorageSaveData kkm_last_timestamp [14:30:50]File name is /storage/kkm_last_timestamp [14:30:50]Write 4 bytes [14:30:50]NVStorageSaveData done [14:30:50]ExternCall_PrintAddStr [14:30:50]wPrintStart [14:30:50]Write to MH i2c: 01 00 00 90 A1 31 [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: 01 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: 01 07 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: 01 07 00 90 A1 00 00 00 00 00 FF 0F 46 [14:30:50]RasterBufferAndPrint [14:30:50]line Счет N : (1)30737 [14:30:50]line ИНН: 02508201610067 [14:30:50]line Контрольно-Кассовый Чек [14:30:50]line ПРОДАЖА [14:30:50]line ТРК (МРК, ГНК) : 12 [14:30:50]line Товар: 2710124130 [14:30:50]line Аи-92-К-5 [14:30:50]line 10.470 * 66.90 [14:30:50]line = 700.44 [14:30:50]line НДС 12% НСП 1% [14:30:50]line > о реализуемом товаре [14:30:50]line ОКРУГЛЕНИЕ: -0.44 [14:30:50]line ИТОГО: 700.00 [14:30:50]line Внесено: 700.00 [14:30:50]line СДАЧА: 0.00 [14:30:50]line НСП 1% : 6.20 [14:30:50]line НДС 12% : 74.38 [14:30:50]line Наличными: 700.00 [14:30:50]line Безнал.: 0.00 [14:30:50]line Место: АЗС № 170 "Партнер Нефть" [14:30:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:30:50]line СНО: Общий режим [14:30:50]line Чек 181 25.10.2024 14:30 [14:30:50]line Смена: 540 ФФД: 1.0 [14:30:50]line ЗНМ: 0300000110 [14:30:50]line РНМ: 0000000000091776 [14:30:50]line Версия ККМ: 001 [14:30:50]line ФМ: 0000000000871754 [14:30:50]line ФД: 191442 [14:30:50]line ФПД: 60912258230709 [14:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191442&fm=60912258230709&tin=02508201610067®Number=0000000000091776&sum=70000 [14:30:51]OFD Sender: Processing packet 191442 [packets to send 75, broken 74] [14:30:51]ProducePacketName [14:30:51]name=ofd_packets/00191442 [14:30:51]OFD Sender: To server: pG, [14:30:51]CommunicateWithHost lk.salyk.kg:30040 [14:30:51]ConnectInit lk.salyk.kg [14:30:51]written 0, free lines is 4095 [14:30:51]Connected sock=10 [14:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 7C 07 01 2F BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A2 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EB 02 00 35 04 06 00 37 66 3D 83 A9 B5 CE 81 78 6E 6A E0 87 4C [14:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 34 88 47 00 A6 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EB 02 00 F4 03 04 00 70 50 1B 67 B6 04 01 00 00 42 D3 A3 7B 65 B7 88 61 [14:30:51]CommunicateWithHost err = 0 [14:30:51]CheckOFDResponse [14:30:51]1017 (14) - 77093643461234 [14:30:51]1041 (16) - 0000000000871754 [14:30:51]1040 (4) - 191442 [14:30:51]1012 (4) - 25.10.2024 08:01 [14:30:51]1206 (1) - 0 [14:30:51]OFD Sender: Remove packet 191442 [14:30:51]ProducePacketName [14:30:51]name=ofd_packets/00191442 [14:30:51]NVStorageDeleteData [14:30:51]Write to MH i2c: 01 00 00 BB A1 5C [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 07 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: 01 07 00 BB A1 00 00 00 00 00 AF 0C 1E [14:30:51]RasterBufferAndPrint [14:30:51]line [14:30:51]line [14:30:51]line [14:30:51]line [14:30:51]line [14:30:51]written 0, free lines is 3255 [14:30:51]MH_Cut [14:30:51]Write to MH i2c: D1 01 00 C2 A1 01 35 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: D1 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: D1 01 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: D1 01 00 C2 A1 00 34 [14:30:51]Write to MH i2c: 01 00 00 C3 A1 64 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]OFD Sender: No OFD packet to send [14:30:52]*** Cut start [14:30:52]*** Partial cut [14:30:52]*** CUTSNS_PIN = 1 [14:30:52]*** CUTSNS_PIN = 0 [14:30:52]*** Brake cut motor [14:30:52]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]*** Stop cut motor [14:30:53]*** Cut end [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 C3 A1 00 00 00 00 00 FF 0F 79 [14:30:53]process_action close_receipt done [14:30:53]requested_data is exist [14:30:53]produce_requested_data [14:30:53]requested_item fm.sn is exist - process it [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 11 00 00 [14:30:53]Write to MH i2c: E2 08 00 C4 A1 80 11 00 00 00 00 00 00 DF [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 C4 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:53]wFMCommunicate OK [14:30:53]requested_item fd.num is exist - process it [14:30:53]SAM_PROTO_GetFieldsCounters [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 13 00 00 [14:30:53]Write to MH i2c: E2 08 00 C5 A1 80 13 00 00 00 00 00 00 E2 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 62 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 62 00 C5 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [14:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_GetFieldsCounters done [14:30:53]requested_item shift.num is exist - process it [14:30:53]requested_item shift.opened is exist - process it [14:30:53]req_shift_opened [14:30:53]FM_GetShiftState [14:30:53]SAM_PROTO_GetShiftState [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 13 01 00 [14:30:53]Write to MH i2c: E2 08 00 C6 A1 80 13 01 00 00 00 00 00 E4 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0E 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0E 00 C6 A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A7 [14:30:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_GetShiftState done [14:30:53]FM_GetShiftState done [14:30:53]req_shift_opened done [14:30:53]requested_item shift.open_date is exist - process it [14:30:53]req_shift_open_date [14:30:53]req_shift_open_date done [14:30:53]produce_requested_data done [14:30:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191442,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:30:53]process_action_free close_receipt [14:30:53]json_value_free [14:30:53]json_value_free done [14:30:53]process_json_proto returns [14:30:53]Send response to host [14:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191442,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:30:53]free response buf [14:30:53]execute_script done [14:30:53]execute_script returns [14:30:53]free content buf [14:30:53]Sock 9.Close socket [14:30:53]Sock 9.Thread stoped [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:11]accept exits with 8 [14:32:11]New connection [14:32:11]New thread 3066817892 created [14:32:11]Thread 3066961252 joined [14:32:11]Waiting for new connection... [14:32:11] Sock 8.Parse request [14:32:11]Sock 8.Check first char [14:32:11]Sock 8.First char is OK [14:32:11]request: POST /json_proto HTTP/1.0 [14:32:11]Method: POST [14:32:11]URL: /json_proto [14:32:11]Method is POST - this is cgi request [14:32:11]url: /json_proto [14:32:11]query_string will be loaded in cgi processing [14:32:11]execute_cgi json_proto POST (null) [14:32:11]execute_cgi path=json_proto method=POST [14:32:11]POST find Content-Length [14:32:11]Host: 172.17.63.131:8080 [14:32:11]Content-Length: 676 [14:32:11]Content-Type: application/json [14:32:11] [14:32:11]POST finish read [14:32:11]Found Content-Length = 676 [14:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:11]execute_script... [14:32: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)30738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:11]POST & json_proto [14:32:11]process_json_proto [14:32:11]json parsed OK: [14:32:11]protocol is kg_v1.0 [14:32:11]action value=close_receipt [14:32:11]process_action close_receipt [14:32:11]cmd_close_receipt [14:32:11]MH_GetDate [14:32:11]Write to MH i2c: F0 00 00 C7 A1 57 [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: F0 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: F0 09 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: F0 09 00 C7 A1 00 F4 AB 1B 67 22 05 6E 64 7A [14:32:11]GetLastDocTimeStamp 1729866658 [14:32:11]current date 1729866740 [14:32:11]FM_GetShiftState [14:32:11]SAM_PROTO_GetShiftState [14:32:11]wFMCommunicate request_size=4 [14:32:11]MH_SAM_APDU [14:32:11]CAPDU: 80 13 01 00 [14:32:11]Write to MH i2c: E2 08 00 C8 A1 80 13 01 00 00 00 00 00 E6 [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:11]Read from MH i2c: E2 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: E2 0E 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: E2 0E 00 C8 A1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A9 [14:32:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:32:11]wFMCommunicate OK [14:32:11]SAM_PROTO_GetShiftState done [14:32:11]FM_GetShiftState done [14:32:11]opened in 1729816399 [14:32:11]opened+sec_in_day 1729902799 [14:32:11]quantity*price = 20003 [14:32:11]sum+1 = 20004 [14:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 182 25.10.2024 14:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191443 ФПД: 428302456161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191443&fm=428302456161&tin=02508201610067®Number=0000000000091776&sum=20000 [14:32:12]StoreToDocumentArchive [14:32:12]shift 540 fd 191443 [14:32:12]save to /storage/0540/doc_00191443 [14:32:12]save last doc name /storage/0540/doc_00191443 to /storage/kkm_last_doc_name [14:32:12]save OK [14:32:12]Clear old archive folders... [14:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:12]tlvbuf is 017F1700 [14:32:12]SAM_PROTO_ClearQueue [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 09 00 00 [14:32:12]Write to MH i2c: E2 08 00 D5 A1 80 09 00 00 00 00 00 00 E8 [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 D5 A1 00 90 00 EA [14:32:12]RAPDU: 90 00 [14:32:12]wFMCommunicate OK [14:32:12]SAM_PROTO_ClearQueue done [14:32:12]KKMCreateOFDPacket [14:32:12]OFDProtocolAddRootSTLVToBuf [14:32:12]FM_MakeSignedData [14:32:12]FM_MakeSignedData [14:32:12]SAM_PROTO_SignData [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 0D 01 02 [14:32:12]Write to MH i2c: E2 08 00 D6 A1 80 0D 01 02 00 00 00 00 F0 [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 D6 A1 00 90 00 EB [14:32:12]RAPDU: 90 00 [14:32:12]wFMCommunicate OK [14:32:12]wFMCommunicate request_size=255 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F4 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EB 02 00 35 04 06 00 00 [14:32:12]Write to MH i2c: E2 02 01 D7 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F4 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EB 02 00 35 04 06 00 00 00 00 FB [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 D7 A1 00 90 00 EC [14:32:12]RAPDU: 90 00 [14:32:12]wFMCommunicate OK [14:32:12]wFMCommunicate request_size=10 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 0D 02 02 05 63 B8 D0 D5 61 [14:32:12]Write to MH i2c: E2 0D 00 D8 A1 80 0D 02 02 05 00 63 B8 D0 D5 61 00 00 1E [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 03 00 D8 A1 00 90 00 ED [14:32:12]RAPDU: 90 00 [14:32:12]wFMCommunicate OK [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 0D 03 02 [14:32:12]Write to MH i2c: E2 08 00 D9 A1 80 0D 03 02 00 00 00 00 F5 [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 0B 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 0B 00 D9 A1 00 C1 0D B9 8B A7 D5 49 C7 90 00 94 [14:32:12]RAPDU: C1 0D B9 8B A7 D5 49 C7 90 00 [14:32:12]wFMCommunicate OK [14:32:12]SAM_PROTO_SignData done [14:32:12]FM_MakeSignedData done [14:32:12]CreateOFDProtocolMessage [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 11 00 00 [14:32:12]Write to MH i2c: E2 08 00 DA A1 80 11 00 00 00 00 00 00 F5 [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 17 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 17 00 DA A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [14:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:12]wFMCommunicate OK [14:32:12]CreateOFDProtocolMessage done [14:32:12]OFDSenderStorePacket 191443 [14:32:12]StoreOFDPacket docnum=191443 [14:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A1 8E 07 01 E7 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F4 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EB 02 00 35 04 06 00 00 63 B8 D0 D5 61 C1 0D B9 8B A7 D5 49 C7 [14:32:12]CheckFolder [14:32:12]dirname=/storage/ofd_packets [14:32:12]CheckFolder done [14:32:12]ProducePacketName [14:32:12]name=ofd_packets/00191443 [14:32:12]NVStorageSaveData ofd_packets/00191443 [14:32:12]File name is /storage/ofd_packets/00191443 [14:32:12]Write 301 bytes [14:32:12]NVStorageSaveData done [14:32:12]OFDSenderStorePacket done [14:32:12]KKMCreateOFDPacket done [14:32:12]NVStorageSaveData kkm_last_timestamp [14:32:12]File name is /storage/kkm_last_timestamp [14:32:12]Write 4 bytes [14:32:12]NVStorageSaveData done [14:32:12]ExternCall_PrintAddStr [14:32:12]wPrintStart [14:32:12]Write to MH i2c: 01 00 00 DB A1 7C [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: 01 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: 01 07 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: 01 07 00 DB A1 00 00 00 00 00 FF 0F 91 [14:32:12]RasterBufferAndPrint [14:32:12]line Счет N : (1)30738 [14:32:12]line ИНН: 02508201610067 [14:32:12]line Контрольно-Кассовый Чек [14:32:12]line ПРОДАЖА [14:32:12]line ТРК (МРК, ГНК) : 21 [14:32:12]line Товар: 2710124130 [14:32:12]line Аи-92-К-5 [14:32:12]line 2.990 * 66.90 [14:32:12]line = 200.03 [14:32:12]line НДС 12% НСП 1% [14:32:12]line > о реализуемом товаре [14:32:12]line ОКРУГЛЕНИЕ: -0.03 [14:32:12]line ИТОГО: 200.00 [14:32:12]line Внесено: 200.00 [14:32:12]line СДАЧА: 0.00 [14:32:12]line НСП 1% : 1.77 [14:32:12]line НДС 12% : 21.24 [14:32:12]line Наличными: 200.00 [14:32:12]line Безнал.: 0.00 [14:32:12]line Место: АЗС № 170 "Партнер Нефть" [14:32:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:32:12]line СНО: Общий режим [14:32:12]line Чек 182 25.10.2024 14:32 [14:32:12]line Смена: 540 ФФД: 1.0 [14:32:12]line ЗНМ: 0300000110 [14:32:12]line РНМ: 0000000000091776 [14:32:12]line Версия ККМ: 001 [14:32:12]line ФМ: 0000000000871754 [14:32:12]line ФД: 191443 [14:32:12]line ФПД: 428302456161 [14:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191443&fm=428302456161&tin=02508201610067®Number=0000000000091776&sum=20000 [14:32:13]OFD Sender: Processing packet 191443 [packets to send 75, broken 74] [14:32:13]ProducePacketName [14:32:13]name=ofd_packets/00191443 [14:32:13]OFD Sender: To server: pG, [14:32:13]CommunicateWithHost lk.salyk.kg:30040 [14:32:13]ConnectInit lk.salyk.kg [14:32:13]written 0, free lines is 4095 [14:32:13]Connected sock=10 [14:32:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A1 8E 07 01 E7 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F4 AB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EB 02 00 35 04 06 00 00 63 B8 D0 D5 61 C1 0D B9 8B A7 D5 49 C7 [14:32:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 82 47 00 8C F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EB 02 00 F4 03 04 00 C2 50 1B 67 B6 04 01 00 00 E1 F7 60 80 93 C9 5F A4 [14:32:13]CommunicateWithHost err = 0 [14:32:13]CheckOFDResponse [14:32:13]1017 (14) - 77093643461234 [14:32:13]1041 (16) - 0000000000871754 [14:32:13]1040 (4) - 191443 [14:32:13]1012 (4) - 25.10.2024 08:03 [14:32:13]1206 (1) - 0 [14:32:13]OFD Sender: Remove packet 191443 [14:32:13]ProducePacketName [14:32:13]name=ofd_packets/00191443 [14:32:13]NVStorageDeleteData [14:32:13]Write to MH i2c: 01 00 00 06 A2 A8 [14:32:13]Write i2c OK [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: 01 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: 01 07 00 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: 01 07 00 06 A2 00 00 00 00 00 BB 0C 76 [14:32:13]RasterBufferAndPrint [14:32:13]line [14:32:13]line [14:32:13]line [14:32:13]line [14:32:13]line [14:32:13]written 0, free lines is 3267 [14:32:13]MH_Cut [14:32:13]Write to MH i2c: D1 01 00 0D A2 01 81 [14:32:13]Write i2c OK [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: D1 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: D1 01 00 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: D1 01 00 0D A2 00 80 [14:32:13]Write to MH i2c: 01 00 00 0E A2 B0 [14:32:13]Write i2c OK [14:32:13]MH_I2C_Read... [14:32:14]OFD Sender: No OFD packet to send [14:32:14]*** Cut start [14:32:14]*** Partial cut [14:32:14]*** CUTSNS_PIN = 1 [14:32:14]*** CUTSNS_PIN = 0 [14:32:14]*** Brake cut motor [14:32:15]Read from MH i2c: 01 [14:32:15]MH_I2C_Read... [14:32:15]*** Stop cut motor [14:32:15]*** Cut end [14:32:15]Read from MH i2c: 01 07 00 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: 01 07 00 0E A2 00 00 00 00 00 FF 0F C5 [14:32:15]process_action close_receipt done [14:32:15]requested_data is exist [14:32:15]produce_requested_data [14:32:15]requested_item fm.sn is exist - process it [14:32:15]wFMCommunicate request_size=4 [14:32:15]MH_SAM_APDU [14:32:15]CAPDU: 80 11 00 00 [14:32:15]Write to MH i2c: E2 08 00 0F A2 80 11 00 00 00 00 00 00 2B [14:32:15]Write i2c OK [14:32:15]MH_I2C_Read... [14:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:15]Read from MH i2c: E2 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 17 00 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 17 00 0F A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [14:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:15]wFMCommunicate OK [14:32:15]requested_item fd.num is exist - process it [14:32:15]SAM_PROTO_GetFieldsCounters [14:32:15]wFMCommunicate request_size=4 [14:32:15]MH_SAM_APDU [14:32:15]CAPDU: 80 13 00 00 [14:32:15]Write to MH i2c: E2 08 00 10 A2 80 13 00 00 00 00 00 00 2E [14:32:15]Write i2c OK [14:32:15]MH_I2C_Read... [14:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:15]Read from MH i2c: E2 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 62 00 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 62 00 10 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [14:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:15]wFMCommunicate OK [14:32:15]SAM_PROTO_GetFieldsCounters done [14:32:15]requested_item shift.num is exist - process it [14:32:15]requested_item shift.opened is exist - process it [14:32:15]req_shift_opened [14:32:15]FM_GetShiftState [14:32:15]SAM_PROTO_GetShiftState [14:32:15]wFMCommunicate request_size=4 [14:32:15]MH_SAM_APDU [14:32:15]CAPDU: 80 13 01 00 [14:32:15]Write to MH i2c: E2 08 00 11 A2 80 13 01 00 00 00 00 00 30 [14:32:15]Write i2c OK [14:32:15]MH_I2C_Read... [14:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:15]Read from MH i2c: E2 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 0E 00 [14:32:15]MH_I2C_Read... [14:32:15]Read from MH i2c: E2 0E 00 11 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F3 [14:32:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:32:15]wFMCommunicate OK [14:32:15]SAM_PROTO_GetShiftState done [14:32:15]FM_GetShiftState done [14:32:15]req_shift_opened done [14:32:15]requested_item shift.open_date is exist - process it [14:32:15]req_shift_open_date [14:32:15]req_shift_open_date done [14:32:15]produce_requested_data done [14:32:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191443,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:32:15]process_action_free close_receipt [14:32:15]json_value_free [14:32:15]json_value_free done [14:32:15]process_json_proto returns [14:32:15]Send response to host [14:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191443,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:32:15]free response buf [14:32:15]execute_script done [14:32:15]execute_script returns [14:32:15]free content buf [14:32:15]Sock 8.Close socket [14:32:15]Sock 8.Thread stoped [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:23]accept exits with 9 [14:38:23]New connection [14:38:23]New thread 3066961252 created [14:38:23]Thread 3066817892 joined [14:38:23]Waiting for new connection... [14:38:23] Sock 9.Parse request [14:38:23]Sock 9.Check first char [14:38:23]Sock 9.First char is OK [14:38:23]request: POST /json_proto HTTP/1.0 [14:38:23]Method: POST [14:38:23]URL: /json_proto [14:38:23]Method is POST - this is cgi request [14:38:23]url: /json_proto [14:38:23]query_string will be loaded in cgi processing [14:38:23]execute_cgi json_proto POST (null) [14:38:23]execute_cgi path=json_proto method=POST [14:38:23]POST find Content-Length [14:38:23]Host: 172.17.63.131:8080 [14:38:23]Content-Length: 865 [14:38:23]Content-Type: application/json [14:38:23] [14:38:23]POST finish read [14:38:23]Found Content-Length = 865 [14:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:23]execute_script... [14:38:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:23]POST & json_proto [14:38:23]process_json_proto [14:38:23]json parsed OK: [14:38:23]protocol is kg_v1.0 [14:38:23]action value=close_receipt [14:38:23]process_action close_receipt [14:38:23]cmd_close_receipt [14:38:23]MH_GetDate [14:38:23]Write to MH i2c: F0 00 00 12 A2 A3 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 09 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: F0 09 00 12 A2 00 68 AD 1B 67 22 05 6E 64 3C [14:38:23]GetLastDocTimeStamp 1729866740 [14:38:23]current date 1729867112 [14:38:23]FM_GetShiftState [14:38:23]SAM_PROTO_GetShiftState [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 13 01 00 [14:38:23]Write to MH i2c: E2 08 00 13 A2 80 13 01 00 00 00 00 00 32 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 13 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F5 [14:38:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_GetShiftState done [14:38:23]FM_GetShiftState done [14:38:23]opened in 1729816399 [14:38:23]opened+sec_in_day 1729902799 [14:38:23]quantity*price = 100015 [14:38:23]sum+1 = 100017 [14:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 183 25.10.2024 14:38 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191444 ФПД: 6307133813460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191444&fm=6307133813460&tin=02508201610067®Number=0000000000091776&sum=100016 [14:38:24]StoreToDocumentArchive [14:38:24]shift 540 fd 191444 [14:38:24]save to /storage/0540/doc_00191444 [14:38:24]save last doc name /storage/0540/doc_00191444 to /storage/kkm_last_doc_name [14:38:24]save OK [14:38:24]Clear old archive folders... [14:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:24]tlvbuf is 015B0DA0 [14:38:24]SAM_PROTO_ClearQueue [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 09 00 00 [14:38:24]Write to MH i2c: E2 08 00 20 A2 80 09 00 00 00 00 00 00 34 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 20 A2 00 90 00 36 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]SAM_PROTO_ClearQueue done [14:38:24]KKMCreateOFDPacket [14:38:24]OFDProtocolAddRootSTLVToBuf [14:38:24]FM_MakeSignedData [14:38:24]FM_MakeSignedData [14:38:24]SAM_PROTO_SignData [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 01 02 [14:38:24]Write to MH i2c: E2 08 00 21 A2 80 0D 01 02 00 00 00 00 3C [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]OFD Sender: No OFD packet to send [14:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 21 A2 00 90 00 37 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=255 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 68 AD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EB 02 00 35 04 06 00 05 [14:38:24]Write to MH i2c: E2 02 01 22 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 68 AD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EB 02 00 35 04 06 00 05 00 00 1C [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 22 A2 00 90 00 38 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=10 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 02 02 05 BC 7E 78 72 D4 [14:38:24]Write to MH i2c: E2 0D 00 23 A2 80 0D 02 02 05 00 BC 7E 78 72 D4 00 00 41 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 23 A2 00 90 00 39 [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 03 02 [14:38:24]Write to MH i2c: E2 08 00 24 A2 80 0D 03 02 00 00 00 00 41 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 24 A2 00 2E 4B BB 1C A2 8B 8B 42 90 00 8C [14:38:24]RAPDU: 2E 4B BB 1C A2 8B 8B 42 90 00 [14:38:24]wFMCommunicate OK [14:38:24]SAM_PROTO_SignData done [14:38:24]FM_MakeSignedData done [14:38:24]CreateOFDProtocolMessage [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 11 00 00 [14:38:24]Write to MH i2c: E2 08 00 25 A2 80 11 00 00 00 00 00 00 41 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 25 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [14:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:24]wFMCommunicate OK [14:38:24]CreateOFDProtocolMessage done [14:38:24]OFDSenderStorePacket 191444 [14:38:24]StoreOFDPacket docnum=191444 [14:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 10 07 01 D7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 68 AD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EB 02 00 35 04 06 00 05 BC 7E 78 72 D4 2E 4B BB 1C A2 8B 8B 42 [14:38:24]CheckFolder [14:38:24]dirname=/storage/ofd_packets [14:38:24]CheckFolder done [14:38:24]ProducePacketName [14:38:24]name=ofd_packets/00191444 [14:38:24]NVStorageSaveData ofd_packets/00191444 [14:38:24]File name is /storage/ofd_packets/00191444 [14:38:24]Write 301 bytes [14:38:24]NVStorageSaveData done [14:38:24]OFDSenderStorePacket done [14:38:24]KKMCreateOFDPacket done [14:38:24]NVStorageSaveData kkm_last_timestamp [14:38:24]File name is /storage/kkm_last_timestamp [14:38:24]Write 4 bytes [14:38:24]NVStorageSaveData done [14:38:24]ExternCall_PrintAddStr [14:38:24]wPrintStart [14:38:24]Write to MH i2c: 01 00 00 26 A2 C8 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 26 A2 00 00 00 00 00 FF 0F DD [14:38:24]RasterBufferAndPrint [14:38:24]line Счет N : (1)30739 [14:38:24]line ИНН: 02508201610067 [14:38:24]line Контрольно-Кассовый Чек [14:38:24]line ПРОДАЖА [14:38:24]line ТРК (МРК, ГНК) : 12 [14:38:24]line Товар: 2710124130 [14:38:24]line Аи-92-К-5 [14:38:24]line 14.950 * 66.90 [14:38:24]line = 1000.16 [14:38:24]line НДС 12% НСП 1% [14:38:24]line > о реализуемом товаре [14:38:24]line ИТОГО: 1000.16 [14:38:24]line НСП 1% : 8.85 [14:38:24]line НДС 12% : 106.21 [14:38:24]line Наличными: 0.00 [14:38:24]line Безнал.: 1000.16 [14:38:24]line Место: АЗС № 170 "Партнер Нефть" [14:38:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:38:24]line СНО: Общий режим [14:38:24]line Чек 183 25.10.2024 14:38 [14:38:24]line Смена: 540 ФФД: 1.0 [14:38:24]line ЗНМ: 0300000110 [14:38:24]line РНМ: 0000000000091776 [14:38:24]line Версия ККМ: 001 [14:38:24]line Платежная система: Кыргызкоммерцбанк [14:38:24]line ФМ: 0000000000871754 [14:38:24]line ФД: 191444 [14:38:24]line ФПД: 6307133813460 [14:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191444&fm=6307133813460&tin=02508201610067®Number=0000000000091776&sum=100016 [14:38:25]OFD Sender: Processing packet 191444 [packets to send 75, broken 74] [14:38:25]ProducePacketName [14:38:25]name=ofd_packets/00191444 [14:38:25]OFD Sender: To server: pG, [14:38:25]CommunicateWithHost lk.salyk.kg:30040 [14:38:25]ConnectInit lk.salyk.kg [14:38:25]written 0, free lines is 4095 [14:38:25]Connected sock=10 [14:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 10 07 01 D7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 68 AD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EB 02 00 35 04 06 00 05 BC 7E 78 72 D4 2E 4B BB 1C A2 8B 8B 42 [14:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 E0 47 00 A3 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EB 02 00 F4 03 04 00 37 52 1B 67 B6 04 01 00 00 35 C6 70 AE 62 49 DC 73 [14:38:25]CommunicateWithHost err = 0 [14:38:25]CheckOFDResponse [14:38:25]1017 (14) - 77093643461234 [14:38:25]1041 (16) - 0000000000871754 [14:38:25]1040 (4) - 191444 [14:38:25]1012 (4) - 25.10.2024 08:09 [14:38:25]1206 (1) - 0 [14:38:25]OFD Sender: Remove packet 191444 [14:38:25]ProducePacketName [14:38:25]name=ofd_packets/00191444 [14:38:25]NVStorageDeleteData [14:38:25]Write to MH i2c: 01 00 00 50 A2 F2 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 50 A2 00 00 00 00 00 C6 0C CB [14:38:25]RasterBufferAndPrint [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]written 0, free lines is 3277 [14:38:25]MH_Cut [14:38:25]Write to MH i2c: D1 01 00 57 A2 01 CB [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 57 A2 00 CA [14:38:25]Write to MH i2c: 01 00 00 58 A2 FA [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:26]OFD Sender: No OFD packet to send [14:38:26]*** Cut start [14:38:26]*** Partial cut [14:38:26]*** CUTSNS_PIN = 1 [14:38:26]*** CUTSNS_PIN = 0 [14:38:26]*** Brake cut motor [14:38:27]Read from MH i2c: 01 [14:38:27]MH_I2C_Read... [14:38:27]*** Stop cut motor [14:38:27]*** Cut end [14:38:27]Read from MH i2c: 01 07 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: 01 07 00 58 A2 00 00 00 00 00 FF 0F 0F [14:38:27]process_action close_receipt done [14:38:27]requested_data is exist [14:38:27]produce_requested_data [14:38:27]requested_item fm.sn is exist - process it [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 11 00 00 [14:38:27]Write to MH i2c: E2 08 00 59 A2 80 11 00 00 00 00 00 00 75 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 17 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 17 00 59 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [14:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:27]wFMCommunicate OK [14:38:27]requested_item fd.num is exist - process it [14:38:27]SAM_PROTO_GetFieldsCounters [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 13 00 00 [14:38:27]Write to MH i2c: E2 08 00 5A A2 80 13 00 00 00 00 00 00 78 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 62 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 62 00 5A A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [14:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_GetFieldsCounters done [14:38:27]requested_item shift.num is exist - process it [14:38:27]requested_item shift.opened is exist - process it [14:38:27]req_shift_opened [14:38:27]FM_GetShiftState [14:38:27]SAM_PROTO_GetShiftState [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 13 01 00 [14:38:27]Write to MH i2c: E2 08 00 5B A2 80 13 01 00 00 00 00 00 7A [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0E 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0E 00 5B A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3D [14:38:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_GetShiftState done [14:38:27]FM_GetShiftState done [14:38:27]req_shift_opened done [14:38:27]requested_item shift.open_date is exist - process it [14:38:27]req_shift_open_date [14:38:27]req_shift_open_date done [14:38:27]produce_requested_data done [14:38:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191444,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:38:27]process_action_free close_receipt [14:38:27]json_value_free [14:38:27]json_value_free done [14:38:27]process_json_proto returns [14:38:27]Send response to host [14:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191444,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:38:27]free response buf [14:38:27]execute_script done [14:38:27]execute_script returns [14:38:27]free content buf [14:38:27]Sock 9.Close socket [14:38:27]Sock 9.Thread stoped [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:40:59]accept exits with 8 [14:40:59]New connection [14:40:59]New thread 3066817892 created [14:40:59]Thread 3066961252 joined [14:40:59]Waiting for new connection... [14:40:59] Sock 8.Parse request [14:40:59]Sock 8.Check first char [14:40:59]Sock 8.First char is OK [14:40:59]request: POST /json_proto HTTP/1.0 [14:40:59]Method: POST [14:40:59]URL: /json_proto [14:40:59]Method is POST - this is cgi request [14:40:59]url: /json_proto [14:40:59]query_string will be loaded in cgi processing [14:40:59]execute_cgi json_proto POST (null) [14:40:59]execute_cgi path=json_proto method=POST [14:40:59]POST find Content-Length [14:40:59]Host: 172.17.63.131:8080 [14:40:59]Content-Length: 676 [14:40:59]Content-Type: application/json [14:40:59] [14:40:59]POST finish read [14:40:59]Found Content-Length = 676 [14:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:59]execute_script... [14:40: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)30740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:59]POST & json_proto [14:40:59]process_json_proto [14:40:59]json parsed OK: [14:40:59]protocol is kg_v1.0 [14:40:59]action value=close_receipt [14:40:59]process_action close_receipt [14:40:59]cmd_close_receipt [14:40:59]MH_GetDate [14:40:59]Write to MH i2c: F0 00 00 5C A2 ED [14:40:59]Write i2c OK [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: F0 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: F0 09 00 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: F0 09 00 5C A2 00 04 AE 1B 67 22 05 6E 64 23 [14:40:59]GetLastDocTimeStamp 1729867112 [14:40:59]current date 1729867268 [14:40:59]FM_GetShiftState [14:40:59]SAM_PROTO_GetShiftState [14:40:59]wFMCommunicate request_size=4 [14:40:59]MH_SAM_APDU [14:40:59]CAPDU: 80 13 01 00 [14:40:59]Write to MH i2c: E2 08 00 5D A2 80 13 01 00 00 00 00 00 7C [14:40:59]Write i2c OK [14:40:59]MH_I2C_Read... [14:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:59]Read from MH i2c: E2 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: E2 0E 00 [14:40:59]MH_I2C_Read... [14:40:59]Read from MH i2c: E2 0E 00 5D A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3F [14:40:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:40:59]wFMCommunicate OK [14:40:59]SAM_PROTO_GetShiftState done [14:40:59]FM_GetShiftState done [14:40:59]opened in 1729816399 [14:40:59]opened+sec_in_day 1729902799 [14:40:59]quantity*price = 50041 [14:40:59]sum+1 = 50042 [14:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 184 25.10.2024 14:41 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191445 ФПД: 172359844794082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191445&fm=172359844794082&tin=02508201610067®Number=0000000000091776&sum=50000 [14:41:00]StoreToDocumentArchive [14:41:00]shift 540 fd 191445 [14:41:00]save to /storage/0540/doc_00191445 [14:41:00]save last doc name /storage/0540/doc_00191445 to /storage/kkm_last_doc_name [14:41:00]save OK [14:41:00]Clear old archive folders... [14:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:00]tlvbuf is 01830E10 [14:41:00]SAM_PROTO_ClearQueue [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 09 00 00 [14:41:00]Write to MH i2c: E2 08 00 6A A2 80 09 00 00 00 00 00 00 7E [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 6A A2 00 90 00 80 [14:41:00]RAPDU: 90 00 [14:41:00]wFMCommunicate OK [14:41:00]SAM_PROTO_ClearQueue done [14:41:00]KKMCreateOFDPacket [14:41:00]OFDProtocolAddRootSTLVToBuf [14:41:00]FM_MakeSignedData [14:41:00]FM_MakeSignedData [14:41:00]SAM_PROTO_SignData [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 0D 01 02 [14:41:00]Write to MH i2c: E2 08 00 6B A2 80 0D 01 02 00 00 00 00 86 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 6B A2 00 90 00 81 [14:41:00]RAPDU: 90 00 [14:41:00]wFMCommunicate OK [14:41:00]wFMCommunicate request_size=255 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 04 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EB 02 00 35 04 06 00 9C [14:41:00]Write to MH i2c: E2 02 01 6C A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 04 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EB 02 00 35 04 06 00 9C 00 00 82 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 6C A2 00 90 00 82 [14:41:00]RAPDU: 90 00 [14:41:00]wFMCommunicate OK [14:41:00]wFMCommunicate request_size=10 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 0D 02 02 05 C2 A7 52 8E E2 [14:41:00]Write to MH i2c: E2 0D 00 6D A2 80 0D 02 02 05 00 C2 A7 52 8E E2 00 00 BE [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 03 00 6D A2 00 90 00 83 [14:41:00]RAPDU: 90 00 [14:41:00]wFMCommunicate OK [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 0D 03 02 [14:41:00]Write to MH i2c: E2 08 00 6E A2 80 0D 03 02 00 00 00 00 8B [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0B 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0B 00 6E A2 00 E1 52 48 C4 A4 78 7F CA 90 00 30 [14:41:00]RAPDU: E1 52 48 C4 A4 78 7F CA 90 00 [14:41:00]wFMCommunicate OK [14:41:00]SAM_PROTO_SignData done [14:41:00]FM_MakeSignedData done [14:41:00]CreateOFDProtocolMessage [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 11 00 00 [14:41:00]Write to MH i2c: E2 08 00 6F A2 80 11 00 00 00 00 00 00 8B [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 17 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 17 00 6F A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [14:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:00]wFMCommunicate OK [14:41:00]CreateOFDProtocolMessage done [14:41:00]OFDSenderStorePacket 191445 [14:41:00]StoreOFDPacket docnum=191445 [14:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 0B 07 01 B3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 04 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EB 02 00 35 04 06 00 9C C2 A7 52 8E E2 E1 52 48 C4 A4 78 7F CA [14:41:00]CheckFolder [14:41:00]dirname=/storage/ofd_packets [14:41:00]CheckFolder done [14:41:00]ProducePacketName [14:41:00]name=ofd_packets/00191445 [14:41:00]NVStorageSaveData ofd_packets/00191445 [14:41:00]File name is /storage/ofd_packets/00191445 [14:41:00]Write 301 bytes [14:41:00]NVStorageSaveData done [14:41:00]OFDSenderStorePacket done [14:41:00]KKMCreateOFDPacket done [14:41:00]NVStorageSaveData kkm_last_timestamp [14:41:00]File name is /storage/kkm_last_timestamp [14:41:00]Write 4 bytes [14:41:00]NVStorageSaveData done [14:41:00]ExternCall_PrintAddStr [14:41:00]wPrintStart [14:41:00]Write to MH i2c: 01 00 00 70 A2 12 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: 01 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: 01 07 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: 01 07 00 70 A2 00 00 00 00 00 FF 0F 27 [14:41:00]RasterBufferAndPrint [14:41:00]line Счет N : (1)30740 [14:41:00]line ИНН: 02508201610067 [14:41:00]line Контрольно-Кассовый Чек [14:41:00]line ПРОДАЖА [14:41:00]line ТРК (МРК, ГНК) : 21 [14:41:00]line Товар: 2710124130 [14:41:00]line Аи-92-К-5 [14:41:00]line 7.480 * 66.90 [14:41:00]line = 500.41 [14:41:00]line НДС 12% НСП 1% [14:41:00]line > о реализуемом товаре [14:41:00]line ОКРУГЛЕНИЕ: -0.41 [14:41:00]line ИТОГО: 500.00 [14:41:00]line Внесено: 500.00 [14:41:00]line СДАЧА: 0.00 [14:41:00]line НСП 1% : 4.43 [14:41:00]line НДС 12% : 53.14 [14:41:00]line Наличными: 500.00 [14:41:00]line Безнал.: 0.00 [14:41:00]line Место: АЗС № 170 "Партнер Нефть" [14:41:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:00]line СНО: Общий режим [14:41:00]line Чек 184 25.10.2024 14:41 [14:41:00]line Смена: 540 ФФД: 1.0 [14:41:00]line ЗНМ: 0300000110 [14:41:00]line РНМ: 0000000000091776 [14:41:00]line Версия ККМ: 001 [14:41:00]line ФМ: 0000000000871754 [14:41:00]line ФД: 191445 [14:41:00]line ФПД: 172359844794082 [14:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191445&fm=172359844794082&tin=02508201610067®Number=0000000000091776&sum=50000 [14:41:01]OFD Sender: Processing packet 191445 [packets to send 75, broken 74] [14:41:01]ProducePacketName [14:41:01]name=ofd_packets/00191445 [14:41:01]OFD Sender: To server: pG, [14:41:01]CommunicateWithHost lk.salyk.kg:30040 [14:41:01]ConnectInit lk.salyk.kg [14:41:01]written 0, free lines is 4095 [14:41:01]Connected sock=10 [14:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 0B 07 01 B3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 04 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EB 02 00 35 04 06 00 9C C2 A7 52 8E E2 E1 52 48 C4 A4 78 7F CA [14:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 C3 47 00 DD 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EB 02 00 F4 03 04 00 D3 52 1B 67 B6 04 01 00 00 68 25 89 80 0D F5 5F B9 [14:41:01]CommunicateWithHost err = 0 [14:41:01]CheckOFDResponse [14:41:01]1017 (14) - 77093643461234 [14:41:01]1041 (16) - 0000000000871754 [14:41:01]1040 (4) - 191445 [14:41:01]1012 (4) - 25.10.2024 08:12 [14:41:01]1206 (1) - 0 [14:41:01]OFD Sender: Remove packet 191445 [14:41:01]ProducePacketName [14:41:01]name=ofd_packets/00191445 [14:41:01]NVStorageDeleteData [14:41:01]Write to MH i2c: 01 00 00 9B A2 3D [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: 01 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: 01 07 00 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: 01 07 00 9B A2 00 00 00 00 00 B7 0C 07 [14:41:01]RasterBufferAndPrint [14:41:01]line [14:41:01]line [14:41:01]line [14:41:01]line [14:41:01]line [14:41:01]written 0, free lines is 3266 [14:41:01]MH_Cut [14:41:01]Write to MH i2c: D1 01 00 A2 A2 01 16 [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: D1 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: D1 01 00 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: D1 01 00 A2 A2 00 15 [14:41:01]Write to MH i2c: 01 00 00 A3 A2 45 [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:02]OFD Sender: No OFD packet to send [14:41:02]*** Cut start [14:41:02]*** Partial cut [14:41:02]*** CUTSNS_PIN = 1 [14:41:02]*** CUTSNS_PIN = 0 [14:41:02]*** Brake cut motor [14:41:03]Read from MH i2c: 01 [14:41:03]MH_I2C_Read... [14:41:03]*** Stop cut motor [14:41:03]*** Cut end [14:41:03]Read from MH i2c: 01 07 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 A3 A2 00 00 00 00 00 FF 0F 5A [14:41:03]process_action close_receipt done [14:41:03]requested_data is exist [14:41:03]produce_requested_data [14:41:03]requested_item fm.sn is exist - process it [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 11 00 00 [14:41:03]Write to MH i2c: E2 08 00 A4 A2 80 11 00 00 00 00 00 00 C0 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 A4 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [14:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:03]wFMCommunicate OK [14:41:03]requested_item fd.num is exist - process it [14:41:03]SAM_PROTO_GetFieldsCounters [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 13 00 00 [14:41:03]Write to MH i2c: E2 08 00 A5 A2 80 13 00 00 00 00 00 00 C3 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 62 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 62 00 A5 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [14:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_GetFieldsCounters done [14:41:03]requested_item shift.num is exist - process it [14:41:03]requested_item shift.opened is exist - process it [14:41:03]req_shift_opened [14:41:03]FM_GetShiftState [14:41:03]SAM_PROTO_GetShiftState [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 13 01 00 [14:41:03]Write to MH i2c: E2 08 00 A6 A2 80 13 01 00 00 00 00 00 C5 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0E 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0E 00 A6 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 88 [14:41:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_GetShiftState done [14:41:03]FM_GetShiftState done [14:41:03]req_shift_opened done [14:41:03]requested_item shift.open_date is exist - process it [14:41:03]req_shift_open_date [14:41:03]req_shift_open_date done [14:41:03]produce_requested_data done [14:41:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191445,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:41:03]process_action_free close_receipt [14:41:03]json_value_free [14:41:03]json_value_free done [14:41:03]process_json_proto returns [14:41:03]Send response to host [14:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191445,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:41:03]free response buf [14:41:03]execute_script done [14:41:03]execute_script returns [14:41:03]free content buf [14:41:03]Sock 8.Close socket [14:41:03]Sock 8.Thread stoped [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:41:57]accept exits with 9 [14:41:57]New connection [14:41:57]New thread 3066961252 created [14:41:57]Thread 3066817892 joined [14:41:57]Waiting for new connection... [14:41:57] Sock 9.Parse request [14:41:57]Sock 9.Check first char [14:41:57]Sock 9.First char is OK [14:41:57]request: POST /json_proto HTTP/1.0 [14:41:57]Method: POST [14:41:57]URL: /json_proto [14:41:57]Method is POST - this is cgi request [14:41:57]url: /json_proto [14:41:57]query_string will be loaded in cgi processing [14:41:57]execute_cgi json_proto POST (null) [14:41:57]execute_cgi path=json_proto method=POST [14:41:57]POST find Content-Length [14:41:57]Host: 172.17.63.131:8080 [14:41:57]Content-Length: 676 [14:41:57]Content-Type: application/json [14:41:57] [14:41:57]POST finish read [14:41:57]Found Content-Length = 676 [14:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:57]execute_script... [14:41: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)30741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:57]POST & json_proto [14:41:57]process_json_proto [14:41:57]json parsed OK: [14:41:57]protocol is kg_v1.0 [14:41:57]action value=close_receipt [14:41:57]process_action close_receipt [14:41:57]cmd_close_receipt [14:41:57]MH_GetDate [14:41:57]Write to MH i2c: F0 00 00 A7 A2 38 [14:41:57]Write i2c OK [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 09 00 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 09 00 A7 A2 00 3F AE 1B 67 22 05 6E 64 A9 [14:41:57]GetLastDocTimeStamp 1729867268 [14:41:57]current date 1729867327 [14:41:57]FM_GetShiftState [14:41:57]SAM_PROTO_GetShiftState [14:41:57]wFMCommunicate request_size=4 [14:41:57]MH_SAM_APDU [14:41:57]CAPDU: 80 13 01 00 [14:41:57]Write to MH i2c: E2 08 00 A8 A2 80 13 01 00 00 00 00 00 C7 [14:41:57]Write i2c OK [14:41:57]MH_I2C_Read... [14:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:57]Read from MH i2c: E2 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: E2 0E 00 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: E2 0E 00 A8 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8A [14:41:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:41:57]wFMCommunicate OK [14:41:57]SAM_PROTO_GetShiftState done [14:41:57]FM_GetShiftState done [14:41:57]opened in 1729816399 [14:41:57]opened+sec_in_day 1729902799 [14:41:57]quantity*price = 50041 [14:41:57]sum+1 = 50042 [14:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 185 25.10.2024 14:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191446 ФПД: 145901512426779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191446&fm=145901512426779&tin=02508201610067®Number=0000000000091776&sum=50000 [14:41:59]StoreToDocumentArchive [14:41:59]shift 540 fd 191446 [14:41:59]save to /storage/0540/doc_00191446 [14:41:59]save last doc name /storage/0540/doc_00191446 to /storage/kkm_last_doc_name [14:41:59]save OK [14:41:59]Clear old archive folders... [14:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:59]tlvbuf is 0183C160 [14:41:59]SAM_PROTO_ClearQueue [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 09 00 00 [14:41:59]Write to MH i2c: E2 08 00 B5 A2 80 09 00 00 00 00 00 00 C9 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 B5 A2 00 90 00 CB [14:41:59]RAPDU: 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_ClearQueue done [14:41:59]KKMCreateOFDPacket [14:41:59]OFDProtocolAddRootSTLVToBuf [14:41:59]FM_MakeSignedData [14:41:59]FM_MakeSignedData [14:41:59]SAM_PROTO_SignData [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 0D 01 02 [14:41:59]Write to MH i2c: E2 08 00 B6 A2 80 0D 01 02 00 00 00 00 D1 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 B6 A2 00 90 00 CC [14:41:59]RAPDU: 90 00 [14:41:59]wFMCommunicate OK [14:41:59]wFMCommunicate request_size=255 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 3F AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EB 02 00 35 04 06 00 84 [14:41:59]Write to MH i2c: E2 02 01 B7 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 3F AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EB 02 00 35 04 06 00 84 00 00 F2 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 B7 A2 00 90 00 CD [14:41:59]RAPDU: 90 00 [14:41:59]wFMCommunicate OK [14:41:59]wFMCommunicate request_size=10 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 0D 02 02 05 B2 57 D2 05 1B [14:41:59]Write to MH i2c: E2 0D 00 B8 A2 80 0D 02 02 05 00 B2 57 D2 05 1B 00 00 D9 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 03 00 B8 A2 00 90 00 CE [14:41:59]RAPDU: 90 00 [14:41:59]wFMCommunicate OK [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 0D 03 02 [14:41:59]Write to MH i2c: E2 08 00 B9 A2 80 0D 03 02 00 00 00 00 D6 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0B 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0B 00 B9 A2 00 01 7E CD E4 28 1B 89 58 90 00 2B [14:41:59]RAPDU: 01 7E CD E4 28 1B 89 58 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_SignData done [14:41:59]FM_MakeSignedData done [14:41:59]CreateOFDProtocolMessage [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 11 00 00 [14:41:59]Write to MH i2c: E2 08 00 BA A2 80 11 00 00 00 00 00 00 D6 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 17 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 17 00 BA A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [14:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:59]wFMCommunicate OK [14:41:59]CreateOFDProtocolMessage done [14:41:59]OFDSenderStorePacket 191446 [14:41:59]StoreOFDPacket docnum=191446 [14:41:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 58 07 01 D8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 3F AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EB 02 00 35 04 06 00 84 B2 57 D2 05 1B 01 7E CD E4 28 1B 89 58 [14:41:59]CheckFolder [14:41:59]dirname=/storage/ofd_packets [14:41:59]CheckFolder done [14:41:59]ProducePacketName [14:41:59]name=ofd_packets/00191446 [14:41:59]NVStorageSaveData ofd_packets/00191446 [14:41:59]File name is /storage/ofd_packets/00191446 [14:41:59]Write 301 bytes [14:41:59]NVStorageSaveData done [14:41:59]OFDSenderStorePacket done [14:41:59]KKMCreateOFDPacket done [14:41:59]NVStorageSaveData kkm_last_timestamp [14:41:59]File name is /storage/kkm_last_timestamp [14:41:59]Write 4 bytes [14:41:59]NVStorageSaveData done [14:41:59]ExternCall_PrintAddStr [14:41:59]wPrintStart [14:41:59]Write to MH i2c: 01 00 00 BB A2 5D [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 BB A2 00 00 00 00 00 FF 0F 72 [14:41:59]RasterBufferAndPrint [14:41:59]line Счет N : (1)30741 [14:41:59]line ИНН: 02508201610067 [14:41:59]line Контрольно-Кассовый Чек [14:41:59]line ПРОДАЖА [14:41:59]line ТРК (МРК, ГНК) : 21 [14:41:59]line Товар: 2710124130 [14:41:59]line Аи-92-К-5 [14:41:59]line 7.480 * 66.90 [14:41:59]line = 500.41 [14:41:59]line НДС 12% НСП 1% [14:41:59]line > о реализуемом товаре [14:41:59]line ОКРУГЛЕНИЕ: -0.41 [14:41:59]line ИТОГО: 500.00 [14:41:59]line Внесено: 500.00 [14:41:59]line СДАЧА: 0.00 [14:41:59]line НСП 1% : 4.43 [14:41:59]line НДС 12% : 53.14 [14:41:59]line Наличными: 500.00 [14:41:59]line Безнал.: 0.00 [14:41:59]line Место: АЗС № 170 "Партнер Нефть" [14:41:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:59]line СНО: Общий режим [14:41:59]line Чек 185 25.10.2024 14:42 [14:41:59]line Смена: 540 ФФД: 1.0 [14:41:59]line ЗНМ: 0300000110 [14:41:59]line РНМ: 0000000000091776 [14:41:59]line Версия ККМ: 001 [14:41:59]line ФМ: 0000000000871754 [14:41:59]line ФД: 191446 [14:41:59]line ФПД: 145901512426779 [14:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191446&fm=145901512426779&tin=02508201610067®Number=0000000000091776&sum=50000 [14:41:59]OFD Sender: Processing packet 191446 [packets to send 75, broken 74] [14:41:59]ProducePacketName [14:41:59]name=ofd_packets/00191446 [14:41:59]OFD Sender: To server: pG, [14:41:59]CommunicateWithHost lk.salyk.kg:30040 [14:41:59]ConnectInit lk.salyk.kg [14:41:59]written 0, free lines is 4095 [14:42:00]Connected sock=10 [14:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 58 07 01 D8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 3F AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EB 02 00 35 04 06 00 84 B2 57 D2 05 1B 01 7E CD E4 28 1B 89 58 [14:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE B7 47 00 47 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EB 02 00 F4 03 04 00 0D 53 1B 67 B6 04 01 00 00 54 F7 15 0D 0C AC 17 C8 [14:42:00]CommunicateWithHost err = 0 [14:42:00]CheckOFDResponse [14:42:00]1017 (14) - 77093643461234 [14:42:00]1041 (16) - 0000000000871754 [14:42:00]1040 (4) - 191446 [14:42:00]1012 (4) - 25.10.2024 08:13 [14:42:00]1206 (1) - 0 [14:42:00]OFD Sender: Remove packet 191446 [14:42:00]ProducePacketName [14:42:00]name=ofd_packets/00191446 [14:42:00]NVStorageDeleteData [14:42:00]Write to MH i2c: 01 00 00 E6 A2 88 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: 01 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: 01 07 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: 01 07 00 E6 A2 00 00 00 00 00 B3 0C 4E [14:42:00]RasterBufferAndPrint [14:42:00]line [14:42:00]line [14:42:00]line [14:42:00]line [14:42:00]line [14:42:00]written 0, free lines is 3258 [14:42:00]MH_Cut [14:42:00]Write to MH i2c: D1 01 00 ED A2 01 61 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: D1 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: D1 01 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: D1 01 00 ED A2 00 60 [14:42:00]Write to MH i2c: 01 00 00 EE A2 90 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]OFD Sender: No OFD packet to send [14:42:01]*** Cut start [14:42:01]*** Partial cut [14:42:01]*** CUTSNS_PIN = 1 [14:42:01]*** CUTSNS_PIN = 0 [14:42:01]*** Brake cut motor [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]*** Stop cut motor [14:42:01]*** Cut end [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 EE A2 00 00 00 00 00 FF 0F A5 [14:42:01]process_action close_receipt done [14:42:01]requested_data is exist [14:42:01]produce_requested_data [14:42:01]requested_item fm.sn is exist - process it [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 11 00 00 [14:42:01]Write to MH i2c: E2 08 00 EF A2 80 11 00 00 00 00 00 00 0B [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 EF A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [14:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:42:01]wFMCommunicate OK [14:42:01]requested_item fd.num is exist - process it [14:42:01]SAM_PROTO_GetFieldsCounters [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 13 00 00 [14:42:01]Write to MH i2c: E2 08 00 F0 A2 80 13 00 00 00 00 00 00 0E [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 62 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 62 00 F0 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [14:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:02]wFMCommunicate OK [14:42:02]SAM_PROTO_GetFieldsCounters done [14:42:02]requested_item shift.num is exist - process it [14:42:02]requested_item shift.opened is exist - process it [14:42:02]req_shift_opened [14:42:02]FM_GetShiftState [14:42:02]SAM_PROTO_GetShiftState [14:42:02]wFMCommunicate request_size=4 [14:42:02]MH_SAM_APDU [14:42:02]CAPDU: 80 13 01 00 [14:42:02]Write to MH i2c: E2 08 00 F1 A2 80 13 01 00 00 00 00 00 10 [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:02]Read from MH i2c: E2 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 0E 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: E2 0E 00 F1 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D3 [14:42:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:42:02]wFMCommunicate OK [14:42:02]SAM_PROTO_GetShiftState done [14:42:02]FM_GetShiftState done [14:42:02]req_shift_opened done [14:42:02]requested_item shift.open_date is exist - process it [14:42:02]req_shift_open_date [14:42:02]req_shift_open_date done [14:42:02]produce_requested_data done [14:42:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191446,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:42:02]process_action_free close_receipt [14:42:02]json_value_free [14:42:02]json_value_free done [14:42:02]process_json_proto returns [14:42:02]Send response to host [14:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191446,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:42:02]free response buf [14:42:02]execute_script done [14:42:02]execute_script returns [14:42:02]free content buf [14:42:02]Sock 9.Close socket [14:42:02]Sock 9.Thread stoped [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:16]accept exits with 8 [14:42:16]New connection [14:42:16]New thread 3066817892 created [14:42:16]Thread 3066961252 joined [14:42:16]Waiting for new connection... [14:42:16] Sock 8.Parse request [14:42:16]Sock 8.Check first char [14:42:16]Sock 8.First char is OK [14:42:16]request: POST /json_proto HTTP/1.0 [14:42:16]Method: POST [14:42:16]URL: /json_proto [14:42:16]Method is POST - this is cgi request [14:42:16]url: /json_proto [14:42:16]query_string will be loaded in cgi processing [14:42:16]execute_cgi json_proto POST (null) [14:42:16]execute_cgi path=json_proto method=POST [14:42:16]POST find Content-Length [14:42:16]Host: 172.17.63.131:8080 [14:42:16]Content-Length: 676 [14:42:16]Content-Type: application/json [14:42:16] [14:42:16]POST finish read [14:42:16]Found Content-Length = 676 [14:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:16]execute_script... [14:42: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)30742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:16]POST & json_proto [14:42:16]process_json_proto [14:42:16]json parsed OK: [14:42:16]protocol is kg_v1.0 [14:42:16]action value=close_receipt [14:42:16]process_action close_receipt [14:42:16]cmd_close_receipt [14:42:16]MH_GetDate [14:42:16]Write to MH i2c: F0 00 00 F2 A2 83 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: F0 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: F0 09 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: F0 09 00 F2 A2 00 51 AE 1B 67 22 05 6E 64 06 [14:42:16]GetLastDocTimeStamp 1729867327 [14:42:16]current date 1729867345 [14:42:16]FM_GetShiftState [14:42:16]SAM_PROTO_GetShiftState [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 13 01 00 [14:42:16]Write to MH i2c: E2 08 00 F3 A2 80 13 01 00 00 00 00 00 12 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 F3 A2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D5 [14:42:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_GetShiftState done [14:42:16]FM_GetShiftState done [14:42:16]opened in 1729816399 [14:42:16]opened+sec_in_day 1729902799 [14:42:16]quantity*price = 20003 [14:42:16]sum+1 = 20004 [14:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 186 25.10.2024 14:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191447 ФПД: 62859280505005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191447&fm=62859280505005&tin=02508201610067®Number=0000000000091776&sum=20000 [14:42:17]StoreToDocumentArchive [14:42:17]shift 540 fd 191447 [14:42:17]save to /storage/0540/doc_00191447 [14:42:17]save last doc name /storage/0540/doc_00191447 to /storage/kkm_last_doc_name [14:42:17]save OK [14:42:17]Clear old archive folders... [14:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:17]tlvbuf is 01789FB0 [14:42:17]SAM_PROTO_ClearQueue [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 09 00 00 [14:42:17]Write to MH i2c: E2 08 00 00 A3 80 09 00 00 00 00 00 00 15 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 00 A3 00 90 00 17 [14:42:17]RAPDU: 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_ClearQueue done [14:42:17]KKMCreateOFDPacket [14:42:17]OFDProtocolAddRootSTLVToBuf [14:42:17]FM_MakeSignedData [14:42:17]FM_MakeSignedData [14:42:17]SAM_PROTO_SignData [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 0D 01 02 [14:42:17]Write to MH i2c: E2 08 00 01 A3 80 0D 01 02 00 00 00 00 1D [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 01 A3 00 90 00 18 [14:42:17]RAPDU: 90 00 [14:42:17]wFMCommunicate OK [14:42:17]wFMCommunicate request_size=255 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 51 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EB 02 00 35 04 06 00 39 [14:42:17]Write to MH i2c: E2 02 01 02 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 51 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EB 02 00 35 04 06 00 39 00 00 C9 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 02 A3 00 90 00 19 [14:42:17]RAPDU: 90 00 [14:42:17]wFMCommunicate OK [14:42:17]wFMCommunicate request_size=10 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 0D 02 02 05 2B 91 15 D8 AD [14:42:17]Write to MH i2c: E2 0D 00 03 A3 80 0D 02 02 05 00 2B 91 15 D8 AD 00 00 80 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 03 00 03 A3 00 90 00 1A [14:42:17]RAPDU: 90 00 [14:42:17]wFMCommunicate OK [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 0D 03 02 [14:42:17]Write to MH i2c: E2 08 00 04 A3 80 0D 03 02 00 00 00 00 22 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0B 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0B 00 04 A3 00 31 C1 32 B7 15 E7 45 26 90 00 65 [14:42:18]RAPDU: 31 C1 32 B7 15 E7 45 26 90 00 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_SignData done [14:42:18]FM_MakeSignedData done [14:42:18]CreateOFDProtocolMessage [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 11 00 00 [14:42:18]Write to MH i2c: E2 08 00 05 A3 80 11 00 00 00 00 00 00 22 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 17 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 17 00 05 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [14:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:42:18]wFMCommunicate OK [14:42:18]CreateOFDProtocolMessage done [14:42:18]OFDSenderStorePacket 191447 [14:42:18]StoreOFDPacket docnum=191447 [14:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD E0 07 01 87 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 51 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EB 02 00 35 04 06 00 39 2B 91 15 D8 AD 31 C1 32 B7 15 E7 45 26 [14:42:18]CheckFolder [14:42:18]dirname=/storage/ofd_packets [14:42:18]CheckFolder done [14:42:18]ProducePacketName [14:42:18]name=ofd_packets/00191447 [14:42:18]NVStorageSaveData ofd_packets/00191447 [14:42:18]File name is /storage/ofd_packets/00191447 [14:42:18]Write 301 bytes [14:42:18]NVStorageSaveData done [14:42:18]OFDSenderStorePacket done [14:42:18]KKMCreateOFDPacket done [14:42:18]NVStorageSaveData kkm_last_timestamp [14:42:18]File name is /storage/kkm_last_timestamp [14:42:18]Write 4 bytes [14:42:18]NVStorageSaveData done [14:42:18]ExternCall_PrintAddStr [14:42:18]wPrintStart [14:42:18]Write to MH i2c: 01 00 00 06 A3 A9 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 07 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 07 00 06 A3 00 00 00 00 00 FF 0F BE [14:42:18]RasterBufferAndPrint [14:42:18]line Счет N : (1)30742 [14:42:18]line ИНН: 02508201610067 [14:42:18]line Контрольно-Кассовый Чек [14:42:18]line ПРОДАЖА [14:42:18]line ТРК (МРК, ГНК) : 12 [14:42:18]line Товар: 2710124130 [14:42:18]line Аи-92-К-5 [14:42:18]line 2.990 * 66.90 [14:42:18]line = 200.03 [14:42:18]line НДС 12% НСП 1% [14:42:18]line > о реализуемом товаре [14:42:18]line ОКРУГЛЕНИЕ: -0.03 [14:42:18]line ИТОГО: 200.00 [14:42:18]line Внесено: 200.00 [14:42:18]line СДАЧА: 0.00 [14:42:18]line НСП 1% : 1.77 [14:42:18]line НДС 12% : 21.24 [14:42:18]line Наличными: 200.00 [14:42:18]line Безнал.: 0.00 [14:42:18]line Место: АЗС № 170 "Партнер Нефть" [14:42:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:42:18]line СНО: Общий режим [14:42:18]line Чек 186 25.10.2024 14:42 [14:42:18]line Смена: 540 ФФД: 1.0 [14:42:18]line ЗНМ: 0300000110 [14:42:18]line РНМ: 0000000000091776 [14:42:18]line Версия ККМ: 001 [14:42:18]line ФМ: 0000000000871754 [14:42:18]line ФД: 191447 [14:42:18]line ФПД: 62859280505005 [14:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191447&fm=62859280505005&tin=02508201610067®Number=0000000000091776&sum=20000 [14:42:18]written 0, free lines is 4095 [14:42:18]OFD Sender: Processing packet 191447 [packets to send 75, broken 74] [14:42:18]ProducePacketName [14:42:18]name=ofd_packets/00191447 [14:42:18]OFD Sender: To server: pG, [14:42:18]CommunicateWithHost lk.salyk.kg:30040 [14:42:18]ConnectInit lk.salyk.kg [14:42:18]Connected sock=11 [14:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD E0 07 01 87 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 51 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EB 02 00 35 04 06 00 39 2B 91 15 D8 AD 31 C1 32 B7 15 E7 45 26 [14:42:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 8D 47 00 1D F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EB 02 00 F4 03 04 00 1F 53 1B 67 B6 04 01 00 00 76 84 20 94 B9 9F C6 86 [14:42:18]CommunicateWithHost err = 0 [14:42:18]CheckOFDResponse [14:42:18]1017 (14) - 77093643461234 [14:42:18]1041 (16) - 0000000000871754 [14:42:18]1040 (4) - 191447 [14:42:18]1012 (4) - 25.10.2024 08:13 [14:42:18]1206 (1) - 0 [14:42:18]OFD Sender: Remove packet 191447 [14:42:18]ProducePacketName [14:42:18]name=ofd_packets/00191447 [14:42:18]NVStorageDeleteData [14:42:18]Write to MH i2c: 01 00 00 31 A3 D4 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 07 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 07 00 31 A3 00 00 00 00 00 AF 0C 96 [14:42:18]RasterBufferAndPrint [14:42:18]line [14:42:18]line [14:42:18]line [14:42:18]line [14:42:18]line [14:42:18]written 0, free lines is 3252 [14:42:18]MH_Cut [14:42:18]Write to MH i2c: D1 01 00 38 A3 01 AD [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: D1 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: D1 01 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: D1 01 00 38 A3 00 AC [14:42:18]Write to MH i2c: 01 00 00 39 A3 DC [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]OFD Sender: No OFD packet to send [14:42:19]*** Cut start [14:42:19]*** Partial cut [14:42:19]*** CUTSNS_PIN = 1 [14:42:19]*** CUTSNS_PIN = 0 [14:42:19]*** Brake cut motor [14:42:19]Read from MH i2c: 01 [14:42:19]MH_I2C_Read... [14:42:19]*** Stop cut motor [14:42:19]*** Cut end [14:42:19]Read from MH i2c: 01 07 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 39 A3 00 00 00 00 00 FF 0F F1 [14:42:19]process_action close_receipt done [14:42:19]requested_data is exist [14:42:19]produce_requested_data [14:42:19]requested_item fm.sn is exist - process it [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 11 00 00 [14:42:19]Write to MH i2c: E2 08 00 3A A3 80 11 00 00 00 00 00 00 57 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:20]Read from MH i2c: E2 17 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 17 00 3A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [14:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:42:20]wFMCommunicate OK [14:42:20]requested_item fd.num is exist - process it [14:42:20]SAM_PROTO_GetFieldsCounters [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 13 00 00 [14:42:20]Write to MH i2c: E2 08 00 3B A3 80 13 00 00 00 00 00 00 5A [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 62 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 62 00 3B A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [14:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:20]wFMCommunicate OK [14:42:20]SAM_PROTO_GetFieldsCounters done [14:42:20]requested_item shift.num is exist - process it [14:42:20]requested_item shift.opened is exist - process it [14:42:20]req_shift_opened [14:42:20]FM_GetShiftState [14:42:20]SAM_PROTO_GetShiftState [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 13 01 00 [14:42:20]Write to MH i2c: E2 08 00 3C A3 80 13 01 00 00 00 00 00 5C [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 3C A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1F [14:42:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:42:20]wFMCommunicate OK [14:42:20]SAM_PROTO_GetShiftState done [14:42:20]FM_GetShiftState done [14:42:20]req_shift_opened done [14:42:20]requested_item shift.open_date is exist - process it [14:42:20]req_shift_open_date [14:42:20]req_shift_open_date done [14:42:20]produce_requested_data done [14:42:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191447,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:42:20]process_action_free close_receipt [14:42:20]json_value_free [14:42:20]json_value_free done [14:42:20]process_json_proto returns [14:42:20]Send response to host [14:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191447,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:42:20]free response buf [14:42:20]execute_script done [14:42:20]execute_script returns [14:42:20]free content buf [14:42:20]Sock 8.Close socket [14:42:20]Sock 8.Thread stoped [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:55]accept exits with 9 [14:43:55]New connection [14:43:55]New thread 3066961252 created [14:43:55]Thread 3066817892 joined [14:43:55]Waiting for new connection... [14:43:55] Sock 9.Parse request [14:43:55]Sock 9.Check first char [14:43:55]Sock 9.First char is OK [14:43:55]request: POST /json_proto HTTP/1.0 [14:43:55]Method: POST [14:43:55]URL: /json_proto [14:43:55]Method is POST - this is cgi request [14:43:55]url: /json_proto [14:43:55]query_string will be loaded in cgi processing [14:43:55]execute_cgi json_proto POST (null) [14:43:55]execute_cgi path=json_proto method=POST [14:43:55]POST find Content-Length [14:43:55]Host: 172.17.63.131:8080 [14:43:55]Content-Length: 676 [14:43:55]Content-Type: application/json [14:43:55] [14:43:55]POST finish read [14:43:55]Found Content-Length = 676 [14:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:55]execute_script... [14:43: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)30743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:55]POST & json_proto [14:43:55]process_json_proto [14:43:55]json parsed OK: [14:43:55]protocol is kg_v1.0 [14:43:55]action value=close_receipt [14:43:55]process_action close_receipt [14:43:55]cmd_close_receipt [14:43:55]MH_GetDate [14:43:55]Write to MH i2c: F0 00 00 3D A3 CF [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: F0 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: F0 09 00 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: F0 09 00 3D A3 00 B5 AE 1B 67 22 05 6E 64 B6 [14:43:55]GetLastDocTimeStamp 1729867345 [14:43:55]current date 1729867445 [14:43:55]FM_GetShiftState [14:43:55]SAM_PROTO_GetShiftState [14:43:55]wFMCommunicate request_size=4 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 13 01 00 [14:43:55]Write to MH i2c: E2 08 00 3E A3 80 13 01 00 00 00 00 00 5E [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:55]Read from MH i2c: E2 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 0E 00 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 0E 00 3E A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 21 [14:43:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:43:55]wFMCommunicate OK [14:43:55]SAM_PROTO_GetShiftState done [14:43:55]FM_GetShiftState done [14:43:55]opened in 1729816399 [14:43:55]opened+sec_in_day 1729902799 [14:43:55]quantity*price = 30038 [14:43:55]sum+1 = 30039 [14:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 187 25.10.2024 14:44 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191448 ФПД: 242348948661996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191448&fm=242348948661996&tin=02508201610067®Number=0000000000091776&sum=30000 [14:43:57]StoreToDocumentArchive [14:43:57]shift 540 fd 191448 [14:43:57]save to /storage/0540/doc_00191448 [14:43:57]save last doc name /storage/0540/doc_00191448 to /storage/kkm_last_doc_name [14:43:57]save OK [14:43:57]Clear old archive folders... [14:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:57]tlvbuf is 015D8940 [14:43:57]SAM_PROTO_ClearQueue [14:43:57]wFMCommunicate request_size=4 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 09 00 00 [14:43:57]Write to MH i2c: E2 08 00 4B A3 80 09 00 00 00 00 00 00 60 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 4B A3 00 90 00 62 [14:43:57]RAPDU: 90 00 [14:43:57]wFMCommunicate OK [14:43:57]SAM_PROTO_ClearQueue done [14:43:57]KKMCreateOFDPacket [14:43:57]OFDProtocolAddRootSTLVToBuf [14:43:57]FM_MakeSignedData [14:43:57]FM_MakeSignedData [14:43:57]SAM_PROTO_SignData [14:43:57]wFMCommunicate request_size=4 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 0D 01 02 [14:43:57]Write to MH i2c: E2 08 00 4C A3 80 0D 01 02 00 00 00 00 68 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 4C A3 00 90 00 63 [14:43:57]RAPDU: 90 00 [14:43:57]wFMCommunicate OK [14:43:57]wFMCommunicate request_size=255 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B5 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EB 02 00 35 04 06 00 DC [14:43:57]Write to MH i2c: E2 02 01 4D A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B5 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EB 02 00 35 04 06 00 DC 00 00 4F [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 4D A3 00 90 00 64 [14:43:57]RAPDU: 90 00 [14:43:57]wFMCommunicate OK [14:43:57]wFMCommunicate request_size=10 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 0D 02 02 05 6A 42 FF 26 EC [14:43:57]Write to MH i2c: E2 0D 00 4E A3 80 0D 02 02 05 00 6A 42 FF 26 EC 00 00 32 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 03 00 4E A3 00 90 00 65 [14:43:57]RAPDU: 90 00 [14:43:57]wFMCommunicate OK [14:43:57]wFMCommunicate request_size=4 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 0D 03 02 [14:43:57]Write to MH i2c: E2 08 00 4F A3 80 0D 03 02 00 00 00 00 6D [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 0B 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 0B 00 4F A3 00 BA FC 0B C6 2C 8C AC 5A 90 00 B3 [14:43:57]RAPDU: BA FC 0B C6 2C 8C AC 5A 90 00 [14:43:57]wFMCommunicate OK [14:43:57]SAM_PROTO_SignData done [14:43:57]FM_MakeSignedData done [14:43:57]CreateOFDProtocolMessage [14:43:57]wFMCommunicate request_size=4 [14:43:57]MH_SAM_APDU [14:43:57]CAPDU: 80 11 00 00 [14:43:57]Write to MH i2c: E2 08 00 50 A3 80 11 00 00 00 00 00 00 6D [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:57]Read from MH i2c: E2 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 17 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: E2 17 00 50 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [14:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:57]wFMCommunicate OK [14:43:57]CreateOFDProtocolMessage done [14:43:57]OFDSenderStorePacket 191448 [14:43:57]StoreOFDPacket docnum=191448 [14:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 86 07 01 F4 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B5 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EB 02 00 35 04 06 00 DC 6A 42 FF 26 EC BA FC 0B C6 2C 8C AC 5A [14:43:57]CheckFolder [14:43:57]dirname=/storage/ofd_packets [14:43:57]CheckFolder done [14:43:57]ProducePacketName [14:43:57]name=ofd_packets/00191448 [14:43:57]NVStorageSaveData ofd_packets/00191448 [14:43:57]File name is /storage/ofd_packets/00191448 [14:43:57]Write 301 bytes [14:43:57]NVStorageSaveData done [14:43:57]OFDSenderStorePacket done [14:43:57]KKMCreateOFDPacket done [14:43:57]NVStorageSaveData kkm_last_timestamp [14:43:57]File name is /storage/kkm_last_timestamp [14:43:57]Write 4 bytes [14:43:57]NVStorageSaveData done [14:43:57]ExternCall_PrintAddStr [14:43:57]wPrintStart [14:43:57]Write to MH i2c: 01 00 00 51 A3 F4 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 07 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 07 00 51 A3 00 00 00 00 00 FF 0F 09 [14:43:57]RasterBufferAndPrint [14:43:57]line Счет N : (1)30743 [14:43:57]line ИНН: 02508201610067 [14:43:57]line Контрольно-Кассовый Чек [14:43:57]line ПРОДАЖА [14:43:57]line ТРК (МРК, ГНК) : 12 [14:43:57]line Товар: 2710124130 [14:43:57]line Аи-92-К-5 [14:43:57]line 4.490 * 66.90 [14:43:57]line = 300.38 [14:43:57]line НДС 12% НСП 1% [14:43:57]line > о реализуемом товаре [14:43:57]line ОКРУГЛЕНИЕ: -0.38 [14:43:57]line ИТОГО: 300.00 [14:43:57]line Внесено: 300.00 [14:43:57]line СДАЧА: 0.00 [14:43:57]line НСП 1% : 2.66 [14:43:57]line НДС 12% : 31.90 [14:43:57]line Наличными: 300.00 [14:43:57]line Безнал.: 0.00 [14:43:57]line Место: АЗС № 170 "Партнер Нефть" [14:43:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:43:57]line СНО: Общий режим [14:43:57]line Чек 187 25.10.2024 14:44 [14:43:57]line Смена: 540 ФФД: 1.0 [14:43:57]line ЗНМ: 0300000110 [14:43:57]line РНМ: 0000000000091776 [14:43:57]line Версия ККМ: 001 [14:43:57]line ФМ: 0000000000871754 [14:43:57]line ФД: 191448 [14:43:57]line ФПД: 242348948661996 [14:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191448&fm=242348948661996&tin=02508201610067®Number=0000000000091776&sum=30000 [14:43:57]OFD Sender: Processing packet 191448 [packets to send 75, broken 74] [14:43:57]ProducePacketName [14:43:57]name=ofd_packets/00191448 [14:43:57]OFD Sender: To server: pG, [14:43:57]CommunicateWithHost lk.salyk.kg:30040 [14:43:57]ConnectInit lk.salyk.kg [14:43:57]written 0, free lines is 4095 [14:43:58]Connected sock=10 [14:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 86 07 01 F4 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B5 AE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EB 02 00 35 04 06 00 DC 6A 42 FF 26 EC BA FC 0B C6 2C 8C AC 5A [14:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 8F 47 00 D1 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EB 02 00 F4 03 04 00 83 53 1B 67 B6 04 01 00 00 FE F7 CB 89 85 1C B7 8F [14:43:58]CommunicateWithHost err = 0 [14:43:58]CheckOFDResponse [14:43:58]1017 (14) - 77093643461234 [14:43:58]1041 (16) - 0000000000871754 [14:43:58]1040 (4) - 191448 [14:43:58]1012 (4) - 25.10.2024 08:14 [14:43:58]1206 (1) - 0 [14:43:58]OFD Sender: Remove packet 191448 [14:43:58]ProducePacketName [14:43:58]name=ofd_packets/00191448 [14:43:58]NVStorageDeleteData [14:43:58]Write to MH i2c: 01 00 00 7C A3 1F [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: 01 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: 01 07 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: 01 07 00 7C A3 00 00 00 00 00 B3 0C E5 [14:43:58]RasterBufferAndPrint [14:43:58]line [14:43:58]line [14:43:58]line [14:43:58]line [14:43:58]line [14:43:58]written 0, free lines is 3258 [14:43:58]MH_Cut [14:43:58]Write to MH i2c: D1 01 00 83 A3 01 F8 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: D1 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: D1 01 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: D1 01 00 83 A3 00 F7 [14:43:58]Write to MH i2c: 01 00 00 84 A3 27 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]OFD Sender: No OFD packet to send [14:43:59]*** Cut start [14:43:59]*** Partial cut [14:43:59]*** CUTSNS_PIN = 1 [14:43:59]*** CUTSNS_PIN = 0 [14:43:59]*** Brake cut motor [14:43:59]Read from MH i2c: 01 [14:43:59]MH_I2C_Read... [14:43:59]*** Stop cut motor [14:43:59]*** Cut end [14:43:59]Read from MH i2c: 01 07 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: 01 07 00 84 A3 00 00 00 00 00 FF 0F 3C [14:43:59]process_action close_receipt done [14:43:59]requested_data is exist [14:43:59]produce_requested_data [14:43:59]requested_item fm.sn is exist - process it [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 11 00 00 [14:43:59]Write to MH i2c: E2 08 00 85 A3 80 11 00 00 00 00 00 00 A2 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 17 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 17 00 85 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [14:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:59]wFMCommunicate OK [14:43:59]requested_item fd.num is exist - process it [14:43:59]SAM_PROTO_GetFieldsCounters [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 13 00 00 [14:43:59]Write to MH i2c: E2 08 00 86 A3 80 13 00 00 00 00 00 00 A5 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 62 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 62 00 86 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [14:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:00]wFMCommunicate OK [14:44:00]SAM_PROTO_GetFieldsCounters done [14:44:00]requested_item shift.num is exist - process it [14:44:00]requested_item shift.opened is exist - process it [14:44:00]req_shift_opened [14:44:00]FM_GetShiftState [14:44:00]SAM_PROTO_GetShiftState [14:44:00]wFMCommunicate request_size=4 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 13 01 00 [14:44:00]Write to MH i2c: E2 08 00 87 A3 80 13 01 00 00 00 00 00 A7 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0E 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0E 00 87 A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6A [14:44:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:44:00]wFMCommunicate OK [14:44:00]SAM_PROTO_GetShiftState done [14:44:00]FM_GetShiftState done [14:44:00]req_shift_opened done [14:44:00]requested_item shift.open_date is exist - process it [14:44:00]req_shift_open_date [14:44:00]req_shift_open_date done [14:44:00]produce_requested_data done [14:44:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191448,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:44:00]process_action_free close_receipt [14:44:00]json_value_free [14:44:00]json_value_free done [14:44:00]process_json_proto returns [14:44:00]Send response to host [14:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191448,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:44:00]free response buf [14:44:00]execute_script done [14:44:00]execute_script returns [14:44:00]free content buf [14:44:00]Sock 9.Close socket [14:44:00]Sock 9.Thread stoped [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:43]accept exits with 8 [14:50:43]New connection [14:50:43]New thread 3066817892 created [14:50:43]Thread 3066961252 joined [14:50:43]Waiting for new connection... [14:50:43] Sock 8.Parse request [14:50:43]Sock 8.Check first char [14:50:43]Sock 8.First char is OK [14:50:43]request: POST /json_proto HTTP/1.0 [14:50:43]Method: POST [14:50:43]URL: /json_proto [14:50:43]Method is POST - this is cgi request [14:50:43]url: /json_proto [14:50:43]query_string will be loaded in cgi processing [14:50:43]execute_cgi json_proto POST (null) [14:50:43]execute_cgi path=json_proto method=POST [14:50:43]POST find Content-Length [14:50:43]Host: 172.17.63.131:8080 [14:50:43]Content-Length: 673 [14:50:43]Content-Type: application/json [14:50:43] [14:50:43]POST finish read [14:50:43]Found Content-Length = 673 [14:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:50:43]execute_script... [14:50: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)30744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:50:43]POST & json_proto [14:50:43]process_json_proto [14:50:43]json parsed OK: [14:50:43]protocol is kg_v1.0 [14:50:43]action value=close_receipt [14:50:43]process_action close_receipt [14:50:43]cmd_close_receipt [14:50:43]MH_GetDate [14:50:43]Write to MH i2c: F0 00 00 88 A3 1A [14:50:43]Write i2c OK [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: F0 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: F0 09 00 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: F0 09 00 88 A3 00 4D B0 1B 67 22 05 6E 64 9B [14:50:43]GetLastDocTimeStamp 1729867445 [14:50:43]current date 1729867853 [14:50:43]FM_GetShiftState [14:50:43]SAM_PROTO_GetShiftState [14:50:43]wFMCommunicate request_size=4 [14:50:43]MH_SAM_APDU [14:50:43]CAPDU: 80 13 01 00 [14:50:43]Write to MH i2c: E2 08 00 89 A3 80 13 01 00 00 00 00 00 A9 [14:50:43]Write i2c OK [14:50:43]MH_I2C_Read... [14:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:43]Read from MH i2c: E2 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: E2 0E 00 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: E2 0E 00 89 A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6C [14:50:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:50:43]wFMCommunicate OK [14:50:43]SAM_PROTO_GetShiftState done [14:50:43]FM_GetShiftState done [14:50:43]opened in 1729816399 [14:50:43]opened+sec_in_day 1729902799 [14:50:43]quantity*price = 65074 [14:50:43]sum+1 = 65076 [14:50: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 188 25.10.2024 14:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191449 ФПД: 107248140911848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191449&fm=107248140911848&tin=02508201610067®Number=0000000000091776&sum=65000 [14:50:45]StoreToDocumentArchive [14:50:45]shift 540 fd 191449 [14:50:45]save to /storage/0540/doc_00191449 [14:50:45]save last doc name /storage/0540/doc_00191449 to /storage/kkm_last_doc_name [14:50:45]save OK [14:50:45]Clear old archive folders... [14:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:45]tlvbuf is 019551C0 [14:50:45]SAM_PROTO_ClearQueue [14:50:45]wFMCommunicate request_size=4 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 09 00 00 [14:50:45]Write to MH i2c: E2 08 00 96 A3 80 09 00 00 00 00 00 00 AB [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 96 A3 00 90 00 AD [14:50:45]RAPDU: 90 00 [14:50:45]wFMCommunicate OK [14:50:45]SAM_PROTO_ClearQueue done [14:50:45]KKMCreateOFDPacket [14:50:45]OFDProtocolAddRootSTLVToBuf [14:50:45]FM_MakeSignedData [14:50:45]FM_MakeSignedData [14:50:45]SAM_PROTO_SignData [14:50:45]wFMCommunicate request_size=4 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 0D 01 02 [14:50:45]Write to MH i2c: E2 08 00 97 A3 80 0D 01 02 00 00 00 00 B3 [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 97 A3 00 90 00 AE [14:50:45]RAPDU: 90 00 [14:50:45]wFMCommunicate OK [14:50:45]wFMCommunicate request_size=255 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 4D B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EB 02 00 35 04 06 00 61 8A A7 57 [14:50:45]Write to MH i2c: E2 02 01 98 A3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 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 BC 00 00 00 F4 03 04 00 4D B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EB 02 00 35 04 06 00 61 8A A7 57 00 00 D1 [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 98 A3 00 90 00 AF [14:50:45]RAPDU: 90 00 [14:50:45]wFMCommunicate OK [14:50:45]wFMCommunicate request_size=7 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 0D 02 02 02 84 E8 [14:50:45]Write to MH i2c: E2 0A 00 99 A3 80 0D 02 02 02 00 84 E8 00 00 26 [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 03 00 99 A3 00 90 00 B0 [14:50:45]RAPDU: 90 00 [14:50:45]wFMCommunicate OK [14:50:45]wFMCommunicate request_size=4 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 0D 03 02 [14:50:45]Write to MH i2c: E2 08 00 9A A3 80 0D 03 02 00 00 00 00 B8 [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0B 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0B 00 9A A3 00 77 B9 DB 34 D3 7A 3F E7 90 00 6B [14:50:45]RAPDU: 77 B9 DB 34 D3 7A 3F E7 90 00 [14:50:45]wFMCommunicate OK [14:50:45]SAM_PROTO_SignData done [14:50:45]FM_MakeSignedData done [14:50:45]CreateOFDProtocolMessage [14:50:45]wFMCommunicate request_size=4 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 11 00 00 [14:50:45]Write to MH i2c: E2 08 00 9B A3 80 11 00 00 00 00 00 00 B8 [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 17 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 17 00 9B A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [14:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:45]wFMCommunicate OK [14:50:45]CreateOFDProtocolMessage done [14:50:45]OFDSenderStorePacket 191449 [14:50:45]StoreOFDPacket docnum=191449 [14:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FB 6C 04 01 A1 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 4D B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EB 02 00 35 04 06 00 61 8A A7 57 84 E8 77 B9 DB 34 D3 7A 3F E7 [14:50:45]CheckFolder [14:50:45]dirname=/storage/ofd_packets [14:50:45]CheckFolder done [14:50:45]ProducePacketName [14:50:45]name=ofd_packets/00191449 [14:50:45]NVStorageSaveData ofd_packets/00191449 [14:50:45]File name is /storage/ofd_packets/00191449 [14:50:45]Write 298 bytes [14:50:45]NVStorageSaveData done [14:50:45]OFDSenderStorePacket done [14:50:45]KKMCreateOFDPacket done [14:50:45]NVStorageSaveData kkm_last_timestamp [14:50:45]File name is /storage/kkm_last_timestamp [14:50:45]Write 4 bytes [14:50:45]NVStorageSaveData done [14:50:45]ExternCall_PrintAddStr [14:50:45]wPrintStart [14:50:45]Write to MH i2c: 01 00 00 9C A3 3F [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 07 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 07 00 9C A3 00 00 00 00 00 FF 0F 54 [14:50:45]RasterBufferAndPrint [14:50:45]line Счет N : (1)30744 [14:50:45]line ИНН: 02508201610067 [14:50:45]line Контрольно-Кассовый Чек [14:50:45]line ПРОДАЖА [14:50:45]line ТРК (МРК, ГНК) : 22 [14:50:45]line Товар: 2710194210 [14:50:45]line ДТ-К-5 [14:50:45]line 8.540 * 76.20 [14:50:45]line = 650.75 [14:50:45]line НДС 12% НСП 1% [14:50:45]line > о реализуемом товаре [14:50:45]line ОКРУГЛЕНИЕ: -0.75 [14:50:45]line ИТОГО: 650.00 [14:50:45]line Внесено: 650.00 [14:50:45]line СДАЧА: 0.00 [14:50:45]line НСП 1% : 5.76 [14:50:45]line НДС 12% : 69.11 [14:50:45]line Наличными: 650.00 [14:50:45]line Безнал.: 0.00 [14:50:45]line Место: АЗС № 170 "Партнер Нефть" [14:50:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:50:45]line СНО: Общий режим [14:50:45]line Чек 188 25.10.2024 14:50 [14:50:45]line Смена: 540 ФФД: 1.0 [14:50:45]line ЗНМ: 0300000110 [14:50:45]line РНМ: 0000000000091776 [14:50:45]line Версия ККМ: 001 [14:50:45]line ФМ: 0000000000871754 [14:50:45]line ФД: 191449 [14:50:45]line ФПД: 107248140911848 [14:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191449&fm=107248140911848&tin=02508201610067®Number=0000000000091776&sum=65000 [14:50:45]OFD Sender: Processing packet 191449 [packets to send 75, broken 74] [14:50:45]ProducePacketName [14:50:45]name=ofd_packets/00191449 [14:50:45]OFD Sender: To server: pG, [14:50:45]CommunicateWithHost lk.salyk.kg:30040 [14:50:45]ConnectInit lk.salyk.kg [14:50:45]written 0, free lines is 4095 [14:50:46]Connected sock=10 [14:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FB 6C 04 01 A1 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 4D B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EB 02 00 35 04 06 00 61 8A A7 57 84 E8 77 B9 DB 34 D3 7A 3F E7 [14:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 CF 47 00 62 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EB 02 00 F4 03 04 00 1B 55 1B 67 B6 04 01 00 00 59 15 DD D2 FD 60 96 FC [14:50:46]CommunicateWithHost err = 0 [14:50:46]CheckOFDResponse [14:50:46]1017 (14) - 77093643461234 [14:50:46]1041 (16) - 0000000000871754 [14:50:46]1040 (4) - 191449 [14:50:46]1012 (4) - 25.10.2024 08:21 [14:50:46]1206 (1) - 0 [14:50:46]OFD Sender: Remove packet 191449 [14:50:46]ProducePacketName [14:50:46]name=ofd_packets/00191449 [14:50:46]NVStorageDeleteData [14:50:46]Write to MH i2c: 01 00 00 C7 A3 6A [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 07 00 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 07 00 C7 A3 00 00 00 00 00 B5 0C 32 [14:50:46]RasterBufferAndPrint [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]written 0, free lines is 3259 [14:50:46]MH_Cut [14:50:46]Write to MH i2c: D1 01 00 CE A3 01 43 [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 01 00 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 01 00 CE A3 00 42 [14:50:46]Write to MH i2c: 01 00 00 CF A3 72 [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]OFD Sender: No OFD packet to send [14:50:47]*** Cut start [14:50:47]*** Partial cut [14:50:47]*** CUTSNS_PIN = 1 [14:50:47]*** CUTSNS_PIN = 0 [14:50:47]*** Brake cut motor [14:50:47]Read from MH i2c: 01 [14:50:47]MH_I2C_Read... [14:50:47]*** Stop cut motor [14:50:47]*** Cut end [14:50:47]Read from MH i2c: 01 07 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: 01 07 00 CF A3 00 00 00 00 00 FF 0F 87 [14:50:47]process_action close_receipt done [14:50:47]requested_data is exist [14:50:47]produce_requested_data [14:50:47]requested_item fm.sn is exist - process it [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 11 00 00 [14:50:47]Write to MH i2c: E2 08 00 D0 A3 80 11 00 00 00 00 00 00 ED [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 17 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 17 00 D0 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [14:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:47]wFMCommunicate OK [14:50:47]requested_item fd.num is exist - process it [14:50:47]SAM_PROTO_GetFieldsCounters [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 13 00 00 [14:50:47]Write to MH i2c: E2 08 00 D1 A3 80 13 00 00 00 00 00 00 F0 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:48]Read from MH i2c: E2 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 62 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 62 00 D1 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:48]wFMCommunicate OK [14:50:48]SAM_PROTO_GetFieldsCounters done [14:50:48]requested_item shift.num is exist - process it [14:50:48]requested_item shift.opened is exist - process it [14:50:48]req_shift_opened [14:50:48]FM_GetShiftState [14:50:48]SAM_PROTO_GetShiftState [14:50:48]wFMCommunicate request_size=4 [14:50:48]MH_SAM_APDU [14:50:48]CAPDU: 80 13 01 00 [14:50:48]Write to MH i2c: E2 08 00 D2 A3 80 13 01 00 00 00 00 00 F2 [14:50:48]Write i2c OK [14:50:48]MH_I2C_Read... [14:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:48]Read from MH i2c: E2 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 0E 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 0E 00 D2 A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B5 [14:50:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:50:48]wFMCommunicate OK [14:50:48]SAM_PROTO_GetShiftState done [14:50:48]FM_GetShiftState done [14:50:48]req_shift_opened done [14:50:48]requested_item shift.open_date is exist - process it [14:50:48]req_shift_open_date [14:50:48]req_shift_open_date done [14:50:48]produce_requested_data done [14:50:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191449,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:50:48]process_action_free close_receipt [14:50:48]json_value_free [14:50:48]json_value_free done [14:50:48]process_json_proto returns [14:50:48]Send response to host [14:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191449,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:50:48]free response buf [14:50:48]execute_script done [14:50:48]execute_script returns [14:50:48]free content buf [14:50:48]Sock 8.Close socket [14:50:48]Sock 8.Thread stoped [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:52:59]accept exits with 9 [14:52:59]New connection [14:52:59]New thread 3066961252 created [14:52:59]Thread 3066817892 joined [14:52:59]Waiting for new connection... [14:52:59] Sock 9.Parse request [14:52:59]Sock 9.Check first char [14:52:59]Sock 9.First char is OK [14:52:59]request: POST /json_proto HTTP/1.0 [14:52:59]Method: POST [14:52:59]URL: /json_proto [14:52:59]Method is POST - this is cgi request [14:52:59]url: /json_proto [14:52:59]query_string will be loaded in cgi processing [14:52:59]execute_cgi json_proto POST (null) [14:52:59]execute_cgi path=json_proto method=POST [14:52:59]POST find Content-Length [14:52:59]Host: 172.17.63.131:8080 [14:52:59]Content-Length: 676 [14:52:59]Content-Type: application/json [14:52:59] [14:52:59]POST finish read [14:52:59]Found Content-Length = 676 [14:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:59]execute_script... [14:52:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:59]POST & json_proto [14:52:59]process_json_proto [14:52:59]json parsed OK: [14:52:59]protocol is kg_v1.0 [14:52:59]action value=close_receipt [14:52:59]process_action close_receipt [14:52:59]cmd_close_receipt [14:52:59]MH_GetDate [14:52:59]Write to MH i2c: F0 00 00 D3 A3 65 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 D3 A3 00 D5 B0 1B 67 22 05 6E 64 6E [14:52:59]GetLastDocTimeStamp 1729867853 [14:52:59]current date 1729867989 [14:52:59]FM_GetShiftState [14:52:59]SAM_PROTO_GetShiftState [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 13 01 00 [14:52:59]Write to MH i2c: E2 08 00 D4 A3 80 13 01 00 00 00 00 00 F4 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 D4 A3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B7 [14:52:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_GetShiftState done [14:52:59]FM_GetShiftState done [14:52:59]opened in 1729816399 [14:52:59]opened+sec_in_day 1729902799 [14:52:59]quantity*price = 50041 [14:52:59]sum+1 = 50042 [14:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 189 25.10.2024 14:53 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191450 ФПД: 275304344353914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191450&fm=275304344353914&tin=02508201610067®Number=0000000000091776&sum=50000 [14:53:01]StoreToDocumentArchive [14:53:01]shift 540 fd 191450 [14:53:01]save to /storage/0540/doc_00191450 [14:53:01]save last doc name /storage/0540/doc_00191450 to /storage/kkm_last_doc_name [14:53:01]save OK [14:53:01]Clear old archive folders... [14:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:01]tlvbuf is 015D89D0 [14:53:01]SAM_PROTO_ClearQueue [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 09 00 00 [14:53:01]Write to MH i2c: E2 08 00 E1 A3 80 09 00 00 00 00 00 00 F6 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 E1 A3 00 90 00 F8 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]SAM_PROTO_ClearQueue done [14:53:01]KKMCreateOFDPacket [14:53:01]OFDProtocolAddRootSTLVToBuf [14:53:01]FM_MakeSignedData [14:53:01]FM_MakeSignedData [14:53:01]SAM_PROTO_SignData [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 01 02 [14:53:01]Write to MH i2c: E2 08 00 E2 A3 80 0D 01 02 00 00 00 00 FE [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 E2 A3 00 90 00 F9 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=255 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D5 B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EB 02 00 35 04 06 00 FA [14:53:01]Write to MH i2c: E2 02 01 E3 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D5 B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EB 02 00 35 04 06 00 FA 00 00 35 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 E3 A3 00 90 00 FA [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=10 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 02 02 05 63 49 A6 7C 7A [14:53:01]Write to MH i2c: E2 0D 00 E4 A3 80 0D 02 02 05 00 63 49 A6 7C 7A 00 00 53 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 E4 A3 00 90 00 FB [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 03 02 [14:53:01]Write to MH i2c: E2 08 00 E5 A3 80 0D 03 02 00 00 00 00 03 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 E5 A3 00 DB D2 FA 4C DF 1A 30 9E 90 00 BE [14:53:01]RAPDU: DB D2 FA 4C DF 1A 30 9E 90 00 [14:53:01]wFMCommunicate OK [14:53:01]SAM_PROTO_SignData done [14:53:01]FM_MakeSignedData done [14:53:01]CreateOFDProtocolMessage [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 11 00 00 [14:53:01]Write to MH i2c: E2 08 00 E6 A3 80 11 00 00 00 00 00 00 03 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 E6 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [14:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:53:01]wFMCommunicate OK [14:53:01]CreateOFDProtocolMessage done [14:53:01]OFDSenderStorePacket 191450 [14:53:01]StoreOFDPacket docnum=191450 [14:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 CA 07 01 B2 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D5 B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EB 02 00 35 04 06 00 FA 63 49 A6 7C 7A DB D2 FA 4C DF 1A 30 9E [14:53:01]CheckFolder [14:53:01]dirname=/storage/ofd_packets [14:53:01]CheckFolder done [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00191450 [14:53:01]NVStorageSaveData ofd_packets/00191450 [14:53:01]File name is /storage/ofd_packets/00191450 [14:53:01]Write 301 bytes [14:53:01]NVStorageSaveData done [14:53:01]OFDSenderStorePacket done [14:53:01]KKMCreateOFDPacket done [14:53:01]NVStorageSaveData kkm_last_timestamp [14:53:01]File name is /storage/kkm_last_timestamp [14:53:01]Write 4 bytes [14:53:01]NVStorageSaveData done [14:53:01]ExternCall_PrintAddStr [14:53:01]wPrintStart [14:53:01]Write to MH i2c: 01 00 00 E7 A3 8A [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 E7 A3 00 00 00 00 00 FF 0F 9F [14:53:01]RasterBufferAndPrint [14:53:01]line Счет N : (1)30745 [14:53:01]line ИНН: 02508201610067 [14:53:01]line Контрольно-Кассовый Чек [14:53:01]line ПРОДАЖА [14:53:01]line ТРК (МРК, ГНК) : 12 [14:53:01]line Товар: 2710124130 [14:53:01]line Аи-92-К-5 [14:53:01]line 7.480 * 66.90 [14:53:01]line = 500.41 [14:53:01]line НДС 12% НСП 1% [14:53:01]line > о реализуемом товаре [14:53:01]line ОКРУГЛЕНИЕ: -0.41 [14:53:01]line ИТОГО: 500.00 [14:53:01]line Внесено: 500.00 [14:53:01]line СДАЧА: 0.00 [14:53:01]line НСП 1% : 4.43 [14:53:01]line НДС 12% : 53.14 [14:53:01]line Наличными: 500.00 [14:53:01]line Безнал.: 0.00 [14:53:01]line Место: АЗС № 170 "Партнер Нефть" [14:53:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:53:01]line СНО: Общий режим [14:53:01]line Чек 189 25.10.2024 14:53 [14:53:01]line Смена: 540 ФФД: 1.0 [14:53:01]line ЗНМ: 0300000110 [14:53:01]line РНМ: 0000000000091776 [14:53:01]line Версия ККМ: 001 [14:53:01]line ФМ: 0000000000871754 [14:53:01]line ФД: 191450 [14:53:01]line ФПД: 275304344353914 [14:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191450&fm=275304344353914&tin=02508201610067®Number=0000000000091776&sum=50000 [14:53:01]OFD Sender: Processing packet 191450 [packets to send 75, broken 74] [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00191450 [14:53:01]OFD Sender: To server: pG, [14:53:01]CommunicateWithHost lk.salyk.kg:30040 [14:53:01]ConnectInit lk.salyk.kg [14:53:01]written 0, free lines is 4095 [14:53:02]Connected sock=8 [14:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 CA 07 01 B2 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D5 B0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EB 02 00 35 04 06 00 FA 63 49 A6 7C 7A DB D2 FA 4C DF 1A 30 9E [14:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 0A 47 00 FE 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 31 37 35 34 10 04 04 00 DA EB 02 00 F4 03 04 00 A3 55 1B 67 B6 04 01 00 00 94 6F D5 70 56 56 C3 76 [14:53:02]CommunicateWithHost err = 0 [14:53:02]CheckOFDResponse [14:53:02]1017 (14) - 77093643461234 [14:53:02]1041 (16) - 0000000000871754 [14:53:02]1040 (4) - 191450 [14:53:02]1012 (4) - 25.10.2024 08:24 [14:53:02]1206 (1) - 0 [14:53:02]OFD Sender: Remove packet 191450 [14:53:02]ProducePacketName [14:53:02]name=ofd_packets/00191450 [14:53:02]NVStorageDeleteData [14:53:02]Write to MH i2c: 01 00 00 12 A4 B6 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 07 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 07 00 12 A4 00 00 00 00 00 B6 0C 7F [14:53:02]RasterBufferAndPrint [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]written 0, free lines is 3260 [14:53:02]MH_Cut [14:53:02]Write to MH i2c: D1 01 00 19 A4 01 8F [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 01 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 01 00 19 A4 00 8E [14:53:02]Write to MH i2c: 01 00 00 1A A4 BE [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]OFD Sender: No OFD packet to send [14:53:03]*** Cut start [14:53:03]*** Partial cut [14:53:03]*** CUTSNS_PIN = 1 [14:53:03]*** CUTSNS_PIN = 0 [14:53:03]*** Brake cut motor [14:53:03]Read from MH i2c: 01 [14:53:03]MH_I2C_Read... [14:53:03]*** Stop cut motor [14:53:03]*** Cut end [14:53:03]Read from MH i2c: 01 07 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: 01 07 00 1A A4 00 00 00 00 00 FF 0F D3 [14:53:03]process_action close_receipt done [14:53:03]requested_data is exist [14:53:03]produce_requested_data [14:53:03]requested_item fm.sn is exist - process it [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 11 00 00 [14:53:03]Write to MH i2c: E2 08 00 1B A4 80 11 00 00 00 00 00 00 39 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 1B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [14:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:53:03]wFMCommunicate OK [14:53:03]requested_item fd.num is exist - process it [14:53:03]SAM_PROTO_GetFieldsCounters [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 00 00 [14:53:03]Write to MH i2c: E2 08 00 1C A4 80 13 00 00 00 00 00 00 3C [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 62 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 62 00 1C A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_GetFieldsCounters done [14:53:04]requested_item shift.num is exist - process it [14:53:04]requested_item shift.opened is exist - process it [14:53:04]req_shift_opened [14:53:04]FM_GetShiftState [14:53:04]SAM_PROTO_GetShiftState [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 13 01 00 [14:53:04]Write to MH i2c: E2 08 00 1D A4 80 13 01 00 00 00 00 00 3E [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0E 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 0E 00 1D A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 01 [14:53:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_GetShiftState done [14:53:04]FM_GetShiftState done [14:53:04]req_shift_opened done [14:53:04]requested_item shift.open_date is exist - process it [14:53:04]req_shift_open_date [14:53:04]req_shift_open_date done [14:53:04]produce_requested_data done [14:53:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191450,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:53:04]process_action_free close_receipt [14:53:04]json_value_free [14:53:04]json_value_free done [14:53:04]process_json_proto returns [14:53:04]Send response to host [14:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191450,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:53:04]free response buf [14:53:04]execute_script done [14:53:04]execute_script returns [14:53:04]free content buf [14:53:04]Sock 9.Close socket [14:53:04]Sock 9.Thread stoped [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:27]accept exits with 10 [14:56:27]New connection [14:56:27]New thread 3066817892 created [14:56:27]Thread 3066961252 joined [14:56:27]Waiting for new connection... [14:56:27] Sock 10.Parse request [14:56:27]Sock 10.Check first char [14:56:27]Sock 10.First char is OK [14:56:27]request: POST /json_proto HTTP/1.0 [14:56:27]Method: POST [14:56:27]URL: /json_proto [14:56:27]Method is POST - this is cgi request [14:56:27]url: /json_proto [14:56:27]query_string will be loaded in cgi processing [14:56:27]execute_cgi json_proto POST (null) [14:56:27]execute_cgi path=json_proto method=POST [14:56:27]POST find Content-Length [14:56:27]Host: 172.17.63.131:8080 [14:56:27]Content-Length: 862 [14:56:27]Content-Type: application/json [14:56:27] [14:56:27]POST finish read [14:56:27]Found Content-Length = 862 [14:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:27]execute_script... [14:56: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)30746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:27]POST & json_proto [14:56:27]process_json_proto [14:56:27]json parsed OK: [14:56:27]protocol is kg_v1.0 [14:56:27]action value=close_receipt [14:56:27]process_action close_receipt [14:56:27]cmd_close_receipt [14:56:27]MH_GetDate [14:56:27]Write to MH i2c: F0 00 00 1E A4 B1 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 09 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 09 00 1E A4 00 A4 B1 1B 67 22 05 6E 64 8A [14:56:27]GetLastDocTimeStamp 1729867989 [14:56:27]current date 1729868196 [14:56:27]FM_GetShiftState [14:56:27]SAM_PROTO_GetShiftState [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 13 01 00 [14:56:27]Write to MH i2c: E2 08 00 1F A4 80 13 01 00 00 00 00 00 40 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0E 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0E 00 1F A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 03 [14:56:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:56:27]wFMCommunicate OK [14:56:27]SAM_PROTO_GetShiftState done [14:56:27]FM_GetShiftState done [14:56:27]opened in 1729816399 [14:56:27]opened+sec_in_day 1729902799 [14:56:27]quantity*price = 30038 [14:56:27]sum+1 = 30039 [14:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 190 25.10.2024 14:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191451 ФПД: 82922221674217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191451&fm=82922221674217&tin=02508201610067®Number=0000000000091776&sum=30038 [14:56:28]StoreToDocumentArchive [14:56:28]shift 540 fd 191451 [14:56:28]save to /storage/0540/doc_00191451 [14:56:28]save last doc name /storage/0540/doc_00191451 to /storage/kkm_last_doc_name [14:56:28]save OK [14:56:28]Clear old archive folders... [14:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:28]tlvbuf is 01789E20 [14:56:28]SAM_PROTO_ClearQueue [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 09 00 00 [14:56:28]Write to MH i2c: E2 08 00 2C A4 80 09 00 00 00 00 00 00 42 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2C A4 00 90 00 44 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_ClearQueue done [14:56:28]KKMCreateOFDPacket [14:56:28]OFDProtocolAddRootSTLVToBuf [14:56:28]FM_MakeSignedData [14:56:28]FM_MakeSignedData [14:56:28]SAM_PROTO_SignData [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 01 02 [14:56:28]Write to MH i2c: E2 08 00 2D A4 80 0D 01 02 00 00 00 00 4A [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2D A4 00 90 00 45 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=255 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 A4 B1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EB 02 00 35 04 06 00 4B [14:56:28]Write to MH i2c: E2 02 01 2E A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 A4 B1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EB 02 00 35 04 06 00 4B 00 00 E4 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2E A4 00 90 00 46 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=10 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 02 02 05 6A D5 91 1E E9 [14:56:28]Write to MH i2c: E2 0D 00 2F A4 80 0D 02 02 05 00 6A D5 91 1E E9 00 00 2E [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2F A4 00 90 00 47 [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 03 02 [14:56:28]Write to MH i2c: E2 08 00 30 A4 80 0D 03 02 00 00 00 00 4F [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 30 A4 00 21 DB 31 4B 18 8D 36 39 90 00 DC [14:56:28]RAPDU: 21 DB 31 4B 18 8D 36 39 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_SignData done [14:56:28]FM_MakeSignedData done [14:56:28]CreateOFDProtocolMessage [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 11 00 00 [14:56:28]Write to MH i2c: E2 08 00 31 A4 80 11 00 00 00 00 00 00 4F [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 31 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [14:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:56:28]wFMCommunicate OK [14:56:28]CreateOFDProtocolMessage done [14:56:28]OFDSenderStorePacket 191451 [14:56:28]StoreOFDPacket docnum=191451 [14:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F BC 07 01 8E 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 A4 B1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EB 02 00 35 04 06 00 4B 6A D5 91 1E E9 21 DB 31 4B 18 8D 36 39 [14:56:28]CheckFolder [14:56:28]dirname=/storage/ofd_packets [14:56:28]CheckFolder done [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00191451 [14:56:28]NVStorageSaveData ofd_packets/00191451 [14:56:28]File name is /storage/ofd_packets/00191451 [14:56:28]Write 301 bytes [14:56:28]NVStorageSaveData done [14:56:28]OFDSenderStorePacket done [14:56:28]KKMCreateOFDPacket done [14:56:28]NVStorageSaveData kkm_last_timestamp [14:56:28]File name is /storage/kkm_last_timestamp [14:56:28]Write 4 bytes [14:56:28]NVStorageSaveData done [14:56:28]ExternCall_PrintAddStr [14:56:28]wPrintStart [14:56:28]Write to MH i2c: 01 00 00 32 A4 D6 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 32 A4 00 00 00 00 00 FF 0F EB [14:56:28]RasterBufferAndPrint [14:56:28]line Счет N : (1)30746 [14:56:28]line ИНН: 02508201610067 [14:56:28]line Контрольно-Кассовый Чек [14:56:28]line ПРОДАЖА [14:56:28]line ТРК (МРК, ГНК) : 12 [14:56:28]line Товар: 2710124130 [14:56:28]line Аи-92-К-5 [14:56:28]line 4.490 * 66.90 [14:56:28]line = 300.38 [14:56:28]line НДС 12% НСП 1% [14:56:28]line > о реализуемом товаре [14:56:28]line ИТОГО: 300.38 [14:56:28]line НСП 1% : 2.66 [14:56:28]line НДС 12% : 31.90 [14:56:28]line Наличными: 0.00 [14:56:28]line Безнал.: 300.38 [14:56:28]line Место: АЗС № 170 "Партнер Нефть" [14:56:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:56:28]line СНО: Общий режим [14:56:28]line Чек 190 25.10.2024 14:56 [14:56:28]line Смена: 540 ФФД: 1.0 [14:56:28]line ЗНМ: 0300000110 [14:56:28]line РНМ: 0000000000091776 [14:56:28]line Версия ККМ: 001 [14:56:28]line Платежная система: Кыргызкоммерцбанк [14:56:28]line ФМ: 0000000000871754 [14:56:28]line ФД: 191451 [14:56:28]line ФПД: 82922221674217 [14:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191451&fm=82922221674217&tin=02508201610067®Number=0000000000091776&sum=30038 [14:56:29]written 0, free lines is 4095 [14:56:29]OFD Sender: Processing packet 191451 [packets to send 75, broken 74] [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00191451 [14:56:29]OFD Sender: To server: pG, [14:56:29]CommunicateWithHost lk.salyk.kg:30040 [14:56:29]ConnectInit lk.salyk.kg [14:56:29]Connected sock=9 [14:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F BC 07 01 8E 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 A4 B1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EB 02 00 35 04 06 00 4B 6A D5 91 1E E9 21 DB 31 4B 18 8D 36 39 [14:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 20 47 00 4F 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EB 02 00 F4 03 04 00 73 56 1B 67 B6 04 01 00 00 E7 42 59 02 30 E1 55 F1 [14:56:29]CommunicateWithHost err = 0 [14:56:29]CheckOFDResponse [14:56:29]1017 (14) - 77093643461234 [14:56:29]1041 (16) - 0000000000871754 [14:56:29]1040 (4) - 191451 [14:56:29]1012 (4) - 25.10.2024 08:27 [14:56:29]1206 (1) - 0 [14:56:29]OFD Sender: Remove packet 191451 [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00191451 [14:56:29]NVStorageDeleteData [14:56:29]Write to MH i2c: 01 00 00 5C A4 00 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 5C A4 00 00 00 00 00 C7 0C DA [14:56:29]RasterBufferAndPrint [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]written 0, free lines is 3280 [14:56:29]MH_Cut [14:56:29]Write to MH i2c: D1 01 00 63 A4 01 D9 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 63 A4 00 D8 [14:56:29]Write to MH i2c: 01 00 00 64 A4 08 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:30]OFD Sender: No OFD packet to send [14:56:30]*** Cut start [14:56:30]*** Partial cut [14:56:30]*** CUTSNS_PIN = 1 [14:56:30]*** CUTSNS_PIN = 0 [14:56:30]*** Brake cut motor [14:56:31]Read from MH i2c: 01 [14:56:31]MH_I2C_Read... [14:56:31]*** Stop cut motor [14:56:31]*** Cut end [14:56:31]Read from MH i2c: 01 07 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: 01 07 00 64 A4 00 00 00 00 00 FF 0F 1D [14:56:31]process_action close_receipt done [14:56:31]requested_data is exist [14:56:31]produce_requested_data [14:56:31]requested_item fm.sn is exist - process it [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 11 00 00 [14:56:31]Write to MH i2c: E2 08 00 65 A4 80 11 00 00 00 00 00 00 83 [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 17 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 17 00 65 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [14:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:56:31]wFMCommunicate OK [14:56:31]requested_item fd.num is exist - process it [14:56:31]SAM_PROTO_GetFieldsCounters [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 13 00 00 [14:56:31]Write to MH i2c: E2 08 00 66 A4 80 13 00 00 00 00 00 00 86 [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 62 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 62 00 66 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetFieldsCounters done [14:56:31]requested_item shift.num is exist - process it [14:56:31]requested_item shift.opened is exist - process it [14:56:31]req_shift_opened [14:56:31]FM_GetShiftState [14:56:31]SAM_PROTO_GetShiftState [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 13 01 00 [14:56:31]Write to MH i2c: E2 08 00 67 A4 80 13 01 00 00 00 00 00 88 [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 67 A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4B [14:56:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetShiftState done [14:56:31]FM_GetShiftState done [14:56:31]req_shift_opened done [14:56:31]requested_item shift.open_date is exist - process it [14:56:31]req_shift_open_date [14:56:31]req_shift_open_date done [14:56:31]produce_requested_data done [14:56:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191451,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:56:31]process_action_free close_receipt [14:56:31]json_value_free [14:56:31]json_value_free done [14:56:31]process_json_proto returns [14:56:31]Send response to host [14:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191451,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:56:31]free response buf [14:56:31]execute_script done [14:56:31]execute_script returns [14:56:31]free content buf [14:56:31]Sock 10.Close socket [14:56:31]Sock 10.Thread stoped [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:36]accept exits with 8 [14:59:36]New connection [14:59:36]New thread 3066961252 created [14:59:36]Thread 3066817892 joined [14:59:36]Waiting for new connection... [14:59:36] Sock 8.Parse request [14:59:36]Sock 8.Check first char [14:59:36]Sock 8.First char is OK [14:59:36]request: POST /json_proto HTTP/1.0 [14:59:36]Method: POST [14:59:36]URL: /json_proto [14:59:36]Method is POST - this is cgi request [14:59:36]url: /json_proto [14:59:36]query_string will be loaded in cgi processing [14:59:36]execute_cgi json_proto POST (null) [14:59:36]execute_cgi path=json_proto method=POST [14:59:36]POST find Content-Length [14:59:36]Host: 172.17.63.131:8080 [14:59:36]Content-Length: 983 [14:59:36]Content-Type: application/json [14:59:36] [14:59:36]POST finish read [14:59:36]Found Content-Length = 983 [14:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [14:59:36]execute_script... [14:59: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)30747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [14:59:36]POST & json_proto [14:59:36]process_json_proto [14:59:36]json parsed OK: [14:59:36]protocol is kg_v1.0 [14:59:36]action value=close_receipt [14:59:36]process_action close_receipt [14:59:36]cmd_close_receipt [14:59:36]MH_GetDate [14:59:36]Write to MH i2c: F0 00 00 68 A4 FB [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 09 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: F0 09 00 68 A4 00 61 B2 1B 67 22 05 6E 64 92 [14:59:36]GetLastDocTimeStamp 1729868196 [14:59:36]current date 1729868385 [14:59:36]FM_GetShiftState [14:59:36]SAM_PROTO_GetShiftState [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 13 01 00 [14:59:36]Write to MH i2c: E2 08 00 69 A4 80 13 01 00 00 00 00 00 8A [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0E 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0E 00 69 A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4D [14:59:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_GetShiftState done [14:59:36]FM_GetShiftState done [14:59:36]opened in 1729816399 [14:59:36]opened+sec_in_day 1729902799 [14:59:36]quantity*price = 140037 [14:59:36]sum+1 = 140039 [14:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 191 25.10.2024 14:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 21.25 сом ФМ: 0000000000871754 ФД: 191452 ФПД: 35057972549568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191452&fm=35057972549568&tin=02508201610067®Number=0000000000091776&sum=140000 [14:59:37]StoreToDocumentArchive [14:59:37]shift 540 fd 191452 [14:59:37]save to /storage/0540/doc_00191452 [14:59:37]save last doc name /storage/0540/doc_00191452 to /storage/kkm_last_doc_name [14:59:37]save OK [14:59:37]Clear old archive folders... [14:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:37]tlvbuf is 015F8040 [14:59:37]SAM_PROTO_ClearQueue [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 09 00 00 [14:59:37]Write to MH i2c: E2 08 00 76 A4 80 09 00 00 00 00 00 00 8C [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 76 A4 00 90 00 8E [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_ClearQueue done [14:59:37]KKMCreateOFDPacket [14:59:37]OFDProtocolAddRootSTLVToBuf [14:59:37]FM_MakeSignedData [14:59:37]FM_MakeSignedData [14:59:37]SAM_PROTO_SignData [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 01 02 [14:59:37]Write to MH i2c: E2 08 00 77 A4 80 0D 01 02 00 00 00 00 94 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 77 A4 00 90 00 8F [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=255 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EB 02 00 35 04 06 00 1F [14:59:37]Write to MH i2c: E2 02 01 78 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EB 02 00 35 04 06 00 1F 00 00 88 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 78 A4 00 90 00 90 [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=10 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 02 02 05 E2 92 00 17 C0 [14:59:37]Write to MH i2c: E2 0D 00 79 A4 80 0D 02 02 05 00 E2 92 00 17 C0 00 00 EC [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 79 A4 00 90 00 91 [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 03 02 [14:59:37]Write to MH i2c: E2 08 00 7A A4 80 0D 03 02 00 00 00 00 99 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 7A A4 00 E3 E4 4D 43 0B B4 C1 50 90 00 C1 [14:59:37]RAPDU: E3 E4 4D 43 0B B4 C1 50 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_SignData done [14:59:37]FM_MakeSignedData done [14:59:37]CreateOFDProtocolMessage [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 11 00 00 [14:59:37]Write to MH i2c: E2 08 00 7B A4 80 11 00 00 00 00 00 00 99 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 7B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [14:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:37]wFMCommunicate OK [14:59:37]CreateOFDProtocolMessage done [14:59:37]OFDSenderStorePacket 191452 [14:59:37]StoreOFDPacket docnum=191452 [14:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 54 07 01 03 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 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EB 02 00 35 04 06 00 1F E2 92 00 17 C0 E3 E4 4D 43 0B B4 C1 50 [14:59:37]CheckFolder [14:59:37]dirname=/storage/ofd_packets [14:59:37]CheckFolder done [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00191452 [14:59:37]NVStorageSaveData ofd_packets/00191452 [14:59:37]File name is /storage/ofd_packets/00191452 [14:59:37]Write 301 bytes [14:59:37]NVStorageSaveData done [14:59:37]OFDSenderStorePacket done [14:59:37]KKMCreateOFDPacket done [14:59:37]NVStorageSaveData kkm_last_timestamp [14:59:37]File name is /storage/kkm_last_timestamp [14:59:37]Write 4 bytes [14:59:37]NVStorageSaveData done [14:59:37]ExternCall_PrintAddStr [14:59:37]wPrintStart [14:59:37]Write to MH i2c: 01 00 00 7C A4 20 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 7C A4 00 00 00 00 00 FF 0F 35 [14:59:37]RasterBufferAndPrint [14:59:37]line Счет N : (1)30747 [14:59:37]line ИНН: 02508201610067 [14:59:37]line Контрольно-Кассовый Чек [14:59:37]line ПРОДАЖА [14:59:37]line ТРК (МРК, ГНК) : 12 [14:59:37]line Товар: 2710124130 [14:59:37]line Аи-92-К-5 [14:59:37]line 21.250 * 65.90 [14:59:37]line = 1400.38 [14:59:37]line НДС 12% НСП 1% [14:59:37]line > о реализуемом товаре [14:59:37]line ОКРУГЛЕНИЕ: -0.38 [14:59:37]line ИТОГО: 1400.00 [14:59:37]line Внесено: 1400.00 [14:59:37]line СДАЧА: 0.00 [14:59:37]line НСП 1% : 12.39 [14:59:37]line НДС 12% : 148.71 [14:59:37]line Наличными: 1400.00 [14:59:37]line Безнал.: 0.00 [14:59:37]line Место: АЗС № 170 "Партнер Нефть" [14:59:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:59:37]line СНО: Общий режим [14:59:37]line Чек 191 25.10.2024 14:59 [14:59:37]line Смена: 540 ФФД: 1.0 [14:59:37]line ЗНМ: 0300000110 [14:59:37]line РНМ: 0000000000091776 [14:59:37]line Версия ККМ: 001 [14:59:37]line [14:59:37]line Дисконтная программа [14:59:37]line АИ-92 [14:59:37]line номер 170 [14:59:37]line сэкономлено 21.25 сом [14:59:37]line ФМ: 0000000000871754 [14:59:37]line ФД: 191452 [14:59:37]line ФПД: 35057972549568 [14:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191452&fm=35057972549568&tin=02508201610067®Number=0000000000091776&sum=140000 [14:59:38]OFD Sender: Processing packet 191452 [packets to send 75, broken 74] [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00191452 [14:59:38]OFD Sender: To server: pG, [14:59:38]CommunicateWithHost lk.salyk.kg:30040 [14:59:38]ConnectInit lk.salyk.kg [14:59:38]written 0, free lines is 4095 [14:59:38]Connected sock=10 [14:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 54 07 01 03 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 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EB 02 00 35 04 06 00 1F E2 92 00 17 C0 E3 E4 4D 43 0B B4 C1 50 [14:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A B8 47 00 50 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EB 02 00 F4 03 04 00 30 57 1B 67 B6 04 01 00 00 A0 F1 86 FC 54 06 26 50 [14:59:38]CommunicateWithHost err = 0 [14:59:38]CheckOFDResponse [14:59:38]1017 (14) - 77093643461234 [14:59:38]1041 (16) - 0000000000871754 [14:59:38]1040 (4) - 191452 [14:59:38]1012 (4) - 25.10.2024 08:30 [14:59:38]1206 (1) - 0 [14:59:38]OFD Sender: Remove packet 191452 [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00191452 [14:59:38]NVStorageDeleteData [14:59:38]Write to MH i2c: 01 00 00 AC A4 50 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 AC A4 00 00 00 00 00 5B 0C BE [14:59:38]RasterBufferAndPrint [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]written 0, free lines is 3169 [14:59:38]MH_Cut [14:59:38]Write to MH i2c: D1 01 00 B3 A4 01 29 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 B3 A4 00 28 [14:59:38]Write to MH i2c: 01 00 00 B4 A4 58 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:39]OFD Sender: No OFD packet to send [14:59:39]*** Cut start [14:59:39]*** Partial cut [14:59:39]*** CUTSNS_PIN = 1 [14:59:39]*** CUTSNS_PIN = 0 [14:59:39]*** Brake cut motor [14:59:40]Read from MH i2c: 01 [14:59:40]MH_I2C_Read... [14:59:40]*** Stop cut motor [14:59:40]*** Cut end [14:59:40]Read from MH i2c: 01 07 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 B4 A4 00 00 00 00 00 FF 0F 6D [14:59:40]process_action close_receipt done [14:59:40]requested_data is exist [14:59:40]produce_requested_data [14:59:40]requested_item fm.sn is exist - process it [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 11 00 00 [14:59:40]Write to MH i2c: E2 08 00 B5 A4 80 11 00 00 00 00 00 00 D3 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 17 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 17 00 B5 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [14:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:40]wFMCommunicate OK [14:59:40]requested_item fd.num is exist - process it [14:59:40]SAM_PROTO_GetFieldsCounters [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 13 00 00 [14:59:40]Write to MH i2c: E2 08 00 B6 A4 80 13 00 00 00 00 00 00 D6 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 62 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 62 00 B6 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [14:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:40]wFMCommunicate OK [14:59:40]SAM_PROTO_GetFieldsCounters done [14:59:40]requested_item shift.num is exist - process it [14:59:40]requested_item shift.opened is exist - process it [14:59:40]req_shift_opened [14:59:40]FM_GetShiftState [14:59:40]SAM_PROTO_GetShiftState [14:59:40]wFMCommunicate request_size=4 [14:59:40]MH_SAM_APDU [14:59:40]CAPDU: 80 13 01 00 [14:59:40]Write to MH i2c: E2 08 00 B7 A4 80 13 01 00 00 00 00 00 D8 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:40]Read from MH i2c: E2 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 0E 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: E2 0E 00 B7 A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9B [14:59:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [14:59:40]wFMCommunicate OK [14:59:40]SAM_PROTO_GetShiftState done [14:59:40]FM_GetShiftState done [14:59:40]req_shift_opened done [14:59:40]requested_item shift.open_date is exist - process it [14:59:40]req_shift_open_date [14:59:40]req_shift_open_date done [14:59:40]produce_requested_data done [14:59:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191452,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [14:59:40]process_action_free close_receipt [14:59:40]json_value_free [14:59:40]json_value_free done [14:59:40]process_json_proto returns [14:59:40]Send response to host [14:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191452,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [14:59:40]free response buf [14:59:40]execute_script done [14:59:40]execute_script returns [14:59:40]free content buf [14:59:40]Sock 8.Close socket [14:59:40]Sock 8.Thread stoped [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:35]accept exits with 9 [15:01:35]New connection [15:01:35]New thread 3066817892 created [15:01:35]Thread 3066961252 joined [15:01:35]Waiting for new connection... [15:01:35] Sock 9.Parse request [15:01:35]Sock 9.Check first char [15:01:35]Sock 9.First char is OK [15:01:35]request: POST /json_proto HTTP/1.0 [15:01:35]Method: POST [15:01:35]URL: /json_proto [15:01:35]Method is POST - this is cgi request [15:01:35]url: /json_proto [15:01:35]query_string will be loaded in cgi processing [15:01:35]execute_cgi json_proto POST (null) [15:01:35]execute_cgi path=json_proto method=POST [15:01:35]POST find Content-Length [15:01:35]Host: 172.17.63.131:8080 [15:01:35]Content-Length: 678 [15:01:35]Content-Type: application/json [15:01:35] [15:01:35]POST finish read [15:01:35]Found Content-Length = 678 [15:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:01:35]execute_script... [15:01:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:01:35]POST & json_proto [15:01:35]process_json_proto [15:01:35]json parsed OK: [15:01:35]protocol is kg_v1.0 [15:01:35]action value=close_receipt [15:01:35]process_action close_receipt [15:01:35]cmd_close_receipt [15:01:35]MH_GetDate [15:01:35]Write to MH i2c: F0 00 00 B8 A4 4B [15:01:35]Write i2c OK [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 09 00 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 09 00 B8 A4 00 D9 B2 1B 67 22 05 6E 64 5A [15:01:35]GetLastDocTimeStamp 1729868385 [15:01:35]current date 1729868505 [15:01:35]FM_GetShiftState [15:01:35]SAM_PROTO_GetShiftState [15:01:35]wFMCommunicate request_size=4 [15:01:35]MH_SAM_APDU [15:01:35]CAPDU: 80 13 01 00 [15:01:35]Write to MH i2c: E2 08 00 B9 A4 80 13 01 00 00 00 00 00 DA [15:01:35]Write i2c OK [15:01:35]MH_I2C_Read... [15:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:35]Read from MH i2c: E2 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: E2 0E 00 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: E2 0E 00 B9 A4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9D [15:01:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:01:35]wFMCommunicate OK [15:01:35]SAM_PROTO_GetShiftState done [15:01:35]FM_GetShiftState done [15:01:35]opened in 1729816399 [15:01:35]opened+sec_in_day 1729902799 [15:01:35]quantity*price = 120015 [15:01:35]sum+1 = 120016 [15:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 192 25.10.2024 15:01 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191453 ФПД: 146665184333456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191453&fm=146665184333456&tin=02508201610067®Number=0000000000091776&sum=120000 [15:01:36]StoreToDocumentArchive [15:01:36]shift 540 fd 191453 [15:01:36]save to /storage/0540/doc_00191453 [15:01:36]save last doc name /storage/0540/doc_00191453 to /storage/kkm_last_doc_name [15:01:36]save OK [15:01:36]Clear old archive folders... [15:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:36]tlvbuf is 01625220 [15:01:36]SAM_PROTO_ClearQueue [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 09 00 00 [15:01:36]Write to MH i2c: E2 08 00 C6 A4 80 09 00 00 00 00 00 00 DC [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 C6 A4 00 90 00 DE [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]SAM_PROTO_ClearQueue done [15:01:36]KKMCreateOFDPacket [15:01:36]OFDProtocolAddRootSTLVToBuf [15:01:36]FM_MakeSignedData [15:01:36]FM_MakeSignedData [15:01:36]SAM_PROTO_SignData [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 01 02 [15:01:36]Write to MH i2c: E2 08 00 C7 A4 80 0D 01 02 00 00 00 00 E4 [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 C7 A4 00 90 00 DF [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]wFMCommunicate request_size=255 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 D9 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EB 02 00 35 04 06 00 85 64 26 36 [15:01:36]Write to MH i2c: E2 02 01 C8 A4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 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 C0 00 00 00 F4 03 04 00 D9 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EB 02 00 35 04 06 00 85 64 26 36 00 00 D6 [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:37]Read from MH i2c: E2 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 03 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 03 00 C8 A4 00 90 00 E0 [15:01:37]RAPDU: 90 00 [15:01:37]wFMCommunicate OK [15:01:37]wFMCommunicate request_size=7 [15:01:37]MH_SAM_APDU [15:01:37]CAPDU: 80 0D 02 02 02 8E 90 [15:01:37]Write to MH i2c: E2 0A 00 C9 A4 80 0D 02 02 02 00 8E 90 00 00 09 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:37]Read from MH i2c: E2 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 03 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 03 00 C9 A4 00 90 00 E1 [15:01:37]RAPDU: 90 00 [15:01:37]wFMCommunicate OK [15:01:37]wFMCommunicate request_size=4 [15:01:37]MH_SAM_APDU [15:01:37]CAPDU: 80 0D 03 02 [15:01:37]Write to MH i2c: E2 08 00 CA A4 80 0D 03 02 00 00 00 00 E9 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:37]Read from MH i2c: E2 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 0B 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 0B 00 CA A4 00 65 2A 60 B7 1B 5F 45 6F 90 00 BE [15:01:37]RAPDU: 65 2A 60 B7 1B 5F 45 6F 90 00 [15:01:37]wFMCommunicate OK [15:01:37]SAM_PROTO_SignData done [15:01:37]FM_MakeSignedData done [15:01:37]CreateOFDProtocolMessage [15:01:37]wFMCommunicate request_size=4 [15:01:37]MH_SAM_APDU [15:01:37]CAPDU: 80 11 00 00 [15:01:37]Write to MH i2c: E2 08 00 CB A4 80 11 00 00 00 00 00 00 E9 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:37]Read from MH i2c: E2 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 17 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 17 00 CB A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [15:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:37]wFMCommunicate OK [15:01:37]CreateOFDProtocolMessage done [15:01:37]OFDSenderStorePacket 191453 [15:01:37]StoreOFDPacket docnum=191453 [15:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F8 36 04 01 02 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 D9 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EB 02 00 35 04 06 00 85 64 26 36 8E 90 65 2A 60 B7 1B 5F 45 6F [15:01:37]CheckFolder [15:01:37]dirname=/storage/ofd_packets [15:01:37]CheckFolder done [15:01:37]ProducePacketName [15:01:37]name=ofd_packets/00191453 [15:01:37]NVStorageSaveData ofd_packets/00191453 [15:01:37]File name is /storage/ofd_packets/00191453 [15:01:37]Write 298 bytes [15:01:37]NVStorageSaveData done [15:01:37]OFDSenderStorePacket done [15:01:37]KKMCreateOFDPacket done [15:01:37]NVStorageSaveData kkm_last_timestamp [15:01:37]File name is /storage/kkm_last_timestamp [15:01:37]Write 4 bytes [15:01:37]NVStorageSaveData done [15:01:37]ExternCall_PrintAddStr [15:01:37]wPrintStart [15:01:37]Write to MH i2c: 01 00 00 CC A4 70 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 CC A4 00 00 00 00 00 FF 0F 85 [15:01:37]RasterBufferAndPrint [15:01:37]line Счет N : (1)30748 [15:01:37]line ИНН: 02508201610067 [15:01:37]line Контрольно-Кассовый Чек [15:01:37]line ПРОДАЖА [15:01:37]line ТРК (МРК, ГНК) : 22 [15:01:37]line Товар: 2710194210 [15:01:37]line ДТ-К-5 [15:01:37]line 15.750 * 76.20 [15:01:37]line = 1200.15 [15:01:37]line НДС 12% НСП 1% [15:01:37]line > о реализуемом товаре [15:01:37]line ОКРУГЛЕНИЕ: -0.15 [15:01:37]line ИТОГО: 1200.00 [15:01:37]line Внесено: 1200.00 [15:01:37]line СДАЧА: 0.00 [15:01:37]line НСП 1% : 10.62 [15:01:37]line НДС 12% : 127.45 [15:01:37]line Наличными: 1200.00 [15:01:37]line Безнал.: 0.00 [15:01:37]line Место: АЗС № 170 "Партнер Нефть" [15:01:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:01:37]line СНО: Общий режим [15:01:37]line Чек 192 25.10.2024 15:01 [15:01:37]line Смена: 540 ФФД: 1.0 [15:01:37]line ЗНМ: 0300000110 [15:01:37]line РНМ: 0000000000091776 [15:01:37]line Версия ККМ: 001 [15:01:37]line ФМ: 0000000000871754 [15:01:37]line ФД: 191453 [15:01:37]line ФПД: 146665184333456 [15:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191453&fm=146665184333456&tin=02508201610067®Number=0000000000091776&sum=120000 [15:01:37]OFD Sender: Processing packet 191453 [packets to send 75, broken 74] [15:01:37]ProducePacketName [15:01:37]name=ofd_packets/00191453 [15:01:37]OFD Sender: To server: pG, [15:01:37]CommunicateWithHost lk.salyk.kg:30040 [15:01:37]ConnectInit lk.salyk.kg [15:01:37]written 0, free lines is 4095 [15:01:37]Connected sock=10 [15:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F8 36 04 01 02 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 D9 B2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EB 02 00 35 04 06 00 85 64 26 36 8E 90 65 2A 60 B7 1B 5F 45 6F [15:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 20 27 47 00 59 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 31 37 35 34 10 04 04 00 DD EB 02 00 F4 03 04 00 A7 57 1B 67 B6 04 01 00 00 A3 D7 9B 30 B1 D2 06 00 [15:01:38]CommunicateWithHost err = 0 [15:01:38]CheckOFDResponse [15:01:38]1017 (14) - 77093643461234 [15:01:38]1041 (16) - 0000000000871754 [15:01:38]1040 (4) - 191453 [15:01:38]1012 (4) - 25.10.2024 08:32 [15:01:38]1206 (1) - 0 [15:01:38]OFD Sender: Remove packet 191453 [15:01:38]ProducePacketName [15:01:38]name=ofd_packets/00191453 [15:01:38]NVStorageDeleteData [15:01:38]Write to MH i2c: 01 00 00 F7 A4 9B [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 F7 A4 00 00 00 00 00 B2 0C 60 [15:01:38]RasterBufferAndPrint [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]written 0, free lines is 3256 [15:01:38]MH_Cut [15:01:38]Write to MH i2c: D1 01 00 FE A4 01 74 [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 01 00 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 01 00 FE A4 00 73 [15:01:38]Write to MH i2c: 01 00 00 FF A4 A3 [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]OFD Sender: No OFD packet to send [15:01:38]*** Cut start [15:01:38]*** Partial cut [15:01:38]*** CUTSNS_PIN = 1 [15:01:39]*** CUTSNS_PIN = 0 [15:01:39]*** Brake cut motor [15:01:39]Read from MH i2c: 01 [15:01:39]MH_I2C_Read... [15:01:39]*** Stop cut motor [15:01:39]*** Cut end [15:01:39]Read from MH i2c: 01 07 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: 01 07 00 FF A4 00 00 00 00 00 FF 0F B8 [15:01:39]process_action close_receipt done [15:01:39]requested_data is exist [15:01:39]produce_requested_data [15:01:39]requested_item fm.sn is exist - process it [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 11 00 00 [15:01:39]Write to MH i2c: E2 08 00 00 A5 80 11 00 00 00 00 00 00 1F [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 00 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [15:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:39]wFMCommunicate OK [15:01:39]requested_item fd.num is exist - process it [15:01:39]SAM_PROTO_GetFieldsCounters [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 00 00 [15:01:39]Write to MH i2c: E2 08 00 01 A5 80 13 00 00 00 00 00 00 22 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 01 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetFieldsCounters done [15:01:39]requested_item shift.num is exist - process it [15:01:39]requested_item shift.opened is exist - process it [15:01:39]req_shift_opened [15:01:39]FM_GetShiftState [15:01:39]SAM_PROTO_GetShiftState [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 01 00 [15:01:39]Write to MH i2c: E2 08 00 02 A5 80 13 01 00 00 00 00 00 24 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 02 A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E7 [15:01:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetShiftState done [15:01:39]FM_GetShiftState done [15:01:39]req_shift_opened done [15:01:39]requested_item shift.open_date is exist - process it [15:01:39]req_shift_open_date [15:01:39]req_shift_open_date done [15:01:39]produce_requested_data done [15:01:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191453,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:01:39]process_action_free close_receipt [15:01:39]json_value_free [15:01:39]json_value_free done [15:01:39]process_json_proto returns [15:01:39]Send response to host [15:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191453,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:01:39]free response buf [15:01:39]execute_script done [15:01:39]execute_script returns [15:01:39]free content buf [15:01:39]Sock 9.Close socket [15:01:39]Sock 9.Thread stoped [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:05]accept exits with 8 [15:03:05]New connection [15:03:05]New thread 3066961252 created [15:03:05]Thread 3066817892 joined [15:03:05]Waiting for new connection... [15:03:05] Sock 8.Parse request [15:03:05]Sock 8.Check first char [15:03:05]Sock 8.First char is OK [15:03:05]request: POST /json_proto HTTP/1.0 [15:03:05]Method: POST [15:03:05]URL: /json_proto [15:03:05]Method is POST - this is cgi request [15:03:05]url: /json_proto [15:03:05]query_string will be loaded in cgi processing [15:03:05]execute_cgi json_proto POST (null) [15:03:05]execute_cgi path=json_proto method=POST [15:03:05]POST find Content-Length [15:03:05]Host: 172.17.63.131:8080 [15:03:05]Content-Length: 673 [15:03:05]Content-Type: application/json [15:03:05] [15:03:05]POST finish read [15:03:05]Found Content-Length = 673 [15:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:03:05]execute_script... [15:03: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)30749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:03:05]POST & json_proto [15:03:05]process_json_proto [15:03:05]json parsed OK: [15:03:05]protocol is kg_v1.0 [15:03:05]action value=close_receipt [15:03:05]process_action close_receipt [15:03:05]cmd_close_receipt [15:03:05]MH_GetDate [15:03:05]Write to MH i2c: F0 00 00 03 A5 97 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: F0 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: F0 09 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: F0 09 00 03 A5 00 33 B3 1B 67 22 05 6E 64 01 [15:03:05]GetLastDocTimeStamp 1729868505 [15:03:05]current date 1729868595 [15:03:05]FM_GetShiftState [15:03:05]SAM_PROTO_GetShiftState [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 01 00 [15:03:05]Write to MH i2c: E2 08 00 04 A5 80 13 01 00 00 00 00 00 26 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 04 A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E9 [15:03:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:03:06]wFMCommunicate OK [15:03:06]SAM_PROTO_GetShiftState done [15:03:06]FM_GetShiftState done [15:03:06]opened in 1729816399 [15:03:06]opened+sec_in_day 1729902799 [15:03:06]quantity*price = 70027 [15:03:06]sum+1 = 70029 [15:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 193 25.10.2024 15:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191454 ФПД: 281021165454535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150315&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191454&fm=281021165454535&tin=02508201610067®Number=0000000000091776&sum=70000 [15:03:07]StoreToDocumentArchive [15:03:07]shift 540 fd 191454 [15:03:07]save to /storage/0540/doc_00191454 [15:03:07]save last doc name /storage/0540/doc_00191454 to /storage/kkm_last_doc_name [15:03:07]save OK [15:03:07]Clear old archive folders... [15:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:03:07]tlvbuf is 017F1800 [15:03:07]SAM_PROTO_ClearQueue [15:03:07]wFMCommunicate request_size=4 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 09 00 00 [15:03:07]Write to MH i2c: E2 08 00 11 A5 80 09 00 00 00 00 00 00 28 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 11 A5 00 90 00 2A [15:03:07]RAPDU: 90 00 [15:03:07]wFMCommunicate OK [15:03:07]SAM_PROTO_ClearQueue done [15:03:07]KKMCreateOFDPacket [15:03:07]OFDProtocolAddRootSTLVToBuf [15:03:07]FM_MakeSignedData [15:03:07]FM_MakeSignedData [15:03:07]SAM_PROTO_SignData [15:03:07]wFMCommunicate request_size=4 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 0D 01 02 [15:03:07]Write to MH i2c: E2 08 00 12 A5 80 0D 01 02 00 00 00 00 30 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 12 A5 00 90 00 2B [15:03:07]RAPDU: 90 00 [15:03:07]wFMCommunicate OK [15:03:07]wFMCommunicate request_size=255 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 33 B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EB 02 00 35 04 06 00 FF 96 56 BD [15:03:07]Write to MH i2c: E2 02 01 13 A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 33 B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EB 02 00 35 04 06 00 FF 96 56 BD 00 00 70 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 13 A5 00 90 00 2C [15:03:07]RAPDU: 90 00 [15:03:07]wFMCommunicate OK [15:03:07]wFMCommunicate request_size=7 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 0D 02 02 02 C4 C7 [15:03:07]Write to MH i2c: E2 0A 00 14 A5 80 0D 02 02 02 00 C4 C7 00 00 C2 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 03 00 14 A5 00 90 00 2D [15:03:07]RAPDU: 90 00 [15:03:07]wFMCommunicate OK [15:03:07]wFMCommunicate request_size=4 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 0D 03 02 [15:03:07]Write to MH i2c: E2 08 00 15 A5 80 0D 03 02 00 00 00 00 35 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 0B 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 0B 00 15 A5 00 32 2F 40 1A C9 83 73 36 90 00 E6 [15:03:07]RAPDU: 32 2F 40 1A C9 83 73 36 90 00 [15:03:07]wFMCommunicate OK [15:03:07]SAM_PROTO_SignData done [15:03:07]FM_MakeSignedData done [15:03:07]CreateOFDProtocolMessage [15:03:07]wFMCommunicate request_size=4 [15:03:07]MH_SAM_APDU [15:03:07]CAPDU: 80 11 00 00 [15:03:07]Write to MH i2c: E2 08 00 16 A5 80 11 00 00 00 00 00 00 35 [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:07]Read from MH i2c: E2 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 17 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: E2 17 00 16 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [15:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:07]wFMCommunicate OK [15:03:07]CreateOFDProtocolMessage done [15:03:07]OFDSenderStorePacket 191454 [15:03:07]StoreOFDPacket docnum=191454 [15:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C7 21 04 01 CB 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 33 B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EB 02 00 35 04 06 00 FF 96 56 BD C4 C7 32 2F 40 1A C9 83 73 36 [15:03:07]CheckFolder [15:03:07]dirname=/storage/ofd_packets [15:03:07]CheckFolder done [15:03:07]ProducePacketName [15:03:07]name=ofd_packets/00191454 [15:03:07]NVStorageSaveData ofd_packets/00191454 [15:03:07]File name is /storage/ofd_packets/00191454 [15:03:07]Write 298 bytes [15:03:07]NVStorageSaveData done [15:03:07]OFDSenderStorePacket done [15:03:07]KKMCreateOFDPacket done [15:03:07]NVStorageSaveData kkm_last_timestamp [15:03:07]File name is /storage/kkm_last_timestamp [15:03:07]Write 4 bytes [15:03:07]NVStorageSaveData done [15:03:07]ExternCall_PrintAddStr [15:03:07]wPrintStart [15:03:07]Write to MH i2c: 01 00 00 17 A5 BC [15:03:07]Write i2c OK [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: 01 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: 01 07 00 [15:03:07]MH_I2C_Read... [15:03:07]Read from MH i2c: 01 07 00 17 A5 00 00 00 00 00 FF 0F D1 [15:03:07]RasterBufferAndPrint [15:03:07]line Счет N : (1)30749 [15:03:07]line ИНН: 02508201610067 [15:03:07]line Контрольно-Кассовый Чек [15:03:07]line ПРОДАЖА [15:03:07]line ТРК (МРК, ГНК) : 22 [15:03:07]line Товар: 2710194210 [15:03:07]line ДТ-К-5 [15:03:07]line 9.190 * 76.20 [15:03:07]line = 700.28 [15:03:07]line НДС 12% НСП 1% [15:03:07]line > о реализуемом товаре [15:03:07]line ОКРУГЛЕНИЕ: -0.28 [15:03:07]line ИТОГО: 700.00 [15:03:07]line Внесено: 700.00 [15:03:07]line СДАЧА: 0.00 [15:03:07]line НСП 1% : 6.20 [15:03:07]line НДС 12% : 74.37 [15:03:07]line Наличными: 700.00 [15:03:07]line Безнал.: 0.00 [15:03:07]line Место: АЗС № 170 "Партнер Нефть" [15:03:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:03:07]line СНО: Общий режим [15:03:07]line Чек 193 25.10.2024 15:03 [15:03:07]line Смена: 540 ФФД: 1.0 [15:03:07]line ЗНМ: 0300000110 [15:03:07]line РНМ: 0000000000091776 [15:03:07]line Версия ККМ: 001 [15:03:07]line ФМ: 0000000000871754 [15:03:07]line ФД: 191454 [15:03:07]line ФПД: 281021165454535 [15:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150315&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191454&fm=281021165454535&tin=02508201610067®Number=0000000000091776&sum=70000 [15:03:08]OFD Sender: Processing packet 191454 [packets to send 75, broken 74] [15:03:08]ProducePacketName [15:03:08]name=ofd_packets/00191454 [15:03:08]OFD Sender: To server: pG, [15:03:08]CommunicateWithHost lk.salyk.kg:30040 [15:03:08]ConnectInit lk.salyk.kg [15:03:08]written 0, free lines is 4095 [15:03:08]Connected sock=10 [15:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C7 21 04 01 CB 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 33 B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EB 02 00 35 04 06 00 FF 96 56 BD C4 C7 32 2F 40 1A C9 83 73 36 [15:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BC D8 47 00 63 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EB 02 00 F4 03 04 00 01 58 1B 67 B6 04 01 00 00 32 5F 90 85 D9 03 3F 1A [15:03:08]CommunicateWithHost err = 0 [15:03:08]CheckOFDResponse [15:03:08]1017 (14) - 77093643461234 [15:03:08]1041 (16) - 0000000000871754 [15:03:08]1040 (4) - 191454 [15:03:08]1012 (4) - 25.10.2024 08:34 [15:03:08]1206 (1) - 0 [15:03:08]OFD Sender: Remove packet 191454 [15:03:08]ProducePacketName [15:03:08]name=ofd_packets/00191454 [15:03:08]NVStorageDeleteData [15:03:08]Write to MH i2c: 01 00 00 42 A5 E7 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 07 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 07 00 42 A5 00 00 00 00 00 A6 0C A0 [15:03:08]RasterBufferAndPrint [15:03:08]line [15:03:08]line [15:03:08]line [15:03:08]line [15:03:08]line [15:03:08]written 0, free lines is 3243 [15:03:08]MH_Cut [15:03:08]Write to MH i2c: D1 01 00 49 A5 01 C0 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: D1 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: D1 01 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: D1 01 00 49 A5 00 BF [15:03:08]Write to MH i2c: 01 00 00 4A A5 EF [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]OFD Sender: No OFD packet to send [15:03:09]*** Cut start [15:03:09]*** Partial cut [15:03:09]*** CUTSNS_PIN = 1 [15:03:09]*** CUTSNS_PIN = 0 [15:03:09]*** Brake cut motor [15:03:09]Read from MH i2c: 01 [15:03:09]MH_I2C_Read... [15:03:09]*** Stop cut motor [15:03:09]*** Cut end [15:03:09]Read from MH i2c: 01 07 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: 01 07 00 4A A5 00 00 00 00 00 FF 0F 04 [15:03:09]process_action close_receipt done [15:03:09]requested_data is exist [15:03:09]produce_requested_data [15:03:09]requested_item fm.sn is exist - process it [15:03:09]wFMCommunicate request_size=4 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 11 00 00 [15:03:09]Write to MH i2c: E2 08 00 4B A5 80 11 00 00 00 00 00 00 6A [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 17 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 17 00 4B A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [15:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:09]wFMCommunicate OK [15:03:09]requested_item fd.num is exist - process it [15:03:09]SAM_PROTO_GetFieldsCounters [15:03:09]wFMCommunicate request_size=4 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 13 00 00 [15:03:09]Write to MH i2c: E2 08 00 4C A5 80 13 00 00 00 00 00 00 6D [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 62 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 62 00 4C A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:10]wFMCommunicate OK [15:03:10]SAM_PROTO_GetFieldsCounters done [15:03:10]requested_item shift.num is exist - process it [15:03:10]requested_item shift.opened is exist - process it [15:03:10]req_shift_opened [15:03:10]FM_GetShiftState [15:03:10]SAM_PROTO_GetShiftState [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 13 01 00 [15:03:10]Write to MH i2c: E2 08 00 4D A5 80 13 01 00 00 00 00 00 6F [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 0E 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 0E 00 4D A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 32 [15:03:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:03:10]wFMCommunicate OK [15:03:10]SAM_PROTO_GetShiftState done [15:03:10]FM_GetShiftState done [15:03:10]req_shift_opened done [15:03:10]requested_item shift.open_date is exist - process it [15:03:10]req_shift_open_date [15:03:10]req_shift_open_date done [15:03:10]produce_requested_data done [15:03:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191454,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:03:10]process_action_free close_receipt [15:03:10]json_value_free [15:03:10]json_value_free done [15:03:10]process_json_proto returns [15:03:10]Send response to host [15:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191454,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:03:10]free response buf [15:03:10]execute_script done [15:03:10]execute_script returns [15:03:10]free content buf [15:03:10]Sock 8.Close socket [15:03:10]Sock 8.Thread stoped [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:49]accept exits with 9 [15:03:49]New connection [15:03:49]New thread 3066817892 created [15:03:49]Thread 3066961252 joined [15:03:49]Waiting for new connection... [15:03:49] Sock 9.Parse request [15:03:49]Sock 9.Check first char [15:03:49]Sock 9.First char is OK [15:03:49]request: POST /json_proto HTTP/1.0 [15:03:49]Method: POST [15:03:49]URL: /json_proto [15:03:49]Method is POST - this is cgi request [15:03:49]url: /json_proto [15:03:49]query_string will be loaded in cgi processing [15:03:49]execute_cgi json_proto POST (null) [15:03:49]execute_cgi path=json_proto method=POST [15:03:49]POST find Content-Length [15:03:49]Host: 172.17.63.131:8080 [15:03:49]Content-Length: 681 [15:03:49]Content-Type: application/json [15:03:49] [15:03:49]POST finish read [15:03:49]Found Content-Length = 681 [15:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:49]execute_script... [15:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:49]POST & json_proto [15:03:49]process_json_proto [15:03:49]json parsed OK: [15:03:49]protocol is kg_v1.0 [15:03:49]action value=close_receipt [15:03:49]process_action close_receipt [15:03:49]cmd_close_receipt [15:03:49]MH_GetDate [15:03:49]Write to MH i2c: F0 00 00 4E A5 E2 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 4E A5 00 5F B3 1B 67 22 05 6E 64 78 [15:03:49]GetLastDocTimeStamp 1729868595 [15:03:49]current date 1729868639 [15:03:49]FM_GetShiftState [15:03:49]SAM_PROTO_GetShiftState [15:03:49]wFMCommunicate request_size=4 [15:03:49]MH_SAM_APDU [15:03:49]CAPDU: 80 13 01 00 [15:03:49]Write to MH i2c: E2 08 00 4F A5 80 13 01 00 00 00 00 00 71 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:49]Read from MH i2c: E2 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 4F A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 34 [15:03:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:03:49]wFMCommunicate OK [15:03:49]SAM_PROTO_GetShiftState done [15:03:49]FM_GetShiftState done [15:03:49]opened in 1729816399 [15:03:49]opened+sec_in_day 1729902799 [15:03:49]quantity*price = 100015 [15:03:49]sum+1 = 100017 [15:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 194 25.10.2024 15:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191455 ФПД: 221074632900675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191455&fm=221074632900675&tin=02508201610067®Number=0000000000091776&sum=100000 [15:03:51]StoreToDocumentArchive [15:03:51]shift 540 fd 191455 [15:03:51]save to /storage/0540/doc_00191455 [15:03:51]save last doc name /storage/0540/doc_00191455 to /storage/kkm_last_doc_name [15:03:51]save OK [15:03:51]Clear old archive folders... [15:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:51]tlvbuf is 015B0B70 [15:03:51]SAM_PROTO_ClearQueue [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 09 00 00 [15:03:51]Write to MH i2c: E2 08 00 5C A5 80 09 00 00 00 00 00 00 73 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 5C A5 00 90 00 75 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_ClearQueue done [15:03:51]KKMCreateOFDPacket [15:03:51]OFDProtocolAddRootSTLVToBuf [15:03:51]FM_MakeSignedData [15:03:51]FM_MakeSignedData [15:03:51]SAM_PROTO_SignData [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 01 02 [15:03:51]Write to MH i2c: E2 08 00 5D A5 80 0D 01 02 00 00 00 00 7B [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 5D A5 00 90 00 76 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]wFMCommunicate request_size=255 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 5F B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EB 02 00 35 04 06 00 C9 [15:03:51]Write to MH i2c: E2 02 01 5E A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 5F B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EB 02 00 35 04 06 00 C9 00 00 12 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 5E A5 00 90 00 77 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]wFMCommunicate request_size=10 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 02 02 05 10 F2 F6 80 43 [15:03:51]Write to MH i2c: E2 0D 00 5F A5 80 0D 02 02 05 00 10 F2 F6 80 43 00 00 43 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 5F A5 00 90 00 78 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 03 02 [15:03:51]Write to MH i2c: E2 08 00 60 A5 80 0D 03 02 00 00 00 00 80 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0B 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0B 00 60 A5 00 6D BF 7E 93 45 1C 8C FA 90 00 A5 [15:03:51]RAPDU: 6D BF 7E 93 45 1C 8C FA 90 00 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_SignData done [15:03:51]FM_MakeSignedData done [15:03:51]CreateOFDProtocolMessage [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 11 00 00 [15:03:51]Write to MH i2c: E2 08 00 61 A5 80 11 00 00 00 00 00 00 80 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 61 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [15:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:51]wFMCommunicate OK [15:03:51]CreateOFDProtocolMessage done [15:03:51]OFDSenderStorePacket 191455 [15:03:51]StoreOFDPacket docnum=191455 [15:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 8E 07 01 96 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 5F B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EB 02 00 35 04 06 00 C9 10 F2 F6 80 43 6D BF 7E 93 45 1C 8C FA [15:03:51]CheckFolder [15:03:51]dirname=/storage/ofd_packets [15:03:51]CheckFolder done [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00191455 [15:03:51]NVStorageSaveData ofd_packets/00191455 [15:03:51]File name is /storage/ofd_packets/00191455 [15:03:51]Write 301 bytes [15:03:51]NVStorageSaveData done [15:03:51]OFDSenderStorePacket done [15:03:51]KKMCreateOFDPacket done [15:03:51]NVStorageSaveData kkm_last_timestamp [15:03:51]File name is /storage/kkm_last_timestamp [15:03:51]Write 4 bytes [15:03:51]NVStorageSaveData done [15:03:51]ExternCall_PrintAddStr [15:03:51]wPrintStart [15:03:51]Write to MH i2c: 01 00 00 62 A5 07 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 62 A5 00 00 00 00 00 FF 0F 1C [15:03:51]RasterBufferAndPrint [15:03:51]line Счет N : (1)30750 [15:03:51]line ИНН: 02508201610067 [15:03:51]line Контрольно-Кассовый Чек [15:03:51]line ПРОДАЖА [15:03:51]line ТРК (МРК, ГНК) : 12 [15:03:51]line Товар: 2710124130 [15:03:51]line Аи-92-К-5 [15:03:51]line 14.950 * 66.90 [15:03:51]line = 1000.16 [15:03:51]line НДС 12% НСП 1% [15:03:51]line > о реализуемом товаре [15:03:51]line ОКРУГЛЕНИЕ: -0.16 [15:03:51]line ИТОГО: 1000.00 [15:03:51]line Внесено: 1000.00 [15:03:51]line СДАЧА: 0.00 [15:03:51]line НСП 1% : 8.85 [15:03:51]line НДС 12% : 106.21 [15:03:51]line Наличными: 1000.00 [15:03:51]line Безнал.: 0.00 [15:03:51]line Место: АЗС № 170 "Партнер Нефть" [15:03:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:03:51]line СНО: Общий режим [15:03:51]line Чек 194 25.10.2024 15:03 [15:03:51]line Смена: 540 ФФД: 1.0 [15:03:51]line ЗНМ: 0300000110 [15:03:51]line РНМ: 0000000000091776 [15:03:51]line Версия ККМ: 001 [15:03:51]line ФМ: 0000000000871754 [15:03:51]line ФД: 191455 [15:03:51]line ФПД: 221074632900675 [15:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191455&fm=221074632900675&tin=02508201610067®Number=0000000000091776&sum=100000 [15:03:51]OFD Sender: Processing packet 191455 [packets to send 75, broken 74] [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00191455 [15:03:51]OFD Sender: To server: pG, [15:03:51]CommunicateWithHost lk.salyk.kg:30040 [15:03:51]ConnectInit lk.salyk.kg [15:03:51]written 0, free lines is 4095 [15:03:52]Connected sock=10 [15:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 8E 07 01 96 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 5F B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EB 02 00 35 04 06 00 C9 10 F2 F6 80 43 6D BF 7E 93 45 1C 8C FA [15:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 96 47 00 A2 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EB 02 00 F4 03 04 00 2D 58 1B 67 B6 04 01 00 00 BB E5 57 34 4F C9 08 4E [15:03:52]CommunicateWithHost err = 0 [15:03:52]CheckOFDResponse [15:03:52]1017 (14) - 77093643461234 [15:03:52]1041 (16) - 0000000000871754 [15:03:52]1040 (4) - 191455 [15:03:52]1012 (4) - 25.10.2024 08:34 [15:03:52]1206 (1) - 0 [15:03:52]OFD Sender: Remove packet 191455 [15:03:52]ProducePacketName [15:03:52]name=ofd_packets/00191455 [15:03:52]NVStorageDeleteData [15:03:52]Write to MH i2c: 01 00 00 8D A5 32 [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 07 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: 01 07 00 8D A5 00 00 00 00 00 B3 0C F8 [15:03:52]RasterBufferAndPrint [15:03:52]line [15:03:52]line [15:03:52]line [15:03:52]line [15:03:52]line [15:03:52]written 0, free lines is 3257 [15:03:52]MH_Cut [15:03:52]Write to MH i2c: D1 01 00 94 A5 01 0B [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: D1 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: D1 01 00 [15:03:52]MH_I2C_Read... [15:03:52]Read from MH i2c: D1 01 00 94 A5 00 0A [15:03:52]Write to MH i2c: 01 00 00 95 A5 3A [15:03:52]Write i2c OK [15:03:52]MH_I2C_Read... [15:03:52]OFD Sender: No OFD packet to send [15:03:53]*** Cut start [15:03:53]*** Partial cut [15:03:53]*** CUTSNS_PIN = 1 [15:03:53]*** CUTSNS_PIN = 0 [15:03:53]*** Brake cut motor [15:03:53]Read from MH i2c: 01 [15:03:53]MH_I2C_Read... [15:03:53]*** Stop cut motor [15:03:53]*** Cut end [15:03:53]Read from MH i2c: 01 07 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: 01 07 00 95 A5 00 00 00 00 00 FF 0F 4F [15:03:53]process_action close_receipt done [15:03:53]requested_data is exist [15:03:53]produce_requested_data [15:03:53]requested_item fm.sn is exist - process it [15:03:53]wFMCommunicate request_size=4 [15:03:53]MH_SAM_APDU [15:03:53]CAPDU: 80 11 00 00 [15:03:53]Write to MH i2c: E2 08 00 96 A5 80 11 00 00 00 00 00 00 B5 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:53]Read from MH i2c: E2 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 17 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 17 00 96 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [15:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:53]wFMCommunicate OK [15:03:53]requested_item fd.num is exist - process it [15:03:53]SAM_PROTO_GetFieldsCounters [15:03:53]wFMCommunicate request_size=4 [15:03:53]MH_SAM_APDU [15:03:53]CAPDU: 80 13 00 00 [15:03:53]Write to MH i2c: E2 08 00 97 A5 80 13 00 00 00 00 00 00 B8 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 97 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [15:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:54]wFMCommunicate OK [15:03:54]SAM_PROTO_GetFieldsCounters done [15:03:54]requested_item shift.num is exist - process it [15:03:54]requested_item shift.opened is exist - process it [15:03:54]req_shift_opened [15:03:54]FM_GetShiftState [15:03:54]SAM_PROTO_GetShiftState [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 13 01 00 [15:03:54]Write to MH i2c: E2 08 00 98 A5 80 13 01 00 00 00 00 00 BA [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 0E 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 0E 00 98 A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7D [15:03:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:03:54]wFMCommunicate OK [15:03:54]SAM_PROTO_GetShiftState done [15:03:54]FM_GetShiftState done [15:03:54]req_shift_opened done [15:03:54]requested_item shift.open_date is exist - process it [15:03:54]req_shift_open_date [15:03:54]req_shift_open_date done [15:03:54]produce_requested_data done [15:03:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191455,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:03:54]process_action_free close_receipt [15:03:54]json_value_free [15:03:54]json_value_free done [15:03:54]process_json_proto returns [15:03:54]Send response to host [15:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191455,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:03:54]free response buf [15:03:54]execute_script done [15:03:54]execute_script returns [15:03:54]free content buf [15:03:54]Sock 9.Close socket [15:03:54]Sock 9.Thread stoped [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]accept exits with 8 [15:05:22]New connection [15:05:22]New thread 3066961252 created [15:05:22]Thread 3066817892 joined [15:05:22]Waiting for new connection... [15:05:22] Sock 8.Parse request [15:05:22]Sock 8.Check first char [15:05:22]Sock 8.First char is OK [15:05:22]request: POST /json_proto HTTP/1.0 [15:05:22]Method: POST [15:05:22]URL: /json_proto [15:05:22]Method is POST - this is cgi request [15:05:22]url: /json_proto [15:05:22]query_string will be loaded in cgi processing [15:05:22]execute_cgi json_proto POST (null) [15:05:22]execute_cgi path=json_proto method=POST [15:05:22]POST find Content-Length [15:05:22]Host: 172.17.63.131:8080 [15:05:22]Content-Length: 676 [15:05:22]Content-Type: application/json [15:05:22] [15:05:22]POST finish read [15:05:22]Found Content-Length = 676 [15:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:22]execute_script... [15:05: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)30752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:22]POST & json_proto [15:05:22]process_json_proto [15:05:22]json parsed OK: [15:05:22]protocol is kg_v1.0 [15:05:22]action value=close_receipt [15:05:22]process_action close_receipt [15:05:22]cmd_close_receipt [15:05:22]MH_GetDate [15:05:22]Write to MH i2c: F0 00 00 99 A5 2D [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: F0 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: F0 09 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: F0 09 00 99 A5 00 BC B3 1B 67 22 05 6E 64 20 [15:05:22]GetLastDocTimeStamp 1729868639 [15:05:22]current date 1729868732 [15:05:22]FM_GetShiftState [15:05:22]SAM_PROTO_GetShiftState [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 13 01 00 [15:05:22]Write to MH i2c: E2 08 00 9A A5 80 13 01 00 00 00 00 00 BC [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0E 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0E 00 9A A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7F [15:05:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_GetShiftState done [15:05:22]FM_GetShiftState done [15:05:22]opened in 1729816399 [15:05:22]opened+sec_in_day 1729902799 [15:05:22]quantity*price = 50041 [15:05:22]sum+1 = 50042 [15:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 195 25.10.2024 15:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191456 ФПД: 275614729995540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191456&fm=275614729995540&tin=02508201610067®Number=0000000000091776&sum=50000 [15:05:23]StoreToDocumentArchive [15:05:23]shift 540 fd 191456 [15:05:23]save to /storage/0540/doc_00191456 [15:05:23]save last doc name /storage/0540/doc_00191456 to /storage/kkm_last_doc_name [15:05:23]save OK [15:05:23]Clear old archive folders... [15:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:23]tlvbuf is 0178A060 [15:05:23]SAM_PROTO_ClearQueue [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 09 00 00 [15:05:23]Write to MH i2c: E2 08 00 A7 A5 80 09 00 00 00 00 00 00 BE [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 A7 A5 00 90 00 C0 [15:05:23]RAPDU: 90 00 [15:05:23]wFMCommunicate OK [15:05:23]SAM_PROTO_ClearQueue done [15:05:23]KKMCreateOFDPacket [15:05:23]OFDProtocolAddRootSTLVToBuf [15:05:23]FM_MakeSignedData [15:05:23]FM_MakeSignedData [15:05:23]SAM_PROTO_SignData [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 0D 01 02 [15:05:23]Write to MH i2c: E2 08 00 A8 A5 80 0D 01 02 00 00 00 00 C6 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 A8 A5 00 90 00 C1 [15:05:23]RAPDU: 90 00 [15:05:23]wFMCommunicate OK [15:05:23]wFMCommunicate request_size=255 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 BC B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EB 02 00 35 04 06 00 FA [15:05:23]Write to MH i2c: E2 02 01 A9 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 BC B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EB 02 00 35 04 06 00 FA 00 00 F3 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 03 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 03 00 A9 A5 00 90 00 C2 [15:05:24]RAPDU: 90 00 [15:05:24]wFMCommunicate OK [15:05:24]wFMCommunicate request_size=10 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 0D 02 02 05 AB 8E 13 85 14 [15:05:24]Write to MH i2c: E2 0D 00 AA A5 80 0D 02 02 05 00 AB 8E 13 85 14 00 00 B8 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 03 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 03 00 AA A5 00 90 00 C3 [15:05:24]RAPDU: 90 00 [15:05:24]wFMCommunicate OK [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 0D 03 02 [15:05:24]Write to MH i2c: E2 08 00 AB A5 80 0D 03 02 00 00 00 00 CB [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 0B 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 0B 00 AB A5 00 E9 87 23 34 33 66 7E E9 90 00 93 [15:05:24]RAPDU: E9 87 23 34 33 66 7E E9 90 00 [15:05:24]wFMCommunicate OK [15:05:24]SAM_PROTO_SignData done [15:05:24]FM_MakeSignedData done [15:05:24]CreateOFDProtocolMessage [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 11 00 00 [15:05:24]Write to MH i2c: E2 08 00 AC A5 80 11 00 00 00 00 00 00 CB [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 AC A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [15:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:24]wFMCommunicate OK [15:05:24]CreateOFDProtocolMessage done [15:05:24]OFDSenderStorePacket 191456 [15:05:24]StoreOFDPacket docnum=191456 [15:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC 1B 07 01 3C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 BC B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EB 02 00 35 04 06 00 FA AB 8E 13 85 14 E9 87 23 34 33 66 7E E9 [15:05:24]CheckFolder [15:05:24]dirname=/storage/ofd_packets [15:05:24]CheckFolder done [15:05:24]ProducePacketName [15:05:24]name=ofd_packets/00191456 [15:05:24]NVStorageSaveData ofd_packets/00191456 [15:05:24]File name is /storage/ofd_packets/00191456 [15:05:24]Write 301 bytes [15:05:24]NVStorageSaveData done [15:05:24]OFDSenderStorePacket done [15:05:24]KKMCreateOFDPacket done [15:05:24]NVStorageSaveData kkm_last_timestamp [15:05:24]File name is /storage/kkm_last_timestamp [15:05:24]Write 4 bytes [15:05:24]NVStorageSaveData done [15:05:24]ExternCall_PrintAddStr [15:05:24]wPrintStart [15:05:24]Write to MH i2c: 01 00 00 AD A5 52 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 07 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 07 00 AD A5 00 00 00 00 00 FF 0F 67 [15:05:24]RasterBufferAndPrint [15:05:24]line Счет N : (1)30752 [15:05:24]line ИНН: 02508201610067 [15:05:24]line Контрольно-Кассовый Чек [15:05:24]line ПРОДАЖА [15:05:24]line ТРК (МРК, ГНК) : 21 [15:05:24]line Товар: 2710124130 [15:05:24]line Аи-92-К-5 [15:05:24]line 7.480 * 66.90 [15:05:24]line = 500.41 [15:05:24]line НДС 12% НСП 1% [15:05:24]line > о реализуемом товаре [15:05:24]line ОКРУГЛЕНИЕ: -0.41 [15:05:24]line ИТОГО: 500.00 [15:05:24]line Внесено: 500.00 [15:05:24]line СДАЧА: 0.00 [15:05:24]line НСП 1% : 4.43 [15:05:24]line НДС 12% : 53.14 [15:05:24]line Наличными: 500.00 [15:05:24]line Безнал.: 0.00 [15:05:24]line Место: АЗС № 170 "Партнер Нефть" [15:05:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:05:24]line СНО: Общий режим [15:05:24]line Чек 195 25.10.2024 15:05 [15:05:24]line Смена: 540 ФФД: 1.0 [15:05:24]line ЗНМ: 0300000110 [15:05:24]line РНМ: 0000000000091776 [15:05:24]line Версия ККМ: 001 [15:05:24]line ФМ: 0000000000871754 [15:05:24]line ФД: 191456 [15:05:24]line ФПД: 275614729995540 [15:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191456&fm=275614729995540&tin=02508201610067®Number=0000000000091776&sum=50000 [15:05:24]OFD Sender: Processing packet 191456 [packets to send 75, broken 74] [15:05:24]ProducePacketName [15:05:24]name=ofd_packets/00191456 [15:05:24]OFD Sender: To server: pG, [15:05:24]CommunicateWithHost lk.salyk.kg:30040 [15:05:24]ConnectInit lk.salyk.kg [15:05:24]written 0, free lines is 4095 [15:05:24]Connected sock=10 [15:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC 1B 07 01 3C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 BC B3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EB 02 00 35 04 06 00 FA AB 8E 13 85 14 E9 87 23 34 33 66 7E E9 [15:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 B4 47 00 C7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EB 02 00 F4 03 04 00 8A 58 1B 67 B6 04 01 00 00 A0 E4 88 EA 58 FD CD AB [15:05:24]CommunicateWithHost err = 0 [15:05:24]CheckOFDResponse [15:05:24]1017 (14) - 77093643461234 [15:05:24]1041 (16) - 0000000000871754 [15:05:24]1040 (4) - 191456 [15:05:24]1012 (4) - 25.10.2024 08:36 [15:05:24]1206 (1) - 0 [15:05:24]OFD Sender: Remove packet 191456 [15:05:24]ProducePacketName [15:05:24]name=ofd_packets/00191456 [15:05:24]NVStorageDeleteData [15:05:24]Write to MH i2c: 01 00 00 D8 A5 7D [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 07 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: 01 07 00 D8 A5 00 00 00 00 00 AF 0C 3F [15:05:24]RasterBufferAndPrint [15:05:24]line [15:05:24]line [15:05:24]line [15:05:24]line [15:05:24]line [15:05:24]written 0, free lines is 3255 [15:05:24]MH_Cut [15:05:24]Write to MH i2c: D1 01 00 DF A5 01 56 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: D1 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: D1 01 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: D1 01 00 DF A5 00 55 [15:05:24]Write to MH i2c: 01 00 00 E0 A5 85 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:25]OFD Sender: No OFD packet to send [15:05:25]*** Cut start [15:05:25]*** Partial cut [15:05:25]*** CUTSNS_PIN = 1 [15:05:25]*** CUTSNS_PIN = 0 [15:05:26]*** Brake cut motor [15:05:26]Read from MH i2c: 01 [15:05:26]MH_I2C_Read... [15:05:26]*** Stop cut motor [15:05:26]*** Cut end [15:05:26]Read from MH i2c: 01 07 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: 01 07 00 E0 A5 00 00 00 00 00 FF 0F 9A [15:05:26]process_action close_receipt done [15:05:26]requested_data is exist [15:05:26]produce_requested_data [15:05:26]requested_item fm.sn is exist - process it [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 11 00 00 [15:05:26]Write to MH i2c: E2 08 00 E1 A5 80 11 00 00 00 00 00 00 00 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 17 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 17 00 E1 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [15:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:26]wFMCommunicate OK [15:05:26]requested_item fd.num is exist - process it [15:05:26]SAM_PROTO_GetFieldsCounters [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 00 00 [15:05:26]Write to MH i2c: E2 08 00 E2 A5 80 13 00 00 00 00 00 00 03 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 E2 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetFieldsCounters done [15:05:26]requested_item shift.num is exist - process it [15:05:26]requested_item shift.opened is exist - process it [15:05:26]req_shift_opened [15:05:26]FM_GetShiftState [15:05:26]SAM_PROTO_GetShiftState [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 01 00 [15:05:26]Write to MH i2c: E2 08 00 E3 A5 80 13 01 00 00 00 00 00 05 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 E3 A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C8 [15:05:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetShiftState done [15:05:26]FM_GetShiftState done [15:05:26]req_shift_opened done [15:05:26]requested_item shift.open_date is exist - process it [15:05:26]req_shift_open_date [15:05:26]req_shift_open_date done [15:05:26]produce_requested_data done [15:05:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191456,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:05:26]process_action_free close_receipt [15:05:26]json_value_free [15:05:26]json_value_free done [15:05:26]process_json_proto returns [15:05:26]Send response to host [15:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191456,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:05:26]free response buf [15:05:26]execute_script done [15:05:26]execute_script returns [15:05:26]free content buf [15:05:26]Sock 8.Close socket [15:05:26]Sock 8.Thread stoped [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:14]accept exits with 9 [15:08:14]New connection [15:08:14]New thread 3066817892 created [15:08:14]Thread 3066961252 joined [15:08:14]Waiting for new connection... [15:08:14] Sock 9.Parse request [15:08:14]Sock 9.Check first char [15:08:14]Sock 9.First char is OK [15:08:14]request: POST /json_proto HTTP/1.0 [15:08:14]Method: POST [15:08:14]URL: /json_proto [15:08:14]Method is POST - this is cgi request [15:08:14]url: /json_proto [15:08:14]query_string will be loaded in cgi processing [15:08:14]execute_cgi json_proto POST (null) [15:08:14]execute_cgi path=json_proto method=POST [15:08:14]POST find Content-Length [15:08:14]Host: 172.17.63.131:8080 [15:08:14]Content-Length: 678 [15:08:14]Content-Type: application/json [15:08:14] [15:08:14]POST finish read [15:08:14]Found Content-Length = 678 [15:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:08:14]execute_script... [15:08: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)30753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:08:14]POST & json_proto [15:08:14]process_json_proto [15:08:14]json parsed OK: [15:08:14]protocol is kg_v1.0 [15:08:14]action value=close_receipt [15:08:14]process_action close_receipt [15:08:14]cmd_close_receipt [15:08:14]MH_GetDate [15:08:14]Write to MH i2c: F0 00 00 E4 A5 78 [15:08:14]Write i2c OK [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 09 00 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 09 00 E4 A5 00 67 B4 1B 67 22 05 6E 64 17 [15:08:14]GetLastDocTimeStamp 1729868732 [15:08:14]current date 1729868903 [15:08:14]FM_GetShiftState [15:08:14]SAM_PROTO_GetShiftState [15:08:14]wFMCommunicate request_size=4 [15:08:14]MH_SAM_APDU [15:08:14]CAPDU: 80 13 01 00 [15:08:14]Write to MH i2c: E2 08 00 E5 A5 80 13 01 00 00 00 00 00 07 [15:08:14]Write i2c OK [15:08:14]MH_I2C_Read... [15:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:14]Read from MH i2c: E2 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: E2 0E 00 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: E2 0E 00 E5 A5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CA [15:08:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:08:14]wFMCommunicate OK [15:08:14]SAM_PROTO_GetShiftState done [15:08:14]FM_GetShiftState done [15:08:14]opened in 1729816399 [15:08:14]opened+sec_in_day 1729902799 [15:08:14]quantity*price = 150037 [15:08:14]sum+1 = 150039 [15:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 196 25.10.2024 15:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191457 ФПД: 130598019547978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150823&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191457&fm=130598019547978&tin=02508201610067®Number=0000000000091776&sum=150000 [15:08:15]StoreToDocumentArchive [15:08:15]shift 540 fd 191457 [15:08:15]save to /storage/0540/doc_00191457 [15:08:15]save last doc name /storage/0540/doc_00191457 to /storage/kkm_last_doc_name [15:08:15]save OK [15:08:15]Clear old archive folders... [15:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:15]tlvbuf is 016EB460 [15:08:15]SAM_PROTO_ClearQueue [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 09 00 00 [15:08:15]Write to MH i2c: E2 08 00 F2 A5 80 09 00 00 00 00 00 00 09 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F2 A5 00 90 00 0B [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_ClearQueue done [15:08:15]KKMCreateOFDPacket [15:08:15]OFDProtocolAddRootSTLVToBuf [15:08:15]FM_MakeSignedData [15:08:15]FM_MakeSignedData [15:08:15]SAM_PROTO_SignData [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 0D 01 02 [15:08:15]Write to MH i2c: E2 08 00 F3 A5 80 0D 01 02 00 00 00 00 11 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F3 A5 00 90 00 0C [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]wFMCommunicate request_size=255 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 67 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EB 02 00 35 04 06 00 76 C7 38 90 [15:08:15]Write to MH i2c: E2 02 01 F4 A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 C4 00 00 00 F4 03 04 00 67 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EB 02 00 35 04 06 00 76 C7 38 90 00 00 64 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]OFD Sender: No OFD packet to send [15:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F4 A5 00 90 00 0D [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]wFMCommunicate request_size=7 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 0D 02 02 02 43 4A [15:08:15]Write to MH i2c: E2 0A 00 F5 A5 80 0D 02 02 02 00 43 4A 00 00 A5 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F5 A5 00 90 00 0E [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 0D 03 02 [15:08:15]Write to MH i2c: E2 08 00 F6 A5 80 0D 03 02 00 00 00 00 16 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0B 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0B 00 F6 A5 00 01 B4 65 E0 1C 5C 8C 83 90 00 98 [15:08:15]RAPDU: 01 B4 65 E0 1C 5C 8C 83 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_SignData done [15:08:15]FM_MakeSignedData done [15:08:15]CreateOFDProtocolMessage [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 11 00 00 [15:08:15]Write to MH i2c: E2 08 00 F7 A5 80 11 00 00 00 00 00 00 16 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 17 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 17 00 F7 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [15:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:08:15]wFMCommunicate OK [15:08:15]CreateOFDProtocolMessage done [15:08:15]OFDSenderStorePacket 191457 [15:08:15]StoreOFDPacket docnum=191457 [15:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 09 10 04 01 8E 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 67 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EB 02 00 35 04 06 00 76 C7 38 90 43 4A 01 B4 65 E0 1C 5C 8C 83 [15:08:15]CheckFolder [15:08:15]dirname=/storage/ofd_packets [15:08:15]CheckFolder done [15:08:15]ProducePacketName [15:08:15]name=ofd_packets/00191457 [15:08:15]NVStorageSaveData ofd_packets/00191457 [15:08:15]File name is /storage/ofd_packets/00191457 [15:08:15]Write 298 bytes [15:08:15]NVStorageSaveData done [15:08:15]OFDSenderStorePacket done [15:08:15]KKMCreateOFDPacket done [15:08:15]NVStorageSaveData kkm_last_timestamp [15:08:15]File name is /storage/kkm_last_timestamp [15:08:15]Write 4 bytes [15:08:15]NVStorageSaveData done [15:08:15]ExternCall_PrintAddStr [15:08:15]wPrintStart [15:08:15]Write to MH i2c: 01 00 00 F8 A5 9D [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: 01 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: 01 07 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: 01 07 00 F8 A5 00 00 00 00 00 FF 0F B2 [15:08:15]RasterBufferAndPrint [15:08:15]line Счет N : (1)30753 [15:08:15]line ИНН: 02508201610067 [15:08:15]line Контрольно-Кассовый Чек [15:08:15]line ПРОДАЖА [15:08:15]line ТРК (МРК, ГНК) : 22 [15:08:15]line Товар: 2710194210 [15:08:15]line ДТ-К-5 [15:08:15]line 19.690 * 76.20 [15:08:15]line = 1500.38 [15:08:15]line НДС 12% НСП 1% [15:08:15]line > о реализуемом товаре [15:08:15]line ОКРУГЛЕНИЕ: -0.38 [15:08:15]line ИТОГО: 1500.00 [15:08:15]line Внесено: 1500.00 [15:08:15]line СДАЧА: 0.00 [15:08:15]line НСП 1% : 13.28 [15:08:15]line НДС 12% : 159.33 [15:08:15]line Наличными: 1500.00 [15:08:15]line Безнал.: 0.00 [15:08:15]line Место: АЗС № 170 "Партнер Нефть" [15:08:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:08:15]line СНО: Общий режим [15:08:15]line Чек 196 25.10.2024 15:08 [15:08:15]line Смена: 540 ФФД: 1.0 [15:08:15]line ЗНМ: 0300000110 [15:08:15]line РНМ: 0000000000091776 [15:08:15]line Версия ККМ: 001 [15:08:15]line ФМ: 0000000000871754 [15:08:15]line ФД: 191457 [15:08:15]line ФПД: 130598019547978 [15:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150823&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191457&fm=130598019547978&tin=02508201610067®Number=0000000000091776&sum=150000 [15:08:16]OFD Sender: Processing packet 191457 [packets to send 75, broken 74] [15:08:16]ProducePacketName [15:08:16]name=ofd_packets/00191457 [15:08:16]OFD Sender: To server: pG, [15:08:16]CommunicateWithHost lk.salyk.kg:30040 [15:08:16]ConnectInit lk.salyk.kg [15:08:16]written 0, free lines is 4095 [15:08:16]Connected sock=10 [15:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 09 10 04 01 8E 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 67 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EB 02 00 35 04 06 00 76 C7 38 90 43 4A 01 B4 65 E0 1C 5C 8C 83 [15:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5D C9 47 00 E3 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EB 02 00 F4 03 04 00 36 59 1B 67 B6 04 01 00 00 66 4C 1E 1B 88 A1 C7 D6 [15:08:16]CommunicateWithHost err = 0 [15:08:16]CheckOFDResponse [15:08:16]1017 (14) - 77093643461234 [15:08:16]1041 (16) - 0000000000871754 [15:08:16]1040 (4) - 191457 [15:08:16]1012 (4) - 25.10.2024 08:39 [15:08:16]1206 (1) - 0 [15:08:16]OFD Sender: Remove packet 191457 [15:08:16]ProducePacketName [15:08:16]name=ofd_packets/00191457 [15:08:16]NVStorageDeleteData [15:08:16]Write to MH i2c: 01 00 00 23 A6 C9 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 07 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 07 00 23 A6 00 00 00 00 00 BF 0C 9B [15:08:16]RasterBufferAndPrint [15:08:16]line [15:08:16]line [15:08:16]line [15:08:16]line [15:08:16]line [15:08:16]written 0, free lines is 3270 [15:08:16]MH_Cut [15:08:16]Write to MH i2c: D1 01 00 2A A6 01 A2 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: D1 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: D1 01 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: D1 01 00 2A A6 00 A1 [15:08:16]Write to MH i2c: 01 00 00 2B A6 D1 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:17]OFD Sender: No OFD packet to send [15:08:17]*** Cut start [15:08:17]*** Partial cut [15:08:17]*** CUTSNS_PIN = 1 [15:08:17]*** CUTSNS_PIN = 0 [15:08:17]*** Brake cut motor [15:08:18]Read from MH i2c: 01 [15:08:18]MH_I2C_Read... [15:08:18]*** Stop cut motor [15:08:18]*** Cut end [15:08:18]Read from MH i2c: 01 07 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 2B A6 00 00 00 00 00 FF 0F E6 [15:08:18]process_action close_receipt done [15:08:18]requested_data is exist [15:08:18]produce_requested_data [15:08:18]requested_item fm.sn is exist - process it [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 11 00 00 [15:08:18]Write to MH i2c: E2 08 00 2C A6 80 11 00 00 00 00 00 00 4C [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 2C A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [15:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:08:18]wFMCommunicate OK [15:08:18]requested_item fd.num is exist - process it [15:08:18]SAM_PROTO_GetFieldsCounters [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 13 00 00 [15:08:18]Write to MH i2c: E2 08 00 2D A6 80 13 00 00 00 00 00 00 4F [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 62 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 62 00 2D A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [15:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_GetFieldsCounters done [15:08:18]requested_item shift.num is exist - process it [15:08:18]requested_item shift.opened is exist - process it [15:08:18]req_shift_opened [15:08:18]FM_GetShiftState [15:08:18]SAM_PROTO_GetShiftState [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 13 01 00 [15:08:18]Write to MH i2c: E2 08 00 2E A6 80 13 01 00 00 00 00 00 51 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0E 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0E 00 2E A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 14 [15:08:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_GetShiftState done [15:08:18]FM_GetShiftState done [15:08:18]req_shift_opened done [15:08:18]requested_item shift.open_date is exist - process it [15:08:18]req_shift_open_date [15:08:18]req_shift_open_date done [15:08:18]produce_requested_data done [15:08:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191457,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:08:18]process_action_free close_receipt [15:08:18]json_value_free [15:08:18]json_value_free done [15:08:18]process_json_proto returns [15:08:18]Send response to host [15:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191457,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:08:18]free response buf [15:08:18]execute_script done [15:08:18]execute_script returns [15:08:18]free content buf [15:08:18]Sock 9.Close socket [15:08:18]Sock 9.Thread stoped [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:40]accept exits with 8 [15:08:40]New connection [15:08:40]New thread 3066961252 created [15:08:40]Thread 3066817892 joined [15:08:40]Waiting for new connection... [15:08:40] Sock 8.Parse request [15:08:40]Sock 8.Check first char [15:08:40]Sock 8.First char is OK [15:08:40]request: POST /json_proto HTTP/1.0 [15:08:40]Method: POST [15:08:40]URL: /json_proto [15:08:40]Method is POST - this is cgi request [15:08:40]url: /json_proto [15:08:40]query_string will be loaded in cgi processing [15:08:40]execute_cgi json_proto POST (null) [15:08:40]execute_cgi path=json_proto method=POST [15:08:40]POST find Content-Length [15:08:40]Host: 172.17.63.131:8080 [15:08:40]Content-Length: 977 [15:08:40]Content-Type: application/json [15:08:40] [15:08:40]POST finish read [15:08:40]Found Content-Length = 977 [15:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 30.590, "sum" : 2300.37, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.59 \u0441\u043E\u043C", "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:40]execute_script... [15:08: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)30751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 30.590, "sum" : 2300.37, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.59 \u0441\u043E\u043C", "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:40]POST & json_proto [15:08:40]process_json_proto [15:08:40]json parsed OK: [15:08:40]protocol is kg_v1.0 [15:08:40]action value=close_receipt [15:08:40]process_action close_receipt [15:08:40]cmd_close_receipt [15:08:40]MH_GetDate [15:08:40]Write to MH i2c: F0 00 00 2F A6 C4 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 09 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 09 00 2F A6 00 82 B4 1B 67 22 05 6E 64 7E [15:08:40]GetLastDocTimeStamp 1729868903 [15:08:40]current date 1729868930 [15:08:40]FM_GetShiftState [15:08:40]SAM_PROTO_GetShiftState [15:08:40]wFMCommunicate request_size=4 [15:08:40]MH_SAM_APDU [15:08:40]CAPDU: 80 13 01 00 [15:08:40]Write to MH i2c: E2 08 00 30 A6 80 13 01 00 00 00 00 00 53 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:40]Read from MH i2c: E2 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 30 A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 16 [15:08:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:08:40]wFMCommunicate OK [15:08:40]SAM_PROTO_GetShiftState done [15:08:40]FM_GetShiftState done [15:08:40]opened in 1729816399 [15:08:40]opened+sec_in_day 1729902799 [15:08:40]quantity*price = 230036 [15:08:40]sum+1 = 230038 [15:08:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.36 НДС 12% : 244.29 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 197 25.10.2024 15:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 30.59 сом ФМ: 0000000000871754 ФД: 191458 ФПД: 153365254800972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191458&fm=153365254800972&tin=02508201610067®Number=0000000000091776&sum=230000 [15:08:42]StoreToDocumentArchive [15:08:42]shift 540 fd 191458 [15:08:42]save to /storage/0540/doc_00191458 [15:08:42]save last doc name /storage/0540/doc_00191458 to /storage/kkm_last_doc_name [15:08:42]save OK [15:08:42]Clear old archive folders... [15:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:42]tlvbuf is 016011D0 [15:08:42]SAM_PROTO_ClearQueue [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 09 00 00 [15:08:42]Write to MH i2c: E2 08 00 3D A6 80 09 00 00 00 00 00 00 55 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 3D A6 00 90 00 57 [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_ClearQueue done [15:08:42]KKMCreateOFDPacket [15:08:42]OFDProtocolAddRootSTLVToBuf [15:08:42]FM_MakeSignedData [15:08:42]FM_MakeSignedData [15:08:42]SAM_PROTO_SignData [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 01 02 [15:08:42]Write to MH i2c: E2 08 00 3E A6 80 0D 01 02 00 00 00 00 5D [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]OFD Sender: No OFD packet to send [15:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 3E A6 00 90 00 58 [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=255 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 95 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 6D 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EB 02 00 35 04 06 00 8B 7C 21 88 [15:08:42]Write to MH i2c: E2 02 01 3F A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 95 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 6D 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EB 02 00 35 04 06 00 8B 7C 21 88 00 00 16 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 3F A6 00 90 00 59 [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=7 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 02 02 02 86 4C [15:08:42]Write to MH i2c: E2 0A 00 40 A6 80 0D 02 02 02 00 86 4C 00 00 36 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 40 A6 00 90 00 5A [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 03 02 [15:08:42]Write to MH i2c: E2 08 00 41 A6 80 0D 03 02 00 00 00 00 62 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0B 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0B 00 41 A6 00 DF 95 1F E2 E4 AD B6 20 90 00 3F [15:08:42]RAPDU: DF 95 1F E2 E4 AD B6 20 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_SignData done [15:08:42]FM_MakeSignedData done [15:08:42]CreateOFDProtocolMessage [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 11 00 00 [15:08:42]Write to MH i2c: E2 08 00 42 A6 80 11 00 00 00 00 00 00 62 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 42 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [15:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:08:42]wFMCommunicate OK [15:08:42]CreateOFDProtocolMessage done [15:08:42]OFDSenderStorePacket 191458 [15:08:42]StoreOFDPacket docnum=191458 [15:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 25 4D 04 01 AC 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 95 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 6D 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EB 02 00 35 04 06 00 8B 7C 21 88 86 4C DF 95 1F E2 E4 AD B6 20 [15:08:42]CheckFolder [15:08:42]dirname=/storage/ofd_packets [15:08:42]CheckFolder done [15:08:42]ProducePacketName [15:08:42]name=ofd_packets/00191458 [15:08:42]NVStorageSaveData ofd_packets/00191458 [15:08:42]File name is /storage/ofd_packets/00191458 [15:08:42]Write 298 bytes [15:08:42]NVStorageSaveData done [15:08:42]OFDSenderStorePacket done [15:08:42]KKMCreateOFDPacket done [15:08:42]NVStorageSaveData kkm_last_timestamp [15:08:42]File name is /storage/kkm_last_timestamp [15:08:42]Write 4 bytes [15:08:42]NVStorageSaveData done [15:08:42]ExternCall_PrintAddStr [15:08:42]wPrintStart [15:08:42]Write to MH i2c: 01 00 00 43 A6 E9 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 43 A6 00 00 00 00 00 FF 0F FE [15:08:42]RasterBufferAndPrint [15:08:42]line Счет N : (1)30751 [15:08:42]line ИНН: 02508201610067 [15:08:42]line Контрольно-Кассовый Чек [15:08:42]line ПРОДАЖА [15:08:42]line ТРК (МРК, ГНК) : 11 [15:08:42]line Товар: 2710194210 [15:08:42]line ДТ-К-5 [15:08:42]line 30.590 * 75.20 [15:08:42]line = 2300.37 [15:08:42]line НДС 12% НСП 1% [15:08:42]line > о реализуемом товаре [15:08:42]line ОКРУГЛЕНИЕ: -0.37 [15:08:42]line ИТОГО: 2300.00 [15:08:42]line Внесено: 2300.00 [15:08:42]line СДАЧА: 0.00 [15:08:42]line НСП 1% : 20.36 [15:08:42]line НДС 12% : 244.29 [15:08:42]line Наличными: 2300.00 [15:08:42]line Безнал.: 0.00 [15:08:42]line Место: АЗС № 170 "Партнер Нефть" [15:08:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:08:42]line СНО: Общий режим [15:08:42]line Чек 197 25.10.2024 15:08 [15:08:42]line Смена: 540 ФФД: 1.0 [15:08:42]line ЗНМ: 0300000110 [15:08:42]line РНМ: 0000000000091776 [15:08:42]line Версия ККМ: 001 [15:08:42]line [15:08:42]line Дисконтная программа [15:08:42]line ДТ [15:08:42]line номер 170 [15:08:42]line сэкономлено 30.59 сом [15:08:42]line ФМ: 0000000000871754 [15:08:42]line ФД: 191458 [15:08:42]line ФПД: 153365254800972 [15:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T150850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191458&fm=153365254800972&tin=02508201610067®Number=0000000000091776&sum=230000 [15:08:42]OFD Sender: Processing packet 191458 [packets to send 75, broken 74] [15:08:42]ProducePacketName [15:08:42]name=ofd_packets/00191458 [15:08:42]OFD Sender: To server: pG, [15:08:42]CommunicateWithHost lk.salyk.kg:30040 [15:08:42]ConnectInit lk.salyk.kg [15:08:42]written 0, free lines is 4095 [15:08:43]Connected sock=10 [15:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 25 4D 04 01 AC 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 95 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 6D 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EB 02 00 35 04 06 00 8B 7C 21 88 86 4C DF 95 1F E2 E4 AD B6 20 [15:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 94 47 00 B3 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EB 02 00 F4 03 04 00 50 59 1B 67 B6 04 01 00 00 4C B4 A8 49 F1 03 5A C5 [15:08:43]CommunicateWithHost err = 0 [15:08:43]CheckOFDResponse [15:08:43]1017 (14) - 77093643461234 [15:08:43]1041 (16) - 0000000000871754 [15:08:43]1040 (4) - 191458 [15:08:43]1012 (4) - 25.10.2024 08:39 [15:08:43]1206 (1) - 0 [15:08:43]OFD Sender: Remove packet 191458 [15:08:43]ProducePacketName [15:08:43]name=ofd_packets/00191458 [15:08:43]NVStorageDeleteData [15:08:43]Write to MH i2c: 01 00 00 73 A6 19 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: 01 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: 01 07 00 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: 01 07 00 73 A6 00 00 00 00 00 62 0C 8E [15:08:43]RasterBufferAndPrint [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]written 0, free lines is 3177 [15:08:43]MH_Cut [15:08:43]Write to MH i2c: D1 01 00 7A A6 01 F2 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 01 00 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 01 00 7A A6 00 F1 [15:08:43]Write to MH i2c: 01 00 00 7B A6 21 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]OFD Sender: No OFD packet to send [15:08:44]*** Cut start [15:08:44]*** Partial cut [15:08:44]*** CUTSNS_PIN = 1 [15:08:44]*** CUTSNS_PIN = 0 [15:08:44]*** Brake cut motor [15:08:44]Read from MH i2c: 01 [15:08:44]MH_I2C_Read... [15:08:44]*** Stop cut motor [15:08:44]*** Cut end [15:08:44]Read from MH i2c: 01 07 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: 01 07 00 7B A6 00 00 00 00 00 FF 0F 36 [15:08:44]process_action close_receipt done [15:08:44]requested_data is exist [15:08:44]produce_requested_data [15:08:44]requested_item fm.sn is exist - process it [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 11 00 00 [15:08:44]Write to MH i2c: E2 08 00 7C A6 80 11 00 00 00 00 00 00 9C [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 7C A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [15:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:08:44]wFMCommunicate OK [15:08:44]requested_item fd.num is exist - process it [15:08:44]SAM_PROTO_GetFieldsCounters [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 13 00 00 [15:08:44]Write to MH i2c: E2 08 00 7D A6 80 13 00 00 00 00 00 00 9F [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 62 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 62 00 7D A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_GetFieldsCounters done [15:08:45]requested_item shift.num is exist - process it [15:08:45]requested_item shift.opened is exist - process it [15:08:45]req_shift_opened [15:08:45]FM_GetShiftState [15:08:45]SAM_PROTO_GetShiftState [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 13 01 00 [15:08:45]Write to MH i2c: E2 08 00 7E A6 80 13 01 00 00 00 00 00 A1 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 7E A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 64 [15:08:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_GetShiftState done [15:08:45]FM_GetShiftState done [15:08:45]req_shift_opened done [15:08:45]requested_item shift.open_date is exist - process it [15:08:45]req_shift_open_date [15:08:45]req_shift_open_date done [15:08:45]produce_requested_data done [15:08:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191458,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:08:45]process_action_free close_receipt [15:08:45]json_value_free [15:08:45]json_value_free done [15:08:45]process_json_proto returns [15:08:45]Send response to host [15:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191458,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:08:45]free response buf [15:08:45]execute_script done [15:08:45]execute_script returns [15:08:45]free content buf [15:08:45]Sock 8.Close socket [15:08:45]Sock 8.Thread stoped [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:02]accept exits with 9 [15:10:02]New connection [15:10:02]New thread 3066817892 created [15:10:02]Thread 3066961252 joined [15:10:02]Waiting for new connection... [15:10:02] Sock 9.Parse request [15:10:02]Sock 9.Check first char [15:10:02]Sock 9.First char is OK [15:10:02]request: POST /json_proto HTTP/1.0 [15:10:02]Method: POST [15:10:02]URL: /json_proto [15:10:02]Method is POST - this is cgi request [15:10:02]url: /json_proto [15:10:02]query_string will be loaded in cgi processing [15:10:02]execute_cgi json_proto POST (null) [15:10:02]execute_cgi path=json_proto method=POST [15:10:02]POST find Content-Length [15:10:02]Host: 172.17.63.131:8080 [15:10:02]Content-Length: 678 [15:10:02]Content-Type: application/json [15:10:02] [15:10:02]POST finish read [15:10:02]Found Content-Length = 678 [15:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]execute_script... [15:10: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)30754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]POST & json_proto [15:10:02]process_json_proto [15:10:02]json parsed OK: [15:10:02]protocol is kg_v1.0 [15:10:02]action value=close_receipt [15:10:02]process_action close_receipt [15:10:02]cmd_close_receipt [15:10:02]MH_GetDate [15:10:02]Write to MH i2c: F0 00 00 7F A6 14 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 7F A6 00 D4 B4 1B 67 22 05 6E 64 20 [15:10:02]GetLastDocTimeStamp 1729868930 [15:10:02]current date 1729869012 [15:10:02]FM_GetShiftState [15:10:02]SAM_PROTO_GetShiftState [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 13 01 00 [15:10:02]Write to MH i2c: E2 08 00 80 A6 80 13 01 00 00 00 00 00 A3 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 80 A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 66 [15:10:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_GetShiftState done [15:10:02]FM_GetShiftState done [15:10:02]opened in 1729816399 [15:10:02]opened+sec_in_day 1729902799 [15:10:02]quantity*price = 100050 [15:10:02]sum+1 = 100052 [15:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 198 25.10.2024 15:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191459 ФПД: 4005546876300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191459&fm=4005546876300&tin=02508201610067®Number=0000000000091776&sum=100000 [15:10:03]StoreToDocumentArchive [15:10:03]shift 540 fd 191459 [15:10:03]save to /storage/0540/doc_00191459 [15:10:03]save last doc name /storage/0540/doc_00191459 to /storage/kkm_last_doc_name [15:10:03]save OK [15:10:03]Clear old archive folders... [15:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:03]tlvbuf is 0160B3F0 [15:10:03]SAM_PROTO_ClearQueue [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 09 00 00 [15:10:03]Write to MH i2c: E2 08 00 8D A6 80 09 00 00 00 00 00 00 A5 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 8D A6 00 90 00 A7 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]SAM_PROTO_ClearQueue done [15:10:04]KKMCreateOFDPacket [15:10:04]OFDProtocolAddRootSTLVToBuf [15:10:04]FM_MakeSignedData [15:10:04]FM_MakeSignedData [15:10:04]SAM_PROTO_SignData [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 01 02 [15:10:04]Write to MH i2c: E2 08 00 8E A6 80 0D 01 02 00 00 00 00 AD [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 8E A6 00 90 00 A8 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=255 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 D4 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EB 02 00 35 04 06 00 03 A4 9D 32 [15:10:04]Write to MH i2c: E2 02 01 8F A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 D4 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EB 02 00 35 04 06 00 03 A4 9D 32 00 00 6B [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 8F A6 00 90 00 A9 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=7 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 02 02 02 DD 8C [15:10:04]Write to MH i2c: E2 0A 00 90 A6 80 0D 02 02 02 00 DD 8C 00 00 1D [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 90 A6 00 90 00 AA [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 03 02 [15:10:04]Write to MH i2c: E2 08 00 91 A6 80 0D 03 02 00 00 00 00 B2 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 91 A6 00 1E 2D EB 0C F1 70 31 E3 90 00 6A [15:10:04]RAPDU: 1E 2D EB 0C F1 70 31 E3 90 00 [15:10:04]wFMCommunicate OK [15:10:04]SAM_PROTO_SignData done [15:10:04]FM_MakeSignedData done [15:10:04]CreateOFDProtocolMessage [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 11 00 00 [15:10:04]Write to MH i2c: E2 08 00 92 A6 80 11 00 00 00 00 00 00 B2 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 17 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 17 00 92 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [15:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:04]wFMCommunicate OK [15:10:04]CreateOFDProtocolMessage done [15:10:04]OFDSenderStorePacket 191459 [15:10:04]StoreOFDPacket docnum=191459 [15:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9B F0 04 01 32 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 D4 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EB 02 00 35 04 06 00 03 A4 9D 32 DD 8C 1E 2D EB 0C F1 70 31 E3 [15:10:04]CheckFolder [15:10:04]dirname=/storage/ofd_packets [15:10:04]CheckFolder done [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00191459 [15:10:04]NVStorageSaveData ofd_packets/00191459 [15:10:04]File name is /storage/ofd_packets/00191459 [15:10:04]Write 298 bytes [15:10:04]NVStorageSaveData done [15:10:04]OFDSenderStorePacket done [15:10:04]KKMCreateOFDPacket done [15:10:04]NVStorageSaveData kkm_last_timestamp [15:10:04]File name is /storage/kkm_last_timestamp [15:10:04]Write 4 bytes [15:10:04]NVStorageSaveData done [15:10:04]ExternCall_PrintAddStr [15:10:04]wPrintStart [15:10:04]Write to MH i2c: 01 00 00 93 A6 39 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 93 A6 00 00 00 00 00 FF 0F 4E [15:10:04]RasterBufferAndPrint [15:10:04]line Счет N : (1)30754 [15:10:04]line ИНН: 02508201610067 [15:10:04]line Контрольно-Кассовый Чек [15:10:04]line ПРОДАЖА [15:10:04]line ТРК (МРК, ГНК) : 22 [15:10:04]line Товар: 2710194210 [15:10:04]line ДТ-К-5 [15:10:04]line 13.130 * 76.20 [15:10:04]line = 1000.51 [15:10:04]line НДС 12% НСП 1% [15:10:04]line > о реализуемом товаре [15:10:04]line ОКРУГЛЕНИЕ: -0.51 [15:10:04]line ИТОГО: 1000.00 [15:10:04]line Внесено: 1000.00 [15:10:04]line СДАЧА: 0.00 [15:10:04]line НСП 1% : 8.85 [15:10:04]line НДС 12% : 106.25 [15:10:04]line Наличными: 1000.00 [15:10:04]line Безнал.: 0.00 [15:10:04]line Место: АЗС № 170 "Партнер Нефть" [15:10:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:10:04]line СНО: Общий режим [15:10:04]line Чек 198 25.10.2024 15:10 [15:10:04]line Смена: 540 ФФД: 1.0 [15:10:04]line ЗНМ: 0300000110 [15:10:04]line РНМ: 0000000000091776 [15:10:04]line Версия ККМ: 001 [15:10:04]line ФМ: 0000000000871754 [15:10:04]line ФД: 191459 [15:10:04]line ФПД: 4005546876300 [15:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191459&fm=4005546876300&tin=02508201610067®Number=0000000000091776&sum=100000 [15:10:04]OFD Sender: Processing packet 191459 [packets to send 75, broken 74] [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00191459 [15:10:04]OFD Sender: To server: pG, [15:10:04]CommunicateWithHost lk.salyk.kg:30040 [15:10:04]ConnectInit lk.salyk.kg [15:10:04]written 0, free lines is 4095 [15:10:04]Connected sock=10 [15:10:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9B F0 04 01 32 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 D4 B4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EB 02 00 35 04 06 00 03 A4 9D 32 DD 8C 1E 2D EB 0C F1 70 31 E3 [15:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1B 10 47 00 6A 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EB 02 00 F4 03 04 00 A2 59 1B 67 B6 04 01 00 00 B3 79 B4 39 9F 5B 3D 26 [15:10:05]CommunicateWithHost err = 0 [15:10:05]CheckOFDResponse [15:10:05]1017 (14) - 77093643461234 [15:10:05]1041 (16) - 0000000000871754 [15:10:05]1040 (4) - 191459 [15:10:05]1012 (4) - 25.10.2024 08:41 [15:10:05]1206 (1) - 0 [15:10:05]OFD Sender: Remove packet 191459 [15:10:05]ProducePacketName [15:10:05]name=ofd_packets/00191459 [15:10:05]NVStorageDeleteData [15:10:05]Write to MH i2c: 01 00 00 BE A6 64 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 BE A6 00 00 00 00 00 B0 0C 27 [15:10:05]RasterBufferAndPrint [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]written 0, free lines is 3255 [15:10:05]MH_Cut [15:10:05]Write to MH i2c: D1 01 00 C5 A6 01 3D [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 01 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 01 00 C5 A6 00 3C [15:10:05]Write to MH i2c: 01 00 00 C6 A6 6C [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]OFD Sender: No OFD packet to send [15:10:06]*** Cut start [15:10:06]*** Partial cut [15:10:06]*** CUTSNS_PIN = 1 [15:10:06]*** CUTSNS_PIN = 0 [15:10:06]*** Brake cut motor [15:10:06]Read from MH i2c: 01 [15:10:06]MH_I2C_Read... [15:10:06]*** Stop cut motor [15:10:06]*** Cut end [15:10:06]Read from MH i2c: 01 07 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: 01 07 00 C6 A6 00 00 00 00 00 FF 0F 81 [15:10:06]process_action close_receipt done [15:10:06]requested_data is exist [15:10:06]produce_requested_data [15:10:06]requested_item fm.sn is exist - process it [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 11 00 00 [15:10:06]Write to MH i2c: E2 08 00 C7 A6 80 11 00 00 00 00 00 00 E7 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 C7 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [15:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:06]wFMCommunicate OK [15:10:06]requested_item fd.num is exist - process it [15:10:06]SAM_PROTO_GetFieldsCounters [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 00 00 [15:10:06]Write to MH i2c: E2 08 00 C8 A6 80 13 00 00 00 00 00 00 EA [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 C8 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetFieldsCounters done [15:10:06]requested_item shift.num is exist - process it [15:10:06]requested_item shift.opened is exist - process it [15:10:06]req_shift_opened [15:10:06]FM_GetShiftState [15:10:06]SAM_PROTO_GetShiftState [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 01 00 [15:10:06]Write to MH i2c: E2 08 00 C9 A6 80 13 01 00 00 00 00 00 EC [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 C9 A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AF [15:10:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetShiftState done [15:10:06]FM_GetShiftState done [15:10:06]req_shift_opened done [15:10:06]requested_item shift.open_date is exist - process it [15:10:06]req_shift_open_date [15:10:06]req_shift_open_date done [15:10:06]produce_requested_data done [15:10:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191459,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:10:06]process_action_free close_receipt [15:10:06]json_value_free [15:10:06]json_value_free done [15:10:06]process_json_proto returns [15:10:06]Send response to host [15:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191459,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:10:06]free response buf [15:10:06]execute_script done [15:10:06]execute_script returns [15:10:06]free content buf [15:10:07]Sock 9.Close socket [15:10:07]Sock 9.Thread stoped [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:06]accept exits with 8 [15:12:06]New connection [15:12:06]New thread 3066961252 created [15:12:06]Thread 3066817892 joined [15:12:06]Waiting for new connection... [15:12:06] Sock 8.Parse request [15:12:06]Sock 8.Check first char [15:12:06]Sock 8.First char is OK [15:12:06]request: POST /json_proto HTTP/1.0 [15:12:06]Method: POST [15:12:06]URL: /json_proto [15:12:06]Method is POST - this is cgi request [15:12:06]url: /json_proto [15:12:06]query_string will be loaded in cgi processing [15:12:06]execute_cgi json_proto POST (null) [15:12:06]execute_cgi path=json_proto method=POST [15:12:06]POST find Content-Length [15:12:06]Host: 172.17.63.131:8080 [15:12:06]Content-Length: 678 [15:12:06]Content-Type: application/json [15:12:06] [15:12:06]POST finish read [15:12:06]Found Content-Length = 678 [15:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:12:06]execute_script... [15:12: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)30755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:12:06]POST & json_proto [15:12:06]process_json_proto [15:12:06]json parsed OK: [15:12:06]protocol is kg_v1.0 [15:12:06]action value=close_receipt [15:12:06]process_action close_receipt [15:12:06]cmd_close_receipt [15:12:06]MH_GetDate [15:12:06]Write to MH i2c: F0 00 00 CA A6 5F [15:12:06]Write i2c OK [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: F0 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: F0 09 00 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: F0 09 00 CA A6 00 4F B5 1B 67 22 05 6E 64 E7 [15:12:06]GetLastDocTimeStamp 1729869012 [15:12:06]current date 1729869135 [15:12:06]FM_GetShiftState [15:12:06]SAM_PROTO_GetShiftState [15:12:06]wFMCommunicate request_size=4 [15:12:06]MH_SAM_APDU [15:12:06]CAPDU: 80 13 01 00 [15:12:06]Write to MH i2c: E2 08 00 CB A6 80 13 01 00 00 00 00 00 EE [15:12:06]Write i2c OK [15:12:06]MH_I2C_Read... [15:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:06]Read from MH i2c: E2 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 0E 00 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 0E 00 CB A6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B1 [15:12:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:06]wFMCommunicate OK [15:12:06]SAM_PROTO_GetShiftState done [15:12:06]FM_GetShiftState done [15:12:06]opened in 1729816399 [15:12:06]opened+sec_in_day 1729902799 [15:12:06]quantity*price = 200025 [15:12:06]sum+1 = 200026 [15:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 199 25.10.2024 15:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191460 ФПД: 148168295559134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151215&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191460&fm=148168295559134&tin=02508201610067®Number=0000000000091776&sum=200000 [15:12:07]StoreToDocumentArchive [15:12:07]shift 540 fd 191460 [15:12:07]save to /storage/0540/doc_00191460 [15:12:07]save last doc name /storage/0540/doc_00191460 to /storage/kkm_last_doc_name [15:12:07]save OK [15:12:07]Clear old archive folders... [15:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:12:07]tlvbuf is 01830F90 [15:12:07]SAM_PROTO_ClearQueue [15:12:07]wFMCommunicate request_size=4 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 09 00 00 [15:12:07]Write to MH i2c: E2 08 00 D8 A6 80 09 00 00 00 00 00 00 F0 [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 D8 A6 00 90 00 F2 [15:12:07]RAPDU: 90 00 [15:12:07]wFMCommunicate OK [15:12:07]SAM_PROTO_ClearQueue done [15:12:07]KKMCreateOFDPacket [15:12:07]OFDProtocolAddRootSTLVToBuf [15:12:07]FM_MakeSignedData [15:12:07]FM_MakeSignedData [15:12:07]SAM_PROTO_SignData [15:12:07]wFMCommunicate request_size=4 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 0D 01 02 [15:12:07]Write to MH i2c: E2 08 00 D9 A6 80 0D 01 02 00 00 00 00 F8 [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 D9 A6 00 90 00 F3 [15:12:07]RAPDU: 90 00 [15:12:07]wFMCommunicate OK [15:12:07]wFMCommunicate request_size=255 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C7 00 00 00 F4 03 04 00 4F B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EB 02 00 35 04 06 00 86 C2 1E 9F [15:12:07]Write to MH i2c: E2 02 01 DA A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 4F B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EB 02 00 35 04 06 00 86 C2 1E 9F 00 00 B1 [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 DA A6 00 90 00 F4 [15:12:07]RAPDU: 90 00 [15:12:07]wFMCommunicate OK [15:12:07]wFMCommunicate request_size=7 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 0D 02 02 02 AF DE [15:12:07]Write to MH i2c: E2 0A 00 DB A6 80 0D 02 02 02 00 AF DE 00 00 8C [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 03 00 DB A6 00 90 00 F5 [15:12:07]RAPDU: 90 00 [15:12:07]wFMCommunicate OK [15:12:07]wFMCommunicate request_size=4 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 0D 03 02 [15:12:07]Write to MH i2c: E2 08 00 DC A6 80 0D 03 02 00 00 00 00 FD [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 0B 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 0B 00 DC A6 00 11 27 F8 1B DE 66 51 35 90 00 13 [15:12:07]RAPDU: 11 27 F8 1B DE 66 51 35 90 00 [15:12:07]wFMCommunicate OK [15:12:07]SAM_PROTO_SignData done [15:12:07]FM_MakeSignedData done [15:12:07]CreateOFDProtocolMessage [15:12:07]wFMCommunicate request_size=4 [15:12:07]MH_SAM_APDU [15:12:07]CAPDU: 80 11 00 00 [15:12:07]Write to MH i2c: E2 08 00 DD A6 80 11 00 00 00 00 00 00 FD [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 17 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 17 00 DD A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [15:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:07]wFMCommunicate OK [15:12:07]CreateOFDProtocolMessage done [15:12:07]OFDSenderStorePacket 191460 [15:12:07]StoreOFDPacket docnum=191460 [15:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B5 0F 04 01 AF 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 4F B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EB 02 00 35 04 06 00 86 C2 1E 9F AF DE 11 27 F8 1B DE 66 51 35 [15:12:07]CheckFolder [15:12:07]dirname=/storage/ofd_packets [15:12:07]CheckFolder done [15:12:07]ProducePacketName [15:12:07]name=ofd_packets/00191460 [15:12:07]NVStorageSaveData ofd_packets/00191460 [15:12:07]File name is /storage/ofd_packets/00191460 [15:12:07]Write 298 bytes [15:12:07]NVStorageSaveData done [15:12:07]OFDSenderStorePacket done [15:12:07]KKMCreateOFDPacket done [15:12:07]NVStorageSaveData kkm_last_timestamp [15:12:07]File name is /storage/kkm_last_timestamp [15:12:07]Write 4 bytes [15:12:07]NVStorageSaveData done [15:12:07]ExternCall_PrintAddStr [15:12:07]wPrintStart [15:12:07]Write to MH i2c: 01 00 00 DE A6 84 [15:12:07]Write i2c OK [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: 01 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: 01 07 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: 01 07 00 DE A6 00 00 00 00 00 FF 0F 99 [15:12:07]RasterBufferAndPrint [15:12:07]line Счет N : (1)30755 [15:12:07]line ИНН: 02508201610067 [15:12:07]line Контрольно-Кассовый Чек [15:12:07]line ПРОДАЖА [15:12:07]line ТРК (МРК, ГНК) : 11 [15:12:07]line Товар: 2710194210 [15:12:07]line ДТ-К-5 [15:12:07]line 26.250 * 76.20 [15:12:07]line = 2000.25 [15:12:07]line НДС 12% НСП 1% [15:12:07]line > о реализуемом товаре [15:12:07]line ОКРУГЛЕНИЕ: -0.25 [15:12:07]line ИТОГО: 2000.00 [15:12:07]line Внесено: 2000.00 [15:12:07]line СДАЧА: 0.00 [15:12:07]line НСП 1% : 17.70 [15:12:07]line НДС 12% : 212.42 [15:12:07]line Наличными: 2000.00 [15:12:07]line Безнал.: 0.00 [15:12:07]line Место: АЗС № 170 "Партнер Нефть" [15:12:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:12:07]line СНО: Общий режим [15:12:07]line Чек 199 25.10.2024 15:12 [15:12:07]line Смена: 540 ФФД: 1.0 [15:12:07]line ЗНМ: 0300000110 [15:12:07]line РНМ: 0000000000091776 [15:12:07]line Версия ККМ: 001 [15:12:07]line ФМ: 0000000000871754 [15:12:07]line ФД: 191460 [15:12:07]line ФПД: 148168295559134 [15:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151215&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191460&fm=148168295559134&tin=02508201610067®Number=0000000000091776&sum=200000 [15:12:08]OFD Sender: Processing packet 191460 [packets to send 75, broken 74] [15:12:08]ProducePacketName [15:12:08]name=ofd_packets/00191460 [15:12:08]OFD Sender: To server: pG, [15:12:08]CommunicateWithHost lk.salyk.kg:30040 [15:12:08]ConnectInit lk.salyk.kg [15:12:08]written 0, free lines is 4095 [15:12:08]Connected sock=10 [15:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B5 0F 04 01 AF 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 4F B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EB 02 00 35 04 06 00 86 C2 1E 9F AF DE 11 27 F8 1B DE 66 51 35 [15:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 F8 47 00 06 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 31 37 35 34 10 04 04 00 E4 EB 02 00 F4 03 04 00 1D 5A 1B 67 B6 04 01 00 00 F2 51 C1 DA AF A6 CD 85 [15:12:08]CommunicateWithHost err = 0 [15:12:08]CheckOFDResponse [15:12:08]1017 (14) - 77093643461234 [15:12:08]1041 (16) - 0000000000871754 [15:12:08]1040 (4) - 191460 [15:12:08]1012 (4) - 25.10.2024 08:43 [15:12:08]1206 (1) - 0 [15:12:08]OFD Sender: Remove packet 191460 [15:12:08]ProducePacketName [15:12:08]name=ofd_packets/00191460 [15:12:08]NVStorageDeleteData [15:12:08]Write to MH i2c: 01 00 00 09 A7 B0 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 09 A7 00 00 00 00 00 B7 0C 7A [15:12:08]RasterBufferAndPrint [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]written 0, free lines is 3262 [15:12:08]MH_Cut [15:12:08]Write to MH i2c: D1 01 00 10 A7 01 89 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 10 A7 00 88 [15:12:08]Write to MH i2c: 01 00 00 11 A7 B8 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]OFD Sender: No OFD packet to send [15:12:09]*** Cut start [15:12:09]*** Partial cut [15:12:09]*** CUTSNS_PIN = 1 [15:12:09]*** CUTSNS_PIN = 0 [15:12:09]*** Brake cut motor [15:12:09]Read from MH i2c: 01 [15:12:09]MH_I2C_Read... [15:12:09]*** Stop cut motor [15:12:09]*** Cut end [15:12:09]Read from MH i2c: 01 07 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 07 00 11 A7 00 00 00 00 00 FF 0F CD [15:12:09]process_action close_receipt done [15:12:09]requested_data is exist [15:12:09]produce_requested_data [15:12:09]requested_item fm.sn is exist - process it [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 11 00 00 [15:12:09]Write to MH i2c: E2 08 00 12 A7 80 11 00 00 00 00 00 00 33 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 12 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [15:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:10]wFMCommunicate OK [15:12:10]requested_item fd.num is exist - process it [15:12:10]SAM_PROTO_GetFieldsCounters [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 13 00 00 [15:12:10]Write to MH i2c: E2 08 00 13 A7 80 13 00 00 00 00 00 00 36 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 62 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 62 00 13 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:10]wFMCommunicate OK [15:12:10]SAM_PROTO_GetFieldsCounters done [15:12:10]requested_item shift.num is exist - process it [15:12:10]requested_item shift.opened is exist - process it [15:12:10]req_shift_opened [15:12:10]FM_GetShiftState [15:12:10]SAM_PROTO_GetShiftState [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 13 01 00 [15:12:10]Write to MH i2c: E2 08 00 14 A7 80 13 01 00 00 00 00 00 38 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0E 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0E 00 14 A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FB [15:12:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:10]wFMCommunicate OK [15:12:10]SAM_PROTO_GetShiftState done [15:12:10]FM_GetShiftState done [15:12:10]req_shift_opened done [15:12:10]requested_item shift.open_date is exist - process it [15:12:10]req_shift_open_date [15:12:10]req_shift_open_date done [15:12:10]produce_requested_data done [15:12:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191460,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:12:10]process_action_free close_receipt [15:12:10]json_value_free [15:12:10]json_value_free done [15:12:10]process_json_proto returns [15:12:10]Send response to host [15:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191460,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:12:10]free response buf [15:12:10]execute_script done [15:12:10]execute_script returns [15:12:10]free content buf [15:12:10]Sock 8.Close socket [15:12:10]Sock 8.Thread stoped [15:12:12]accept exits with 9 [15:12:12]New connection [15:12:12]New thread 3066817892 created [15:12:12]Thread 3066961252 joined [15:12:12]Waiting for new connection... [15:12:12] Sock 9.Parse request [15:12:12]Sock 9.Check first char [15:12:12]Sock 9.First char is OK [15:12:12]request: POST /json_proto HTTP/1.0 [15:12:12]Method: POST [15:12:12]URL: /json_proto [15:12:12]Method is POST - this is cgi request [15:12:12]url: /json_proto [15:12:12]query_string will be loaded in cgi processing [15:12:12]execute_cgi json_proto POST (null) [15:12:12]execute_cgi path=json_proto method=POST [15:12:12]POST find Content-Length [15:12:12]Host: 172.17.63.131:8080 [15:12:12]Content-Length: 676 [15:12:12]Content-Type: application/json [15:12:12] [15:12:12]POST finish read [15:12:12]Found Content-Length = 676 [15:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "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" ] } } [15:12:12]execute_script... [15:12: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)30757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "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" ] } } [15:12:12]POST & json_proto [15:12:12]process_json_proto [15:12:12]json parsed OK: [15:12:12]protocol is kg_v1.0 [15:12:12]action value=close_receipt [15:12:12]process_action close_receipt [15:12:12]cmd_close_receipt [15:12:12]MH_GetDate [15:12:12]Write to MH i2c: F0 00 00 15 A7 AB [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 09 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 09 00 15 A7 00 56 B5 1B 67 22 05 6E 64 3A [15:12:12]GetLastDocTimeStamp 1729869135 [15:12:12]current date 1729869142 [15:12:12]FM_GetShiftState [15:12:12]SAM_PROTO_GetShiftState [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 13 01 00 [15:12:12]Write to MH i2c: E2 08 00 16 A7 80 13 01 00 00 00 00 00 3A [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0E 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0E 00 16 A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FD [15:12:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:12]wFMCommunicate OK [15:12:12]SAM_PROTO_GetShiftState done [15:12:12]FM_GetShiftState done [15:12:12]opened in 1729816399 [15:12:12]opened+sec_in_day 1729902799 [15:12:12]quantity*price = 18063 [15:12:12]sum+1 = 18064 [15:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.18 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 200 25.10.2024 15:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191461 ФПД: 73411798423902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191461&fm=73411798423902&tin=02508201610067®Number=0000000000091776&sum=18000 [15:12:13]StoreToDocumentArchive [15:12:13]shift 540 fd 191461 [15:12:13]save to /storage/0540/doc_00191461 [15:12:13]save last doc name /storage/0540/doc_00191461 to /storage/kkm_last_doc_name [15:12:13]save OK [15:12:13]Clear old archive folders... [15:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:13]tlvbuf is 0175FF80 [15:12:13]SAM_PROTO_ClearQueue [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 09 00 00 [15:12:13]Write to MH i2c: E2 08 00 23 A7 80 09 00 00 00 00 00 00 3C [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 23 A7 00 90 00 3E [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]SAM_PROTO_ClearQueue done [15:12:13]KKMCreateOFDPacket [15:12:13]OFDProtocolAddRootSTLVToBuf [15:12:13]FM_MakeSignedData [15:12:13]FM_MakeSignedData [15:12:13]SAM_PROTO_SignData [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 01 02 [15:12:13]Write to MH i2c: E2 08 00 24 A7 80 0D 01 02 00 00 00 00 44 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 24 A7 00 90 00 3F [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]wFMCommunicate request_size=255 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 7E 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 C8 00 00 00 F4 03 04 00 56 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EB 02 00 35 04 06 00 42 [15:12:13]Write to MH i2c: E2 02 01 25 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 7E 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 C8 00 00 00 F4 03 04 00 56 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EB 02 00 35 04 06 00 42 00 00 D2 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]OFD Sender: No OFD packet to send [15:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 03 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 03 00 25 A7 00 90 00 40 [15:12:14]RAPDU: 90 00 [15:12:14]wFMCommunicate OK [15:12:14]wFMCommunicate request_size=10 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 0D 02 02 05 C4 84 2A D9 5E [15:12:14]Write to MH i2c: E2 0D 00 26 A7 80 0D 02 02 05 00 C4 84 2A D9 5E 00 00 FA [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 03 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 03 00 26 A7 00 90 00 41 [15:12:14]RAPDU: 90 00 [15:12:14]wFMCommunicate OK [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 0D 03 02 [15:12:14]Write to MH i2c: E2 08 00 27 A7 80 0D 03 02 00 00 00 00 49 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0B 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0B 00 27 A7 00 95 E4 01 93 17 E7 1C 88 90 00 F9 [15:12:14]RAPDU: 95 E4 01 93 17 E7 1C 88 90 00 [15:12:14]wFMCommunicate OK [15:12:14]SAM_PROTO_SignData done [15:12:14]FM_MakeSignedData done [15:12:14]CreateOFDProtocolMessage [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 11 00 00 [15:12:14]Write to MH i2c: E2 08 00 28 A7 80 11 00 00 00 00 00 00 49 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 17 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 17 00 28 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [15:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:14]wFMCommunicate OK [15:12:14]CreateOFDProtocolMessage done [15:12:14]OFDSenderStorePacket 191461 [15:12:14]StoreOFDPacket docnum=191461 [15:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 61 07 01 FF 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 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 7E 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 C8 00 00 00 F4 03 04 00 56 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EB 02 00 35 04 06 00 42 C4 84 2A D9 5E 95 E4 01 93 17 E7 1C 88 [15:12:14]CheckFolder [15:12:14]dirname=/storage/ofd_packets [15:12:14]CheckFolder done [15:12:14]ProducePacketName [15:12:14]name=ofd_packets/00191461 [15:12:14]NVStorageSaveData ofd_packets/00191461 [15:12:14]File name is /storage/ofd_packets/00191461 [15:12:14]Write 301 bytes [15:12:14]NVStorageSaveData done [15:12:14]OFDSenderStorePacket done [15:12:14]KKMCreateOFDPacket done [15:12:14]NVStorageSaveData kkm_last_timestamp [15:12:14]File name is /storage/kkm_last_timestamp [15:12:14]Write 4 bytes [15:12:14]NVStorageSaveData done [15:12:14]ExternCall_PrintAddStr [15:12:14]wPrintStart [15:12:14]Write to MH i2c: 01 00 00 29 A7 D0 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 29 A7 00 00 00 00 00 FF 0F E5 [15:12:14]RasterBufferAndPrint [15:12:14]line Счет N : (1)30757 [15:12:14]line ИНН: 02508201610067 [15:12:14]line Контрольно-Кассовый Чек [15:12:14]line ПРОДАЖА [15:12:14]line ТРК (МРК, ГНК) : 21 [15:12:14]line Товар: 2710124130 [15:12:14]line Аи-92-К-5 [15:12:14]line 2.700 * 66.90 [15:12:14]line = 180.63 [15:12:14]line НДС 12% НСП 1% [15:12:14]line > о реализуемом товаре [15:12:14]line ОКРУГЛЕНИЕ: -0.63 [15:12:14]line ИТОГО: 180.00 [15:12:14]line Внесено: 180.00 [15:12:14]line СДАЧА: 0.00 [15:12:14]line НСП 1% : 1.60 [15:12:14]line НДС 12% : 19.18 [15:12:14]line Наличными: 180.00 [15:12:14]line Безнал.: 0.00 [15:12:14]line Место: АЗС № 170 "Партнер Нефть" [15:12:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:12:14]line СНО: Общий режим [15:12:14]line Чек 200 25.10.2024 15:12 [15:12:14]line Смена: 540 ФФД: 1.0 [15:12:14]line ЗНМ: 0300000110 [15:12:14]line РНМ: 0000000000091776 [15:12:14]line Версия ККМ: 001 [15:12:14]line ФМ: 0000000000871754 [15:12:14]line ФД: 191461 [15:12:14]line ФПД: 73411798423902 [15:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191461&fm=73411798423902&tin=02508201610067®Number=0000000000091776&sum=18000 [15:12:14]written 0, free lines is 4095 [15:12:14]OFD Sender: Processing packet 191461 [packets to send 75, broken 74] [15:12:14]ProducePacketName [15:12:14]name=ofd_packets/00191461 [15:12:14]OFD Sender: To server: pG, [15:12:14]CommunicateWithHost lk.salyk.kg:30040 [15:12:14]ConnectInit lk.salyk.kg [15:12:14]Connected sock=10 [15:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 61 07 01 FF 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 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 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 7E 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 C8 00 00 00 F4 03 04 00 56 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EB 02 00 35 04 06 00 42 C4 84 2A D9 5E 95 E4 01 93 17 E7 1C 88 [15:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F D9 47 00 D8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EB 02 00 F4 03 04 00 24 5A 1B 67 B6 04 01 00 00 FF AA 4D D1 60 B2 4F 0A [15:12:14]CommunicateWithHost err = 0 [15:12:14]CheckOFDResponse [15:12:14]1017 (14) - 77093643461234 [15:12:14]1041 (16) - 0000000000871754 [15:12:14]1040 (4) - 191461 [15:12:14]1012 (4) - 25.10.2024 08:43 [15:12:14]1206 (1) - 0 [15:12:14]OFD Sender: Remove packet 191461 [15:12:14]ProducePacketName [15:12:14]name=ofd_packets/00191461 [15:12:14]NVStorageDeleteData [15:12:14]Write to MH i2c: 01 00 00 54 A7 FB [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 54 A7 00 00 00 00 00 C3 0C D1 [15:12:14]RasterBufferAndPrint [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]written 0, free lines is 3282 [15:12:14]MH_Cut [15:12:14]Write to MH i2c: D1 01 00 5B A7 01 D4 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 01 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 01 00 5B A7 00 D3 [15:12:14]Write to MH i2c: 01 00 00 5C A7 03 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:15]OFD Sender: No OFD packet to send [15:12:15]*** Cut start [15:12:15]*** Partial cut [15:12:15]*** CUTSNS_PIN = 1 [15:12:15]*** CUTSNS_PIN = 0 [15:12:15]*** Brake cut motor [15:12:16]Read from MH i2c: 01 [15:12:16]MH_I2C_Read... [15:12:16]*** Stop cut motor [15:12:16]*** Cut end [15:12:16]Read from MH i2c: 01 07 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 5C A7 00 00 00 00 00 FF 0F 18 [15:12:16]process_action close_receipt done [15:12:16]requested_data is exist [15:12:16]produce_requested_data [15:12:16]requested_item fm.sn is exist - process it [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 11 00 00 [15:12:16]Write to MH i2c: E2 08 00 5D A7 80 11 00 00 00 00 00 00 7E [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 5D A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [15:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:16]wFMCommunicate OK [15:12:16]requested_item fd.num is exist - process it [15:12:16]SAM_PROTO_GetFieldsCounters [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 13 00 00 [15:12:16]Write to MH i2c: E2 08 00 5E A7 80 13 00 00 00 00 00 00 81 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 62 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 62 00 5E A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:16]wFMCommunicate OK [15:12:16]SAM_PROTO_GetFieldsCounters done [15:12:16]requested_item shift.num is exist - process it [15:12:16]requested_item shift.opened is exist - process it [15:12:16]req_shift_opened [15:12:16]FM_GetShiftState [15:12:16]SAM_PROTO_GetShiftState [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 13 01 00 [15:12:16]Write to MH i2c: E2 08 00 5F A7 80 13 01 00 00 00 00 00 83 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0E 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0E 00 5F A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 46 [15:12:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:16]wFMCommunicate OK [15:12:16]SAM_PROTO_GetShiftState done [15:12:16]FM_GetShiftState done [15:12:16]req_shift_opened done [15:12:16]requested_item shift.open_date is exist - process it [15:12:16]req_shift_open_date [15:12:16]req_shift_open_date done [15:12:16]produce_requested_data done [15:12:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191461,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:12:16]process_action_free close_receipt [15:12:16]json_value_free [15:12:16]json_value_free done [15:12:16]process_json_proto returns [15:12:16]Send response to host [15:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191461,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:12:16]free response buf [15:12:16]execute_script done [15:12:16]execute_script returns [15:12:16]free content buf [15:12:16]Sock 9.Close socket [15:12:16]Sock 9.Thread stoped [15:12:16]accept exits with 8 [15:12:16]New connection [15:12:16]New thread 3066961252 created [15:12:16]Thread 3066817892 joined [15:12:16]Waiting for new connection... [15:12:16] Sock 8.Parse request [15:12:16]Sock 8.Check first char [15:12:16]Sock 8.First char is OK [15:12:16]request: POST /json_proto HTTP/1.0 [15:12:16]Method: POST [15:12:16]URL: /json_proto [15:12:16]Method is POST - this is cgi request [15:12:16]url: /json_proto [15:12:16]query_string will be loaded in cgi processing [15:12:16]execute_cgi json_proto POST (null) [15:12:16]execute_cgi path=json_proto method=POST [15:12:16]POST find Content-Length [15:12:16]Host: 172.17.63.131:8080 [15:12:16]Content-Length: 676 [15:12:16]Content-Type: application/json [15:12:16] [15:12:16]POST finish read [15:12:16]Found Content-Length = 676 [15:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:16]execute_script... [15:12: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)30756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:16]POST & json_proto [15:12:16]process_json_proto [15:12:16]json parsed OK: [15:12:16]protocol is kg_v1.0 [15:12:16]action value=close_receipt [15:12:16]process_action close_receipt [15:12:16]cmd_close_receipt [15:12:16]MH_GetDate [15:12:16]Write to MH i2c: F0 00 00 60 A7 F6 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: F0 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: F0 09 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: F0 09 00 60 A7 00 5A B5 1B 67 22 05 6E 64 89 [15:12:16]GetLastDocTimeStamp 1729869142 [15:12:16]current date 1729869146 [15:12:16]FM_GetShiftState [15:12:16]SAM_PROTO_GetShiftState [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 13 01 00 [15:12:16]Write to MH i2c: E2 08 00 61 A7 80 13 01 00 00 00 00 00 85 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:17]Read from MH i2c: E2 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: E2 0E 00 [15:12:17]MH_I2C_Read... [15:12:17]Read from MH i2c: E2 0E 00 61 A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 48 [15:12:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:17]wFMCommunicate OK [15:12:17]SAM_PROTO_GetShiftState done [15:12:17]FM_GetShiftState done [15:12:17]opened in 1729816399 [15:12:17]opened+sec_in_day 1729902799 [15:12:17]quantity*price = 60009 [15:12:17]sum+1 = 60010 [15:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 201 25.10.2024 15:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191462 ФПД: 110605010769778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151226&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191462&fm=110605010769778&tin=02508201610067®Number=0000000000091776&sum=60000 [15:12:18]StoreToDocumentArchive [15:12:18]shift 540 fd 191462 [15:12:18]save to /storage/0540/doc_00191462 [15:12:18]save last doc name /storage/0540/doc_00191462 to /storage/kkm_last_doc_name [15:12:18]save OK [15:12:18]Clear old archive folders... [15:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:18]tlvbuf is 0175F850 [15:12:18]SAM_PROTO_ClearQueue [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 09 00 00 [15:12:18]Write to MH i2c: E2 08 00 6E A7 80 09 00 00 00 00 00 00 87 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 6E A7 00 90 00 89 [15:12:18]RAPDU: 90 00 [15:12:18]wFMCommunicate OK [15:12:18]SAM_PROTO_ClearQueue done [15:12:18]KKMCreateOFDPacket [15:12:18]OFDProtocolAddRootSTLVToBuf [15:12:18]FM_MakeSignedData [15:12:18]FM_MakeSignedData [15:12:18]SAM_PROTO_SignData [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 0D 01 02 [15:12:18]Write to MH i2c: E2 08 00 6F A7 80 0D 01 02 00 00 00 00 8F [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 6F A7 00 90 00 8A [15:12:18]RAPDU: 90 00 [15:12:18]wFMCommunicate OK [15:12:18]wFMCommunicate request_size=255 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 5A B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EB 02 00 35 04 06 00 64 [15:12:18]Write to MH i2c: E2 02 01 70 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 5A B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EB 02 00 35 04 06 00 64 00 00 AF [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 70 A7 00 90 00 8B [15:12:18]RAPDU: 90 00 [15:12:18]wFMCommunicate OK [15:12:18]wFMCommunicate request_size=10 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 0D 02 02 05 98 3C 60 97 72 [15:12:18]Write to MH i2c: E2 0D 00 71 A7 80 0D 02 02 05 00 98 3C 60 97 72 00 00 D9 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 03 00 71 A7 00 90 00 8C [15:12:18]RAPDU: 90 00 [15:12:18]wFMCommunicate OK [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 0D 03 02 [15:12:18]Write to MH i2c: E2 08 00 72 A7 80 0D 03 02 00 00 00 00 94 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0B 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0B 00 72 A7 00 A9 FD CE E9 B4 2C 41 89 90 00 9C [15:12:19]RAPDU: A9 FD CE E9 B4 2C 41 89 90 00 [15:12:19]wFMCommunicate OK [15:12:19]SAM_PROTO_SignData done [15:12:19]FM_MakeSignedData done [15:12:19]CreateOFDProtocolMessage [15:12:19]wFMCommunicate request_size=4 [15:12:19]MH_SAM_APDU [15:12:19]CAPDU: 80 11 00 00 [15:12:19]Write to MH i2c: E2 08 00 73 A7 80 11 00 00 00 00 00 00 94 [15:12:19]Write i2c OK [15:12:19]MH_I2C_Read... [15:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:19]Read from MH i2c: E2 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: E2 17 00 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: E2 17 00 73 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [15:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:19]wFMCommunicate OK [15:12:19]CreateOFDProtocolMessage done [15:12:19]OFDSenderStorePacket 191462 [15:12:19]StoreOFDPacket docnum=191462 [15:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 7D 07 01 56 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 5A B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EB 02 00 35 04 06 00 64 98 3C 60 97 72 A9 FD CE E9 B4 2C 41 89 [15:12:19]CheckFolder [15:12:19]dirname=/storage/ofd_packets [15:12:19]CheckFolder done [15:12:19]ProducePacketName [15:12:19]name=ofd_packets/00191462 [15:12:19]NVStorageSaveData ofd_packets/00191462 [15:12:19]File name is /storage/ofd_packets/00191462 [15:12:19]Write 301 bytes [15:12:19]NVStorageSaveData done [15:12:19]OFDSenderStorePacket done [15:12:19]KKMCreateOFDPacket done [15:12:19]NVStorageSaveData kkm_last_timestamp [15:12:19]File name is /storage/kkm_last_timestamp [15:12:19]Write 4 bytes [15:12:19]NVStorageSaveData done [15:12:19]ExternCall_PrintAddStr [15:12:19]wPrintStart [15:12:19]Write to MH i2c: 01 00 00 74 A7 1B [15:12:19]Write i2c OK [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 07 00 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 07 00 74 A7 00 00 00 00 00 FF 0F 30 [15:12:19]RasterBufferAndPrint [15:12:19]line Счет N : (1)30756 [15:12:19]line ИНН: 02508201610067 [15:12:19]line Контрольно-Кассовый Чек [15:12:19]line ПРОДАЖА [15:12:19]line ТРК (МРК, ГНК) : 12 [15:12:19]line Товар: 2710124130 [15:12:19]line Аи-92-К-5 [15:12:19]line 8.970 * 66.90 [15:12:19]line = 600.09 [15:12:19]line НДС 12% НСП 1% [15:12:19]line > о реализуемом товаре [15:12:19]line ОКРУГЛЕНИЕ: -0.09 [15:12:19]line ИТОГО: 600.00 [15:12:19]line Внесено: 600.00 [15:12:19]line СДАЧА: 0.00 [15:12:19]line НСП 1% : 5.31 [15:12:19]line НДС 12% : 63.73 [15:12:19]line Наличными: 600.00 [15:12:19]line Безнал.: 0.00 [15:12:19]line Место: АЗС № 170 "Партнер Нефть" [15:12:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:12:19]line СНО: Общий режим [15:12:19]line Чек 201 25.10.2024 15:12 [15:12:19]line Смена: 540 ФФД: 1.0 [15:12:19]line ЗНМ: 0300000110 [15:12:19]line РНМ: 0000000000091776 [15:12:19]line Версия ККМ: 001 [15:12:19]line ФМ: 0000000000871754 [15:12:19]line ФД: 191462 [15:12:19]line ФПД: 110605010769778 [15:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151226&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191462&fm=110605010769778&tin=02508201610067®Number=0000000000091776&sum=60000 [15:12:19]written 0, free lines is 4095 [15:12:19]OFD Sender: Processing packet 191462 [packets to send 75, broken 74] [15:12:19]ProducePacketName [15:12:19]name=ofd_packets/00191462 [15:12:19]OFD Sender: To server: pG, [15:12:19]CommunicateWithHost lk.salyk.kg:30040 [15:12:19]ConnectInit lk.salyk.kg [15:12:19]Connected sock=10 [15:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 7D 07 01 56 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 5A B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EB 02 00 35 04 06 00 64 98 3C 60 97 72 A9 FD CE E9 B4 2C 41 89 [15:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 D5 47 00 DA 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EB 02 00 F4 03 04 00 29 5A 1B 67 B6 04 01 00 00 2B 54 FC E0 C7 88 54 12 [15:12:19]CommunicateWithHost err = 0 [15:12:19]CheckOFDResponse [15:12:19]1017 (14) - 77093643461234 [15:12:19]1041 (16) - 0000000000871754 [15:12:19]1040 (4) - 191462 [15:12:19]1012 (4) - 25.10.2024 08:43 [15:12:19]1206 (1) - 0 [15:12:19]OFD Sender: Remove packet 191462 [15:12:19]ProducePacketName [15:12:19]name=ofd_packets/00191462 [15:12:19]NVStorageDeleteData [15:12:19]Write to MH i2c: 01 00 00 9F A7 46 [15:12:19]Write i2c OK [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 07 00 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: 01 07 00 9F A7 00 00 00 00 00 D9 0C 32 [15:12:19]RasterBufferAndPrint [15:12:19]line [15:12:19]line [15:12:19]line [15:12:19]line [15:12:19]line [15:12:19]written 0, free lines is 3311 [15:12:19]MH_Cut [15:12:19]Write to MH i2c: D1 01 00 A6 A7 01 1F [15:12:19]Write i2c OK [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: D1 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: D1 01 00 [15:12:19]MH_I2C_Read... [15:12:19]Read from MH i2c: D1 01 00 A6 A7 00 1E [15:12:19]Write to MH i2c: 01 00 00 A7 A7 4E [15:12:19]Write i2c OK [15:12:19]MH_I2C_Read... [15:12:20]OFD Sender: No OFD packet to send [15:12:20]*** Cut start [15:12:20]*** Partial cut [15:12:20]*** CUTSNS_PIN = 1 [15:12:20]*** CUTSNS_PIN = 0 [15:12:20]*** Brake cut motor [15:12:20]Read from MH i2c: 01 [15:12:21]MH_I2C_Read... [15:12:21]*** Stop cut motor [15:12:21]*** Cut end [15:12:21]Read from MH i2c: 01 07 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: 01 07 00 A7 A7 00 00 00 00 00 FF 0F 63 [15:12:21]process_action close_receipt done [15:12:21]requested_data is exist [15:12:21]produce_requested_data [15:12:21]requested_item fm.sn is exist - process it [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 11 00 00 [15:12:21]Write to MH i2c: E2 08 00 A8 A7 80 11 00 00 00 00 00 00 C9 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 17 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 17 00 A8 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [15:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:21]wFMCommunicate OK [15:12:21]requested_item fd.num is exist - process it [15:12:21]SAM_PROTO_GetFieldsCounters [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 13 00 00 [15:12:21]Write to MH i2c: E2 08 00 A9 A7 80 13 00 00 00 00 00 00 CC [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 62 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 62 00 A9 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:21]wFMCommunicate OK [15:12:21]SAM_PROTO_GetFieldsCounters done [15:12:21]requested_item shift.num is exist - process it [15:12:21]requested_item shift.opened is exist - process it [15:12:21]req_shift_opened [15:12:21]FM_GetShiftState [15:12:21]SAM_PROTO_GetShiftState [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 13 01 00 [15:12:21]Write to MH i2c: E2 08 00 AA A7 80 13 01 00 00 00 00 00 CE [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 0E 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 0E 00 AA A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 91 [15:12:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:12:21]wFMCommunicate OK [15:12:21]SAM_PROTO_GetShiftState done [15:12:21]FM_GetShiftState done [15:12:21]req_shift_opened done [15:12:21]requested_item shift.open_date is exist - process it [15:12:21]req_shift_open_date [15:12:21]req_shift_open_date done [15:12:21]produce_requested_data done [15:12:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191462,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:12:21]process_action_free close_receipt [15:12:21]json_value_free [15:12:21]json_value_free done [15:12:21]process_json_proto returns [15:12:21]Send response to host [15:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191462,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:12:21]free response buf [15:12:21]execute_script done [15:12:21]execute_script returns [15:12:21]free content buf [15:12:21]Sock 8.Close socket [15:12:21]Sock 8.Thread stoped [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:05]accept exits with 9 [15:14:05]New connection [15:14:05]New thread 3066817892 created [15:14:05]Thread 3066961252 joined [15:14:05]Waiting for new connection... [15:14:05] Sock 9.Parse request [15:14:05]Sock 9.Check first char [15:14:05]Sock 9.First char is OK [15:14:05]request: POST /json_proto HTTP/1.0 [15:14:05]Method: POST [15:14:05]URL: /json_proto [15:14:05]Method is POST - this is cgi request [15:14:05]url: /json_proto [15:14:05]query_string will be loaded in cgi processing [15:14:05]execute_cgi json_proto POST (null) [15:14:05]execute_cgi path=json_proto method=POST [15:14:05]POST find Content-Length [15:14:05]Host: 172.17.63.131:8080 [15:14:05]Content-Length: 676 [15:14:05]Content-Type: application/json [15:14:05] [15:14:05]POST finish read [15:14:05]Found Content-Length = 676 [15:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:05]execute_script... [15:14: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)30759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:05]POST & json_proto [15:14:05]process_json_proto [15:14:05]json parsed OK: [15:14:05]protocol is kg_v1.0 [15:14:05]action value=close_receipt [15:14:05]process_action close_receipt [15:14:05]cmd_close_receipt [15:14:05]MH_GetDate [15:14:05]Write to MH i2c: F0 00 00 AB A7 41 [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: F0 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: F0 09 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: F0 09 00 AB A7 00 C7 B5 1B 67 22 05 6E 64 41 [15:14:05]GetLastDocTimeStamp 1729869146 [15:14:05]current date 1729869255 [15:14:05]FM_GetShiftState [15:14:05]SAM_PROTO_GetShiftState [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 13 01 00 [15:14:05]Write to MH i2c: E2 08 00 AC A7 80 13 01 00 00 00 00 00 D0 [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 0E 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 0E 00 AC A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 93 [15:14:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:14:05]wFMCommunicate OK [15:14:05]SAM_PROTO_GetShiftState done [15:14:05]FM_GetShiftState done [15:14:05]opened in 1729816399 [15:14:05]opened+sec_in_day 1729902799 [15:14:05]quantity*price = 60009 [15:14:05]sum+1 = 60010 [15:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 202 25.10.2024 15:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191463 ФПД: 183254322114101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191463&fm=183254322114101&tin=02508201610067®Number=0000000000091776&sum=60000 [15:14:07]StoreToDocumentArchive [15:14:07]shift 540 fd 191463 [15:14:07]save to /storage/0540/doc_00191463 [15:14:07]save last doc name /storage/0540/doc_00191463 to /storage/kkm_last_doc_name [15:14:07]save OK [15:14:07]Clear old archive folders... [15:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:07]tlvbuf is 016253F0 [15:14:07]SAM_PROTO_ClearQueue [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 09 00 00 [15:14:07]Write to MH i2c: E2 08 00 B9 A7 80 09 00 00 00 00 00 00 D2 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 B9 A7 00 90 00 D4 [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_ClearQueue done [15:14:07]KKMCreateOFDPacket [15:14:07]OFDProtocolAddRootSTLVToBuf [15:14:07]FM_MakeSignedData [15:14:07]FM_MakeSignedData [15:14:07]SAM_PROTO_SignData [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 01 02 [15:14:07]Write to MH i2c: E2 08 00 BA A7 80 0D 01 02 00 00 00 00 DA [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 BA A7 00 90 00 D5 [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=255 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C7 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EB 02 00 35 04 06 00 A6 [15:14:07]Write to MH i2c: E2 02 01 BB A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C7 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EB 02 00 35 04 06 00 A6 00 00 AB [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 BB A7 00 90 00 D6 [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=10 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 02 02 05 AB 38 C5 EE 35 [15:14:07]Write to MH i2c: E2 0D 00 BC A7 80 0D 02 02 05 00 AB 38 C5 EE 35 00 00 B2 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 03 00 BC A7 00 90 00 D7 [15:14:07]RAPDU: 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 0D 03 02 [15:14:07]Write to MH i2c: E2 08 00 BD A7 80 0D 03 02 00 00 00 00 DF [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0B 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0B 00 BD A7 00 48 E5 C6 15 E7 76 F2 22 90 00 59 [15:14:07]RAPDU: 48 E5 C6 15 E7 76 F2 22 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_SignData done [15:14:07]FM_MakeSignedData done [15:14:07]CreateOFDProtocolMessage [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 11 00 00 [15:14:07]Write to MH i2c: E2 08 00 BE A7 80 11 00 00 00 00 00 00 DF [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 BE A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [15:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:07]wFMCommunicate OK [15:14:07]CreateOFDProtocolMessage done [15:14:07]OFDSenderStorePacket 191463 [15:14:07]StoreOFDPacket docnum=191463 [15:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C 33 07 01 72 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C7 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EB 02 00 35 04 06 00 A6 AB 38 C5 EE 35 48 E5 C6 15 E7 76 F2 22 [15:14:07]CheckFolder [15:14:07]dirname=/storage/ofd_packets [15:14:07]CheckFolder done [15:14:07]ProducePacketName [15:14:07]name=ofd_packets/00191463 [15:14:07]NVStorageSaveData ofd_packets/00191463 [15:14:07]File name is /storage/ofd_packets/00191463 [15:14:07]Write 301 bytes [15:14:07]NVStorageSaveData done [15:14:07]OFDSenderStorePacket done [15:14:07]KKMCreateOFDPacket done [15:14:07]NVStorageSaveData kkm_last_timestamp [15:14:07]File name is /storage/kkm_last_timestamp [15:14:07]Write 4 bytes [15:14:07]NVStorageSaveData done [15:14:07]ExternCall_PrintAddStr [15:14:07]wPrintStart [15:14:07]Write to MH i2c: 01 00 00 BF A7 66 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 07 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 07 00 BF A7 00 00 00 00 00 FF 0F 7B [15:14:07]RasterBufferAndPrint [15:14:07]line Счет N : (1)30759 [15:14:07]line ИНН: 02508201610067 [15:14:07]line Контрольно-Кассовый Чек [15:14:07]line ПРОДАЖА [15:14:07]line ТРК (МРК, ГНК) : 21 [15:14:07]line Товар: 2710124130 [15:14:07]line Аи-92-К-5 [15:14:07]line 8.970 * 66.90 [15:14:07]line = 600.09 [15:14:07]line НДС 12% НСП 1% [15:14:07]line > о реализуемом товаре [15:14:07]line ОКРУГЛЕНИЕ: -0.09 [15:14:07]line ИТОГО: 600.00 [15:14:07]line Внесено: 600.00 [15:14:07]line СДАЧА: 0.00 [15:14:07]line НСП 1% : 5.31 [15:14:07]line НДС 12% : 63.73 [15:14:07]line Наличными: 600.00 [15:14:07]line Безнал.: 0.00 [15:14:07]line Место: АЗС № 170 "Партнер Нефть" [15:14:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:14:07]line СНО: Общий режим [15:14:07]line Чек 202 25.10.2024 15:14 [15:14:07]line Смена: 540 ФФД: 1.0 [15:14:07]line ЗНМ: 0300000110 [15:14:07]line РНМ: 0000000000091776 [15:14:07]line Версия ККМ: 001 [15:14:07]line ФМ: 0000000000871754 [15:14:07]line ФД: 191463 [15:14:07]line ФПД: 183254322114101 [15:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191463&fm=183254322114101&tin=02508201610067®Number=0000000000091776&sum=60000 [15:14:08]OFD Sender: Processing packet 191463 [packets to send 75, broken 74] [15:14:08]ProducePacketName [15:14:08]name=ofd_packets/00191463 [15:14:08]OFD Sender: To server: pG, [15:14:08]CommunicateWithHost lk.salyk.kg:30040 [15:14:08]ConnectInit lk.salyk.kg [15:14:08]written 0, free lines is 4095 [15:14:08]Connected sock=10 [15:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C 33 07 01 72 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C7 B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EB 02 00 35 04 06 00 A6 AB 38 C5 EE 35 48 E5 C6 15 E7 76 F2 22 [15:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 4A 47 00 B8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EB 02 00 F4 03 04 00 95 5A 1B 67 B6 04 01 00 00 B1 BC 85 26 CD B0 D5 FB [15:14:08]CommunicateWithHost err = 0 [15:14:08]CheckOFDResponse [15:14:08]1017 (14) - 77093643461234 [15:14:08]1041 (16) - 0000000000871754 [15:14:08]1040 (4) - 191463 [15:14:08]1012 (4) - 25.10.2024 08:45 [15:14:08]1206 (1) - 0 [15:14:08]OFD Sender: Remove packet 191463 [15:14:08]ProducePacketName [15:14:08]name=ofd_packets/00191463 [15:14:08]NVStorageDeleteData [15:14:08]Write to MH i2c: 01 00 00 EA A7 91 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 07 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: 01 07 00 EA A7 00 00 00 00 00 B7 0C 5B [15:14:08]RasterBufferAndPrint [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]line [15:14:08]written 0, free lines is 3263 [15:14:08]MH_Cut [15:14:08]Write to MH i2c: D1 01 00 F1 A7 01 6A [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 01 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: D1 01 00 F1 A7 00 69 [15:14:08]Write to MH i2c: 01 00 00 F2 A7 99 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]OFD Sender: No OFD packet to send [15:14:09]*** Cut start [15:14:09]*** Partial cut [15:14:09]*** CUTSNS_PIN = 1 [15:14:09]*** CUTSNS_PIN = 0 [15:14:09]*** Brake cut motor [15:14:09]Read from MH i2c: 01 [15:14:09]MH_I2C_Read... [15:14:09]*** Stop cut motor [15:14:09]*** Cut end [15:14:09]Read from MH i2c: 01 07 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: 01 07 00 F2 A7 00 00 00 00 00 FF 0F AE [15:14:09]process_action close_receipt done [15:14:09]requested_data is exist [15:14:09]produce_requested_data [15:14:09]requested_item fm.sn is exist - process it [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 11 00 00 [15:14:09]Write to MH i2c: E2 08 00 F3 A7 80 11 00 00 00 00 00 00 14 [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 17 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 17 00 F3 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [15:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:09]wFMCommunicate OK [15:14:09]requested_item fd.num is exist - process it [15:14:09]SAM_PROTO_GetFieldsCounters [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 13 00 00 [15:14:09]Write to MH i2c: E2 08 00 F4 A7 80 13 00 00 00 00 00 00 17 [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 62 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 62 00 F4 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetFieldsCounters done [15:14:10]requested_item shift.num is exist - process it [15:14:10]requested_item shift.opened is exist - process it [15:14:10]req_shift_opened [15:14:10]FM_GetShiftState [15:14:10]SAM_PROTO_GetShiftState [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 13 01 00 [15:14:10]Write to MH i2c: E2 08 00 F5 A7 80 13 01 00 00 00 00 00 19 [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 0E 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 0E 00 F5 A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DC [15:14:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetShiftState done [15:14:10]FM_GetShiftState done [15:14:10]req_shift_opened done [15:14:10]requested_item shift.open_date is exist - process it [15:14:10]req_shift_open_date [15:14:10]req_shift_open_date done [15:14:10]produce_requested_data done [15:14:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191463,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:14:10]process_action_free close_receipt [15:14:10]json_value_free [15:14:10]json_value_free done [15:14:10]process_json_proto returns [15:14:10]Send response to host [15:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191463,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:14:10]free response buf [15:14:10]execute_script done [15:14:10]execute_script returns [15:14:10]free content buf [15:14:10]Sock 9.Close socket [15:14:10]Sock 9.Thread stoped [15:14:12]accept exits with 8 [15:14:12]New connection [15:14:12]New thread 3066961252 created [15:14:12] Sock 8.Parse request [15:14:12]Sock 8.Check first char [15:14:12]Sock 8.First char is OK [15:14:12]request: POST /json_proto HTTP/1.0 [15:14:12]Method: POST [15:14:12]URL: /json_proto [15:14:12]Method is POST - this is cgi request [15:14:12]url: /json_proto [15:14:12]query_string will be loaded in cgi processing [15:14:12]execute_cgi json_proto POST (null) [15:14:12]execute_cgi path=json_proto method=POST [15:14:12]POST find Content-Length [15:14:12]Host: 172.17.63.131:8080 [15:14:12]Content-Length: 681 [15:14:12]Content-Type: application/json [15:14:12] [15:14:12]POST finish read [15:14:12]Found Content-Length = 681 [15:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]execute_script... [15: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)30758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]POST & json_proto [15:14:12]process_json_proto [15:14:12]json parsed OK: [15:14:12]protocol is kg_v1.0 [15:14:12]action value=close_receipt [15:14:12]process_action close_receipt [15:14:12]cmd_close_receipt [15:14:12]MH_GetDate [15:14:12]Write to MH i2c: F0 00 00 F6 A7 8C [15:14:12]Thread 3066817892 joined [15:14:12]Waiting for new connection... [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 F6 A7 00 CE B5 1B 67 22 05 6E 64 93 [15:14:12]GetLastDocTimeStamp 1729869255 [15:14:12]current date 1729869262 [15:14:12]FM_GetShiftState [15:14:12]SAM_PROTO_GetShiftState [15:14:12]wFMCommunicate request_size=4 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 13 01 00 [15:14:12]Write to MH i2c: E2 08 00 F7 A7 80 13 01 00 00 00 00 00 1B [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 0E 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 0E 00 F7 A7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DE [15:14:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:14:12]wFMCommunicate OK [15:14:12]SAM_PROTO_GetShiftState done [15:14:12]FM_GetShiftState done [15:14:12]opened in 1729816399 [15:14:12]opened+sec_in_day 1729902799 [15:14:12]quantity*price = 100015 [15:14:12]sum+1 = 100017 [15:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 203 25.10.2024 15:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191464 ФПД: 73207029006038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191464&fm=73207029006038&tin=02508201610067®Number=0000000000091776&sum=100000 [15:14:13]StoreToDocumentArchive [15:14:13]shift 540 fd 191464 [15:14:13]save to /storage/0540/doc_00191464 [15:14:13]save last doc name /storage/0540/doc_00191464 to /storage/kkm_last_doc_name [15:14:13]save OK [15:14:13]Clear old archive folders... [15:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:13]tlvbuf is 017B91C0 [15:14:13]SAM_PROTO_ClearQueue [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 09 00 00 [15:14:13]Write to MH i2c: E2 08 00 04 A8 80 09 00 00 00 00 00 00 1E [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 04 A8 00 90 00 20 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]SAM_PROTO_ClearQueue done [15:14:13]KKMCreateOFDPacket [15:14:13]OFDProtocolAddRootSTLVToBuf [15:14:13]FM_MakeSignedData [15:14:13]FM_MakeSignedData [15:14:13]SAM_PROTO_SignData [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 01 02 [15:14:13]Write to MH i2c: E2 08 00 05 A8 80 0D 01 02 00 00 00 00 26 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 05 A8 00 90 00 21 [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=255 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CE B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EB 02 00 35 04 06 00 42 [15:14:14]Write to MH i2c: E2 02 01 06 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CE B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EB 02 00 35 04 06 00 42 00 00 B9 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 06 A8 00 90 00 22 [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=10 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 02 02 05 94 D6 F5 7E D6 [15:14:14]Write to MH i2c: E2 0D 00 07 A8 80 0D 02 02 05 00 94 D6 F5 7E D6 00 00 E6 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 07 A8 00 90 00 23 [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 03 02 [15:14:14]Write to MH i2c: E2 08 00 08 A8 80 0D 03 02 00 00 00 00 2B [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 0B 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 0B 00 08 A8 00 C2 35 18 3A 74 56 D1 09 90 00 19 [15:14:14]RAPDU: C2 35 18 3A 74 56 D1 09 90 00 [15:14:14]wFMCommunicate OK [15:14:14]SAM_PROTO_SignData done [15:14:14]FM_MakeSignedData done [15:14:14]CreateOFDProtocolMessage [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 11 00 00 [15:14:14]Write to MH i2c: E2 08 00 09 A8 80 11 00 00 00 00 00 00 2B [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 17 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 17 00 09 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [15:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:14]wFMCommunicate OK [15:14:14]CreateOFDProtocolMessage done [15:14:14]OFDSenderStorePacket 191464 [15:14:14]StoreOFDPacket docnum=191464 [15:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 5B 07 01 B4 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CE B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EB 02 00 35 04 06 00 42 94 D6 F5 7E D6 C2 35 18 3A 74 56 D1 09 [15:14:14]CheckFolder [15:14:14]dirname=/storage/ofd_packets [15:14:14]CheckFolder done [15:14:14]ProducePacketName [15:14:14]name=ofd_packets/00191464 [15:14:14]NVStorageSaveData ofd_packets/00191464 [15:14:14]File name is /storage/ofd_packets/00191464 [15:14:14]Write 301 bytes [15:14:14]NVStorageSaveData done [15:14:14]OFDSenderStorePacket done [15:14:14]KKMCreateOFDPacket done [15:14:14]NVStorageSaveData kkm_last_timestamp [15:14:14]File name is /storage/kkm_last_timestamp [15:14:14]Write 4 bytes [15:14:14]NVStorageSaveData done [15:14:14]ExternCall_PrintAddStr [15:14:14]wPrintStart [15:14:14]Write to MH i2c: 01 00 00 0A A8 B2 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 0A A8 00 00 00 00 00 FF 0F C7 [15:14:14]RasterBufferAndPrint [15:14:14]line Счет N : (1)30758 [15:14:14]line ИНН: 02508201610067 [15:14:14]line Контрольно-Кассовый Чек [15:14:14]line ПРОДАЖА [15:14:14]line ТРК (МРК, ГНК) : 12 [15:14:14]line Товар: 2710124130 [15:14:14]line Аи-92-К-5 [15:14:14]line 14.950 * 66.90 [15:14:14]line = 1000.16 [15:14:14]line НДС 12% НСП 1% [15:14:14]line > о реализуемом товаре [15:14:14]line ОКРУГЛЕНИЕ: -0.16 [15:14:14]line ИТОГО: 1000.00 [15:14:14]line Внесено: 1000.00 [15:14:14]line СДАЧА: 0.00 [15:14:14]line НСП 1% : 8.85 [15:14:14]line НДС 12% : 106.21 [15:14:14]line Наличными: 1000.00 [15:14:14]line Безнал.: 0.00 [15:14:14]line Место: АЗС № 170 "Партнер Нефть" [15:14:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:14:14]line СНО: Общий режим [15:14:14]line Чек 203 25.10.2024 15:14 [15:14:14]line Смена: 540 ФФД: 1.0 [15:14:14]line ЗНМ: 0300000110 [15:14:14]line РНМ: 0000000000091776 [15:14:14]line Версия ККМ: 001 [15:14:14]line ФМ: 0000000000871754 [15:14:14]line ФД: 191464 [15:14:14]line ФПД: 73207029006038 [15:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191464&fm=73207029006038&tin=02508201610067®Number=0000000000091776&sum=100000 [15:14:14]OFD Sender: Processing packet 191464 [packets to send 75, broken 74] [15:14:14]ProducePacketName [15:14:14]name=ofd_packets/00191464 [15:14:14]OFD Sender: To server: pG, [15:14:14]CommunicateWithHost lk.salyk.kg:30040 [15:14:14]ConnectInit lk.salyk.kg [15:14:14]written 0, free lines is 4095 [15:14:14]Connected sock=10 [15: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 31 37 35 34 0F 01 00 00 78 5B 07 01 B4 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CE B5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EB 02 00 35 04 06 00 42 94 D6 F5 7E D6 C2 35 18 3A 74 56 D1 09 [15:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 91 C0 47 00 6B A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EB 02 00 F4 03 04 00 9C 5A 1B 67 B6 04 01 00 00 75 6E A3 F7 09 E7 9F D0 [15:14:14]CommunicateWithHost err = 0 [15:14:14]CheckOFDResponse [15:14:14]1017 (14) - 77093643461234 [15:14:14]1041 (16) - 0000000000871754 [15:14:14]1040 (4) - 191464 [15:14:14]1012 (4) - 25.10.2024 08:45 [15:14:14]1206 (1) - 0 [15:14:14]OFD Sender: Remove packet 191464 [15:14:14]ProducePacketName [15:14:14]name=ofd_packets/00191464 [15:14:14]NVStorageDeleteData [15:14:14]Write to MH i2c: 01 00 00 35 A8 DD [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 35 A8 00 00 00 00 00 C7 0C B7 [15:14:14]RasterBufferAndPrint [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]written 0, free lines is 3280 [15:14:15]MH_Cut [15:14:15]Write to MH i2c: D1 01 00 3C A8 01 B6 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: D1 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: D1 01 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: D1 01 00 3C A8 00 B5 [15:14:15]Write to MH i2c: 01 00 00 3D A8 E5 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]OFD Sender: No OFD packet to send [15:14:15]*** Cut start [15:14:15]*** Partial cut [15:14:15]*** CUTSNS_PIN = 1 [15:14:15]*** CUTSNS_PIN = 0 [15:14:16]*** Brake cut motor [15:14:16]Read from MH i2c: 01 [15:14:16]MH_I2C_Read... [15:14:16]*** Stop cut motor [15:14:16]*** Cut end [15:14:16]Read from MH i2c: 01 07 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 3D A8 00 00 00 00 00 FF 0F FA [15:14:16]process_action close_receipt done [15:14:16]requested_data is exist [15:14:16]produce_requested_data [15:14:16]requested_item fm.sn is exist - process it [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 11 00 00 [15:14:16]Write to MH i2c: E2 08 00 3E A8 80 11 00 00 00 00 00 00 60 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 17 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 17 00 3E A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [15:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:16]wFMCommunicate OK [15:14:16]requested_item fd.num is exist - process it [15:14:16]SAM_PROTO_GetFieldsCounters [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 00 00 [15:14:16]Write to MH i2c: E2 08 00 3F A8 80 13 00 00 00 00 00 00 63 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 62 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 62 00 3F A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetFieldsCounters done [15:14:16]requested_item shift.num is exist - process it [15:14:16]requested_item shift.opened is exist - process it [15:14:16]req_shift_opened [15:14:16]FM_GetShiftState [15:14:16]SAM_PROTO_GetShiftState [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 01 00 [15:14:16]Write to MH i2c: E2 08 00 40 A8 80 13 01 00 00 00 00 00 65 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 40 A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 28 [15:14:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetShiftState done [15:14:16]FM_GetShiftState done [15:14:16]req_shift_opened done [15:14:16]requested_item shift.open_date is exist - process it [15:14:16]req_shift_open_date [15:14:16]req_shift_open_date done [15:14:16]produce_requested_data done [15:14:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191464,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:14:16]process_action_free close_receipt [15:14:16]json_value_free [15:14:16]json_value_free done [15:14:16]process_json_proto returns [15:14:16]Send response to host [15:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191464,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:14:16]free response buf [15:14:16]execute_script done [15:14:16]execute_script returns [15:14:16]free content buf [15:14:16]Sock 8.Close socket [15:14:16]Sock 8.Thread stoped [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:12]accept exits with 9 [15:16:12]New connection [15:16:12]New thread 3066817892 created [15:16:12]Thread 3066961252 joined [15:16:12]Waiting for new connection... [15:16:12] Sock 9.Parse request [15:16:12]Sock 9.Check first char [15:16:12]Sock 9.First char is OK [15:16:12]request: POST /json_proto HTTP/1.0 [15:16:12]Method: POST [15:16:12]URL: /json_proto [15:16:12]Method is POST - this is cgi request [15:16:12]url: /json_proto [15:16:12]query_string will be loaded in cgi processing [15:16:12]execute_cgi json_proto POST (null) [15:16:12]execute_cgi path=json_proto method=POST [15:16:12]POST find Content-Length [15:16:12]Host: 172.17.63.131:8080 [15:16:12]Content-Length: 676 [15:16:12]Content-Type: application/json [15:16:12] [15:16:12]POST finish read [15:16:12]Found Content-Length = 676 [15:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:12]execute_script... [15:16: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)30760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:12]POST & json_proto [15:16:12]process_json_proto [15:16:12]json parsed OK: [15:16:12]protocol is kg_v1.0 [15:16:12]action value=close_receipt [15:16:12]process_action close_receipt [15:16:12]cmd_close_receipt [15:16:12]MH_GetDate [15:16:12]Write to MH i2c: F0 00 00 41 A8 D8 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 09 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 09 00 41 A8 00 46 B6 1B 67 22 05 6E 64 58 [15:16:12]GetLastDocTimeStamp 1729869262 [15:16:12]current date 1729869382 [15:16:12]FM_GetShiftState [15:16:12]SAM_PROTO_GetShiftState [15:16:12]wFMCommunicate request_size=4 [15:16:12]MH_SAM_APDU [15:16:12]CAPDU: 80 13 01 00 [15:16:12]Write to MH i2c: E2 08 00 42 A8 80 13 01 00 00 00 00 00 67 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 42 A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2A [15:16:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:16:12]wFMCommunicate OK [15:16:12]SAM_PROTO_GetShiftState done [15:16:12]FM_GetShiftState done [15:16:12]opened in 1729816399 [15:16:12]opened+sec_in_day 1729902799 [15:16:12]quantity*price = 20003 [15:16:12]sum+1 = 20004 [15:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 204 25.10.2024 15:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191465 ФПД: 74061099062599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191465&fm=74061099062599&tin=02508201610067®Number=0000000000091776&sum=20000 [15:16:13]StoreToDocumentArchive [15:16:13]shift 540 fd 191465 [15:16:13]save to /storage/0540/doc_00191465 [15:16:13]save last doc name /storage/0540/doc_00191465 to /storage/kkm_last_doc_name [15:16:13]save OK [15:16:13]Clear old archive folders... [15:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:13]tlvbuf is 0160B980 [15:16:13]SAM_PROTO_ClearQueue [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 09 00 00 [15:16:13]Write to MH i2c: E2 08 00 4F A8 80 09 00 00 00 00 00 00 69 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 4F A8 00 90 00 6B [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]SAM_PROTO_ClearQueue done [15:16:13]KKMCreateOFDPacket [15:16:13]OFDProtocolAddRootSTLVToBuf [15:16:13]FM_MakeSignedData [15:16:13]FM_MakeSignedData [15:16:13]SAM_PROTO_SignData [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 01 02 [15:16:13]Write to MH i2c: E2 08 00 50 A8 80 0D 01 02 00 00 00 00 71 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 50 A8 00 90 00 6C [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]wFMCommunicate request_size=255 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EB 02 00 35 04 06 00 43 [15:16:13]Write to MH i2c: E2 02 01 51 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EB 02 00 35 04 06 00 43 00 00 48 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 03 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 03 00 51 A8 00 90 00 6D [15:16:14]RAPDU: 90 00 [15:16:14]wFMCommunicate OK [15:16:14]wFMCommunicate request_size=10 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 0D 02 02 05 5B B1 80 55 47 [15:16:14]Write to MH i2c: E2 0D 00 52 A8 80 0D 02 02 05 00 5B B1 80 55 47 00 00 A6 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 03 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 03 00 52 A8 00 90 00 6E [15:16:14]RAPDU: 90 00 [15:16:14]wFMCommunicate OK [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 0D 03 02 [15:16:14]Write to MH i2c: E2 08 00 53 A8 80 0D 03 02 00 00 00 00 76 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0B 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0B 00 53 A8 00 51 4E 5C 18 F3 DE 38 4D 90 00 E0 [15:16:14]RAPDU: 51 4E 5C 18 F3 DE 38 4D 90 00 [15:16:14]wFMCommunicate OK [15:16:14]SAM_PROTO_SignData done [15:16:14]FM_MakeSignedData done [15:16:14]CreateOFDProtocolMessage [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 11 00 00 [15:16:14]Write to MH i2c: E2 08 00 54 A8 80 11 00 00 00 00 00 00 76 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 17 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 17 00 54 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [15:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:14]wFMCommunicate OK [15:16:14]CreateOFDProtocolMessage done [15:16:14]OFDSenderStorePacket 191465 [15:16:14]StoreOFDPacket docnum=191465 [15:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AC A1 07 01 C5 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EB 02 00 35 04 06 00 43 5B B1 80 55 47 51 4E 5C 18 F3 DE 38 4D [15:16:14]CheckFolder [15:16:14]dirname=/storage/ofd_packets [15:16:14]CheckFolder done [15:16:14]ProducePacketName [15:16:14]name=ofd_packets/00191465 [15:16:14]NVStorageSaveData ofd_packets/00191465 [15:16:14]File name is /storage/ofd_packets/00191465 [15:16:14]Write 301 bytes [15:16:14]NVStorageSaveData done [15:16:14]OFDSenderStorePacket done [15:16:14]KKMCreateOFDPacket done [15:16:14]NVStorageSaveData kkm_last_timestamp [15:16:14]File name is /storage/kkm_last_timestamp [15:16:14]Write 4 bytes [15:16:14]NVStorageSaveData done [15:16:14]ExternCall_PrintAddStr [15:16:14]wPrintStart [15:16:14]Write to MH i2c: 01 00 00 55 A8 FD [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 07 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 07 00 55 A8 00 00 00 00 00 FF 0F 12 [15:16:14]RasterBufferAndPrint [15:16:14]line Счет N : (1)30760 [15:16:14]line ИНН: 02508201610067 [15:16:14]line Контрольно-Кассовый Чек [15:16:14]line ПРОДАЖА [15:16:14]line ТРК (МРК, ГНК) : 21 [15:16:14]line Товар: 2710124130 [15:16:14]line Аи-92-К-5 [15:16:14]line 2.990 * 66.90 [15:16:14]line = 200.03 [15:16:14]line НДС 12% НСП 1% [15:16:14]line > о реализуемом товаре [15:16:14]line ОКРУГЛЕНИЕ: -0.03 [15:16:14]line ИТОГО: 200.00 [15:16:14]line Внесено: 200.00 [15:16:14]line СДАЧА: 0.00 [15:16:14]line НСП 1% : 1.77 [15:16:14]line НДС 12% : 21.24 [15:16:14]line Наличными: 200.00 [15:16:14]line Безнал.: 0.00 [15:16:14]line Место: АЗС № 170 "Партнер Нефть" [15:16:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:16:14]line СНО: Общий режим [15:16:14]line Чек 204 25.10.2024 15:16 [15:16:14]line Смена: 540 ФФД: 1.0 [15:16:14]line ЗНМ: 0300000110 [15:16:14]line РНМ: 0000000000091776 [15:16:14]line Версия ККМ: 001 [15:16:14]line ФМ: 0000000000871754 [15:16:14]line ФД: 191465 [15:16:14]line ФПД: 74061099062599 [15:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191465&fm=74061099062599&tin=02508201610067®Number=0000000000091776&sum=20000 [15:16:14]OFD Sender: Processing packet 191465 [packets to send 75, broken 74] [15:16:14]ProducePacketName [15:16:14]name=ofd_packets/00191465 [15:16:14]OFD Sender: To server: pG, [15:16:14]CommunicateWithHost lk.salyk.kg:30040 [15:16:14]ConnectInit lk.salyk.kg [15:16:14]written 0, free lines is 4095 [15:16:14]Connected sock=10 [15: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 31 37 35 34 0F 01 00 00 AC A1 07 01 C5 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EB 02 00 35 04 06 00 43 5B B1 80 55 47 51 4E 5C 18 F3 DE 38 4D [15:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 98 84 47 00 EA 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EB 02 00 F4 03 04 00 14 5B 1B 67 B6 04 01 00 00 94 F0 B2 6E BD 09 D8 A7 [15:16:14]CommunicateWithHost err = 0 [15:16:14]CheckOFDResponse [15:16:14]1017 (14) - 77093643461234 [15:16:14]1041 (16) - 0000000000871754 [15:16:14]1040 (4) - 191465 [15:16:14]1012 (4) - 25.10.2024 08:47 [15:16:14]1206 (1) - 0 [15:16:14]OFD Sender: Remove packet 191465 [15:16:14]ProducePacketName [15:16:14]name=ofd_packets/00191465 [15:16:14]NVStorageDeleteData [15:16:15]Write to MH i2c: 01 00 00 80 A8 28 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: 01 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: 01 07 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: 01 07 00 80 A8 00 00 00 00 00 BB 0C F6 [15:16:15]RasterBufferAndPrint [15:16:15]line [15:16:15]line [15:16:15]line [15:16:15]line [15:16:15]line [15:16:15]written 0, free lines is 3266 [15:16:15]MH_Cut [15:16:15]Write to MH i2c: D1 01 00 87 A8 01 01 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: D1 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: D1 01 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: D1 01 00 87 A8 00 00 [15:16:15]Write to MH i2c: 01 00 00 88 A8 30 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]OFD Sender: No OFD packet to send [15:16:15]*** Cut start [15:16:15]*** Partial cut [15:16:15]*** CUTSNS_PIN = 1 [15:16:15]*** CUTSNS_PIN = 0 [15:16:16]*** Brake cut motor [15:16:16]Read from MH i2c: 01 [15:16:16]MH_I2C_Read... [15:16:16]*** Stop cut motor [15:16:16]*** Cut end [15:16:16]Read from MH i2c: 01 07 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: 01 07 00 88 A8 00 00 00 00 00 FF 0F 45 [15:16:16]process_action close_receipt done [15:16:16]requested_data is exist [15:16:16]produce_requested_data [15:16:16]requested_item fm.sn is exist - process it [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 11 00 00 [15:16:16]Write to MH i2c: E2 08 00 89 A8 80 11 00 00 00 00 00 00 AB [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 17 00 89 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [15:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:16]wFMCommunicate OK [15:16:16]requested_item fd.num is exist - process it [15:16:16]SAM_PROTO_GetFieldsCounters [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 00 00 [15:16:16]Write to MH i2c: E2 08 00 8A A8 80 13 00 00 00 00 00 00 AE [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 62 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 62 00 8A A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetFieldsCounters done [15:16:16]requested_item shift.num is exist - process it [15:16:16]requested_item shift.opened is exist - process it [15:16:16]req_shift_opened [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 8B A8 80 13 01 00 00 00 00 00 B0 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 8B A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 73 [15:16:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetShiftState done [15:16:16]FM_GetShiftState done [15:16:16]req_shift_opened done [15:16:16]requested_item shift.open_date is exist - process it [15:16:16]req_shift_open_date [15:16:16]req_shift_open_date done [15:16:16]produce_requested_data done [15:16:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191465,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:16:16]process_action_free close_receipt [15:16:16]json_value_free [15:16:16]json_value_free done [15:16:16]process_json_proto returns [15:16:16]Send response to host [15:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191465,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:16:16]free response buf [15:16:16]execute_script done [15:16:16]execute_script returns [15:16:16]free content buf [15:16:16]Sock 9.Close socket [15:16:16]Sock 9.Thread stoped [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:37]accept exits with 8 [15:17:37]New connection [15:17:37]New thread 3066961252 created [15:17:37]Thread 3066817892 joined [15:17:37]Waiting for new connection... [15:17:37] Sock 8.Parse request [15:17:37]Sock 8.Check first char [15:17:37]Sock 8.First char is OK [15:17:37]request: POST /json_proto HTTP/1.0 [15:17:37]Method: POST [15:17:37]URL: /json_proto [15:17:37]Method is POST - this is cgi request [15:17:37]url: /json_proto [15:17:37]query_string will be loaded in cgi processing [15:17:37]execute_cgi json_proto POST (null) [15:17:37]execute_cgi path=json_proto method=POST [15:17:37]POST find Content-Length [15:17:37]Host: 172.17.63.131:8080 [15:17:37]Content-Length: 678 [15:17:37]Content-Type: application/json [15:17:37] [15:17:37]POST finish read [15:17:37]Found Content-Length = 678 [15:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]execute_script... [15:17: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)30761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:37]POST & json_proto [15:17:37]process_json_proto [15:17:37]json parsed OK: [15:17:37]protocol is kg_v1.0 [15:17:37]action value=close_receipt [15:17:37]process_action close_receipt [15:17:37]cmd_close_receipt [15:17:37]MH_GetDate [15:17:37]Write to MH i2c: F0 00 00 8C A8 23 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: F0 09 00 8C A8 00 9B B6 1B 67 22 05 6E 64 F8 [15:17:37]GetLastDocTimeStamp 1729869382 [15:17:37]current date 1729869467 [15:17:37]FM_GetShiftState [15:17:37]SAM_PROTO_GetShiftState [15:17:37]wFMCommunicate request_size=4 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 13 01 00 [15:17:37]Write to MH i2c: E2 08 00 8D A8 80 13 01 00 00 00 00 00 B2 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 0E 00 8D A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 75 [15:17:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:17:37]wFMCommunicate OK [15:17:37]SAM_PROTO_GetShiftState done [15:17:37]FM_GetShiftState done [15:17:37]opened in 1729816399 [15:17:37]opened+sec_in_day 1729902799 [15:17:37]quantity*price = 100050 [15:17:37]sum+1 = 100052 [15:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 205 25.10.2024 15:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191466 ФПД: 29843540101074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191466&fm=29843540101074&tin=02508201610067®Number=0000000000091776&sum=100000 [15:17:39]StoreToDocumentArchive [15:17:39]shift 540 fd 191466 [15:17:39]save to /storage/0540/doc_00191466 [15:17:39]save last doc name /storage/0540/doc_00191466 to /storage/kkm_last_doc_name [15:17:39]save OK [15:17:39]Clear old archive folders... [15:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:39]tlvbuf is 017F1520 [15:17:39]SAM_PROTO_ClearQueue [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 09 00 00 [15:17:39]Write to MH i2c: E2 08 00 9A A8 80 09 00 00 00 00 00 00 B4 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 9A A8 00 90 00 B6 [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]SAM_PROTO_ClearQueue done [15:17:39]KKMCreateOFDPacket [15:17:39]OFDProtocolAddRootSTLVToBuf [15:17:39]FM_MakeSignedData [15:17:39]FM_MakeSignedData [15:17:39]SAM_PROTO_SignData [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 01 02 [15:17:39]Write to MH i2c: E2 08 00 9B A8 80 0D 01 02 00 00 00 00 BC [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 9B A8 00 90 00 B7 [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=255 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 9B B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EB 02 00 35 04 06 00 1B 24 7D 9B [15:17:39]Write to MH i2c: E2 02 01 9C A8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 9B B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EB 02 00 35 04 06 00 1B 24 7D 9B 00 00 32 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 9C A8 00 90 00 B8 [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=7 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 02 02 02 47 D2 [15:17:39]Write to MH i2c: E2 0A 00 9D A8 80 0D 02 02 02 00 47 D2 00 00 DC [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 03 00 9D A8 00 90 00 B9 [15:17:39]RAPDU: 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 0D 03 02 [15:17:39]Write to MH i2c: E2 08 00 9E A8 80 0D 03 02 00 00 00 00 C1 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 0B 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 0B 00 9E A8 00 41 AB E9 5C A1 A7 3C C5 90 00 3C [15:17:39]RAPDU: 41 AB E9 5C A1 A7 3C C5 90 00 [15:17:39]wFMCommunicate OK [15:17:39]SAM_PROTO_SignData done [15:17:39]FM_MakeSignedData done [15:17:39]CreateOFDProtocolMessage [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 11 00 00 [15:17:39]Write to MH i2c: E2 08 00 9F A8 80 11 00 00 00 00 00 00 C1 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 17 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 17 00 9F A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [15:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:17:39]wFMCommunicate OK [15:17:39]CreateOFDProtocolMessage done [15:17:39]OFDSenderStorePacket 191466 [15:17:39]StoreOFDPacket docnum=191466 [15:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E4 20 04 01 4C 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 9B B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EB 02 00 35 04 06 00 1B 24 7D 9B 47 D2 41 AB E9 5C A1 A7 3C C5 [15:17:39]CheckFolder [15:17:39]dirname=/storage/ofd_packets [15:17:39]CheckFolder done [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00191466 [15:17:39]NVStorageSaveData ofd_packets/00191466 [15:17:39]File name is /storage/ofd_packets/00191466 [15:17:39]Write 298 bytes [15:17:39]NVStorageSaveData done [15:17:39]OFDSenderStorePacket done [15:17:39]KKMCreateOFDPacket done [15:17:39]NVStorageSaveData kkm_last_timestamp [15:17:39]File name is /storage/kkm_last_timestamp [15:17:39]Write 4 bytes [15:17:39]NVStorageSaveData done [15:17:39]ExternCall_PrintAddStr [15:17:39]wPrintStart [15:17:39]Write to MH i2c: 01 00 00 A0 A8 48 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: 01 07 00 A0 A8 00 00 00 00 00 FF 0F 5D [15:17:39]RasterBufferAndPrint [15:17:39]line Счет N : (1)30761 [15:17:39]line ИНН: 02508201610067 [15:17:39]line Контрольно-Кассовый Чек [15:17:39]line ПРОДАЖА [15:17:39]line ТРК (МРК, ГНК) : 11 [15:17:39]line Товар: 2710194210 [15:17:39]line ДТ-К-5 [15:17:39]line 13.130 * 76.20 [15:17:39]line = 1000.51 [15:17:39]line НДС 12% НСП 1% [15:17:39]line > о реализуемом товаре [15:17:39]line ОКРУГЛЕНИЕ: -0.51 [15:17:39]line ИТОГО: 1000.00 [15:17:39]line Внесено: 1000.00 [15:17:39]line СДАЧА: 0.00 [15:17:39]line НСП 1% : 8.85 [15:17:39]line НДС 12% : 106.25 [15:17:39]line Наличными: 1000.00 [15:17:39]line Безнал.: 0.00 [15:17:39]line Место: АЗС № 170 "Партнер Нефть" [15:17:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:17:39]line СНО: Общий режим [15:17:39]line Чек 205 25.10.2024 15:17 [15:17:39]line Смена: 540 ФФД: 1.0 [15:17:39]line ЗНМ: 0300000110 [15:17:39]line РНМ: 0000000000091776 [15:17:39]line Версия ККМ: 001 [15:17:39]line ФМ: 0000000000871754 [15:17:39]line ФД: 191466 [15:17:39]line ФПД: 29843540101074 [15:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191466&fm=29843540101074&tin=02508201610067®Number=0000000000091776&sum=100000 [15:17:39]OFD Sender: Processing packet 191466 [packets to send 75, broken 74] [15:17:39]ProducePacketName [15:17:39]name=ofd_packets/00191466 [15:17:39]OFD Sender: To server: pG, [15:17:39]CommunicateWithHost lk.salyk.kg:30040 [15:17:39]ConnectInit lk.salyk.kg [15:17:39]written 0, free lines is 4095 [15:17:39]Connected sock=10 [15:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E4 20 04 01 4C 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 9B B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EB 02 00 35 04 06 00 1B 24 7D 9B 47 D2 41 AB E9 5C A1 A7 3C C5 [15:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 65 47 00 6A 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EB 02 00 F4 03 04 00 69 5B 1B 67 B6 04 01 00 00 E8 90 2B 92 41 BB 82 64 [15:17:40]CommunicateWithHost err = 0 [15:17:40]CheckOFDResponse [15:17:40]1017 (14) - 77093643461234 [15:17:40]1041 (16) - 0000000000871754 [15:17:40]1040 (4) - 191466 [15:17:40]1012 (4) - 25.10.2024 08:48 [15:17:40]1206 (1) - 0 [15:17:40]OFD Sender: Remove packet 191466 [15:17:40]ProducePacketName [15:17:40]name=ofd_packets/00191466 [15:17:40]NVStorageDeleteData [15:17:40]Write to MH i2c: 01 00 00 CB A8 73 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 CB A8 00 00 00 00 00 BE 0C 44 [15:17:40]RasterBufferAndPrint [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]line [15:17:40]written 0, free lines is 3269 [15:17:40]MH_Cut [15:17:40]Write to MH i2c: D1 01 00 D2 A8 01 4C [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 01 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: D1 01 00 D2 A8 00 4B [15:17:40]Write to MH i2c: 01 00 00 D3 A8 7B [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]OFD Sender: No OFD packet to send [15:17:41]*** Cut start [15:17:41]*** Partial cut [15:17:41]*** CUTSNS_PIN = 1 [15:17:41]*** CUTSNS_PIN = 0 [15:17:41]*** Brake cut motor [15:17:41]Read from MH i2c: 01 [15:17:41]MH_I2C_Read... [15:17:41]*** Stop cut motor [15:17:41]*** Cut end [15:17:41]Read from MH i2c: 01 07 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: 01 07 00 D3 A8 00 00 00 00 00 FF 0F 90 [15:17:41]process_action close_receipt done [15:17:41]requested_data is exist [15:17:41]produce_requested_data [15:17:41]requested_item fm.sn is exist - process it [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 11 00 00 [15:17:41]Write to MH i2c: E2 08 00 D4 A8 80 11 00 00 00 00 00 00 F6 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 17 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 17 00 D4 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 49 [15:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:17:41]wFMCommunicate OK [15:17:41]requested_item fd.num is exist - process it [15:17:41]SAM_PROTO_GetFieldsCounters [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 13 00 00 [15:17:41]Write to MH i2c: E2 08 00 D5 A8 80 13 00 00 00 00 00 00 F9 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 62 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 62 00 D5 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:41]wFMCommunicate OK [15:17:41]SAM_PROTO_GetFieldsCounters done [15:17:41]requested_item shift.num is exist - process it [15:17:41]requested_item shift.opened is exist - process it [15:17:41]req_shift_opened [15:17:41]FM_GetShiftState [15:17:41]SAM_PROTO_GetShiftState [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 13 01 00 [15:17:41]Write to MH i2c: E2 08 00 D6 A8 80 13 01 00 00 00 00 00 FB [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 D6 A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BE [15:17:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_GetShiftState done [15:17:42]FM_GetShiftState done [15:17:42]req_shift_opened done [15:17:42]requested_item shift.open_date is exist - process it [15:17:42]req_shift_open_date [15:17:42]req_shift_open_date done [15:17:42]produce_requested_data done [15:17:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191466,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:17:42]process_action_free close_receipt [15:17:42]json_value_free [15:17:42]json_value_free done [15:17:42]process_json_proto returns [15:17:42]Send response to host [15:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191466,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:17:42]free response buf [15:17:42]execute_script done [15:17:42]execute_script returns [15:17:42]free content buf [15:17:42]Sock 8.Close socket [15:17:42]Sock 8.Thread stoped [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:41]accept exits with 9 [15:18:41]New connection [15:18:41]New thread 3066817892 created [15:18:41]Thread 3066961252 joined [15:18:41]Waiting for new connection... [15:18:41] Sock 9.Parse request [15:18:41]Sock 9.Check first char [15:18:41]Sock 9.First char is OK [15:18:41]request: POST /json_proto HTTP/1.0 [15:18:41]Method: POST [15:18:41]URL: /json_proto [15:18:41]Method is POST - this is cgi request [15:18:41]url: /json_proto [15:18:41]query_string will be loaded in cgi processing [15:18:41]execute_cgi json_proto POST (null) [15:18:41]execute_cgi path=json_proto method=POST [15:18:41]POST find Content-Length [15:18:41]Host: 172.17.63.131:8080 [15:18:41]Content-Length: 676 [15:18:41]Content-Type: application/json [15:18:41] [15:18:41]POST finish read [15:18:41]Found Content-Length = 676 [15:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:41]execute_script... [15:18: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)30762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:41]POST & json_proto [15:18:41]process_json_proto [15:18:41]json parsed OK: [15:18:41]protocol is kg_v1.0 [15:18:41]action value=close_receipt [15:18:41]process_action close_receipt [15:18:41]cmd_close_receipt [15:18:41]MH_GetDate [15:18:41]Write to MH i2c: F0 00 00 D7 A8 6E [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: F0 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: F0 09 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: F0 09 00 D7 A8 00 DB B6 1B 67 22 05 6E 64 83 [15:18:41]GetLastDocTimeStamp 1729869467 [15:18:41]current date 1729869531 [15:18:41]FM_GetShiftState [15:18:41]SAM_PROTO_GetShiftState [15:18:41]wFMCommunicate request_size=4 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 13 01 00 [15:18:41]Write to MH i2c: E2 08 00 D8 A8 80 13 01 00 00 00 00 00 FD [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 0E 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 0E 00 D8 A8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C0 [15:18:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:18:41]wFMCommunicate OK [15:18:41]SAM_PROTO_GetShiftState done [15:18:41]FM_GetShiftState done [15:18:41]opened in 1729816399 [15:18:41]opened+sec_in_day 1729902799 [15:18:41]quantity*price = 30038 [15:18:41]sum+1 = 30039 [15:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 206 25.10.2024 15:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191467 ФПД: 224085747211323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151851&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191467&fm=224085747211323&tin=02508201610067®Number=0000000000091776&sum=30000 [15:18:42]StoreToDocumentArchive [15:18:42]shift 540 fd 191467 [15:18:42]save to /storage/0540/doc_00191467 [15:18:42]save last doc name /storage/0540/doc_00191467 to /storage/kkm_last_doc_name [15:18:42]save OK [15:18:42]Clear old archive folders... [15:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:42]tlvbuf is 015D8880 [15:18:42]SAM_PROTO_ClearQueue [15:18:42]wFMCommunicate request_size=4 [15:18:42]MH_SAM_APDU [15:18:42]CAPDU: 80 09 00 00 [15:18:42]Write to MH i2c: E2 08 00 E5 A8 80 09 00 00 00 00 00 00 FF [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:42]Read from MH i2c: E2 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 03 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 03 00 E5 A8 00 90 00 01 [15:18:42]RAPDU: 90 00 [15:18:42]wFMCommunicate OK [15:18:42]SAM_PROTO_ClearQueue done [15:18:42]KKMCreateOFDPacket [15:18:42]OFDProtocolAddRootSTLVToBuf [15:18:42]FM_MakeSignedData [15:18:42]FM_MakeSignedData [15:18:42]SAM_PROTO_SignData [15:18:42]wFMCommunicate request_size=4 [15:18:42]MH_SAM_APDU [15:18:42]CAPDU: 80 0D 01 02 [15:18:42]Write to MH i2c: E2 08 00 E6 A8 80 0D 01 02 00 00 00 00 07 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:42]Read from MH i2c: E2 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 03 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: E2 03 00 E6 A8 00 90 00 02 [15:18:42]RAPDU: 90 00 [15:18:42]wFMCommunicate OK [15:18:42]wFMCommunicate request_size=255 [15:18:42]MH_SAM_APDU [15:18:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DB B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EB 02 00 35 04 06 00 CB [15:18:42]Write to MH i2c: E2 02 01 E7 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DB B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EB 02 00 35 04 06 00 CB 00 00 31 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 E7 A8 00 90 00 03 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]wFMCommunicate request_size=10 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 02 02 05 CE 07 5C 9C 3B [15:18:43]Write to MH i2c: E2 0D 00 E8 A8 80 0D 02 02 05 00 CE 07 5C 9C 3B 00 00 1C [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 03 00 E8 A8 00 90 00 04 [15:18:43]RAPDU: 90 00 [15:18:43]wFMCommunicate OK [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 0D 03 02 [15:18:43]Write to MH i2c: E2 08 00 E9 A8 80 0D 03 02 00 00 00 00 0C [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0B 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0B 00 E9 A8 00 4B AC BA 16 DE EA 0E 47 90 00 F1 [15:18:43]RAPDU: 4B AC BA 16 DE EA 0E 47 90 00 [15:18:43]wFMCommunicate OK [15:18:43]SAM_PROTO_SignData done [15:18:43]FM_MakeSignedData done [15:18:43]CreateOFDProtocolMessage [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 11 00 00 [15:18:43]Write to MH i2c: E2 08 00 EA A8 80 11 00 00 00 00 00 00 0C [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 EA A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [15:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:18:43]wFMCommunicate OK [15:18:43]CreateOFDProtocolMessage done [15:18:43]OFDSenderStorePacket 191467 [15:18:43]StoreOFDPacket docnum=191467 [15:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B EB 07 01 B6 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DB B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EB 02 00 35 04 06 00 CB CE 07 5C 9C 3B 4B AC BA 16 DE EA 0E 47 [15:18:43]CheckFolder [15:18:43]dirname=/storage/ofd_packets [15:18:43]CheckFolder done [15:18:43]ProducePacketName [15:18:43]name=ofd_packets/00191467 [15:18:43]NVStorageSaveData ofd_packets/00191467 [15:18:43]File name is /storage/ofd_packets/00191467 [15:18:43]Write 301 bytes [15:18:43]NVStorageSaveData done [15:18:43]OFDSenderStorePacket done [15:18:43]KKMCreateOFDPacket done [15:18:43]NVStorageSaveData kkm_last_timestamp [15:18:43]File name is /storage/kkm_last_timestamp [15:18:43]Write 4 bytes [15:18:43]NVStorageSaveData done [15:18:43]ExternCall_PrintAddStr [15:18:43]wPrintStart [15:18:43]Write to MH i2c: 01 00 00 EB A8 93 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 07 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 07 00 EB A8 00 00 00 00 00 FF 0F A8 [15:18:43]RasterBufferAndPrint [15:18:43]line Счет N : (1)30762 [15:18:43]line ИНН: 02508201610067 [15:18:43]line Контрольно-Кассовый Чек [15:18:43]line ПРОДАЖА [15:18:43]line ТРК (МРК, ГНК) : 21 [15:18:43]line Товар: 2710124130 [15:18:43]line Аи-92-К-5 [15:18:43]line 4.490 * 66.90 [15:18:43]line = 300.38 [15:18:43]line НДС 12% НСП 1% [15:18:43]line > о реализуемом товаре [15:18:43]line ОКРУГЛЕНИЕ: -0.38 [15:18:43]line ИТОГО: 300.00 [15:18:43]line Внесено: 300.00 [15:18:43]line СДАЧА: 0.00 [15:18:43]line НСП 1% : 2.66 [15:18:43]line НДС 12% : 31.90 [15:18:43]line Наличными: 300.00 [15:18:43]line Безнал.: 0.00 [15:18:43]line Место: АЗС № 170 "Партнер Нефть" [15:18:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:18:43]line СНО: Общий режим [15:18:43]line Чек 206 25.10.2024 15:18 [15:18:43]line Смена: 540 ФФД: 1.0 [15:18:43]line ЗНМ: 0300000110 [15:18:43]line РНМ: 0000000000091776 [15:18:43]line Версия ККМ: 001 [15:18:43]line ФМ: 0000000000871754 [15:18:43]line ФД: 191467 [15:18:43]line ФПД: 224085747211323 [15:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151851&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191467&fm=224085747211323&tin=02508201610067®Number=0000000000091776&sum=30000 [15:18:43]OFD Sender: Processing packet 191467 [packets to send 75, broken 74] [15:18:43]ProducePacketName [15:18:43]name=ofd_packets/00191467 [15:18:43]OFD Sender: To server: pG, [15:18:43]CommunicateWithHost lk.salyk.kg:30040 [15:18:43]ConnectInit lk.salyk.kg [15:18:43]written 0, free lines is 4095 [15:18:43]Connected sock=10 [15:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B EB 07 01 B6 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DB B6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EB 02 00 35 04 06 00 CB CE 07 5C 9C 3B 4B AC BA 16 DE EA 0E 47 [15:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 BA 47 00 37 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 31 37 35 34 10 04 04 00 EB EB 02 00 F4 03 04 00 A9 5B 1B 67 B6 04 01 00 00 DE A3 F4 EA 16 98 79 7F [15:18:44]CommunicateWithHost err = 0 [15:18:44]CheckOFDResponse [15:18:44]1017 (14) - 77093643461234 [15:18:44]1041 (16) - 0000000000871754 [15:18:44]1040 (4) - 191467 [15:18:44]1012 (4) - 25.10.2024 08:49 [15:18:44]1206 (1) - 0 [15:18:44]OFD Sender: Remove packet 191467 [15:18:44]ProducePacketName [15:18:44]name=ofd_packets/00191467 [15:18:44]NVStorageDeleteData [15:18:44]Write to MH i2c: 01 00 00 16 A9 BF [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 07 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: 01 07 00 16 A9 00 00 00 00 00 B5 0C 87 [15:18:44]RasterBufferAndPrint [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]line [15:18:44]written 0, free lines is 3259 [15:18:44]MH_Cut [15:18:44]Write to MH i2c: D1 01 00 1D A9 01 98 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: D1 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: D1 01 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: D1 01 00 1D A9 00 97 [15:18:44]Write to MH i2c: 01 00 00 1E A9 C7 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]OFD Sender: No OFD packet to send [15:18:44]*** Cut start [15:18:44]*** Partial cut [15:18:44]*** CUTSNS_PIN = 1 [15:18:45]*** CUTSNS_PIN = 0 [15:18:45]*** Brake cut motor [15:18:45]Read from MH i2c: 01 [15:18:45]MH_I2C_Read... [15:18:45]*** Stop cut motor [15:18:45]*** Cut end [15:18:45]Read from MH i2c: 01 07 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 07 00 1E A9 00 00 00 00 00 FF 0F DC [15:18:45]process_action close_receipt done [15:18:45]requested_data is exist [15:18:45]produce_requested_data [15:18:45]requested_item fm.sn is exist - process it [15:18:45]wFMCommunicate request_size=4 [15:18:45]MH_SAM_APDU [15:18:45]CAPDU: 80 11 00 00 [15:18:45]Write to MH i2c: E2 08 00 1F A9 80 11 00 00 00 00 00 00 42 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:45]Read from MH i2c: E2 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 17 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 17 00 1F A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [15:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:18:45]wFMCommunicate OK [15:18:45]requested_item fd.num is exist - process it [15:18:45]SAM_PROTO_GetFieldsCounters [15:18:45]wFMCommunicate request_size=4 [15:18:45]MH_SAM_APDU [15:18:45]CAPDU: 80 13 00 00 [15:18:45]Write to MH i2c: E2 08 00 20 A9 80 13 00 00 00 00 00 00 45 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:45]Read from MH i2c: E2 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 62 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 62 00 20 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:45]wFMCommunicate OK [15:18:45]SAM_PROTO_GetFieldsCounters done [15:18:45]requested_item shift.num is exist - process it [15:18:45]requested_item shift.opened is exist - process it [15:18:45]req_shift_opened [15:18:45]FM_GetShiftState [15:18:45]SAM_PROTO_GetShiftState [15:18:45]wFMCommunicate request_size=4 [15:18:45]MH_SAM_APDU [15:18:45]CAPDU: 80 13 01 00 [15:18:45]Write to MH i2c: E2 08 00 21 A9 80 13 01 00 00 00 00 00 47 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:45]Read from MH i2c: E2 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 0E 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 0E 00 21 A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0A [15:18:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:18:45]wFMCommunicate OK [15:18:45]SAM_PROTO_GetShiftState done [15:18:45]FM_GetShiftState done [15:18:45]req_shift_opened done [15:18:45]requested_item shift.open_date is exist - process it [15:18:45]req_shift_open_date [15:18:45]req_shift_open_date done [15:18:45]produce_requested_data done [15:18:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191467,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:18:45]process_action_free close_receipt [15:18:45]json_value_free [15:18:45]json_value_free done [15:18:45]process_json_proto returns [15:18:45]Send response to host [15:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191467,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:18:45]free response buf [15:18:45]execute_script done [15:18:45]execute_script returns [15:18:45]free content buf [15:18:45]Sock 9.Close socket [15:18:45]Sock 9.Thread stoped [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:33]accept exits with 8 [15:19:33]New connection [15:19:33]New thread 3066961252 created [15:19:33]Thread 3066817892 joined [15:19:33]Waiting for new connection... [15:19:33] Sock 8.Parse request [15:19:33]Sock 8.Check first char [15:19:33]Sock 8.First char is OK [15:19:33]request: POST /json_proto HTTP/1.0 [15:19:33]Method: POST [15:19:33]URL: /json_proto [15:19:33]Method is POST - this is cgi request [15:19:33]url: /json_proto [15:19:33]query_string will be loaded in cgi processing [15:19:33]execute_cgi json_proto POST (null) [15:19:33]execute_cgi path=json_proto method=POST [15:19:33]POST find Content-Length [15:19:33]Host: 172.17.63.131:8080 [15:19:33]Content-Length: 676 [15:19:33]Content-Type: application/json [15:19:33] [15:19:33]POST finish read [15:19:33]Found Content-Length = 676 [15:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:33]execute_script... [15:19: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)30764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:33]POST & json_proto [15:19:33]process_json_proto [15:19:33]json parsed OK: [15:19:33]protocol is kg_v1.0 [15:19:33]action value=close_receipt [15:19:33]process_action close_receipt [15:19:33]cmd_close_receipt [15:19:33]MH_GetDate [15:19:33]Write to MH i2c: F0 00 00 22 A9 BA [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: F0 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: F0 09 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: F0 09 00 22 A9 00 0F B7 1B 67 22 05 6E 64 04 [15:19:33]GetLastDocTimeStamp 1729869531 [15:19:33]current date 1729869583 [15:19:33]FM_GetShiftState [15:19:33]SAM_PROTO_GetShiftState [15:19:33]wFMCommunicate request_size=4 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 13 01 00 [15:19:33]Write to MH i2c: E2 08 00 23 A9 80 13 01 00 00 00 00 00 49 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 0E 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 0E 00 23 A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0C [15:19:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:19:33]wFMCommunicate OK [15:19:33]SAM_PROTO_GetShiftState done [15:19:33]FM_GetShiftState done [15:19:33]opened in 1729816399 [15:19:33]opened+sec_in_day 1729902799 [15:19:33]quantity*price = 40006 [15:19:33]sum+1 = 40007 [15:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 207 25.10.2024 15:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191468 ФПД: 83149221795626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191468&fm=83149221795626&tin=02508201610067®Number=0000000000091776&sum=40000 [15:19:34]StoreToDocumentArchive [15:19:34]shift 540 fd 191468 [15:19:34]save to /storage/0540/doc_00191468 [15:19:34]save last doc name /storage/0540/doc_00191468 to /storage/kkm_last_doc_name [15:19:34]save OK [15:19:34]Clear old archive folders... [15:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:34]tlvbuf is 016EB6E0 [15:19:34]SAM_PROTO_ClearQueue [15:19:34]wFMCommunicate request_size=4 [15:19:34]MH_SAM_APDU [15:19:34]CAPDU: 80 09 00 00 [15:19:34]Write to MH i2c: E2 08 00 30 A9 80 09 00 00 00 00 00 00 4B [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:34]Read from MH i2c: E2 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 03 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: E2 03 00 30 A9 00 90 00 4D [15:19:34]RAPDU: 90 00 [15:19:34]wFMCommunicate OK [15:19:34]SAM_PROTO_ClearQueue done [15:19:34]KKMCreateOFDPacket [15:19:34]OFDProtocolAddRootSTLVToBuf [15:19:34]FM_MakeSignedData [15:19:34]FM_MakeSignedData [15:19:34]SAM_PROTO_SignData [15:19:34]wFMCommunicate request_size=4 [15:19:34]MH_SAM_APDU [15:19:34]CAPDU: 80 0D 01 02 [15:19:34]Write to MH i2c: E2 08 00 31 A9 80 0D 01 02 00 00 00 00 53 [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 31 A9 00 90 00 4E [15:19:35]RAPDU: 90 00 [15:19:35]wFMCommunicate OK [15:19:35]wFMCommunicate request_size=255 [15:19:35]MH_SAM_APDU [15: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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EB 02 00 35 04 06 00 4B [15:19:35]Write to MH i2c: E2 02 01 32 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EB 02 00 35 04 06 00 4B 00 00 0F [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 32 A9 00 90 00 4F [15:19:35]RAPDU: 90 00 [15:19:35]wFMCommunicate OK [15:19:35]wFMCommunicate request_size=10 [15:19:35]MH_SAM_APDU [15:19:35]CAPDU: 80 0D 02 02 05 9F AF D4 17 2A [15:19:35]Write to MH i2c: E2 0D 00 33 A9 80 0D 02 02 05 00 9F AF D4 17 2A 00 00 C3 [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 03 00 33 A9 00 90 00 50 [15:19:35]RAPDU: 90 00 [15:19:35]wFMCommunicate OK [15:19:35]wFMCommunicate request_size=4 [15:19:35]MH_SAM_APDU [15:19:35]CAPDU: 80 0D 03 02 [15:19:35]Write to MH i2c: E2 08 00 34 A9 80 0D 03 02 00 00 00 00 58 [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 0B 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 0B 00 34 A9 00 45 46 29 A7 D3 6B B4 1E 90 00 C4 [15:19:35]RAPDU: 45 46 29 A7 D3 6B B4 1E 90 00 [15:19:35]wFMCommunicate OK [15:19:35]SAM_PROTO_SignData done [15:19:35]FM_MakeSignedData done [15:19:35]CreateOFDProtocolMessage [15:19:35]wFMCommunicate request_size=4 [15:19:35]MH_SAM_APDU [15:19:35]CAPDU: 80 11 00 00 [15:19:35]Write to MH i2c: E2 08 00 35 A9 80 11 00 00 00 00 00 00 58 [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 17 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 17 00 35 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [15:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:35]wFMCommunicate OK [15:19:35]CreateOFDProtocolMessage done [15:19:35]OFDSenderStorePacket 191468 [15:19:35]StoreOFDPacket docnum=191468 [15:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 44 07 01 89 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EB 02 00 35 04 06 00 4B 9F AF D4 17 2A 45 46 29 A7 D3 6B B4 1E [15:19:35]CheckFolder [15:19:35]dirname=/storage/ofd_packets [15:19:35]CheckFolder done [15:19:35]ProducePacketName [15:19:35]name=ofd_packets/00191468 [15:19:35]NVStorageSaveData ofd_packets/00191468 [15:19:35]File name is /storage/ofd_packets/00191468 [15:19:35]Write 301 bytes [15:19:35]NVStorageSaveData done [15:19:35]OFDSenderStorePacket done [15:19:35]KKMCreateOFDPacket done [15:19:35]NVStorageSaveData kkm_last_timestamp [15:19:35]File name is /storage/kkm_last_timestamp [15:19:35]Write 4 bytes [15:19:35]NVStorageSaveData done [15:19:35]ExternCall_PrintAddStr [15:19:35]wPrintStart [15:19:35]Write to MH i2c: 01 00 00 36 A9 DF [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: 01 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: 01 07 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: 01 07 00 36 A9 00 00 00 00 00 FF 0F F4 [15:19:35]RasterBufferAndPrint [15:19:35]line Счет N : (1)30764 [15:19:35]line ИНН: 02508201610067 [15:19:35]line Контрольно-Кассовый Чек [15:19:35]line ПРОДАЖА [15:19:35]line ТРК (МРК, ГНК) : 21 [15:19:35]line Товар: 2710124130 [15:19:35]line Аи-92-К-5 [15:19:35]line 5.980 * 66.90 [15:19:35]line = 400.06 [15:19:35]line НДС 12% НСП 1% [15:19:35]line > о реализуемом товаре [15:19:35]line ОКРУГЛЕНИЕ: -0.06 [15:19:35]line ИТОГО: 400.00 [15:19:35]line Внесено: 400.00 [15:19:35]line СДАЧА: 0.00 [15:19:35]line НСП 1% : 3.54 [15:19:35]line НДС 12% : 42.48 [15:19:35]line Наличными: 400.00 [15:19:35]line Безнал.: 0.00 [15:19:35]line Место: АЗС № 170 "Партнер Нефть" [15:19:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:19:35]line СНО: Общий режим [15:19:35]line Чек 207 25.10.2024 15:19 [15:19:35]line Смена: 540 ФФД: 1.0 [15:19:35]line ЗНМ: 0300000110 [15:19:35]line РНМ: 0000000000091776 [15:19:35]line Версия ККМ: 001 [15:19:35]line ФМ: 0000000000871754 [15:19:35]line ФД: 191468 [15:19:35]line ФПД: 83149221795626 [15:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191468&fm=83149221795626&tin=02508201610067®Number=0000000000091776&sum=40000 [15:19:35]OFD Sender: Processing packet 191468 [packets to send 75, broken 74] [15:19:35]ProducePacketName [15:19:35]name=ofd_packets/00191468 [15:19:35]OFD Sender: To server: pG, [15:19:35]CommunicateWithHost lk.salyk.kg:30040 [15:19:35]ConnectInit lk.salyk.kg [15:19:35]written 0, free lines is 4095 [15:19:35]Connected sock=10 [15:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 44 07 01 89 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EB 02 00 35 04 06 00 4B 9F AF D4 17 2A 45 46 29 A7 D3 6B B4 1E [15:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 58 47 00 E2 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EB 02 00 F4 03 04 00 DD 5B 1B 67 B6 04 01 00 00 07 D3 13 28 3C 20 DD EF [15:19:36]CommunicateWithHost err = 0 [15:19:36]CheckOFDResponse [15:19:36]1017 (14) - 77093643461234 [15:19:36]1041 (16) - 0000000000871754 [15:19:36]1040 (4) - 191468 [15:19:36]1012 (4) - 25.10.2024 08:50 [15:19:36]1206 (1) - 0 [15:19:36]OFD Sender: Remove packet 191468 [15:19:36]ProducePacketName [15:19:36]name=ofd_packets/00191468 [15:19:36]NVStorageDeleteData [15:19:36]Write to MH i2c: 01 00 00 61 A9 0A [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: 01 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: 01 07 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: 01 07 00 61 A9 00 00 00 00 00 B6 0C D3 [15:19:36]RasterBufferAndPrint [15:19:36]line [15:19:36]line [15:19:36]line [15:19:36]line [15:19:36]line [15:19:36]written 0, free lines is 3262 [15:19:36]MH_Cut [15:19:36]Write to MH i2c: D1 01 00 68 A9 01 E3 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: D1 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: D1 01 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: D1 01 00 68 A9 00 E2 [15:19:36]Write to MH i2c: 01 00 00 69 A9 12 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]OFD Sender: No OFD packet to send [15:19:37]*** Cut start [15:19:37]*** Partial cut [15:19:37]*** CUTSNS_PIN = 1 [15:19:37]*** CUTSNS_PIN = 0 [15:19:37]*** Brake cut motor [15:19:37]Read from MH i2c: 01 [15:19:37]MH_I2C_Read... [15:19:37]*** Stop cut motor [15:19:37]*** Cut end [15:19:37]Read from MH i2c: 01 07 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: 01 07 00 69 A9 00 00 00 00 00 FF 0F 27 [15:19:37]process_action close_receipt done [15:19:37]requested_data is exist [15:19:37]produce_requested_data [15:19:37]requested_item fm.sn is exist - process it [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 11 00 00 [15:19:37]Write to MH i2c: E2 08 00 6A A9 80 11 00 00 00 00 00 00 8D [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 17 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 17 00 6A A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [15:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:37]wFMCommunicate OK [15:19:37]requested_item fd.num is exist - process it [15:19:37]SAM_PROTO_GetFieldsCounters [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 13 00 00 [15:19:37]Write to MH i2c: E2 08 00 6B A9 80 13 00 00 00 00 00 00 90 [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 62 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 62 00 6B A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:37]wFMCommunicate OK [15:19:37]SAM_PROTO_GetFieldsCounters done [15:19:37]requested_item shift.num is exist - process it [15:19:37]requested_item shift.opened is exist - process it [15:19:37]req_shift_opened [15:19:37]FM_GetShiftState [15:19:37]SAM_PROTO_GetShiftState [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 13 01 00 [15:19:37]Write to MH i2c: E2 08 00 6C A9 80 13 01 00 00 00 00 00 92 [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0E 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0E 00 6C A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 55 [15:19:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:19:37]wFMCommunicate OK [15:19:37]SAM_PROTO_GetShiftState done [15:19:37]FM_GetShiftState done [15:19:37]req_shift_opened done [15:19:37]requested_item shift.open_date is exist - process it [15:19:37]req_shift_open_date [15:19:37]req_shift_open_date done [15:19:37]produce_requested_data done [15:19:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191468,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:19:37]process_action_free close_receipt [15:19:37]json_value_free [15:19:37]json_value_free done [15:19:37]process_json_proto returns [15:19:37]Send response to host [15:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191468,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:19:37]free response buf [15:19:37]execute_script done [15:19:37]execute_script returns [15:19:37]free content buf [15:19:37]Sock 8.Close socket [15:19:37]Sock 8.Thread stoped [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:49]accept exits with 9 [15:19:49]New connection [15:19:49]New thread 3066817892 created [15:19:49]Thread 3066961252 joined [15:19:49]Waiting for new connection... [15:19:49] Sock 9.Parse request [15:19:49]Sock 9.Check first char [15:19:49]Sock 9.First char is OK [15:19:49]request: POST /json_proto HTTP/1.0 [15:19:49]Method: POST [15:19:49]URL: /json_proto [15:19:49]Method is POST - this is cgi request [15:19:49]url: /json_proto [15:19:49]query_string will be loaded in cgi processing [15:19:49]execute_cgi json_proto POST (null) [15:19:49]execute_cgi path=json_proto method=POST [15:19:49]POST find Content-Length [15:19:49]Host: 172.17.63.131:8080 [15:19:49]Content-Length: 865 [15:19:49]Content-Type: application/json [15:19:49] [15:19:49]POST finish read [15:19:49]Found Content-Length = 865 [15:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:49]execute_script... [15:19: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)30763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:49]POST & json_proto [15:19:49]process_json_proto [15:19:49]json parsed OK: [15:19:49]protocol is kg_v1.0 [15:19:49]action value=close_receipt [15:19:49]process_action close_receipt [15:19:49]cmd_close_receipt [15:19:49]MH_GetDate [15:19:49]Write to MH i2c: F0 00 00 6D A9 05 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: F0 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: F0 09 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: F0 09 00 6D A9 00 1E B7 1B 67 22 05 6E 64 5E [15:19:49]GetLastDocTimeStamp 1729869583 [15:19:49]current date 1729869598 [15:19:49]FM_GetShiftState [15:19:49]SAM_PROTO_GetShiftState [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 13 01 00 [15:19:49]Write to MH i2c: E2 08 00 6E A9 80 13 01 00 00 00 00 00 94 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0E 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0E 00 6E A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 57 [15:19:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:19:49]wFMCommunicate OK [15:19:49]SAM_PROTO_GetShiftState done [15:19:49]FM_GetShiftState done [15:19:49]opened in 1729816399 [15:19:49]opened+sec_in_day 1729902799 [15:19:49]quantity*price = 100015 [15:19:49]sum+1 = 100017 [15:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 208 25.10.2024 15:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191469 ФПД: 242511736546463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191469&fm=242511736546463&tin=02508201610067®Number=0000000000091776&sum=100016 [15:19:50]StoreToDocumentArchive [15:19:50]shift 540 fd 191469 [15:19:50]save to /storage/0540/doc_00191469 [15:19:50]save last doc name /storage/0540/doc_00191469 to /storage/kkm_last_doc_name [15:19:50]save OK [15:19:50]Clear old archive folders... [15:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:50]tlvbuf is 016CEBF0 [15:19:50]SAM_PROTO_ClearQueue [15:19:50]wFMCommunicate request_size=4 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 09 00 00 [15:19:50]Write to MH i2c: E2 08 00 7B A9 80 09 00 00 00 00 00 00 96 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 7B A9 00 90 00 98 [15:19:50]RAPDU: 90 00 [15:19:50]wFMCommunicate OK [15:19:50]SAM_PROTO_ClearQueue done [15:19:50]KKMCreateOFDPacket [15:19:50]OFDProtocolAddRootSTLVToBuf [15:19:50]FM_MakeSignedData [15:19:50]FM_MakeSignedData [15:19:50]SAM_PROTO_SignData [15:19:50]wFMCommunicate request_size=4 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 0D 01 02 [15:19:50]Write to MH i2c: E2 08 00 7C A9 80 0D 01 02 00 00 00 00 9E [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 7C A9 00 90 00 99 [15:19:50]RAPDU: 90 00 [15:19:50]wFMCommunicate OK [15:19:50]wFMCommunicate request_size=255 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 1E B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EB 02 00 35 04 06 00 DC [15:19:50]Write to MH i2c: E2 02 01 7D A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 1E B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EB 02 00 35 04 06 00 DC 00 00 47 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 7D A9 00 90 00 9A [15:19:50]RAPDU: 90 00 [15:19:50]wFMCommunicate OK [15:19:50]wFMCommunicate request_size=10 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 0D 02 02 05 90 29 E9 24 9F [15:19:50]Write to MH i2c: E2 0D 00 7E A9 80 0D 02 02 05 00 90 29 E9 24 9F 00 00 10 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 03 00 7E A9 00 90 00 9B [15:19:50]RAPDU: 90 00 [15:19:50]wFMCommunicate OK [15:19:50]wFMCommunicate request_size=4 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 0D 03 02 [15:19:50]Write to MH i2c: E2 08 00 7F A9 80 0D 03 02 00 00 00 00 A3 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 0B 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 0B 00 7F A9 00 FD FD B3 53 96 15 9A 44 90 00 2D [15:19:50]RAPDU: FD FD B3 53 96 15 9A 44 90 00 [15:19:50]wFMCommunicate OK [15:19:50]SAM_PROTO_SignData done [15:19:50]FM_MakeSignedData done [15:19:50]CreateOFDProtocolMessage [15:19:50]wFMCommunicate request_size=4 [15:19:50]MH_SAM_APDU [15:19:50]CAPDU: 80 11 00 00 [15:19:50]Write to MH i2c: E2 08 00 80 A9 80 11 00 00 00 00 00 00 A3 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:50]Read from MH i2c: E2 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 17 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: E2 17 00 80 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [15:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:50]wFMCommunicate OK [15:19:50]CreateOFDProtocolMessage done [15:19:50]OFDSenderStorePacket 191469 [15:19:50]StoreOFDPacket docnum=191469 [15:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 3F 07 01 EC D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 1E B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EB 02 00 35 04 06 00 DC 90 29 E9 24 9F FD FD B3 53 96 15 9A 44 [15:19:50]CheckFolder [15:19:50]dirname=/storage/ofd_packets [15:19:50]CheckFolder done [15:19:50]ProducePacketName [15:19:50]name=ofd_packets/00191469 [15:19:50]NVStorageSaveData ofd_packets/00191469 [15:19:50]File name is /storage/ofd_packets/00191469 [15:19:50]Write 301 bytes [15:19:50]NVStorageSaveData done [15:19:50]OFDSenderStorePacket done [15:19:50]KKMCreateOFDPacket done [15:19:50]NVStorageSaveData kkm_last_timestamp [15:19:50]File name is /storage/kkm_last_timestamp [15:19:50]Write 4 bytes [15:19:50]NVStorageSaveData done [15:19:50]ExternCall_PrintAddStr [15:19:50]wPrintStart [15:19:50]Write to MH i2c: 01 00 00 81 A9 2A [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 07 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 07 00 81 A9 00 00 00 00 00 FF 0F 3F [15:19:50]RasterBufferAndPrint [15:19:50]line Счет N : (1)30763 [15:19:50]line ИНН: 02508201610067 [15:19:50]line Контрольно-Кассовый Чек [15:19:50]line ПРОДАЖА [15:19:50]line ТРК (МРК, ГНК) : 12 [15:19:50]line Товар: 2710124130 [15:19:50]line Аи-92-К-5 [15:19:50]line 14.950 * 66.90 [15:19:50]line = 1000.16 [15:19:50]line НДС 12% НСП 1% [15:19:50]line > о реализуемом товаре [15:19:50]line ИТОГО: 1000.16 [15:19:50]line НСП 1% : 8.85 [15:19:50]line НДС 12% : 106.21 [15:19:50]line Наличными: 0.00 [15:19:50]line Безнал.: 1000.16 [15:19:50]line Место: АЗС № 170 "Партнер Нефть" [15:19:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:19:50]line СНО: Общий режим [15:19:50]line Чек 208 25.10.2024 15:19 [15:19:50]line Смена: 540 ФФД: 1.0 [15:19:50]line ЗНМ: 0300000110 [15:19:50]line РНМ: 0000000000091776 [15:19:50]line Версия ККМ: 001 [15:19:50]line Платежная система: Кыргызкоммерцбанк [15:19:50]line ФМ: 0000000000871754 [15:19:50]line ФД: 191469 [15:19:50]line ФПД: 242511736546463 [15:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191469&fm=242511736546463&tin=02508201610067®Number=0000000000091776&sum=100016 [15:19:51]OFD Sender: Processing packet 191469 [packets to send 75, broken 74] [15:19:51]ProducePacketName [15:19:51]name=ofd_packets/00191469 [15:19:51]OFD Sender: To server: pG, [15:19:51]CommunicateWithHost lk.salyk.kg:30040 [15:19:51]ConnectInit lk.salyk.kg [15:19:51]written 0, free lines is 4095 [15:19:51]Connected sock=10 [15:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 3F 07 01 EC D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 1E B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EB 02 00 35 04 06 00 DC 90 29 E9 24 9F FD FD B3 53 96 15 9A 44 [15:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 C5 47 00 81 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EB 02 00 F4 03 04 00 EC 5B 1B 67 B6 04 01 00 00 D2 36 EA D4 1D B5 43 95 [15:19:51]CommunicateWithHost err = 0 [15:19:51]CheckOFDResponse [15:19:51]1017 (14) - 77093643461234 [15:19:51]1041 (16) - 0000000000871754 [15:19:51]1040 (4) - 191469 [15:19:51]1012 (4) - 25.10.2024 08:50 [15:19:51]1206 (1) - 0 [15:19:51]OFD Sender: Remove packet 191469 [15:19:51]ProducePacketName [15:19:51]name=ofd_packets/00191469 [15:19:51]NVStorageDeleteData [15:19:51]Write to MH i2c: 01 00 00 AB A9 54 [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: 01 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: 01 07 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: 01 07 00 AB A9 00 00 00 00 00 CF 0C 36 [15:19:51]RasterBufferAndPrint [15:19:51]line [15:19:51]line [15:19:51]line [15:19:51]line [15:19:51]line [15:19:51]written 0, free lines is 3286 [15:19:51]MH_Cut [15:19:51]Write to MH i2c: D1 01 00 B2 A9 01 2D [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: D1 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: D1 01 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: D1 01 00 B2 A9 00 2C [15:19:51]Write to MH i2c: 01 00 00 B3 A9 5C [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]OFD Sender: No OFD packet to send [15:19:52]*** Cut start [15:19:52]*** Partial cut [15:19:52]*** CUTSNS_PIN = 1 [15:19:52]*** CUTSNS_PIN = 0 [15:19:52]*** Brake cut motor [15:19:52]Read from MH i2c: 01 [15:19:53]MH_I2C_Read... [15:19:53]*** Stop cut motor [15:19:53]*** Cut end [15:19:53]Read from MH i2c: 01 07 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: 01 07 00 B3 A9 00 00 00 00 00 FF 0F 71 [15:19:53]process_action close_receipt done [15:19:53]requested_data is exist [15:19:53]produce_requested_data [15:19:53]requested_item fm.sn is exist - process it [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 11 00 00 [15:19:53]Write to MH i2c: E2 08 00 B4 A9 80 11 00 00 00 00 00 00 D7 [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 17 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 17 00 B4 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [15:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:53]wFMCommunicate OK [15:19:53]requested_item fd.num is exist - process it [15:19:53]SAM_PROTO_GetFieldsCounters [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 13 00 00 [15:19:53]Write to MH i2c: E2 08 00 B5 A9 80 13 00 00 00 00 00 00 DA [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 62 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 62 00 B5 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [15:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:53]wFMCommunicate OK [15:19:53]SAM_PROTO_GetFieldsCounters done [15:19:53]requested_item shift.num is exist - process it [15:19:53]requested_item shift.opened is exist - process it [15:19:53]req_shift_opened [15:19:53]FM_GetShiftState [15:19:53]SAM_PROTO_GetShiftState [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 13 01 00 [15:19:53]Write to MH i2c: E2 08 00 B6 A9 80 13 01 00 00 00 00 00 DC [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 0E 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 0E 00 B6 A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9F [15:19:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:19:53]wFMCommunicate OK [15:19:53]SAM_PROTO_GetShiftState done [15:19:53]FM_GetShiftState done [15:19:53]req_shift_opened done [15:19:53]requested_item shift.open_date is exist - process it [15:19:53]req_shift_open_date [15:19:53]req_shift_open_date done [15:19:53]produce_requested_data done [15:19:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191469,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:19:53]process_action_free close_receipt [15:19:53]json_value_free [15:19:53]json_value_free done [15:19:53]process_json_proto returns [15:19:53]Send response to host [15:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191469,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:19:53]free response buf [15:19:53]execute_script done [15:19:53]execute_script returns [15:19:53]free content buf [15:19:53]Sock 9.Close socket [15:19:53]Sock 9.Thread stoped [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:07]accept exits with 8 [15:20:07]New connection [15:20:07]New thread 3066961252 created [15:20:07]Thread 3066817892 joined [15:20:07]Waiting for new connection... [15:20:07] Sock 8.Parse request [15:20:07]Sock 8.Check first char [15:20:07]Sock 8.First char is OK [15:20:07]request: POST /json_proto HTTP/1.0 [15:20:07]Method: POST [15:20:07]URL: /json_proto [15:20:07]Method is POST - this is cgi request [15:20:07]url: /json_proto [15:20:07]query_string will be loaded in cgi processing [15:20:07]execute_cgi json_proto POST (null) [15:20:07]execute_cgi path=json_proto method=POST [15:20:07]POST find Content-Length [15:20:07]Host: 172.17.63.131:8080 [15:20:07]Content-Length: 676 [15:20:07]Content-Type: application/json [15:20:07] [15:20:07]POST finish read [15:20:07]Found Content-Length = 676 [15:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:07]execute_script... [15:20: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)30765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:07]POST & json_proto [15:20:07]process_json_proto [15:20:07]json parsed OK: [15:20:07]protocol is kg_v1.0 [15:20:07]action value=close_receipt [15:20:07]process_action close_receipt [15:20:07]cmd_close_receipt [15:20:07]MH_GetDate [15:20:07]Write to MH i2c: F0 00 00 B7 A9 4F [15:20:07]Write i2c OK [15:20:07]MH_I2C_Read... [15:20:07]Read from MH i2c: F0 [15:20:07]MH_I2C_Read... [15:20:07]Read from MH i2c: F0 09 00 [15:20:07]MH_I2C_Read... [15:20:07]Read from MH i2c: F0 09 00 B7 A9 00 31 B7 1B 67 22 05 6E 64 BB [15:20:07]GetLastDocTimeStamp 1729869598 [15:20:07]current date 1729869617 [15:20:07]FM_GetShiftState [15:20:07]SAM_PROTO_GetShiftState [15:20:07]wFMCommunicate request_size=4 [15:20:07]MH_SAM_APDU [15:20:07]CAPDU: 80 13 01 00 [15:20:07]Write to MH i2c: E2 08 00 B8 A9 80 13 01 00 00 00 00 00 DE [15:20:07]Write i2c OK [15:20:07]MH_I2C_Read... [15:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:08]Read from MH i2c: E2 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 0E 00 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 0E 00 B8 A9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A1 [15:20:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:20:08]wFMCommunicate OK [15:20:08]SAM_PROTO_GetShiftState done [15:20:08]FM_GetShiftState done [15:20:08]opened in 1729816399 [15:20:08]opened+sec_in_day 1729902799 [15:20:08]quantity*price = 20003 [15:20:08]sum+1 = 20004 [15:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 209 25.10.2024 15:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191470 ФПД: 4533826184972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191470&fm=4533826184972&tin=02508201610067®Number=0000000000091776&sum=20000 [15:20:09]StoreToDocumentArchive [15:20:09]shift 540 fd 191470 [15:20:09]save to /storage/0540/doc_00191470 [15:20:09]save last doc name /storage/0540/doc_00191470 to /storage/kkm_last_doc_name [15:20:09]save OK [15:20:09]Clear old archive folders... [15:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:09]tlvbuf is 017F1B40 [15:20:09]SAM_PROTO_ClearQueue [15:20:09]wFMCommunicate request_size=4 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 09 00 00 [15:20:09]Write to MH i2c: E2 08 00 C5 A9 80 09 00 00 00 00 00 00 E0 [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 C5 A9 00 90 00 E2 [15:20:09]RAPDU: 90 00 [15:20:09]wFMCommunicate OK [15:20:09]SAM_PROTO_ClearQueue done [15:20:09]KKMCreateOFDPacket [15:20:09]OFDProtocolAddRootSTLVToBuf [15:20:09]FM_MakeSignedData [15:20:09]FM_MakeSignedData [15:20:09]SAM_PROTO_SignData [15:20:09]wFMCommunicate request_size=4 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 0D 01 02 [15:20:09]Write to MH i2c: E2 08 00 C6 A9 80 0D 01 02 00 00 00 00 E8 [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 C6 A9 00 90 00 E3 [15:20:09]RAPDU: 90 00 [15:20:09]wFMCommunicate OK [15:20:09]wFMCommunicate request_size=255 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 31 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EB 02 00 35 04 06 00 04 [15:20:09]Write to MH i2c: E2 02 01 C7 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 31 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EB 02 00 35 04 06 00 04 00 00 76 [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 C7 A9 00 90 00 E4 [15:20:09]RAPDU: 90 00 [15:20:09]wFMCommunicate OK [15:20:09]wFMCommunicate request_size=10 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 0D 02 02 05 1F 9D 19 67 0C [15:20:09]Write to MH i2c: E2 0D 00 C8 A9 80 0D 02 02 05 00 1F 9D 19 67 0C 00 00 3D [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 03 00 C8 A9 00 90 00 E5 [15:20:09]RAPDU: 90 00 [15:20:09]wFMCommunicate OK [15:20:09]wFMCommunicate request_size=4 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 0D 03 02 [15:20:09]Write to MH i2c: E2 08 00 C9 A9 80 0D 03 02 00 00 00 00 ED [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 0B 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 0B 00 C9 A9 00 D4 27 B5 3D EA 84 9D 97 90 00 7D [15:20:09]RAPDU: D4 27 B5 3D EA 84 9D 97 90 00 [15:20:09]wFMCommunicate OK [15:20:09]SAM_PROTO_SignData done [15:20:09]FM_MakeSignedData done [15:20:09]CreateOFDProtocolMessage [15:20:09]wFMCommunicate request_size=4 [15:20:09]MH_SAM_APDU [15:20:09]CAPDU: 80 11 00 00 [15:20:09]Write to MH i2c: E2 08 00 CA A9 80 11 00 00 00 00 00 00 ED [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:09]Read from MH i2c: E2 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 17 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: E2 17 00 CA A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [15:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:20:09]wFMCommunicate OK [15:20:09]CreateOFDProtocolMessage done [15:20:09]OFDSenderStorePacket 191470 [15:20:09]StoreOFDPacket docnum=191470 [15:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 F2 07 01 FB 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 31 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EB 02 00 35 04 06 00 04 1F 9D 19 67 0C D4 27 B5 3D EA 84 9D 97 [15:20:09]CheckFolder [15:20:09]dirname=/storage/ofd_packets [15:20:09]CheckFolder done [15:20:09]ProducePacketName [15:20:09]name=ofd_packets/00191470 [15:20:09]NVStorageSaveData ofd_packets/00191470 [15:20:09]File name is /storage/ofd_packets/00191470 [15:20:09]Write 301 bytes [15:20:09]NVStorageSaveData done [15:20:09]OFDSenderStorePacket done [15:20:09]KKMCreateOFDPacket done [15:20:09]NVStorageSaveData kkm_last_timestamp [15:20:09]File name is /storage/kkm_last_timestamp [15:20:09]Write 4 bytes [15:20:09]NVStorageSaveData done [15:20:09]ExternCall_PrintAddStr [15:20:09]wPrintStart [15:20:09]Write to MH i2c: 01 00 00 CB A9 74 [15:20:09]Write i2c OK [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: 01 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: 01 07 00 [15:20:09]MH_I2C_Read... [15:20:09]Read from MH i2c: 01 07 00 CB A9 00 00 00 00 00 FF 0F 89 [15:20:09]RasterBufferAndPrint [15:20:09]line Счет N : (1)30765 [15:20:09]line ИНН: 02508201610067 [15:20:09]line Контрольно-Кассовый Чек [15:20:09]line ПРОДАЖА [15:20:09]line ТРК (МРК, ГНК) : 21 [15:20:09]line Товар: 2710124130 [15:20:09]line Аи-92-К-5 [15:20:09]line 2.990 * 66.90 [15:20:09]line = 200.03 [15:20:09]line НДС 12% НСП 1% [15:20:09]line > о реализуемом товаре [15:20:09]line ОКРУГЛЕНИЕ: -0.03 [15:20:09]line ИТОГО: 200.00 [15:20:09]line Внесено: 200.00 [15:20:09]line СДАЧА: 0.00 [15:20:09]line НСП 1% : 1.77 [15:20:09]line НДС 12% : 21.24 [15:20:09]line Наличными: 200.00 [15:20:09]line Безнал.: 0.00 [15:20:09]line Место: АЗС № 170 "Партнер Нефть" [15:20:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:20:09]line СНО: Общий режим [15:20:09]line Чек 209 25.10.2024 15:20 [15:20:09]line Смена: 540 ФФД: 1.0 [15:20:09]line ЗНМ: 0300000110 [15:20:09]line РНМ: 0000000000091776 [15:20:09]line Версия ККМ: 001 [15:20:09]line ФМ: 0000000000871754 [15:20:09]line ФД: 191470 [15:20:09]line ФПД: 4533826184972 [15:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191470&fm=4533826184972&tin=02508201610067®Number=0000000000091776&sum=20000 [15:20:10]OFD Sender: Processing packet 191470 [packets to send 75, broken 74] [15:20:10]ProducePacketName [15:20:10]name=ofd_packets/00191470 [15:20:10]OFD Sender: To server: pG, [15:20:10]CommunicateWithHost lk.salyk.kg:30040 [15:20:10]ConnectInit lk.salyk.kg [15:20:10]written 0, free lines is 4095 [15:20:10]Connected sock=10 [15:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 F2 07 01 FB 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 31 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EB 02 00 35 04 06 00 04 1F 9D 19 67 0C D4 27 B5 3D EA 84 9D 97 [15:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F0 C4 47 00 9F 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EB 02 00 F4 03 04 00 FF 5B 1B 67 B6 04 01 00 00 45 AF FE EF 8E F0 4C 4A [15:20:10]CommunicateWithHost err = 0 [15:20:10]CheckOFDResponse [15:20:10]1017 (14) - 77093643461234 [15:20:10]1041 (16) - 0000000000871754 [15:20:10]1040 (4) - 191470 [15:20:10]1012 (4) - 25.10.2024 08:51 [15:20:10]1206 (1) - 0 [15:20:10]OFD Sender: Remove packet 191470 [15:20:10]ProducePacketName [15:20:10]name=ofd_packets/00191470 [15:20:10]NVStorageDeleteData [15:20:10]Write to MH i2c: 01 00 00 F6 A9 9F [15:20:10]Write i2c OK [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: 01 [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: 01 07 00 [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: 01 07 00 F6 A9 00 00 00 00 00 B6 0C 68 [15:20:10]RasterBufferAndPrint [15:20:10]line [15:20:10]line [15:20:10]line [15:20:10]line [15:20:10]line [15:20:10]written 0, free lines is 3260 [15:20:10]MH_Cut [15:20:10]Write to MH i2c: D1 01 00 FD A9 01 78 [15:20:10]Write i2c OK [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: D1 [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: D1 01 00 [15:20:10]MH_I2C_Read... [15:20:10]Read from MH i2c: D1 01 00 FD A9 00 77 [15:20:10]Write to MH i2c: 01 00 00 FE A9 A7 [15:20:10]Write i2c OK [15:20:10]MH_I2C_Read... [15:20:10]OFD Sender: No OFD packet to send [15:20:11]*** Cut start [15:20:11]*** Partial cut [15:20:11]*** CUTSNS_PIN = 1 [15:20:11]*** CUTSNS_PIN = 0 [15:20:11]*** Brake cut motor [15:20:11]Read from MH i2c: 01 [15:20:11]MH_I2C_Read... [15:20:11]*** Stop cut motor [15:20:11]*** Cut end [15:20:11]Read from MH i2c: 01 07 00 [15:20:11]MH_I2C_Read... [15:20:11]Read from MH i2c: 01 07 00 FE A9 00 00 00 00 00 FF 0F BC [15:20:11]process_action close_receipt done [15:20:11]requested_data is exist [15:20:11]produce_requested_data [15:20:11]requested_item fm.sn is exist - process it [15:20:11]wFMCommunicate request_size=4 [15:20:11]MH_SAM_APDU [15:20:11]CAPDU: 80 11 00 00 [15:20:11]Write to MH i2c: E2 08 00 FF A9 80 11 00 00 00 00 00 00 22 [15:20:11]Write i2c OK [15:20:11]MH_I2C_Read... [15:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:11]Read from MH i2c: E2 [15:20:11]MH_I2C_Read... [15:20:11]Read from MH i2c: E2 17 00 [15:20:11]MH_I2C_Read... [15:20:11]Read from MH i2c: E2 17 00 FF A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [15:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:20:11]wFMCommunicate OK [15:20:11]requested_item fd.num is exist - process it [15:20:11]SAM_PROTO_GetFieldsCounters [15:20:11]wFMCommunicate request_size=4 [15:20:11]MH_SAM_APDU [15:20:11]CAPDU: 80 13 00 00 [15:20:11]Write to MH i2c: E2 08 00 00 AA 80 13 00 00 00 00 00 00 26 [15:20:11]Write i2c OK [15:20:11]MH_I2C_Read... [15:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:12]Read from MH i2c: E2 [15:20:12]MH_I2C_Read... [15:20:12]Read from MH i2c: E2 62 00 [15:20:12]MH_I2C_Read... [15:20:12]Read from MH i2c: E2 62 00 00 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:12]wFMCommunicate OK [15:20:12]SAM_PROTO_GetFieldsCounters done [15:20:12]requested_item shift.num is exist - process it [15:20:12]requested_item shift.opened is exist - process it [15:20:12]req_shift_opened [15:20:12]FM_GetShiftState [15:20:12]SAM_PROTO_GetShiftState [15:20:12]wFMCommunicate request_size=4 [15:20:12]MH_SAM_APDU [15:20:12]CAPDU: 80 13 01 00 [15:20:12]Write to MH i2c: E2 08 00 01 AA 80 13 01 00 00 00 00 00 28 [15:20:12]Write i2c OK [15:20:12]MH_I2C_Read... [15:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:12]Read from MH i2c: E2 [15:20:12]MH_I2C_Read... [15:20:12]Read from MH i2c: E2 0E 00 [15:20:12]MH_I2C_Read... [15:20:12]Read from MH i2c: E2 0E 00 01 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EB [15:20:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:20:12]wFMCommunicate OK [15:20:12]SAM_PROTO_GetShiftState done [15:20:12]FM_GetShiftState done [15:20:12]req_shift_opened done [15:20:12]requested_item shift.open_date is exist - process it [15:20:12]req_shift_open_date [15:20:12]req_shift_open_date done [15:20:12]produce_requested_data done [15:20:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191470,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:20:12]process_action_free close_receipt [15:20:12]json_value_free [15:20:12]json_value_free done [15:20:12]process_json_proto returns [15:20:12]Send response to host [15:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191470,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:20:12]free response buf [15:20:12]execute_script done [15:20:12]execute_script returns [15:20:12]free content buf [15:20:12]Sock 8.Close socket [15:20:12]Sock 8.Thread stoped [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:18]accept exits with 9 [15:23:18]New connection [15:23:18]New thread 3066817892 created [15:23:18]Thread 3066961252 joined [15:23:18]Waiting for new connection... [15:23:18] Sock 9.Parse request [15:23:18]Sock 9.Check first char [15:23:18]Sock 9.First char is OK [15:23:18]request: POST /json_proto HTTP/1.0 [15:23:18]Method: POST [15:23:18]URL: /json_proto [15:23:18]Method is POST - this is cgi request [15:23:18]url: /json_proto [15:23:18]query_string will be loaded in cgi processing [15:23:18]execute_cgi json_proto POST (null) [15:23:18]execute_cgi path=json_proto method=POST [15:23:18]POST find Content-Length [15:23:18]Host: 172.17.63.131:8080 [15:23:18]Content-Length: 678 [15:23:18]Content-Type: application/json [15:23:18] [15:23:18]POST finish read [15:23:18]Found Content-Length = 678 [15:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:18]execute_script... [15:23: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)30766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:18]POST & json_proto [15:23:18]process_json_proto [15:23:18]json parsed OK: [15:23:18]protocol is kg_v1.0 [15:23:18]action value=close_receipt [15:23:18]process_action close_receipt [15:23:18]cmd_close_receipt [15:23:18]MH_GetDate [15:23:18]Write to MH i2c: F0 00 00 02 AA 9B [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 09 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 09 00 02 AA 00 F0 B7 1B 67 22 05 6E 64 C6 [15:23:18]GetLastDocTimeStamp 1729869617 [15:23:18]current date 1729869808 [15:23:18]FM_GetShiftState [15:23:18]SAM_PROTO_GetShiftState [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 01 00 [15:23:18]Write to MH i2c: E2 08 00 03 AA 80 13 01 00 00 00 00 00 2A [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 03 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [15:23:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_GetShiftState done [15:23:18]FM_GetShiftState done [15:23:18]opened in 1729816399 [15:23:18]opened+sec_in_day 1729902799 [15:23:18]quantity*price = 100050 [15:23:18]sum+1 = 100052 [15:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 210 25.10.2024 15:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191471 ФПД: 102558038292882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152328&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191471&fm=102558038292882&tin=02508201610067®Number=0000000000091776&sum=100000 [15:23:19]StoreToDocumentArchive [15:23:19]shift 540 fd 191471 [15:23:19]save to /storage/0540/doc_00191471 [15:23:19]save last doc name /storage/0540/doc_00191471 to /storage/kkm_last_doc_name [15:23:19]save OK [15:23:19]Clear old archive folders... [15:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:19]tlvbuf is 016253A0 [15:23:19]SAM_PROTO_ClearQueue [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 09 00 00 [15:23:19]Write to MH i2c: E2 08 00 10 AA 80 09 00 00 00 00 00 00 2C [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 10 AA 00 90 00 2E [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_ClearQueue done [15:23:19]KKMCreateOFDPacket [15:23:19]OFDProtocolAddRootSTLVToBuf [15:23:19]FM_MakeSignedData [15:23:19]FM_MakeSignedData [15:23:19]SAM_PROTO_SignData [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 01 02 [15:23:19]Write to MH i2c: E2 08 00 11 AA 80 0D 01 02 00 00 00 00 34 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 11 AA 00 90 00 2F [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]wFMCommunicate request_size=255 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D2 00 00 00 F4 03 04 00 F0 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EB 02 00 35 04 06 00 5D 46 A7 70 [15:23:19]Write to MH i2c: E2 02 01 12 AA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F0 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EB 02 00 35 04 06 00 5D 46 A7 70 00 00 6D [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 12 AA 00 90 00 30 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=7 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 0D 02 02 02 F9 92 [15:23:20]Write to MH i2c: E2 0A 00 13 AA 80 0D 02 02 02 00 F9 92 00 00 C6 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 03 00 13 AA 00 90 00 31 [15:23:20]RAPDU: 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 0D 03 02 [15:23:20]Write to MH i2c: E2 08 00 14 AA 80 0D 03 02 00 00 00 00 39 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0B 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0B 00 14 AA 00 60 B4 42 7B EF 51 26 1D 90 00 8E [15:23:20]RAPDU: 60 B4 42 7B EF 51 26 1D 90 00 [15:23:20]wFMCommunicate OK [15:23:20]SAM_PROTO_SignData done [15:23:20]FM_MakeSignedData done [15:23:20]CreateOFDProtocolMessage [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 11 00 00 [15:23:20]Write to MH i2c: E2 08 00 15 AA 80 11 00 00 00 00 00 00 39 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 17 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 17 00 15 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [15:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:20]wFMCommunicate OK [15:23:20]CreateOFDProtocolMessage done [15:23:20]OFDSenderStorePacket 191471 [15:23:20]StoreOFDPacket docnum=191471 [15:23:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 33 E6 04 01 24 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F0 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EB 02 00 35 04 06 00 5D 46 A7 70 F9 92 60 B4 42 7B EF 51 26 1D [15:23:20]CheckFolder [15:23:20]dirname=/storage/ofd_packets [15:23:20]CheckFolder done [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00191471 [15:23:20]NVStorageSaveData ofd_packets/00191471 [15:23:20]File name is /storage/ofd_packets/00191471 [15:23:20]Write 298 bytes [15:23:20]NVStorageSaveData done [15:23:20]OFDSenderStorePacket done [15:23:20]KKMCreateOFDPacket done [15:23:20]NVStorageSaveData kkm_last_timestamp [15:23:20]File name is /storage/kkm_last_timestamp [15:23:20]Write 4 bytes [15:23:20]NVStorageSaveData done [15:23:20]ExternCall_PrintAddStr [15:23:20]wPrintStart [15:23:20]Write to MH i2c: 01 00 00 16 AA C0 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 16 AA 00 00 00 00 00 FF 0F D5 [15:23:20]RasterBufferAndPrint [15:23:20]line Счет N : (1)30766 [15:23:20]line ИНН: 02508201610067 [15:23:20]line Контрольно-Кассовый Чек [15:23:20]line ПРОДАЖА [15:23:20]line ТРК (МРК, ГНК) : 11 [15:23:20]line Товар: 2710194210 [15:23:20]line ДТ-К-5 [15:23:20]line 13.130 * 76.20 [15:23:20]line = 1000.51 [15:23:20]line НДС 12% НСП 1% [15:23:20]line > о реализуемом товаре [15:23:20]line ОКРУГЛЕНИЕ: -0.51 [15:23:20]line ИТОГО: 1000.00 [15:23:20]line Внесено: 1000.00 [15:23:20]line СДАЧА: 0.00 [15:23:20]line НСП 1% : 8.85 [15:23:20]line НДС 12% : 106.25 [15:23:20]line Наличными: 1000.00 [15:23:20]line Безнал.: 0.00 [15:23:20]line Место: АЗС № 170 "Партнер Нефть" [15:23:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:23:20]line СНО: Общий режим [15:23:20]line Чек 210 25.10.2024 15:23 [15:23:20]line Смена: 540 ФФД: 1.0 [15:23:20]line ЗНМ: 0300000110 [15:23:20]line РНМ: 0000000000091776 [15:23:20]line Версия ККМ: 001 [15:23:20]line ФМ: 0000000000871754 [15:23:20]line ФД: 191471 [15:23:20]line ФПД: 102558038292882 [15:23:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152328&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191471&fm=102558038292882&tin=02508201610067®Number=0000000000091776&sum=100000 [15:23:20]OFD Sender: Processing packet 191471 [packets to send 75, broken 74] [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00191471 [15:23:20]OFD Sender: To server: pG, [15:23:20]CommunicateWithHost lk.salyk.kg:30040 [15:23:20]ConnectInit lk.salyk.kg [15:23:20]written 0, free lines is 4095 [15:23:20]Connected sock=10 [15:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 33 E6 04 01 24 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F0 B7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EB 02 00 35 04 06 00 5D 46 A7 70 F9 92 60 B4 42 7B EF 51 26 1D [15:23:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A C8 47 00 E6 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EB 02 00 F4 03 04 00 BE 5C 1B 67 B6 04 01 00 00 47 FC E7 D1 59 C6 96 A4 [15:23:20]CommunicateWithHost err = 0 [15:23:20]CheckOFDResponse [15:23:20]1017 (14) - 77093643461234 [15:23:20]1041 (16) - 0000000000871754 [15:23:20]1040 (4) - 191471 [15:23:20]1012 (4) - 25.10.2024 08:54 [15:23:20]1206 (1) - 0 [15:23:20]OFD Sender: Remove packet 191471 [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00191471 [15:23:20]NVStorageDeleteData [15:23:20]Write to MH i2c: 01 00 00 41 AA EB [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 41 AA 00 00 00 00 00 B2 0C B0 [15:23:20]RasterBufferAndPrint [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]written 0, free lines is 3256 [15:23:20]MH_Cut [15:23:20]Write to MH i2c: D1 01 00 48 AA 01 C4 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 01 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 01 00 48 AA 00 C3 [15:23:20]Write to MH i2c: 01 00 00 49 AA F3 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:21]OFD Sender: No OFD packet to send [15:23:21]*** Cut start [15:23:21]*** Partial cut [15:23:21]*** CUTSNS_PIN = 1 [15:23:21]*** CUTSNS_PIN = 0 [15:23:22]*** Brake cut motor [15:23:22]Read from MH i2c: 01 [15:23:22]MH_I2C_Read... [15:23:22]*** Stop cut motor [15:23:22]*** Cut end [15:23:22]Read from MH i2c: 01 07 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 49 AA 00 00 00 00 00 FF 0F 08 [15:23:22]process_action close_receipt done [15:23:22]requested_data is exist [15:23:22]produce_requested_data [15:23:22]requested_item fm.sn is exist - process it [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 11 00 00 [15:23:22]Write to MH i2c: E2 08 00 4A AA 80 11 00 00 00 00 00 00 6E [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 4A AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [15:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:22]wFMCommunicate OK [15:23:22]requested_item fd.num is exist - process it [15:23:22]SAM_PROTO_GetFieldsCounters [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 00 00 [15:23:22]Write to MH i2c: E2 08 00 4B AA 80 13 00 00 00 00 00 00 71 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 62 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 62 00 4B AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [15:23:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetFieldsCounters done [15:23:22]requested_item shift.num is exist - process it [15:23:22]requested_item shift.opened is exist - process it [15:23:22]req_shift_opened [15:23:22]FM_GetShiftState [15:23:22]SAM_PROTO_GetShiftState [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 01 00 [15:23:22]Write to MH i2c: E2 08 00 4C AA 80 13 01 00 00 00 00 00 73 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 4C AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 36 [15:23:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetShiftState done [15:23:22]FM_GetShiftState done [15:23:22]req_shift_opened done [15:23:22]requested_item shift.open_date is exist - process it [15:23:22]req_shift_open_date [15:23:22]req_shift_open_date done [15:23:22]produce_requested_data done [15:23:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191471,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:23:22]process_action_free close_receipt [15:23:22]json_value_free [15:23:22]json_value_free done [15:23:22]process_json_proto returns [15:23:22]Send response to host [15:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191471,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:23:22]free response buf [15:23:22]execute_script done [15:23:22]execute_script returns [15:23:22]free content buf [15:23:22]Sock 9.Close socket [15:23:22]Sock 9.Thread stoped [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:43]accept exits with 8 [15:24:43]New connection [15:24:43]New thread 3066961252 created [15:24:43]Thread 3066817892 joined [15:24:43]Waiting for new connection... [15:24:43] Sock 8.Parse request [15:24:43]Sock 8.Check first char [15:24:43]Sock 8.First char is OK [15:24:43]request: POST /json_proto HTTP/1.0 [15:24:43]Method: POST [15:24:43]URL: /json_proto [15:24:43]Method is POST - this is cgi request [15:24:43]url: /json_proto [15:24:43]query_string will be loaded in cgi processing [15:24:43]execute_cgi json_proto POST (null) [15:24:43]execute_cgi path=json_proto method=POST [15:24:43]POST find Content-Length [15:24:43]Host: 172.17.63.131:8080 [15:24:43]Content-Length: 676 [15:24:43]Content-Type: application/json [15:24:43] [15:24:43]POST finish read [15:24:43]Found Content-Length = 676 [15:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:43]execute_script... [15: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)30767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:43]POST & json_proto [15:24:43]process_json_proto [15:24:43]json parsed OK: [15:24:43]protocol is kg_v1.0 [15:24:43]action value=close_receipt [15:24:43]process_action close_receipt [15:24:43]cmd_close_receipt [15:24:43]MH_GetDate [15:24:43]Write to MH i2c: F0 00 00 4D AA E6 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 09 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 09 00 4D AA 00 45 B8 1B 67 22 05 6E 64 67 [15:24:43]GetLastDocTimeStamp 1729869808 [15:24:43]current date 1729869893 [15:24:43]FM_GetShiftState [15:24:43]SAM_PROTO_GetShiftState [15:24:43]wFMCommunicate request_size=4 [15:24:43]MH_SAM_APDU [15:24:43]CAPDU: 80 13 01 00 [15:24:43]Write to MH i2c: E2 08 00 4E AA 80 13 01 00 00 00 00 00 75 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:43]Read from MH i2c: E2 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 0E 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 0E 00 4E AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 38 [15:24:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:24:43]wFMCommunicate OK [15:24:43]SAM_PROTO_GetShiftState done [15:24:43]FM_GetShiftState done [15:24:43]opened in 1729816399 [15:24:43]opened+sec_in_day 1729902799 [15:24:43]quantity*price = 20003 [15:24:43]sum+1 = 20004 [15:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 211 25.10.2024 15:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191472 ФПД: 9298733334737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152453&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191472&fm=9298733334737&tin=02508201610067®Number=0000000000091776&sum=20000 [15:24:45]StoreToDocumentArchive [15:24:45]shift 540 fd 191472 [15:24:45]save to /storage/0540/doc_00191472 [15:24:45]save last doc name /storage/0540/doc_00191472 to /storage/kkm_last_doc_name [15:24:45]save OK [15:24:45]Clear old archive folders... [15:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:45]tlvbuf is 015B0F00 [15:24:45]SAM_PROTO_ClearQueue [15:24:45]wFMCommunicate request_size=4 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 09 00 00 [15:24:45]Write to MH i2c: E2 08 00 5B AA 80 09 00 00 00 00 00 00 77 [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 5B AA 00 90 00 79 [15:24:45]RAPDU: 90 00 [15:24:45]wFMCommunicate OK [15:24:45]SAM_PROTO_ClearQueue done [15:24:45]KKMCreateOFDPacket [15:24:45]OFDProtocolAddRootSTLVToBuf [15:24:45]FM_MakeSignedData [15:24:45]FM_MakeSignedData [15:24:45]SAM_PROTO_SignData [15:24:45]wFMCommunicate request_size=4 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 0D 01 02 [15:24:45]Write to MH i2c: E2 08 00 5C AA 80 0D 01 02 00 00 00 00 7F [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 5C AA 00 90 00 7A [15:24:45]RAPDU: 90 00 [15:24:45]wFMCommunicate OK [15:24:45]wFMCommunicate request_size=255 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 45 B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EB 02 00 35 04 06 00 08 [15:24:45]Write to MH i2c: E2 02 01 5D AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 45 B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EB 02 00 35 04 06 00 08 00 00 2A [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 5D AA 00 90 00 7B [15:24:45]RAPDU: 90 00 [15:24:45]wFMCommunicate OK [15:24:45]wFMCommunicate request_size=10 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 0D 02 02 05 75 07 B2 80 D1 [15:24:45]Write to MH i2c: E2 0D 00 5E AA 80 0D 02 02 05 00 75 07 B2 80 D1 00 00 0B [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 03 00 5E AA 00 90 00 7C [15:24:45]RAPDU: 90 00 [15:24:45]wFMCommunicate OK [15:24:45]wFMCommunicate request_size=4 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 0D 03 02 [15:24:45]Write to MH i2c: E2 08 00 5F AA 80 0D 03 02 00 00 00 00 84 [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 0B 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 0B 00 5F AA 00 6E 01 27 C4 E3 58 01 87 90 00 A2 [15:24:45]RAPDU: 6E 01 27 C4 E3 58 01 87 90 00 [15:24:45]wFMCommunicate OK [15:24:45]SAM_PROTO_SignData done [15:24:45]FM_MakeSignedData done [15:24:45]CreateOFDProtocolMessage [15:24:45]wFMCommunicate request_size=4 [15:24:45]MH_SAM_APDU [15:24:45]CAPDU: 80 11 00 00 [15:24:45]Write to MH i2c: E2 08 00 60 AA 80 11 00 00 00 00 00 00 84 [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:45]Read from MH i2c: E2 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 17 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: E2 17 00 60 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [15:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:24:45]wFMCommunicate OK [15:24:45]CreateOFDProtocolMessage done [15:24:45]OFDSenderStorePacket 191472 [15:24:45]StoreOFDPacket docnum=191472 [15:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 24 07 01 9D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 45 B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EB 02 00 35 04 06 00 08 75 07 B2 80 D1 6E 01 27 C4 E3 58 01 87 [15:24:45]CheckFolder [15:24:45]dirname=/storage/ofd_packets [15:24:45]CheckFolder done [15:24:45]ProducePacketName [15:24:45]name=ofd_packets/00191472 [15:24:45]NVStorageSaveData ofd_packets/00191472 [15:24:45]File name is /storage/ofd_packets/00191472 [15:24:45]Write 301 bytes [15:24:45]NVStorageSaveData done [15:24:45]OFDSenderStorePacket done [15:24:45]KKMCreateOFDPacket done [15:24:45]NVStorageSaveData kkm_last_timestamp [15:24:45]File name is /storage/kkm_last_timestamp [15:24:45]Write 4 bytes [15:24:45]NVStorageSaveData done [15:24:45]ExternCall_PrintAddStr [15:24:45]wPrintStart [15:24:45]Write to MH i2c: 01 00 00 61 AA 0B [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 07 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 07 00 61 AA 00 00 00 00 00 FF 0F 20 [15:24:45]RasterBufferAndPrint [15:24:45]line Счет N : (1)30767 [15:24:45]line ИНН: 02508201610067 [15:24:45]line Контрольно-Кассовый Чек [15:24:45]line ПРОДАЖА [15:24:45]line ТРК (МРК, ГНК) : 21 [15:24:45]line Товар: 2710124130 [15:24:45]line Аи-92-К-5 [15:24:45]line 2.990 * 66.90 [15:24:45]line = 200.03 [15:24:45]line НДС 12% НСП 1% [15:24:45]line > о реализуемом товаре [15:24:45]line ОКРУГЛЕНИЕ: -0.03 [15:24:45]line ИТОГО: 200.00 [15:24:45]line Внесено: 200.00 [15:24:45]line СДАЧА: 0.00 [15:24:45]line НСП 1% : 1.77 [15:24:45]line НДС 12% : 21.24 [15:24:45]line Наличными: 200.00 [15:24:45]line Безнал.: 0.00 [15:24:45]line Место: АЗС № 170 "Партнер Нефть" [15:24:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:24:45]line СНО: Общий режим [15:24:45]line Чек 211 25.10.2024 15:24 [15:24:45]line Смена: 540 ФФД: 1.0 [15:24:45]line ЗНМ: 0300000110 [15:24:45]line РНМ: 0000000000091776 [15:24:45]line Версия ККМ: 001 [15:24:45]line ФМ: 0000000000871754 [15:24:45]line ФД: 191472 [15:24:45]line ФПД: 9298733334737 [15:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152453&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191472&fm=9298733334737&tin=02508201610067®Number=0000000000091776&sum=20000 [15:24:45]OFD Sender: Processing packet 191472 [packets to send 75, broken 74] [15:24:45]ProducePacketName [15:24:45]name=ofd_packets/00191472 [15:24:45]OFD Sender: To server: pG, [15:24:45]CommunicateWithHost lk.salyk.kg:30040 [15:24:45]ConnectInit lk.salyk.kg [15:24:45]written 0, free lines is 4095 [15:24:46]Connected sock=10 [15:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 24 07 01 9D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 45 B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EB 02 00 35 04 06 00 08 75 07 B2 80 D1 6E 01 27 C4 E3 58 01 87 [15:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 31 47 00 8B 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EB 02 00 F4 03 04 00 13 5D 1B 67 B6 04 01 00 00 C5 FC 62 99 43 99 47 B1 [15:24:46]CommunicateWithHost err = 0 [15:24:46]CheckOFDResponse [15:24:46]1017 (14) - 77093643461234 [15:24:46]1041 (16) - 0000000000871754 [15:24:46]1040 (4) - 191472 [15:24:46]1012 (4) - 25.10.2024 08:55 [15:24:46]1206 (1) - 0 [15:24:46]OFD Sender: Remove packet 191472 [15:24:46]ProducePacketName [15:24:46]name=ofd_packets/00191472 [15:24:46]NVStorageDeleteData [15:24:46]Write to MH i2c: 01 00 00 8C AA 36 [15:24:46]Write i2c OK [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: 01 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: 01 07 00 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: 01 07 00 8C AA 00 00 00 00 00 B5 0C FE [15:24:46]RasterBufferAndPrint [15:24:46]line [15:24:46]line [15:24:46]line [15:24:46]line [15:24:46]line [15:24:46]written 0, free lines is 3259 [15:24:46]MH_Cut [15:24:46]Write to MH i2c: D1 01 00 93 AA 01 0F [15:24:46]Write i2c OK [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: D1 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: D1 01 00 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: D1 01 00 93 AA 00 0E [15:24:46]Write to MH i2c: 01 00 00 94 AA 3E [15:24:46]Write i2c OK [15:24:46]MH_I2C_Read... [15:24:46]OFD Sender: No OFD packet to send [15:24:47]*** Cut start [15:24:47]*** Partial cut [15:24:47]*** CUTSNS_PIN = 1 [15:24:47]*** CUTSNS_PIN = 0 [15:24:47]*** Brake cut motor [15:24:47]Read from MH i2c: 01 [15:24:47]MH_I2C_Read... [15:24:47]*** Stop cut motor [15:24:47]*** Cut end [15:24:47]Read from MH i2c: 01 07 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: 01 07 00 94 AA 00 00 00 00 00 FF 0F 53 [15:24:47]process_action close_receipt done [15:24:47]requested_data is exist [15:24:47]produce_requested_data [15:24:47]requested_item fm.sn is exist - process it [15:24:47]wFMCommunicate request_size=4 [15:24:47]MH_SAM_APDU [15:24:47]CAPDU: 80 11 00 00 [15:24:47]Write to MH i2c: E2 08 00 95 AA 80 11 00 00 00 00 00 00 B9 [15:24:47]Write i2c OK [15:24:47]MH_I2C_Read... [15:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:47]Read from MH i2c: E2 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 17 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 17 00 95 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [15:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:24:47]wFMCommunicate OK [15:24:47]requested_item fd.num is exist - process it [15:24:47]SAM_PROTO_GetFieldsCounters [15:24:47]wFMCommunicate request_size=4 [15:24:47]MH_SAM_APDU [15:24:47]CAPDU: 80 13 00 00 [15:24:47]Write to MH i2c: E2 08 00 96 AA 80 13 00 00 00 00 00 00 BC [15:24:47]Write i2c OK [15:24:47]MH_I2C_Read... [15:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:48]Read from MH i2c: E2 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 62 00 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 62 00 96 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [15:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:48]wFMCommunicate OK [15:24:48]SAM_PROTO_GetFieldsCounters done [15:24:48]requested_item shift.num is exist - process it [15:24:48]requested_item shift.opened is exist - process it [15:24:48]req_shift_opened [15:24:48]FM_GetShiftState [15:24:48]SAM_PROTO_GetShiftState [15:24:48]wFMCommunicate request_size=4 [15:24:48]MH_SAM_APDU [15:24:48]CAPDU: 80 13 01 00 [15:24:48]Write to MH i2c: E2 08 00 97 AA 80 13 01 00 00 00 00 00 BE [15:24:48]Write i2c OK [15:24:48]MH_I2C_Read... [15:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:48]Read from MH i2c: E2 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 0E 00 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 0E 00 97 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 81 [15:24:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:24:48]wFMCommunicate OK [15:24:48]SAM_PROTO_GetShiftState done [15:24:48]FM_GetShiftState done [15:24:48]req_shift_opened done [15:24:48]requested_item shift.open_date is exist - process it [15:24:48]req_shift_open_date [15:24:48]req_shift_open_date done [15:24:48]produce_requested_data done [15:24:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191472,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:24:48]process_action_free close_receipt [15:24:48]json_value_free [15:24:48]json_value_free done [15:24:48]process_json_proto returns [15:24:48]Send response to host [15:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191472,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:24:48]free response buf [15:24:48]execute_script done [15:24:48]execute_script returns [15:24:48]free content buf [15:24:48]Sock 8.Close socket [15:24:48]Sock 8.Thread stoped [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:42]accept exits with 9 [15:25:42]New connection [15:25:42]New thread 3066817892 created [15:25:42]Thread 3066961252 joined [15:25:42]Waiting for new connection... [15:25:42] Sock 9.Parse request [15:25:42]Sock 9.Check first char [15:25:42]Sock 9.First char is OK [15:25:42]request: POST /json_proto HTTP/1.0 [15:25:42]Method: POST [15:25:42]URL: /json_proto [15:25:42]Method is POST - this is cgi request [15:25:42]url: /json_proto [15:25:42]query_string will be loaded in cgi processing [15:25:42]execute_cgi json_proto POST (null) [15:25:42]execute_cgi path=json_proto method=POST [15:25:42]POST find Content-Length [15:25:42]Host: 172.17.63.131:8080 [15:25:42]Content-Length: 676 [15:25:42]Content-Type: application/json [15:25:42] [15:25:42]POST finish read [15:25:42]Found Content-Length = 676 [15:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:42]execute_script... [15:25: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)30768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:42]POST & json_proto [15:25:42]process_json_proto [15:25:42]json parsed OK: [15:25:42]protocol is kg_v1.0 [15:25:42]action value=close_receipt [15:25:42]process_action close_receipt [15:25:42]cmd_close_receipt [15:25:42]MH_GetDate [15:25:42]Write to MH i2c: F0 00 00 98 AA 31 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 09 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 09 00 98 AA 00 7F B8 1B 67 22 05 6E 64 EC [15:25:42]GetLastDocTimeStamp 1729869893 [15:25:42]current date 1729869951 [15:25:42]FM_GetShiftState [15:25:42]SAM_PROTO_GetShiftState [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 01 00 [15:25:42]Write to MH i2c: E2 08 00 99 AA 80 13 01 00 00 00 00 00 C0 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 99 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 83 [15:25:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_GetShiftState done [15:25:42]FM_GetShiftState done [15:25:42]opened in 1729816399 [15:25:42]opened+sec_in_day 1729902799 [15:25:42]quantity*price = 50041 [15:25:42]sum+1 = 50042 [15:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 212 25.10.2024 15:25 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191473 ФПД: 80776402457957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191473&fm=80776402457957&tin=02508201610067®Number=0000000000091776&sum=50000 [15:25:43]StoreToDocumentArchive [15:25:43]shift 540 fd 191473 [15:25:43]save to /storage/0540/doc_00191473 [15:25:43]save last doc name /storage/0540/doc_00191473 to /storage/kkm_last_doc_name [15:25:43]save OK [15:25:43]Clear old archive folders... [15:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:43]tlvbuf is 015B0E20 [15:25:43]SAM_PROTO_ClearQueue [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 09 00 00 [15:25:43]Write to MH i2c: E2 08 00 A6 AA 80 09 00 00 00 00 00 00 C2 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 A6 AA 00 90 00 C4 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_ClearQueue done [15:25:43]KKMCreateOFDPacket [15:25:43]OFDProtocolAddRootSTLVToBuf [15:25:43]FM_MakeSignedData [15:25:43]FM_MakeSignedData [15:25:43]SAM_PROTO_SignData [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 01 02 [15:25:43]Write to MH i2c: E2 08 00 A7 AA 80 0D 01 02 00 00 00 00 CA [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 A7 AA 00 90 00 C5 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=255 [15:25:43]MH_SAM_APDU [15:25: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EB 02 00 35 04 06 00 49 [15:25:43]Write to MH i2c: E2 02 01 A8 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EB 02 00 35 04 06 00 49 00 00 30 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 A8 AA 00 90 00 C6 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=10 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 02 02 05 77 38 C6 55 65 [15:25:43]Write to MH i2c: E2 0D 00 A9 AA 80 0D 02 02 05 00 77 38 C6 55 65 00 00 06 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 A9 AA 00 90 00 C7 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 03 02 [15:25:43]Write to MH i2c: E2 08 00 AA AA 80 0D 03 02 00 00 00 00 CF [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 AA AA 00 AB 06 65 64 25 1B 6A 45 90 00 39 [15:25:43]RAPDU: AB 06 65 64 25 1B 6A 45 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_SignData done [15:25:43]FM_MakeSignedData done [15:25:43]CreateOFDProtocolMessage [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 11 00 00 [15:25:43]Write to MH i2c: E2 08 00 AB AA 80 11 00 00 00 00 00 00 CF [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 AB AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [15:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:43]wFMCommunicate OK [15:25:43]CreateOFDProtocolMessage done [15:25:43]OFDSenderStorePacket 191473 [15:25:43]StoreOFDPacket docnum=191473 [15:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 19 07 01 53 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EB 02 00 35 04 06 00 49 77 38 C6 55 65 AB 06 65 64 25 1B 6A 45 [15:25:43]CheckFolder [15:25:43]dirname=/storage/ofd_packets [15:25:43]CheckFolder done [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00191473 [15:25:43]NVStorageSaveData ofd_packets/00191473 [15:25:43]File name is /storage/ofd_packets/00191473 [15:25:43]Write 301 bytes [15:25:43]NVStorageSaveData done [15:25:43]OFDSenderStorePacket done [15:25:43]KKMCreateOFDPacket done [15:25:43]NVStorageSaveData kkm_last_timestamp [15:25:43]File name is /storage/kkm_last_timestamp [15:25:43]Write 4 bytes [15:25:43]NVStorageSaveData done [15:25:43]ExternCall_PrintAddStr [15:25:43]wPrintStart [15:25:43]Write to MH i2c: 01 00 00 AC AA 56 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 AC AA 00 00 00 00 00 FF 0F 6B [15:25:43]RasterBufferAndPrint [15:25:43]line Счет N : (1)30768 [15:25:43]line ИНН: 02508201610067 [15:25:43]line Контрольно-Кассовый Чек [15:25:43]line ПРОДАЖА [15:25:43]line ТРК (МРК, ГНК) : 12 [15:25:43]line Товар: 2710124130 [15:25:43]line Аи-92-К-5 [15:25:43]line 7.480 * 66.90 [15:25:43]line = 500.41 [15:25:43]line НДС 12% НСП 1% [15:25:43]line > о реализуемом товаре [15:25:43]line ОКРУГЛЕНИЕ: -0.41 [15:25:43]line ИТОГО: 500.00 [15:25:43]line Внесено: 500.00 [15:25:43]line СДАЧА: 0.00 [15:25:43]line НСП 1% : 4.43 [15:25:43]line НДС 12% : 53.14 [15:25:43]line Наличными: 500.00 [15:25:43]line Безнал.: 0.00 [15:25:43]line Место: АЗС № 170 "Партнер Нефть" [15:25:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:25:43]line СНО: Общий режим [15:25:43]line Чек 212 25.10.2024 15:25 [15:25:43]line Смена: 540 ФФД: 1.0 [15:25:43]line ЗНМ: 0300000110 [15:25:43]line РНМ: 0000000000091776 [15:25:43]line Версия ККМ: 001 [15:25:43]line ФМ: 0000000000871754 [15:25:43]line ФД: 191473 [15:25:43]line ФПД: 80776402457957 [15:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191473&fm=80776402457957&tin=02508201610067®Number=0000000000091776&sum=50000 [15:25:44]OFD Sender: Processing packet 191473 [packets to send 75, broken 74] [15:25:44]ProducePacketName [15:25:44]name=ofd_packets/00191473 [15:25:44]OFD Sender: To server: pG, [15:25:44]CommunicateWithHost lk.salyk.kg:30040 [15:25:44]ConnectInit lk.salyk.kg [15:25:44]written 0, free lines is 4095 [15:25:44]Connected sock=10 [15:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 19 07 01 53 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EB 02 00 35 04 06 00 49 77 38 C6 55 65 AB 06 65 64 25 1B 6A 45 [15:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 8C 47 00 37 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 31 37 35 34 10 04 04 00 F1 EB 02 00 F4 03 04 00 4D 5D 1B 67 B6 04 01 00 00 CA 47 5D CF 12 C5 22 50 [15:25:44]CommunicateWithHost err = 0 [15:25:44]CheckOFDResponse [15:25:44]1017 (14) - 77093643461234 [15:25:44]1041 (16) - 0000000000871754 [15:25:44]1040 (4) - 191473 [15:25:44]1012 (4) - 25.10.2024 08:56 [15:25:44]1206 (1) - 0 [15:25:44]OFD Sender: Remove packet 191473 [15:25:44]ProducePacketName [15:25:44]name=ofd_packets/00191473 [15:25:44]NVStorageDeleteData [15:25:44]Write to MH i2c: 01 00 00 D7 AA 81 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 D7 AA 00 00 00 00 00 B1 0C 45 [15:25:44]RasterBufferAndPrint [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]written 0, free lines is 3256 [15:25:44]MH_Cut [15:25:44]Write to MH i2c: D1 01 00 DE AA 01 5A [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 01 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 01 00 DE AA 00 59 [15:25:44]Write to MH i2c: 01 00 00 DF AA 89 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]OFD Sender: No OFD packet to send [15:25:45]*** Cut start [15:25:45]*** Partial cut [15:25:45]*** CUTSNS_PIN = 1 [15:25:45]*** CUTSNS_PIN = 0 [15:25:45]*** Brake cut motor [15:25:45]Read from MH i2c: 01 [15:25:46]MH_I2C_Read... [15:25:46]*** Stop cut motor [15:25:46]*** Cut end [15:25:46]Read from MH i2c: 01 07 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: 01 07 00 DF AA 00 00 00 00 00 FF 0F 9E [15:25:46]process_action close_receipt done [15:25:46]requested_data is exist [15:25:46]produce_requested_data [15:25:46]requested_item fm.sn is exist - process it [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 11 00 00 [15:25:46]Write to MH i2c: E2 08 00 E0 AA 80 11 00 00 00 00 00 00 04 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 E0 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [15:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:46]wFMCommunicate OK [15:25:46]requested_item fd.num is exist - process it [15:25:46]SAM_PROTO_GetFieldsCounters [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 13 00 00 [15:25:46]Write to MH i2c: E2 08 00 E1 AA 80 13 00 00 00 00 00 00 07 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 62 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 62 00 E1 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [15:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:46]wFMCommunicate OK [15:25:46]SAM_PROTO_GetFieldsCounters done [15:25:46]requested_item shift.num is exist - process it [15:25:46]requested_item shift.opened is exist - process it [15:25:46]req_shift_opened [15:25:46]FM_GetShiftState [15:25:46]SAM_PROTO_GetShiftState [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 13 01 00 [15:25:46]Write to MH i2c: E2 08 00 E2 AA 80 13 01 00 00 00 00 00 09 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 0E 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 0E 00 E2 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CC [15:25:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:25:46]wFMCommunicate OK [15:25:46]SAM_PROTO_GetShiftState done [15:25:46]FM_GetShiftState done [15:25:46]req_shift_opened done [15:25:46]requested_item shift.open_date is exist - process it [15:25:46]req_shift_open_date [15:25:46]req_shift_open_date done [15:25:46]produce_requested_data done [15:25:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191473,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:25:46]process_action_free close_receipt [15:25:46]json_value_free [15:25:46]json_value_free done [15:25:46]process_json_proto returns [15:25:46]Send response to host [15:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191473,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:25:46]free response buf [15:25:46]execute_script done [15:25:46]execute_script returns [15:25:46]free content buf [15:25:46]Sock 9.Close socket [15:25:46]Sock 9.Thread stoped [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:13]accept exits with 8 [15:27:13]New connection [15:27:13]New thread 3066961252 created [15:27:13]Thread 3066817892 joined [15:27:13]Waiting for new connection... [15:27:13] Sock 8.Parse request [15:27:13]Sock 8.Check first char [15:27:13]Sock 8.First char is OK [15:27:13]request: POST /json_proto HTTP/1.0 [15:27:13]Method: POST [15:27:13]URL: /json_proto [15:27:13]Method is POST - this is cgi request [15:27:13]url: /json_proto [15:27:13]query_string will be loaded in cgi processing [15:27:13]execute_cgi json_proto POST (null) [15:27:13]execute_cgi path=json_proto method=POST [15:27:13]POST find Content-Length [15:27:13]Host: 172.17.63.131:8080 [15:27:13]Content-Length: 676 [15:27:13]Content-Type: application/json [15:27:13] [15:27:13]POST finish read [15:27:13]Found Content-Length = 676 [15:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:13]execute_script... [15:27: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)30769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:13]POST & json_proto [15:27:13]process_json_proto [15:27:13]json parsed OK: [15:27:13]protocol is kg_v1.0 [15:27:13]action value=close_receipt [15:27:13]process_action close_receipt [15:27:13]cmd_close_receipt [15:27:13]MH_GetDate [15:27:13]Write to MH i2c: F0 00 00 E3 AA 7C [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: F0 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: F0 09 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: F0 09 00 E3 AA 00 DB B8 1B 67 22 05 6E 64 93 [15:27:13]GetLastDocTimeStamp 1729869951 [15:27:13]current date 1729870043 [15:27:13]FM_GetShiftState [15:27:13]SAM_PROTO_GetShiftState [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 13 01 00 [15:27:13]Write to MH i2c: E2 08 00 E4 AA 80 13 01 00 00 00 00 00 0B [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0E 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0E 00 E4 AA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CE [15:27:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:27:13]wFMCommunicate OK [15:27:13]SAM_PROTO_GetShiftState done [15:27:13]FM_GetShiftState done [15:27:13]opened in 1729816399 [15:27:13]opened+sec_in_day 1729902799 [15:27:13]quantity*price = 50041 [15:27:13]sum+1 = 50042 [15:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 213 25.10.2024 15:27 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191474 ФПД: 235190376094709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191474&fm=235190376094709&tin=02508201610067®Number=0000000000091776&sum=50000 [15:27:14]StoreToDocumentArchive [15:27:14]shift 540 fd 191474 [15:27:14]save to /storage/0540/doc_00191474 [15:27:14]save last doc name /storage/0540/doc_00191474 to /storage/kkm_last_doc_name [15:27:14]save OK [15:27:14]Clear old archive folders... [15:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:14]tlvbuf is 0172E6B0 [15:27:14]SAM_PROTO_ClearQueue [15:27:14]wFMCommunicate request_size=4 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 09 00 00 [15:27:14]Write to MH i2c: E2 08 00 F1 AA 80 09 00 00 00 00 00 00 0D [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 F1 AA 00 90 00 0F [15:27:14]RAPDU: 90 00 [15:27:14]wFMCommunicate OK [15:27:14]SAM_PROTO_ClearQueue done [15:27:14]KKMCreateOFDPacket [15:27:14]OFDProtocolAddRootSTLVToBuf [15:27:14]FM_MakeSignedData [15:27:14]FM_MakeSignedData [15:27:14]SAM_PROTO_SignData [15:27:14]wFMCommunicate request_size=4 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 0D 01 02 [15:27:14]Write to MH i2c: E2 08 00 F2 AA 80 0D 01 02 00 00 00 00 15 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 F2 AA 00 90 00 10 [15:27:14]RAPDU: 90 00 [15:27:14]wFMCommunicate OK [15:27:14]wFMCommunicate request_size=255 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 DB B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EB 02 00 35 04 06 00 D5 [15:27:14]Write to MH i2c: E2 02 01 F3 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 DB B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EB 02 00 35 04 06 00 D5 00 00 65 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:14]Read from MH i2c: E2 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: E2 03 00 F3 AA 00 90 00 11 [15:27:14]RAPDU: 90 00 [15:27:14]wFMCommunicate OK [15:27:14]wFMCommunicate request_size=10 [15:27:14]MH_SAM_APDU [15:27:14]CAPDU: 80 0D 02 02 05 E7 86 D2 5B F5 [15:27:14]Write to MH i2c: E2 0D 00 F4 AA 80 0D 02 02 05 00 E7 86 D2 5B F5 00 00 B1 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 03 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 03 00 F4 AA 00 90 00 12 [15:27:15]RAPDU: 90 00 [15:27:15]wFMCommunicate OK [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 0D 03 02 [15:27:15]Write to MH i2c: E2 08 00 F5 AA 80 0D 03 02 00 00 00 00 1A [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0B 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0B 00 F5 AA 00 78 D7 4E 3D 1F 3F 3E 03 90 00 94 [15:27:15]RAPDU: 78 D7 4E 3D 1F 3F 3E 03 90 00 [15:27:15]wFMCommunicate OK [15:27:15]SAM_PROTO_SignData done [15:27:15]FM_MakeSignedData done [15:27:15]CreateOFDProtocolMessage [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 11 00 00 [15:27:15]Write to MH i2c: E2 08 00 F6 AA 80 11 00 00 00 00 00 00 1A [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]OFD Sender: No OFD packet to send [15:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 F6 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [15:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:15]wFMCommunicate OK [15:27:15]CreateOFDProtocolMessage done [15:27:15]OFDSenderStorePacket 191474 [15:27:15]StoreOFDPacket docnum=191474 [15:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 DC 07 01 CA B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 DB B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EB 02 00 35 04 06 00 D5 E7 86 D2 5B F5 78 D7 4E 3D 1F 3F 3E 03 [15:27:15]CheckFolder [15:27:15]dirname=/storage/ofd_packets [15:27:15]CheckFolder done [15:27:15]ProducePacketName [15:27:15]name=ofd_packets/00191474 [15:27:15]NVStorageSaveData ofd_packets/00191474 [15:27:15]File name is /storage/ofd_packets/00191474 [15:27:15]Write 301 bytes [15:27:15]NVStorageSaveData done [15:27:15]OFDSenderStorePacket done [15:27:15]KKMCreateOFDPacket done [15:27:15]NVStorageSaveData kkm_last_timestamp [15:27:15]File name is /storage/kkm_last_timestamp [15:27:15]Write 4 bytes [15:27:15]NVStorageSaveData done [15:27:15]ExternCall_PrintAddStr [15:27:15]wPrintStart [15:27:15]Write to MH i2c: 01 00 00 F7 AA A1 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 F7 AA 00 00 00 00 00 FF 0F B6 [15:27:15]RasterBufferAndPrint [15:27:15]line Счет N : (1)30769 [15:27:15]line ИНН: 02508201610067 [15:27:15]line Контрольно-Кассовый Чек [15:27:15]line ПРОДАЖА [15:27:15]line ТРК (МРК, ГНК) : 21 [15:27:15]line Товар: 2710124130 [15:27:15]line Аи-92-К-5 [15:27:15]line 7.480 * 66.90 [15:27:15]line = 500.41 [15:27:15]line НДС 12% НСП 1% [15:27:15]line > о реализуемом товаре [15:27:15]line ОКРУГЛЕНИЕ: -0.41 [15:27:15]line ИТОГО: 500.00 [15:27:15]line Внесено: 500.00 [15:27:15]line СДАЧА: 0.00 [15:27:15]line НСП 1% : 4.43 [15:27:15]line НДС 12% : 53.14 [15:27:15]line Наличными: 500.00 [15:27:15]line Безнал.: 0.00 [15:27:15]line Место: АЗС № 170 "Партнер Нефть" [15:27:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:27:15]line СНО: Общий режим [15:27:15]line Чек 213 25.10.2024 15:27 [15:27:15]line Смена: 540 ФФД: 1.0 [15:27:15]line ЗНМ: 0300000110 [15:27:15]line РНМ: 0000000000091776 [15:27:15]line Версия ККМ: 001 [15:27:15]line ФМ: 0000000000871754 [15:27:15]line ФД: 191474 [15:27:15]line ФПД: 235190376094709 [15:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191474&fm=235190376094709&tin=02508201610067®Number=0000000000091776&sum=50000 [15:27:15]OFD Sender: Processing packet 191474 [packets to send 75, broken 74] [15:27:15]ProducePacketName [15:27:15]name=ofd_packets/00191474 [15:27:15]OFD Sender: To server: pG, [15:27:15]CommunicateWithHost lk.salyk.kg:30040 [15:27:15]ConnectInit lk.salyk.kg [15:27:15]written 0, free lines is 4095 [15:27:15]Connected sock=10 [15:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 DC 07 01 CA B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 DB B8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EB 02 00 35 04 06 00 D5 E7 86 D2 5B F5 78 D7 4E 3D 1F 3F 3E 03 [15:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 7B 47 00 5B E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EB 02 00 F4 03 04 00 A9 5D 1B 67 B6 04 01 00 00 9E ED 6F 8F CA 06 2B DD [15:27:15]CommunicateWithHost err = 0 [15:27:15]CheckOFDResponse [15:27:15]1017 (14) - 77093643461234 [15:27:15]1041 (16) - 0000000000871754 [15:27:15]1040 (4) - 191474 [15:27:15]1012 (4) - 25.10.2024 08:58 [15:27:15]1206 (1) - 0 [15:27:15]OFD Sender: Remove packet 191474 [15:27:15]ProducePacketName [15:27:15]name=ofd_packets/00191474 [15:27:15]NVStorageDeleteData [15:27:15]Write to MH i2c: 01 00 00 22 AB CD [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 22 AB 00 00 00 00 00 B6 0C 96 [15:27:15]RasterBufferAndPrint [15:27:15]line [15:27:15]line [15:27:15]line [15:27:15]line [15:27:15]line [15:27:15]written 0, free lines is 3260 [15:27:15]MH_Cut [15:27:15]Write to MH i2c: D1 01 00 29 AB 01 A6 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 01 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: D1 01 00 29 AB 00 A5 [15:27:15]Write to MH i2c: 01 00 00 2A AB D5 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:16]OFD Sender: No OFD packet to send [15:27:16]*** Cut start [15:27:16]*** Partial cut [15:27:16]*** CUTSNS_PIN = 1 [15:27:16]*** CUTSNS_PIN = 0 [15:27:16]*** Brake cut motor [15:27:17]Read from MH i2c: 01 [15:27:17]MH_I2C_Read... [15:27:17]*** Stop cut motor [15:27:17]*** Cut end [15:27:17]Read from MH i2c: 01 07 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: 01 07 00 2A AB 00 00 00 00 00 FF 0F EA [15:27:17]process_action close_receipt done [15:27:17]requested_data is exist [15:27:17]produce_requested_data [15:27:17]requested_item fm.sn is exist - process it [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 11 00 00 [15:27:17]Write to MH i2c: E2 08 00 2B AB 80 11 00 00 00 00 00 00 50 [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 2B AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [15:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:17]wFMCommunicate OK [15:27:17]requested_item fd.num is exist - process it [15:27:17]SAM_PROTO_GetFieldsCounters [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 00 00 [15:27:17]Write to MH i2c: E2 08 00 2C AB 80 13 00 00 00 00 00 00 53 [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 2C AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [15:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetFieldsCounters done [15:27:17]requested_item shift.num is exist - process it [15:27:17]requested_item shift.opened is exist - process it [15:27:17]req_shift_opened [15:27:17]FM_GetShiftState [15:27:17]SAM_PROTO_GetShiftState [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 01 00 [15:27:17]Write to MH i2c: E2 08 00 2D AB 80 13 01 00 00 00 00 00 55 [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 2D AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 18 [15:27:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetShiftState done [15:27:17]FM_GetShiftState done [15:27:17]req_shift_opened done [15:27:17]requested_item shift.open_date is exist - process it [15:27:17]req_shift_open_date [15:27:17]req_shift_open_date done [15:27:17]produce_requested_data done [15:27:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191474,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:27:17]process_action_free close_receipt [15:27:17]json_value_free [15:27:17]json_value_free done [15:27:17]process_json_proto returns [15:27:17]Send response to host [15:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191474,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:27:17]free response buf [15:27:17]execute_script done [15:27:17]execute_script returns [15:27:17]free content buf [15:27:17]Sock 8.Close socket [15:27:17]Sock 8.Thread stoped [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:24]accept exits with 9 [15:28:24]New connection [15:28:24]New thread 3066817892 created [15:28:24]Thread 3066961252 joined [15:28:24]Waiting for new connection... [15:28:24] Sock 9.Parse request [15:28:24]Sock 9.Check first char [15:28:24]Sock 9.First char is OK [15:28:24]request: POST /json_proto HTTP/1.0 [15:28:24]Method: POST [15:28:24]URL: /json_proto [15:28:24]Method is POST - this is cgi request [15:28:24]url: /json_proto [15:28:24]query_string will be loaded in cgi processing [15:28:24]execute_cgi json_proto POST (null) [15:28:24]execute_cgi path=json_proto method=POST [15:28:24]POST find Content-Length [15:28:24]Host: 172.17.63.131:8080 [15:28:24]Content-Length: 681 [15:28:24]Content-Type: application/json [15:28:24] [15:28:24]POST finish read [15:28:24]Found Content-Length = 681 [15:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:24]execute_script... [15:28:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:24]POST & json_proto [15:28:24]process_json_proto [15:28:24]json parsed OK: [15:28:24]protocol is kg_v1.0 [15:28:24]action value=close_receipt [15:28:24]process_action close_receipt [15:28:24]cmd_close_receipt [15:28:24]MH_GetDate [15:28:24]Write to MH i2c: F0 00 00 2E AB C8 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 09 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 09 00 2E AB 00 22 B9 1B 67 22 05 6E 64 27 [15:28:24]GetLastDocTimeStamp 1729870043 [15:28:24]current date 1729870114 [15:28:24]FM_GetShiftState [15:28:24]SAM_PROTO_GetShiftState [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 13 01 00 [15:28:24]Write to MH i2c: E2 08 00 2F AB 80 13 01 00 00 00 00 00 57 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 2F AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1A [15:28:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:28:24]wFMCommunicate OK [15:28:24]SAM_PROTO_GetShiftState done [15:28:24]FM_GetShiftState done [15:28:24]opened in 1729816399 [15:28:24]opened+sec_in_day 1729902799 [15:28:24]quantity*price = 100015 [15:28:24]sum+1 = 100017 [15:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 214 25.10.2024 15:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191475 ФПД: 142441589300593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152834&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191475&fm=142441589300593&tin=02508201610067®Number=0000000000091776&sum=100000 [15:28:25]StoreToDocumentArchive [15:28:25]shift 540 fd 191475 [15:28:25]save to /storage/0540/doc_00191475 [15:28:25]save last doc name /storage/0540/doc_00191475 to /storage/kkm_last_doc_name [15:28:25]save OK [15:28:25]Clear old archive folders... [15:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:25]tlvbuf is 017F16B0 [15:28:25]SAM_PROTO_ClearQueue [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 09 00 00 [15:28:25]Write to MH i2c: E2 08 00 3C AB 80 09 00 00 00 00 00 00 59 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 3C AB 00 90 00 5B [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_ClearQueue done [15:28:26]KKMCreateOFDPacket [15:28:26]OFDProtocolAddRootSTLVToBuf [15:28:26]FM_MakeSignedData [15:28:26]FM_MakeSignedData [15:28:26]SAM_PROTO_SignData [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 01 02 [15:28:26]Write to MH i2c: E2 08 00 3D AB 80 0D 01 02 00 00 00 00 61 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 3D AB 00 90 00 5C [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]wFMCommunicate request_size=255 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 22 B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EB 02 00 35 04 06 00 81 [15:28:26]Write to MH i2c: E2 02 01 3E AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 22 B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EB 02 00 35 04 06 00 81 00 00 A1 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 3E AB 00 90 00 5D [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]wFMCommunicate request_size=10 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 02 02 05 8C C4 54 DD 71 [15:28:26]Write to MH i2c: E2 0D 00 3F AB 80 0D 02 02 05 00 8C C4 54 DD 71 00 00 60 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]OFD Sender: No OFD packet to send [15:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 3F AB 00 90 00 5E [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 03 02 [15:28:26]Write to MH i2c: E2 08 00 40 AB 80 0D 03 02 00 00 00 00 66 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0B 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0B 00 40 AB 00 CA DD 1B 16 28 E7 03 4A 90 00 9B [15:28:26]RAPDU: CA DD 1B 16 28 E7 03 4A 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_SignData done [15:28:26]FM_MakeSignedData done [15:28:26]CreateOFDProtocolMessage [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 11 00 00 [15:28:26]Write to MH i2c: E2 08 00 41 AB 80 11 00 00 00 00 00 00 66 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 41 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [15:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:26]wFMCommunicate OK [15:28:26]CreateOFDProtocolMessage done [15:28:26]OFDSenderStorePacket 191475 [15:28:26]StoreOFDPacket docnum=191475 [15:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 89 07 01 38 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 22 B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EB 02 00 35 04 06 00 81 8C C4 54 DD 71 CA DD 1B 16 28 E7 03 4A [15:28:26]CheckFolder [15:28:26]dirname=/storage/ofd_packets [15:28:26]CheckFolder done [15:28:26]ProducePacketName [15:28:26]name=ofd_packets/00191475 [15:28:26]NVStorageSaveData ofd_packets/00191475 [15:28:26]File name is /storage/ofd_packets/00191475 [15:28:26]Write 301 bytes [15:28:26]NVStorageSaveData done [15:28:26]OFDSenderStorePacket done [15:28:26]KKMCreateOFDPacket done [15:28:26]NVStorageSaveData kkm_last_timestamp [15:28:26]File name is /storage/kkm_last_timestamp [15:28:26]Write 4 bytes [15:28:26]NVStorageSaveData done [15:28:26]ExternCall_PrintAddStr [15:28:26]wPrintStart [15:28:26]Write to MH i2c: 01 00 00 42 AB ED [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 42 AB 00 00 00 00 00 FF 0F 02 [15:28:26]RasterBufferAndPrint [15:28:26]line Счет N : (1)30770 [15:28:26]line ИНН: 02508201610067 [15:28:26]line Контрольно-Кассовый Чек [15:28:26]line ПРОДАЖА [15:28:26]line ТРК (МРК, ГНК) : 21 [15:28:26]line Товар: 2710124130 [15:28:26]line Аи-92-К-5 [15:28:26]line 14.950 * 66.90 [15:28:26]line = 1000.16 [15:28:26]line НДС 12% НСП 1% [15:28:26]line > о реализуемом товаре [15:28:26]line ОКРУГЛЕНИЕ: -0.16 [15:28:26]line ИТОГО: 1000.00 [15:28:26]line Внесено: 1000.00 [15:28:26]line СДАЧА: 0.00 [15:28:26]line НСП 1% : 8.85 [15:28:26]line НДС 12% : 106.21 [15:28:26]line Наличными: 1000.00 [15:28:26]line Безнал.: 0.00 [15:28:26]line Место: АЗС № 170 "Партнер Нефть" [15:28:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:28:26]line СНО: Общий режим [15:28:26]line Чек 214 25.10.2024 15:28 [15:28:26]line Смена: 540 ФФД: 1.0 [15:28:26]line ЗНМ: 0300000110 [15:28:26]line РНМ: 0000000000091776 [15:28:26]line Версия ККМ: 001 [15:28:26]line ФМ: 0000000000871754 [15:28:26]line ФД: 191475 [15:28:26]line ФПД: 142441589300593 [15:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152834&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191475&fm=142441589300593&tin=02508201610067®Number=0000000000091776&sum=100000 [15:28:26]OFD Sender: Processing packet 191475 [packets to send 75, broken 74] [15:28:26]ProducePacketName [15:28:26]name=ofd_packets/00191475 [15:28:26]OFD Sender: To server: pG, [15:28:26]CommunicateWithHost lk.salyk.kg:30040 [15:28:26]ConnectInit lk.salyk.kg [15:28:26]written 0, free lines is 4095 [15:28:26]Connected sock=10 [15:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 89 07 01 38 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 22 B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EB 02 00 35 04 06 00 81 8C C4 54 DD 71 CA DD 1B 16 28 E7 03 4A [15:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 D6 47 00 5A C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EB 02 00 F4 03 04 00 F0 5D 1B 67 B6 04 01 00 00 0F B8 F5 AA B7 6D E2 26 [15:28:27]CommunicateWithHost err = 0 [15:28:27]CheckOFDResponse [15:28:27]1017 (14) - 77093643461234 [15:28:27]1041 (16) - 0000000000871754 [15:28:27]1040 (4) - 191475 [15:28:27]1012 (4) - 25.10.2024 08:59 [15:28:27]1206 (1) - 0 [15:28:27]OFD Sender: Remove packet 191475 [15:28:27]ProducePacketName [15:28:27]name=ofd_packets/00191475 [15:28:27]NVStorageDeleteData [15:28:27]Write to MH i2c: 01 00 00 6D AB 18 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 07 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 07 00 6D AB 00 00 00 00 00 B2 0C DD [15:28:27]RasterBufferAndPrint [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]written 0, free lines is 3256 [15:28:27]MH_Cut [15:28:27]Write to MH i2c: D1 01 00 74 AB 01 F1 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 01 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 01 00 74 AB 00 F0 [15:28:27]Write to MH i2c: 01 00 00 75 AB 20 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]OFD Sender: No OFD packet to send [15:28:28]*** Cut start [15:28:28]*** Partial cut [15:28:28]*** CUTSNS_PIN = 1 [15:28:28]*** CUTSNS_PIN = 0 [15:28:28]*** Brake cut motor [15:28:28]Read from MH i2c: 01 [15:28:28]MH_I2C_Read... [15:28:28]*** Stop cut motor [15:28:28]*** Cut end [15:28:28]Read from MH i2c: 01 07 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: 01 07 00 75 AB 00 00 00 00 00 FF 0F 35 [15:28:28]process_action close_receipt done [15:28:28]requested_data is exist [15:28:28]produce_requested_data [15:28:28]requested_item fm.sn is exist - process it [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 11 00 00 [15:28:28]Write to MH i2c: E2 08 00 76 AB 80 11 00 00 00 00 00 00 9B [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 17 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 17 00 76 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [15:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:28]wFMCommunicate OK [15:28:28]requested_item fd.num is exist - process it [15:28:28]SAM_PROTO_GetFieldsCounters [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 00 00 [15:28:28]Write to MH i2c: E2 08 00 77 AB 80 13 00 00 00 00 00 00 9E [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 77 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_GetFieldsCounters done [15:28:28]requested_item shift.num is exist - process it [15:28:28]requested_item shift.opened is exist - process it [15:28:28]req_shift_opened [15:28:28]FM_GetShiftState [15:28:28]SAM_PROTO_GetShiftState [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 01 00 [15:28:28]Write to MH i2c: E2 08 00 78 AB 80 13 01 00 00 00 00 00 A0 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 78 AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 63 [15:28:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:28:29]wFMCommunicate OK [15:28:29]SAM_PROTO_GetShiftState done [15:28:29]FM_GetShiftState done [15:28:29]req_shift_opened done [15:28:29]requested_item shift.open_date is exist - process it [15:28:29]req_shift_open_date [15:28:29]req_shift_open_date done [15:28:29]produce_requested_data done [15:28:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191475,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:28:29]process_action_free close_receipt [15:28:29]json_value_free [15:28:29]json_value_free done [15:28:29]process_json_proto returns [15:28:29]Send response to host [15:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191475,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:28:29]free response buf [15:28:29]execute_script done [15:28:29]execute_script returns [15:28:29]free content buf [15:28:29]Sock 9.Close socket [15:28:29]Sock 9.Thread stoped [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:09]accept exits with 8 [15:29:09]New connection [15:29:09]New thread 3066961252 created [15:29:09]Thread 3066817892 joined [15:29:09]Waiting for new connection... [15:29:09] Sock 8.Parse request [15:29:09]Sock 8.Check first char [15:29:09]Sock 8.First char is OK [15:29:09]request: POST /json_proto HTTP/1.0 [15:29:09]Method: POST [15:29:09]URL: /json_proto [15:29:09]Method is POST - this is cgi request [15:29:09]url: /json_proto [15:29:09]query_string will be loaded in cgi processing [15:29:09]execute_cgi json_proto POST (null) [15:29:09]execute_cgi path=json_proto method=POST [15:29:09]POST find Content-Length [15:29:09]Host: 172.17.63.131:8080 [15:29:09]Content-Length: 676 [15:29:09]Content-Type: application/json [15:29:09] [15:29:09]POST finish read [15:29:09]Found Content-Length = 676 [15:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:09]execute_script... [15:29: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)30771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:09]POST & json_proto [15:29:09]process_json_proto [15:29:09]json parsed OK: [15:29:09]protocol is kg_v1.0 [15:29:09]action value=close_receipt [15:29:09]process_action close_receipt [15:29:09]cmd_close_receipt [15:29:09]MH_GetDate [15:29:09]Write to MH i2c: F0 00 00 79 AB 13 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: F0 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: F0 09 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: F0 09 00 79 AB 00 4F B9 1B 67 22 05 6E 64 9F [15:29:09]GetLastDocTimeStamp 1729870114 [15:29:09]current date 1729870159 [15:29:09]FM_GetShiftState [15:29:09]SAM_PROTO_GetShiftState [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 13 01 00 [15:29:09]Write to MH i2c: E2 08 00 7A AB 80 13 01 00 00 00 00 00 A2 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0E 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0E 00 7A AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 65 [15:29:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:29:09]wFMCommunicate OK [15:29:09]SAM_PROTO_GetShiftState done [15:29:09]FM_GetShiftState done [15:29:09]opened in 1729816399 [15:29:09]opened+sec_in_day 1729902799 [15:29:09]quantity*price = 60009 [15:29:09]sum+1 = 60010 [15:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 215 25.10.2024 15:29 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191476 ФПД: 42423017035075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191476&fm=42423017035075&tin=02508201610067®Number=0000000000091776&sum=60000 [15:29:10]StoreToDocumentArchive [15:29:10]shift 540 fd 191476 [15:29:10]save to /storage/0540/doc_00191476 [15:29:10]save last doc name /storage/0540/doc_00191476 to /storage/kkm_last_doc_name [15:29:10]save OK [15:29:10]Clear old archive folders... [15:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:10]tlvbuf is 015CADC0 [15:29:10]SAM_PROTO_ClearQueue [15:29:10]wFMCommunicate request_size=4 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 09 00 00 [15:29:10]Write to MH i2c: E2 08 00 87 AB 80 09 00 00 00 00 00 00 A4 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 87 AB 00 90 00 A6 [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]SAM_PROTO_ClearQueue done [15:29:10]KKMCreateOFDPacket [15:29:10]OFDProtocolAddRootSTLVToBuf [15:29:10]FM_MakeSignedData [15:29:10]FM_MakeSignedData [15:29:10]SAM_PROTO_SignData [15:29:10]wFMCommunicate request_size=4 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 01 02 [15:29:10]Write to MH i2c: E2 08 00 88 AB 80 0D 01 02 00 00 00 00 AC [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 88 AB 00 90 00 A7 [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]wFMCommunicate request_size=255 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 4F B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EB 02 00 35 04 06 00 26 [15:29:10]Write to MH i2c: E2 02 01 89 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 4F B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EB 02 00 35 04 06 00 26 00 00 A3 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 03 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 03 00 89 AB 00 90 00 A8 [15:29:11]RAPDU: 90 00 [15:29:11]wFMCommunicate OK [15:29:11]wFMCommunicate request_size=10 [15:29:11]MH_SAM_APDU [15:29:11]CAPDU: 80 0D 02 02 05 95 60 DC 55 43 [15:29:11]Write to MH i2c: E2 0D 00 8A AB 80 0D 02 02 05 00 95 60 DC 55 43 00 00 22 [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 03 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 03 00 8A AB 00 90 00 A9 [15:29:11]RAPDU: 90 00 [15:29:11]wFMCommunicate OK [15:29:11]wFMCommunicate request_size=4 [15:29:11]MH_SAM_APDU [15:29:11]CAPDU: 80 0D 03 02 [15:29:11]Write to MH i2c: E2 08 00 8B AB 80 0D 03 02 00 00 00 00 B1 [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0B 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 0B 00 8B AB 00 5A 10 8A 55 DF 01 4A 86 90 00 AB [15:29:11]RAPDU: 5A 10 8A 55 DF 01 4A 86 90 00 [15:29:11]wFMCommunicate OK [15:29:11]SAM_PROTO_SignData done [15:29:11]FM_MakeSignedData done [15:29:11]CreateOFDProtocolMessage [15:29:11]wFMCommunicate request_size=4 [15:29:11]MH_SAM_APDU [15:29:11]CAPDU: 80 11 00 00 [15:29:11]Write to MH i2c: E2 08 00 8C AB 80 11 00 00 00 00 00 00 B1 [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:11]Read from MH i2c: E2 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 17 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: E2 17 00 8C AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [15:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:29:11]wFMCommunicate OK [15:29:11]CreateOFDProtocolMessage done [15:29:11]OFDSenderStorePacket 191476 [15:29:11]StoreOFDPacket docnum=191476 [15:29:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 DE 07 01 9A 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 4F B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EB 02 00 35 04 06 00 26 95 60 DC 55 43 5A 10 8A 55 DF 01 4A 86 [15:29:11]CheckFolder [15:29:11]dirname=/storage/ofd_packets [15:29:11]CheckFolder done [15:29:11]ProducePacketName [15:29:11]name=ofd_packets/00191476 [15:29:11]NVStorageSaveData ofd_packets/00191476 [15:29:11]File name is /storage/ofd_packets/00191476 [15:29:11]Write 301 bytes [15:29:11]NVStorageSaveData done [15:29:11]OFDSenderStorePacket done [15:29:11]KKMCreateOFDPacket done [15:29:11]NVStorageSaveData kkm_last_timestamp [15:29:11]File name is /storage/kkm_last_timestamp [15:29:11]Write 4 bytes [15:29:11]NVStorageSaveData done [15:29:11]ExternCall_PrintAddStr [15:29:11]wPrintStart [15:29:11]Write to MH i2c: 01 00 00 8D AB 38 [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: 01 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: 01 07 00 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: 01 07 00 8D AB 00 00 00 00 00 FF 0F 4D [15:29:11]RasterBufferAndPrint [15:29:11]line Счет N : (1)30771 [15:29:11]line ИНН: 02508201610067 [15:29:11]line Контрольно-Кассовый Чек [15:29:11]line ПРОДАЖА [15:29:11]line ТРК (МРК, ГНК) : 12 [15:29:11]line Товар: 2710124130 [15:29:11]line Аи-92-К-5 [15:29:11]line 8.970 * 66.90 [15:29:11]line = 600.09 [15:29:11]line НДС 12% НСП 1% [15:29:11]line > о реализуемом товаре [15:29:11]line ОКРУГЛЕНИЕ: -0.09 [15:29:11]line ИТОГО: 600.00 [15:29:11]line Внесено: 600.00 [15:29:11]line СДАЧА: 0.00 [15:29:11]line НСП 1% : 5.31 [15:29:11]line НДС 12% : 63.73 [15:29:11]line Наличными: 600.00 [15:29:11]line Безнал.: 0.00 [15:29:11]line Место: АЗС № 170 "Партнер Нефть" [15:29:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:29:11]line СНО: Общий режим [15:29:11]line Чек 215 25.10.2024 15:29 [15:29:11]line Смена: 540 ФФД: 1.0 [15:29:11]line ЗНМ: 0300000110 [15:29:11]line РНМ: 0000000000091776 [15:29:11]line Версия ККМ: 001 [15:29:11]line ФМ: 0000000000871754 [15:29:11]line ФД: 191476 [15:29:11]line ФПД: 42423017035075 [15:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191476&fm=42423017035075&tin=02508201610067®Number=0000000000091776&sum=60000 [15:29:11]OFD Sender: Processing packet 191476 [packets to send 75, broken 74] [15:29:11]ProducePacketName [15:29:11]name=ofd_packets/00191476 [15:29:11]OFD Sender: To server: pG, [15:29:11]CommunicateWithHost lk.salyk.kg:30040 [15:29:11]ConnectInit lk.salyk.kg [15:29:11]written 0, free lines is 4095 [15:29:11]Connected sock=10 [15:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 DE 07 01 9A 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 4F B9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EB 02 00 35 04 06 00 26 95 60 DC 55 43 5A 10 8A 55 DF 01 4A 86 [15:29:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 80 B4 47 00 4C 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EB 02 00 F4 03 04 00 1D 5E 1B 67 B6 04 01 00 00 92 2B 21 18 6C 6D F8 92 [15:29:11]CommunicateWithHost err = 0 [15:29:11]CheckOFDResponse [15:29:11]1017 (14) - 77093643461234 [15:29:11]1041 (16) - 0000000000871754 [15:29:11]1040 (4) - 191476 [15:29:11]1012 (4) - 25.10.2024 09:00 [15:29:11]1206 (1) - 0 [15:29:11]OFD Sender: Remove packet 191476 [15:29:11]ProducePacketName [15:29:11]name=ofd_packets/00191476 [15:29:11]NVStorageDeleteData [15:29:11]Write to MH i2c: 01 00 00 B8 AB 63 [15:29:11]Write i2c OK [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: 01 [15:29:11]MH_I2C_Read... [15:29:11]Read from MH i2c: 01 07 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: 01 07 00 B8 AB 00 00 00 00 00 C1 0C 37 [15:29:12]RasterBufferAndPrint [15:29:12]line [15:29:12]line [15:29:12]line [15:29:12]line [15:29:12]line [15:29:12]written 0, free lines is 3271 [15:29:12]MH_Cut [15:29:12]Write to MH i2c: D1 01 00 BF AB 01 3C [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: D1 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: D1 01 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: D1 01 00 BF AB 00 3B [15:29:12]Write to MH i2c: 01 00 00 C0 AB 6B [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]OFD Sender: No OFD packet to send [15:29:12]*** Cut start [15:29:12]*** Partial cut [15:29:12]*** CUTSNS_PIN = 1 [15:29:12]*** CUTSNS_PIN = 0 [15:29:13]*** Brake cut motor [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]*** Stop cut motor [15:29:13]*** Cut end [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 C0 AB 00 00 00 00 00 FF 0F 80 [15:29:13]process_action close_receipt done [15:29:13]requested_data is exist [15:29:13]produce_requested_data [15:29:13]requested_item fm.sn is exist - process it [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 11 00 00 [15:29:13]Write to MH i2c: E2 08 00 C1 AB 80 11 00 00 00 00 00 00 E6 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 C1 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [15:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:29:13]wFMCommunicate OK [15:29:13]requested_item fd.num is exist - process it [15:29:13]SAM_PROTO_GetFieldsCounters [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 13 00 00 [15:29:13]Write to MH i2c: E2 08 00 C2 AB 80 13 00 00 00 00 00 00 E9 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 C2 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:29:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetFieldsCounters done [15:29:13]requested_item shift.num is exist - process it [15:29:13]requested_item shift.opened is exist - process it [15:29:13]req_shift_opened [15:29:13]FM_GetShiftState [15:29:13]SAM_PROTO_GetShiftState [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 13 01 00 [15:29:13]Write to MH i2c: E2 08 00 C3 AB 80 13 01 00 00 00 00 00 EB [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 C3 AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AE [15:29:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetShiftState done [15:29:13]FM_GetShiftState done [15:29:13]req_shift_opened done [15:29:13]requested_item shift.open_date is exist - process it [15:29:13]req_shift_open_date [15:29:13]req_shift_open_date done [15:29:13]produce_requested_data done [15:29:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191476,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:29:13]process_action_free close_receipt [15:29:13]json_value_free [15:29:13]json_value_free done [15:29:13]process_json_proto returns [15:29:13]Send response to host [15:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191476,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:29:13]free response buf [15:29:13]execute_script done [15:29:13]execute_script returns [15:29:13]free content buf [15:29:13]Sock 8.Close socket [15:29:13]Sock 8.Thread stoped [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]accept exits with 9 [15:33:42]New connection [15:33:42]New thread 3066817892 created [15:33:42]Thread 3066961252 joined [15:33:42]Waiting for new connection... [15:33:42] Sock 9.Parse request [15:33:42]Sock 9.Check first char [15:33:42]Sock 9.First char is OK [15:33:42]request: POST /json_proto HTTP/1.0 [15:33:42]Method: POST [15:33:42]URL: /json_proto [15:33:42]Method is POST - this is cgi request [15:33:42]url: /json_proto [15:33:42]query_string will be loaded in cgi processing [15:33:42]execute_cgi json_proto POST (null) [15:33:42]execute_cgi path=json_proto method=POST [15:33:42]POST find Content-Length [15:33:42]Host: 172.17.63.131:8080 [15:33:42]Content-Length: 676 [15:33:42]Content-Type: application/json [15:33:42] [15:33:42]POST finish read [15:33:42]Found Content-Length = 676 [15:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:42]execute_script... [15:33: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)30772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:42]POST & json_proto [15:33:42]process_json_proto [15:33:42]json parsed OK: [15:33:42]protocol is kg_v1.0 [15:33:42]action value=close_receipt [15:33:42]process_action close_receipt [15:33:42]cmd_close_receipt [15:33:42]MH_GetDate [15:33:42]Write to MH i2c: F0 00 00 C4 AB 5E [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 09 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: F0 09 00 C4 AB 00 60 BA 1B 67 22 05 6E 64 FC [15:33:42]GetLastDocTimeStamp 1729870159 [15:33:42]current date 1729870432 [15:33:42]FM_GetShiftState [15:33:42]SAM_PROTO_GetShiftState [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 13 01 00 [15:33:42]Write to MH i2c: E2 08 00 C5 AB 80 13 01 00 00 00 00 00 ED [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0E 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0E 00 C5 AB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B0 [15:33:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_GetShiftState done [15:33:42]FM_GetShiftState done [15:33:42]opened in 1729816399 [15:33:42]opened+sec_in_day 1729902799 [15:33:42]quantity*price = 60009 [15:33:42]sum+1 = 60010 [15:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 216 25.10.2024 15:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191477 ФПД: 63436948841252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153352&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191477&fm=63436948841252&tin=02508201610067®Number=0000000000091776&sum=60000 [15:33:43]StoreToDocumentArchive [15:33:43]shift 540 fd 191477 [15:33:43]save to /storage/0540/doc_00191477 [15:33:43]save last doc name /storage/0540/doc_00191477 to /storage/kkm_last_doc_name [15:33:43]save OK [15:33:43]Clear old archive folders... [15:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:43]tlvbuf is 01625150 [15:33:43]SAM_PROTO_ClearQueue [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 09 00 00 [15:33:43]Write to MH i2c: E2 08 00 D2 AB 80 09 00 00 00 00 00 00 EF [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 D2 AB 00 90 00 F1 [15:33:43]RAPDU: 90 00 [15:33:43]wFMCommunicate OK [15:33:43]SAM_PROTO_ClearQueue done [15:33:43]KKMCreateOFDPacket [15:33:43]OFDProtocolAddRootSTLVToBuf [15:33:43]FM_MakeSignedData [15:33:43]FM_MakeSignedData [15:33:43]SAM_PROTO_SignData [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 0D 01 02 [15:33:43]Write to MH i2c: E2 08 00 D3 AB 80 0D 01 02 00 00 00 00 F7 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 03 00 D3 AB 00 90 00 F2 [15:33:43]RAPDU: 90 00 [15:33:43]wFMCommunicate OK [15:33:43]wFMCommunicate request_size=255 [15:33:43]MH_SAM_APDU [15:33: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 BA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EB 02 00 35 04 06 00 39 [15:33:43]Write to MH i2c: E2 02 01 D4 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 BA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EB 02 00 35 04 06 00 39 00 00 15 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 D4 AB 00 90 00 F3 [15:33:44]RAPDU: 90 00 [15:33:44]wFMCommunicate OK [15:33:44]wFMCommunicate request_size=10 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 0D 02 02 05 B2 10 CD 23 24 [15:33:44]Write to MH i2c: E2 0D 00 D5 AB 80 0D 02 02 05 00 B2 10 CD 23 24 00 00 DA [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 03 00 D5 AB 00 90 00 F4 [15:33:44]RAPDU: 90 00 [15:33:44]wFMCommunicate OK [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 0D 03 02 [15:33:44]Write to MH i2c: E2 08 00 D6 AB 80 0D 03 02 00 00 00 00 FC [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0B 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0B 00 D6 AB 00 51 E8 C1 4B 8B 14 A0 AB 90 00 2C [15:33:44]RAPDU: 51 E8 C1 4B 8B 14 A0 AB 90 00 [15:33:44]wFMCommunicate OK [15:33:44]SAM_PROTO_SignData done [15:33:44]FM_MakeSignedData done [15:33:44]CreateOFDProtocolMessage [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 11 00 00 [15:33:44]Write to MH i2c: E2 08 00 D7 AB 80 11 00 00 00 00 00 00 FC [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 D7 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [15:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:44]wFMCommunicate OK [15:33:44]CreateOFDProtocolMessage done [15:33:44]OFDSenderStorePacket 191477 [15:33:44]StoreOFDPacket docnum=191477 [15:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A E4 07 01 F3 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 BA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EB 02 00 35 04 06 00 39 B2 10 CD 23 24 51 E8 C1 4B 8B 14 A0 AB [15:33:44]CheckFolder [15:33:44]dirname=/storage/ofd_packets [15:33:44]CheckFolder done [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00191477 [15:33:44]NVStorageSaveData ofd_packets/00191477 [15:33:44]File name is /storage/ofd_packets/00191477 [15:33:44]Write 301 bytes [15:33:44]NVStorageSaveData done [15:33:44]OFDSenderStorePacket done [15:33:44]KKMCreateOFDPacket done [15:33:44]NVStorageSaveData kkm_last_timestamp [15:33:44]File name is /storage/kkm_last_timestamp [15:33:44]Write 4 bytes [15:33:44]NVStorageSaveData done [15:33:44]ExternCall_PrintAddStr [15:33:44]wPrintStart [15:33:44]Write to MH i2c: 01 00 00 D8 AB 83 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 D8 AB 00 00 00 00 00 FF 0F 98 [15:33:44]RasterBufferAndPrint [15:33:44]line Счет N : (1)30772 [15:33:44]line ИНН: 02508201610067 [15:33:44]line Контрольно-Кассовый Чек [15:33:44]line ПРОДАЖА [15:33:44]line ТРК (МРК, ГНК) : 21 [15:33:44]line Товар: 2710124130 [15:33:44]line Аи-92-К-5 [15:33:44]line 8.970 * 66.90 [15:33:44]line = 600.09 [15:33:44]line НДС 12% НСП 1% [15:33:44]line > о реализуемом товаре [15:33:44]line ОКРУГЛЕНИЕ: -0.09 [15:33:44]line ИТОГО: 600.00 [15:33:44]line Внесено: 600.00 [15:33:44]line СДАЧА: 0.00 [15:33:44]line НСП 1% : 5.31 [15:33:44]line НДС 12% : 63.73 [15:33:44]line Наличными: 600.00 [15:33:44]line Безнал.: 0.00 [15:33:44]line Место: АЗС № 170 "Партнер Нефть" [15:33:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:33:44]line СНО: Общий режим [15:33:44]line Чек 216 25.10.2024 15:33 [15:33:44]line Смена: 540 ФФД: 1.0 [15:33:44]line ЗНМ: 0300000110 [15:33:44]line РНМ: 0000000000091776 [15:33:44]line Версия ККМ: 001 [15:33:44]line ФМ: 0000000000871754 [15:33:44]line ФД: 191477 [15:33:44]line ФПД: 63436948841252 [15:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153352&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191477&fm=63436948841252&tin=02508201610067®Number=0000000000091776&sum=60000 [15:33:44]OFD Sender: Processing packet 191477 [packets to send 75, broken 74] [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00191477 [15:33:44]OFD Sender: To server: pG, [15:33:44]CommunicateWithHost lk.salyk.kg:30040 [15:33:44]ConnectInit lk.salyk.kg [15:33:44]written 0, free lines is 4095 [15:33:44]Connected sock=10 [15:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A E4 07 01 F3 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 BA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EB 02 00 35 04 06 00 39 B2 10 CD 23 24 51 E8 C1 4B 8B 14 A0 AB [15:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A 51 47 00 63 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EB 02 00 F4 03 04 00 2E 5F 1B 67 B6 04 01 00 00 D9 DF 68 72 19 AA 78 E1 [15:33:44]CommunicateWithHost err = 0 [15:33:44]CheckOFDResponse [15:33:44]1017 (14) - 77093643461234 [15:33:44]1041 (16) - 0000000000871754 [15:33:44]1040 (4) - 191477 [15:33:44]1012 (4) - 25.10.2024 09:04 [15:33:44]1206 (1) - 0 [15:33:44]OFD Sender: Remove packet 191477 [15:33:44]ProducePacketName [15:33:44]name=ofd_packets/00191477 [15:33:44]NVStorageDeleteData [15:33:45]Write to MH i2c: 01 00 00 03 AC AF [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 07 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 07 00 03 AC 00 00 00 00 00 AF 0C 71 [15:33:45]RasterBufferAndPrint [15:33:45]line [15:33:45]line [15:33:45]line [15:33:45]line [15:33:45]line [15:33:45]written 0, free lines is 3255 [15:33:45]MH_Cut [15:33:45]Write to MH i2c: D1 01 00 0A AC 01 88 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: D1 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: D1 01 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: D1 01 00 0A AC 00 87 [15:33:45]Write to MH i2c: 01 00 00 0B AC B7 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]OFD Sender: No OFD packet to send [15:33:45]*** Cut start [15:33:45]*** Partial cut [15:33:45]*** CUTSNS_PIN = 1 [15:33:45]*** CUTSNS_PIN = 0 [15:33:46]*** Brake cut motor [15:33:46]Read from MH i2c: 01 [15:33:46]MH_I2C_Read... [15:33:46]*** Stop cut motor [15:33:46]*** Cut end [15:33:46]Read from MH i2c: 01 07 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 0B AC 00 00 00 00 00 FF 0F CC [15:33:46]process_action close_receipt done [15:33:46]requested_data is exist [15:33:46]produce_requested_data [15:33:46]requested_item fm.sn is exist - process it [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 11 00 00 [15:33:46]Write to MH i2c: E2 08 00 0C AC 80 11 00 00 00 00 00 00 32 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 17 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 17 00 0C AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [15:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:46]wFMCommunicate OK [15:33:46]requested_item fd.num is exist - process it [15:33:46]SAM_PROTO_GetFieldsCounters [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 13 00 00 [15:33:46]Write to MH i2c: E2 08 00 0D AC 80 13 00 00 00 00 00 00 35 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 62 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 62 00 0D AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:46]wFMCommunicate OK [15:33:46]SAM_PROTO_GetFieldsCounters done [15:33:46]requested_item shift.num is exist - process it [15:33:46]requested_item shift.opened is exist - process it [15:33:46]req_shift_opened [15:33:46]FM_GetShiftState [15:33:46]SAM_PROTO_GetShiftState [15:33:46]wFMCommunicate request_size=4 [15:33:46]MH_SAM_APDU [15:33:46]CAPDU: 80 13 01 00 [15:33:46]Write to MH i2c: E2 08 00 0E AC 80 13 01 00 00 00 00 00 37 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:46]Read from MH i2c: E2 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0E 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: E2 0E 00 0E AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FA [15:33:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:33:46]wFMCommunicate OK [15:33:46]SAM_PROTO_GetShiftState done [15:33:46]FM_GetShiftState done [15:33:46]req_shift_opened done [15:33:46]requested_item shift.open_date is exist - process it [15:33:46]req_shift_open_date [15:33:46]req_shift_open_date done [15:33:46]produce_requested_data done [15:33:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191477,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:33:46]process_action_free close_receipt [15:33:46]json_value_free [15:33:46]json_value_free done [15:33:46]process_json_proto returns [15:33:46]Send response to host [15:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191477,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:33:46]free response buf [15:33:46]execute_script done [15:33:46]execute_script returns [15:33:46]free content buf [15:33:46]Sock 9.Close socket [15:33:46]Sock 9.Thread stoped [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:53]accept exits with 8 [15:36:53]New connection [15:36:53]New thread 3066961252 created [15:36:53]Thread 3066817892 joined [15:36:53]Waiting for new connection... [15:36:53] Sock 8.Parse request [15:36:53]Sock 8.Check first char [15:36:53]Sock 8.First char is OK [15:36:53]request: POST /json_proto HTTP/1.0 [15:36:53]Method: POST [15:36:53]URL: /json_proto [15:36:53]Method is POST - this is cgi request [15:36:53]url: /json_proto [15:36:53]query_string will be loaded in cgi processing [15:36:53]execute_cgi json_proto POST (null) [15:36:53]execute_cgi path=json_proto method=POST [15:36:53]POST find Content-Length [15:36:53]Host: 172.17.63.131:8080 [15:36:53]Content-Length: 678 [15:36:53]Content-Type: application/json [15:36:53] [15:36:53]POST finish read [15:36:53]Found Content-Length = 678 [15:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [15:36:53]execute_script... [15:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [15:36:53]POST & json_proto [15:36:53]process_json_proto [15:36:53]json parsed OK: [15:36:53]protocol is kg_v1.0 [15:36:53]action value=close_receipt [15:36:53]process_action close_receipt [15:36:53]cmd_close_receipt [15:36:53]MH_GetDate [15:36:53]Write to MH i2c: F0 00 00 0F AC AA [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: F0 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: F0 09 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: F0 09 00 0F AC 00 1F BB 1B 67 22 05 6E 64 08 [15:36:53]GetLastDocTimeStamp 1729870432 [15:36:53]current date 1729870623 [15:36:53]FM_GetShiftState [15:36:53]SAM_PROTO_GetShiftState [15:36:53]wFMCommunicate request_size=4 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 13 01 00 [15:36:53]Write to MH i2c: E2 08 00 10 AC 80 13 01 00 00 00 00 00 39 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 0E 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 0E 00 10 AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FC [15:36:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:36:53]wFMCommunicate OK [15:36:53]SAM_PROTO_GetShiftState done [15:36:53]FM_GetShiftState done [15:36:53]opened in 1729816399 [15:36:53]opened+sec_in_day 1729902799 [15:36:53]quantity*price = 250012 [15:36:53]sum+1 = 250013 [15:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 217 25.10.2024 15:37 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191478 ФПД: 259237000951126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191478&fm=259237000951126&tin=02508201610067®Number=0000000000091776&sum=250000 [15:36:54]StoreToDocumentArchive [15:36:54]shift 540 fd 191478 [15:36:54]save to /storage/0540/doc_00191478 [15:36:54]save last doc name /storage/0540/doc_00191478 to /storage/kkm_last_doc_name [15:36:54]save OK [15:36:54]Clear old archive folders... [15:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:54]tlvbuf is 0183C6A0 [15:36:54]SAM_PROTO_ClearQueue [15:36:54]wFMCommunicate request_size=4 [15:36:54]MH_SAM_APDU [15:36:54]CAPDU: 80 09 00 00 [15:36:54]Write to MH i2c: E2 08 00 1D AC 80 09 00 00 00 00 00 00 3B [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 1D AC 00 90 00 3D [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_ClearQueue done [15:36:55]KKMCreateOFDPacket [15:36:55]OFDProtocolAddRootSTLVToBuf [15:36:55]FM_MakeSignedData [15:36:55]FM_MakeSignedData [15:36:55]SAM_PROTO_SignData [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 01 02 [15:36:55]Write to MH i2c: E2 08 00 1E AC 80 0D 01 02 00 00 00 00 43 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 1E AC 00 90 00 3E [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=255 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 D9 00 00 00 F4 03 04 00 1F BB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EB 02 00 35 04 06 00 EB C6 51 5A [15:36:55]Write to MH i2c: E2 02 01 1F AC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 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 D9 00 00 00 F4 03 04 00 1F BB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EB 02 00 35 04 06 00 EB C6 51 5A 00 00 C0 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 1F AC 00 90 00 3F [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=7 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 02 02 02 B5 56 [15:36:55]Write to MH i2c: E2 0A 00 20 AC 80 0D 02 02 02 00 B5 56 00 00 55 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 20 AC 00 90 00 40 [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 03 02 [15:36:55]Write to MH i2c: E2 08 00 21 AC 80 0D 03 02 00 00 00 00 48 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 0B 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 0B 00 21 AC 00 25 92 5B 29 AB FA A7 2E 90 00 FE [15:36:55]RAPDU: 25 92 5B 29 AB FA A7 2E 90 00 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_SignData done [15:36:55]FM_MakeSignedData done [15:36:55]CreateOFDProtocolMessage [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 11 00 00 [15:36:55]Write to MH i2c: E2 08 00 22 AC 80 11 00 00 00 00 00 00 48 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 22 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [15:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:55]wFMCommunicate OK [15:36:55]CreateOFDProtocolMessage done [15:36:55]OFDSenderStorePacket 191478 [15:36:55]StoreOFDPacket docnum=191478 [15:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 9C 04 01 3B E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 D9 00 00 00 F4 03 04 00 1F BB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EB 02 00 35 04 06 00 EB C6 51 5A B5 56 25 92 5B 29 AB FA A7 2E [15:36:55]CheckFolder [15:36:55]dirname=/storage/ofd_packets [15:36:55]CheckFolder done [15:36:55]ProducePacketName [15:36:55]name=ofd_packets/00191478 [15:36:55]NVStorageSaveData ofd_packets/00191478 [15:36:55]File name is /storage/ofd_packets/00191478 [15:36:55]Write 298 bytes [15:36:55]NVStorageSaveData done [15:36:55]OFDSenderStorePacket done [15:36:55]KKMCreateOFDPacket done [15:36:55]NVStorageSaveData kkm_last_timestamp [15:36:55]File name is /storage/kkm_last_timestamp [15:36:55]Write 4 bytes [15:36:55]NVStorageSaveData done [15:36:55]ExternCall_PrintAddStr [15:36:55]wPrintStart [15:36:55]Write to MH i2c: 01 00 00 23 AC CF [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 07 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 07 00 23 AC 00 00 00 00 00 FF 0F E4 [15:36:55]RasterBufferAndPrint [15:36:55]line Счет N : (1)30773 [15:36:55]line ИНН: 02508201610067 [15:36:55]line Контрольно-Кассовый Чек [15:36:55]line ПРОДАЖА [15:36:55]line ТРК (МРК, ГНК) : 11 [15:36:55]line Товар: 2710194210 [15:36:55]line ДТ-К-5 [15:36:55]line 32.810 * 76.20 [15:36:55]line = 2500.12 [15:36:55]line НДС 12% НСП 1% [15:36:55]line > о реализуемом товаре [15:36:55]line ОКРУГЛЕНИЕ: -0.12 [15:36:55]line ИТОГО: 2500.00 [15:36:55]line Внесено: 2500.00 [15:36:55]line СДАЧА: 0.00 [15:36:55]line НСП 1% : 22.12 [15:36:55]line НДС 12% : 265.50 [15:36:55]line Наличными: 2500.00 [15:36:55]line Безнал.: 0.00 [15:36:55]line Место: АЗС № 170 "Партнер Нефть" [15:36:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:36:55]line СНО: Общий режим [15:36:55]line Чек 217 25.10.2024 15:37 [15:36:55]line Смена: 540 ФФД: 1.0 [15:36:55]line ЗНМ: 0300000110 [15:36:55]line РНМ: 0000000000091776 [15:36:55]line Версия ККМ: 001 [15:36:55]line ФМ: 0000000000871754 [15:36:55]line ФД: 191478 [15:36:55]line ФПД: 259237000951126 [15:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191478&fm=259237000951126&tin=02508201610067®Number=0000000000091776&sum=250000 [15:36:55]OFD Sender: Processing packet 191478 [packets to send 75, broken 74] [15:36:55]ProducePacketName [15:36:55]name=ofd_packets/00191478 [15:36:55]OFD Sender: To server: pG, [15:36:55]CommunicateWithHost lk.salyk.kg:30040 [15:36:55]ConnectInit lk.salyk.kg [15:36:55]written 0, free lines is 4095 [15:36:55]Connected sock=10 [15:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 9C 04 01 3B E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 D9 00 00 00 F4 03 04 00 1F BB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EB 02 00 35 04 06 00 EB C6 51 5A B5 56 25 92 5B 29 AB FA A7 2E [15:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 20 B1 47 00 96 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 31 37 35 34 10 04 04 00 F6 EB 02 00 F4 03 04 00 ED 5F 1B 67 B6 04 01 00 00 4B 1E ED 1C 5C 3B F3 84 [15:36:56]CommunicateWithHost err = 0 [15:36:56]CheckOFDResponse [15:36:56]1017 (14) - 77093643461234 [15:36:56]1041 (16) - 0000000000871754 [15:36:56]1040 (4) - 191478 [15:36:56]1012 (4) - 25.10.2024 09:07 [15:36:56]1206 (1) - 0 [15:36:56]OFD Sender: Remove packet 191478 [15:36:56]ProducePacketName [15:36:56]name=ofd_packets/00191478 [15:36:56]NVStorageDeleteData [15:36:56]Write to MH i2c: 01 00 00 4E AC FA [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 07 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 07 00 4E AC 00 00 00 00 00 B4 0C C1 [15:36:56]RasterBufferAndPrint [15:36:56]line [15:36:56]line [15:36:56]line [15:36:56]line [15:36:56]line [15:36:56]written 0, free lines is 3258 [15:36:56]MH_Cut [15:36:56]Write to MH i2c: D1 01 00 55 AC 01 D3 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: D1 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: D1 01 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: D1 01 00 55 AC 00 D2 [15:36:56]Write to MH i2c: 01 00 00 56 AC 02 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]OFD Sender: No OFD packet to send [15:36:57]*** Cut start [15:36:57]*** Partial cut [15:36:57]*** CUTSNS_PIN = 1 [15:36:57]*** CUTSNS_PIN = 0 [15:36:57]*** Brake cut motor [15:36:57]Read from MH i2c: 01 [15:36:57]MH_I2C_Read... [15:36:57]*** Stop cut motor [15:36:57]*** Cut end [15:36:57]Read from MH i2c: 01 07 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 56 AC 00 00 00 00 00 FF 0F 17 [15:36:57]process_action close_receipt done [15:36:57]requested_data is exist [15:36:57]produce_requested_data [15:36:57]requested_item fm.sn is exist - process it [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 11 00 00 [15:36:57]Write to MH i2c: E2 08 00 57 AC 80 11 00 00 00 00 00 00 7D [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 17 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 17 00 57 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [15:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:57]wFMCommunicate OK [15:36:57]requested_item fd.num is exist - process it [15:36:57]SAM_PROTO_GetFieldsCounters [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 13 00 00 [15:36:57]Write to MH i2c: E2 08 00 58 AC 80 13 00 00 00 00 00 00 80 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 62 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 62 00 58 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:57]wFMCommunicate OK [15:36:57]SAM_PROTO_GetFieldsCounters done [15:36:57]requested_item shift.num is exist - process it [15:36:57]requested_item shift.opened is exist - process it [15:36:57]req_shift_opened [15:36:57]FM_GetShiftState [15:36:57]SAM_PROTO_GetShiftState [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 13 01 00 [15:36:57]Write to MH i2c: E2 08 00 59 AC 80 13 01 00 00 00 00 00 82 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0E 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0E 00 59 AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 45 [15:36:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:36:58]wFMCommunicate OK [15:36:58]SAM_PROTO_GetShiftState done [15:36:58]FM_GetShiftState done [15:36:58]req_shift_opened done [15:36:58]requested_item shift.open_date is exist - process it [15:36:58]req_shift_open_date [15:36:58]req_shift_open_date done [15:36:58]produce_requested_data done [15:36:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191478,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:36:58]process_action_free close_receipt [15:36:58]json_value_free [15:36:58]json_value_free done [15:36:58]process_json_proto returns [15:36:58]Send response to host [15:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191478,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:36:58]free response buf [15:36:58]execute_script done [15:36:58]execute_script returns [15:36:58]free content buf [15:36:58]Sock 8.Close socket [15:36:58]Sock 8.Thread stoped [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:20]accept exits with 9 [15:46:20]New connection [15:46:20]New thread 3066817892 created [15:46:20]Thread 3066961252 joined [15:46:20]Waiting for new connection... [15:46:20] Sock 9.Parse request [15:46:20]Sock 9.Check first char [15:46:20]Sock 9.First char is OK [15:46:20]request: POST /json_proto HTTP/1.0 [15:46:20]Method: POST [15:46:20]URL: /json_proto [15:46:20]Method is POST - this is cgi request [15:46:20]url: /json_proto [15:46:20]query_string will be loaded in cgi processing [15:46:20]execute_cgi json_proto POST (null) [15:46:20]execute_cgi path=json_proto method=POST [15:46:20]POST find Content-Length [15:46:20]Host: 172.17.63.131:8080 [15:46:20]Content-Length: 781 [15:46:20]Content-Type: application/json [15:46:20] [15:46:20]POST finish read [15:46:20]Found Content-Length = 781 [15:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3948610", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:20]execute_script... [15: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)30774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3948610", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:20]POST & json_proto [15:46:20]process_json_proto [15:46:20]json parsed OK: [15:46:20]protocol is kg_v1.0 [15:46:20]action value=close_receipt [15:46:20]process_action close_receipt [15:46:20]cmd_close_receipt [15:46:20]MH_GetDate [15:46:20]Write to MH i2c: F0 00 00 5A AC F5 [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 09 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 09 00 5A AC 00 56 BD 1B 67 22 05 6E 64 8C [15:46:20]GetLastDocTimeStamp 1729870623 [15:46:20]current date 1729871190 [15:46:20]FM_GetShiftState [15:46:20]SAM_PROTO_GetShiftState [15:46:20]wFMCommunicate request_size=4 [15:46:20]MH_SAM_APDU [15:46:20]CAPDU: 80 13 01 00 [15:46:20]Write to MH i2c: E2 08 00 5B AC 80 13 01 00 00 00 00 00 84 [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:21]Read from MH i2c: E2 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 0E 00 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 0E 00 5B AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 47 [15:46:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:46:21]wFMCommunicate OK [15:46:21]SAM_PROTO_GetShiftState done [15:46:21]FM_GetShiftState done [15:46:21]opened in 1729816399 [15:46:21]opened+sec_in_day 1729902799 [15:46:21]quantity*price = 0 [15:46:21]sum+1 = 1 [15:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 218 25.10.2024 15:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 3948610 ФМ: 0000000000871754 ФД: 191479 ФПД: 64129639749059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191479&fm=64129639749059&tin=02508201610067®Number=0000000000091776&sum=0 [15:46:22]StoreToDocumentArchive [15:46:22]shift 540 fd 191479 [15:46:22]save to /storage/0540/doc_00191479 [15:46:22]save last doc name /storage/0540/doc_00191479 to /storage/kkm_last_doc_name [15:46:22]save OK [15:46:22]Clear old archive folders... [15:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:22]tlvbuf is 016EB0F0 [15:46:22]SAM_PROTO_ClearQueue [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 09 00 00 [15:46:22]Write to MH i2c: E2 08 00 68 AC 80 09 00 00 00 00 00 00 86 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 68 AC 00 90 00 88 [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]SAM_PROTO_ClearQueue done [15:46:22]KKMCreateOFDPacket [15:46:22]OFDProtocolAddRootSTLVToBuf [15:46:22]FM_MakeSignedData [15:46:22]FM_MakeSignedData [15:46:22]SAM_PROTO_SignData [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 01 02 [15:46:22]Write to MH i2c: E2 08 00 69 AC 80 0D 01 02 00 00 00 00 8E [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 69 AC 00 90 00 89 [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]wFMCommunicate request_size=255 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EB 02 00 35 04 06 00 3A [15:46:22]Write to MH i2c: E2 02 01 6A AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EB 02 00 35 04 06 00 3A 00 00 ED [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]OFD Sender: No OFD packet to send [15:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 6A AC 00 90 00 8A [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]wFMCommunicate request_size=10 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 02 02 05 53 58 65 95 C3 [15:46:22]Write to MH i2c: E2 0D 00 6B AC 80 0D 02 02 05 00 53 58 65 95 C3 00 00 03 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 6B AC 00 90 00 8B [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 03 02 [15:46:22]Write to MH i2c: E2 08 00 6C AC 80 0D 03 02 00 00 00 00 93 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 0B 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 0B 00 6C AC 00 F9 35 28 9B 19 BF 7B 63 90 00 3B [15:46:22]RAPDU: F9 35 28 9B 19 BF 7B 63 90 00 [15:46:22]wFMCommunicate OK [15:46:22]SAM_PROTO_SignData done [15:46:22]FM_MakeSignedData done [15:46:22]CreateOFDProtocolMessage [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 11 00 00 [15:46:22]Write to MH i2c: E2 08 00 6D AC 80 11 00 00 00 00 00 00 93 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 6D AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [15:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:22]wFMCommunicate OK [15:46:22]CreateOFDProtocolMessage done [15:46:22]OFDSenderStorePacket 191479 [15:46:22]StoreOFDPacket docnum=191479 [15:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 07 07 01 A7 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EB 02 00 35 04 06 00 3A 53 58 65 95 C3 F9 35 28 9B 19 BF 7B 63 [15:46:22]CheckFolder [15:46:22]dirname=/storage/ofd_packets [15:46:22]CheckFolder done [15:46:22]ProducePacketName [15:46:22]name=ofd_packets/00191479 [15:46:22]NVStorageSaveData ofd_packets/00191479 [15:46:22]File name is /storage/ofd_packets/00191479 [15:46:22]Write 301 bytes [15:46:22]NVStorageSaveData done [15:46:22]OFDSenderStorePacket done [15:46:22]KKMCreateOFDPacket done [15:46:22]NVStorageSaveData kkm_last_timestamp [15:46:22]File name is /storage/kkm_last_timestamp [15:46:22]Write 4 bytes [15:46:22]NVStorageSaveData done [15:46:22]ExternCall_PrintAddStr [15:46:22]wPrintStart [15:46:22]Write to MH i2c: 01 00 00 6E AC 1A [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 6E AC 00 00 00 00 00 FF 0F 2F [15:46:22]RasterBufferAndPrint [15:46:22]line Счет N : (1)30774 [15:46:22]line ИНН: 02508201610067 [15:46:22]line Контрольно-Кассовый Чек [15:46:22]line ПРОДАЖА [15:46:22]line ТРК (МРК, ГНК) : 21 [15:46:22]line Товар: 2710124130 [15:46:22]line Аи-92-К-5 [15:46:22]line 30.000 * 0.00 [15:46:22]line = 0.00 [15:46:22]line НДС 12% НСП 1% [15:46:22]line > о реализуемом товаре [15:46:22]line ИТОГО: 0.00 [15:46:22]line НСП 1% : 0.00 [15:46:22]line НДС 12% : 0.00 [15:46:22]line Наличными: 0.00 [15:46:22]line Безнал.: 0.00 [15:46:22]line Место: АЗС № 170 "Партнер Нефть" [15:46:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:46:22]line СНО: Общий режим [15:46:22]line Чек 218 25.10.2024 15:46 [15:46:22]line Смена: 540 ФФД: 1.0 [15:46:22]line ЗНМ: 0300000110 [15:46:22]line РНМ: 0000000000091776 [15:46:22]line Версия ККМ: 001 [15:46:22]line Талоны: Партнер нефть [15:46:22]line 3948610 [15:46:22]line ФМ: 0000000000871754 [15:46:22]line ФД: 191479 [15:46:22]line ФПД: 64129639749059 [15:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191479&fm=64129639749059&tin=02508201610067®Number=0000000000091776&sum=0 [15:46:23]OFD Sender: Processing packet 191479 [packets to send 75, broken 74] [15:46:23]ProducePacketName [15:46:23]name=ofd_packets/00191479 [15:46:23]OFD Sender: To server: pG, [15:46:23]CommunicateWithHost lk.salyk.kg:30040 [15:46:23]ConnectInit lk.salyk.kg [15:46:23]written 0, free lines is 4095 [15:46:23]Connected sock=10 [15:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 07 07 01 A7 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EB 02 00 35 04 06 00 3A 53 58 65 95 C3 F9 35 28 9B 19 BF 7B 63 [15:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DA 21 47 00 28 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EB 02 00 F4 03 04 00 24 62 1B 67 B6 04 01 00 00 33 64 28 C0 B5 43 FE 7B [15:46:23]CommunicateWithHost err = 0 [15:46:23]CheckOFDResponse [15:46:23]1017 (14) - 77093643461234 [15:46:23]1041 (16) - 0000000000871754 [15:46:23]1040 (4) - 191479 [15:46:23]1012 (4) - 25.10.2024 09:17 [15:46:23]1206 (1) - 0 [15:46:23]OFD Sender: Remove packet 191479 [15:46:23]ProducePacketName [15:46:23]name=ofd_packets/00191479 [15:46:23]NVStorageDeleteData [15:46:23]Write to MH i2c: 01 00 00 98 AC 44 [15:46:23]Write i2c OK [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: 01 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: 01 07 00 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: 01 07 00 98 AC 00 00 00 00 00 C0 0C 17 [15:46:23]RasterBufferAndPrint [15:46:23]line [15:46:23]line [15:46:23]line [15:46:23]line [15:46:23]line [15:46:23]written 0, free lines is 3271 [15:46:23]MH_Cut [15:46:23]Write to MH i2c: D1 01 00 9F AC 01 1D [15:46:23]Write i2c OK [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: D1 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: D1 01 00 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: D1 01 00 9F AC 00 1C [15:46:23]Write to MH i2c: 01 00 00 A0 AC 4C [15:46:23]Write i2c OK [15:46:23]MH_I2C_Read... [15:46:23]OFD Sender: No OFD packet to send [15:46:24]*** Cut start [15:46:24]*** Partial cut [15:46:24]*** CUTSNS_PIN = 1 [15:46:24]*** CUTSNS_PIN = 0 [15:46:24]*** Brake cut motor [15:46:24]Read from MH i2c: 01 [15:46:24]MH_I2C_Read... [15:46:24]*** Stop cut motor [15:46:24]*** Cut end [15:46:24]Read from MH i2c: 01 07 00 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: 01 07 00 A0 AC 00 00 00 00 00 FF 0F 61 [15:46:24]process_action close_receipt done [15:46:24]requested_data is exist [15:46:24]produce_requested_data [15:46:24]requested_item fm.sn is exist - process it [15:46:24]wFMCommunicate request_size=4 [15:46:24]MH_SAM_APDU [15:46:24]CAPDU: 80 11 00 00 [15:46:24]Write to MH i2c: E2 08 00 A1 AC 80 11 00 00 00 00 00 00 C7 [15:46:24]Write i2c OK [15:46:24]MH_I2C_Read... [15:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:24]Read from MH i2c: E2 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: E2 17 00 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: E2 17 00 A1 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [15:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:24]wFMCommunicate OK [15:46:24]requested_item fd.num is exist - process it [15:46:24]SAM_PROTO_GetFieldsCounters [15:46:24]wFMCommunicate request_size=4 [15:46:24]MH_SAM_APDU [15:46:24]CAPDU: 80 13 00 00 [15:46:24]Write to MH i2c: E2 08 00 A2 AC 80 13 00 00 00 00 00 00 CA [15:46:24]Write i2c OK [15:46:24]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 62 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 62 00 A2 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:25]wFMCommunicate OK [15:46:25]SAM_PROTO_GetFieldsCounters done [15:46:25]requested_item shift.num is exist - process it [15:46:25]requested_item shift.opened is exist - process it [15:46:25]req_shift_opened [15:46:25]FM_GetShiftState [15:46:25]SAM_PROTO_GetShiftState [15:46:25]wFMCommunicate request_size=4 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 13 01 00 [15:46:25]Write to MH i2c: E2 08 00 A3 AC 80 13 01 00 00 00 00 00 CC [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 0E 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 0E 00 A3 AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8F [15:46:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:46:25]wFMCommunicate OK [15:46:25]SAM_PROTO_GetShiftState done [15:46:25]FM_GetShiftState done [15:46:25]req_shift_opened done [15:46:25]requested_item shift.open_date is exist - process it [15:46:25]req_shift_open_date [15:46:25]req_shift_open_date done [15:46:25]produce_requested_data done [15:46:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191479,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:46:25]process_action_free close_receipt [15:46:25]json_value_free [15:46:25]json_value_free done [15:46:25]process_json_proto returns [15:46:25]Send response to host [15:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191479,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:46:25]free response buf [15:46:25]execute_script done [15:46:25]execute_script returns [15:46:25]free content buf [15:46:25]Sock 9.Close socket [15:46:25]Sock 9.Thread stoped [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:46]accept exits with 8 [15:46:46]New connection [15:46:46]New thread 3066961252 created [15:46:46]Thread 3066817892 joined [15:46:46]Waiting for new connection... [15:46:46] Sock 8.Parse request [15:46:46]Sock 8.Check first char [15:46:46]Sock 8.First char is OK [15:46:46]request: POST /json_proto HTTP/1.0 [15:46:46]Method: POST [15:46:46]URL: /json_proto [15:46:46]Method is POST - this is cgi request [15:46:46]url: /json_proto [15:46:46]query_string will be loaded in cgi processing [15:46:46]execute_cgi json_proto POST (null) [15:46:46]execute_cgi path=json_proto method=POST [15:46:46]POST find Content-Length [15:46:46]Host: 172.17.63.131:8080 [15:46:46]Content-Length: 676 [15:46:46]Content-Type: application/json [15:46:46] [15:46:46]POST finish read [15:46:46]Found Content-Length = 676 [15:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:46]execute_script... [15:46: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)30775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:46]POST & json_proto [15:46:46]process_json_proto [15:46:46]json parsed OK: [15:46:46]protocol is kg_v1.0 [15:46:46]action value=close_receipt [15:46:46]process_action close_receipt [15:46:46]cmd_close_receipt [15:46:46]MH_GetDate [15:46:46]Write to MH i2c: F0 00 00 A4 AC 3F [15:46:46]Write i2c OK [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: F0 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: F0 09 00 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: F0 09 00 A4 AC 00 70 BD 1B 67 22 05 6E 64 F0 [15:46:46]GetLastDocTimeStamp 1729871190 [15:46:46]current date 1729871216 [15:46:46]FM_GetShiftState [15:46:46]SAM_PROTO_GetShiftState [15:46:46]wFMCommunicate request_size=4 [15:46:46]MH_SAM_APDU [15:46:46]CAPDU: 80 13 01 00 [15:46:46]Write to MH i2c: E2 08 00 A5 AC 80 13 01 00 00 00 00 00 CE [15:46:46]Write i2c OK [15:46:46]MH_I2C_Read... [15:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:46]Read from MH i2c: E2 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 0E 00 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 0E 00 A5 AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 91 [15:46:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:46:46]wFMCommunicate OK [15:46:46]SAM_PROTO_GetShiftState done [15:46:46]FM_GetShiftState done [15:46:46]opened in 1729816399 [15:46:46]opened+sec_in_day 1729902799 [15:46:46]quantity*price = 30038 [15:46:46]sum+1 = 30039 [15:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 219 25.10.2024 15:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191480 ФПД: 181498423043614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191480&fm=181498423043614&tin=02508201610067®Number=0000000000091776&sum=30000 [15:46:47]StoreToDocumentArchive [15:46:47]shift 540 fd 191480 [15:46:47]save to /storage/0540/doc_00191480 [15:46:47]save last doc name /storage/0540/doc_00191480 to /storage/kkm_last_doc_name [15:46:47]save OK [15:46:47]Clear old archive folders... [15:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:47]tlvbuf is 015B0AA0 [15:46:47]SAM_PROTO_ClearQueue [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 09 00 00 [15:46:47]Write to MH i2c: E2 08 00 B2 AC 80 09 00 00 00 00 00 00 D0 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 B2 AC 00 90 00 D2 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]SAM_PROTO_ClearQueue done [15:46:47]KKMCreateOFDPacket [15:46:47]OFDProtocolAddRootSTLVToBuf [15:46:47]FM_MakeSignedData [15:46:47]FM_MakeSignedData [15:46:47]SAM_PROTO_SignData [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 01 02 [15:46:47]Write to MH i2c: E2 08 00 B3 AC 80 0D 01 02 00 00 00 00 D8 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 B3 AC 00 90 00 D3 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=255 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 70 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EB 02 00 35 04 06 00 A5 [15:46:47]Write to MH i2c: E2 02 01 B4 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 70 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EB 02 00 35 04 06 00 A5 00 00 92 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 03 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 03 00 B4 AC 00 90 00 D4 [15:46:48]RAPDU: 90 00 [15:46:48]wFMCommunicate OK [15:46:48]wFMCommunicate request_size=10 [15:46:48]MH_SAM_APDU [15:46:48]CAPDU: 80 0D 02 02 05 12 65 08 66 1E [15:46:48]Write to MH i2c: E2 0D 00 B5 AC 80 0D 02 02 05 00 12 65 08 66 1E 00 00 E8 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 03 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 03 00 B5 AC 00 90 00 D5 [15:46:48]RAPDU: 90 00 [15:46:48]wFMCommunicate OK [15:46:48]wFMCommunicate request_size=4 [15:46:48]MH_SAM_APDU [15:46:48]CAPDU: 80 0D 03 02 [15:46:48]Write to MH i2c: E2 08 00 B6 AC 80 0D 03 02 00 00 00 00 DD [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 0B 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 0B 00 B6 AC 00 47 2D 81 EC 2D 48 8A 75 90 00 33 [15:46:48]RAPDU: 47 2D 81 EC 2D 48 8A 75 90 00 [15:46:48]wFMCommunicate OK [15:46:48]SAM_PROTO_SignData done [15:46:48]FM_MakeSignedData done [15:46:48]CreateOFDProtocolMessage [15:46:48]wFMCommunicate request_size=4 [15:46:48]MH_SAM_APDU [15:46:48]CAPDU: 80 11 00 00 [15:46:48]Write to MH i2c: E2 08 00 B7 AC 80 11 00 00 00 00 00 00 DD [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 17 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 17 00 B7 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [15:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:48]wFMCommunicate OK [15:46:48]CreateOFDProtocolMessage done [15:46:48]OFDSenderStorePacket 191480 [15:46:48]StoreOFDPacket docnum=191480 [15:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD F5 07 01 0F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 70 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EB 02 00 35 04 06 00 A5 12 65 08 66 1E 47 2D 81 EC 2D 48 8A 75 [15:46:48]CheckFolder [15:46:48]dirname=/storage/ofd_packets [15:46:48]CheckFolder done [15:46:48]ProducePacketName [15:46:48]name=ofd_packets/00191480 [15:46:48]NVStorageSaveData ofd_packets/00191480 [15:46:48]File name is /storage/ofd_packets/00191480 [15:46:48]Write 301 bytes [15:46:48]NVStorageSaveData done [15:46:48]OFDSenderStorePacket done [15:46:48]KKMCreateOFDPacket done [15:46:48]NVStorageSaveData kkm_last_timestamp [15:46:48]File name is /storage/kkm_last_timestamp [15:46:48]Write 4 bytes [15:46:48]NVStorageSaveData done [15:46:48]ExternCall_PrintAddStr [15:46:48]wPrintStart [15:46:48]Write to MH i2c: 01 00 00 B8 AC 64 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 B8 AC 00 00 00 00 00 FF 0F 79 [15:46:48]RasterBufferAndPrint [15:46:48]line Счет N : (1)30775 [15:46:48]line ИНН: 02508201610067 [15:46:48]line Контрольно-Кассовый Чек [15:46:48]line ПРОДАЖА [15:46:48]line ТРК (МРК, ГНК) : 21 [15:46:48]line Товар: 2710124130 [15:46:48]line Аи-92-К-5 [15:46:48]line 4.490 * 66.90 [15:46:48]line = 300.38 [15:46:48]line НДС 12% НСП 1% [15:46:48]line > о реализуемом товаре [15:46:48]line ОКРУГЛЕНИЕ: -0.38 [15:46:48]line ИТОГО: 300.00 [15:46:48]line Внесено: 300.00 [15:46:48]line СДАЧА: 0.00 [15:46:48]line НСП 1% : 2.66 [15:46:48]line НДС 12% : 31.90 [15:46:48]line Наличными: 300.00 [15:46:48]line Безнал.: 0.00 [15:46:48]line Место: АЗС № 170 "Партнер Нефть" [15:46:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:46:48]line СНО: Общий режим [15:46:48]line Чек 219 25.10.2024 15:46 [15:46:48]line Смена: 540 ФФД: 1.0 [15:46:48]line ЗНМ: 0300000110 [15:46:48]line РНМ: 0000000000091776 [15:46:48]line Версия ККМ: 001 [15:46:48]line ФМ: 0000000000871754 [15:46:48]line ФД: 191480 [15:46:48]line ФПД: 181498423043614 [15:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191480&fm=181498423043614&tin=02508201610067®Number=0000000000091776&sum=30000 [15:46:48]OFD Sender: Processing packet 191480 [packets to send 75, broken 74] [15:46:48]ProducePacketName [15:46:48]name=ofd_packets/00191480 [15:46:48]OFD Sender: To server: pG, [15:46:48]CommunicateWithHost lk.salyk.kg:30040 [15:46:48]ConnectInit lk.salyk.kg [15:46:48]written 0, free lines is 4095 [15:46:48]Connected sock=9 [15:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD F5 07 01 0F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 70 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EB 02 00 35 04 06 00 A5 12 65 08 66 1E 47 2D 81 EC 2D 48 8A 75 [15:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 21 47 00 7C 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 31 37 35 34 10 04 04 00 F8 EB 02 00 F4 03 04 00 3E 62 1B 67 B6 04 01 00 00 D2 79 EA 8C D6 16 FF 7C [15:46:48]CommunicateWithHost err = 0 [15:46:48]CheckOFDResponse [15:46:48]1017 (14) - 77093643461234 [15:46:48]1041 (16) - 0000000000871754 [15:46:48]1040 (4) - 191480 [15:46:48]1012 (4) - 25.10.2024 09:17 [15:46:48]1206 (1) - 0 [15:46:48]OFD Sender: Remove packet 191480 [15:46:48]ProducePacketName [15:46:48]name=ofd_packets/00191480 [15:46:48]NVStorageDeleteData [15:46:49]Write to MH i2c: 01 00 00 E3 AC 8F [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: 01 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: 01 07 00 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: 01 07 00 E3 AC 00 00 00 00 00 B3 0C 55 [15:46:49]RasterBufferAndPrint [15:46:49]line [15:46:49]line [15:46:49]line [15:46:49]line [15:46:49]line [15:46:49]written 0, free lines is 3258 [15:46:49]MH_Cut [15:46:49]Write to MH i2c: D1 01 00 EA AC 01 68 [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: D1 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: D1 01 00 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: D1 01 00 EA AC 00 67 [15:46:49]Write to MH i2c: 01 00 00 EB AC 97 [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]OFD Sender: No OFD packet to send [15:46:49]*** Cut start [15:46:49]*** Partial cut [15:46:49]*** CUTSNS_PIN = 1 [15:46:49]*** CUTSNS_PIN = 0 [15:46:50]*** Brake cut motor [15:46:50]Read from MH i2c: 01 [15:46:50]MH_I2C_Read... [15:46:50]*** Stop cut motor [15:46:50]*** Cut end [15:46:50]Read from MH i2c: 01 07 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: 01 07 00 EB AC 00 00 00 00 00 FF 0F AC [15:46:50]process_action close_receipt done [15:46:50]requested_data is exist [15:46:50]produce_requested_data [15:46:50]requested_item fm.sn is exist - process it [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 11 00 00 [15:46:50]Write to MH i2c: E2 08 00 EC AC 80 11 00 00 00 00 00 00 12 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 EC AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [15:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:50]wFMCommunicate OK [15:46:50]requested_item fd.num is exist - process it [15:46:50]SAM_PROTO_GetFieldsCounters [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 13 00 00 [15:46:50]Write to MH i2c: E2 08 00 ED AC 80 13 00 00 00 00 00 00 15 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 62 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 62 00 ED AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:50]wFMCommunicate OK [15:46:50]SAM_PROTO_GetFieldsCounters done [15:46:50]requested_item shift.num is exist - process it [15:46:50]requested_item shift.opened is exist - process it [15:46:50]req_shift_opened [15:46:50]FM_GetShiftState [15:46:50]SAM_PROTO_GetShiftState [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 13 01 00 [15:46:50]Write to MH i2c: E2 08 00 EE AC 80 13 01 00 00 00 00 00 17 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 0E 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 0E 00 EE AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DA [15:46:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:46:50]wFMCommunicate OK [15:46:50]SAM_PROTO_GetShiftState done [15:46:50]FM_GetShiftState done [15:46:50]req_shift_opened done [15:46:50]requested_item shift.open_date is exist - process it [15:46:50]req_shift_open_date [15:46:50]req_shift_open_date done [15:46:50]produce_requested_data done [15:46:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191480,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:46:50]process_action_free close_receipt [15:46:50]json_value_free [15:46:50]json_value_free done [15:46:50]process_json_proto returns [15:46:50]Send response to host [15:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191480,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:46:50]free response buf [15:46:50]execute_script done [15:46:50]execute_script returns [15:46:50]free content buf [15:46:50]Sock 8.Close socket [15:46:50]Sock 8.Thread stoped [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]accept exits with 10 [15:48:59]New connection [15:48:59]New thread 3066817892 created [15:48:59]Thread 3066961252 joined [15:48:59]Waiting for new connection... [15:48:59] Sock 10.Parse request [15:48:59]Sock 10.Check first char [15:48:59]Sock 10.First char is OK [15:48:59]request: POST /json_proto HTTP/1.0 [15:48:59]Method: POST [15:48:59]URL: /json_proto [15:48:59]Method is POST - this is cgi request [15:48:59]url: /json_proto [15:48:59]query_string will be loaded in cgi processing [15:48:59]execute_cgi json_proto POST (null) [15:48:59]execute_cgi path=json_proto method=POST [15:48:59]POST find Content-Length [15:48:59]Host: 172.17.63.131:8080 [15:48:59]Content-Length: 681 [15:48:59]Content-Type: application/json [15:48:59] [15:48:59]POST finish read [15:48:59]Found Content-Length = 681 [15:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:59]execute_script... [15:48: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)30777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:59]POST & json_proto [15:48:59]process_json_proto [15:48:59]json parsed OK: [15:48:59]protocol is kg_v1.0 [15:48:59]action value=close_receipt [15:48:59]process_action close_receipt [15:48:59]cmd_close_receipt [15:48:59]MH_GetDate [15:48:59]Write to MH i2c: F0 00 00 EF AC 8A [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 EF AC 00 F5 BD 1B 67 22 05 6E 64 C0 [15:48:59]GetLastDocTimeStamp 1729871216 [15:48:59]current date 1729871349 [15:48:59]FM_GetShiftState [15:48:59]SAM_PROTO_GetShiftState [15:48:59]wFMCommunicate request_size=4 [15:48:59]MH_SAM_APDU [15:48:59]CAPDU: 80 13 01 00 [15:48:59]Write to MH i2c: E2 08 00 F0 AC 80 13 01 00 00 00 00 00 19 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:59]Read from MH i2c: E2 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 F0 AC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DC [15:48:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:48:59]wFMCommunicate OK [15:48:59]SAM_PROTO_GetShiftState done [15:48:59]FM_GetShiftState done [15:48:59]opened in 1729816399 [15:48:59]opened+sec_in_day 1729902799 [15:48:59]quantity*price = 110050 [15:48:59]sum+1 = 110052 [15:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 220 25.10.2024 15:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191481 ФПД: 205934230153566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191481&fm=205934230153566&tin=02508201610067®Number=0000000000091776&sum=110000 [15:49:00]StoreToDocumentArchive [15:49:00]shift 540 fd 191481 [15:49:00]save to /storage/0540/doc_00191481 [15:49:00]save last doc name /storage/0540/doc_00191481 to /storage/kkm_last_doc_name [15:49:00]save OK [15:49:00]Clear old archive folders... [15:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:00]tlvbuf is 016AFC20 [15:49:00]SAM_PROTO_ClearQueue [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 09 00 00 [15:49:00]Write to MH i2c: E2 08 00 FD AC 80 09 00 00 00 00 00 00 1B [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 FD AC 00 90 00 1D [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_ClearQueue done [15:49:00]KKMCreateOFDPacket [15:49:00]OFDProtocolAddRootSTLVToBuf [15:49:00]FM_MakeSignedData [15:49:00]FM_MakeSignedData [15:49:00]SAM_PROTO_SignData [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 01 02 [15:49:00]Write to MH i2c: E2 08 00 FE AC 80 0D 01 02 00 00 00 00 23 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 FE AC 00 90 00 1E [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=255 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F5 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EB 02 00 35 04 06 00 BB [15:49:00]Write to MH i2c: E2 02 01 FF AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F5 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EB 02 00 35 04 06 00 BB 00 00 B1 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 FF AC 00 90 00 1F [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=10 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 05 4B CC A2 A9 5E [15:49:00]Write to MH i2c: E2 0D 00 00 AD 80 0D 02 02 05 00 4B CC A2 A9 5E 00 00 F1 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 00 AD 00 90 00 21 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 03 02 [15:49:00]Write to MH i2c: E2 08 00 01 AD 80 0D 03 02 00 00 00 00 29 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 01 AD 00 90 A6 D4 DC AD A9 08 C9 90 00 37 [15:49:00]RAPDU: 90 A6 D4 DC AD A9 08 C9 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_SignData done [15:49:00]FM_MakeSignedData done [15:49:00]CreateOFDProtocolMessage [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 11 00 00 [15:49:00]Write to MH i2c: E2 08 00 02 AD 80 11 00 00 00 00 00 00 29 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:01]Read from MH i2c: E2 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: E2 17 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: E2 17 00 02 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [15:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:01]wFMCommunicate OK [15:49:01]CreateOFDProtocolMessage done [15:49:01]OFDSenderStorePacket 191481 [15:49:01]StoreOFDPacket docnum=191481 [15:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 E1 07 01 0D 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F5 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EB 02 00 35 04 06 00 BB 4B CC A2 A9 5E 90 A6 D4 DC AD A9 08 C9 [15:49:01]CheckFolder [15:49:01]dirname=/storage/ofd_packets [15:49:01]CheckFolder done [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00191481 [15:49:01]NVStorageSaveData ofd_packets/00191481 [15:49:01]File name is /storage/ofd_packets/00191481 [15:49:01]Write 301 bytes [15:49:01]NVStorageSaveData done [15:49:01]OFDSenderStorePacket done [15:49:01]KKMCreateOFDPacket done [15:49:01]NVStorageSaveData kkm_last_timestamp [15:49:01]File name is /storage/kkm_last_timestamp [15:49:01]Write 4 bytes [15:49:01]NVStorageSaveData done [15:49:01]ExternCall_PrintAddStr [15:49:01]wPrintStart [15:49:01]Write to MH i2c: 01 00 00 03 AD B0 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 03 AD 00 00 00 00 00 FF 0F C5 [15:49:01]RasterBufferAndPrint [15:49:01]line Счет N : (1)30777 [15:49:01]line ИНН: 02508201610067 [15:49:01]line Контрольно-Кассовый Чек [15:49:01]line ПРОДАЖА [15:49:01]line ТРК (МРК, ГНК) : 21 [15:49:01]line Товар: 2710124130 [15:49:01]line Аи-92-К-5 [15:49:01]line 16.450 * 66.90 [15:49:01]line = 1100.51 [15:49:01]line НДС 12% НСП 1% [15:49:01]line > о реализуемом товаре [15:49:01]line ОКРУГЛЕНИЕ: -0.51 [15:49:01]line ИТОГО: 1100.00 [15:49:01]line Внесено: 1100.00 [15:49:01]line СДАЧА: 0.00 [15:49:01]line НСП 1% : 9.74 [15:49:01]line НДС 12% : 116.87 [15:49:01]line Наличными: 1100.00 [15:49:01]line Безнал.: 0.00 [15:49:01]line Место: АЗС № 170 "Партнер Нефть" [15:49:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:49:01]line СНО: Общий режим [15:49:01]line Чек 220 25.10.2024 15:49 [15:49:01]line Смена: 540 ФФД: 1.0 [15:49:01]line ЗНМ: 0300000110 [15:49:01]line РНМ: 0000000000091776 [15:49:01]line Версия ККМ: 001 [15:49:01]line ФМ: 0000000000871754 [15:49:01]line ФД: 191481 [15:49:01]line ФПД: 205934230153566 [15:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191481&fm=205934230153566&tin=02508201610067®Number=0000000000091776&sum=110000 [15:49:01]OFD Sender: Processing packet 191481 [packets to send 75, broken 74] [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00191481 [15:49:01]OFD Sender: To server: pG, [15:49:01]CommunicateWithHost lk.salyk.kg:30040 [15:49:01]ConnectInit lk.salyk.kg [15:49:01]written 0, free lines is 4095 [15:49:01]Connected sock=9 [15:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 E1 07 01 0D 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F5 BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EB 02 00 35 04 06 00 BB 4B CC A2 A9 5E 90 A6 D4 DC AD A9 08 C9 [15:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F 56 47 00 E0 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 31 37 35 34 10 04 04 00 F9 EB 02 00 F4 03 04 00 C3 62 1B 67 B6 04 01 00 00 44 F2 5B 5B 9D 80 A4 6D [15:49:01]CommunicateWithHost err = 0 [15:49:01]CheckOFDResponse [15:49:01]1017 (14) - 77093643461234 [15:49:01]1041 (16) - 0000000000871754 [15:49:01]1040 (4) - 191481 [15:49:01]1012 (4) - 25.10.2024 09:20 [15:49:01]1206 (1) - 0 [15:49:01]OFD Sender: Remove packet 191481 [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00191481 [15:49:01]NVStorageDeleteData [15:49:01]Write to MH i2c: 01 00 00 2E AD DB [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 2E AD 00 00 00 00 00 B7 0C A5 [15:49:01]RasterBufferAndPrint [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]written 0, free lines is 3262 [15:49:01]MH_Cut [15:49:01]Write to MH i2c: D1 01 00 35 AD 01 B4 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 35 AD 00 B3 [15:49:01]Write to MH i2c: 01 00 00 36 AD E3 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:02]OFD Sender: No OFD packet to send [15:49:02]*** Cut start [15:49:02]*** Partial cut [15:49:02]*** CUTSNS_PIN = 1 [15:49:02]*** CUTSNS_PIN = 0 [15:49:02]*** Brake cut motor [15:49:03]Read from MH i2c: 01 [15:49:03]MH_I2C_Read... [15:49:03]*** Stop cut motor [15:49:03]*** Cut end [15:49:03]Read from MH i2c: 01 07 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 07 00 36 AD 00 00 00 00 00 FF 0F F8 [15:49:03]process_action close_receipt done [15:49:03]requested_data is exist [15:49:03]produce_requested_data [15:49:03]requested_item fm.sn is exist - process it [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 11 00 00 [15:49:03]Write to MH i2c: E2 08 00 37 AD 80 11 00 00 00 00 00 00 5E [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 17 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 17 00 37 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [15:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:03]wFMCommunicate OK [15:49:03]requested_item fd.num is exist - process it [15:49:03]SAM_PROTO_GetFieldsCounters [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 00 00 [15:49:03]Write to MH i2c: E2 08 00 38 AD 80 13 00 00 00 00 00 00 61 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 38 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [15:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetFieldsCounters done [15:49:03]requested_item shift.num is exist - process it [15:49:03]requested_item shift.opened is exist - process it [15:49:03]req_shift_opened [15:49:03]FM_GetShiftState [15:49:03]SAM_PROTO_GetShiftState [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 01 00 [15:49:03]Write to MH i2c: E2 08 00 39 AD 80 13 01 00 00 00 00 00 63 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 39 AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 26 [15:49:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetShiftState done [15:49:03]FM_GetShiftState done [15:49:03]req_shift_opened done [15:49:03]requested_item shift.open_date is exist - process it [15:49:03]req_shift_open_date [15:49:03]req_shift_open_date done [15:49:03]produce_requested_data done [15:49:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191481,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:49:03]process_action_free close_receipt [15:49:03]json_value_free [15:49:03]json_value_free done [15:49:03]process_json_proto returns [15:49:03]Send response to host [15:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191481,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:49:03]free response buf [15:49:03]execute_script done [15:49:03]execute_script returns [15:49:03]free content buf [15:49:03]Sock 10.Close socket [15:49:03]Sock 10.Thread stoped [15:49:07]OFD Sender: No OFD packet to send [15:49:09]accept exits with 8 [15:49:09]New connection [15:49:09]New thread 3066961252 created [15:49:09]Thread 3066817892 joined [15:49:09]Waiting for new connection... [15:49:09] Sock 8.Parse request [15:49:09]Sock 8.Check first char [15:49:09]Sock 8.First char is OK [15:49:09]request: POST /json_proto HTTP/1.0 [15:49:09]Method: POST [15:49:09]URL: /json_proto [15:49:09]Method is POST - this is cgi request [15:49:09]url: /json_proto [15:49:09]query_string will be loaded in cgi processing [15:49:09]execute_cgi json_proto POST (null) [15:49:09]execute_cgi path=json_proto method=POST [15:49:09]POST find Content-Length [15:49:09]Host: 172.17.63.131:8080 [15:49:09]Content-Length: 677 [15:49:09]Content-Type: application/json [15:49:09] [15:49:09]POST finish read [15:49:09]Found Content-Length = 677 [15:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:09]execute_script... [15:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:09]POST & json_proto [15:49:09]process_json_proto [15:49:09]json parsed OK: [15:49:09]protocol is kg_v1.0 [15:49:09]action value=close_receipt [15:49:09]process_action close_receipt [15:49:09]cmd_close_receipt [15:49:09]MH_GetDate [15:49:09]Write to MH i2c: F0 00 00 3A AD D6 [15:49:09]Write i2c OK [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: F0 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: F0 09 00 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: F0 09 00 3A AD 00 FF BD 1B 67 22 05 6E 64 16 [15:49:09]GetLastDocTimeStamp 1729871349 [15:49:09]current date 1729871359 [15:49:09]FM_GetShiftState [15:49:09]SAM_PROTO_GetShiftState [15:49:09]wFMCommunicate request_size=4 [15:49:09]MH_SAM_APDU [15:49:09]CAPDU: 80 13 01 00 [15:49:09]Write to MH i2c: E2 08 00 3B AD 80 13 01 00 00 00 00 00 65 [15:49:09]Write i2c OK [15:49:09]MH_I2C_Read... [15:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:09]Read from MH i2c: E2 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: E2 0E 00 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: E2 0E 00 3B AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 28 [15:49:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:49:09]wFMCommunicate OK [15:49:09]SAM_PROTO_GetShiftState done [15:49:09]FM_GetShiftState done [15:49:09]opened in 1729816399 [15:49:09]opened+sec_in_day 1729902799 [15:49:09]quantity*price = 80012 [15:49:09]sum+1 = 80013 [15:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 221 25.10.2024 15:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191482 ФПД: 146633557273223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191482&fm=146633557273223&tin=02508201610067®Number=0000000000091776&sum=80000 [15:49:10]StoreToDocumentArchive [15:49:10]shift 540 fd 191482 [15:49:10]save to /storage/0540/doc_00191482 [15:49:10]save last doc name /storage/0540/doc_00191482 to /storage/kkm_last_doc_name [15:49:10]save OK [15:49:10]Clear old archive folders... [15:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:10]tlvbuf is 01789AC0 [15:49:10]SAM_PROTO_ClearQueue [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 09 00 00 [15:49:10]Write to MH i2c: E2 08 00 48 AD 80 09 00 00 00 00 00 00 67 [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 03 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 03 00 48 AD 00 90 00 69 [15:49:10]RAPDU: 90 00 [15:49:10]wFMCommunicate OK [15:49:10]SAM_PROTO_ClearQueue done [15:49:10]KKMCreateOFDPacket [15:49:10]OFDProtocolAddRootSTLVToBuf [15:49:10]FM_MakeSignedData [15:49:10]FM_MakeSignedData [15:49:10]SAM_PROTO_SignData [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 0D 01 02 [15:49:10]Write to MH i2c: E2 08 00 49 AD 80 0D 01 02 00 00 00 00 6F [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 03 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 03 00 49 AD 00 90 00 6A [15:49:10]RAPDU: 90 00 [15:49:10]wFMCommunicate OK [15:49:10]wFMCommunicate request_size=255 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EB 02 00 35 04 06 00 85 [15:49:10]Write to MH i2c: E2 02 01 4A AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EB 02 00 35 04 06 00 85 00 00 94 [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:10]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 4A AD 00 90 00 6B [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]wFMCommunicate request_size=10 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 0D 02 02 05 5C C9 17 EA 87 [15:49:11]Write to MH i2c: E2 0D 00 4B AD 80 0D 02 02 05 00 5C C9 17 EA 87 00 00 29 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 03 00 4B AD 00 90 00 6C [15:49:11]RAPDU: 90 00 [15:49:11]wFMCommunicate OK [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 0D 03 02 [15:49:11]Write to MH i2c: E2 08 00 4C AD 80 0D 03 02 00 00 00 00 74 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0B 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0B 00 4C AD 00 17 6F 5D 55 58 9B 88 9E 90 00 C6 [15:49:11]RAPDU: 17 6F 5D 55 58 9B 88 9E 90 00 [15:49:11]wFMCommunicate OK [15:49:11]SAM_PROTO_SignData done [15:49:11]FM_MakeSignedData done [15:49:11]CreateOFDProtocolMessage [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 11 00 00 [15:49:11]Write to MH i2c: E2 08 00 4D AD 80 11 00 00 00 00 00 00 74 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 17 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 17 00 4D AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [15:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:11]wFMCommunicate OK [15:49:11]CreateOFDProtocolMessage done [15:49:11]OFDSenderStorePacket 191482 [15:49:11]StoreOFDPacket docnum=191482 [15:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 30 07 01 82 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EB 02 00 35 04 06 00 85 5C C9 17 EA 87 17 6F 5D 55 58 9B 88 9E [15:49:11]CheckFolder [15:49:11]dirname=/storage/ofd_packets [15:49:11]CheckFolder done [15:49:11]ProducePacketName [15:49:11]name=ofd_packets/00191482 [15:49:11]NVStorageSaveData ofd_packets/00191482 [15:49:11]File name is /storage/ofd_packets/00191482 [15:49:11]Write 301 bytes [15:49:11]NVStorageSaveData done [15:49:11]OFDSenderStorePacket done [15:49:11]KKMCreateOFDPacket done [15:49:11]NVStorageSaveData kkm_last_timestamp [15:49:11]File name is /storage/kkm_last_timestamp [15:49:11]Write 4 bytes [15:49:11]NVStorageSaveData done [15:49:11]ExternCall_PrintAddStr [15:49:11]wPrintStart [15:49:11]Write to MH i2c: 01 00 00 4E AD FB [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 4E AD 00 00 00 00 00 FF 0F 10 [15:49:11]RasterBufferAndPrint [15:49:11]line Счет N : (1)30776 [15:49:11]line ИНН: 02508201610067 [15:49:11]line Контрольно-Кассовый Чек [15:49:11]line ПРОДАЖА [15:49:11]line ТРК (МРК, ГНК) : 12 [15:49:11]line Товар: 2710124130 [15:49:11]line Аи-92-К-5 [15:49:11]line 11.960 * 66.90 [15:49:11]line = 800.12 [15:49:11]line НДС 12% НСП 1% [15:49:11]line > о реализуемом товаре [15:49:11]line ОКРУГЛЕНИЕ: -0.12 [15:49:11]line ИТОГО: 800.00 [15:49:11]line Внесено: 800.00 [15:49:11]line СДАЧА: 0.00 [15:49:11]line НСП 1% : 7.08 [15:49:11]line НДС 12% : 84.97 [15:49:11]line Наличными: 800.00 [15:49:11]line Безнал.: 0.00 [15:49:11]line Место: АЗС № 170 "Партнер Нефть" [15:49:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:49:11]line СНО: Общий режим [15:49:11]line Чек 221 25.10.2024 15:49 [15:49:11]line Смена: 540 ФФД: 1.0 [15:49:11]line ЗНМ: 0300000110 [15:49:11]line РНМ: 0000000000091776 [15:49:11]line Версия ККМ: 001 [15:49:11]line ФМ: 0000000000871754 [15:49:11]line ФД: 191482 [15:49:11]line ФПД: 146633557273223 [15:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T154919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191482&fm=146633557273223&tin=02508201610067®Number=0000000000091776&sum=80000 [15:49:11]written 0, free lines is 4095 [15:49:11]OFD Sender: Processing packet 191482 [packets to send 75, broken 74] [15:49:11]ProducePacketName [15:49:11]name=ofd_packets/00191482 [15:49:11]OFD Sender: To server: pG, [15:49:11]CommunicateWithHost lk.salyk.kg:30040 [15:49:11]ConnectInit lk.salyk.kg [15:49:11]Connected sock=10 [15:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 30 07 01 82 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FF BD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EB 02 00 35 04 06 00 85 5C C9 17 EA 87 17 6F 5D 55 58 9B 88 9E [15:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 F0 47 00 DF 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EB 02 00 F4 03 04 00 CD 62 1B 67 B6 04 01 00 00 AE 85 11 BF 3A 0D DF D2 [15:49:11]CommunicateWithHost err = 0 [15:49:11]CheckOFDResponse [15:49:11]1017 (14) - 77093643461234 [15:49:11]1041 (16) - 0000000000871754 [15:49:11]1040 (4) - 191482 [15:49:11]1012 (4) - 25.10.2024 09:20 [15:49:11]1206 (1) - 0 [15:49:11]OFD Sender: Remove packet 191482 [15:49:11]ProducePacketName [15:49:11]name=ofd_packets/00191482 [15:49:11]NVStorageDeleteData [15:49:11]Write to MH i2c: 01 00 00 79 AD 26 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: 01 07 00 79 AD 00 00 00 00 00 C9 0C 02 [15:49:11]RasterBufferAndPrint [15:49:11]line [15:49:11]line [15:49:11]line [15:49:11]line [15:49:11]line [15:49:11]written 0, free lines is 3285 [15:49:11]MH_Cut [15:49:11]Write to MH i2c: D1 01 00 80 AD 01 FF [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: D1 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: D1 01 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: D1 01 00 80 AD 00 FE [15:49:11]Write to MH i2c: 01 00 00 81 AD 2E [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:12]OFD Sender: No OFD packet to send [15:49:12]*** Cut start [15:49:12]*** Partial cut [15:49:12]*** CUTSNS_PIN = 1 [15:49:12]*** CUTSNS_PIN = 0 [15:49:12]*** Brake cut motor [15:49:13]Read from MH i2c: 01 [15:49:13]MH_I2C_Read... [15:49:13]*** Stop cut motor [15:49:13]*** Cut end [15:49:13]Read from MH i2c: 01 07 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: 01 07 00 81 AD 00 00 00 00 00 FF 0F 43 [15:49:13]process_action close_receipt done [15:49:13]requested_data is exist [15:49:13]produce_requested_data [15:49:13]requested_item fm.sn is exist - process it [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 11 00 00 [15:49:13]Write to MH i2c: E2 08 00 82 AD 80 11 00 00 00 00 00 00 A9 [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 82 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [15:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:13]wFMCommunicate OK [15:49:13]requested_item fd.num is exist - process it [15:49:13]SAM_PROTO_GetFieldsCounters [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 13 00 00 [15:49:13]Write to MH i2c: E2 08 00 83 AD 80 13 00 00 00 00 00 00 AC [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 62 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 62 00 83 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:49:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:13]wFMCommunicate OK [15:49:13]SAM_PROTO_GetFieldsCounters done [15:49:13]requested_item shift.num is exist - process it [15:49:13]requested_item shift.opened is exist - process it [15:49:13]req_shift_opened [15:49:13]FM_GetShiftState [15:49:13]SAM_PROTO_GetShiftState [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 13 01 00 [15:49:13]Write to MH i2c: E2 08 00 84 AD 80 13 01 00 00 00 00 00 AE [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 0E 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 0E 00 84 AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 71 [15:49:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:49:13]wFMCommunicate OK [15:49:13]SAM_PROTO_GetShiftState done [15:49:13]FM_GetShiftState done [15:49:13]req_shift_opened done [15:49:13]requested_item shift.open_date is exist - process it [15:49:13]req_shift_open_date [15:49:13]req_shift_open_date done [15:49:13]produce_requested_data done [15:49:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191482,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:49:13]process_action_free close_receipt [15:49:13]json_value_free [15:49:13]json_value_free done [15:49:13]process_json_proto returns [15:49:13]Send response to host [15:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191482,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:49:13]free response buf [15:49:13]execute_script done [15:49:13]execute_script returns [15:49:13]free content buf [15:49:13]Sock 8.Close socket [15:49:13]Sock 8.Thread stoped [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:10]accept exits with 9 [15:50:10]New connection [15:50:10]New thread 3066817892 created [15:50:10]Thread 3066961252 joined [15:50:10]Waiting for new connection... [15:50:10] Sock 9.Parse request [15:50:10]Sock 9.Check first char [15:50:10]Sock 9.First char is OK [15:50:10]request: POST /json_proto HTTP/1.0 [15:50:10]Method: POST [15:50:10]URL: /json_proto [15:50:10]Method is POST - this is cgi request [15:50:10]url: /json_proto [15:50:10]query_string will be loaded in cgi processing [15:50:10]execute_cgi json_proto POST (null) [15:50:10]execute_cgi path=json_proto method=POST [15:50:10]POST find Content-Length [15:50:10]Host: 172.17.63.131:8080 [15:50:10]Content-Length: 676 [15:50:10]Content-Type: application/json [15:50:10] [15:50:10]POST finish read [15:50:10]Found Content-Length = 676 [15:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:10]execute_script... [15:50: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)30778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:10]POST & json_proto [15:50:10]process_json_proto [15:50:10]json parsed OK: [15:50:10]protocol is kg_v1.0 [15:50:10]action value=close_receipt [15:50:10]process_action close_receipt [15:50:10]cmd_close_receipt [15:50:10]MH_GetDate [15:50:10]Write to MH i2c: F0 00 00 85 AD 21 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 09 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 09 00 85 AD 00 3C BE 1B 67 22 05 6E 64 9F [15:50:10]GetLastDocTimeStamp 1729871359 [15:50:10]current date 1729871420 [15:50:10]FM_GetShiftState [15:50:10]SAM_PROTO_GetShiftState [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 13 01 00 [15:50:10]Write to MH i2c: E2 08 00 86 AD 80 13 01 00 00 00 00 00 B0 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 86 AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 73 [15:50:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:50:10]wFMCommunicate OK [15:50:10]SAM_PROTO_GetShiftState done [15:50:10]FM_GetShiftState done [15:50:10]opened in 1729816399 [15:50:10]opened+sec_in_day 1729902799 [15:50:10]quantity*price = 50041 [15:50:10]sum+1 = 50042 [15:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 222 25.10.2024 15:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191483 ФПД: 5579849227079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191483&fm=5579849227079&tin=02508201610067®Number=0000000000091776&sum=50000 [15:50:11]StoreToDocumentArchive [15:50:11]shift 540 fd 191483 [15:50:11]save to /storage/0540/doc_00191483 [15:50:11]save last doc name /storage/0540/doc_00191483 to /storage/kkm_last_doc_name [15:50:11]save OK [15:50:11]Clear old archive folders... [15:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:11]tlvbuf is 01625740 [15:50:11]SAM_PROTO_ClearQueue [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 09 00 00 [15:50:11]Write to MH i2c: E2 08 00 93 AD 80 09 00 00 00 00 00 00 B2 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 93 AD 00 90 00 B4 [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_ClearQueue done [15:50:11]KKMCreateOFDPacket [15:50:11]OFDProtocolAddRootSTLVToBuf [15:50:11]FM_MakeSignedData [15:50:11]FM_MakeSignedData [15:50:11]SAM_PROTO_SignData [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 01 02 [15:50:11]Write to MH i2c: E2 08 00 94 AD 80 0D 01 02 00 00 00 00 BA [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 94 AD 00 90 00 B5 [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=255 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 3C BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EB 02 00 35 04 06 00 05 [15:50:11]Write to MH i2c: E2 02 01 95 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 3C BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EB 02 00 35 04 06 00 05 00 00 B3 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:12]Read from MH i2c: E2 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 03 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 03 00 95 AD 00 90 00 B6 [15:50:12]RAPDU: 90 00 [15:50:12]wFMCommunicate OK [15:50:12]wFMCommunicate request_size=10 [15:50:12]MH_SAM_APDU [15:50:12]CAPDU: 80 0D 02 02 05 13 28 EE 5B 47 [15:50:12]Write to MH i2c: E2 0D 00 96 AD 80 0D 02 02 05 00 13 28 EE 5B 47 00 00 92 [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:12]Read from MH i2c: E2 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 03 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 03 00 96 AD 00 90 00 B7 [15:50:12]RAPDU: 90 00 [15:50:12]wFMCommunicate OK [15:50:12]wFMCommunicate request_size=4 [15:50:12]MH_SAM_APDU [15:50:12]CAPDU: 80 0D 03 02 [15:50:12]Write to MH i2c: E2 08 00 97 AD 80 0D 03 02 00 00 00 00 BF [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:12]Read from MH i2c: E2 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 0B 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 0B 00 97 AD 00 33 F1 C5 1E 32 4D 9D 2C 90 00 0F [15:50:12]RAPDU: 33 F1 C5 1E 32 4D 9D 2C 90 00 [15:50:12]wFMCommunicate OK [15:50:12]SAM_PROTO_SignData done [15:50:12]FM_MakeSignedData done [15:50:12]CreateOFDProtocolMessage [15:50:12]wFMCommunicate request_size=4 [15:50:12]MH_SAM_APDU [15:50:12]CAPDU: 80 11 00 00 [15:50:12]Write to MH i2c: E2 08 00 98 AD 80 11 00 00 00 00 00 00 BF [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]OFD Sender: No OFD packet to send [15:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:12]Read from MH i2c: E2 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 17 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: E2 17 00 98 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [15:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:50:12]wFMCommunicate OK [15:50:12]CreateOFDProtocolMessage done [15:50:12]OFDSenderStorePacket 191483 [15:50:12]StoreOFDPacket docnum=191483 [15:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA FE 07 01 A5 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 3C BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EB 02 00 35 04 06 00 05 13 28 EE 5B 47 33 F1 C5 1E 32 4D 9D 2C [15:50:12]CheckFolder [15:50:12]dirname=/storage/ofd_packets [15:50:12]CheckFolder done [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00191483 [15:50:12]NVStorageSaveData ofd_packets/00191483 [15:50:12]File name is /storage/ofd_packets/00191483 [15:50:12]Write 301 bytes [15:50:12]NVStorageSaveData done [15:50:12]OFDSenderStorePacket done [15:50:12]KKMCreateOFDPacket done [15:50:12]NVStorageSaveData kkm_last_timestamp [15:50:12]File name is /storage/kkm_last_timestamp [15:50:12]Write 4 bytes [15:50:12]NVStorageSaveData done [15:50:12]ExternCall_PrintAddStr [15:50:12]wPrintStart [15:50:12]Write to MH i2c: 01 00 00 99 AD 46 [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 99 AD 00 00 00 00 00 FF 0F 5B [15:50:12]RasterBufferAndPrint [15:50:12]line Счет N : (1)30778 [15:50:12]line ИНН: 02508201610067 [15:50:12]line Контрольно-Кассовый Чек [15:50:12]line ПРОДАЖА [15:50:12]line ТРК (МРК, ГНК) : 12 [15:50:12]line Товар: 2710124130 [15:50:12]line Аи-92-К-5 [15:50:12]line 7.480 * 66.90 [15:50:12]line = 500.41 [15:50:12]line НДС 12% НСП 1% [15:50:12]line > о реализуемом товаре [15:50:12]line ОКРУГЛЕНИЕ: -0.41 [15:50:12]line ИТОГО: 500.00 [15:50:12]line Внесено: 500.00 [15:50:12]line СДАЧА: 0.00 [15:50:12]line НСП 1% : 4.43 [15:50:12]line НДС 12% : 53.14 [15:50:12]line Наличными: 500.00 [15:50:12]line Безнал.: 0.00 [15:50:12]line Место: АЗС № 170 "Партнер Нефть" [15:50:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:50:12]line СНО: Общий режим [15:50:12]line Чек 222 25.10.2024 15:50 [15:50:12]line Смена: 540 ФФД: 1.0 [15:50:12]line ЗНМ: 0300000110 [15:50:12]line РНМ: 0000000000091776 [15:50:12]line Версия ККМ: 001 [15:50:12]line ФМ: 0000000000871754 [15:50:12]line ФД: 191483 [15:50:12]line ФПД: 5579849227079 [15:50:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191483&fm=5579849227079&tin=02508201610067®Number=0000000000091776&sum=50000 [15:50:12]OFD Sender: Processing packet 191483 [packets to send 75, broken 74] [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00191483 [15:50:12]OFD Sender: To server: pG, [15:50:12]CommunicateWithHost lk.salyk.kg:30040 [15:50:12]ConnectInit lk.salyk.kg [15:50:12]written 0, free lines is 4095 [15:50:12]Connected sock=10 [15:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA FE 07 01 A5 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 3C BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EB 02 00 35 04 06 00 05 13 28 EE 5B 47 33 F1 C5 1E 32 4D 9D 2C [15:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F8 FA 47 00 72 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EB 02 00 F4 03 04 00 0A 63 1B 67 B6 04 01 00 00 8E C8 1A 15 63 75 D3 0E [15:50:12]CommunicateWithHost err = 0 [15:50:12]CheckOFDResponse [15:50:12]1017 (14) - 77093643461234 [15:50:12]1041 (16) - 0000000000871754 [15:50:12]1040 (4) - 191483 [15:50:12]1012 (4) - 25.10.2024 09:21 [15:50:12]1206 (1) - 0 [15:50:12]OFD Sender: Remove packet 191483 [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00191483 [15:50:12]NVStorageDeleteData [15:50:13]Write to MH i2c: 01 00 00 C4 AD 71 [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: 01 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: 01 07 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: 01 07 00 C4 AD 00 00 00 00 00 BB 0C 3F [15:50:13]RasterBufferAndPrint [15:50:13]line [15:50:13]line [15:50:13]line [15:50:13]line [15:50:13]line [15:50:13]written 0, free lines is 3266 [15:50:13]MH_Cut [15:50:13]Write to MH i2c: D1 01 00 CB AD 01 4A [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: D1 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: D1 01 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: D1 01 00 CB AD 00 49 [15:50:13]Write to MH i2c: 01 00 00 CC AD 79 [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]OFD Sender: No OFD packet to send [15:50:13]*** Cut start [15:50:13]*** Partial cut [15:50:13]*** CUTSNS_PIN = 1 [15:50:13]*** CUTSNS_PIN = 0 [15:50:14]*** Brake cut motor [15:50:14]Read from MH i2c: 01 [15:50:14]MH_I2C_Read... [15:50:14]*** Stop cut motor [15:50:14]*** Cut end [15:50:14]Read from MH i2c: 01 07 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: 01 07 00 CC AD 00 00 00 00 00 FF 0F 8E [15:50:14]process_action close_receipt done [15:50:14]requested_data is exist [15:50:14]produce_requested_data [15:50:14]requested_item fm.sn is exist - process it [15:50:14]wFMCommunicate request_size=4 [15:50:14]MH_SAM_APDU [15:50:14]CAPDU: 80 11 00 00 [15:50:14]Write to MH i2c: E2 08 00 CD AD 80 11 00 00 00 00 00 00 F4 [15:50:14]Write i2c OK [15:50:14]MH_I2C_Read... [15:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:14]Read from MH i2c: E2 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 17 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 17 00 CD AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [15:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:50:14]wFMCommunicate OK [15:50:14]requested_item fd.num is exist - process it [15:50:14]SAM_PROTO_GetFieldsCounters [15:50:14]wFMCommunicate request_size=4 [15:50:14]MH_SAM_APDU [15:50:14]CAPDU: 80 13 00 00 [15:50:14]Write to MH i2c: E2 08 00 CE AD 80 13 00 00 00 00 00 00 F7 [15:50:14]Write i2c OK [15:50:14]MH_I2C_Read... [15:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:14]Read from MH i2c: E2 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 62 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 62 00 CE AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [15:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:14]wFMCommunicate OK [15:50:14]SAM_PROTO_GetFieldsCounters done [15:50:14]requested_item shift.num is exist - process it [15:50:14]requested_item shift.opened is exist - process it [15:50:14]req_shift_opened [15:50:14]FM_GetShiftState [15:50:14]SAM_PROTO_GetShiftState [15:50:14]wFMCommunicate request_size=4 [15:50:14]MH_SAM_APDU [15:50:14]CAPDU: 80 13 01 00 [15:50:14]Write to MH i2c: E2 08 00 CF AD 80 13 01 00 00 00 00 00 F9 [15:50:14]Write i2c OK [15:50:14]MH_I2C_Read... [15:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:14]Read from MH i2c: E2 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 CF AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BC [15:50:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:50:14]wFMCommunicate OK [15:50:14]SAM_PROTO_GetShiftState done [15:50:14]FM_GetShiftState done [15:50:14]req_shift_opened done [15:50:14]requested_item shift.open_date is exist - process it [15:50:14]req_shift_open_date [15:50:14]req_shift_open_date done [15:50:14]produce_requested_data done [15:50:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191483,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:50:14]process_action_free close_receipt [15:50:14]json_value_free [15:50:14]json_value_free done [15:50:14]process_json_proto returns [15:50:14]Send response to host [15:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191483,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:50:14]free response buf [15:50:14]execute_script done [15:50:14]execute_script returns [15:50:14]free content buf [15:50:14]Sock 9.Close socket [15:50:14]Sock 9.Thread stoped [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:44]accept exits with 8 [15:52:44]New connection [15:52:44]New thread 3066961252 created [15:52:44]Thread 3066817892 joined [15:52:44]Waiting for new connection... [15:52:44] Sock 8.Parse request [15:52:44]Sock 8.Check first char [15:52:44]Sock 8.First char is OK [15:52:44]request: POST /json_proto HTTP/1.0 [15:52:44]Method: POST [15:52:44]URL: /json_proto [15:52:44]Method is POST - this is cgi request [15:52:44]url: /json_proto [15:52:44]query_string will be loaded in cgi processing [15:52:44]execute_cgi json_proto POST (null) [15:52:44]execute_cgi path=json_proto method=POST [15:52:44]POST find Content-Length [15:52:44]Host: 172.17.63.131:8080 [15:52:44]Content-Length: 681 [15:52:44]Content-Type: application/json [15:52:44] [15:52:44]POST finish read [15:52:44]Found Content-Length = 681 [15:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:44]execute_script... [15:52: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)30779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:44]POST & json_proto [15:52:44]process_json_proto [15:52:44]json parsed OK: [15:52:44]protocol is kg_v1.0 [15:52:44]action value=close_receipt [15:52:44]process_action close_receipt [15:52:44]cmd_close_receipt [15:52:44]MH_GetDate [15:52:44]Write to MH i2c: F0 00 00 D0 AD 6C [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 09 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 09 00 D0 AD 00 D5 BE 1B 67 22 05 6E 64 83 [15:52:44]GetLastDocTimeStamp 1729871420 [15:52:44]current date 1729871573 [15:52:44]FM_GetShiftState [15:52:44]SAM_PROTO_GetShiftState [15:52:44]wFMCommunicate request_size=4 [15:52:44]MH_SAM_APDU [15:52:44]CAPDU: 80 13 01 00 [15:52:44]Write to MH i2c: E2 08 00 D1 AD 80 13 01 00 00 00 00 00 FB [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:44]Read from MH i2c: E2 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 D1 AD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BE [15:52:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:52:44]wFMCommunicate OK [15:52:44]SAM_PROTO_GetShiftState done [15:52:44]FM_GetShiftState done [15:52:44]opened in 1729816399 [15:52:44]opened+sec_in_day 1729902799 [15:52:44]quantity*price = 100015 [15:52:44]sum+1 = 100017 [15:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 223 25.10.2024 15:52 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191484 ФПД: 258850973724555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155254&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191484&fm=258850973724555&tin=02508201610067®Number=0000000000091776&sum=100000 [15:52:45]StoreToDocumentArchive [15:52:45]shift 540 fd 191484 [15:52:45]save to /storage/0540/doc_00191484 [15:52:45]save last doc name /storage/0540/doc_00191484 to /storage/kkm_last_doc_name [15:52:45]save OK [15:52:45]Clear old archive folders... [15:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:45]tlvbuf is 01789B20 [15:52:45]SAM_PROTO_ClearQueue [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 09 00 00 [15:52:45]Write to MH i2c: E2 08 00 DE AD 80 09 00 00 00 00 00 00 FD [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 DE AD 00 90 00 FF [15:52:45]RAPDU: 90 00 [15:52:45]wFMCommunicate OK [15:52:45]SAM_PROTO_ClearQueue done [15:52:45]KKMCreateOFDPacket [15:52:45]OFDProtocolAddRootSTLVToBuf [15:52:45]FM_MakeSignedData [15:52:45]FM_MakeSignedData [15:52:45]SAM_PROTO_SignData [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 0D 01 02 [15:52:45]Write to MH i2c: E2 08 00 DF AD 80 0D 01 02 00 00 00 00 05 [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 DF AD 00 90 00 00 [15:52:45]RAPDU: 90 00 [15:52:45]wFMCommunicate OK [15:52:45]wFMCommunicate request_size=255 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D6 BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EB 02 00 35 04 06 00 EB [15:52:45]Write to MH i2c: E2 02 01 E0 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D6 BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EB 02 00 35 04 06 00 EB 00 00 7A [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 E0 AD 00 90 00 01 [15:52:45]RAPDU: 90 00 [15:52:45]wFMCommunicate OK [15:52:45]wFMCommunicate request_size=10 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 0D 02 02 05 6C 70 56 AF 8B [15:52:45]Write to MH i2c: E2 0D 00 E1 AD 80 0D 02 02 05 00 6C 70 56 AF 8B 00 00 7E [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 03 00 E1 AD 00 90 00 02 [15:52:45]RAPDU: 90 00 [15:52:45]wFMCommunicate OK [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 0D 03 02 [15:52:45]Write to MH i2c: E2 08 00 E2 AD 80 0D 03 02 00 00 00 00 0A [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 0B 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 0B 00 E2 AD 00 BB D1 33 A4 B0 5F 05 27 90 00 A9 [15:52:45]RAPDU: BB D1 33 A4 B0 5F 05 27 90 00 [15:52:45]wFMCommunicate OK [15:52:45]SAM_PROTO_SignData done [15:52:45]FM_MakeSignedData done [15:52:45]CreateOFDProtocolMessage [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 11 00 00 [15:52:45]Write to MH i2c: E2 08 00 E3 AD 80 11 00 00 00 00 00 00 0A [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 17 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 17 00 E3 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [15:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:52:45]wFMCommunicate OK [15:52:45]CreateOFDProtocolMessage done [15:52:45]OFDSenderStorePacket 191484 [15:52:45]StoreOFDPacket docnum=191484 [15:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 09 07 01 8F 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D6 BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EB 02 00 35 04 06 00 EB 6C 70 56 AF 8B BB D1 33 A4 B0 5F 05 27 [15:52:45]CheckFolder [15:52:45]dirname=/storage/ofd_packets [15:52:45]CheckFolder done [15:52:45]ProducePacketName [15:52:45]name=ofd_packets/00191484 [15:52:45]NVStorageSaveData ofd_packets/00191484 [15:52:45]File name is /storage/ofd_packets/00191484 [15:52:45]Write 301 bytes [15:52:45]NVStorageSaveData done [15:52:45]OFDSenderStorePacket done [15:52:45]KKMCreateOFDPacket done [15:52:45]NVStorageSaveData kkm_last_timestamp [15:52:45]File name is /storage/kkm_last_timestamp [15:52:45]Write 4 bytes [15:52:45]NVStorageSaveData done [15:52:45]ExternCall_PrintAddStr [15:52:45]wPrintStart [15:52:45]Write to MH i2c: 01 00 00 E4 AD 91 [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: 01 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: 01 07 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: 01 07 00 E4 AD 00 00 00 00 00 FF 0F A6 [15:52:45]RasterBufferAndPrint [15:52:45]line Счет N : (1)30779 [15:52:45]line ИНН: 02508201610067 [15:52:45]line Контрольно-Кассовый Чек [15:52:45]line ПРОДАЖА [15:52:45]line ТРК (МРК, ГНК) : 21 [15:52:45]line Товар: 2710124130 [15:52:45]line Аи-92-К-5 [15:52:45]line 14.950 * 66.90 [15:52:45]line = 1000.16 [15:52:45]line НДС 12% НСП 1% [15:52:45]line > о реализуемом товаре [15:52:45]line ОКРУГЛЕНИЕ: -0.16 [15:52:45]line ИТОГО: 1000.00 [15:52:45]line Внесено: 1000.00 [15:52:45]line СДАЧА: 0.00 [15:52:45]line НСП 1% : 8.85 [15:52:45]line НДС 12% : 106.21 [15:52:45]line Наличными: 1000.00 [15:52:45]line Безнал.: 0.00 [15:52:45]line Место: АЗС № 170 "Партнер Нефть" [15:52:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:52:45]line СНО: Общий режим [15:52:45]line Чек 223 25.10.2024 15:52 [15:52:45]line Смена: 540 ФФД: 1.0 [15:52:45]line ЗНМ: 0300000110 [15:52:45]line РНМ: 0000000000091776 [15:52:45]line Версия ККМ: 001 [15:52:45]line ФМ: 0000000000871754 [15:52:45]line ФД: 191484 [15:52:45]line ФПД: 258850973724555 [15:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155254&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191484&fm=258850973724555&tin=02508201610067®Number=0000000000091776&sum=100000 [15:52:46]OFD Sender: Processing packet 191484 [packets to send 75, broken 74] [15:52:46]ProducePacketName [15:52:46]name=ofd_packets/00191484 [15:52:46]OFD Sender: To server: pG, [15:52:46]CommunicateWithHost lk.salyk.kg:30040 [15:52:46]ConnectInit lk.salyk.kg [15:52:46]written 0, free lines is 4095 [15:52:46]Connected sock=10 [15:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 09 07 01 8F 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D6 BE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EB 02 00 35 04 06 00 EB 6C 70 56 AF 8B BB D1 33 A4 B0 5F 05 27 [15:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 BA 47 00 F2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EB 02 00 F4 03 04 00 A4 63 1B 67 B6 04 01 00 00 10 BE B6 F4 05 77 21 29 [15:52:46]CommunicateWithHost err = 0 [15:52:46]CheckOFDResponse [15:52:46]1017 (14) - 77093643461234 [15:52:46]1041 (16) - 0000000000871754 [15:52:46]1040 (4) - 191484 [15:52:46]1012 (4) - 25.10.2024 09:23 [15:52:46]1206 (1) - 0 [15:52:46]OFD Sender: Remove packet 191484 [15:52:46]ProducePacketName [15:52:46]name=ofd_packets/00191484 [15:52:46]NVStorageDeleteData [15:52:46]Write to MH i2c: 01 00 00 0F AE BD [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 07 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 07 00 0F AE 00 00 00 00 00 BB 0C 8B [15:52:46]RasterBufferAndPrint [15:52:46]line [15:52:46]line [15:52:46]line [15:52:46]line [15:52:46]line [15:52:46]written 0, free lines is 3266 [15:52:46]MH_Cut [15:52:46]Write to MH i2c: D1 01 00 16 AE 01 96 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: D1 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: D1 01 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: D1 01 00 16 AE 00 95 [15:52:46]Write to MH i2c: 01 00 00 17 AE C5 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:47]OFD Sender: No OFD packet to send [15:52:47]*** Cut start [15:52:47]*** Partial cut [15:52:47]*** CUTSNS_PIN = 1 [15:52:47]*** CUTSNS_PIN = 0 [15:52:47]*** Brake cut motor [15:52:48]Read from MH i2c: 01 [15:52:48]MH_I2C_Read... [15:52:48]*** Stop cut motor [15:52:48]*** Cut end [15:52:48]Read from MH i2c: 01 07 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 17 AE 00 00 00 00 00 FF 0F DA [15:52:48]process_action close_receipt done [15:52:48]requested_data is exist [15:52:48]produce_requested_data [15:52:48]requested_item fm.sn is exist - process it [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 11 00 00 [15:52:48]Write to MH i2c: E2 08 00 18 AE 80 11 00 00 00 00 00 00 40 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 17 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 17 00 18 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [15:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:52:48]wFMCommunicate OK [15:52:48]requested_item fd.num is exist - process it [15:52:48]SAM_PROTO_GetFieldsCounters [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 13 00 00 [15:52:48]Write to MH i2c: E2 08 00 19 AE 80 13 00 00 00 00 00 00 43 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 62 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 62 00 19 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:48]wFMCommunicate OK [15:52:48]SAM_PROTO_GetFieldsCounters done [15:52:48]requested_item shift.num is exist - process it [15:52:48]requested_item shift.opened is exist - process it [15:52:48]req_shift_opened [15:52:48]FM_GetShiftState [15:52:48]SAM_PROTO_GetShiftState [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 13 01 00 [15:52:48]Write to MH i2c: E2 08 00 1A AE 80 13 01 00 00 00 00 00 45 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 1A AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 08 [15:52:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:52:48]wFMCommunicate OK [15:52:48]SAM_PROTO_GetShiftState done [15:52:48]FM_GetShiftState done [15:52:48]req_shift_opened done [15:52:48]requested_item shift.open_date is exist - process it [15:52:48]req_shift_open_date [15:52:48]req_shift_open_date done [15:52:48]produce_requested_data done [15:52:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191484,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:52:48]process_action_free close_receipt [15:52:48]json_value_free [15:52:48]json_value_free done [15:52:48]process_json_proto returns [15:52:48]Send response to host [15:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191484,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:52:48]free response buf [15:52:48]execute_script done [15:52:48]execute_script returns [15:52:48]free content buf [15:52:48]Sock 8.Close socket [15:52:48]Sock 8.Thread stoped [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:24]accept exits with 9 [15:54:24]New connection [15:54:24]New thread 3066817892 created [15:54:24]Thread 3066961252 joined [15:54:24]Waiting for new connection... [15:54:24] Sock 9.Parse request [15:54:24]Sock 9.Check first char [15:54:24]Sock 9.First char is OK [15:54:24]request: POST /json_proto HTTP/1.0 [15:54:24]Method: POST [15:54:24]URL: /json_proto [15:54:24]Method is POST - this is cgi request [15:54:24]url: /json_proto [15:54:24]query_string will be loaded in cgi processing [15:54:24]execute_cgi json_proto POST (null) [15:54:24]execute_cgi path=json_proto method=POST [15:54:24]POST find Content-Length [15:54:24]Host: 172.17.63.131:8080 [15:54:24]Content-Length: 676 [15:54:24]Content-Type: application/json [15:54:24] [15:54:24]POST finish read [15:54:24]Found Content-Length = 676 [15:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:24]execute_script... [15:54: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)30780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:24]POST & json_proto [15:54:24]process_json_proto [15:54:24]json parsed OK: [15:54:24]protocol is kg_v1.0 [15:54:24]action value=close_receipt [15:54:24]process_action close_receipt [15:54:24]cmd_close_receipt [15:54:24]MH_GetDate [15:54:24]Write to MH i2c: F0 00 00 1B AE B8 [15:54:24]Write i2c OK [15:54:24]MH_I2C_Read... [15:54:24]Read from MH i2c: F0 [15:54:24]MH_I2C_Read... [15:54:24]Read from MH i2c: F0 09 00 [15:54:24]MH_I2C_Read... [15:54:24]Read from MH i2c: F0 09 00 1B AE 00 3A BF 1B 67 22 05 6E 64 35 [15:54:24]GetLastDocTimeStamp 1729871574 [15:54:24]current date 1729871674 [15:54:24]FM_GetShiftState [15:54:24]SAM_PROTO_GetShiftState [15:54:24]wFMCommunicate request_size=4 [15:54:24]MH_SAM_APDU [15:54:24]CAPDU: 80 13 01 00 [15:54:24]Write to MH i2c: E2 08 00 1C AE 80 13 01 00 00 00 00 00 47 [15:54:24]Write i2c OK [15:54:24]MH_I2C_Read... [15:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:24]Read from MH i2c: E2 [15:54:24]MH_I2C_Read... [15:54:24]Read from MH i2c: E2 0E 00 [15:54:24]MH_I2C_Read... [15:54:24]Read from MH i2c: E2 0E 00 1C AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0A [15:54:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:54:24]wFMCommunicate OK [15:54:24]SAM_PROTO_GetShiftState done [15:54:24]FM_GetShiftState done [15:54:24]opened in 1729816399 [15:54:24]opened+sec_in_day 1729902799 [15:54:24]quantity*price = 50041 [15:54:24]sum+1 = 50042 [15:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 224 25.10.2024 15:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191485 ФПД: 87034805836820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191485&fm=87034805836820&tin=02508201610067®Number=0000000000091776&sum=50000 [15:54:25]StoreToDocumentArchive [15:54:25]shift 540 fd 191485 [15:54:25]save to /storage/0540/doc_00191485 [15:54:25]save last doc name /storage/0540/doc_00191485 to /storage/kkm_last_doc_name [15:54:25]save OK [15:54:25]Clear old archive folders... [15:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:25]tlvbuf is 01830E10 [15:54:25]SAM_PROTO_ClearQueue [15:54:25]wFMCommunicate request_size=4 [15:54:25]MH_SAM_APDU [15:54:25]CAPDU: 80 09 00 00 [15:54:25]Write to MH i2c: E2 08 00 29 AE 80 09 00 00 00 00 00 00 49 [15:54:25]Write i2c OK [15:54:25]MH_I2C_Read... [15:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:25]Read from MH i2c: E2 [15:54:25]MH_I2C_Read... [15:54:25]Read from MH i2c: E2 03 00 [15:54:25]MH_I2C_Read... [15:54:25]Read from MH i2c: E2 03 00 29 AE 00 90 00 4B [15:54:25]RAPDU: 90 00 [15:54:25]wFMCommunicate OK [15:54:25]SAM_PROTO_ClearQueue done [15:54:25]KKMCreateOFDPacket [15:54:25]OFDProtocolAddRootSTLVToBuf [15:54:25]FM_MakeSignedData [15:54:25]FM_MakeSignedData [15:54:25]SAM_PROTO_SignData [15:54:25]wFMCommunicate request_size=4 [15:54:25]MH_SAM_APDU [15:54:25]CAPDU: 80 0D 01 02 [15:54:25]Write to MH i2c: E2 08 00 2A AE 80 0D 01 02 00 00 00 00 51 [15:54:25]Write i2c OK [15:54:25]MH_I2C_Read... [15:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:25]Read from MH i2c: E2 [15:54:25]MH_I2C_Read... [15:54:25]Read from MH i2c: E2 03 00 [15:54:25]MH_I2C_Read... [15:54:25]Read from MH i2c: E2 03 00 2A AE 00 90 00 4C [15:54:25]RAPDU: 90 00 [15:54:25]wFMCommunicate OK [15:54:25]wFMCommunicate request_size=255 [15:54:25]MH_SAM_APDU [15:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EB 02 00 35 04 06 00 4F [15:54:25]Write to MH i2c: E2 02 01 2B AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EB 02 00 35 04 06 00 4F 00 00 97 [15:54:25]Write i2c OK [15:54:25]MH_I2C_Read... [15:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:26]Read from MH i2c: E2 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 03 00 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 03 00 2B AE 00 90 00 4D [15:54:26]RAPDU: 90 00 [15:54:26]wFMCommunicate OK [15:54:26]wFMCommunicate request_size=10 [15:54:26]MH_SAM_APDU [15:54:26]CAPDU: 80 0D 02 02 05 28 5E AF 5C 14 [15:54:26]Write to MH i2c: E2 0D 00 2C AE 80 0D 02 02 05 00 28 5E AF 5C 14 00 00 03 [15:54:26]Write i2c OK [15:54:26]MH_I2C_Read... [15:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:26]Read from MH i2c: E2 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 03 00 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 03 00 2C AE 00 90 00 4E [15:54:26]RAPDU: 90 00 [15:54:26]wFMCommunicate OK [15:54:26]wFMCommunicate request_size=4 [15:54:26]MH_SAM_APDU [15:54:26]CAPDU: 80 0D 03 02 [15:54:26]Write to MH i2c: E2 08 00 2D AE 80 0D 03 02 00 00 00 00 56 [15:54:26]Write i2c OK [15:54:26]MH_I2C_Read... [15:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:26]Read from MH i2c: E2 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 0B 00 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 0B 00 2D AE 00 6A 69 BA EC C8 0B DD B4 90 00 34 [15:54:26]RAPDU: 6A 69 BA EC C8 0B DD B4 90 00 [15:54:26]wFMCommunicate OK [15:54:26]SAM_PROTO_SignData done [15:54:26]FM_MakeSignedData done [15:54:26]CreateOFDProtocolMessage [15:54:26]wFMCommunicate request_size=4 [15:54:26]MH_SAM_APDU [15:54:26]CAPDU: 80 11 00 00 [15:54:26]Write to MH i2c: E2 08 00 2E AE 80 11 00 00 00 00 00 00 56 [15:54:26]Write i2c OK [15:54:26]MH_I2C_Read... [15:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:26]Read from MH i2c: E2 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 17 00 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: E2 17 00 2E AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [15:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:54:26]wFMCommunicate OK [15:54:26]CreateOFDProtocolMessage done [15:54:26]OFDSenderStorePacket 191485 [15:54:26]StoreOFDPacket docnum=191485 [15:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C C3 07 01 67 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EB 02 00 35 04 06 00 4F 28 5E AF 5C 14 6A 69 BA EC C8 0B DD B4 [15:54:26]CheckFolder [15:54:26]dirname=/storage/ofd_packets [15:54:26]CheckFolder done [15:54:26]ProducePacketName [15:54:26]name=ofd_packets/00191485 [15:54:26]NVStorageSaveData ofd_packets/00191485 [15:54:26]File name is /storage/ofd_packets/00191485 [15:54:26]Write 301 bytes [15:54:26]NVStorageSaveData done [15:54:26]OFDSenderStorePacket done [15:54:26]KKMCreateOFDPacket done [15:54:26]NVStorageSaveData kkm_last_timestamp [15:54:26]File name is /storage/kkm_last_timestamp [15:54:26]Write 4 bytes [15:54:26]NVStorageSaveData done [15:54:26]ExternCall_PrintAddStr [15:54:26]wPrintStart [15:54:26]Write to MH i2c: 01 00 00 2F AE DD [15:54:26]Write i2c OK [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: 01 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: 01 07 00 [15:54:26]MH_I2C_Read... [15:54:26]Read from MH i2c: 01 07 00 2F AE 00 00 00 00 00 FF 0F F2 [15:54:26]RasterBufferAndPrint [15:54:26]line Счет N : (1)30780 [15:54:26]line ИНН: 02508201610067 [15:54:26]line Контрольно-Кассовый Чек [15:54:26]line ПРОДАЖА [15:54:26]line ТРК (МРК, ГНК) : 21 [15:54:26]line Товар: 2710124130 [15:54:26]line Аи-92-К-5 [15:54:26]line 7.480 * 66.90 [15:54:26]line = 500.41 [15:54:26]line НДС 12% НСП 1% [15:54:26]line > о реализуемом товаре [15:54:26]line ОКРУГЛЕНИЕ: -0.41 [15:54:26]line ИТОГО: 500.00 [15:54:26]line Внесено: 500.00 [15:54:26]line СДАЧА: 0.00 [15:54:26]line НСП 1% : 4.43 [15:54:26]line НДС 12% : 53.14 [15:54:26]line Наличными: 500.00 [15:54:26]line Безнал.: 0.00 [15:54:26]line Место: АЗС № 170 "Партнер Нефть" [15:54:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:54:26]line СНО: Общий режим [15:54:26]line Чек 224 25.10.2024 15:54 [15:54:26]line Смена: 540 ФФД: 1.0 [15:54:26]line ЗНМ: 0300000110 [15:54:26]line РНМ: 0000000000091776 [15:54:26]line Версия ККМ: 001 [15:54:26]line ФМ: 0000000000871754 [15:54:26]line ФД: 191485 [15:54:26]line ФПД: 87034805836820 [15:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191485&fm=87034805836820&tin=02508201610067®Number=0000000000091776&sum=50000 [15:54:26]OFD Sender: Processing packet 191485 [packets to send 75, broken 74] [15:54:26]ProducePacketName [15:54:26]name=ofd_packets/00191485 [15:54:26]OFD Sender: To server: pG, [15:54:26]CommunicateWithHost lk.salyk.kg:30040 [15:54:26]ConnectInit lk.salyk.kg [15:54:26]written 0, free lines is 4095 [15:54:26]Connected sock=10 [15:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C C3 07 01 67 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EB 02 00 35 04 06 00 4F 28 5E AF 5C 14 6A 69 BA EC C8 0B DD B4 [15:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A 4F 47 00 A5 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EB 02 00 F4 03 04 00 08 64 1B 67 B6 04 01 00 00 16 F3 0E 5B 87 CF AB 60 [15:54:26]CommunicateWithHost err = 0 [15:54:26]CheckOFDResponse [15:54:26]1017 (14) - 77093643461234 [15:54:26]1041 (16) - 0000000000871754 [15:54:26]1040 (4) - 191485 [15:54:26]1012 (4) - 25.10.2024 09:25 [15:54:26]1206 (1) - 0 [15:54:26]OFD Sender: Remove packet 191485 [15:54:26]ProducePacketName [15:54:26]name=ofd_packets/00191485 [15:54:26]NVStorageDeleteData [15:54:27]Write to MH i2c: 01 00 00 5A AE 08 [15:54:27]Write i2c OK [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: 01 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: 01 07 00 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: 01 07 00 5A AE 00 00 00 00 00 AF 0C CA [15:54:27]RasterBufferAndPrint [15:54:27]line [15:54:27]line [15:54:27]line [15:54:27]line [15:54:27]line [15:54:27]written 0, free lines is 3255 [15:54:27]MH_Cut [15:54:27]Write to MH i2c: D1 01 00 61 AE 01 E1 [15:54:27]Write i2c OK [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: D1 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: D1 01 00 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: D1 01 00 61 AE 00 E0 [15:54:27]Write to MH i2c: 01 00 00 62 AE 10 [15:54:27]Write i2c OK [15:54:27]MH_I2C_Read... [15:54:27]OFD Sender: No OFD packet to send [15:54:27]*** Cut start [15:54:27]*** Partial cut [15:54:27]*** CUTSNS_PIN = 1 [15:54:27]*** CUTSNS_PIN = 0 [15:54:28]*** Brake cut motor [15:54:28]Read from MH i2c: 01 [15:54:28]MH_I2C_Read... [15:54:28]*** Stop cut motor [15:54:28]*** Cut end [15:54:28]Read from MH i2c: 01 07 00 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: 01 07 00 62 AE 00 00 00 00 00 FF 0F 25 [15:54:28]process_action close_receipt done [15:54:28]requested_data is exist [15:54:28]produce_requested_data [15:54:28]requested_item fm.sn is exist - process it [15:54:28]wFMCommunicate request_size=4 [15:54:28]MH_SAM_APDU [15:54:28]CAPDU: 80 11 00 00 [15:54:28]Write to MH i2c: E2 08 00 63 AE 80 11 00 00 00 00 00 00 8B [15:54:28]Write i2c OK [15:54:28]MH_I2C_Read... [15:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:28]Read from MH i2c: E2 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 17 00 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 17 00 63 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [15:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:54:28]wFMCommunicate OK [15:54:28]requested_item fd.num is exist - process it [15:54:28]SAM_PROTO_GetFieldsCounters [15:54:28]wFMCommunicate request_size=4 [15:54:28]MH_SAM_APDU [15:54:28]CAPDU: 80 13 00 00 [15:54:28]Write to MH i2c: E2 08 00 64 AE 80 13 00 00 00 00 00 00 8E [15:54:28]Write i2c OK [15:54:28]MH_I2C_Read... [15:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:28]Read from MH i2c: E2 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 62 00 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 62 00 64 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [15:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:28]wFMCommunicate OK [15:54:28]SAM_PROTO_GetFieldsCounters done [15:54:28]requested_item shift.num is exist - process it [15:54:28]requested_item shift.opened is exist - process it [15:54:28]req_shift_opened [15:54:28]FM_GetShiftState [15:54:28]SAM_PROTO_GetShiftState [15:54:28]wFMCommunicate request_size=4 [15:54:28]MH_SAM_APDU [15:54:28]CAPDU: 80 13 01 00 [15:54:28]Write to MH i2c: E2 08 00 65 AE 80 13 01 00 00 00 00 00 90 [15:54:28]Write i2c OK [15:54:28]MH_I2C_Read... [15:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:28]Read from MH i2c: E2 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 0E 00 [15:54:28]MH_I2C_Read... [15:54:28]Read from MH i2c: E2 0E 00 65 AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 53 [15:54:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:54:28]wFMCommunicate OK [15:54:28]SAM_PROTO_GetShiftState done [15:54:28]FM_GetShiftState done [15:54:28]req_shift_opened done [15:54:28]requested_item shift.open_date is exist - process it [15:54:28]req_shift_open_date [15:54:28]req_shift_open_date done [15:54:28]produce_requested_data done [15:54:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191485,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:54:28]process_action_free close_receipt [15:54:28]json_value_free [15:54:28]json_value_free done [15:54:28]process_json_proto returns [15:54:28]Send response to host [15:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191485,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:54:28]free response buf [15:54:28]execute_script done [15:54:28]execute_script returns [15:54:28]free content buf [15:54:28]Sock 9.Close socket [15:54:28]Sock 9.Thread stoped [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:08]accept exits with 8 [15:56:08]New connection [15:56:08]New thread 3066961252 created [15:56:08]Thread 3066817892 joined [15:56:08]Waiting for new connection... [15:56:08] Sock 8.Parse request [15:56:08]Sock 8.Check first char [15:56:08]Sock 8.First char is OK [15:56:08]request: POST /json_proto HTTP/1.0 [15:56:08]Method: POST [15:56:08]URL: /json_proto [15:56:08]Method is POST - this is cgi request [15:56:08]url: /json_proto [15:56:08]query_string will be loaded in cgi processing [15:56:08]execute_cgi json_proto POST (null) [15:56:08]execute_cgi path=json_proto method=POST [15:56:08]POST find Content-Length [15:56:08]Host: 172.17.63.131:8080 [15:56:08]Content-Length: 676 [15:56:08]Content-Type: application/json [15:56:08] [15:56:08]POST finish read [15:56:08]Found Content-Length = 676 [15:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:08]execute_script... [15:56: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)30781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:08]POST & json_proto [15:56:08]process_json_proto [15:56:08]json parsed OK: [15:56:08]protocol is kg_v1.0 [15:56:08]action value=close_receipt [15:56:08]process_action close_receipt [15:56:08]cmd_close_receipt [15:56:08]MH_GetDate [15:56:08]Write to MH i2c: F0 00 00 66 AE 03 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 09 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 09 00 66 AE 00 A2 BF 1B 67 22 05 6E 64 E8 [15:56:08]GetLastDocTimeStamp 1729871674 [15:56:08]current date 1729871778 [15:56:08]FM_GetShiftState [15:56:08]SAM_PROTO_GetShiftState [15:56:08]wFMCommunicate request_size=4 [15:56:08]MH_SAM_APDU [15:56:08]CAPDU: 80 13 01 00 [15:56:08]Write to MH i2c: E2 08 00 67 AE 80 13 01 00 00 00 00 00 92 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:08]Read from MH i2c: E2 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 0E 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 0E 00 67 AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 55 [15:56:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:56:08]wFMCommunicate OK [15:56:08]SAM_PROTO_GetShiftState done [15:56:08]FM_GetShiftState done [15:56:08]opened in 1729816399 [15:56:08]opened+sec_in_day 1729902799 [15:56:08]quantity*price = 40006 [15:56:08]sum+1 = 40007 [15:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 225 25.10.2024 15:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191486 ФПД: 94773343394741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191486&fm=94773343394741&tin=02508201610067®Number=0000000000091776&sum=40000 [15:56:09]StoreToDocumentArchive [15:56:09]shift 540 fd 191486 [15:56:09]save to /storage/0540/doc_00191486 [15:56:09]save last doc name /storage/0540/doc_00191486 to /storage/kkm_last_doc_name [15:56:09]save OK [15:56:09]Clear old archive folders... [15:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:09]tlvbuf is 01600B70 [15:56:09]SAM_PROTO_ClearQueue [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 09 00 00 [15:56:09]Write to MH i2c: E2 08 00 74 AE 80 09 00 00 00 00 00 00 94 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 74 AE 00 90 00 96 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]SAM_PROTO_ClearQueue done [15:56:09]KKMCreateOFDPacket [15:56:09]OFDProtocolAddRootSTLVToBuf [15:56:09]FM_MakeSignedData [15:56:09]FM_MakeSignedData [15:56:09]SAM_PROTO_SignData [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 01 02 [15:56:09]Write to MH i2c: E2 08 00 75 AE 80 0D 01 02 00 00 00 00 9C [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 75 AE 00 90 00 97 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]wFMCommunicate request_size=255 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A2 BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EB 02 00 35 04 06 00 56 [15:56:09]Write to MH i2c: E2 02 01 76 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A2 BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EB 02 00 35 04 06 00 56 00 00 22 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 76 AE 00 90 00 98 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]wFMCommunicate request_size=10 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 02 02 05 32 23 77 9B B5 [15:56:09]Write to MH i2c: E2 0D 00 77 AE 80 0D 02 02 05 00 32 23 77 9B B5 00 00 C5 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 77 AE 00 90 00 99 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 03 02 [15:56:09]Write to MH i2c: E2 08 00 78 AE 80 0D 03 02 00 00 00 00 A1 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0B 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0B 00 78 AE 00 9F BF 79 86 AE 23 2F 15 90 00 14 [15:56:09]RAPDU: 9F BF 79 86 AE 23 2F 15 90 00 [15:56:09]wFMCommunicate OK [15:56:09]SAM_PROTO_SignData done [15:56:09]FM_MakeSignedData done [15:56:09]CreateOFDProtocolMessage [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 11 00 00 [15:56:09]Write to MH i2c: E2 08 00 79 AE 80 11 00 00 00 00 00 00 A1 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 79 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [15:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:56:10]wFMCommunicate OK [15:56:10]CreateOFDProtocolMessage done [15:56:10]OFDSenderStorePacket 191486 [15:56:10]StoreOFDPacket docnum=191486 [15:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 06 07 01 2C F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A2 BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EB 02 00 35 04 06 00 56 32 23 77 9B B5 9F BF 79 86 AE 23 2F 15 [15:56:10]CheckFolder [15:56:10]dirname=/storage/ofd_packets [15:56:10]CheckFolder done [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00191486 [15:56:10]NVStorageSaveData ofd_packets/00191486 [15:56:10]File name is /storage/ofd_packets/00191486 [15:56:10]Write 301 bytes [15:56:10]NVStorageSaveData done [15:56:10]OFDSenderStorePacket done [15:56:10]KKMCreateOFDPacket done [15:56:10]NVStorageSaveData kkm_last_timestamp [15:56:10]File name is /storage/kkm_last_timestamp [15:56:10]Write 4 bytes [15:56:10]NVStorageSaveData done [15:56:10]OFD Sender: Processing packet 191486 [packets to send 75, broken 74] [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00191486 [15:56:10]OFD Sender: To server: pG, [15:56:10]CommunicateWithHost lk.salyk.kg:30040 [15:56:10]ConnectInit lk.salyk.kg [15:56:10]ExternCall_PrintAddStr [15:56:10]wPrintStart [15:56:10]Write to MH i2c: 01 00 00 7A AE 28 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 7A AE 00 00 00 00 00 FF 0F 3D [15:56:10]RasterBufferAndPrint [15:56:10]line Счет N : (1)30781 [15:56:10]line ИНН: 02508201610067 [15:56:10]line Контрольно-Кассовый Чек [15:56:10]line ПРОДАЖА [15:56:10]line ТРК (МРК, ГНК) : 21 [15:56:10]line Товар: 2710124130 [15:56:10]line Аи-92-К-5 [15:56:10]line 5.980 * 66.90 [15:56:10]line = 400.06 [15:56:10]line НДС 12% НСП 1% [15:56:10]line > о реализуемом товаре [15:56:10]line ОКРУГЛЕНИЕ: -0.06 [15:56:10]line ИТОГО: 400.00 [15:56:10]line Внесено: 400.00 [15:56:10]line СДАЧА: 0.00 [15:56:10]line НСП 1% : 3.54 [15:56:10]line НДС 12% : 42.48 [15:56:10]line Наличными: 400.00 [15:56:10]line Безнал.: 0.00 [15:56:10]line Место: АЗС № 170 "Партнер Нефть" [15:56:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:56:10]line СНО: Общий режим [15:56:10]line Чек 225 25.10.2024 15:56 [15:56:10]line Смена: 540 ФФД: 1.0 [15:56:10]line ЗНМ: 0300000110 [15:56:10]line РНМ: 0000000000091776 [15:56:10]line Версия ККМ: 001 [15:56:10]line ФМ: 0000000000871754 [15:56:10]line ФД: 191486 [15:56:10]line ФПД: 94773343394741 [15:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191486&fm=94773343394741&tin=02508201610067®Number=0000000000091776&sum=40000 [15:56:10]Connected sock=11 [15:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 06 07 01 2C F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A2 BF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EB 02 00 35 04 06 00 56 32 23 77 9B B5 9F BF 79 86 AE 23 2F 15 [15:56:10]written 0, free lines is 4095 [15:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 16 47 00 D1 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 31 37 35 34 10 04 04 00 FE EB 02 00 F4 03 04 00 70 64 1B 67 B6 04 01 00 00 D3 BD 2A 8C 63 1F 3E 1D [15:56:10]CommunicateWithHost err = 0 [15:56:10]CheckOFDResponse [15:56:10]1017 (14) - 77093643461234 [15:56:10]1041 (16) - 0000000000871754 [15:56:10]1040 (4) - 191486 [15:56:10]1012 (4) - 25.10.2024 09:27 [15:56:10]1206 (1) - 0 [15:56:10]OFD Sender: Remove packet 191486 [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00191486 [15:56:10]NVStorageDeleteData [15:56:10]Write to MH i2c: 01 00 00 A5 AE 53 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 A5 AE 00 00 00 00 00 C2 0C 28 [15:56:10]RasterBufferAndPrint [15:56:10]line [15:56:10]line [15:56:10]line [15:56:10]line [15:56:10]line [15:56:10]written 0, free lines is 3275 [15:56:10]MH_Cut [15:56:10]Write to MH i2c: D1 01 00 AC AE 01 2C [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: D1 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: D1 01 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: D1 01 00 AC AE 00 2B [15:56:10]Write to MH i2c: 01 00 00 AD AE 5B [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:11]OFD Sender: No OFD packet to send [15:56:11]*** Cut start [15:56:11]*** Partial cut [15:56:11]*** CUTSNS_PIN = 1 [15:56:11]*** CUTSNS_PIN = 0 [15:56:11]*** Brake cut motor [15:56:12]Read from MH i2c: 01 [15:56:12]MH_I2C_Read... [15:56:12]*** Stop cut motor [15:56:12]*** Cut end [15:56:12]Read from MH i2c: 01 07 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 AD AE 00 00 00 00 00 FF 0F 70 [15:56:12]process_action close_receipt done [15:56:12]requested_data is exist [15:56:12]produce_requested_data [15:56:12]requested_item fm.sn is exist - process it [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 11 00 00 [15:56:12]Write to MH i2c: E2 08 00 AE AE 80 11 00 00 00 00 00 00 D6 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 17 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 17 00 AE AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [15:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:56:12]wFMCommunicate OK [15:56:12]requested_item fd.num is exist - process it [15:56:12]SAM_PROTO_GetFieldsCounters [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 13 00 00 [15:56:12]Write to MH i2c: E2 08 00 AF AE 80 13 00 00 00 00 00 00 D9 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 62 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 62 00 AF AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:12]wFMCommunicate OK [15:56:12]SAM_PROTO_GetFieldsCounters done [15:56:12]requested_item shift.num is exist - process it [15:56:12]requested_item shift.opened is exist - process it [15:56:12]req_shift_opened [15:56:12]FM_GetShiftState [15:56:12]SAM_PROTO_GetShiftState [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 13 01 00 [15:56:12]Write to MH i2c: E2 08 00 B0 AE 80 13 01 00 00 00 00 00 DB [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 B0 AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9E [15:56:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:56:12]wFMCommunicate OK [15:56:12]SAM_PROTO_GetShiftState done [15:56:12]FM_GetShiftState done [15:56:12]req_shift_opened done [15:56:12]requested_item shift.open_date is exist - process it [15:56:12]req_shift_open_date [15:56:12]req_shift_open_date done [15:56:12]produce_requested_data done [15:56:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191486,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:56:12]process_action_free close_receipt [15:56:12]json_value_free [15:56:12]json_value_free done [15:56:12]process_json_proto returns [15:56:12]Send response to host [15:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191486,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:56:12]free response buf [15:56:12]execute_script done [15:56:12]execute_script returns [15:56:12]free content buf [15:56:12]Sock 8.Close socket [15:56:12]Sock 8.Thread stoped [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:47]accept exits with 9 [15:59:47]New connection [15:59:47]New thread 3066817892 created [15:59:47]Thread 3066961252 joined [15:59:47]Waiting for new connection... [15:59:47] Sock 9.Parse request [15:59:47]Sock 9.Check first char [15:59:47]Sock 9.First char is OK [15:59:47]request: POST /json_proto HTTP/1.0 [15:59:47]Method: POST [15:59:47]URL: /json_proto [15:59:47]Method is POST - this is cgi request [15:59:47]url: /json_proto [15:59:47]query_string will be loaded in cgi processing [15:59:47]execute_cgi json_proto POST (null) [15:59:47]execute_cgi path=json_proto method=POST [15:59:47]POST find Content-Length [15:59:47]Host: 172.17.63.131:8080 [15:59:47]Content-Length: 676 [15:59:47]Content-Type: application/json [15:59:47] [15:59:47]POST finish read [15:59:47]Found Content-Length = 676 [15:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:47]execute_script... [15:59: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)30782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:47]POST & json_proto [15:59:47]process_json_proto [15:59:47]json parsed OK: [15:59:47]protocol is kg_v1.0 [15:59:47]action value=close_receipt [15:59:47]process_action close_receipt [15:59:47]cmd_close_receipt [15:59:47]MH_GetDate [15:59:47]Write to MH i2c: F0 00 00 B1 AE 4E [15:59:47]Write i2c OK [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 09 00 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 09 00 B1 AE 00 7C C0 1B 67 22 05 6E 64 0E [15:59:47]GetLastDocTimeStamp 1729871778 [15:59:47]current date 1729871996 [15:59:47]FM_GetShiftState [15:59:47]SAM_PROTO_GetShiftState [15:59:47]wFMCommunicate request_size=4 [15:59:47]MH_SAM_APDU [15:59:47]CAPDU: 80 13 01 00 [15:59:47]Write to MH i2c: E2 08 00 B2 AE 80 13 01 00 00 00 00 00 DD [15:59:47]Write i2c OK [15:59:47]MH_I2C_Read... [15:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:47]Read from MH i2c: E2 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 0E 00 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 0E 00 B2 AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A0 [15:59:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:59:47]wFMCommunicate OK [15:59:47]SAM_PROTO_GetShiftState done [15:59:47]FM_GetShiftState done [15:59:47]opened in 1729816399 [15:59:47]opened+sec_in_day 1729902799 [15:59:47]quantity*price = 50041 [15:59:47]sum+1 = 50042 [15:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 226 25.10.2024 15:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191487 ФПД: 159817604408297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191487&fm=159817604408297&tin=02508201610067®Number=0000000000091776&sum=50000 [15:59:48]StoreToDocumentArchive [15:59:48]shift 540 fd 191487 [15:59:48]save to /storage/0540/doc_00191487 [15:59:48]save last doc name /storage/0540/doc_00191487 to /storage/kkm_last_doc_name [15:59:48]save OK [15:59:48]Clear old archive folders... [15:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:48]tlvbuf is 0160B090 [15:59:48]SAM_PROTO_ClearQueue [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 09 00 00 [15:59:48]Write to MH i2c: E2 08 00 BF AE 80 09 00 00 00 00 00 00 DF [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 BF AE 00 90 00 E1 [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]SAM_PROTO_ClearQueue done [15:59:48]KKMCreateOFDPacket [15:59:48]OFDProtocolAddRootSTLVToBuf [15:59:48]FM_MakeSignedData [15:59:48]FM_MakeSignedData [15:59:48]SAM_PROTO_SignData [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 01 02 [15:59:48]Write to MH i2c: E2 08 00 C0 AE 80 0D 01 02 00 00 00 00 E7 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 C0 AE 00 90 00 E2 [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=255 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 7C C0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EB 02 00 35 04 06 00 91 [15:59:48]Write to MH i2c: E2 02 01 C1 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 7C C0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EB 02 00 35 04 06 00 91 00 00 B6 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 C1 AE 00 90 00 E3 [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=10 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 02 02 05 5A 6F 8A 23 E9 [15:59:48]Write to MH i2c: E2 0D 00 C2 AE 80 0D 02 02 05 00 5A 6F 8A 23 E9 00 00 53 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 C2 AE 00 90 00 E4 [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 03 02 [15:59:48]Write to MH i2c: E2 08 00 C3 AE 80 0D 03 02 00 00 00 00 EC [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 0B 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 0B 00 C3 AE 00 F1 6F 52 20 2F F5 A0 91 90 00 14 [15:59:48]RAPDU: F1 6F 52 20 2F F5 A0 91 90 00 [15:59:48]wFMCommunicate OK [15:59:48]SAM_PROTO_SignData done [15:59:48]FM_MakeSignedData done [15:59:48]CreateOFDProtocolMessage [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 11 00 00 [15:59:48]Write to MH i2c: E2 08 00 C4 AE 80 11 00 00 00 00 00 00 EC [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 17 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 17 00 C4 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [15:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:59:48]wFMCommunicate OK [15:59:48]CreateOFDProtocolMessage done [15:59:48]OFDSenderStorePacket 191487 [15:59:48]StoreOFDPacket docnum=191487 [15:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B D2 07 01 35 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 7C C0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EB 02 00 35 04 06 00 91 5A 6F 8A 23 E9 F1 6F 52 20 2F F5 A0 91 [15:59:48]CheckFolder [15:59:48]dirname=/storage/ofd_packets [15:59:48]CheckFolder done [15:59:48]ProducePacketName [15:59:48]name=ofd_packets/00191487 [15:59:48]NVStorageSaveData ofd_packets/00191487 [15:59:48]File name is /storage/ofd_packets/00191487 [15:59:48]Write 301 bytes [15:59:48]NVStorageSaveData done [15:59:48]OFDSenderStorePacket done [15:59:48]KKMCreateOFDPacket done [15:59:48]NVStorageSaveData kkm_last_timestamp [15:59:48]File name is /storage/kkm_last_timestamp [15:59:48]Write 4 bytes [15:59:48]NVStorageSaveData done [15:59:48]ExternCall_PrintAddStr [15:59:48]wPrintStart [15:59:48]Write to MH i2c: 01 00 00 C5 AE 73 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 07 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: 01 07 00 C5 AE 00 00 00 00 00 FF 0F 88 [15:59:48]RasterBufferAndPrint [15:59:48]line Счет N : (1)30782 [15:59:48]line ИНН: 02508201610067 [15:59:48]line Контрольно-Кассовый Чек [15:59:48]line ПРОДАЖА [15:59:48]line ТРК (МРК, ГНК) : 12 [15:59:48]line Товар: 2710124130 [15:59:48]line Аи-92-К-5 [15:59:48]line 7.480 * 66.90 [15:59:48]line = 500.41 [15:59:48]line НДС 12% НСП 1% [15:59:48]line > о реализуемом товаре [15:59:48]line ОКРУГЛЕНИЕ: -0.41 [15:59:48]line ИТОГО: 500.00 [15:59:48]line Внесено: 500.00 [15:59:48]line СДАЧА: 0.00 [15:59:48]line НСП 1% : 4.43 [15:59:48]line НДС 12% : 53.14 [15:59:48]line Наличными: 500.00 [15:59:48]line Безнал.: 0.00 [15:59:48]line Место: АЗС № 170 "Партнер Нефть" [15:59:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:59:48]line СНО: Общий режим [15:59:48]line Чек 226 25.10.2024 15:59 [15:59:48]line Смена: 540 ФФД: 1.0 [15:59:48]line ЗНМ: 0300000110 [15:59:48]line РНМ: 0000000000091776 [15:59:48]line Версия ККМ: 001 [15:59:48]line ФМ: 0000000000871754 [15:59:48]line ФД: 191487 [15:59:48]line ФПД: 159817604408297 [15:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191487&fm=159817604408297&tin=02508201610067®Number=0000000000091776&sum=50000 [15:59:49]OFD Sender: Processing packet 191487 [packets to send 75, broken 74] [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00191487 [15:59:49]OFD Sender: To server: pG, [15:59:49]CommunicateWithHost lk.salyk.kg:30040 [15:59:49]ConnectInit lk.salyk.kg [15:59:49]written 0, free lines is 4095 [15:59:49]Connected sock=10 [15:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B D2 07 01 35 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 7C C0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EB 02 00 35 04 06 00 91 5A 6F 8A 23 E9 F1 6F 52 20 2F F5 A0 91 [15:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CD C5 47 00 05 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EB 02 00 F4 03 04 00 4B 65 1B 67 B6 04 01 00 00 2B BD 3D B6 FB 77 E7 DB [15:59:49]CommunicateWithHost err = 0 [15:59:49]CheckOFDResponse [15:59:49]1017 (14) - 77093643461234 [15:59:49]1041 (16) - 0000000000871754 [15:59:49]1040 (4) - 191487 [15:59:49]1012 (4) - 25.10.2024 09:30 [15:59:49]1206 (1) - 0 [15:59:49]OFD Sender: Remove packet 191487 [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00191487 [15:59:49]NVStorageDeleteData [15:59:49]Write to MH i2c: 01 00 00 F0 AE 9E [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 F0 AE 00 00 00 00 00 AF 0C 60 [15:59:49]RasterBufferAndPrint [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]line [15:59:49]written 0, free lines is 3255 [15:59:49]MH_Cut [15:59:49]Write to MH i2c: D1 01 00 F7 AE 01 77 [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 01 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: D1 01 00 F7 AE 00 76 [15:59:49]Write to MH i2c: 01 00 00 F8 AE A6 [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]OFD Sender: No OFD packet to send [15:59:50]*** Cut start [15:59:50]*** Partial cut [15:59:50]*** CUTSNS_PIN = 1 [15:59:50]*** CUTSNS_PIN = 0 [15:59:50]*** Brake cut motor [15:59:51]Read from MH i2c: 01 [15:59:51]MH_I2C_Read... [15:59:51]*** Stop cut motor [15:59:51]*** Cut end [15:59:51]Read from MH i2c: 01 07 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: 01 07 00 F8 AE 00 00 00 00 00 FF 0F BB [15:59:51]process_action close_receipt done [15:59:51]requested_data is exist [15:59:51]produce_requested_data [15:59:51]requested_item fm.sn is exist - process it [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 11 00 00 [15:59:51]Write to MH i2c: E2 08 00 F9 AE 80 11 00 00 00 00 00 00 21 [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 17 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 17 00 F9 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [15:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:59:51]wFMCommunicate OK [15:59:51]requested_item fd.num is exist - process it [15:59:51]SAM_PROTO_GetFieldsCounters [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 13 00 00 [15:59:51]Write to MH i2c: E2 08 00 FA AE 80 13 00 00 00 00 00 00 24 [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 FA AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EB 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetFieldsCounters done [15:59:51]requested_item shift.num is exist - process it [15:59:51]requested_item shift.opened is exist - process it [15:59:51]req_shift_opened [15:59:51]FM_GetShiftState [15:59:51]SAM_PROTO_GetShiftState [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 13 01 00 [15:59:51]Write to MH i2c: E2 08 00 FB AE 80 13 01 00 00 00 00 00 26 [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 FB AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E9 [15:59:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetShiftState done [15:59:51]FM_GetShiftState done [15:59:51]req_shift_opened done [15:59:51]requested_item shift.open_date is exist - process it [15:59:51]req_shift_open_date [15:59:51]req_shift_open_date done [15:59:51]produce_requested_data done [15:59:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191487,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [15:59:51]process_action_free close_receipt [15:59:51]json_value_free [15:59:51]json_value_free done [15:59:51]process_json_proto returns [15:59:51]Send response to host [15:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191487,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [15:59:51]free response buf [15:59:51]execute_script done [15:59:51]execute_script returns [15:59:51]free content buf [15:59:51]Sock 9.Close socket [15:59:51]Sock 9.Thread stoped [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:01]accept exits with 8 [16:02:01]New connection [16:02:01]New thread 3066961252 created [16:02:01]Thread 3066817892 joined [16:02:01]Waiting for new connection... [16:02:01] Sock 8.Parse request [16:02:01]Sock 8.Check first char [16:02:01]Sock 8.First char is OK [16:02:01]request: POST /json_proto HTTP/1.0 [16:02:01]Method: POST [16:02:01]URL: /json_proto [16:02:01]Method is POST - this is cgi request [16:02:01]url: /json_proto [16:02:01]query_string will be loaded in cgi processing [16:02:01]execute_cgi json_proto POST (null) [16:02:01]execute_cgi path=json_proto method=POST [16:02:01]POST find Content-Length [16:02:01]Host: 172.17.63.131:8080 [16:02:01]Content-Length: 983 [16:02:01]Content-Type: application/json [16:02:01] [16:02:01]POST finish read [16:02:01]Found Content-Length = 983 [16:02:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.120, "sum" : 1655.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.12 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1655.00, "payments": [ { "type": 0, "sum" : 1655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:01]execute_script... [16:02: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)30783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.120, "sum" : 1655.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.12 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1655.00, "payments": [ { "type": 0, "sum" : 1655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:01]POST & json_proto [16:02:01]process_json_proto [16:02:01]json parsed OK: [16:02:01]protocol is kg_v1.0 [16:02:01]action value=close_receipt [16:02:01]process_action close_receipt [16:02:01]cmd_close_receipt [16:02:01]MH_GetDate [16:02:01]Write to MH i2c: F0 00 00 FC AE 99 [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: F0 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: F0 09 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: F0 09 00 FC AE 00 03 C1 1B 67 22 05 6E 64 E1 [16:02:01]GetLastDocTimeStamp 1729871996 [16:02:01]current date 1729872131 [16:02:01]FM_GetShiftState [16:02:01]SAM_PROTO_GetShiftState [16:02:01]wFMCommunicate request_size=4 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 13 01 00 [16:02:01]Write to MH i2c: E2 08 00 FD AE 80 13 01 00 00 00 00 00 28 [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 0E 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 0E 00 FD AE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EB [16:02:01]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:02:01]wFMCommunicate OK [16:02:01]SAM_PROTO_GetShiftState done [16:02:01]FM_GetShiftState done [16:02:01]opened in 1729816399 [16:02:01]opened+sec_in_day 1729902799 [16:02:01]quantity*price = 165540 [16:02:01]sum+1 = 165542 [16:02:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1655.00 Внесено: 1700.00 СДАЧА: 45.00 НСП 1% : 14.65 НДС 12% : 175.80 Наличными: 1655.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 227 25.10.2024 16:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 25.12 сом ФМ: 0000000000871754 ФД: 191488 ФПД: 182885395276667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191488&fm=182885395276667&tin=02508201610067®Number=0000000000091776&sum=165500 [16:02:02]StoreToDocumentArchive [16:02:02]shift 540 fd 191488 [16:02:02]save to /storage/0540/doc_00191488 [16:02:02]save last doc name /storage/0540/doc_00191488 to /storage/kkm_last_doc_name [16:02:02]save OK [16:02:02]Clear old archive folders... [16:02:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:02]tlvbuf is 015B1060 [16:02:02]SAM_PROTO_ClearQueue [16:02:02]wFMCommunicate request_size=4 [16:02:02]MH_SAM_APDU [16:02:02]CAPDU: 80 09 00 00 [16:02:02]Write to MH i2c: E2 08 00 0A AF 80 09 00 00 00 00 00 00 2B [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:02]Read from MH i2c: E2 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 03 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 03 00 0A AF 00 90 00 2D [16:02:02]RAPDU: 90 00 [16:02:02]wFMCommunicate OK [16:02:02]SAM_PROTO_ClearQueue done [16:02:02]KKMCreateOFDPacket [16:02:02]OFDProtocolAddRootSTLVToBuf [16:02:02]FM_MakeSignedData [16:02:02]FM_MakeSignedData [16:02:02]SAM_PROTO_SignData [16:02:02]wFMCommunicate request_size=4 [16:02:02]MH_SAM_APDU [16:02:02]CAPDU: 80 0D 01 02 [16:02:02]Write to MH i2c: E2 08 00 0B AF 80 0D 01 02 00 00 00 00 33 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 0B AF 00 90 00 2E [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]wFMCommunicate request_size=255 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A5 86 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 86 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 44 00 00 00 00 07 04 06 00 7C 86 02 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 03 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EC 02 00 35 04 06 00 A6 [16:02:03]Write to MH i2c: E2 02 01 0C AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A5 86 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 86 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 44 00 00 00 00 07 04 06 00 7C 86 02 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 03 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EC 02 00 35 04 06 00 A6 00 00 59 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 0C AF 00 90 00 2F [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]wFMCommunicate request_size=10 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 02 02 05 55 53 05 23 7B [16:02:03]Write to MH i2c: E2 0D 00 0D AF 80 0D 02 02 05 00 55 53 05 23 7B 00 00 8B [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 03 00 0D AF 00 90 00 30 [16:02:03]RAPDU: 90 00 [16:02:03]wFMCommunicate OK [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 0D 03 02 [16:02:03]Write to MH i2c: E2 08 00 0E AF 80 0D 03 02 00 00 00 00 38 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 0B 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 0B 00 0E AF 00 45 57 AF B5 C9 0E 96 8C 90 00 32 [16:02:03]RAPDU: 45 57 AF B5 C9 0E 96 8C 90 00 [16:02:03]wFMCommunicate OK [16:02:03]SAM_PROTO_SignData done [16:02:03]FM_MakeSignedData done [16:02:03]CreateOFDProtocolMessage [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 11 00 00 [16:02:03]Write to MH i2c: E2 08 00 0F AF 80 11 00 00 00 00 00 00 38 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 17 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 17 00 0F AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [16:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:02:03]wFMCommunicate OK [16:02:03]CreateOFDProtocolMessage done [16:02:03]OFDSenderStorePacket 191488 [16:02:03]StoreOFDPacket docnum=191488 [16:02:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E BD 07 01 33 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A5 86 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 86 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 44 00 00 00 00 07 04 06 00 7C 86 02 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 03 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EC 02 00 35 04 06 00 A6 55 53 05 23 7B 45 57 AF B5 C9 0E 96 8C [16:02:03]CheckFolder [16:02:03]dirname=/storage/ofd_packets [16:02:03]CheckFolder done [16:02:03]ProducePacketName [16:02:03]name=ofd_packets/00191488 [16:02:03]NVStorageSaveData ofd_packets/00191488 [16:02:03]File name is /storage/ofd_packets/00191488 [16:02:03]Write 301 bytes [16:02:03]NVStorageSaveData done [16:02:03]OFDSenderStorePacket done [16:02:03]KKMCreateOFDPacket done [16:02:03]NVStorageSaveData kkm_last_timestamp [16:02:03]File name is /storage/kkm_last_timestamp [16:02:03]Write 4 bytes [16:02:03]NVStorageSaveData done [16:02:03]ExternCall_PrintAddStr [16:02:03]wPrintStart [16:02:03]Write to MH i2c: 01 00 00 10 AF BF [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: 01 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: 01 07 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: 01 07 00 10 AF 00 00 00 00 00 FF 0F D4 [16:02:03]RasterBufferAndPrint [16:02:03]line Счет N : (1)30783 [16:02:03]line ИНН: 02508201610067 [16:02:03]line Контрольно-Кассовый Чек [16:02:03]line ПРОДАЖА [16:02:03]line ТРК (МРК, ГНК) : 12 [16:02:03]line Товар: 2710124130 [16:02:03]line Аи-92-К-5 [16:02:03]line 25.120 * 65.90 [16:02:03]line = 1655.41 [16:02:03]line НДС 12% НСП 1% [16:02:03]line > о реализуемом товаре [16:02:03]line ОКРУГЛЕНИЕ: -0.41 [16:02:03]line ИТОГО: 1655.00 [16:02:03]line Внесено: 1700.00 [16:02:03]line СДАЧА: 45.00 [16:02:03]line НСП 1% : 14.65 [16:02:03]line НДС 12% : 175.80 [16:02:03]line Наличными: 1655.00 [16:02:03]line Безнал.: 0.00 [16:02:03]line Место: АЗС № 170 "Партнер Нефть" [16:02:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:02:03]line СНО: Общий режим [16:02:03]line Чек 227 25.10.2024 16:02 [16:02:03]line Смена: 540 ФФД: 1.0 [16:02:03]line ЗНМ: 0300000110 [16:02:03]line РНМ: 0000000000091776 [16:02:03]line Версия ККМ: 001 [16:02:03]line [16:02:03]line Дисконтная программа [16:02:03]line АИ-92 [16:02:03]line номер 170 [16:02:03]line сэкономлено 25.12 сом [16:02:03]line ФМ: 0000000000871754 [16:02:03]line ФД: 191488 [16:02:03]line ФПД: 182885395276667 [16:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191488&fm=182885395276667&tin=02508201610067®Number=0000000000091776&sum=165500 [16:02:03]OFD Sender: Processing packet 191488 [packets to send 75, broken 74] [16:02:03]ProducePacketName [16:02:03]name=ofd_packets/00191488 [16:02:03]OFD Sender: To server: pG, [16:02:03]CommunicateWithHost lk.salyk.kg:30040 [16:02:03]ConnectInit lk.salyk.kg [16:02:03]written 0, free lines is 4095 [16:02:03]Connected sock=11 [16:02:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E BD 07 01 33 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A5 86 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 86 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 44 00 00 00 00 07 04 06 00 7C 86 02 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 03 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EC 02 00 35 04 06 00 A6 55 53 05 23 7B 45 57 AF B5 C9 0E 96 8C [16:02:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C F3 47 00 D3 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EC 02 00 F4 03 04 00 D1 65 1B 67 B6 04 01 00 00 90 C5 6F B4 04 4E B8 D5 [16:02:04]CommunicateWithHost err = 0 [16:02:04]CheckOFDResponse [16:02:04]1017 (14) - 77093643461234 [16:02:04]1041 (16) - 0000000000871754 [16:02:04]1040 (4) - 191488 [16:02:04]1012 (4) - 25.10.2024 09:33 [16:02:04]1206 (1) - 0 [16:02:04]OFD Sender: Remove packet 191488 [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00191488 [16:02:04]NVStorageDeleteData [16:02:04]Write to MH i2c: 01 00 00 40 AF EF [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 40 AF 00 00 00 00 00 6D 0C 6F [16:02:04]RasterBufferAndPrint [16:02:04]line [16:02:04]line [16:02:04]line [16:02:04]line [16:02:04]line [16:02:04]written 0, free lines is 3187 [16:02:04]MH_Cut [16:02:04]Write to MH i2c: D1 01 00 47 AF 01 C8 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: D1 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: D1 01 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: D1 01 00 47 AF 00 C7 [16:02:04]Write to MH i2c: 01 00 00 48 AF F7 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]OFD Sender: No OFD packet to send [16:02:05]*** Cut start [16:02:05]*** Partial cut [16:02:05]*** CUTSNS_PIN = 1 [16:02:05]*** CUTSNS_PIN = 0 [16:02:05]*** Brake cut motor [16:02:05]Read from MH i2c: 01 [16:02:05]MH_I2C_Read... [16:02:05]*** Stop cut motor [16:02:05]Read from MH i2c: 01 07 00 [16:02:05]MH_I2C_Read... [16:02:05]*** Cut end [16:02:05]Read from MH i2c: 01 07 00 48 AF 00 00 00 00 00 FF 0F 0C [16:02:05]process_action close_receipt done [16:02:05]requested_data is exist [16:02:05]produce_requested_data [16:02:05]requested_item fm.sn is exist - process it [16:02:05]wFMCommunicate request_size=4 [16:02:05]MH_SAM_APDU [16:02:05]CAPDU: 80 11 00 00 [16:02:05]Write to MH i2c: E2 08 00 49 AF 80 11 00 00 00 00 00 00 72 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 [16:02:05]MH_I2C_Read... [16:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:05]Read from MH i2c: E2 17 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 17 00 49 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [16:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:02:05]wFMCommunicate OK [16:02:05]requested_item fd.num is exist - process it [16:02:05]SAM_PROTO_GetFieldsCounters [16:02:05]wFMCommunicate request_size=4 [16:02:05]MH_SAM_APDU [16:02:05]CAPDU: 80 13 00 00 [16:02:05]Write to MH i2c: E2 08 00 4A AF 80 13 00 00 00 00 00 00 75 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 62 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 62 00 4A AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_GetFieldsCounters done [16:02:06]requested_item shift.num is exist - process it [16:02:06]requested_item shift.opened is exist - process it [16:02:06]req_shift_opened [16:02:06]FM_GetShiftState [16:02:06]SAM_PROTO_GetShiftState [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 13 01 00 [16:02:06]Write to MH i2c: E2 08 00 4B AF 80 13 01 00 00 00 00 00 77 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 4B AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3A [16:02:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_GetShiftState done [16:02:06]FM_GetShiftState done [16:02:06]req_shift_opened done [16:02:06]requested_item shift.open_date is exist - process it [16:02:06]req_shift_open_date [16:02:06]req_shift_open_date done [16:02:06]produce_requested_data done [16:02:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191488,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:02:06]process_action_free close_receipt [16:02:06]json_value_free [16:02:06]json_value_free done [16:02:06]process_json_proto returns [16:02:06]Send response to host [16:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191488,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:02:06]free response buf [16:02:06]execute_script done [16:02:06]execute_script returns [16:02:06]free content buf [16:02:06]Sock 8.Close socket [16:02:06]Sock 8.Thread stoped [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]accept exits with 9 [16:04:14]New connection [16:04:14]New thread 3066817892 created [16:04:14]Thread 3066961252 joined [16:04:14]Waiting for new connection... [16:04:14] Sock 9.Parse request [16:04:14]Sock 9.Check first char [16:04:14]Sock 9.First char is OK [16:04:14]request: POST /json_proto HTTP/1.0 [16:04:14]Method: POST [16:04:14]URL: /json_proto [16:04:14]Method is POST - this is cgi request [16:04:14]url: /json_proto [16:04:14]query_string will be loaded in cgi processing [16:04:14]execute_cgi json_proto POST (null) [16:04:14]execute_cgi path=json_proto method=POST [16:04:14]POST find Content-Length [16:04:14]Host: 172.17.63.131:8080 [16:04:14]Content-Length: 676 [16:04:14]Content-Type: application/json [16:04:14] [16:04:14]POST finish read [16:04:14]Found Content-Length = 676 [16:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:14]execute_script... [16:04: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)30784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:14]POST & json_proto [16:04:14]process_json_proto [16:04:14]json parsed OK: [16:04:14]protocol is kg_v1.0 [16:04:14]action value=close_receipt [16:04:14]process_action close_receipt [16:04:14]cmd_close_receipt [16:04:14]MH_GetDate [16:04:14]Write to MH i2c: F0 00 00 4C AF EA [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: F0 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: F0 09 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: F0 09 00 4C AF 00 88 C1 1B 67 22 05 6E 64 B7 [16:04:14]GetLastDocTimeStamp 1729872131 [16:04:14]current date 1729872264 [16:04:14]FM_GetShiftState [16:04:14]SAM_PROTO_GetShiftState [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 13 01 00 [16:04:14]Write to MH i2c: E2 08 00 4D AF 80 13 01 00 00 00 00 00 79 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 4D AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3C [16:04:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_GetShiftState done [16:04:14]FM_GetShiftState done [16:04:14]opened in 1729816399 [16:04:14]opened+sec_in_day 1729902799 [16:04:14]quantity*price = 50041 [16:04:14]sum+1 = 50042 [16:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 228 25.10.2024 16:04 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191489 ФПД: 210514453820412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160424&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191489&fm=210514453820412&tin=02508201610067®Number=0000000000091776&sum=50000 [16:04:15]StoreToDocumentArchive [16:04:15]shift 540 fd 191489 [16:04:15]save to /storage/0540/doc_00191489 [16:04:15]save last doc name /storage/0540/doc_00191489 to /storage/kkm_last_doc_name [16:04:15]save OK [16:04:15]Clear old archive folders... [16:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:15]tlvbuf is 0183C0B0 [16:04:15]SAM_PROTO_ClearQueue [16:04:15]wFMCommunicate request_size=4 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 09 00 00 [16:04:15]Write to MH i2c: E2 08 00 5A AF 80 09 00 00 00 00 00 00 7B [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:15]Read from MH i2c: E2 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 03 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 03 00 5A AF 00 90 00 7D [16:04:15]RAPDU: 90 00 [16:04:15]wFMCommunicate OK [16:04:15]SAM_PROTO_ClearQueue done [16:04:15]KKMCreateOFDPacket [16:04:15]OFDProtocolAddRootSTLVToBuf [16:04:15]FM_MakeSignedData [16:04:15]FM_MakeSignedData [16:04:15]SAM_PROTO_SignData [16:04:15]wFMCommunicate request_size=4 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 0D 01 02 [16:04:15]Write to MH i2c: E2 08 00 5B AF 80 0D 01 02 00 00 00 00 83 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:15]Read from MH i2c: E2 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 03 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 03 00 5B AF 00 90 00 7E [16:04:15]RAPDU: 90 00 [16:04:15]wFMCommunicate OK [16:04:15]wFMCommunicate request_size=255 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 88 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EC 02 00 35 04 06 00 BF [16:04:15]Write to MH i2c: E2 02 01 5C AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 88 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EC 02 00 35 04 06 00 BF 00 00 92 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 03 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 03 00 5C AF 00 90 00 7F [16:04:16]RAPDU: 90 00 [16:04:16]wFMCommunicate OK [16:04:16]wFMCommunicate request_size=10 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 0D 02 02 05 76 37 3D 73 FC [16:04:16]Write to MH i2c: E2 0D 00 5D AF 80 0D 02 02 05 00 76 37 3D 73 FC 00 00 E9 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 03 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 03 00 5D AF 00 90 00 80 [16:04:16]RAPDU: 90 00 [16:04:16]wFMCommunicate OK [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 0D 03 02 [16:04:16]Write to MH i2c: E2 08 00 5E AF 80 0D 03 02 00 00 00 00 88 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0B 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0B 00 5E AF 00 85 42 BA 5D F8 58 34 6C 90 00 57 [16:04:16]RAPDU: 85 42 BA 5D F8 58 34 6C 90 00 [16:04:16]wFMCommunicate OK [16:04:16]SAM_PROTO_SignData done [16:04:16]FM_MakeSignedData done [16:04:16]CreateOFDProtocolMessage [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 11 00 00 [16:04:16]Write to MH i2c: E2 08 00 5F AF 80 11 00 00 00 00 00 00 88 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 17 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 17 00 5F AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [16:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:04:16]wFMCommunicate OK [16:04:16]CreateOFDProtocolMessage done [16:04:16]OFDSenderStorePacket 191489 [16:04:16]StoreOFDPacket docnum=191489 [16:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 79 07 01 38 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 88 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EC 02 00 35 04 06 00 BF 76 37 3D 73 FC 85 42 BA 5D F8 58 34 6C [16:04:16]CheckFolder [16:04:16]dirname=/storage/ofd_packets [16:04:16]CheckFolder done [16:04:16]ProducePacketName [16:04:16]name=ofd_packets/00191489 [16:04:16]NVStorageSaveData ofd_packets/00191489 [16:04:16]File name is /storage/ofd_packets/00191489 [16:04:16]Write 301 bytes [16:04:16]NVStorageSaveData done [16:04:16]OFDSenderStorePacket done [16:04:16]KKMCreateOFDPacket done [16:04:16]NVStorageSaveData kkm_last_timestamp [16:04:16]File name is /storage/kkm_last_timestamp [16:04:16]Write 4 bytes [16:04:16]NVStorageSaveData done [16:04:16]ExternCall_PrintAddStr [16:04:16]wPrintStart [16:04:16]Write to MH i2c: 01 00 00 60 AF 0F [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 07 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 07 00 60 AF 00 00 00 00 00 FF 0F 24 [16:04:16]RasterBufferAndPrint [16:04:16]line Счет N : (1)30784 [16:04:16]line ИНН: 02508201610067 [16:04:16]line Контрольно-Кассовый Чек [16:04:16]line ПРОДАЖА [16:04:16]line ТРК (МРК, ГНК) : 12 [16:04:16]line Товар: 2710124130 [16:04:16]line Аи-92-К-5 [16:04:16]line 7.480 * 66.90 [16:04:16]line = 500.41 [16:04:16]line НДС 12% НСП 1% [16:04:16]line > о реализуемом товаре [16:04:16]line ОКРУГЛЕНИЕ: -0.41 [16:04:16]line ИТОГО: 500.00 [16:04:16]line Внесено: 500.00 [16:04:16]line СДАЧА: 0.00 [16:04:16]line НСП 1% : 4.43 [16:04:16]line НДС 12% : 53.14 [16:04:16]line Наличными: 500.00 [16:04:16]line Безнал.: 0.00 [16:04:16]line Место: АЗС № 170 "Партнер Нефть" [16:04:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:04:16]line СНО: Общий режим [16:04:16]line Чек 228 25.10.2024 16:04 [16:04:16]line Смена: 540 ФФД: 1.0 [16:04:16]line ЗНМ: 0300000110 [16:04:16]line РНМ: 0000000000091776 [16:04:16]line Версия ККМ: 001 [16:04:16]line ФМ: 0000000000871754 [16:04:16]line ФД: 191489 [16:04:16]line ФПД: 210514453820412 [16:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160424&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191489&fm=210514453820412&tin=02508201610067®Number=0000000000091776&sum=50000 [16:04:16]OFD Sender: Processing packet 191489 [packets to send 75, broken 74] [16:04:16]ProducePacketName [16:04:16]name=ofd_packets/00191489 [16:04:16]OFD Sender: To server: pG, [16:04:16]CommunicateWithHost lk.salyk.kg:30040 [16:04:16]ConnectInit lk.salyk.kg [16:04:16]written 0, free lines is 4095 [16:04:16]Connected sock=11 [16:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 79 07 01 38 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 88 C1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EC 02 00 35 04 06 00 BF 76 37 3D 73 FC 85 42 BA 5D F8 58 34 6C [16:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 D2 47 00 BC FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EC 02 00 F4 03 04 00 56 66 1B 67 B6 04 01 00 00 BC B6 DB 6A C7 AC 8A E3 [16:04:16]CommunicateWithHost err = 0 [16:04:16]CheckOFDResponse [16:04:16]1017 (14) - 77093643461234 [16:04:16]1041 (16) - 0000000000871754 [16:04:16]1040 (4) - 191489 [16:04:16]1012 (4) - 25.10.2024 09:35 [16:04:16]1206 (1) - 0 [16:04:16]OFD Sender: Remove packet 191489 [16:04:16]ProducePacketName [16:04:16]name=ofd_packets/00191489 [16:04:16]NVStorageDeleteData [16:04:16]Write to MH i2c: 01 00 00 8B AF 3A [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 07 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: 01 07 00 8B AF 00 00 00 00 00 B9 0C 06 [16:04:16]RasterBufferAndPrint [16:04:16]line [16:04:16]line [16:04:16]line [16:04:16]line [16:04:16]line [16:04:16]written 0, free lines is 3262 [16:04:16]MH_Cut [16:04:16]Write to MH i2c: D1 01 00 92 AF 01 13 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: D1 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: D1 01 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: D1 01 00 92 AF 00 12 [16:04:16]Write to MH i2c: 01 00 00 93 AF 42 [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:17]OFD Sender: No OFD packet to send [16:04:17]*** Cut start [16:04:17]*** Partial cut [16:04:17]*** CUTSNS_PIN = 1 [16:04:17]*** CUTSNS_PIN = 0 [16:04:18]*** Brake cut motor [16:04:18]Read from MH i2c: 01 [16:04:18]MH_I2C_Read... [16:04:18]*** Stop cut motor [16:04:18]*** Cut end [16:04:18]Read from MH i2c: 01 07 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: 01 07 00 93 AF 00 00 00 00 00 FF 0F 57 [16:04:18]process_action close_receipt done [16:04:18]requested_data is exist [16:04:18]produce_requested_data [16:04:18]requested_item fm.sn is exist - process it [16:04:18]wFMCommunicate request_size=4 [16:04:18]MH_SAM_APDU [16:04:18]CAPDU: 80 11 00 00 [16:04:18]Write to MH i2c: E2 08 00 94 AF 80 11 00 00 00 00 00 00 BD [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:18]Read from MH i2c: E2 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 17 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 17 00 94 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [16:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:04:18]wFMCommunicate OK [16:04:18]requested_item fd.num is exist - process it [16:04:18]SAM_PROTO_GetFieldsCounters [16:04:18]wFMCommunicate request_size=4 [16:04:18]MH_SAM_APDU [16:04:18]CAPDU: 80 13 00 00 [16:04:18]Write to MH i2c: E2 08 00 95 AF 80 13 00 00 00 00 00 00 C0 [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:18]Read from MH i2c: E2 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 62 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 62 00 95 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:18]wFMCommunicate OK [16:04:18]SAM_PROTO_GetFieldsCounters done [16:04:18]requested_item shift.num is exist - process it [16:04:18]requested_item shift.opened is exist - process it [16:04:18]req_shift_opened [16:04:18]FM_GetShiftState [16:04:18]SAM_PROTO_GetShiftState [16:04:18]wFMCommunicate request_size=4 [16:04:18]MH_SAM_APDU [16:04:18]CAPDU: 80 13 01 00 [16:04:18]Write to MH i2c: E2 08 00 96 AF 80 13 01 00 00 00 00 00 C2 [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:18]Read from MH i2c: E2 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 0E 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: E2 0E 00 96 AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 85 [16:04:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:04:18]wFMCommunicate OK [16:04:18]SAM_PROTO_GetShiftState done [16:04:18]FM_GetShiftState done [16:04:18]req_shift_opened done [16:04:18]requested_item shift.open_date is exist - process it [16:04:18]req_shift_open_date [16:04:18]req_shift_open_date done [16:04:18]produce_requested_data done [16:04:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191489,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:04:18]process_action_free close_receipt [16:04:18]json_value_free [16:04:18]json_value_free done [16:04:18]process_json_proto returns [16:04:18]Send response to host [16:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191489,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:04:18]free response buf [16:04:18]execute_script done [16:04:18]execute_script returns [16:04:18]free content buf [16:04:18]Sock 9.Close socket [16:04:18]Sock 9.Thread stoped [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:54]accept exits with 8 [16:06:54]New connection [16:06:54]New thread 3066961252 created [16:06:54]Thread 3066817892 joined [16:06:54]Waiting for new connection... [16:06:54] Sock 8.Parse request [16:06:54]Sock 8.Check first char [16:06:54]Sock 8.First char is OK [16:06:54]request: POST /json_proto HTTP/1.0 [16:06:54]Method: POST [16:06:54]URL: /json_proto [16:06:54]Method is POST - this is cgi request [16:06:54]url: /json_proto [16:06:54]query_string will be loaded in cgi processing [16:06:54]execute_cgi json_proto POST (null) [16:06:54]execute_cgi path=json_proto method=POST [16:06:54]POST find Content-Length [16:06:54]Host: 172.17.63.131:8080 [16:06:54]Content-Length: 862 [16:06:54]Content-Type: application/json [16:06:54] [16:06:54]POST finish read [16:06:54]Found Content-Length = 862 [16:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:54]execute_script... [16: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)30785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:54]POST & json_proto [16:06:54]process_json_proto [16:06:54]json parsed OK: [16:06:54]protocol is kg_v1.0 [16:06:54]action value=close_receipt [16:06:54]process_action close_receipt [16:06:54]cmd_close_receipt [16:06:54]MH_GetDate [16:06:54]Write to MH i2c: F0 00 00 97 AF 35 [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: F0 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: F0 09 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: F0 09 00 97 AF 00 28 C2 1B 67 22 05 6E 64 A3 [16:06:54]GetLastDocTimeStamp 1729872264 [16:06:54]current date 1729872424 [16:06:54]FM_GetShiftState [16:06:54]SAM_PROTO_GetShiftState [16:06:54]wFMCommunicate request_size=4 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 13 01 00 [16:06:54]Write to MH i2c: E2 08 00 98 AF 80 13 01 00 00 00 00 00 C4 [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 0E 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 0E 00 98 AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 87 [16:06:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:06:54]wFMCommunicate OK [16:06:54]SAM_PROTO_GetShiftState done [16:06:54]FM_GetShiftState done [16:06:54]opened in 1729816399 [16:06:54]opened+sec_in_day 1729902799 [16:06:54]quantity*price = 35055 [16:06:54]sum+1 = 35057 [16:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 229 25.10.2024 16:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191490 ФПД: 179671979695276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191490&fm=179671979695276&tin=02508201610067®Number=0000000000091776&sum=35056 [16:06:55]StoreToDocumentArchive [16:06:55]shift 540 fd 191490 [16:06:55]save to /storage/0540/doc_00191490 [16:06:55]save last doc name /storage/0540/doc_00191490 to /storage/kkm_last_doc_name [16:06:55]save OK [16:06:55]Clear old archive folders... [16:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:55]tlvbuf is 0172E6F0 [16:06:55]SAM_PROTO_ClearQueue [16:06:55]wFMCommunicate request_size=4 [16:06:55]MH_SAM_APDU [16:06:55]CAPDU: 80 09 00 00 [16:06:55]Write to MH i2c: E2 08 00 A5 AF 80 09 00 00 00 00 00 00 C6 [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:55]Read from MH i2c: E2 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 A5 AF 00 90 00 C8 [16:06:55]RAPDU: 90 00 [16:06:55]wFMCommunicate OK [16:06:55]SAM_PROTO_ClearQueue done [16:06:55]KKMCreateOFDPacket [16:06:55]OFDProtocolAddRootSTLVToBuf [16:06:55]FM_MakeSignedData [16:06:55]FM_MakeSignedData [16:06:55]SAM_PROTO_SignData [16:06:55]wFMCommunicate request_size=4 [16:06:55]MH_SAM_APDU [16:06:55]CAPDU: 80 0D 01 02 [16:06:55]Write to MH i2c: E2 08 00 A6 AF 80 0D 01 02 00 00 00 00 CE [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:55]Read from MH i2c: E2 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 A6 AF 00 90 00 C9 [16:06:55]RAPDU: 90 00 [16:06:55]wFMCommunicate OK [16:06:55]wFMCommunicate request_size=255 [16:06:55]MH_SAM_APDU [16:06:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 28 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EC 02 00 35 04 06 00 A3 [16:06:55]Write to MH i2c: E2 02 01 A7 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 28 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EC 02 00 35 04 06 00 A3 00 00 DF [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:55]Read from MH i2c: E2 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: E2 03 00 A7 AF 00 90 00 CA [16:06:55]RAPDU: 90 00 [16:06:55]wFMCommunicate OK [16:06:55]wFMCommunicate request_size=10 [16:06:55]MH_SAM_APDU [16:06:55]CAPDU: 80 0D 02 02 05 69 24 86 9C AC [16:06:55]Write to MH i2c: E2 0D 00 A8 AF 80 0D 02 02 05 00 69 24 86 9C AC 00 00 36 [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:56]Read from MH i2c: E2 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 03 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 03 00 A8 AF 00 90 00 CB [16:06:56]RAPDU: 90 00 [16:06:56]wFMCommunicate OK [16:06:56]wFMCommunicate request_size=4 [16:06:56]MH_SAM_APDU [16:06:56]CAPDU: 80 0D 03 02 [16:06:56]Write to MH i2c: E2 08 00 A9 AF 80 0D 03 02 00 00 00 00 D3 [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:56]Read from MH i2c: E2 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 0B 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 0B 00 A9 AF 00 55 C7 6B BE E1 BC 14 BC 90 00 86 [16:06:56]RAPDU: 55 C7 6B BE E1 BC 14 BC 90 00 [16:06:56]wFMCommunicate OK [16:06:56]SAM_PROTO_SignData done [16:06:56]FM_MakeSignedData done [16:06:56]CreateOFDProtocolMessage [16:06:56]wFMCommunicate request_size=4 [16:06:56]MH_SAM_APDU [16:06:56]CAPDU: 80 11 00 00 [16:06:56]Write to MH i2c: E2 08 00 AA AF 80 11 00 00 00 00 00 00 D3 [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:56]Read from MH i2c: E2 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 17 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: E2 17 00 AA AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [16:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:06:56]wFMCommunicate OK [16:06:56]CreateOFDProtocolMessage done [16:06:56]OFDSenderStorePacket 191490 [16:06:56]StoreOFDPacket docnum=191490 [16:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 3B 07 01 48 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 28 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EC 02 00 35 04 06 00 A3 69 24 86 9C AC 55 C7 6B BE E1 BC 14 BC [16:06:56]CheckFolder [16:06:56]dirname=/storage/ofd_packets [16:06:56]CheckFolder done [16:06:56]ProducePacketName [16:06:56]name=ofd_packets/00191490 [16:06:56]NVStorageSaveData ofd_packets/00191490 [16:06:56]File name is /storage/ofd_packets/00191490 [16:06:56]Write 301 bytes [16:06:56]NVStorageSaveData done [16:06:56]OFDSenderStorePacket done [16:06:56]KKMCreateOFDPacket done [16:06:56]NVStorageSaveData kkm_last_timestamp [16:06:56]File name is /storage/kkm_last_timestamp [16:06:56]Write 4 bytes [16:06:56]NVStorageSaveData done [16:06:56]ExternCall_PrintAddStr [16:06:56]wPrintStart [16:06:56]Write to MH i2c: 01 00 00 AB AF 5A [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 07 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 07 00 AB AF 00 00 00 00 00 FF 0F 6F [16:06:56]RasterBufferAndPrint [16:06:56]line Счет N : (1)30785 [16:06:56]line ИНН: 02508201610067 [16:06:56]line Контрольно-Кассовый Чек [16:06:56]line ПРОДАЖА [16:06:56]line ТРК (МРК, ГНК) : 12 [16:06:56]line Товар: 2710124130 [16:06:56]line Аи-92-К-5 [16:06:56]line 5.240 * 66.90 [16:06:56]line = 350.56 [16:06:56]line НДС 12% НСП 1% [16:06:56]line > о реализуемом товаре [16:06:56]line ИТОГО: 350.56 [16:06:56]line НСП 1% : 3.10 [16:06:56]line НДС 12% : 37.23 [16:06:56]line Наличными: 0.00 [16:06:56]line Безнал.: 350.56 [16:06:56]line Место: АЗС № 170 "Партнер Нефть" [16:06:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:06:56]line СНО: Общий режим [16:06:56]line Чек 229 25.10.2024 16:07 [16:06:56]line Смена: 540 ФФД: 1.0 [16:06:56]line ЗНМ: 0300000110 [16:06:56]line РНМ: 0000000000091776 [16:06:56]line Версия ККМ: 001 [16:06:56]line Платежная система: Кыргызкоммерцбанк [16:06:56]line ФМ: 0000000000871754 [16:06:56]line ФД: 191490 [16:06:56]line ФПД: 179671979695276 [16:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191490&fm=179671979695276&tin=02508201610067®Number=0000000000091776&sum=35056 [16:06:56]OFD Sender: Processing packet 191490 [packets to send 75, broken 74] [16:06:56]ProducePacketName [16:06:56]name=ofd_packets/00191490 [16:06:56]OFD Sender: To server: pG, [16:06:56]CommunicateWithHost lk.salyk.kg:30040 [16:06:56]ConnectInit lk.salyk.kg [16:06:56]written 0, free lines is 4095 [16:06:56]Connected sock=10 [16:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 3B 07 01 48 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 28 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EC 02 00 35 04 06 00 A3 69 24 86 9C AC 55 C7 6B BE E1 BC 14 BC [16:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5A C1 47 00 BF 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EC 02 00 F4 03 04 00 F6 66 1B 67 B6 04 01 00 00 75 E3 0C 32 1A 0A F3 20 [16:06:56]CommunicateWithHost err = 0 [16:06:56]CheckOFDResponse [16:06:56]1017 (14) - 77093643461234 [16:06:56]1041 (16) - 0000000000871754 [16:06:56]1040 (4) - 191490 [16:06:56]1012 (4) - 25.10.2024 09:37 [16:06:56]1206 (1) - 0 [16:06:56]OFD Sender: Remove packet 191490 [16:06:56]ProducePacketName [16:06:56]name=ofd_packets/00191490 [16:06:56]NVStorageDeleteData [16:06:56]Write to MH i2c: 01 00 00 D5 AF 84 [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 07 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: 01 07 00 D5 AF 00 00 00 00 00 DC 0C 73 [16:06:56]RasterBufferAndPrint [16:06:56]line [16:06:56]line [16:06:56]line [16:06:56]line [16:06:56]line [16:06:56]written 0, free lines is 3298 [16:06:56]MH_Cut [16:06:56]Write to MH i2c: D1 01 00 DC AF 01 5D [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: D1 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: D1 01 00 [16:06:56]MH_I2C_Read... [16:06:56]Read from MH i2c: D1 01 00 DC AF 00 5C [16:06:56]Write to MH i2c: 01 00 00 DD AF 8C [16:06:56]Write i2c OK [16:06:56]MH_I2C_Read... [16:06:57]OFD Sender: No OFD packet to send [16:06:57]*** Cut start [16:06:57]*** Partial cut [16:06:57]*** CUTSNS_PIN = 1 [16:06:57]*** CUTSNS_PIN = 0 [16:06:58]*** Brake cut motor [16:06:58]Read from MH i2c: 01 [16:06:58]MH_I2C_Read... [16:06:58]*** Stop cut motor [16:06:58]*** Cut end [16:06:58]Read from MH i2c: 01 07 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: 01 07 00 DD AF 00 00 00 00 00 FF 0F A1 [16:06:58]process_action close_receipt done [16:06:58]requested_data is exist [16:06:58]produce_requested_data [16:06:58]requested_item fm.sn is exist - process it [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 11 00 00 [16:06:58]Write to MH i2c: E2 08 00 DE AF 80 11 00 00 00 00 00 00 07 [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 17 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 17 00 DE AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [16:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:06:58]wFMCommunicate OK [16:06:58]requested_item fd.num is exist - process it [16:06:58]SAM_PROTO_GetFieldsCounters [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 13 00 00 [16:06:58]Write to MH i2c: E2 08 00 DF AF 80 13 00 00 00 00 00 00 0A [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 62 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 62 00 DF AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:58]wFMCommunicate OK [16:06:58]SAM_PROTO_GetFieldsCounters done [16:06:58]requested_item shift.num is exist - process it [16:06:58]requested_item shift.opened is exist - process it [16:06:58]req_shift_opened [16:06:58]FM_GetShiftState [16:06:58]SAM_PROTO_GetShiftState [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 13 01 00 [16:06:58]Write to MH i2c: E2 08 00 E0 AF 80 13 01 00 00 00 00 00 0C [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 E0 AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CF [16:06:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:06:58]wFMCommunicate OK [16:06:58]SAM_PROTO_GetShiftState done [16:06:58]FM_GetShiftState done [16:06:58]req_shift_opened done [16:06:58]requested_item shift.open_date is exist - process it [16:06:58]req_shift_open_date [16:06:58]req_shift_open_date done [16:06:58]produce_requested_data done [16:06:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191490,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:06:58]process_action_free close_receipt [16:06:58]json_value_free [16:06:58]json_value_free done [16:06:58]process_json_proto returns [16:06:58]Send response to host [16:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191490,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:06:58]free response buf [16:06:58]execute_script done [16:06:58]execute_script returns [16:06:58]free content buf [16:06:58]Sock 8.Close socket [16:06:58]Sock 8.Thread stoped [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:53]accept exits with 9 [16:07:53]New connection [16:07:53]New thread 3066817892 created [16:07:53]Thread 3066961252 joined [16:07:53]Waiting for new connection... [16:07:53] Sock 9.Parse request [16:07:53]Sock 9.Check first char [16:07:53]Sock 9.First char is OK [16:07:53]request: POST /json_proto HTTP/1.0 [16:07:53]Method: POST [16:07:53]URL: /json_proto [16:07:53]Method is POST - this is cgi request [16:07:53]url: /json_proto [16:07:53]query_string will be loaded in cgi processing [16:07:53]execute_cgi json_proto POST (null) [16:07:53]execute_cgi path=json_proto method=POST [16:07:53]POST find Content-Length [16:07:53]Host: 172.17.63.131:8080 [16:07:53]Content-Length: 676 [16:07:53]Content-Type: application/json [16:07:53] [16:07:53]POST finish read [16:07:53]Found Content-Length = 676 [16:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:53]execute_script... [16:07: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)30786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:53]POST & json_proto [16:07:53]process_json_proto [16:07:53]json parsed OK: [16:07:53]protocol is kg_v1.0 [16:07:53]action value=close_receipt [16:07:53]process_action close_receipt [16:07:53]cmd_close_receipt [16:07:53]MH_GetDate [16:07:53]Write to MH i2c: F0 00 00 E1 AF 7F [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 09 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 09 00 E1 AF 00 62 C2 1B 67 22 05 6E 64 27 [16:07:53]GetLastDocTimeStamp 1729872424 [16:07:53]current date 1729872482 [16:07:53]FM_GetShiftState [16:07:53]SAM_PROTO_GetShiftState [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 13 01 00 [16:07:53]Write to MH i2c: E2 08 00 E2 AF 80 13 01 00 00 00 00 00 0E [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:53]Read from MH i2c: E2 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 E2 AF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D1 [16:07:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:07:53]wFMCommunicate OK [16:07:53]SAM_PROTO_GetShiftState done [16:07:53]FM_GetShiftState done [16:07:53]opened in 1729816399 [16:07:53]opened+sec_in_day 1729902799 [16:07:53]quantity*price = 50041 [16:07:53]sum+1 = 50042 [16:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 230 25.10.2024 16:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191491 ФПД: 10430660453837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191491&fm=10430660453837&tin=02508201610067®Number=0000000000091776&sum=50000 [16:07:54]StoreToDocumentArchive [16:07:54]shift 540 fd 191491 [16:07:54]save to /storage/0540/doc_00191491 [16:07:54]save last doc name /storage/0540/doc_00191491 to /storage/kkm_last_doc_name [16:07:54]save OK [16:07:54]Clear old archive folders... [16:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:54]tlvbuf is 01880D10 [16:07:54]SAM_PROTO_ClearQueue [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 09 00 00 [16:07:54]Write to MH i2c: E2 08 00 EF AF 80 09 00 00 00 00 00 00 10 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 EF AF 00 90 00 12 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]SAM_PROTO_ClearQueue done [16:07:54]KKMCreateOFDPacket [16:07:54]OFDProtocolAddRootSTLVToBuf [16:07:54]FM_MakeSignedData [16:07:54]FM_MakeSignedData [16:07:54]SAM_PROTO_SignData [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 01 02 [16:07:54]Write to MH i2c: E2 08 00 F0 AF 80 0D 01 02 00 00 00 00 18 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 F0 AF 00 90 00 13 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=255 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EC 02 00 35 04 06 00 09 [16:07:54]Write to MH i2c: E2 02 01 F1 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EC 02 00 35 04 06 00 09 00 00 50 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 F1 AF 00 90 00 14 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=10 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 02 02 05 7C 93 CF A5 CD [16:07:54]Write to MH i2c: E2 0D 00 F2 AF 80 0D 02 02 05 00 7C 93 CF A5 CD 00 00 75 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 F2 AF 00 90 00 15 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 03 02 [16:07:54]Write to MH i2c: E2 08 00 F3 AF 80 0D 03 02 00 00 00 00 1D [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 0B 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 0B 00 F3 AF 00 90 F3 88 11 70 2E 5B 84 90 00 B7 [16:07:54]RAPDU: 90 F3 88 11 70 2E 5B 84 90 00 [16:07:54]wFMCommunicate OK [16:07:54]SAM_PROTO_SignData done [16:07:54]FM_MakeSignedData done [16:07:54]CreateOFDProtocolMessage [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 11 00 00 [16:07:54]Write to MH i2c: E2 08 00 F4 AF 80 11 00 00 00 00 00 00 1D [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 17 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 17 00 F4 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [16:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:07:54]wFMCommunicate OK [16:07:54]CreateOFDProtocolMessage done [16:07:54]OFDSenderStorePacket 191491 [16:07:54]StoreOFDPacket docnum=191491 [16:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 F8 07 01 F7 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EC 02 00 35 04 06 00 09 7C 93 CF A5 CD 90 F3 88 11 70 2E 5B 84 [16:07:54]CheckFolder [16:07:54]dirname=/storage/ofd_packets [16:07:54]CheckFolder done [16:07:54]ProducePacketName [16:07:54]name=ofd_packets/00191491 [16:07:54]NVStorageSaveData ofd_packets/00191491 [16:07:54]File name is /storage/ofd_packets/00191491 [16:07:54]Write 301 bytes [16:07:54]NVStorageSaveData done [16:07:54]OFDSenderStorePacket done [16:07:54]KKMCreateOFDPacket done [16:07:54]NVStorageSaveData kkm_last_timestamp [16:07:54]File name is /storage/kkm_last_timestamp [16:07:54]Write 4 bytes [16:07:54]NVStorageSaveData done [16:07:54]ExternCall_PrintAddStr [16:07:54]wPrintStart [16:07:54]Write to MH i2c: 01 00 00 F5 AF A4 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 07 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 07 00 F5 AF 00 00 00 00 00 FF 0F B9 [16:07:54]RasterBufferAndPrint [16:07:54]line Счет N : (1)30786 [16:07:54]line ИНН: 02508201610067 [16:07:54]line Контрольно-Кассовый Чек [16:07:54]line ПРОДАЖА [16:07:54]line ТРК (МРК, ГНК) : 21 [16:07:54]line Товар: 2710124130 [16:07:54]line Аи-92-К-5 [16:07:54]line 7.480 * 66.90 [16:07:54]line = 500.41 [16:07:54]line НДС 12% НСП 1% [16:07:54]line > о реализуемом товаре [16:07:54]line ОКРУГЛЕНИЕ: -0.41 [16:07:54]line ИТОГО: 500.00 [16:07:54]line Внесено: 500.00 [16:07:54]line СДАЧА: 0.00 [16:07:54]line НСП 1% : 4.43 [16:07:54]line НДС 12% : 53.14 [16:07:54]line Наличными: 500.00 [16:07:54]line Безнал.: 0.00 [16:07:54]line Место: АЗС № 170 "Партнер Нефть" [16:07:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:07:54]line СНО: Общий режим [16:07:54]line Чек 230 25.10.2024 16:08 [16:07:54]line Смена: 540 ФФД: 1.0 [16:07:54]line ЗНМ: 0300000110 [16:07:54]line РНМ: 0000000000091776 [16:07:54]line Версия ККМ: 001 [16:07:54]line ФМ: 0000000000871754 [16:07:55]line ФД: 191491 [16:07:55]line ФПД: 10430660453837 [16:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191491&fm=10430660453837&tin=02508201610067®Number=0000000000091776&sum=50000 [16:07:55]OFD Sender: Processing packet 191491 [packets to send 75, broken 74] [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00191491 [16:07:55]OFD Sender: To server: pG, [16:07:55]CommunicateWithHost lk.salyk.kg:30040 [16:07:55]ConnectInit lk.salyk.kg [16:07:55]written 0, free lines is 4095 [16:07:55]Connected sock=10 [16:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 F8 07 01 F7 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EC 02 00 35 04 06 00 09 7C 93 CF A5 CD 90 F3 88 11 70 2E 5B 84 [16:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 D0 47 00 26 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EC 02 00 F4 03 04 00 30 67 1B 67 B6 04 01 00 00 27 6E 2A 14 E9 87 25 F6 [16:07:55]CommunicateWithHost err = 0 [16:07:55]CheckOFDResponse [16:07:55]1017 (14) - 77093643461234 [16:07:55]1041 (16) - 0000000000871754 [16:07:55]1040 (4) - 191491 [16:07:55]1012 (4) - 25.10.2024 09:38 [16:07:55]1206 (1) - 0 [16:07:55]OFD Sender: Remove packet 191491 [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00191491 [16:07:55]NVStorageDeleteData [16:07:55]Write to MH i2c: 01 00 00 20 B0 D0 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 20 B0 00 00 00 00 00 BB 0C 9E [16:07:55]RasterBufferAndPrint [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]written 0, free lines is 3266 [16:07:55]MH_Cut [16:07:55]Write to MH i2c: D1 01 00 27 B0 01 A9 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 27 B0 00 A8 [16:07:55]Write to MH i2c: 01 00 00 28 B0 D8 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]OFD Sender: No OFD packet to send [16:07:56]*** Cut start [16:07:56]*** Partial cut [16:07:56]*** CUTSNS_PIN = 1 [16:07:56]*** CUTSNS_PIN = 0 [16:07:56]*** Brake cut motor [16:07:56]Read from MH i2c: 01 [16:07:56]MH_I2C_Read... [16:07:56]*** Stop cut motor [16:07:56]*** Cut end [16:07:56]Read from MH i2c: 01 07 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: 01 07 00 28 B0 00 00 00 00 00 FF 0F ED [16:07:56]process_action close_receipt done [16:07:56]requested_data is exist [16:07:56]produce_requested_data [16:07:56]requested_item fm.sn is exist - process it [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 11 00 00 [16:07:56]Write to MH i2c: E2 08 00 29 B0 80 11 00 00 00 00 00 00 53 [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:56]Read from MH i2c: E2 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 17 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 17 00 29 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [16:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:07:56]wFMCommunicate OK [16:07:56]requested_item fd.num is exist - process it [16:07:56]SAM_PROTO_GetFieldsCounters [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 13 00 00 [16:07:56]Write to MH i2c: E2 08 00 2A B0 80 13 00 00 00 00 00 00 56 [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 62 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 62 00 2A B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:57]wFMCommunicate OK [16:07:57]SAM_PROTO_GetFieldsCounters done [16:07:57]requested_item shift.num is exist - process it [16:07:57]requested_item shift.opened is exist - process it [16:07:57]req_shift_opened [16:07:57]FM_GetShiftState [16:07:57]SAM_PROTO_GetShiftState [16:07:57]wFMCommunicate request_size=4 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 13 01 00 [16:07:57]Write to MH i2c: E2 08 00 2B B0 80 13 01 00 00 00 00 00 58 [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 0E 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 0E 00 2B B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1B [16:07:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:07:57]wFMCommunicate OK [16:07:57]SAM_PROTO_GetShiftState done [16:07:57]FM_GetShiftState done [16:07:57]req_shift_opened done [16:07:57]requested_item shift.open_date is exist - process it [16:07:57]req_shift_open_date [16:07:57]req_shift_open_date done [16:07:57]produce_requested_data done [16:07:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191491,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:07:57]process_action_free close_receipt [16:07:57]json_value_free [16:07:57]json_value_free done [16:07:57]process_json_proto returns [16:07:57]Send response to host [16:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191491,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:07:57]free response buf [16:07:57]execute_script done [16:07:57]execute_script returns [16:07:57]free content buf [16:07:57]Sock 9.Close socket [16:07:57]Sock 9.Thread stoped [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:21]accept exits with 8 [16:09:21]New connection [16:09:21]New thread 3066961252 created [16:09:21]Thread 3066817892 joined [16:09:21]Waiting for new connection... [16:09:21] Sock 8.Parse request [16:09:21]Sock 8.Check first char [16:09:21]Sock 8.First char is OK [16:09:21]request: POST /json_proto HTTP/1.0 [16:09:21]Method: POST [16:09:21]URL: /json_proto [16:09:21]Method is POST - this is cgi request [16:09:21]url: /json_proto [16:09:21]query_string will be loaded in cgi processing [16:09:21]execute_cgi json_proto POST (null) [16:09:21]execute_cgi path=json_proto method=POST [16:09:21]POST find Content-Length [16:09:21]Host: 172.17.63.131:8080 [16:09:21]Content-Length: 677 [16:09:21]Content-Type: application/json [16:09:21] [16:09:21]POST finish read [16:09:21]Found Content-Length = 677 [16:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:21]execute_script... [16: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)30789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:21]POST & json_proto [16:09:21]process_json_proto [16:09:21]json parsed OK: [16:09:21]protocol is kg_v1.0 [16:09:21]action value=close_receipt [16:09:21]process_action close_receipt [16:09:21]cmd_close_receipt [16:09:21]MH_GetDate [16:09:21]Write to MH i2c: F0 00 00 2C B0 CB [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 09 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 09 00 2C B0 00 BA C2 1B 67 22 05 6E 64 CB [16:09:21]GetLastDocTimeStamp 1729872482 [16:09:21]current date 1729872570 [16:09:21]FM_GetShiftState [16:09:21]SAM_PROTO_GetShiftState [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 13 01 00 [16:09:21]Write to MH i2c: E2 08 00 2D B0 80 13 01 00 00 00 00 00 5A [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:21]Read from MH i2c: E2 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 0E 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 0E 00 2D B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1D [16:09:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:09:21]wFMCommunicate OK [16:09:21]SAM_PROTO_GetShiftState done [16:09:21]FM_GetShiftState done [16:09:21]opened in 1729816399 [16:09:21]opened+sec_in_day 1729902799 [16:09:21]quantity*price = 70044 [16:09:21]sum+1 = 70045 [16:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 231 25.10.2024 16:09 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191492 ФПД: 3411221460770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191492&fm=3411221460770&tin=02508201610067®Number=0000000000091776&sum=70000 [16:09:22]StoreToDocumentArchive [16:09:22]shift 540 fd 191492 [16:09:22]save to /storage/0540/doc_00191492 [16:09:22]save last doc name /storage/0540/doc_00191492 to /storage/kkm_last_doc_name [16:09:22]save OK [16:09:22]Clear old archive folders... [16:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:22]tlvbuf is 015B0AB0 [16:09:22]SAM_PROTO_ClearQueue [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 09 00 00 [16:09:22]Write to MH i2c: E2 08 00 3A B0 80 09 00 00 00 00 00 00 5C [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 3A B0 00 90 00 5E [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_ClearQueue done [16:09:22]KKMCreateOFDPacket [16:09:22]OFDProtocolAddRootSTLVToBuf [16:09:22]FM_MakeSignedData [16:09:22]FM_MakeSignedData [16:09:22]SAM_PROTO_SignData [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 01 02 [16:09:22]Write to MH i2c: E2 08 00 3B B0 80 0D 01 02 00 00 00 00 64 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 3B B0 00 90 00 5F [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=255 [16:09:22]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BA C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EC 02 00 35 04 06 00 03 [16:09:22]Write to MH i2c: E2 02 01 3C B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BA C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EC 02 00 35 04 06 00 03 00 00 00 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 3C B0 00 90 00 60 [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=10 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 02 02 05 1A 3C A4 B7 22 [16:09:22]Write to MH i2c: E2 0D 00 3D B0 80 0D 02 02 05 00 1A 3C A4 B7 22 00 00 44 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 3D B0 00 90 00 61 [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 03 02 [16:09:22]Write to MH i2c: E2 08 00 3E B0 80 0D 03 02 00 00 00 00 69 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 0B 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 0B 00 3E B0 00 6B 82 09 A2 70 AB B1 32 90 00 00 [16:09:22]RAPDU: 6B 82 09 A2 70 AB B1 32 90 00 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_SignData done [16:09:22]FM_MakeSignedData done [16:09:22]CreateOFDProtocolMessage [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 11 00 00 [16:09:22]Write to MH i2c: E2 08 00 3F B0 80 11 00 00 00 00 00 00 69 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 17 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 17 00 3F B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [16:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:22]wFMCommunicate OK [16:09:22]CreateOFDProtocolMessage done [16:09:22]OFDSenderStorePacket 191492 [16:09:22]StoreOFDPacket docnum=191492 [16:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B4 F4 07 01 28 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BA C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EC 02 00 35 04 06 00 03 1A 3C A4 B7 22 6B 82 09 A2 70 AB B1 32 [16:09:22]CheckFolder [16:09:22]dirname=/storage/ofd_packets [16:09:22]CheckFolder done [16:09:22]ProducePacketName [16:09:22]name=ofd_packets/00191492 [16:09:22]NVStorageSaveData ofd_packets/00191492 [16:09:22]File name is /storage/ofd_packets/00191492 [16:09:22]Write 301 bytes [16:09:22]NVStorageSaveData done [16:09:22]OFDSenderStorePacket done [16:09:22]KKMCreateOFDPacket done [16:09:22]NVStorageSaveData kkm_last_timestamp [16:09:22]File name is /storage/kkm_last_timestamp [16:09:22]Write 4 bytes [16:09:22]NVStorageSaveData done [16:09:22]ExternCall_PrintAddStr [16:09:22]wPrintStart [16:09:22]Write to MH i2c: 01 00 00 40 B0 F0 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 07 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 07 00 40 B0 00 00 00 00 00 FF 0F 05 [16:09:22]RasterBufferAndPrint [16:09:22]line Счет N : (1)30789 [16:09:22]line ИНН: 02508201610067 [16:09:22]line Контрольно-Кассовый Чек [16:09:22]line ПРОДАЖА [16:09:22]line ТРК (МРК, ГНК) : 12 [16:09:22]line Товар: 2710124130 [16:09:22]line Аи-92-К-5 [16:09:22]line 10.470 * 66.90 [16:09:22]line = 700.44 [16:09:22]line НДС 12% НСП 1% [16:09:22]line > о реализуемом товаре [16:09:22]line ОКРУГЛЕНИЕ: -0.44 [16:09:22]line ИТОГО: 700.00 [16:09:22]line Внесено: 700.00 [16:09:22]line СДАЧА: 0.00 [16:09:22]line НСП 1% : 6.20 [16:09:22]line НДС 12% : 74.38 [16:09:22]line Наличными: 700.00 [16:09:22]line Безнал.: 0.00 [16:09:22]line Место: АЗС № 170 "Партнер Нефть" [16:09:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:09:22]line СНО: Общий режим [16:09:22]line Чек 231 25.10.2024 16:09 [16:09:22]line Смена: 540 ФФД: 1.0 [16:09:22]line ЗНМ: 0300000110 [16:09:22]line РНМ: 0000000000091776 [16:09:22]line Версия ККМ: 001 [16:09:22]line ФМ: 0000000000871754 [16:09:22]line ФД: 191492 [16:09:22]line ФПД: 3411221460770 [16:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T160930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191492&fm=3411221460770&tin=02508201610067®Number=0000000000091776&sum=70000 [16:09:23]OFD Sender: Processing packet 191492 [packets to send 75, broken 74] [16:09:23]ProducePacketName [16:09:23]name=ofd_packets/00191492 [16:09:23]OFD Sender: To server: pG, [16:09:23]CommunicateWithHost lk.salyk.kg:30040 [16:09:23]ConnectInit lk.salyk.kg [16:09:23]written 0, free lines is 4095 [16:09:23]Connected sock=10 [16: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 31 37 35 34 0F 01 00 00 B4 F4 07 01 28 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BA C2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EC 02 00 35 04 06 00 03 1A 3C A4 B7 22 6B 82 09 A2 70 AB B1 32 [16:09:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 7E 47 00 96 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EC 02 00 F4 03 04 00 88 67 1B 67 B6 04 01 00 00 C1 95 06 C9 9B 26 60 CD [16:09:23]CommunicateWithHost err = 0 [16:09:23]CheckOFDResponse [16:09:23]1017 (14) - 77093643461234 [16:09:23]1041 (16) - 0000000000871754 [16:09:23]1040 (4) - 191492 [16:09:23]1012 (4) - 25.10.2024 09:40 [16:09:23]1206 (1) - 0 [16:09:23]OFD Sender: Remove packet 191492 [16:09:23]ProducePacketName [16:09:23]name=ofd_packets/00191492 [16:09:23]NVStorageDeleteData [16:09:23]Write to MH i2c: 01 00 00 6B B0 1B [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 6B B0 00 00 00 00 00 AF 0C DD [16:09:23]RasterBufferAndPrint [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]written 0, free lines is 3255 [16:09:23]MH_Cut [16:09:23]Write to MH i2c: D1 01 00 72 B0 01 F4 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 01 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 01 00 72 B0 00 F3 [16:09:23]Write to MH i2c: 01 00 00 73 B0 23 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]OFD Sender: No OFD packet to send [16:09:24]*** Cut start [16:09:24]*** Partial cut [16:09:24]*** CUTSNS_PIN = 1 [16:09:24]*** CUTSNS_PIN = 0 [16:09:24]*** Brake cut motor [16:09:24]Read from MH i2c: 01 [16:09:24]MH_I2C_Read... [16:09:24]*** Stop cut motor [16:09:24]*** Cut end [16:09:24]Read from MH i2c: 01 07 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: 01 07 00 73 B0 00 00 00 00 00 FF 0F 38 [16:09:24]process_action close_receipt done [16:09:24]requested_data is exist [16:09:24]produce_requested_data [16:09:24]requested_item fm.sn is exist - process it [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 11 00 00 [16:09:24]Write to MH i2c: E2 08 00 74 B0 80 11 00 00 00 00 00 00 9E [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 74 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [16:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:25]wFMCommunicate OK [16:09:25]requested_item fd.num is exist - process it [16:09:25]SAM_PROTO_GetFieldsCounters [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 13 00 00 [16:09:25]Write to MH i2c: E2 08 00 75 B0 80 13 00 00 00 00 00 00 A1 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 62 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 62 00 75 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:25]wFMCommunicate OK [16:09:25]SAM_PROTO_GetFieldsCounters done [16:09:25]requested_item shift.num is exist - process it [16:09:25]requested_item shift.opened is exist - process it [16:09:25]req_shift_opened [16:09:25]FM_GetShiftState [16:09:25]SAM_PROTO_GetShiftState [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 13 01 00 [16:09:25]Write to MH i2c: E2 08 00 76 B0 80 13 01 00 00 00 00 00 A3 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0E 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0E 00 76 B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 66 [16:09:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:09:25]wFMCommunicate OK [16:09:25]SAM_PROTO_GetShiftState done [16:09:25]FM_GetShiftState done [16:09:25]req_shift_opened done [16:09:25]requested_item shift.open_date is exist - process it [16:09:25]req_shift_open_date [16:09:25]req_shift_open_date done [16:09:25]produce_requested_data done [16:09:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191492,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:09:25]process_action_free close_receipt [16:09:25]json_value_free [16:09:25]json_value_free done [16:09:25]process_json_proto returns [16:09:25]Send response to host [16:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191492,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:09:25]free response buf [16:09:25]execute_script done [16:09:25]execute_script returns [16:09:25]free content buf [16:09:25]Sock 8.Close socket [16:09:25]Sock 8.Thread stoped [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:55]accept exits with 9 [16:11:55]New connection [16:11:55]New thread 3066817892 created [16:11:55]Thread 3066961252 joined [16:11:55]Waiting for new connection... [16:11:55] Sock 9.Parse request [16:11:55]Sock 9.Check first char [16:11:55]Sock 9.First char is OK [16:11:55]request: POST /json_proto HTTP/1.0 [16:11:55]Method: POST [16:11:55]URL: /json_proto [16:11:55]Method is POST - this is cgi request [16:11:55]url: /json_proto [16:11:55]query_string will be loaded in cgi processing [16:11:55]execute_cgi json_proto POST (null) [16:11:55]execute_cgi path=json_proto method=POST [16:11:55]POST find Content-Length [16:11:55]Host: 172.17.63.131:8080 [16:11:55]Content-Length: 678 [16:11:55]Content-Type: application/json [16:11:55] [16:11:55]POST finish read [16:11:55]Found Content-Length = 678 [16:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [16:11:55]execute_script... [16:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [16:11:55]POST & json_proto [16:11:55]process_json_proto [16:11:55]json parsed OK: [16:11:55]protocol is kg_v1.0 [16:11:55]action value=close_receipt [16:11:55]process_action close_receipt [16:11:55]cmd_close_receipt [16:11:55]MH_GetDate [16:11:55]Write to MH i2c: F0 00 00 77 B0 16 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 09 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 09 00 77 B0 00 55 C3 1B 67 22 05 6E 64 B2 [16:11:55]GetLastDocTimeStamp 1729872570 [16:11:55]current date 1729872725 [16:11:55]FM_GetShiftState [16:11:55]SAM_PROTO_GetShiftState [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 13 01 00 [16:11:55]Write to MH i2c: E2 08 00 78 B0 80 13 01 00 00 00 00 00 A5 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 78 B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 68 [16:11:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_GetShiftState done [16:11:55]FM_GetShiftState done [16:11:55]opened in 1729816399 [16:11:55]opened+sec_in_day 1729902799 [16:11:55]quantity*price = 150037 [16:11:55]sum+1 = 150039 [16:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 232 25.10.2024 16:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191493 ФПД: 60070910064797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191493&fm=60070910064797&tin=02508201610067®Number=0000000000091776&sum=150000 [16:11:56]StoreToDocumentArchive [16:11:56]shift 540 fd 191493 [16:11:56]save to /storage/0540/doc_00191493 [16:11:56]save last doc name /storage/0540/doc_00191493 to /storage/kkm_last_doc_name [16:11:56]save OK [16:11:56]Clear old archive folders... [16:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:56]tlvbuf is 01624F40 [16:11:56]SAM_PROTO_ClearQueue [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 09 00 00 [16:11:56]Write to MH i2c: E2 08 00 85 B0 80 09 00 00 00 00 00 00 A7 [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 85 B0 00 90 00 A9 [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]SAM_PROTO_ClearQueue done [16:11:57]KKMCreateOFDPacket [16:11:57]OFDProtocolAddRootSTLVToBuf [16:11:57]FM_MakeSignedData [16:11:57]FM_MakeSignedData [16:11:57]SAM_PROTO_SignData [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 01 02 [16:11:57]Write to MH i2c: E2 08 00 86 B0 80 0D 01 02 00 00 00 00 AF [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 86 B0 00 90 00 AA [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=255 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 E8 00 00 00 F4 03 04 00 55 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EC 02 00 35 04 06 00 36 A2 59 41 [16:11:57]Write to MH i2c: E2 02 01 87 B0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 E8 00 00 00 F4 03 04 00 55 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EC 02 00 35 04 06 00 36 A2 59 41 00 00 B5 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 87 B0 00 90 00 AB [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=7 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 02 02 02 78 9D [16:11:57]Write to MH i2c: E2 0A 00 88 B0 80 0D 02 02 02 00 78 9D 00 00 CB [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 88 B0 00 90 00 AC [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 03 02 [16:11:57]Write to MH i2c: E2 08 00 89 B0 80 0D 03 02 00 00 00 00 B4 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0B 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0B 00 89 B0 00 04 D1 6F AB 9C CF 97 A0 90 00 46 [16:11:57]RAPDU: 04 D1 6F AB 9C CF 97 A0 90 00 [16:11:57]wFMCommunicate OK [16:11:57]SAM_PROTO_SignData done [16:11:57]FM_MakeSignedData done [16:11:57]CreateOFDProtocolMessage [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 11 00 00 [16:11:57]Write to MH i2c: E2 08 00 8A B0 80 11 00 00 00 00 00 00 B4 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 8A B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [16:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:11:57]wFMCommunicate OK [16:11:57]CreateOFDProtocolMessage done [16:11:57]OFDSenderStorePacket 191493 [16:11:57]StoreOFDPacket docnum=191493 [16:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 5C 04 01 32 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 E8 00 00 00 F4 03 04 00 55 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EC 02 00 35 04 06 00 36 A2 59 41 78 9D 04 D1 6F AB 9C CF 97 A0 [16:11:57]CheckFolder [16:11:57]dirname=/storage/ofd_packets [16:11:57]CheckFolder done [16:11:57]ProducePacketName [16:11:57]name=ofd_packets/00191493 [16:11:57]NVStorageSaveData ofd_packets/00191493 [16:11:57]File name is /storage/ofd_packets/00191493 [16:11:57]Write 298 bytes [16:11:57]NVStorageSaveData done [16:11:57]OFDSenderStorePacket done [16:11:57]KKMCreateOFDPacket done [16:11:57]NVStorageSaveData kkm_last_timestamp [16:11:57]File name is /storage/kkm_last_timestamp [16:11:57]Write 4 bytes [16:11:57]NVStorageSaveData done [16:11:57]ExternCall_PrintAddStr [16:11:57]wPrintStart [16:11:57]Write to MH i2c: 01 00 00 8B B0 3B [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 8B B0 00 00 00 00 00 FF 0F 50 [16:11:57]RasterBufferAndPrint [16:11:57]line Счет N : (1)30790 [16:11:57]line ИНН: 02508201610067 [16:11:57]line Контрольно-Кассовый Чек [16:11:57]line ПРОДАЖА [16:11:57]line ТРК (МРК, ГНК) : 22 [16:11:57]line Товар: 2710194210 [16:11:57]line ДТ-К-5 [16:11:57]line 19.690 * 76.20 [16:11:57]line = 1500.38 [16:11:57]line НДС 12% НСП 1% [16:11:57]line > о реализуемом товаре [16:11:57]line ОКРУГЛЕНИЕ: -0.38 [16:11:57]line ИТОГО: 1500.00 [16:11:57]line Внесено: 1500.00 [16:11:57]line СДАЧА: 0.00 [16:11:57]line НСП 1% : 13.28 [16:11:57]line НДС 12% : 159.33 [16:11:57]line Наличными: 1500.00 [16:11:57]line Безнал.: 0.00 [16:11:57]line Место: АЗС № 170 "Партнер Нефть" [16:11:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:11:57]line СНО: Общий режим [16:11:57]line Чек 232 25.10.2024 16:12 [16:11:57]line Смена: 540 ФФД: 1.0 [16:11:57]line ЗНМ: 0300000110 [16:11:57]line РНМ: 0000000000091776 [16:11:57]line Версия ККМ: 001 [16:11:57]line ФМ: 0000000000871754 [16:11:57]line ФД: 191493 [16:11:57]line ФПД: 60070910064797 [16:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191493&fm=60070910064797&tin=02508201610067®Number=0000000000091776&sum=150000 [16:11:57]OFD Sender: Processing packet 191493 [packets to send 75, broken 74] [16:11:57]ProducePacketName [16:11:57]name=ofd_packets/00191493 [16:11:57]OFD Sender: To server: pG, [16:11:57]CommunicateWithHost lk.salyk.kg:30040 [16:11:57]ConnectInit lk.salyk.kg [16:11:57]written 0, free lines is 4095 [16:11:57]Connected sock=10 [16:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 5C 04 01 32 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 E8 00 00 00 F4 03 04 00 55 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EC 02 00 35 04 06 00 36 A2 59 41 78 9D 04 D1 6F AB 9C CF 97 A0 [16:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A2 6F 47 00 35 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EC 02 00 F4 03 04 00 23 68 1B 67 B6 04 01 00 00 C0 D2 E6 DC 41 DB C0 29 [16:11:58]CommunicateWithHost err = 0 [16:11:58]CheckOFDResponse [16:11:58]1017 (14) - 77093643461234 [16:11:58]1041 (16) - 0000000000871754 [16:11:58]1040 (4) - 191493 [16:11:58]1012 (4) - 25.10.2024 09:42 [16:11:58]1206 (1) - 0 [16:11:58]OFD Sender: Remove packet 191493 [16:11:58]ProducePacketName [16:11:58]name=ofd_packets/00191493 [16:11:58]NVStorageDeleteData [16:11:58]Write to MH i2c: 01 00 00 B6 B0 66 [16:11:58]Write i2c OK [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: 01 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: 01 07 00 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: 01 07 00 B6 B0 00 00 00 00 00 C1 0C 3A [16:11:58]RasterBufferAndPrint [16:11:58]line [16:11:58]line [16:11:58]line [16:11:58]line [16:11:58]line [16:11:58]written 0, free lines is 3270 [16:11:58]MH_Cut [16:11:58]Write to MH i2c: D1 01 00 BD B0 01 3F [16:11:58]Write i2c OK [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: D1 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: D1 01 00 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: D1 01 00 BD B0 00 3E [16:11:58]Write to MH i2c: 01 00 00 BE B0 6E [16:11:58]Write i2c OK [16:11:58]MH_I2C_Read... [16:11:58]OFD Sender: No OFD packet to send [16:11:59]*** Cut start [16:11:59]*** Partial cut [16:11:59]*** CUTSNS_PIN = 1 [16:11:59]*** CUTSNS_PIN = 0 [16:11:59]*** Brake cut motor [16:11:59]Read from MH i2c: 01 [16:11:59]MH_I2C_Read... [16:11:59]*** Stop cut motor [16:11:59]*** Cut end [16:11:59]Read from MH i2c: 01 07 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: 01 07 00 BE B0 00 00 00 00 00 FF 0F 83 [16:11:59]process_action close_receipt done [16:11:59]requested_data is exist [16:11:59]produce_requested_data [16:11:59]requested_item fm.sn is exist - process it [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 11 00 00 [16:11:59]Write to MH i2c: E2 08 00 BF B0 80 11 00 00 00 00 00 00 E9 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:59]Read from MH i2c: E2 17 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 17 00 BF B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [16:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:11:59]wFMCommunicate OK [16:11:59]requested_item fd.num is exist - process it [16:11:59]SAM_PROTO_GetFieldsCounters [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 13 00 00 [16:11:59]Write to MH i2c: E2 08 00 C0 B0 80 13 00 00 00 00 00 00 EC [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 62 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 62 00 C0 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_GetFieldsCounters done [16:11:59]requested_item shift.num is exist - process it [16:11:59]requested_item shift.opened is exist - process it [16:11:59]req_shift_opened [16:11:59]FM_GetShiftState [16:11:59]SAM_PROTO_GetShiftState [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 13 01 00 [16:11:59]Write to MH i2c: E2 08 00 C1 B0 80 13 01 00 00 00 00 00 EE [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 C1 B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B1 [16:11:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_GetShiftState done [16:11:59]FM_GetShiftState done [16:11:59]req_shift_opened done [16:11:59]requested_item shift.open_date is exist - process it [16:11:59]req_shift_open_date [16:11:59]req_shift_open_date done [16:11:59]produce_requested_data done [16:11:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191493,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:11:59]process_action_free close_receipt [16:11:59]json_value_free [16:11:59]json_value_free done [16:11:59]process_json_proto returns [16:11:59]Send response to host [16:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191493,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:11:59]free response buf [16:11:59]execute_script done [16:11:59]execute_script returns [16:11:59]free content buf [16:11:59]Sock 9.Close socket [16:11:59]Sock 9.Thread stoped [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]accept exits with 8 [16:13:13]New connection [16:13:13]New thread 3066961252 created [16:13:13]Thread 3066817892 joined [16:13:13]Waiting for new connection... [16:13:13] Sock 8.Parse request [16:13:13]Sock 8.Check first char [16:13:13]Sock 8.First char is OK [16:13:13]request: POST /json_proto HTTP/1.0 [16:13:13]Method: POST [16:13:13]URL: /json_proto [16:13:13]Method is POST - this is cgi request [16:13:13]url: /json_proto [16:13:13]query_string will be loaded in cgi processing [16:13:13]execute_cgi json_proto POST (null) [16:13:13]execute_cgi path=json_proto method=POST [16:13:13]POST find Content-Length [16:13:13]Host: 172.17.63.131:8080 [16:13:13]Content-Length: 676 [16:13:13]Content-Type: application/json [16:13:13] [16:13:13]POST finish read [16:13:13]Found Content-Length = 676 [16:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:13]execute_script... [16:13: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)30791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:13]POST & json_proto [16:13:13]process_json_proto [16:13:13]json parsed OK: [16:13:13]protocol is kg_v1.0 [16:13:13]action value=close_receipt [16:13:13]process_action close_receipt [16:13:13]cmd_close_receipt [16:13:13]MH_GetDate [16:13:13]Write to MH i2c: F0 00 00 C2 B0 61 [16:13:13]Write i2c OK [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: F0 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: F0 09 00 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: F0 09 00 C2 B0 00 A3 C3 1B 67 22 05 6E 64 4B [16:13:13]GetLastDocTimeStamp 1729872725 [16:13:13]current date 1729872803 [16:13:13]FM_GetShiftState [16:13:13]SAM_PROTO_GetShiftState [16:13:13]wFMCommunicate request_size=4 [16:13:13]MH_SAM_APDU [16:13:13]CAPDU: 80 13 01 00 [16:13:13]Write to MH i2c: E2 08 00 C3 B0 80 13 01 00 00 00 00 00 F0 [16:13:13]Write i2c OK [16:13:13]MH_I2C_Read... [16:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:13]OFD Sender: No OFD packet to send [16:13:13]Read from MH i2c: E2 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: E2 0E 00 [16:13:13]MH_I2C_Read... [16:13:13]Read from MH i2c: E2 0E 00 C3 B0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B3 [16:13:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:13:13]wFMCommunicate OK [16:13:13]SAM_PROTO_GetShiftState done [16:13:13]FM_GetShiftState done [16:13:13]opened in 1729816399 [16:13:13]opened+sec_in_day 1729902799 [16:13:13]quantity*price = 60009 [16:13:13]sum+1 = 60010 [16:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 233 25.10.2024 16:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191494 ФПД: 178274951974114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191494&fm=178274951974114&tin=02508201610067®Number=0000000000091776&sum=60000 [16:13:14]StoreToDocumentArchive [16:13:14]shift 540 fd 191494 [16:13:14]save to /storage/0540/doc_00191494 [16:13:14]save last doc name /storage/0540/doc_00191494 to /storage/kkm_last_doc_name [16:13:14]save OK [16:13:14]Clear old archive folders... [16:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:14]tlvbuf is 015D84B0 [16:13:14]SAM_PROTO_ClearQueue [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 09 00 00 [16:13:14]Write to MH i2c: E2 08 00 D0 B0 80 09 00 00 00 00 00 00 F2 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 03 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 03 00 D0 B0 00 90 00 F4 [16:13:14]RAPDU: 90 00 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_ClearQueue done [16:13:14]KKMCreateOFDPacket [16:13:14]OFDProtocolAddRootSTLVToBuf [16:13:14]FM_MakeSignedData [16:13:14]FM_MakeSignedData [16:13:14]SAM_PROTO_SignData [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 0D 01 02 [16:13:14]Write to MH i2c: E2 08 00 D1 B0 80 0D 01 02 00 00 00 00 FA [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 03 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 03 00 D1 B0 00 90 00 F5 [16:13:14]RAPDU: 90 00 [16:13:14]wFMCommunicate OK [16:13:14]wFMCommunicate request_size=255 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EC 02 00 35 04 06 00 A2 [16:13:14]Write to MH i2c: E2 02 01 D2 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EC 02 00 35 04 06 00 A2 00 00 F0 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 D2 B0 00 90 00 F6 [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]wFMCommunicate request_size=10 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 02 02 05 23 DF 2F 4C E2 [16:13:15]Write to MH i2c: E2 0D 00 D3 B0 80 0D 02 02 05 00 23 DF 2F 4C E2 00 00 66 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 D3 B0 00 90 00 F7 [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 03 02 [16:13:15]Write to MH i2c: E2 08 00 D4 B0 80 0D 03 02 00 00 00 00 FF [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 0B 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 0B 00 D4 B0 00 0E 13 B3 F3 A4 B5 82 A7 90 00 49 [16:13:15]RAPDU: 0E 13 B3 F3 A4 B5 82 A7 90 00 [16:13:15]wFMCommunicate OK [16:13:15]SAM_PROTO_SignData done [16:13:15]FM_MakeSignedData done [16:13:15]CreateOFDProtocolMessage [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 11 00 00 [16:13:15]Write to MH i2c: E2 08 00 D5 B0 80 11 00 00 00 00 00 00 FF [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 17 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 17 00 D5 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [16:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:15]wFMCommunicate OK [16:13:15]CreateOFDProtocolMessage done [16:13:15]OFDSenderStorePacket 191494 [16:13:15]StoreOFDPacket docnum=191494 [16:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 84 07 01 67 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EC 02 00 35 04 06 00 A2 23 DF 2F 4C E2 0E 13 B3 F3 A4 B5 82 A7 [16:13:15]CheckFolder [16:13:15]dirname=/storage/ofd_packets [16:13:15]CheckFolder done [16:13:15]ProducePacketName [16:13:15]name=ofd_packets/00191494 [16:13:15]NVStorageSaveData ofd_packets/00191494 [16:13:15]File name is /storage/ofd_packets/00191494 [16:13:15]Write 301 bytes [16:13:15]NVStorageSaveData done [16:13:15]OFDSenderStorePacket done [16:13:15]KKMCreateOFDPacket done [16:13:15]NVStorageSaveData kkm_last_timestamp [16:13:15]File name is /storage/kkm_last_timestamp [16:13:15]Write 4 bytes [16:13:15]NVStorageSaveData done [16:13:15]ExternCall_PrintAddStr [16:13:15]wPrintStart [16:13:15]Write to MH i2c: 01 00 00 D6 B0 86 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: 01 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: 01 07 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: 01 07 00 D6 B0 00 00 00 00 00 FF 0F 9B [16:13:15]RasterBufferAndPrint [16:13:15]line Счет N : (1)30791 [16:13:15]line ИНН: 02508201610067 [16:13:15]line Контрольно-Кассовый Чек [16:13:15]line ПРОДАЖА [16:13:15]line ТРК (МРК, ГНК) : 21 [16:13:15]line Товар: 2710124130 [16:13:15]line Аи-92-К-5 [16:13:15]line 8.970 * 66.90 [16:13:15]line = 600.09 [16:13:15]line НДС 12% НСП 1% [16:13:15]line > о реализуемом товаре [16:13:15]line ОКРУГЛЕНИЕ: -0.09 [16:13:15]line ИТОГО: 600.00 [16:13:15]line Внесено: 600.00 [16:13:15]line СДАЧА: 0.00 [16:13:15]line НСП 1% : 5.31 [16:13:15]line НДС 12% : 63.73 [16:13:15]line Наличными: 600.00 [16:13:15]line Безнал.: 0.00 [16:13:15]line Место: АЗС № 170 "Партнер Нефть" [16:13:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:13:15]line СНО: Общий режим [16:13:15]line Чек 233 25.10.2024 16:13 [16:13:15]line Смена: 540 ФФД: 1.0 [16:13:15]line ЗНМ: 0300000110 [16:13:15]line РНМ: 0000000000091776 [16:13:15]line Версия ККМ: 001 [16:13:15]line ФМ: 0000000000871754 [16:13:15]line ФД: 191494 [16:13:15]line ФПД: 178274951974114 [16:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191494&fm=178274951974114&tin=02508201610067®Number=0000000000091776&sum=60000 [16:13:15]OFD Sender: Processing packet 191494 [packets to send 75, broken 74] [16:13:15]ProducePacketName [16:13:15]name=ofd_packets/00191494 [16:13:15]OFD Sender: To server: pG, [16:13:15]CommunicateWithHost lk.salyk.kg:30040 [16:13:15]ConnectInit lk.salyk.kg [16:13:15]written 0, free lines is 4095 [16:13:15]Connected sock=10 [16:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 84 07 01 67 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EC 02 00 35 04 06 00 A2 23 DF 2F 4C E2 0E 13 B3 F3 A4 B5 82 A7 [16:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 CF 47 00 E5 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EC 02 00 F4 03 04 00 71 68 1B 67 B6 04 01 00 00 20 C9 F3 B3 0E DF 50 57 [16:13:16]CommunicateWithHost err = 0 [16:13:16]CheckOFDResponse [16:13:16]1017 (14) - 77093643461234 [16:13:16]1041 (16) - 0000000000871754 [16:13:16]1040 (4) - 191494 [16:13:16]1012 (4) - 25.10.2024 09:44 [16:13:16]1206 (1) - 0 [16:13:16]OFD Sender: Remove packet 191494 [16:13:16]ProducePacketName [16:13:16]name=ofd_packets/00191494 [16:13:16]NVStorageDeleteData [16:13:16]Write to MH i2c: 01 00 00 01 B1 B2 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 01 B1 00 00 00 00 00 B8 0C 7D [16:13:16]RasterBufferAndPrint [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]written 0, free lines is 3263 [16:13:16]MH_Cut [16:13:16]Write to MH i2c: D1 01 00 08 B1 01 8B [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 01 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 01 00 08 B1 00 8A [16:13:16]Write to MH i2c: 01 00 00 09 B1 BA [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]OFD Sender: No OFD packet to send [16:13:16]*** Cut start [16:13:16]*** Partial cut [16:13:16]*** CUTSNS_PIN = 1 [16:13:17]*** CUTSNS_PIN = 0 [16:13:17]*** Brake cut motor [16:13:17]Read from MH i2c: 01 [16:13:17]MH_I2C_Read... [16:13:17]*** Stop cut motor [16:13:17]*** Cut end [16:13:17]Read from MH i2c: 01 07 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 07 00 09 B1 00 00 00 00 00 FF 0F CF [16:13:17]process_action close_receipt done [16:13:17]requested_data is exist [16:13:17]produce_requested_data [16:13:17]requested_item fm.sn is exist - process it [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 11 00 00 [16:13:17]Write to MH i2c: E2 08 00 0A B1 80 11 00 00 00 00 00 00 35 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 17 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 17 00 0A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [16:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:17]wFMCommunicate OK [16:13:17]requested_item fd.num is exist - process it [16:13:17]SAM_PROTO_GetFieldsCounters [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 13 00 00 [16:13:17]Write to MH i2c: E2 08 00 0B B1 80 13 00 00 00 00 00 00 38 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 62 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 62 00 0B B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:17]wFMCommunicate OK [16:13:17]SAM_PROTO_GetFieldsCounters done [16:13:17]requested_item shift.num is exist - process it [16:13:17]requested_item shift.opened is exist - process it [16:13:17]req_shift_opened [16:13:17]FM_GetShiftState [16:13:17]SAM_PROTO_GetShiftState [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 13 01 00 [16:13:17]Write to MH i2c: E2 08 00 0C B1 80 13 01 00 00 00 00 00 3A [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 0C B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FD [16:13:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:13:17]wFMCommunicate OK [16:13:17]SAM_PROTO_GetShiftState done [16:13:17]FM_GetShiftState done [16:13:17]req_shift_opened done [16:13:17]requested_item shift.open_date is exist - process it [16:13:17]req_shift_open_date [16:13:17]req_shift_open_date done [16:13:17]produce_requested_data done [16:13:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191494,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:13:17]process_action_free close_receipt [16:13:17]json_value_free [16:13:17]json_value_free done [16:13:17]process_json_proto returns [16:13:17]Send response to host [16:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191494,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:13:17]free response buf [16:13:17]execute_script done [16:13:17]execute_script returns [16:13:17]free content buf [16:13:17]Sock 8.Close socket [16:13:17]Sock 8.Thread stoped [16:13:20]accept exits with 9 [16:13:20]New connection [16:13:20]New thread 3066817892 created [16:13:20]Thread 3066961252 joined [16:13:20]Waiting for new connection... [16:13:20] Sock 9.Parse request [16:13:20]Sock 9.Check first char [16:13:20]Sock 9.First char is OK [16:13:20]request: POST /json_proto HTTP/1.0 [16:13:20]Method: POST [16:13:20]URL: /json_proto [16:13:20]Method is POST - this is cgi request [16:13:20]url: /json_proto [16:13:20]query_string will be loaded in cgi processing [16:13:20]execute_cgi json_proto POST (null) [16:13:20]execute_cgi path=json_proto method=POST [16:13:20]POST find Content-Length [16:13:20]Host: 172.17.63.131:8080 [16:13:20]Content-Length: 676 [16:13:20]Content-Type: application/json [16:13:20] [16:13:20]POST finish read [16:13:20]Found Content-Length = 676 [16:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:20]execute_script... [16:13: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)30792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:20]POST & json_proto [16:13:20]process_json_proto [16:13:20]json parsed OK: [16:13:20]protocol is kg_v1.0 [16:13:20]action value=close_receipt [16:13:20]process_action close_receipt [16:13:20]cmd_close_receipt [16:13:20]MH_GetDate [16:13:20]Write to MH i2c: F0 00 00 0D B1 AD [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: F0 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: F0 09 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: F0 09 00 0D B1 00 AA C3 1B 67 22 05 6E 64 9E [16:13:20]GetLastDocTimeStamp 1729872803 [16:13:20]current date 1729872810 [16:13:20]FM_GetShiftState [16:13:20]SAM_PROTO_GetShiftState [16:13:20]wFMCommunicate request_size=4 [16:13:20]MH_SAM_APDU [16:13:20]CAPDU: 80 13 01 00 [16:13:20]Write to MH i2c: E2 08 00 0E B1 80 13 01 00 00 00 00 00 3C [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 [16:13:20]MH_I2C_Read... [16:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:20]Read from MH i2c: E2 0E 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 0E 00 0E B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FF [16:13:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:13:20]wFMCommunicate OK [16:13:20]SAM_PROTO_GetShiftState done [16:13:20]FM_GetShiftState done [16:13:20]opened in 1729816399 [16:13:20]opened+sec_in_day 1729902799 [16:13:20]quantity*price = 50041 [16:13:20]sum+1 = 50042 [16:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 234 25.10.2024 16:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191495 ФПД: 70705607971858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191495&fm=70705607971858&tin=02508201610067®Number=0000000000091776&sum=50000 [16:13:21]StoreToDocumentArchive [16:13:21]shift 540 fd 191495 [16:13:21]save to /storage/0540/doc_00191495 [16:13:21]save last doc name /storage/0540/doc_00191495 to /storage/kkm_last_doc_name [16:13:21]save OK [16:13:21]Clear old archive folders... [16:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:21]tlvbuf is 0184A720 [16:13:21]SAM_PROTO_ClearQueue [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 09 00 00 [16:13:21]Write to MH i2c: E2 08 00 1B B1 80 09 00 00 00 00 00 00 3E [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 03 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 03 00 1B B1 00 90 00 40 [16:13:21]RAPDU: 90 00 [16:13:21]wFMCommunicate OK [16:13:21]SAM_PROTO_ClearQueue done [16:13:21]KKMCreateOFDPacket [16:13:21]OFDProtocolAddRootSTLVToBuf [16:13:21]FM_MakeSignedData [16:13:21]FM_MakeSignedData [16:13:21]SAM_PROTO_SignData [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 0D 01 02 [16:13:21]Write to MH i2c: E2 08 00 1C B1 80 0D 01 02 00 00 00 00 46 [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 03 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 03 00 1C B1 00 90 00 41 [16:13:21]RAPDU: 90 00 [16:13:21]wFMCommunicate OK [16:13:21]wFMCommunicate request_size=255 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 AA C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EC 02 00 35 04 06 00 40 [16:13:21]Write to MH i2c: E2 02 01 1D B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 AA C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EC 02 00 35 04 06 00 40 00 00 06 [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 1D B1 00 90 00 42 [16:13:22]RAPDU: 90 00 [16:13:22]wFMCommunicate OK [16:13:22]wFMCommunicate request_size=10 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 0D 02 02 05 4E 6E A5 94 12 [16:13:22]Write to MH i2c: E2 0D 00 1E B1 80 0D 02 02 05 00 4E 6E A5 94 12 00 00 5A [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 1E B1 00 90 00 43 [16:13:22]RAPDU: 90 00 [16:13:22]wFMCommunicate OK [16:13:22]wFMCommunicate request_size=4 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 0D 03 02 [16:13:22]Write to MH i2c: E2 08 00 1F B1 80 0D 03 02 00 00 00 00 4B [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 0B 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 0B 00 1F B1 00 E1 38 2B 35 F4 2F A6 50 90 00 DE [16:13:22]RAPDU: E1 38 2B 35 F4 2F A6 50 90 00 [16:13:22]wFMCommunicate OK [16:13:22]SAM_PROTO_SignData done [16:13:22]FM_MakeSignedData done [16:13:22]CreateOFDProtocolMessage [16:13:22]wFMCommunicate request_size=4 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 11 00 00 [16:13:22]Write to MH i2c: E2 08 00 20 B1 80 11 00 00 00 00 00 00 4B [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 17 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 17 00 20 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:22]wFMCommunicate OK [16:13:22]CreateOFDProtocolMessage done [16:13:22]OFDSenderStorePacket 191495 [16:13:22]StoreOFDPacket docnum=191495 [16:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB 4D 07 01 25 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 AA C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EC 02 00 35 04 06 00 40 4E 6E A5 94 12 E1 38 2B 35 F4 2F A6 50 [16:13:22]CheckFolder [16:13:22]dirname=/storage/ofd_packets [16:13:22]CheckFolder done [16:13:22]ProducePacketName [16:13:22]name=ofd_packets/00191495 [16:13:22]NVStorageSaveData ofd_packets/00191495 [16:13:22]File name is /storage/ofd_packets/00191495 [16:13:22]Write 301 bytes [16:13:22]NVStorageSaveData done [16:13:22]OFDSenderStorePacket done [16:13:22]KKMCreateOFDPacket done [16:13:22]NVStorageSaveData kkm_last_timestamp [16:13:22]File name is /storage/kkm_last_timestamp [16:13:22]Write 4 bytes [16:13:22]NVStorageSaveData done [16:13:22]ExternCall_PrintAddStr [16:13:22]wPrintStart [16:13:22]Write to MH i2c: 01 00 00 21 B1 D2 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 07 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 07 00 21 B1 00 00 00 00 00 FF 0F E7 [16:13:22]RasterBufferAndPrint [16:13:22]line Счет N : (1)30792 [16:13:22]line ИНН: 02508201610067 [16:13:22]line Контрольно-Кассовый Чек [16:13:22]line ПРОДАЖА [16:13:22]line ТРК (МРК, ГНК) : 12 [16:13:22]line Товар: 2710124130 [16:13:22]line Аи-92-К-5 [16:13:22]line 7.480 * 66.90 [16:13:22]line = 500.41 [16:13:22]line НДС 12% НСП 1% [16:13:22]line > о реализуемом товаре [16:13:22]line ОКРУГЛЕНИЕ: -0.41 [16:13:22]line ИТОГО: 500.00 [16:13:22]line Внесено: 500.00 [16:13:22]line СДАЧА: 0.00 [16:13:22]line НСП 1% : 4.43 [16:13:22]line НДС 12% : 53.14 [16:13:22]line Наличными: 500.00 [16:13:22]line Безнал.: 0.00 [16:13:22]line Место: АЗС № 170 "Партнер Нефть" [16:13:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:13:22]line СНО: Общий режим [16:13:22]line Чек 234 25.10.2024 16:13 [16:13:22]line Смена: 540 ФФД: 1.0 [16:13:22]line ЗНМ: 0300000110 [16:13:22]line РНМ: 0000000000091776 [16:13:22]line Версия ККМ: 001 [16:13:22]line ФМ: 0000000000871754 [16:13:22]line ФД: 191495 [16:13:22]line ФПД: 70705607971858 [16:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191495&fm=70705607971858&tin=02508201610067®Number=0000000000091776&sum=50000 [16:13:22]written 0, free lines is 4095 [16:13:22]OFD Sender: Processing packet 191495 [packets to send 75, broken 74] [16:13:22]ProducePacketName [16:13:22]name=ofd_packets/00191495 [16:13:22]OFD Sender: To server: pG, [16:13:22]CommunicateWithHost lk.salyk.kg:30040 [16:13:22]ConnectInit lk.salyk.kg [16:13:22]Connected sock=10 [16:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB 4D 07 01 25 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 AA C3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EC 02 00 35 04 06 00 40 4E 6E A5 94 12 E1 38 2B 35 F4 2F A6 50 [16:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E 8C 47 00 3C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EC 02 00 F4 03 04 00 78 68 1B 67 B6 04 01 00 00 75 19 06 81 A0 68 51 F4 [16:13:22]CommunicateWithHost err = 0 [16:13:22]CheckOFDResponse [16:13:22]1017 (14) - 77093643461234 [16:13:22]1041 (16) - 0000000000871754 [16:13:22]1040 (4) - 191495 [16:13:22]1012 (4) - 25.10.2024 09:44 [16:13:22]1206 (1) - 0 [16:13:22]OFD Sender: Remove packet 191495 [16:13:22]ProducePacketName [16:13:22]name=ofd_packets/00191495 [16:13:22]NVStorageDeleteData [16:13:22]Write to MH i2c: 01 00 00 4C B1 FD [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 07 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: 01 07 00 4C B1 00 00 00 00 00 CF 0C DF [16:13:22]RasterBufferAndPrint [16:13:22]line [16:13:22]line [16:13:22]line [16:13:22]line [16:13:22]line [16:13:22]written 0, free lines is 3293 [16:13:22]MH_Cut [16:13:22]Write to MH i2c: D1 01 00 53 B1 01 D6 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: D1 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: D1 01 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: D1 01 00 53 B1 00 D5 [16:13:22]Write to MH i2c: 01 00 00 54 B1 05 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:23]OFD Sender: No OFD packet to send [16:13:23]*** Cut start [16:13:23]*** Partial cut [16:13:23]*** CUTSNS_PIN = 1 [16:13:23]*** CUTSNS_PIN = 0 [16:13:23]*** Brake cut motor [16:13:24]Read from MH i2c: 01 [16:13:24]MH_I2C_Read... [16:13:24]*** Stop cut motor [16:13:24]*** Cut end [16:13:24]Read from MH i2c: 01 07 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 07 00 54 B1 00 00 00 00 00 FF 0F 1A [16:13:24]process_action close_receipt done [16:13:24]requested_data is exist [16:13:24]produce_requested_data [16:13:24]requested_item fm.sn is exist - process it [16:13:24]wFMCommunicate request_size=4 [16:13:24]MH_SAM_APDU [16:13:24]CAPDU: 80 11 00 00 [16:13:24]Write to MH i2c: E2 08 00 55 B1 80 11 00 00 00 00 00 00 80 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 17 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 17 00 55 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [16:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:24]wFMCommunicate OK [16:13:24]requested_item fd.num is exist - process it [16:13:24]SAM_PROTO_GetFieldsCounters [16:13:24]wFMCommunicate request_size=4 [16:13:24]MH_SAM_APDU [16:13:24]CAPDU: 80 13 00 00 [16:13:24]Write to MH i2c: E2 08 00 56 B1 80 13 00 00 00 00 00 00 83 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 62 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 62 00 56 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [16:13:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:24]wFMCommunicate OK [16:13:24]SAM_PROTO_GetFieldsCounters done [16:13:24]requested_item shift.num is exist - process it [16:13:24]requested_item shift.opened is exist - process it [16:13:24]req_shift_opened [16:13:24]FM_GetShiftState [16:13:24]SAM_PROTO_GetShiftState [16:13:24]wFMCommunicate request_size=4 [16:13:24]MH_SAM_APDU [16:13:24]CAPDU: 80 13 01 00 [16:13:24]Write to MH i2c: E2 08 00 57 B1 80 13 01 00 00 00 00 00 85 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0E 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0E 00 57 B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 48 [16:13:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:13:24]wFMCommunicate OK [16:13:24]SAM_PROTO_GetShiftState done [16:13:24]FM_GetShiftState done [16:13:24]req_shift_opened done [16:13:24]requested_item shift.open_date is exist - process it [16:13:24]req_shift_open_date [16:13:24]req_shift_open_date done [16:13:24]produce_requested_data done [16:13:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191495,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:13:24]process_action_free close_receipt [16:13:24]json_value_free [16:13:24]json_value_free done [16:13:24]process_json_proto returns [16:13:24]Send response to host [16:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191495,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:13:24]free response buf [16:13:24]execute_script done [16:13:24]execute_script returns [16:13:24]free content buf [16:13:24]Sock 9.Close socket [16:13:24]Sock 9.Thread stoped [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:06]accept exits with 8 [16:15:06]New connection [16:15:06]New thread 3066961252 created [16:15:06]Thread 3066817892 joined [16:15:06]Waiting for new connection... [16:15:06] Sock 8.Parse request [16:15:06]Sock 8.Check first char [16:15:06]Sock 8.First char is OK [16:15:06]request: POST /json_proto HTTP/1.0 [16:15:06]Method: POST [16:15:06]URL: /json_proto [16:15:06]Method is POST - this is cgi request [16:15:06]url: /json_proto [16:15:06]query_string will be loaded in cgi processing [16:15:06]execute_cgi json_proto POST (null) [16:15:06]execute_cgi path=json_proto method=POST [16:15:06]POST find Content-Length [16:15:06]Host: 172.17.63.131:8080 [16:15:06]Content-Length: 676 [16:15:06]Content-Type: application/json [16:15:06] [16:15:06]POST finish read [16:15:06]Found Content-Length = 676 [16:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:06]execute_script... [16:15: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)30793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:06]POST & json_proto [16:15:06]process_json_proto [16:15:06]json parsed OK: [16:15:06]protocol is kg_v1.0 [16:15:06]action value=close_receipt [16:15:06]process_action close_receipt [16:15:06]cmd_close_receipt [16:15:06]MH_GetDate [16:15:06]Write to MH i2c: F0 00 00 58 B1 F8 [16:15:06]Write i2c OK [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: F0 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: F0 09 00 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: F0 09 00 58 B1 00 14 C4 1B 67 22 05 6E 64 54 [16:15:06]GetLastDocTimeStamp 1729872810 [16:15:06]current date 1729872916 [16:15:06]FM_GetShiftState [16:15:06]SAM_PROTO_GetShiftState [16:15:06]wFMCommunicate request_size=4 [16:15:06]MH_SAM_APDU [16:15:06]CAPDU: 80 13 01 00 [16:15:06]Write to MH i2c: E2 08 00 59 B1 80 13 01 00 00 00 00 00 87 [16:15:06]Write i2c OK [16:15:06]MH_I2C_Read... [16:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:06]Read from MH i2c: E2 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: E2 0E 00 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: E2 0E 00 59 B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4A [16:15:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:15:06]wFMCommunicate OK [16:15:06]SAM_PROTO_GetShiftState done [16:15:06]FM_GetShiftState done [16:15:06]opened in 1729816399 [16:15:06]opened+sec_in_day 1729902799 [16:15:06]quantity*price = 30038 [16:15:06]sum+1 = 30039 [16:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 235 25.10.2024 16:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191496 ФПД: 244148698945179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191496&fm=244148698945179&tin=02508201610067®Number=0000000000091776&sum=30000 [16:15:08]StoreToDocumentArchive [16:15:08]shift 540 fd 191496 [16:15:08]save to /storage/0540/doc_00191496 [16:15:08]save last doc name /storage/0540/doc_00191496 to /storage/kkm_last_doc_name [16:15:08]save OK [16:15:08]Clear old archive folders... [16:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:08]tlvbuf is 0178A300 [16:15:08]SAM_PROTO_ClearQueue [16:15:08]wFMCommunicate request_size=4 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 09 00 00 [16:15:08]Write to MH i2c: E2 08 00 66 B1 80 09 00 00 00 00 00 00 89 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 66 B1 00 90 00 8B [16:15:08]RAPDU: 90 00 [16:15:08]wFMCommunicate OK [16:15:08]SAM_PROTO_ClearQueue done [16:15:08]KKMCreateOFDPacket [16:15:08]OFDProtocolAddRootSTLVToBuf [16:15:08]FM_MakeSignedData [16:15:08]FM_MakeSignedData [16:15:08]SAM_PROTO_SignData [16:15:08]wFMCommunicate request_size=4 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 0D 01 02 [16:15:08]Write to MH i2c: E2 08 00 67 B1 80 0D 01 02 00 00 00 00 91 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 67 B1 00 90 00 8C [16:15:08]RAPDU: 90 00 [16:15:08]wFMCommunicate OK [16:15:08]wFMCommunicate request_size=255 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 14 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EC 02 00 35 04 06 00 DE [16:15:08]Write to MH i2c: E2 02 01 68 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 14 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EC 02 00 35 04 06 00 DE 00 00 50 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]OFD Sender: No OFD packet to send [16:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 68 B1 00 90 00 8D [16:15:08]RAPDU: 90 00 [16:15:08]wFMCommunicate OK [16:15:08]wFMCommunicate request_size=10 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 0D 02 02 05 0D 4C 79 16 9B [16:15:08]Write to MH i2c: E2 0D 00 69 B1 80 0D 02 02 05 00 0D 4C 79 16 9B 00 00 21 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 69 B1 00 90 00 8E [16:15:08]RAPDU: 90 00 [16:15:08]wFMCommunicate OK [16:15:08]wFMCommunicate request_size=4 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 0D 03 02 [16:15:08]Write to MH i2c: E2 08 00 6A B1 80 0D 03 02 00 00 00 00 96 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 0B 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 0B 00 6A B1 00 AD FC 98 DD C0 72 D8 08 90 00 C7 [16:15:08]RAPDU: AD FC 98 DD C0 72 D8 08 90 00 [16:15:08]wFMCommunicate OK [16:15:08]SAM_PROTO_SignData done [16:15:08]FM_MakeSignedData done [16:15:08]CreateOFDProtocolMessage [16:15:08]wFMCommunicate request_size=4 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 11 00 00 [16:15:08]Write to MH i2c: E2 08 00 6B B1 80 11 00 00 00 00 00 00 96 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 17 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 17 00 6B B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [16:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:15:08]wFMCommunicate OK [16:15:08]CreateOFDProtocolMessage done [16:15:08]OFDSenderStorePacket 191496 [16:15:08]StoreOFDPacket docnum=191496 [16:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 80 07 01 A5 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 14 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EC 02 00 35 04 06 00 DE 0D 4C 79 16 9B AD FC 98 DD C0 72 D8 08 [16:15:08]CheckFolder [16:15:08]dirname=/storage/ofd_packets [16:15:08]CheckFolder done [16:15:08]ProducePacketName [16:15:08]name=ofd_packets/00191496 [16:15:08]NVStorageSaveData ofd_packets/00191496 [16:15:08]File name is /storage/ofd_packets/00191496 [16:15:08]Write 301 bytes [16:15:08]NVStorageSaveData done [16:15:08]OFDSenderStorePacket done [16:15:08]KKMCreateOFDPacket done [16:15:08]NVStorageSaveData kkm_last_timestamp [16:15:08]File name is /storage/kkm_last_timestamp [16:15:08]Write 4 bytes [16:15:08]NVStorageSaveData done [16:15:08]ExternCall_PrintAddStr [16:15:08]wPrintStart [16:15:08]Write to MH i2c: 01 00 00 6C B1 1D [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: 01 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: 01 07 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: 01 07 00 6C B1 00 00 00 00 00 FF 0F 32 [16:15:08]RasterBufferAndPrint [16:15:08]line Счет N : (1)30793 [16:15:08]line ИНН: 02508201610067 [16:15:08]line Контрольно-Кассовый Чек [16:15:08]line ПРОДАЖА [16:15:08]line ТРК (МРК, ГНК) : 12 [16:15:08]line Товар: 2710124130 [16:15:08]line Аи-92-К-5 [16:15:08]line 4.490 * 66.90 [16:15:08]line = 300.38 [16:15:08]line НДС 12% НСП 1% [16:15:08]line > о реализуемом товаре [16:15:08]line ОКРУГЛЕНИЕ: -0.38 [16:15:08]line ИТОГО: 300.00 [16:15:08]line Внесено: 300.00 [16:15:08]line СДАЧА: 0.00 [16:15:08]line НСП 1% : 2.66 [16:15:08]line НДС 12% : 31.90 [16:15:08]line Наличными: 300.00 [16:15:08]line Безнал.: 0.00 [16:15:08]line Место: АЗС № 170 "Партнер Нефть" [16:15:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:15:08]line СНО: Общий режим [16:15:08]line Чек 235 25.10.2024 16:15 [16:15:08]line Смена: 540 ФФД: 1.0 [16:15:08]line ЗНМ: 0300000110 [16:15:08]line РНМ: 0000000000091776 [16:15:08]line Версия ККМ: 001 [16:15:08]line ФМ: 0000000000871754 [16:15:08]line ФД: 191496 [16:15:08]line ФПД: 244148698945179 [16:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191496&fm=244148698945179&tin=02508201610067®Number=0000000000091776&sum=30000 [16:15:08]OFD Sender: Processing packet 191496 [packets to send 75, broken 74] [16:15:08]ProducePacketName [16:15:08]name=ofd_packets/00191496 [16:15:08]OFD Sender: To server: pG, [16:15:08]CommunicateWithHost lk.salyk.kg:30040 [16:15:08]ConnectInit lk.salyk.kg [16:15:08]written 0, free lines is 4095 [16:15:08]Connected sock=11 [16:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 80 07 01 A5 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 14 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EC 02 00 35 04 06 00 DE 0D 4C 79 16 9B AD FC 98 DD C0 72 D8 08 [16:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 20 27 47 00 59 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 31 37 35 34 10 04 04 00 08 EC 02 00 F4 03 04 00 E2 68 1B 67 B6 04 01 00 00 DA E4 2E 0B BA B8 CD 96 [16:15:09]CommunicateWithHost err = 0 [16:15:09]CheckOFDResponse [16:15:09]1017 (14) - 77093643461234 [16:15:09]1041 (16) - 0000000000871754 [16:15:09]1040 (4) - 191496 [16:15:09]1012 (4) - 25.10.2024 09:46 [16:15:09]1206 (1) - 0 [16:15:09]OFD Sender: Remove packet 191496 [16:15:09]ProducePacketName [16:15:09]name=ofd_packets/00191496 [16:15:09]NVStorageDeleteData [16:15:09]Write to MH i2c: 01 00 00 97 B1 48 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: 01 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: 01 07 00 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: 01 07 00 97 B1 00 00 00 00 00 C5 0C 20 [16:15:09]RasterBufferAndPrint [16:15:09]line [16:15:09]line [16:15:09]line [16:15:09]line [16:15:09]line [16:15:09]written 0, free lines is 3275 [16:15:09]MH_Cut [16:15:09]Write to MH i2c: D1 01 00 9E B1 01 21 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: D1 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: D1 01 00 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: D1 01 00 9E B1 00 20 [16:15:09]Write to MH i2c: 01 00 00 9F B1 50 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]OFD Sender: No OFD packet to send [16:15:10]*** Cut start [16:15:10]*** Partial cut [16:15:10]*** CUTSNS_PIN = 1 [16:15:10]*** CUTSNS_PIN = 0 [16:15:10]*** Brake cut motor [16:15:10]Read from MH i2c: 01 [16:15:10]*** Stop cut motor [16:15:10]*** Cut end [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: 01 07 00 [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: 01 07 00 9F B1 00 00 00 00 00 FF 0F 65 [16:15:10]process_action close_receipt done [16:15:10]requested_data is exist [16:15:10]produce_requested_data [16:15:10]requested_item fm.sn is exist - process it [16:15:10]wFMCommunicate request_size=4 [16:15:10]MH_SAM_APDU [16:15:10]CAPDU: 80 11 00 00 [16:15:10]Write to MH i2c: E2 08 00 A0 B1 80 11 00 00 00 00 00 00 CB [16:15:10]Write i2c OK [16:15:10]MH_I2C_Read... [16:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:10]Read from MH i2c: E2 [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: E2 17 00 [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: E2 17 00 A0 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [16:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:15:10]wFMCommunicate OK [16:15:10]requested_item fd.num is exist - process it [16:15:10]SAM_PROTO_GetFieldsCounters [16:15:10]wFMCommunicate request_size=4 [16:15:10]MH_SAM_APDU [16:15:10]CAPDU: 80 13 00 00 [16:15:10]Write to MH i2c: E2 08 00 A1 B1 80 13 00 00 00 00 00 00 CE [16:15:10]Write i2c OK [16:15:10]MH_I2C_Read... [16:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:10]Read from MH i2c: E2 [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: E2 62 00 [16:15:10]MH_I2C_Read... [16:15:10]Read from MH i2c: E2 62 00 A1 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:10]wFMCommunicate OK [16:15:10]SAM_PROTO_GetFieldsCounters done [16:15:10]requested_item shift.num is exist - process it [16:15:10]requested_item shift.opened is exist - process it [16:15:10]req_shift_opened [16:15:10]FM_GetShiftState [16:15:10]SAM_PROTO_GetShiftState [16:15:10]wFMCommunicate request_size=4 [16:15:10]MH_SAM_APDU [16:15:10]CAPDU: 80 13 01 00 [16:15:10]Write to MH i2c: E2 08 00 A2 B1 80 13 01 00 00 00 00 00 D0 [16:15:10]Write i2c OK [16:15:10]MH_I2C_Read... [16:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:11]Read from MH i2c: E2 [16:15:11]MH_I2C_Read... [16:15:11]Read from MH i2c: E2 0E 00 [16:15:11]MH_I2C_Read... [16:15:11]Read from MH i2c: E2 0E 00 A2 B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 93 [16:15:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:15:11]wFMCommunicate OK [16:15:11]SAM_PROTO_GetShiftState done [16:15:11]FM_GetShiftState done [16:15:11]req_shift_opened done [16:15:11]requested_item shift.open_date is exist - process it [16:15:11]req_shift_open_date [16:15:11]req_shift_open_date done [16:15:11]produce_requested_data done [16:15:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191496,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:15:11]process_action_free close_receipt [16:15:11]json_value_free [16:15:11]json_value_free done [16:15:11]process_json_proto returns [16:15:11]Send response to host [16:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191496,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:15:11]free response buf [16:15:11]execute_script done [16:15:11]execute_script returns [16:15:11]free content buf [16:15:11]Sock 8.Close socket [16:15:11]Sock 8.Thread stoped [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:11]accept exits with 9 [16:16:11]New connection [16:16:11]New thread 3066817892 created [16:16:11]Thread 3066961252 joined [16:16:11]Waiting for new connection... [16:16:11] Sock 9.Parse request [16:16:11]Sock 9.Check first char [16:16:11]Sock 9.First char is OK [16:16:11]request: POST /json_proto HTTP/1.0 [16:16:11]Method: POST [16:16:11]URL: /json_proto [16:16:11]Method is POST - this is cgi request [16:16:11]url: /json_proto [16:16:11]query_string will be loaded in cgi processing [16:16:11]execute_cgi json_proto POST (null) [16:16:11]execute_cgi path=json_proto method=POST [16:16:11]POST find Content-Length [16:16:11]Host: 172.17.63.131:8080 [16:16:11]Content-Length: 681 [16:16:11]Content-Type: application/json [16:16:11] [16:16:11]POST finish read [16:16:11]Found Content-Length = 681 [16:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:11]execute_script... [16:16:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:11]POST & json_proto [16:16:11]process_json_proto [16:16:11]json parsed OK: [16:16:11]protocol is kg_v1.0 [16:16:11]action value=close_receipt [16:16:11]process_action close_receipt [16:16:11]cmd_close_receipt [16:16:11]MH_GetDate [16:16:11]Write to MH i2c: F0 00 00 A3 B1 43 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: F0 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: F0 09 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: F0 09 00 A3 B1 00 55 C4 1B 67 22 05 6E 64 E0 [16:16:11]GetLastDocTimeStamp 1729872916 [16:16:11]current date 1729872981 [16:16:11]FM_GetShiftState [16:16:11]SAM_PROTO_GetShiftState [16:16:11]wFMCommunicate request_size=4 [16:16:11]MH_SAM_APDU [16:16:11]CAPDU: 80 13 01 00 [16:16:11]Write to MH i2c: E2 08 00 A4 B1 80 13 01 00 00 00 00 00 D2 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:11]Read from MH i2c: E2 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 0E 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 0E 00 A4 B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 95 [16:16:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:16:11]wFMCommunicate OK [16:16:11]SAM_PROTO_GetShiftState done [16:16:11]FM_GetShiftState done [16:16:11]opened in 1729816399 [16:16:11]opened+sec_in_day 1729902799 [16:16:11]quantity*price = 110050 [16:16:11]sum+1 = 110052 [16:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 236 25.10.2024 16:16 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191497 ФПД: 209093391009536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191497&fm=209093391009536&tin=02508201610067®Number=0000000000091776&sum=110000 [16:16:12]StoreToDocumentArchive [16:16:12]shift 540 fd 191497 [16:16:12]save to /storage/0540/doc_00191497 [16:16:12]save last doc name /storage/0540/doc_00191497 to /storage/kkm_last_doc_name [16:16:12]save OK [16:16:12]Clear old archive folders... [16:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:12]tlvbuf is 01789BD0 [16:16:12]SAM_PROTO_ClearQueue [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 09 00 00 [16:16:12]Write to MH i2c: E2 08 00 B1 B1 80 09 00 00 00 00 00 00 D4 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 03 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 03 00 B1 B1 00 90 00 D6 [16:16:12]RAPDU: 90 00 [16:16:12]wFMCommunicate OK [16:16:12]SAM_PROTO_ClearQueue done [16:16:12]KKMCreateOFDPacket [16:16:12]OFDProtocolAddRootSTLVToBuf [16:16:12]FM_MakeSignedData [16:16:12]FM_MakeSignedData [16:16:12]SAM_PROTO_SignData [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 0D 01 02 [16:16:12]Write to MH i2c: E2 08 00 B2 B1 80 0D 01 02 00 00 00 00 DC [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 03 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 03 00 B2 B1 00 90 00 D7 [16:16:12]RAPDU: 90 00 [16:16:12]wFMCommunicate OK [16:16:12]wFMCommunicate request_size=255 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 55 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EC 02 00 35 04 06 00 BE [16:16:12]Write to MH i2c: E2 02 01 B3 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 55 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EC 02 00 35 04 06 00 BE 00 00 F5 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 03 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 03 00 B3 B1 00 90 00 D8 [16:16:13]RAPDU: 90 00 [16:16:13]wFMCommunicate OK [16:16:13]wFMCommunicate request_size=10 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 0D 02 02 05 2B 59 4B C7 00 [16:16:13]Write to MH i2c: E2 0D 00 B4 B1 80 0D 02 02 05 00 2B 59 4B C7 00 00 00 7F [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 03 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 03 00 B4 B1 00 90 00 D9 [16:16:13]RAPDU: 90 00 [16:16:13]wFMCommunicate OK [16:16:13]wFMCommunicate request_size=4 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 0D 03 02 [16:16:13]Write to MH i2c: E2 08 00 B5 B1 80 0D 03 02 00 00 00 00 E1 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 0B 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 0B 00 B5 B1 00 95 0E DE CE CC 3A 1C D4 90 00 27 [16:16:13]RAPDU: 95 0E DE CE CC 3A 1C D4 90 00 [16:16:13]wFMCommunicate OK [16:16:13]SAM_PROTO_SignData done [16:16:13]FM_MakeSignedData done [16:16:13]CreateOFDProtocolMessage [16:16:13]wFMCommunicate request_size=4 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 11 00 00 [16:16:13]Write to MH i2c: E2 08 00 B6 B1 80 11 00 00 00 00 00 00 E1 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 17 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 17 00 B6 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [16:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:16:13]wFMCommunicate OK [16:16:13]CreateOFDProtocolMessage done [16:16:13]OFDSenderStorePacket 191497 [16:16:13]StoreOFDPacket docnum=191497 [16:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 7A 07 01 8A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 55 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EC 02 00 35 04 06 00 BE 2B 59 4B C7 00 95 0E DE CE CC 3A 1C D4 [16:16:13]CheckFolder [16:16:13]dirname=/storage/ofd_packets [16:16:13]CheckFolder done [16:16:13]ProducePacketName [16:16:13]name=ofd_packets/00191497 [16:16:13]NVStorageSaveData ofd_packets/00191497 [16:16:13]File name is /storage/ofd_packets/00191497 [16:16:13]Write 301 bytes [16:16:13]NVStorageSaveData done [16:16:13]OFDSenderStorePacket done [16:16:13]KKMCreateOFDPacket done [16:16:13]NVStorageSaveData kkm_last_timestamp [16:16:13]File name is /storage/kkm_last_timestamp [16:16:13]Write 4 bytes [16:16:13]NVStorageSaveData done [16:16:13]ExternCall_PrintAddStr [16:16:13]wPrintStart [16:16:13]Write to MH i2c: 01 00 00 B7 B1 68 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: 01 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: 01 07 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: 01 07 00 B7 B1 00 00 00 00 00 FF 0F 7D [16:16:13]RasterBufferAndPrint [16:16:13]line Счет N : (1)30794 [16:16:13]line ИНН: 02508201610067 [16:16:13]line Контрольно-Кассовый Чек [16:16:13]line ПРОДАЖА [16:16:13]line ТРК (МРК, ГНК) : 21 [16:16:13]line Товар: 2710124130 [16:16:13]line Аи-92-К-5 [16:16:13]line 16.450 * 66.90 [16:16:13]line = 1100.51 [16:16:13]line НДС 12% НСП 1% [16:16:13]line > о реализуемом товаре [16:16:13]line ОКРУГЛЕНИЕ: -0.51 [16:16:13]line ИТОГО: 1100.00 [16:16:13]line Внесено: 1100.00 [16:16:13]line СДАЧА: 0.00 [16:16:13]line НСП 1% : 9.74 [16:16:13]line НДС 12% : 116.87 [16:16:13]line Наличными: 1100.00 [16:16:13]line Безнал.: 0.00 [16:16:13]line Место: АЗС № 170 "Партнер Нефть" [16:16:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:16:13]line СНО: Общий режим [16:16:13]line Чек 236 25.10.2024 16:16 [16:16:13]line Смена: 540 ФФД: 1.0 [16:16:13]line ЗНМ: 0300000110 [16:16:13]line РНМ: 0000000000091776 [16:16:13]line Версия ККМ: 001 [16:16:13]line ФМ: 0000000000871754 [16:16:13]line ФД: 191497 [16:16:13]line ФПД: 209093391009536 [16:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191497&fm=209093391009536&tin=02508201610067®Number=0000000000091776&sum=110000 [16:16:13]OFD Sender: Processing packet 191497 [packets to send 75, broken 74] [16:16:13]ProducePacketName [16:16:13]name=ofd_packets/00191497 [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]written 0, free lines is 4095 [16:16:13]Connected sock=10 [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 31 37 35 34 0F 01 00 00 82 7A 07 01 8A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 55 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EC 02 00 35 04 06 00 BE 2B 59 4B C7 00 95 0E DE CE CC 3A 1C D4 [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 31 37 35 34 4F 00 00 00 9C A7 47 00 FA 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 31 37 35 34 10 04 04 00 09 EC 02 00 F4 03 04 00 23 69 1B 67 B6 04 01 00 00 FF 65 34 DE DB E7 89 86 [16:16:13]CommunicateWithHost err = 0 [16:16:13]CheckOFDResponse [16:16:13]1017 (14) - 77093643461234 [16:16:13]1041 (16) - 0000000000871754 [16:16:13]1040 (4) - 191497 [16:16:13]1012 (4) - 25.10.2024 09:47 [16:16:13]1206 (1) - 0 [16:16:13]OFD Sender: Remove packet 191497 [16:16:13]ProducePacketName [16:16:13]name=ofd_packets/00191497 [16:16:13]NVStorageDeleteData [16:16:14]Write to MH i2c: 01 00 00 E2 B1 93 [16:16:14]Write i2c OK [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: 01 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: 01 07 00 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: 01 07 00 E2 B1 00 00 00 00 00 C6 0C 6C [16:16:14]RasterBufferAndPrint [16:16:14]line [16:16:14]line [16:16:14]line [16:16:14]line [16:16:14]line [16:16:14]written 0, free lines is 3275 [16:16:14]MH_Cut [16:16:14]Write to MH i2c: D1 01 00 E9 B1 01 6C [16:16:14]Write i2c OK [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: D1 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: D1 01 00 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: D1 01 00 E9 B1 00 6B [16:16:14]Write to MH i2c: 01 00 00 EA B1 9B [16:16:14]Write i2c OK [16:16:14]MH_I2C_Read... [16:16:14]OFD Sender: No OFD packet to send [16:16:14]*** Cut start [16:16:14]*** Partial cut [16:16:14]*** CUTSNS_PIN = 1 [16:16:14]*** CUTSNS_PIN = 0 [16:16:15]*** Brake cut motor [16:16:15]Read from MH i2c: 01 [16:16:15]MH_I2C_Read... [16:16:15]*** Stop cut motor [16:16:15]*** Cut end [16:16:15]Read from MH i2c: 01 07 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: 01 07 00 EA B1 00 00 00 00 00 FF 0F B0 [16:16:15]process_action close_receipt done [16:16:15]requested_data is exist [16:16:15]produce_requested_data [16:16:15]requested_item fm.sn is exist - process it [16:16:15]wFMCommunicate request_size=4 [16:16:15]MH_SAM_APDU [16:16:15]CAPDU: 80 11 00 00 [16:16:15]Write to MH i2c: E2 08 00 EB B1 80 11 00 00 00 00 00 00 16 [16:16:15]Write i2c OK [16:16:15]MH_I2C_Read... [16:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:15]Read from MH i2c: E2 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 17 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 17 00 EB B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [16:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:16:15]wFMCommunicate OK [16:16:15]requested_item fd.num is exist - process it [16:16:15]SAM_PROTO_GetFieldsCounters [16:16:15]wFMCommunicate request_size=4 [16:16:15]MH_SAM_APDU [16:16:15]CAPDU: 80 13 00 00 [16:16:15]Write to MH i2c: E2 08 00 EC B1 80 13 00 00 00 00 00 00 19 [16:16:15]Write i2c OK [16:16:15]MH_I2C_Read... [16:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:15]Read from MH i2c: E2 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 62 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 62 00 EC B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [16:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:15]wFMCommunicate OK [16:16:15]SAM_PROTO_GetFieldsCounters done [16:16:15]requested_item shift.num is exist - process it [16:16:15]requested_item shift.opened is exist - process it [16:16:15]req_shift_opened [16:16:15]FM_GetShiftState [16:16:15]SAM_PROTO_GetShiftState [16:16:15]wFMCommunicate request_size=4 [16:16:15]MH_SAM_APDU [16:16:15]CAPDU: 80 13 01 00 [16:16:15]Write to MH i2c: E2 08 00 ED B1 80 13 01 00 00 00 00 00 1B [16:16:15]Write i2c OK [16:16:15]MH_I2C_Read... [16:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:15]Read from MH i2c: E2 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 0E 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 0E 00 ED B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DE [16:16:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:16:15]wFMCommunicate OK [16:16:15]SAM_PROTO_GetShiftState done [16:16:15]FM_GetShiftState done [16:16:15]req_shift_opened done [16:16:15]requested_item shift.open_date is exist - process it [16:16:15]req_shift_open_date [16:16:15]req_shift_open_date done [16:16:15]produce_requested_data done [16:16:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191497,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:16:15]process_action_free close_receipt [16:16:15]json_value_free [16:16:15]json_value_free done [16:16:15]process_json_proto returns [16:16:15]Send response to host [16:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191497,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:16:15]free response buf [16:16:15]execute_script done [16:16:15]execute_script returns [16:16:15]free content buf [16:16:15]Sock 9.Close socket [16:16:15]Sock 9.Thread stoped [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:12]accept exits with 8 [16:17:12]New connection [16:17:12]New thread 3066961252 created [16:17:12]Thread 3066817892 joined [16:17:12]Waiting for new connection... [16:17:12] Sock 8.Parse request [16:17:12]Sock 8.Check first char [16:17:12]Sock 8.First char is OK [16:17:12]request: POST /json_proto HTTP/1.0 [16:17:12]Method: POST [16:17:12]URL: /json_proto [16:17:12]Method is POST - this is cgi request [16:17:12]url: /json_proto [16:17:12]query_string will be loaded in cgi processing [16:17:12]execute_cgi json_proto POST (null) [16:17:12]execute_cgi path=json_proto method=POST [16:17:12]POST find Content-Length [16:17:12]Host: 172.17.63.131:8080 [16:17:12]Content-Length: 676 [16:17:12]Content-Type: application/json [16:17:12] [16:17:12]POST finish read [16:17:12]Found Content-Length = 676 [16:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:12]execute_script... [16:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:12]POST & json_proto [16:17:12]process_json_proto [16:17:12]json parsed OK: [16:17:12]protocol is kg_v1.0 [16:17:12]action value=close_receipt [16:17:12]process_action close_receipt [16:17:12]cmd_close_receipt [16:17:12]MH_GetDate [16:17:12]Write to MH i2c: F0 00 00 EE B1 8E [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 09 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 09 00 EE B1 00 92 C4 1B 67 22 05 6E 64 68 [16:17:12]GetLastDocTimeStamp 1729872981 [16:17:12]current date 1729873042 [16:17:12]FM_GetShiftState [16:17:12]SAM_PROTO_GetShiftState [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 13 01 00 [16:17:12]Write to MH i2c: E2 08 00 EF B1 80 13 01 00 00 00 00 00 1D [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 EF B1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [16:17:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:17:12]wFMCommunicate OK [16:17:12]SAM_PROTO_GetShiftState done [16:17:12]FM_GetShiftState done [16:17:12]opened in 1729816399 [16:17:12]opened+sec_in_day 1729902799 [16:17:12]quantity*price = 60009 [16:17:12]sum+1 = 60010 [16:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 237 25.10.2024 16:17 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191498 ФПД: 145282390028135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191498&fm=145282390028135&tin=02508201610067®Number=0000000000091776&sum=60000 [16:17:14]StoreToDocumentArchive [16:17:14]shift 540 fd 191498 [16:17:14]save to /storage/0540/doc_00191498 [16:17:14]save last doc name /storage/0540/doc_00191498 to /storage/kkm_last_doc_name [16:17:14]save OK [16:17:14]Clear old archive folders... [16:17:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:14]tlvbuf is 015EF680 [16:17:14]SAM_PROTO_ClearQueue [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 09 00 00 [16:17:14]Write to MH i2c: E2 08 00 FC B1 80 09 00 00 00 00 00 00 1F [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 FC B1 00 90 00 21 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]SAM_PROTO_ClearQueue done [16:17:14]KKMCreateOFDPacket [16:17:14]OFDProtocolAddRootSTLVToBuf [16:17:14]FM_MakeSignedData [16:17:14]FM_MakeSignedData [16:17:14]SAM_PROTO_SignData [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 01 02 [16:17:14]Write to MH i2c: E2 08 00 FD B1 80 0D 01 02 00 00 00 00 27 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 FD B1 00 90 00 22 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]wFMCommunicate request_size=255 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 92 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EC 02 00 35 04 06 00 84 [16:17:14]Write to MH i2c: E2 02 01 FE B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 92 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EC 02 00 35 04 06 00 84 00 00 F7 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 FE B1 00 90 00 23 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]wFMCommunicate request_size=10 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 02 02 05 22 31 3F EF 67 [16:17:14]Write to MH i2c: E2 0D 00 FF B1 80 0D 02 02 05 00 22 31 3F EF 67 00 00 1C [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 FF B1 00 90 00 24 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 03 02 [16:17:14]Write to MH i2c: E2 08 00 00 B2 80 0D 03 02 00 00 00 00 2D [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]OFD Sender: No OFD packet to send [16:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0B 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0B 00 00 B2 00 50 AE 8F 3F B1 6D 85 8D 90 00 2A [16:17:14]RAPDU: 50 AE 8F 3F B1 6D 85 8D 90 00 [16:17:14]wFMCommunicate OK [16:17:14]SAM_PROTO_SignData done [16:17:14]FM_MakeSignedData done [16:17:14]CreateOFDProtocolMessage [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 11 00 00 [16:17:14]Write to MH i2c: E2 08 00 01 B2 80 11 00 00 00 00 00 00 2D [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 17 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 17 00 01 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [16:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:17:14]wFMCommunicate OK [16:17:14]CreateOFDProtocolMessage done [16:17:14]OFDSenderStorePacket 191498 [16:17:14]StoreOFDPacket docnum=191498 [16:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 43 07 01 2E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 92 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EC 02 00 35 04 06 00 84 22 31 3F EF 67 50 AE 8F 3F B1 6D 85 8D [16:17:14]CheckFolder [16:17:14]dirname=/storage/ofd_packets [16:17:14]CheckFolder done [16:17:14]ProducePacketName [16:17:14]name=ofd_packets/00191498 [16:17:14]NVStorageSaveData ofd_packets/00191498 [16:17:14]File name is /storage/ofd_packets/00191498 [16:17:14]Write 301 bytes [16:17:14]NVStorageSaveData done [16:17:14]OFDSenderStorePacket done [16:17:14]KKMCreateOFDPacket done [16:17:14]NVStorageSaveData kkm_last_timestamp [16:17:14]File name is /storage/kkm_last_timestamp [16:17:14]Write 4 bytes [16:17:14]NVStorageSaveData done [16:17:14]ExternCall_PrintAddStr [16:17:14]wPrintStart [16:17:14]Write to MH i2c: 01 00 00 02 B2 B4 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 02 B2 00 00 00 00 00 FF 0F C9 [16:17:14]RasterBufferAndPrint [16:17:14]line Счет N : (1)30796 [16:17:14]line ИНН: 02508201610067 [16:17:14]line Контрольно-Кассовый Чек [16:17:14]line ПРОДАЖА [16:17:14]line ТРК (МРК, ГНК) : 21 [16:17:14]line Товар: 2710124130 [16:17:14]line Аи-92-К-5 [16:17:14]line 8.970 * 66.90 [16:17:14]line = 600.09 [16:17:14]line НДС 12% НСП 1% [16:17:14]line > о реализуемом товаре [16:17:14]line ОКРУГЛЕНИЕ: -0.09 [16:17:14]line ИТОГО: 600.00 [16:17:14]line Внесено: 600.00 [16:17:14]line СДАЧА: 0.00 [16:17:14]line НСП 1% : 5.31 [16:17:14]line НДС 12% : 63.73 [16:17:14]line Наличными: 600.00 [16:17:14]line Безнал.: 0.00 [16:17:14]line Место: АЗС № 170 "Партнер Нефть" [16:17:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:17:14]line СНО: Общий режим [16:17:14]line Чек 237 25.10.2024 16:17 [16:17:14]line Смена: 540 ФФД: 1.0 [16:17:14]line ЗНМ: 0300000110 [16:17:14]line РНМ: 0000000000091776 [16:17:14]line Версия ККМ: 001 [16:17:14]line ФМ: 0000000000871754 [16:17:14]line ФД: 191498 [16:17:14]line ФПД: 145282390028135 [16:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191498&fm=145282390028135&tin=02508201610067®Number=0000000000091776&sum=60000 [16:17:14]OFD Sender: Processing packet 191498 [packets to send 75, broken 74] [16:17:14]ProducePacketName [16:17:14]name=ofd_packets/00191498 [16:17:14]OFD Sender: To server: pG, [16:17:14]CommunicateWithHost lk.salyk.kg:30040 [16:17:14]ConnectInit lk.salyk.kg [16:17:14]written 0, free lines is 4095 [16:17:15]Connected sock=10 [16:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 43 07 01 2E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 92 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EC 02 00 35 04 06 00 84 22 31 3F EF 67 50 AE 8F 3F B1 6D 85 8D [16:17:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 32 47 00 D6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EC 02 00 F4 03 04 00 60 69 1B 67 B6 04 01 00 00 DF A2 71 47 0F 04 94 3D [16:17:15]CommunicateWithHost err = 0 [16:17:15]CheckOFDResponse [16:17:15]1017 (14) - 77093643461234 [16:17:15]1041 (16) - 0000000000871754 [16:17:15]1040 (4) - 191498 [16:17:15]1012 (4) - 25.10.2024 09:48 [16:17:15]1206 (1) - 0 [16:17:15]OFD Sender: Remove packet 191498 [16:17:15]ProducePacketName [16:17:15]name=ofd_packets/00191498 [16:17:15]NVStorageDeleteData [16:17:15]Write to MH i2c: 01 00 00 2D B2 DF [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: 01 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: 01 07 00 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: 01 07 00 2D B2 00 00 00 00 00 C1 0C B3 [16:17:15]RasterBufferAndPrint [16:17:15]line [16:17:15]line [16:17:15]line [16:17:15]line [16:17:15]line [16:17:15]written 0, free lines is 3274 [16:17:15]MH_Cut [16:17:15]Write to MH i2c: D1 01 00 34 B2 01 B8 [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: D1 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: D1 01 00 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: D1 01 00 34 B2 00 B7 [16:17:15]Write to MH i2c: 01 00 00 35 B2 E7 [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:15]OFD Sender: No OFD packet to send [16:17:16]*** Cut start [16:17:16]*** Partial cut [16:17:16]*** CUTSNS_PIN = 1 [16:17:16]*** CUTSNS_PIN = 0 [16:17:16]*** Brake cut motor [16:17:16]Read from MH i2c: 01 [16:17:16]MH_I2C_Read... [16:17:16]*** Stop cut motor [16:17:16]*** Cut end [16:17:16]Read from MH i2c: 01 07 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 35 B2 00 00 00 00 00 FF 0F FC [16:17:16]process_action close_receipt done [16:17:16]requested_data is exist [16:17:16]produce_requested_data [16:17:16]requested_item fm.sn is exist - process it [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 11 00 00 [16:17:16]Write to MH i2c: E2 08 00 36 B2 80 11 00 00 00 00 00 00 62 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 36 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [16:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:17:16]wFMCommunicate OK [16:17:16]requested_item fd.num is exist - process it [16:17:16]SAM_PROTO_GetFieldsCounters [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 13 00 00 [16:17:16]Write to MH i2c: E2 08 00 37 B2 80 13 00 00 00 00 00 00 65 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 62 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 62 00 37 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_GetFieldsCounters done [16:17:17]requested_item shift.num is exist - process it [16:17:17]requested_item shift.opened is exist - process it [16:17:17]req_shift_opened [16:17:17]FM_GetShiftState [16:17:17]SAM_PROTO_GetShiftState [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 13 01 00 [16:17:17]Write to MH i2c: E2 08 00 38 B2 80 13 01 00 00 00 00 00 67 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0E 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0E 00 38 B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2A [16:17:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_GetShiftState done [16:17:17]FM_GetShiftState done [16:17:17]req_shift_opened done [16:17:17]requested_item shift.open_date is exist - process it [16:17:17]req_shift_open_date [16:17:17]req_shift_open_date done [16:17:17]produce_requested_data done [16:17:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191498,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:17:17]process_action_free close_receipt [16:17:17]json_value_free [16:17:17]json_value_free done [16:17:17]process_json_proto returns [16:17:17]Send response to host [16:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191498,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:17:17]free response buf [16:17:17]execute_script done [16:17:17]execute_script returns [16:17:17]free content buf [16:17:17]Sock 8.Close socket [16:17:17]Sock 8.Thread stoped [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:36]accept exits with 9 [16:18:36]New connection [16:18:36]New thread 3066817892 created [16:18:36]Thread 3066961252 joined [16:18:36]Waiting for new connection... [16:18:36] Sock 9.Parse request [16:18:36]Sock 9.Check first char [16:18:36]Sock 9.First char is OK [16:18:36]request: POST /json_proto HTTP/1.0 [16:18:36]Method: POST [16:18:36]URL: /json_proto [16:18:36]Method is POST - this is cgi request [16:18:36]url: /json_proto [16:18:36]query_string will be loaded in cgi processing [16:18:36]execute_cgi json_proto POST (null) [16:18:36]execute_cgi path=json_proto method=POST [16:18:36]POST find Content-Length [16:18:36]Host: 172.17.63.131:8080 [16:18:36]Content-Length: 677 [16:18:36]Content-Type: application/json [16:18:36] [16:18:36]POST finish read [16:18:36]Found Content-Length = 677 [16:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:36]execute_script... [16:18: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)30797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:36]POST & json_proto [16:18:36]process_json_proto [16:18:36]json parsed OK: [16:18:36]protocol is kg_v1.0 [16:18:36]action value=close_receipt [16:18:36]process_action close_receipt [16:18:36]cmd_close_receipt [16:18:36]MH_GetDate [16:18:36]Write to MH i2c: F0 00 00 39 B2 DA [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: F0 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: F0 09 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: F0 09 00 39 B2 00 E6 C4 1B 67 22 05 6E 64 08 [16:18:36]GetLastDocTimeStamp 1729873042 [16:18:36]current date 1729873126 [16:18:36]FM_GetShiftState [16:18:36]SAM_PROTO_GetShiftState [16:18:36]wFMCommunicate request_size=4 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 13 01 00 [16:18:36]Write to MH i2c: E2 08 00 3A B2 80 13 01 00 00 00 00 00 69 [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 0E 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 0E 00 3A B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2C [16:18:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:18:36]wFMCommunicate OK [16:18:36]SAM_PROTO_GetShiftState done [16:18:36]FM_GetShiftState done [16:18:36]opened in 1729816399 [16:18:36]opened+sec_in_day 1729902799 [16:18:36]quantity*price = 70044 [16:18:36]sum+1 = 70045 [16:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 238 25.10.2024 16:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191499 ФПД: 271170794162088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191499&fm=271170794162088&tin=02508201610067®Number=0000000000091776&sum=70000 [16:18:37]StoreToDocumentArchive [16:18:37]shift 540 fd 191499 [16:18:37]save to /storage/0540/doc_00191499 [16:18:37]save last doc name /storage/0540/doc_00191499 to /storage/kkm_last_doc_name [16:18:37]save OK [16:18:37]Clear old archive folders... [16:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:37]tlvbuf is 017F1140 [16:18:37]SAM_PROTO_ClearQueue [16:18:37]wFMCommunicate request_size=4 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 09 00 00 [16:18:37]Write to MH i2c: E2 08 00 47 B2 80 09 00 00 00 00 00 00 6B [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 47 B2 00 90 00 6D [16:18:37]RAPDU: 90 00 [16:18:37]wFMCommunicate OK [16:18:37]SAM_PROTO_ClearQueue done [16:18:37]KKMCreateOFDPacket [16:18:37]OFDProtocolAddRootSTLVToBuf [16:18:37]FM_MakeSignedData [16:18:37]FM_MakeSignedData [16:18:37]SAM_PROTO_SignData [16:18:37]wFMCommunicate request_size=4 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 0D 01 02 [16:18:37]Write to MH i2c: E2 08 00 48 B2 80 0D 01 02 00 00 00 00 73 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 48 B2 00 90 00 6E [16:18:37]RAPDU: 90 00 [16:18:37]wFMCommunicate OK [16:18:37]wFMCommunicate request_size=255 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E6 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EC 02 00 35 04 06 00 F6 [16:18:37]Write to MH i2c: E2 02 01 49 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E6 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EC 02 00 35 04 06 00 F6 00 00 3E [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 49 B2 00 90 00 6F [16:18:37]RAPDU: 90 00 [16:18:37]wFMCommunicate OK [16:18:37]wFMCommunicate request_size=10 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 0D 02 02 05 A0 DE DC 07 A8 [16:18:37]Write to MH i2c: E2 0D 00 4A B2 80 0D 02 02 05 00 A0 DE DC 07 A8 00 00 89 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 03 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 03 00 4A B2 00 90 00 70 [16:18:38]RAPDU: 90 00 [16:18:38]wFMCommunicate OK [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 0D 03 02 [16:18:38]Write to MH i2c: E2 08 00 4B B2 80 0D 03 02 00 00 00 00 78 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0B 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0B 00 4B B2 00 04 C5 F5 B2 4B B1 D9 04 90 00 C2 [16:18:38]RAPDU: 04 C5 F5 B2 4B B1 D9 04 90 00 [16:18:38]wFMCommunicate OK [16:18:38]SAM_PROTO_SignData done [16:18:38]FM_MakeSignedData done [16:18:38]CreateOFDProtocolMessage [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 11 00 00 [16:18:38]Write to MH i2c: E2 08 00 4C B2 80 11 00 00 00 00 00 00 78 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 17 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 17 00 4C B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [16:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:38]wFMCommunicate OK [16:18:38]CreateOFDProtocolMessage done [16:18:38]OFDSenderStorePacket 191499 [16:18:38]StoreOFDPacket docnum=191499 [16:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 25 07 01 F2 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E6 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EC 02 00 35 04 06 00 F6 A0 DE DC 07 A8 04 C5 F5 B2 4B B1 D9 04 [16:18:38]CheckFolder [16:18:38]dirname=/storage/ofd_packets [16:18:38]CheckFolder done [16:18:38]ProducePacketName [16:18:38]name=ofd_packets/00191499 [16:18:38]NVStorageSaveData ofd_packets/00191499 [16:18:38]File name is /storage/ofd_packets/00191499 [16:18:38]Write 301 bytes [16:18:38]NVStorageSaveData done [16:18:38]OFDSenderStorePacket done [16:18:38]KKMCreateOFDPacket done [16:18:38]NVStorageSaveData kkm_last_timestamp [16:18:38]File name is /storage/kkm_last_timestamp [16:18:38]Write 4 bytes [16:18:38]NVStorageSaveData done [16:18:38]ExternCall_PrintAddStr [16:18:38]wPrintStart [16:18:38]Write to MH i2c: 01 00 00 4D B2 FF [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 07 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 07 00 4D B2 00 00 00 00 00 FF 0F 14 [16:18:38]RasterBufferAndPrint [16:18:38]line Счет N : (1)30797 [16:18:38]line ИНН: 02508201610067 [16:18:38]line Контрольно-Кассовый Чек [16:18:38]line ПРОДАЖА [16:18:38]line ТРК (МРК, ГНК) : 12 [16:18:38]line Товар: 2710124130 [16:18:38]line Аи-92-К-5 [16:18:38]line 10.470 * 66.90 [16:18:38]line = 700.44 [16:18:38]line НДС 12% НСП 1% [16:18:38]line > о реализуемом товаре [16:18:38]line ОКРУГЛЕНИЕ: -0.44 [16:18:38]line ИТОГО: 700.00 [16:18:38]line Внесено: 700.00 [16:18:38]line СДАЧА: 0.00 [16:18:38]line НСП 1% : 6.20 [16:18:38]line НДС 12% : 74.38 [16:18:38]line Наличными: 700.00 [16:18:38]line Безнал.: 0.00 [16:18:38]line Место: АЗС № 170 "Партнер Нефть" [16:18:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:18:38]line СНО: Общий режим [16:18:38]line Чек 238 25.10.2024 16:18 [16:18:38]line Смена: 540 ФФД: 1.0 [16:18:38]line ЗНМ: 0300000110 [16:18:38]line РНМ: 0000000000091776 [16:18:38]line Версия ККМ: 001 [16:18:38]line ФМ: 0000000000871754 [16:18:38]line ФД: 191499 [16:18:38]line ФПД: 271170794162088 [16:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T161846&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191499&fm=271170794162088&tin=02508201610067®Number=0000000000091776&sum=70000 [16:18:38]OFD Sender: Processing packet 191499 [packets to send 75, broken 74] [16:18:38]ProducePacketName [16:18:38]name=ofd_packets/00191499 [16:18:38]OFD Sender: To server: pG, [16:18:38]CommunicateWithHost lk.salyk.kg:30040 [16:18:38]ConnectInit lk.salyk.kg [16:18:38]written 0, free lines is 4095 [16:18:38]Connected sock=10 [16:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 25 07 01 F2 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E6 C4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EC 02 00 35 04 06 00 F6 A0 DE DC 07 A8 04 C5 F5 B2 4B B1 D9 04 [16:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 3D 47 00 F3 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EC 02 00 F4 03 04 00 B4 69 1B 67 B6 04 01 00 00 5D FA 2B 20 CD E0 08 9B [16:18:38]CommunicateWithHost err = 0 [16:18:38]CheckOFDResponse [16:18:38]1017 (14) - 77093643461234 [16:18:38]1041 (16) - 0000000000871754 [16:18:38]1040 (4) - 191499 [16:18:38]1012 (4) - 25.10.2024 09:49 [16:18:38]1206 (1) - 0 [16:18:38]OFD Sender: Remove packet 191499 [16:18:38]ProducePacketName [16:18:38]name=ofd_packets/00191499 [16:18:38]NVStorageDeleteData [16:18:38]Write to MH i2c: 01 00 00 78 B2 2A [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 07 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: 01 07 00 78 B2 00 00 00 00 00 BF 0C FC [16:18:38]RasterBufferAndPrint [16:18:38]line [16:18:38]line [16:18:38]line [16:18:38]line [16:18:38]line [16:18:38]written 0, free lines is 3272 [16:18:38]MH_Cut [16:18:38]Write to MH i2c: D1 01 00 7F B2 01 03 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: D1 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: D1 01 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: D1 01 00 7F B2 00 02 [16:18:38]Write to MH i2c: 01 00 00 80 B2 32 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:39]OFD Sender: No OFD packet to send [16:18:39]*** Cut start [16:18:39]*** Partial cut [16:18:39]*** CUTSNS_PIN = 1 [16:18:39]*** CUTSNS_PIN = 0 [16:18:40]*** Brake cut motor [16:18:40]Read from MH i2c: 01 [16:18:40]MH_I2C_Read... [16:18:40]*** Stop cut motor [16:18:40]*** Cut end [16:18:40]Read from MH i2c: 01 07 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 80 B2 00 00 00 00 00 FF 0F 47 [16:18:40]process_action close_receipt done [16:18:40]requested_data is exist [16:18:40]produce_requested_data [16:18:40]requested_item fm.sn is exist - process it [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 11 00 00 [16:18:40]Write to MH i2c: E2 08 00 81 B2 80 11 00 00 00 00 00 00 AD [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 81 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:40]wFMCommunicate OK [16:18:40]requested_item fd.num is exist - process it [16:18:40]SAM_PROTO_GetFieldsCounters [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 13 00 00 [16:18:40]Write to MH i2c: E2 08 00 82 B2 80 13 00 00 00 00 00 00 B0 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 62 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 62 00 82 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [16:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:40]wFMCommunicate OK [16:18:40]SAM_PROTO_GetFieldsCounters done [16:18:40]requested_item shift.num is exist - process it [16:18:40]requested_item shift.opened is exist - process it [16:18:40]req_shift_opened [16:18:40]FM_GetShiftState [16:18:40]SAM_PROTO_GetShiftState [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 13 01 00 [16:18:40]Write to MH i2c: E2 08 00 83 B2 80 13 01 00 00 00 00 00 B2 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0E 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0E 00 83 B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 75 [16:18:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:18:40]wFMCommunicate OK [16:18:40]SAM_PROTO_GetShiftState done [16:18:40]FM_GetShiftState done [16:18:40]req_shift_opened done [16:18:40]requested_item shift.open_date is exist - process it [16:18:40]req_shift_open_date [16:18:40]req_shift_open_date done [16:18:40]produce_requested_data done [16:18:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191499,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:18:40]process_action_free close_receipt [16:18:40]json_value_free [16:18:40]json_value_free done [16:18:40]process_json_proto returns [16:18:40]Send response to host [16:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191499,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:18:40]free response buf [16:18:40]execute_script done [16:18:40]execute_script returns [16:18:40]free content buf [16:18:40]Sock 9.Close socket [16:18:40]Sock 9.Thread stoped [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:08]accept exits with 8 [16:20:08]New connection [16:20:08]New thread 3066961252 created [16:20:08]Thread 3066817892 joined [16:20:08]Waiting for new connection... [16:20:08] Sock 8.Parse request [16:20:08]Sock 8.Check first char [16:20:08]Sock 8.First char is OK [16:20:08]request: POST /json_proto HTTP/1.0 [16:20:08]Method: POST [16:20:08]URL: /json_proto [16:20:08]Method is POST - this is cgi request [16:20:08]url: /json_proto [16:20:08]query_string will be loaded in cgi processing [16:20:08]execute_cgi json_proto POST (null) [16:20:08]execute_cgi path=json_proto method=POST [16:20:08]POST find Content-Length [16:20:08]Host: 172.17.63.131:8080 [16:20:08]Content-Length: 676 [16:20:08]Content-Type: application/json [16:20:08] [16:20:08]POST finish read [16:20:08]Found Content-Length = 676 [16:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:08]execute_script... [16:20: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)30798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:08]POST & json_proto [16:20:08]process_json_proto [16:20:08]json parsed OK: [16:20:08]protocol is kg_v1.0 [16:20:08]action value=close_receipt [16:20:08]process_action close_receipt [16:20:08]cmd_close_receipt [16:20:08]MH_GetDate [16:20:08]Write to MH i2c: F0 00 00 84 B2 25 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 84 B2 00 42 C5 1B 67 22 05 6E 64 B0 [16:20:08]GetLastDocTimeStamp 1729873126 [16:20:08]current date 1729873218 [16:20:08]FM_GetShiftState [16:20:08]SAM_PROTO_GetShiftState [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 13 01 00 [16:20:08]Write to MH i2c: E2 08 00 85 B2 80 13 01 00 00 00 00 00 B4 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 85 B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 77 [16:20:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:20:08]wFMCommunicate OK [16:20:08]SAM_PROTO_GetShiftState done [16:20:08]FM_GetShiftState done [16:20:08]opened in 1729816399 [16:20:08]opened+sec_in_day 1729902799 [16:20:08]quantity*price = 30038 [16:20:08]sum+1 = 30039 [16:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 239 25.10.2024 16:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191500 ФПД: 249991587384632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162018&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191500&fm=249991587384632&tin=02508201610067®Number=0000000000091776&sum=30000 [16:20:09]StoreToDocumentArchive [16:20:09]shift 540 fd 191500 [16:20:09]save to /storage/0540/doc_00191500 [16:20:09]save last doc name /storage/0540/doc_00191500 to /storage/kkm_last_doc_name [16:20:09]save OK [16:20:09]Clear old archive folders... [16:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:09]tlvbuf is 0183C500 [16:20:09]SAM_PROTO_ClearQueue [16:20:09]wFMCommunicate request_size=4 [16:20:09]MH_SAM_APDU [16:20:09]CAPDU: 80 09 00 00 [16:20:09]Write to MH i2c: E2 08 00 92 B2 80 09 00 00 00 00 00 00 B6 [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:09]Read from MH i2c: E2 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 92 B2 00 90 00 B8 [16:20:09]RAPDU: 90 00 [16:20:09]wFMCommunicate OK [16:20:09]SAM_PROTO_ClearQueue done [16:20:09]KKMCreateOFDPacket [16:20:09]OFDProtocolAddRootSTLVToBuf [16:20:09]FM_MakeSignedData [16:20:09]FM_MakeSignedData [16:20:09]SAM_PROTO_SignData [16:20:09]wFMCommunicate request_size=4 [16:20:09]MH_SAM_APDU [16:20:09]CAPDU: 80 0D 01 02 [16:20:09]Write to MH i2c: E2 08 00 93 B2 80 0D 01 02 00 00 00 00 BE [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:09]Read from MH i2c: E2 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 93 B2 00 90 00 B9 [16:20:09]RAPDU: 90 00 [16:20:09]wFMCommunicate OK [16:20:09]wFMCommunicate request_size=255 [16:20:09]MH_SAM_APDU [16:20:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 42 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EC 02 00 35 04 06 00 E3 [16:20:09]Write to MH i2c: E2 02 01 94 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 42 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EC 02 00 35 04 06 00 E3 00 00 B9 [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 94 B2 00 90 00 BA [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=10 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 02 02 05 5D B3 C3 4D 38 [16:20:10]Write to MH i2c: E2 0D 00 95 B2 80 0D 02 02 05 00 5D B3 C3 4D 38 00 00 23 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 95 B2 00 90 00 BB [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 03 02 [16:20:10]Write to MH i2c: E2 08 00 96 B2 80 0D 03 02 00 00 00 00 C3 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 96 B2 00 F6 74 C6 97 E6 25 79 AF 90 00 BE [16:20:10]RAPDU: F6 74 C6 97 E6 25 79 AF 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_SignData done [16:20:10]FM_MakeSignedData done [16:20:10]CreateOFDProtocolMessage [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 11 00 00 [16:20:10]Write to MH i2c: E2 08 00 97 B2 80 11 00 00 00 00 00 00 C3 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 97 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [16:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:10]wFMCommunicate OK [16:20:10]CreateOFDProtocolMessage done [16:20:10]OFDSenderStorePacket 191500 [16:20:10]StoreOFDPacket docnum=191500 [16:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 15 07 01 65 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 42 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EC 02 00 35 04 06 00 E3 5D B3 C3 4D 38 F6 74 C6 97 E6 25 79 AF [16:20:10]CheckFolder [16:20:10]dirname=/storage/ofd_packets [16:20:10]CheckFolder done [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00191500 [16:20:10]NVStorageSaveData ofd_packets/00191500 [16:20:10]File name is /storage/ofd_packets/00191500 [16:20:10]Write 301 bytes [16:20:10]NVStorageSaveData done [16:20:10]OFDSenderStorePacket done [16:20:10]KKMCreateOFDPacket done [16:20:10]NVStorageSaveData kkm_last_timestamp [16:20:10]File name is /storage/kkm_last_timestamp [16:20:10]Write 4 bytes [16:20:10]NVStorageSaveData done [16:20:10]ExternCall_PrintAddStr [16:20:10]wPrintStart [16:20:10]Write to MH i2c: 01 00 00 98 B2 4A [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 98 B2 00 00 00 00 00 FF 0F 5F [16:20:10]RasterBufferAndPrint [16:20:10]line Счет N : (1)30798 [16:20:10]line ИНН: 02508201610067 [16:20:10]line Контрольно-Кассовый Чек [16:20:10]line ПРОДАЖА [16:20:10]line ТРК (МРК, ГНК) : 12 [16:20:10]line Товар: 2710124130 [16:20:10]line Аи-92-К-5 [16:20:10]line 4.490 * 66.90 [16:20:10]line = 300.38 [16:20:10]line НДС 12% НСП 1% [16:20:10]line > о реализуемом товаре [16:20:10]line ОКРУГЛЕНИЕ: -0.38 [16:20:10]line ИТОГО: 300.00 [16:20:10]line Внесено: 300.00 [16:20:10]line СДАЧА: 0.00 [16:20:10]line НСП 1% : 2.66 [16:20:10]line НДС 12% : 31.90 [16:20:10]line Наличными: 300.00 [16:20:10]line Безнал.: 0.00 [16:20:10]line Место: АЗС № 170 "Партнер Нефть" [16:20:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:20:10]line СНО: Общий режим [16:20:10]line Чек 239 25.10.2024 16:20 [16:20:10]line Смена: 540 ФФД: 1.0 [16:20:10]line ЗНМ: 0300000110 [16:20:10]line РНМ: 0000000000091776 [16:20:10]line Версия ККМ: 001 [16:20:10]line ФМ: 0000000000871754 [16:20:10]line ФД: 191500 [16:20:10]line ФПД: 249991587384632 [16:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162018&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191500&fm=249991587384632&tin=02508201610067®Number=0000000000091776&sum=30000 [16:20:10]OFD Sender: Processing packet 191500 [packets to send 75, broken 74] [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00191500 [16:20:10]OFD Sender: To server: pG, [16:20:10]CommunicateWithHost lk.salyk.kg:30040 [16:20:10]ConnectInit lk.salyk.kg [16:20:10]written 0, free lines is 4095 [16:20:10]Connected sock=10 [16:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 15 07 01 65 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 42 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EC 02 00 35 04 06 00 E3 5D B3 C3 4D 38 F6 74 C6 97 E6 25 79 AF [16:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CC 29 47 00 85 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EC 02 00 F4 03 04 00 10 6A 1B 67 B6 04 01 00 00 1A 4F A8 83 6D 65 A6 42 [16:20:11]CommunicateWithHost err = 0 [16:20:11]CheckOFDResponse [16:20:11]1017 (14) - 77093643461234 [16:20:11]1041 (16) - 0000000000871754 [16:20:11]1040 (4) - 191500 [16:20:11]1012 (4) - 25.10.2024 09:51 [16:20:11]1206 (1) - 0 [16:20:11]OFD Sender: Remove packet 191500 [16:20:11]ProducePacketName [16:20:11]name=ofd_packets/00191500 [16:20:11]NVStorageDeleteData [16:20:11]Write to MH i2c: 01 00 00 C3 B2 75 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 C3 B2 00 00 00 00 00 D9 0C 61 [16:20:11]RasterBufferAndPrint [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]written 0, free lines is 3300 [16:20:11]MH_Cut [16:20:11]Write to MH i2c: D1 01 00 CA B2 01 4E [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 CA B2 00 4D [16:20:11]Write to MH i2c: 01 00 00 CB B2 7D [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]OFD Sender: No OFD packet to send [16:20:11]*** Cut start [16:20:11]*** Partial cut [16:20:11]*** CUTSNS_PIN = 1 [16:20:11]*** CUTSNS_PIN = 0 [16:20:12]*** Brake cut motor [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]*** Stop cut motor [16:20:12]*** Cut end [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 CB B2 00 00 00 00 00 FF 0F 92 [16:20:12]process_action close_receipt done [16:20:12]requested_data is exist [16:20:12]produce_requested_data [16:20:12]requested_item fm.sn is exist - process it [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 11 00 00 [16:20:12]Write to MH i2c: E2 08 00 CC B2 80 11 00 00 00 00 00 00 F8 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 CC B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [16:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:12]wFMCommunicate OK [16:20:12]requested_item fd.num is exist - process it [16:20:12]SAM_PROTO_GetFieldsCounters [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 00 00 [16:20:12]Write to MH i2c: E2 08 00 CD B2 80 13 00 00 00 00 00 00 FB [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 CD B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetFieldsCounters done [16:20:12]requested_item shift.num is exist - process it [16:20:12]requested_item shift.opened is exist - process it [16:20:12]req_shift_opened [16:20:12]FM_GetShiftState [16:20:12]SAM_PROTO_GetShiftState [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 01 00 [16:20:12]Write to MH i2c: E2 08 00 CE B2 80 13 01 00 00 00 00 00 FD [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 CE B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C0 [16:20:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetShiftState done [16:20:12]FM_GetShiftState done [16:20:12]req_shift_opened done [16:20:12]requested_item shift.open_date is exist - process it [16:20:12]req_shift_open_date [16:20:12]req_shift_open_date done [16:20:12]produce_requested_data done [16:20:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191500,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:20:12]process_action_free close_receipt [16:20:12]json_value_free [16:20:12]json_value_free done [16:20:12]process_json_proto returns [16:20:12]Send response to host [16:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191500,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:20:12]free response buf [16:20:12]execute_script done [16:20:12]execute_script returns [16:20:12]free content buf [16:20:12]Sock 8.Close socket [16:20:12]Sock 8.Thread stoped [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:26]accept exits with 9 [16:20:26]New connection [16:20:26]New thread 3066817892 created [16:20:26]Thread 3066961252 joined [16:20:26]Waiting for new connection... [16:20:26] Sock 9.Parse request [16:20:26]Sock 9.Check first char [16:20:26]Sock 9.First char is OK [16:20:26]request: POST /json_proto HTTP/1.0 [16:20:26]Method: POST [16:20:26]URL: /json_proto [16:20:26]Method is POST - this is cgi request [16:20:26]url: /json_proto [16:20:26]query_string will be loaded in cgi processing [16:20:26]execute_cgi json_proto POST (null) [16:20:26]execute_cgi path=json_proto method=POST [16:20:26]POST find Content-Length [16:20:26]Host: 172.17.63.131:8080 [16:20:26]Content-Length: 676 [16:20:26]Content-Type: application/json [16:20:26] [16:20:26]POST finish read [16:20:26]Found Content-Length = 676 [16:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [16:20:26]execute_script... [16:20: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)30799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [16:20:26]POST & json_proto [16:20:26]process_json_proto [16:20:26]json parsed OK: [16:20:26]protocol is kg_v1.0 [16:20:26]action value=close_receipt [16:20:26]process_action close_receipt [16:20:26]cmd_close_receipt [16:20:26]MH_GetDate [16:20:26]Write to MH i2c: F0 00 00 CF B2 70 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: F0 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: F0 09 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: F0 09 00 CF B2 00 54 C5 1B 67 22 05 6E 64 0D [16:20:26]GetLastDocTimeStamp 1729873218 [16:20:26]current date 1729873236 [16:20:26]FM_GetShiftState [16:20:26]SAM_PROTO_GetShiftState [16:20:26]wFMCommunicate request_size=4 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 13 01 00 [16:20:26]Write to MH i2c: E2 08 00 D0 B2 80 13 01 00 00 00 00 00 FF [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 0E 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 0E 00 D0 B2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C2 [16:20:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:20:26]wFMCommunicate OK [16:20:26]SAM_PROTO_GetShiftState done [16:20:26]FM_GetShiftState done [16:20:26]opened in 1729816399 [16:20:26]opened+sec_in_day 1729902799 [16:20:26]quantity*price = 35055 [16:20:26]sum+1 = 35057 [16:20:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 240 25.10.2024 16:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191501 ФПД: 208909982835502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162036&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191501&fm=208909982835502&tin=02508201610067®Number=0000000000091776&sum=35000 [16:20:27]StoreToDocumentArchive [16:20:27]shift 540 fd 191501 [16:20:27]save to /storage/0540/doc_00191501 [16:20:27]save last doc name /storage/0540/doc_00191501 to /storage/kkm_last_doc_name [16:20:27]save OK [16:20:27]Clear old archive folders... [16:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:27]tlvbuf is 01614540 [16:20:27]SAM_PROTO_ClearQueue [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 09 00 00 [16:20:27]Write to MH i2c: E2 08 00 DD B2 80 09 00 00 00 00 00 00 01 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 DD B2 00 90 00 03 [16:20:27]RAPDU: 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_ClearQueue done [16:20:27]KKMCreateOFDPacket [16:20:27]OFDProtocolAddRootSTLVToBuf [16:20:27]FM_MakeSignedData [16:20:27]FM_MakeSignedData [16:20:27]SAM_PROTO_SignData [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 0D 01 02 [16:20:27]Write to MH i2c: E2 08 00 DE B2 80 0D 01 02 00 00 00 00 09 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 DE B2 00 90 00 04 [16:20:27]RAPDU: 90 00 [16:20:27]wFMCommunicate OK [16:20:27]wFMCommunicate request_size=255 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 54 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EC 02 00 35 04 06 00 BE [16:20:27]Write to MH i2c: E2 02 01 DF B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 54 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EC 02 00 35 04 06 00 BE 00 00 0A [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 DF B2 00 90 00 05 [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]wFMCommunicate request_size=10 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 0D 02 02 05 00 A5 51 23 2E [16:20:28]Write to MH i2c: E2 0D 00 E0 B2 80 0D 02 02 05 00 00 A5 51 23 2E 00 00 5D [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 E0 B2 00 90 00 06 [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 0D 03 02 [16:20:28]Write to MH i2c: E2 08 00 E1 B2 80 0D 03 02 00 00 00 00 0E [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0B 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0B 00 E1 B2 00 92 EA 53 DF C1 95 93 0D 90 00 B3 [16:20:28]RAPDU: 92 EA 53 DF C1 95 93 0D 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_SignData done [16:20:28]FM_MakeSignedData done [16:20:28]CreateOFDProtocolMessage [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 11 00 00 [16:20:28]Write to MH i2c: E2 08 00 E2 B2 80 11 00 00 00 00 00 00 0E [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 17 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 17 00 E2 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [16:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:28]wFMCommunicate OK [16:20:28]CreateOFDProtocolMessage done [16:20:28]OFDSenderStorePacket 191501 [16:20:28]StoreOFDPacket docnum=191501 [16:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 D5 07 01 DE 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 54 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EC 02 00 35 04 06 00 BE 00 A5 51 23 2E 92 EA 53 DF C1 95 93 0D [16:20:28]CheckFolder [16:20:28]dirname=/storage/ofd_packets [16:20:28]CheckFolder done [16:20:28]ProducePacketName [16:20:28]name=ofd_packets/00191501 [16:20:28]NVStorageSaveData ofd_packets/00191501 [16:20:28]File name is /storage/ofd_packets/00191501 [16:20:28]Write 301 bytes [16:20:28]NVStorageSaveData done [16:20:28]OFDSenderStorePacket done [16:20:28]KKMCreateOFDPacket done [16:20:28]NVStorageSaveData kkm_last_timestamp [16:20:28]File name is /storage/kkm_last_timestamp [16:20:28]Write 4 bytes [16:20:28]NVStorageSaveData done [16:20:28]ExternCall_PrintAddStr [16:20:28]wPrintStart [16:20:28]Write to MH i2c: 01 00 00 E3 B2 95 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 07 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 07 00 E3 B2 00 00 00 00 00 FF 0F AA [16:20:28]RasterBufferAndPrint [16:20:28]line Счет N : (1)30799 [16:20:28]line ИНН: 02508201610067 [16:20:28]line Контрольно-Кассовый Чек [16:20:28]line ПРОДАЖА [16:20:28]line ТРК (МРК, ГНК) : 21 [16:20:28]line Товар: 2710124130 [16:20:28]line Аи-92-К-5 [16:20:28]line 5.240 * 66.90 [16:20:28]line = 350.56 [16:20:28]line НДС 12% НСП 1% [16:20:28]line > о реализуемом товаре [16:20:28]line ОКРУГЛЕНИЕ: -0.56 [16:20:28]line ИТОГО: 350.00 [16:20:28]line Внесено: 350.00 [16:20:28]line СДАЧА: 0.00 [16:20:28]line НСП 1% : 3.10 [16:20:28]line НДС 12% : 37.23 [16:20:28]line Наличными: 350.00 [16:20:28]line Безнал.: 0.00 [16:20:28]line Место: АЗС № 170 "Партнер Нефть" [16:20:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:20:28]line СНО: Общий режим [16:20:28]line Чек 240 25.10.2024 16:20 [16:20:28]line Смена: 540 ФФД: 1.0 [16:20:28]line ЗНМ: 0300000110 [16:20:28]line РНМ: 0000000000091776 [16:20:28]line Версия ККМ: 001 [16:20:28]line ФМ: 0000000000871754 [16:20:28]line ФД: 191501 [16:20:28]line ФПД: 208909982835502 [16:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162036&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191501&fm=208909982835502&tin=02508201610067®Number=0000000000091776&sum=35000 [16:20:28]OFD Sender: Processing packet 191501 [packets to send 75, broken 74] [16:20:28]ProducePacketName [16:20:28]name=ofd_packets/00191501 [16:20:28]OFD Sender: To server: pG, [16:20:28]CommunicateWithHost lk.salyk.kg:30040 [16:20:28]ConnectInit lk.salyk.kg [16:20:28]written 0, free lines is 4095 [16:20:28]Connected sock=10 [16:20:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 D5 07 01 DE 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 54 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EC 02 00 35 04 06 00 BE 00 A5 51 23 2E 92 EA 53 DF C1 95 93 0D [16:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D 09 47 00 4B 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 31 37 35 34 10 04 04 00 0D EC 02 00 F4 03 04 00 22 6A 1B 67 B6 04 01 00 00 2E 3A C2 0C 41 6D 4B C0 [16:20:29]CommunicateWithHost err = 0 [16:20:29]CheckOFDResponse [16:20:29]1017 (14) - 77093643461234 [16:20:29]1041 (16) - 0000000000871754 [16:20:29]1040 (4) - 191501 [16:20:29]1012 (4) - 25.10.2024 09:51 [16:20:29]1206 (1) - 0 [16:20:29]OFD Sender: Remove packet 191501 [16:20:29]ProducePacketName [16:20:29]name=ofd_packets/00191501 [16:20:29]NVStorageDeleteData [16:20:29]Write to MH i2c: 01 00 00 0E B3 C1 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 0E B3 00 00 00 00 00 CF 0C A3 [16:20:29]RasterBufferAndPrint [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]written 0, free lines is 3285 [16:20:29]MH_Cut [16:20:29]Write to MH i2c: D1 01 00 15 B3 01 9A [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 01 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 01 00 15 B3 00 99 [16:20:29]Write to MH i2c: 01 00 00 16 B3 C9 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]OFD Sender: No OFD packet to send [16:20:29]*** Cut start [16:20:29]*** Partial cut [16:20:29]*** CUTSNS_PIN = 1 [16:20:30]*** CUTSNS_PIN = 0 [16:20:30]*** Brake cut motor [16:20:30]Read from MH i2c: 01 [16:20:30]MH_I2C_Read... [16:20:30]*** Stop cut motor [16:20:30]*** Cut end [16:20:30]Read from MH i2c: 01 07 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 16 B3 00 00 00 00 00 FF 0F DE [16:20:30]process_action close_receipt done [16:20:30]requested_data is exist [16:20:30]produce_requested_data [16:20:30]requested_item fm.sn is exist - process it [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 11 00 00 [16:20:30]Write to MH i2c: E2 08 00 17 B3 80 11 00 00 00 00 00 00 44 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 17 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 17 00 17 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [16:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:30]wFMCommunicate OK [16:20:30]requested_item fd.num is exist - process it [16:20:30]SAM_PROTO_GetFieldsCounters [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 13 00 00 [16:20:30]Write to MH i2c: E2 08 00 18 B3 80 13 00 00 00 00 00 00 47 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 62 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 62 00 18 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [16:20:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:30]wFMCommunicate OK [16:20:30]SAM_PROTO_GetFieldsCounters done [16:20:30]requested_item shift.num is exist - process it [16:20:30]requested_item shift.opened is exist - process it [16:20:30]req_shift_opened [16:20:30]FM_GetShiftState [16:20:30]SAM_PROTO_GetShiftState [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 13 01 00 [16:20:30]Write to MH i2c: E2 08 00 19 B3 80 13 01 00 00 00 00 00 49 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0E 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0E 00 19 B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0C [16:20:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:20:30]wFMCommunicate OK [16:20:30]SAM_PROTO_GetShiftState done [16:20:30]FM_GetShiftState done [16:20:30]req_shift_opened done [16:20:30]requested_item shift.open_date is exist - process it [16:20:30]req_shift_open_date [16:20:30]req_shift_open_date done [16:20:30]produce_requested_data done [16:20:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191501,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:20:30]process_action_free close_receipt [16:20:30]json_value_free [16:20:30]json_value_free done [16:20:30]process_json_proto returns [16:20:30]Send response to host [16:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191501,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:20:30]free response buf [16:20:30]execute_script done [16:20:30]execute_script returns [16:20:30]free content buf [16:20:30]Sock 9.Close socket [16:20:30]Sock 9.Thread stoped [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]accept exits with 8 [16:21:24]New connection [16:21:24]New thread 3066961252 created [16:21:24]Thread 3066817892 joined [16:21:24]Waiting for new connection... [16:21:24] Sock 8.Parse request [16:21:24]Sock 8.Check first char [16:21:24]Sock 8.First char is OK [16:21:24]request: POST /json_proto HTTP/1.0 [16:21:24]Method: POST [16:21:24]URL: /json_proto [16:21:24]Method is POST - this is cgi request [16:21:24]url: /json_proto [16:21:24]query_string will be loaded in cgi processing [16:21:24]execute_cgi json_proto POST (null) [16:21:24]execute_cgi path=json_proto method=POST [16:21:24]POST find Content-Length [16:21:24]Host: 172.17.63.131:8080 [16:21:24]Content-Length: 983 [16:21:24]Content-Type: application/json [16:21:24] [16:21:24]POST finish read [16:21:24]Found Content-Length = 983 [16:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.280, "sum" : 1600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.28 \u0441\u043E\u043C", "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" ] } } [16:21:24]execute_script... [16:21: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)30800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.280, "sum" : 1600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.28 \u0441\u043E\u043C", "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" ] } } [16:21:24]POST & json_proto [16:21:24]process_json_proto [16:21:24]json parsed OK: [16:21:24]protocol is kg_v1.0 [16:21:24]action value=close_receipt [16:21:24]process_action close_receipt [16:21:24]cmd_close_receipt [16:21:24]MH_GetDate [16:21:24]Write to MH i2c: F0 00 00 1A B3 BC [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: F0 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: F0 09 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: F0 09 00 1A B3 00 8E C5 1B 67 22 05 6E 64 93 [16:21:24]GetLastDocTimeStamp 1729873236 [16:21:24]current date 1729873294 [16:21:24]FM_GetShiftState [16:21:24]SAM_PROTO_GetShiftState [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 13 01 00 [16:21:24]Write to MH i2c: E2 08 00 1B B3 80 13 01 00 00 00 00 00 4B [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 0E 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 0E 00 1B B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0E [16:21:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:21:24]wFMCommunicate OK [16:21:24]SAM_PROTO_GetShiftState done [16:21:24]FM_GetShiftState done [16:21:24]opened in 1729816399 [16:21:24]opened+sec_in_day 1729902799 [16:21:24]quantity*price = 160005 [16:21:24]sum+1 = 160006 [16:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 241 25.10.2024 16:21 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 24.28 сом ФМ: 0000000000871754 ФД: 191502 ФПД: 37151815839444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191502&fm=37151815839444&tin=02508201610067®Number=0000000000091776&sum=160000 [16:21:25]StoreToDocumentArchive [16:21:25]shift 540 fd 191502 [16:21:25]save to /storage/0540/doc_00191502 [16:21:25]save last doc name /storage/0540/doc_00191502 to /storage/kkm_last_doc_name [16:21:25]save OK [16:21:25]Clear old archive folders... [16:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:25]tlvbuf is 015CADD0 [16:21:25]SAM_PROTO_ClearQueue [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 09 00 00 [16:21:25]Write to MH i2c: E2 08 00 28 B3 80 09 00 00 00 00 00 00 4D [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 28 B3 00 90 00 4F [16:21:25]RAPDU: 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_ClearQueue done [16:21:25]KKMCreateOFDPacket [16:21:25]OFDProtocolAddRootSTLVToBuf [16:21:25]FM_MakeSignedData [16:21:25]FM_MakeSignedData [16:21:25]SAM_PROTO_SignData [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 0D 01 02 [16:21:25]Write to MH i2c: E2 08 00 29 B3 80 0D 01 02 00 00 00 00 55 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:25]Read from MH i2c: E2 03 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 29 B3 00 90 00 50 [16:21:25]RAPDU: 90 00 [16:21:25]wFMCommunicate OK [16:21:25]wFMCommunicate request_size=255 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 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 F1 00 00 00 F4 03 04 00 8E C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EC 02 00 35 04 06 00 21 [16:21:25]Write to MH i2c: E2 02 01 2A B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 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 F1 00 00 00 F4 03 04 00 8E C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EC 02 00 35 04 06 00 21 00 00 FF [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 2A B3 00 90 00 51 [16:21:25]RAPDU: 90 00 [16:21:25]wFMCommunicate OK [16:21:25]wFMCommunicate request_size=10 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 0D 02 02 05 CA 14 C9 2E D4 [16:21:25]Write to MH i2c: E2 0D 00 2B B3 80 0D 02 02 05 00 CA 14 C9 2E D4 00 00 0B [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 03 00 2B B3 00 90 00 52 [16:21:25]RAPDU: 90 00 [16:21:25]wFMCommunicate OK [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 0D 03 02 [16:21:25]Write to MH i2c: E2 08 00 2C B3 80 0D 03 02 00 00 00 00 5A [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0B 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0B 00 2C B3 00 39 3D 4F 51 C4 9B F1 0C 90 00 CD [16:21:25]RAPDU: 39 3D 4F 51 C4 9B F1 0C 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_SignData done [16:21:25]FM_MakeSignedData done [16:21:25]CreateOFDProtocolMessage [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 11 00 00 [16:21:25]Write to MH i2c: E2 08 00 2D B3 80 11 00 00 00 00 00 00 5A [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 17 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 17 00 2D B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [16:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:25]wFMCommunicate OK [16:21:25]CreateOFDProtocolMessage done [16:21:25]OFDSenderStorePacket 191502 [16:21:25]StoreOFDPacket docnum=191502 [16:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F A4 07 01 DA 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 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 F1 00 00 00 F4 03 04 00 8E C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EC 02 00 35 04 06 00 21 CA 14 C9 2E D4 39 3D 4F 51 C4 9B F1 0C [16:21:25]CheckFolder [16:21:25]dirname=/storage/ofd_packets [16:21:25]CheckFolder done [16:21:25]ProducePacketName [16:21:25]name=ofd_packets/00191502 [16:21:25]NVStorageSaveData ofd_packets/00191502 [16:21:25]File name is /storage/ofd_packets/00191502 [16:21:25]Write 301 bytes [16:21:25]NVStorageSaveData done [16:21:25]OFDSenderStorePacket done [16:21:25]KKMCreateOFDPacket done [16:21:25]NVStorageSaveData kkm_last_timestamp [16:21:25]File name is /storage/kkm_last_timestamp [16:21:25]Write 4 bytes [16:21:25]NVStorageSaveData done [16:21:25]ExternCall_PrintAddStr [16:21:25]wPrintStart [16:21:25]Write to MH i2c: 01 00 00 2E B3 E1 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 07 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 07 00 2E B3 00 00 00 00 00 FF 0F F6 [16:21:25]RasterBufferAndPrint [16:21:25]line Счет N : (1)30800 [16:21:25]line ИНН: 02508201610067 [16:21:25]line Контрольно-Кассовый Чек [16:21:25]line ПРОДАЖА [16:21:25]line ТРК (МРК, ГНК) : 12 [16:21:25]line Товар: 2710124130 [16:21:25]line Аи-92-К-5 [16:21:25]line 24.280 * 65.90 [16:21:25]line = 1600.05 [16:21:25]line НДС 12% НСП 1% [16:21:25]line > о реализуемом товаре [16:21:25]line ОКРУГЛЕНИЕ: -0.05 [16:21:25]line ИТОГО: 1600.00 [16:21:25]line Внесено: 1600.00 [16:21:25]line СДАЧА: 0.00 [16:21:25]line НСП 1% : 14.16 [16:21:25]line НДС 12% : 169.92 [16:21:25]line Наличными: 1600.00 [16:21:25]line Безнал.: 0.00 [16:21:25]line Место: АЗС № 170 "Партнер Нефть" [16:21:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:21:25]line СНО: Общий режим [16:21:25]line Чек 241 25.10.2024 16:21 [16:21:25]line Смена: 540 ФФД: 1.0 [16:21:25]line ЗНМ: 0300000110 [16:21:25]line РНМ: 0000000000091776 [16:21:25]line Версия ККМ: 001 [16:21:25]line [16:21:25]line Дисконтная программа [16:21:25]line АИ-92 [16:21:25]line номер 170 [16:21:25]line сэкономлено 24.28 сом [16:21:25]line ФМ: 0000000000871754 [16:21:25]line ФД: 191502 [16:21:25]line ФПД: 37151815839444 [16:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191502&fm=37151815839444&tin=02508201610067®Number=0000000000091776&sum=160000 [16:21:26]OFD Sender: Processing packet 191502 [packets to send 75, broken 74] [16:21:26]ProducePacketName [16:21:26]name=ofd_packets/00191502 [16:21:26]OFD Sender: To server: pG, [16:21:26]CommunicateWithHost lk.salyk.kg:30040 [16:21:26]ConnectInit lk.salyk.kg [16:21:26]written 0, free lines is 4095 [16:21:26]Connected sock=10 [16:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F A4 07 01 DA 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 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 F1 00 00 00 F4 03 04 00 8E C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EC 02 00 35 04 06 00 21 CA 14 C9 2E D4 39 3D 4F 51 C4 9B F1 0C [16:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C4 47 47 00 B9 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 31 37 35 34 10 04 04 00 0E EC 02 00 F4 03 04 00 5C 6A 1B 67 B6 04 01 00 00 E5 F6 72 07 6F 83 33 F1 [16:21:26]CommunicateWithHost err = 0 [16:21:26]CheckOFDResponse [16:21:26]1017 (14) - 77093643461234 [16:21:26]1041 (16) - 0000000000871754 [16:21:26]1040 (4) - 191502 [16:21:26]1012 (4) - 25.10.2024 09:52 [16:21:26]1206 (1) - 0 [16:21:26]OFD Sender: Remove packet 191502 [16:21:26]ProducePacketName [16:21:26]name=ofd_packets/00191502 [16:21:26]NVStorageDeleteData [16:21:26]Write to MH i2c: 01 00 00 5E B3 11 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: 01 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: 01 07 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: 01 07 00 5E B3 00 00 00 00 00 60 0C 84 [16:21:26]RasterBufferAndPrint [16:21:26]line [16:21:26]line [16:21:26]line [16:21:26]line [16:21:26]line [16:21:26]written 0, free lines is 3174 [16:21:26]MH_Cut [16:21:26]Write to MH i2c: D1 01 00 65 B3 01 EA [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: D1 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: D1 01 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: D1 01 00 65 B3 00 E9 [16:21:26]Write to MH i2c: 01 00 00 66 B3 19 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:27]OFD Sender: No OFD packet to send [16:21:27]*** Cut start [16:21:27]*** Partial cut [16:21:27]*** CUTSNS_PIN = 1 [16:21:27]*** CUTSNS_PIN = 0 [16:21:27]*** Brake cut motor [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]*** Stop cut motor [16:21:28]*** Cut end [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 66 B3 00 00 00 00 00 FF 0F 2E [16:21:28]process_action close_receipt done [16:21:28]requested_data is exist [16:21:28]produce_requested_data [16:21:28]requested_item fm.sn is exist - process it [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 11 00 00 [16:21:28]Write to MH i2c: E2 08 00 67 B3 80 11 00 00 00 00 00 00 94 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 67 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [16:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:28]wFMCommunicate OK [16:21:28]requested_item fd.num is exist - process it [16:21:28]SAM_PROTO_GetFieldsCounters [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 13 00 00 [16:21:28]Write to MH i2c: E2 08 00 68 B3 80 13 00 00 00 00 00 00 97 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 62 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 62 00 68 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [16:21:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_GetFieldsCounters done [16:21:28]requested_item shift.num is exist - process it [16:21:28]requested_item shift.opened is exist - process it [16:21:28]req_shift_opened [16:21:28]FM_GetShiftState [16:21:28]SAM_PROTO_GetShiftState [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 13 01 00 [16:21:28]Write to MH i2c: E2 08 00 69 B3 80 13 01 00 00 00 00 00 99 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0E 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0E 00 69 B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5C [16:21:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_GetShiftState done [16:21:28]FM_GetShiftState done [16:21:28]req_shift_opened done [16:21:28]requested_item shift.open_date is exist - process it [16:21:28]req_shift_open_date [16:21:28]req_shift_open_date done [16:21:28]produce_requested_data done [16:21:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191502,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:21:28]process_action_free close_receipt [16:21:28]json_value_free [16:21:28]json_value_free done [16:21:28]process_json_proto returns [16:21:28]Send response to host [16:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191502,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:21:28]free response buf [16:21:28]execute_script done [16:21:28]execute_script returns [16:21:28]free content buf [16:21:28]Sock 8.Close socket [16:21:28]Sock 8.Thread stoped [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:48]accept exits with 9 [16:22:48]New connection [16:22:48]New thread 3066817892 created [16:22:48]Thread 3066961252 joined [16:22:48]Waiting for new connection... [16:22:48] Sock 9.Parse request [16:22:48]Sock 9.Check first char [16:22:48]Sock 9.First char is OK [16:22:48]request: POST /json_proto HTTP/1.0 [16:22:48]Method: POST [16:22:48]URL: /json_proto [16:22:48]Method is POST - this is cgi request [16:22:48]url: /json_proto [16:22:48]query_string will be loaded in cgi processing [16:22:48]execute_cgi json_proto POST (null) [16:22:48]execute_cgi path=json_proto method=POST [16:22:48]POST find Content-Length [16:22:48]Host: 172.17.63.131:8080 [16:22:48]Content-Length: 677 [16:22:48]Content-Type: application/json [16:22:48] [16:22:48]POST finish read [16:22:48]Found Content-Length = 677 [16:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:48]execute_script... [16:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:48]POST & json_proto [16:22:48]process_json_proto [16:22:48]json parsed OK: [16:22:48]protocol is kg_v1.0 [16:22:48]action value=close_receipt [16:22:48]process_action close_receipt [16:22:48]cmd_close_receipt [16:22:48]MH_GetDate [16:22:48]Write to MH i2c: F0 00 00 6A B3 0C [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 09 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 09 00 6A B3 00 E2 C5 1B 67 22 05 6E 64 37 [16:22:48]GetLastDocTimeStamp 1729873294 [16:22:48]current date 1729873378 [16:22:48]FM_GetShiftState [16:22:48]SAM_PROTO_GetShiftState [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 13 01 00 [16:22:48]Write to MH i2c: E2 08 00 6B B3 80 13 01 00 00 00 00 00 9B [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 6B B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5E [16:22:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_GetShiftState done [16:22:48]FM_GetShiftState done [16:22:48]opened in 1729816399 [16:22:48]opened+sec_in_day 1729902799 [16:22:48]quantity*price = 70044 [16:22:48]sum+1 = 70045 [16:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 242 25.10.2024 16:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191503 ФПД: 149564608069389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191503&fm=149564608069389&tin=02508201610067®Number=0000000000091776&sum=70000 [16:22:49]StoreToDocumentArchive [16:22:49]shift 540 fd 191503 [16:22:49]save to /storage/0540/doc_00191503 [16:22:49]save last doc name /storage/0540/doc_00191503 to /storage/kkm_last_doc_name [16:22:49]save OK [16:22:49]Clear old archive folders... [16:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:49]tlvbuf is 015B0B60 [16:22:49]SAM_PROTO_ClearQueue [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 09 00 00 [16:22:49]Write to MH i2c: E2 08 00 78 B3 80 09 00 00 00 00 00 00 9D [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 78 B3 00 90 00 9F [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]SAM_PROTO_ClearQueue done [16:22:49]KKMCreateOFDPacket [16:22:49]OFDProtocolAddRootSTLVToBuf [16:22:49]FM_MakeSignedData [16:22:49]FM_MakeSignedData [16:22:49]SAM_PROTO_SignData [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 0D 01 02 [16:22:49]Write to MH i2c: E2 08 00 79 B3 80 0D 01 02 00 00 00 00 A5 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 79 B3 00 90 00 A0 [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]wFMCommunicate request_size=255 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E2 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EC 02 00 35 04 06 00 88 [16:22:49]Write to MH i2c: E2 02 01 7A B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E2 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EC 02 00 35 04 06 00 88 00 00 07 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 7A B3 00 90 00 A1 [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]wFMCommunicate request_size=10 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 0D 02 02 05 07 39 55 BF 0D [16:22:49]Write to MH i2c: E2 0D 00 7B B3 80 0D 02 02 05 00 07 39 55 BF 0D 00 00 13 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 7B B3 00 90 00 A2 [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 0D 03 02 [16:22:49]Write to MH i2c: E2 08 00 7C B3 80 0D 03 02 00 00 00 00 AA [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 0B 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 0B 00 7C B3 00 2F 3B 55 E0 43 C4 3C 51 90 00 DE [16:22:49]RAPDU: 2F 3B 55 E0 43 C4 3C 51 90 00 [16:22:49]wFMCommunicate OK [16:22:49]SAM_PROTO_SignData done [16:22:49]FM_MakeSignedData done [16:22:49]CreateOFDProtocolMessage [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 11 00 00 [16:22:49]Write to MH i2c: E2 08 00 7D B3 80 11 00 00 00 00 00 00 AA [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 17 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 17 00 7D B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [16:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:22:49]wFMCommunicate OK [16:22:49]CreateOFDProtocolMessage done [16:22:49]OFDSenderStorePacket 191503 [16:22:49]StoreOFDPacket docnum=191503 [16:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 2E 07 01 C2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E2 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EC 02 00 35 04 06 00 88 07 39 55 BF 0D 2F 3B 55 E0 43 C4 3C 51 [16:22:49]CheckFolder [16:22:49]dirname=/storage/ofd_packets [16:22:49]CheckFolder done [16:22:49]ProducePacketName [16:22:49]name=ofd_packets/00191503 [16:22:49]NVStorageSaveData ofd_packets/00191503 [16:22:49]File name is /storage/ofd_packets/00191503 [16:22:49]Write 301 bytes [16:22:49]NVStorageSaveData done [16:22:49]OFDSenderStorePacket done [16:22:49]KKMCreateOFDPacket done [16:22:49]NVStorageSaveData kkm_last_timestamp [16:22:49]File name is /storage/kkm_last_timestamp [16:22:49]Write 4 bytes [16:22:49]NVStorageSaveData done [16:22:49]ExternCall_PrintAddStr [16:22:49]wPrintStart [16:22:49]Write to MH i2c: 01 00 00 7E B3 31 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 07 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 07 00 7E B3 00 00 00 00 00 FF 0F 46 [16:22:49]RasterBufferAndPrint [16:22:49]line Счет N : (1)30801 [16:22:49]line ИНН: 02508201610067 [16:22:49]line Контрольно-Кассовый Чек [16:22:49]line ПРОДАЖА [16:22:49]line ТРК (МРК, ГНК) : 21 [16:22:49]line Товар: 2710124130 [16:22:49]line Аи-92-К-5 [16:22:49]line 10.470 * 66.90 [16:22:49]line = 700.44 [16:22:49]line НДС 12% НСП 1% [16:22:49]line > о реализуемом товаре [16:22:49]line ОКРУГЛЕНИЕ: -0.44 [16:22:49]line ИТОГО: 700.00 [16:22:49]line Внесено: 700.00 [16:22:49]line СДАЧА: 0.00 [16:22:49]line НСП 1% : 6.20 [16:22:49]line НДС 12% : 74.38 [16:22:49]line Наличными: 700.00 [16:22:49]line Безнал.: 0.00 [16:22:49]line Место: АЗС № 170 "Партнер Нефть" [16:22:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:22:49]line СНО: Общий режим [16:22:49]line Чек 242 25.10.2024 16:22 [16:22:49]line Смена: 540 ФФД: 1.0 [16:22:49]line ЗНМ: 0300000110 [16:22:49]line РНМ: 0000000000091776 [16:22:49]line Версия ККМ: 001 [16:22:49]line ФМ: 0000000000871754 [16:22:49]line ФД: 191503 [16:22:49]line ФПД: 149564608069389 [16:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191503&fm=149564608069389&tin=02508201610067®Number=0000000000091776&sum=70000 [16:22:50]OFD Sender: Processing packet 191503 [packets to send 75, broken 74] [16:22:50]ProducePacketName [16:22:50]name=ofd_packets/00191503 [16:22:50]OFD Sender: To server: pG, [16:22:50]CommunicateWithHost lk.salyk.kg:30040 [16:22:50]ConnectInit lk.salyk.kg [16:22:50]written 0, free lines is 4095 [16:22:50]Write to MH i2c: 01 00 00 A9 B3 5C [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 A9 B3 00 00 00 00 00 BF 0C 2E [16:22:50]RasterBufferAndPrint [16:22:50]line [16:22:50]line [16:22:50]line [16:22:50]line [16:22:50]line [16:22:50]written 0, free lines is 3270 [16:22:50]MH_Cut [16:22:50]Write to MH i2c: D1 01 00 B0 B3 01 35 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 01 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 01 00 B0 B3 00 34 [16:22:50]Write to MH i2c: 01 00 00 B1 B3 64 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:51]*** Cut start [16:22:51]*** Partial cut [16:22:51]*** CUTSNS_PIN = 1 [16:22:51]*** CUTSNS_PIN = 0 [16:22:51]*** Brake cut motor [16:22:52]Read from MH i2c: 01 [16:22:52]MH_I2C_Read... [16:22:52]*** Stop cut motor [16:22:52]*** Cut end [16:22:52]Read from MH i2c: 01 07 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 B1 B3 00 00 00 00 00 FF 0F 79 [16:22:52]process_action close_receipt done [16:22:52]requested_data is exist [16:22:52]produce_requested_data [16:22:52]requested_item fm.sn is exist - process it [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 11 00 00 [16:22:52]Write to MH i2c: E2 08 00 B2 B3 80 11 00 00 00 00 00 00 DF [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 B2 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [16:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:22:52]wFMCommunicate OK [16:22:52]requested_item fd.num is exist - process it [16:22:52]SAM_PROTO_GetFieldsCounters [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 13 00 00 [16:22:52]Write to MH i2c: E2 08 00 B3 B3 80 13 00 00 00 00 00 00 E2 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 62 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 62 00 B3 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [16:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_GetFieldsCounters done [16:22:52]requested_item shift.num is exist - process it [16:22:52]requested_item shift.opened is exist - process it [16:22:52]req_shift_opened [16:22:52]FM_GetShiftState [16:22:52]SAM_PROTO_GetShiftState [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 13 01 00 [16:22:52]Write to MH i2c: E2 08 00 B4 B3 80 13 01 00 00 00 00 00 E4 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 B4 B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A7 [16:22:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_GetShiftState done [16:22:52]FM_GetShiftState done [16:22:52]req_shift_opened done [16:22:52]requested_item shift.open_date is exist - process it [16:22:52]req_shift_open_date [16:22:52]req_shift_open_date done [16:22:52]produce_requested_data done [16:22:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191503,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:22:52]process_action_free close_receipt [16:22:52]json_value_free [16:22:52]json_value_free done [16:22:52]process_json_proto returns [16:22:52]Send response to host [16:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191503,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:22:52]free response buf [16:22:52]execute_script done [16:22:52]execute_script returns [16:22:52]free content buf [16:22:52]Sock 9.Close socket [16:22:52]Sock 9.Thread stoped [16:23:39]accept exits with 8 [16:23:39]New connection [16:23:39]New thread 3066961252 created [16:23:39]Thread 3066817892 joined [16:23:39]Waiting for new connection... [16:23:39] Sock 8.Parse request [16:23:39]Sock 8.Check first char [16:23:39]Sock 8.First char is OK [16:23:39]request: POST /json_proto HTTP/1.0 [16:23:39]Method: POST [16:23:39]URL: /json_proto [16:23:39]Method is POST - this is cgi request [16:23:39]url: /json_proto [16:23:39]query_string will be loaded in cgi processing [16:23:39]execute_cgi json_proto POST (null) [16:23:39]execute_cgi path=json_proto method=POST [16:23:39]POST find Content-Length [16:23:39]Host: 172.17.63.131:8080 [16:23:39]Content-Length: 676 [16:23:39]Content-Type: application/json [16:23:39] [16:23:39]POST finish read [16:23:39]Found Content-Length = 676 [16:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:39]execute_script... [16:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:39]POST & json_proto [16:23:39]process_json_proto [16:23:39]json parsed OK: [16:23:39]protocol is kg_v1.0 [16:23:39]action value=close_receipt [16:23:39]process_action close_receipt [16:23:39]cmd_close_receipt [16:23:39]MH_GetDate [16:23:39]Write to MH i2c: F0 00 00 B5 B3 57 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: F0 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: F0 09 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: F0 09 00 B5 B3 00 15 C6 1B 67 22 05 6E 64 B6 [16:23:39]GetLastDocTimeStamp 1729873378 [16:23:39]current date 1729873429 [16:23:39]FM_GetShiftState [16:23:39]SAM_PROTO_GetShiftState [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 13 01 00 [16:23:39]Write to MH i2c: E2 08 00 B6 B3 80 13 01 00 00 00 00 00 E6 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0E 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0E 00 B6 B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A9 [16:23:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:23:39]wFMCommunicate OK [16:23:39]SAM_PROTO_GetShiftState done [16:23:39]FM_GetShiftState done [16:23:39]opened in 1729816399 [16:23:39]opened+sec_in_day 1729902799 [16:23:39]quantity*price = 20003 [16:23:39]sum+1 = 20004 [16:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 243 25.10.2024 16:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191504 ФПД: 237035574604270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191504&fm=237035574604270&tin=02508201610067®Number=0000000000091776&sum=20000 [16:23:40]StoreToDocumentArchive [16:23:40]shift 540 fd 191504 [16:23:40]save to /storage/0540/doc_00191504 [16:23:40]save last doc name /storage/0540/doc_00191504 to /storage/kkm_last_doc_name [16:23:40]save OK [16:23:40]Clear old archive folders... [16:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:40]tlvbuf is 01831820 [16:23:40]SAM_PROTO_ClearQueue [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 09 00 00 [16:23:40]Write to MH i2c: E2 08 00 C3 B3 80 09 00 00 00 00 00 00 E8 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 03 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 03 00 C3 B3 00 90 00 EA [16:23:40]RAPDU: 90 00 [16:23:40]wFMCommunicate OK [16:23:40]SAM_PROTO_ClearQueue done [16:23:40]KKMCreateOFDPacket [16:23:40]OFDProtocolAddRootSTLVToBuf [16:23:40]FM_MakeSignedData [16:23:40]FM_MakeSignedData [16:23:40]SAM_PROTO_SignData [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 0D 01 02 [16:23:40]Write to MH i2c: E2 08 00 C4 B3 80 0D 01 02 00 00 00 00 F0 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 03 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 03 00 C4 B3 00 90 00 EB [16:23:40]RAPDU: 90 00 [16:23:40]wFMCommunicate OK [16:23:40]wFMCommunicate request_size=255 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 15 C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EC 02 00 35 04 06 00 D7 [16:23:40]Write to MH i2c: E2 02 01 C5 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 15 C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EC 02 00 35 04 06 00 D7 00 00 89 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 03 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 03 00 C5 B3 00 90 00 EC [16:23:41]RAPDU: 90 00 [16:23:41]wFMCommunicate OK [16:23:41]wFMCommunicate request_size=10 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 0D 02 02 05 95 25 39 31 EE [16:23:41]Write to MH i2c: E2 0D 00 C6 B3 80 0D 02 02 05 00 95 25 39 31 EE 00 00 0F [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:41]Read from MH i2c: E2 03 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 03 00 C6 B3 00 90 00 ED [16:23:41]RAPDU: 90 00 [16:23:41]wFMCommunicate OK [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 0D 03 02 [16:23:41]Write to MH i2c: E2 08 00 C7 B3 80 0D 03 02 00 00 00 00 F5 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0B 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0B 00 C7 B3 00 33 59 5A C4 CE BC F9 2A 90 00 4D [16:23:41]RAPDU: 33 59 5A C4 CE BC F9 2A 90 00 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_SignData done [16:23:41]FM_MakeSignedData done [16:23:41]CreateOFDProtocolMessage [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 11 00 00 [16:23:41]Write to MH i2c: E2 08 00 C8 B3 80 11 00 00 00 00 00 00 F5 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 17 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 17 00 C8 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [16:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:41]wFMCommunicate OK [16:23:41]CreateOFDProtocolMessage done [16:23:41]OFDSenderStorePacket 191504 [16:23:41]StoreOFDPacket docnum=191504 [16:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3D 6A 07 01 98 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 15 C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EC 02 00 35 04 06 00 D7 95 25 39 31 EE 33 59 5A C4 CE BC F9 2A [16:23:41]CheckFolder [16:23:41]dirname=/storage/ofd_packets [16:23:41]CheckFolder done [16:23:41]ProducePacketName [16:23:41]name=ofd_packets/00191504 [16:23:41]NVStorageSaveData ofd_packets/00191504 [16:23:41]File name is /storage/ofd_packets/00191504 [16:23:41]Write 301 bytes [16:23:41]NVStorageSaveData done [16:23:41]OFDSenderStorePacket done [16:23:41]KKMCreateOFDPacket done [16:23:41]NVStorageSaveData kkm_last_timestamp [16:23:41]File name is /storage/kkm_last_timestamp [16:23:41]Write 4 bytes [16:23:41]NVStorageSaveData done [16:23:41]ExternCall_PrintAddStr [16:23:41]wPrintStart [16:23:41]Write to MH i2c: 01 00 00 C9 B3 7C [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 C9 B3 00 00 00 00 00 FF 0F 91 [16:23:41]RasterBufferAndPrint [16:23:41]line Счет N : (1)30802 [16:23:41]line ИНН: 02508201610067 [16:23:41]line Контрольно-Кассовый Чек [16:23:41]line ПРОДАЖА [16:23:41]line ТРК (МРК, ГНК) : 12 [16:23:41]line Товар: 2710124130 [16:23:41]line Аи-92-К-5 [16:23:41]line 2.990 * 66.90 [16:23:41]line = 200.03 [16:23:41]line НДС 12% НСП 1% [16:23:41]line > о реализуемом товаре [16:23:41]line ОКРУГЛЕНИЕ: -0.03 [16:23:41]line ИТОГО: 200.00 [16:23:41]line Внесено: 200.00 [16:23:41]line СДАЧА: 0.00 [16:23:41]line НСП 1% : 1.77 [16:23:41]line НДС 12% : 21.24 [16:23:41]line Наличными: 200.00 [16:23:41]line Безнал.: 0.00 [16:23:41]line Место: АЗС № 170 "Партнер Нефть" [16:23:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:23:41]line СНО: Общий режим [16:23:41]line Чек 243 25.10.2024 16:23 [16:23:41]line Смена: 540 ФФД: 1.0 [16:23:41]line ЗНМ: 0300000110 [16:23:41]line РНМ: 0000000000091776 [16:23:41]line Версия ККМ: 001 [16:23:41]line ФМ: 0000000000871754 [16:23:41]line ФД: 191504 [16:23:41]line ФПД: 237035574604270 [16:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191504&fm=237035574604270&tin=02508201610067®Number=0000000000091776&sum=20000 [16:23:41]written 0, free lines is 4095 [16:23:42]Write to MH i2c: 01 00 00 F4 B3 A7 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: 01 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: 01 07 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: 01 07 00 F4 B3 00 00 00 00 00 BB 0C 75 [16:23:42]RasterBufferAndPrint [16:23:42]line [16:23:42]line [16:23:42]line [16:23:42]line [16:23:42]line [16:23:42]written 0, free lines is 3267 [16:23:42]MH_Cut [16:23:42]Write to MH i2c: D1 01 00 FB B3 01 80 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: D1 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: D1 01 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: D1 01 00 FB B3 00 7F [16:23:42]Write to MH i2c: 01 00 00 FC B3 AF [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** Cut start [16:23:42]*** Partial cut [16:23:42]*** CUTSNS_PIN = 1 [16:23:42]*** CUTSNS_PIN = 0 [16:23:43]*** Brake cut motor [16:23:43]Read from MH i2c: 01 [16:23:43]MH_I2C_Read... [16:23:43]*** Stop cut motor [16:23:43]*** Cut end [16:23:43]Read from MH i2c: 01 07 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 FC B3 00 00 00 00 00 FF 0F C4 [16:23:43]process_action close_receipt done [16:23:43]requested_data is exist [16:23:43]produce_requested_data [16:23:43]requested_item fm.sn is exist - process it [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 11 00 00 [16:23:43]Write to MH i2c: E2 08 00 FD B3 80 11 00 00 00 00 00 00 2A [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 17 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 17 00 FD B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [16:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:43]wFMCommunicate OK [16:23:43]requested_item fd.num is exist - process it [16:23:43]SAM_PROTO_GetFieldsCounters [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 13 00 00 [16:23:43]Write to MH i2c: E2 08 00 FE B3 80 13 00 00 00 00 00 00 2D [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 62 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 62 00 FE B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [16:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_GetFieldsCounters done [16:23:43]requested_item shift.num is exist - process it [16:23:43]requested_item shift.opened is exist - process it [16:23:43]req_shift_opened [16:23:43]FM_GetShiftState [16:23:43]SAM_PROTO_GetShiftState [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 13 01 00 [16:23:43]Write to MH i2c: E2 08 00 FF B3 80 13 01 00 00 00 00 00 2F [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0E 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0E 00 FF B3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F2 [16:23:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_GetShiftState done [16:23:43]FM_GetShiftState done [16:23:43]req_shift_opened done [16:23:43]requested_item shift.open_date is exist - process it [16:23:43]req_shift_open_date [16:23:43]req_shift_open_date done [16:23:43]produce_requested_data done [16:23:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191504,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:23:43]process_action_free close_receipt [16:23:43]json_value_free [16:23:43]json_value_free done [16:23:43]process_json_proto returns [16:23:43]Send response to host [16:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191504,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:23:43]free response buf [16:23:43]execute_script done [16:23:43]execute_script returns [16:23:43]free content buf [16:23:43]Sock 8.Close socket [16:23:43]Sock 8.Thread stoped [16:25:03]ConnectInit Can't connect to host [16:25:03]CommunicateWithHost connect error [16:25:03]CommunicateWithHost err = -1 [16:25:03]OFD Sender: Server communicate error [16:25:03]OFD Sender: Processing packet 191503 [packets to send 76, broken 74] [16:25:03]ProducePacketName [16:25:03]name=ofd_packets/00191503 [16:25:03]OFD Sender: To server: pG, [16:25:03]CommunicateWithHost lk.salyk.kg:30040 [16:25:03]ConnectInit lk.salyk.kg [16:25:03]Connected sock=8 [16: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 31 37 35 34 0F 01 00 00 DC 2E 07 01 C2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E2 C5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EC 02 00 35 04 06 00 88 07 39 55 BF 0D 2F 3B 55 E0 43 C4 3C 51 [16:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CB 42 47 00 F5 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EC 02 00 F4 03 04 00 35 6B 1B 67 B6 04 01 00 00 DF A0 AB 56 09 8E BE 0F [16:25:04]CommunicateWithHost err = 0 [16:25:04]CheckOFDResponse [16:25:04]1017 (14) - 77093643461234 [16:25:04]1041 (16) - 0000000000871754 [16:25:04]1040 (4) - 191503 [16:25:04]1012 (4) - 25.10.2024 09:56 [16:25:04]1206 (1) - 0 [16:25:04]OFD Sender: Remove packet 191503 [16:25:04]ProducePacketName [16:25:04]name=ofd_packets/00191503 [16:25:04]NVStorageDeleteData [16:25:04]OFD Sender: Processing packet 191504 [packets to send 75, broken 74] [16:25:04]ProducePacketName [16:25:04]name=ofd_packets/00191504 [16:25:04]OFD Sender: To server: pG, [16:25:04]CommunicateWithHost lk.salyk.kg:30040 [16:25:04]ConnectInit lk.salyk.kg [16:25:04]Connected sock=8 [16:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3D 6A 07 01 98 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 15 C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EC 02 00 35 04 06 00 D7 95 25 39 31 EE 33 59 5A C4 CE BC F9 2A [16:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 F9 47 00 93 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EC 02 00 F4 03 04 00 36 6B 1B 67 B6 04 01 00 00 16 F7 A9 53 9B 45 C4 38 [16:25:05]CommunicateWithHost err = 0 [16:25:05]CheckOFDResponse [16:25:05]1017 (14) - 77093643461234 [16:25:05]1041 (16) - 0000000000871754 [16:25:05]1040 (4) - 191504 [16:25:05]1012 (4) - 25.10.2024 09:56 [16:25:05]1206 (1) - 0 [16:25:05]OFD Sender: Remove packet 191504 [16:25:05]ProducePacketName [16:25:05]name=ofd_packets/00191504 [16:25:05]NVStorageDeleteData [16:25:05]OFD Sender: No OFD packet to send [16:25:07]accept exits with 9 [16:25:07]New connection [16:25:07]New thread 3066817892 created [16:25:07]Thread 3066961252 joined [16:25:07]Waiting for new connection... [16:25:07] Sock 9.Parse request [16:25:07]Sock 9.Check first char [16:25:07]Sock 9.First char is OK [16:25:07]request: POST /json_proto HTTP/1.0 [16:25:07]Method: POST [16:25:07]URL: /json_proto [16:25:07]Method is POST - this is cgi request [16:25:07]url: /json_proto [16:25:07]query_string will be loaded in cgi processing [16:25:07]execute_cgi json_proto POST (null) [16:25:07]execute_cgi path=json_proto method=POST [16:25:07]POST find Content-Length [16:25:07]Host: 172.17.63.131:8080 [16:25:07]Content-Length: 674 [16:25:07]Content-Type: application/json [16:25:07] [16:25:07]POST finish read [16:25:07]Found Content-Length = 674 [16:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [16:25:07]execute_script... [16:25: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)30803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [16:25:07]POST & json_proto [16:25:07]process_json_proto [16:25:07]json parsed OK: [16:25:07]protocol is kg_v1.0 [16:25:07]action value=close_receipt [16:25:07]process_action close_receipt [16:25:07]cmd_close_receipt [16:25:07]MH_GetDate [16:25:07]Write to MH i2c: F0 00 00 00 B4 A3 [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 00 B4 00 6D C6 1B 67 22 05 6E 64 5A [16:25:07]GetLastDocTimeStamp 1729873429 [16:25:07]current date 1729873517 [16:25:07]FM_GetShiftState [16:25:07]SAM_PROTO_GetShiftState [16:25:07]wFMCommunicate request_size=4 [16:25:07]MH_SAM_APDU [16:25:07]CAPDU: 80 13 01 00 [16:25:07]Write to MH i2c: E2 08 00 01 B4 80 13 01 00 00 00 00 00 32 [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:07]Read from MH i2c: E2 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 01 B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F5 [16:25:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:25:07]wFMCommunicate OK [16:25:07]SAM_PROTO_GetShiftState done [16:25:07]FM_GetShiftState done [16:25:07]opened in 1729816399 [16:25:07]opened+sec_in_day 1729902799 [16:25:07]quantity*price = 80010 [16:25:07]sum+1 = 80011 [16:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 244 25.10.2024 16:25 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191505 ФПД: 23355494728704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191505&fm=23355494728704&tin=02508201610067®Number=0000000000091776&sum=80000 [16:25:08]StoreToDocumentArchive [16:25:08]shift 540 fd 191505 [16:25:08]save to /storage/0540/doc_00191505 [16:25:08]save last doc name /storage/0540/doc_00191505 to /storage/kkm_last_doc_name [16:25:08]save OK [16:25:08]Clear old archive folders... [16:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:25:08]tlvbuf is 016010E0 [16:25:08]SAM_PROTO_ClearQueue [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 09 00 00 [16:25:08]Write to MH i2c: E2 08 00 0E B4 80 09 00 00 00 00 00 00 34 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 0E B4 00 90 00 36 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_ClearQueue done [16:25:08]KKMCreateOFDPacket [16:25:08]OFDProtocolAddRootSTLVToBuf [16:25:08]FM_MakeSignedData [16:25:08]FM_MakeSignedData [16:25:08]SAM_PROTO_SignData [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 01 02 [16:25:08]Write to MH i2c: E2 08 00 0F B4 80 0D 01 02 00 00 00 00 3C [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 0F B4 00 90 00 37 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=255 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 6D C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EC 02 00 35 04 06 00 15 3D DF F7 [16:25:08]Write to MH i2c: E2 02 01 10 B4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EC 02 00 35 04 06 00 15 3D DF F7 00 00 E7 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 10 B4 00 90 00 38 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=7 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 02 02 02 84 00 [16:25:08]Write to MH i2c: E2 0A 00 11 B4 80 0D 02 02 02 00 84 00 00 00 C7 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 11 B4 00 90 00 39 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 03 02 [16:25:08]Write to MH i2c: E2 08 00 12 B4 80 0D 03 02 00 00 00 00 41 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0B 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0B 00 12 B4 00 5B 42 7C C2 5E 28 3A 47 90 00 24 [16:25:08]RAPDU: 5B 42 7C C2 5E 28 3A 47 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_SignData done [16:25:08]FM_MakeSignedData done [16:25:08]CreateOFDProtocolMessage [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 11 00 00 [16:25:08]Write to MH i2c: E2 08 00 13 B4 80 11 00 00 00 00 00 00 41 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 17 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 17 00 13 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [16:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:25:08]wFMCommunicate OK [16:25:08]CreateOFDProtocolMessage done [16:25:08]OFDSenderStorePacket 191505 [16:25:08]StoreOFDPacket docnum=191505 [16:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 4A 04 01 51 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 6D C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EC 02 00 35 04 06 00 15 3D DF F7 84 00 5B 42 7C C2 5E 28 3A 47 [16:25:08]CheckFolder [16:25:08]dirname=/storage/ofd_packets [16:25:08]CheckFolder done [16:25:08]ProducePacketName [16:25:08]name=ofd_packets/00191505 [16:25:08]NVStorageSaveData ofd_packets/00191505 [16:25:08]File name is /storage/ofd_packets/00191505 [16:25:08]Write 298 bytes [16:25:08]NVStorageSaveData done [16:25:08]OFDSenderStorePacket done [16:25:08]KKMCreateOFDPacket done [16:25:08]NVStorageSaveData kkm_last_timestamp [16:25:08]File name is /storage/kkm_last_timestamp [16:25:08]Write 4 bytes [16:25:08]NVStorageSaveData done [16:25:08]ExternCall_PrintAddStr [16:25:08]wPrintStart [16:25:08]Write to MH i2c: 01 00 00 14 B4 C8 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: 01 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: 01 07 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: 01 07 00 14 B4 00 00 00 00 00 FF 0F DD [16:25:08]RasterBufferAndPrint [16:25:08]line Счет N : (1)30803 [16:25:08]line ИНН: 02508201610067 [16:25:08]line Контрольно-Кассовый Чек [16:25:08]line ПРОДАЖА [16:25:08]line ТРК (МРК, ГНК) : 22 [16:25:08]line Товар: 2710194210 [16:25:08]line ДТ-К-5 [16:25:08]line 10.500 * 76.20 [16:25:08]line = 800.10 [16:25:08]line НДС 12% НСП 1% [16:25:08]line > о реализуемом товаре [16:25:08]line ОКРУГЛЕНИЕ: -0.10 [16:25:08]line ИТОГО: 800.00 [16:25:08]line Внесено: 800.00 [16:25:08]line СДАЧА: 0.00 [16:25:08]line НСП 1% : 7.08 [16:25:08]line НДС 12% : 84.97 [16:25:08]line Наличными: 800.00 [16:25:08]line Безнал.: 0.00 [16:25:08]line Место: АЗС № 170 "Партнер Нефть" [16:25:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:25:08]line СНО: Общий режим [16:25:08]line Чек 244 25.10.2024 16:25 [16:25:08]line Смена: 540 ФФД: 1.0 [16:25:08]line ЗНМ: 0300000110 [16:25:08]line РНМ: 0000000000091776 [16:25:08]line Версия ККМ: 001 [16:25:08]line ФМ: 0000000000871754 [16:25:08]line ФД: 191505 [16:25:08]line ФПД: 23355494728704 [16:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191505&fm=23355494728704&tin=02508201610067®Number=0000000000091776&sum=80000 [16:25:08]written 0, free lines is 4095 [16:25:08]OFD Sender: Processing packet 191505 [packets to send 75, broken 74] [16:25:08]ProducePacketName [16:25:08]name=ofd_packets/00191505 [16:25:08]OFD Sender: To server: pG, [16:25:08]CommunicateWithHost lk.salyk.kg:30040 [16:25:08]ConnectInit lk.salyk.kg [16:25:09]Connected sock=8 [16:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 4A 04 01 51 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 6D C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EC 02 00 35 04 06 00 15 3D DF F7 84 00 5B 42 7C C2 5E 28 3A 47 [16:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD CF 47 00 CD 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EC 02 00 F4 03 04 00 3A 6B 1B 67 B6 04 01 00 00 AB B1 25 F7 94 D0 03 1D [16:25:09]CommunicateWithHost err = 0 [16:25:09]CheckOFDResponse [16:25:09]1017 (14) - 77093643461234 [16:25:09]1041 (16) - 0000000000871754 [16:25:09]1040 (4) - 191505 [16:25:09]1012 (4) - 25.10.2024 09:56 [16:25:09]1206 (1) - 0 [16:25:09]OFD Sender: Remove packet 191505 [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00191505 [16:25:09]NVStorageDeleteData [16:25:09]Write to MH i2c: 01 00 00 3F B4 F3 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 3F B4 00 00 00 00 00 CA 0C D0 [16:25:09]RasterBufferAndPrint [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]written 0, free lines is 3284 [16:25:09]MH_Cut [16:25:09]Write to MH i2c: D1 01 00 46 B4 01 CC [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 01 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 01 00 46 B4 00 CB [16:25:09]Write to MH i2c: 01 00 00 47 B4 FB [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]OFD Sender: No OFD packet to send [16:25:10]*** Cut start [16:25:10]*** Partial cut [16:25:10]*** CUTSNS_PIN = 1 [16:25:10]*** CUTSNS_PIN = 0 [16:25:10]*** Brake cut motor [16:25:10]Read from MH i2c: 01 [16:25:10]MH_I2C_Read... [16:25:10]*** Stop cut motor [16:25:10]*** Cut end [16:25:10]Read from MH i2c: 01 07 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 47 B4 00 00 00 00 00 FF 0F 10 [16:25:10]process_action close_receipt done [16:25:10]requested_data is exist [16:25:10]produce_requested_data [16:25:10]requested_item fm.sn is exist - process it [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 11 00 00 [16:25:10]Write to MH i2c: E2 08 00 48 B4 80 11 00 00 00 00 00 00 76 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 48 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [16:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:25:10]wFMCommunicate OK [16:25:10]requested_item fd.num is exist - process it [16:25:10]SAM_PROTO_GetFieldsCounters [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 13 00 00 [16:25:10]Write to MH i2c: E2 08 00 49 B4 80 13 00 00 00 00 00 00 79 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 49 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetFieldsCounters done [16:25:11]requested_item shift.num is exist - process it [16:25:11]requested_item shift.opened is exist - process it [16:25:11]req_shift_opened [16:25:11]FM_GetShiftState [16:25:11]SAM_PROTO_GetShiftState [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 01 00 [16:25:11]Write to MH i2c: E2 08 00 4A B4 80 13 01 00 00 00 00 00 7B [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 4A B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3E [16:25:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetShiftState done [16:25:11]FM_GetShiftState done [16:25:11]req_shift_opened done [16:25:11]requested_item shift.open_date is exist - process it [16:25:11]req_shift_open_date [16:25:11]req_shift_open_date done [16:25:11]produce_requested_data done [16:25:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191505,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:25:11]process_action_free close_receipt [16:25:11]json_value_free [16:25:11]json_value_free done [16:25:11]process_json_proto returns [16:25:11]Send response to host [16:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191505,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:25:11]free response buf [16:25:11]execute_script done [16:25:11]execute_script returns [16:25:11]free content buf [16:25:11]Sock 9.Close socket [16:25:11]Sock 9.Thread stoped [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:10]accept exits with 10 [16:26:10]New connection [16:26:10]New thread 3066961252 created [16:26:10]Thread 3066817892 joined [16:26:10]Waiting for new connection... [16:26:10] Sock 10.Parse request [16:26:10]Sock 10.Check first char [16:26:10]Sock 10.First char is OK [16:26:10]request: POST /json_proto HTTP/1.0 [16:26:10]Method: POST [16:26:10]URL: /json_proto [16:26:10]Method is POST - this is cgi request [16:26:10]url: /json_proto [16:26:10]query_string will be loaded in cgi processing [16:26:10]execute_cgi json_proto POST (null) [16:26:10]execute_cgi path=json_proto method=POST [16:26:10]POST find Content-Length [16:26:10]Host: 172.17.63.131:8080 [16:26:10]Content-Length: 677 [16:26:10]Content-Type: application/json [16:26:10] [16:26:10]POST finish read [16:26:10]Found Content-Length = 677 [16:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:10]execute_script... [16:26: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)30804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:10]POST & json_proto [16:26:10]process_json_proto [16:26:10]json parsed OK: [16:26:10]protocol is kg_v1.0 [16:26:10]action value=close_receipt [16:26:10]process_action close_receipt [16:26:10]cmd_close_receipt [16:26:10]MH_GetDate [16:26:10]Write to MH i2c: F0 00 00 4B B4 EE [16:26:10]Write i2c OK [16:26:10]MH_I2C_Read... [16:26:10]Read from MH i2c: F0 [16:26:10]MH_I2C_Read... [16:26:10]Read from MH i2c: F0 09 00 [16:26:10]MH_I2C_Read... [16:26:10]Read from MH i2c: F0 09 00 4B B4 00 AC C6 1B 67 22 05 6E 64 E4 [16:26:10]GetLastDocTimeStamp 1729873517 [16:26:10]current date 1729873580 [16:26:10]FM_GetShiftState [16:26:10]SAM_PROTO_GetShiftState [16:26:10]wFMCommunicate request_size=4 [16:26:10]MH_SAM_APDU [16:26:10]CAPDU: 80 13 01 00 [16:26:10]Write to MH i2c: E2 08 00 4C B4 80 13 01 00 00 00 00 00 7D [16:26:10]Write i2c OK [16:26:10]MH_I2C_Read... [16:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:10]Read from MH i2c: E2 [16:26:10]MH_I2C_Read... [16:26:10]Read from MH i2c: E2 0E 00 [16:26:10]MH_I2C_Read... [16:26:10]Read from MH i2c: E2 0E 00 4C B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 40 [16:26:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:26:10]wFMCommunicate OK [16:26:10]SAM_PROTO_GetShiftState done [16:26:10]FM_GetShiftState done [16:26:10]opened in 1729816399 [16:26:10]opened+sec_in_day 1729902799 [16:26:10]quantity*price = 70044 [16:26:10]sum+1 = 70045 [16:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 245 25.10.2024 16:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191506 ФПД: 226647036565776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191506&fm=226647036565776&tin=02508201610067®Number=0000000000091776&sum=70000 [16:26:11]StoreToDocumentArchive [16:26:11]shift 540 fd 191506 [16:26:11]save to /storage/0540/doc_00191506 [16:26:11]save last doc name /storage/0540/doc_00191506 to /storage/kkm_last_doc_name [16:26:11]save OK [16:26:11]Clear old archive folders... [16:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:11]tlvbuf is 016CE650 [16:26:11]SAM_PROTO_ClearQueue [16:26:11]wFMCommunicate request_size=4 [16:26:11]MH_SAM_APDU [16:26:11]CAPDU: 80 09 00 00 [16:26:11]Write to MH i2c: E2 08 00 59 B4 80 09 00 00 00 00 00 00 7F [16:26:11]Write i2c OK [16:26:11]MH_I2C_Read... [16:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:11]Read from MH i2c: E2 [16:26:11]MH_I2C_Read... [16:26:11]Read from MH i2c: E2 03 00 [16:26:11]MH_I2C_Read... [16:26:11]Read from MH i2c: E2 03 00 59 B4 00 90 00 81 [16:26:11]RAPDU: 90 00 [16:26:11]wFMCommunicate OK [16:26:11]SAM_PROTO_ClearQueue done [16:26:11]KKMCreateOFDPacket [16:26:11]OFDProtocolAddRootSTLVToBuf [16:26:11]FM_MakeSignedData [16:26:11]FM_MakeSignedData [16:26:11]SAM_PROTO_SignData [16:26:11]wFMCommunicate request_size=4 [16:26:11]MH_SAM_APDU [16:26:11]CAPDU: 80 0D 01 02 [16:26:11]Write to MH i2c: E2 08 00 5A B4 80 0D 01 02 00 00 00 00 87 [16:26:11]Write i2c OK [16:26:11]MH_I2C_Read... [16:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:11]Read from MH i2c: E2 [16:26:11]MH_I2C_Read... [16:26:11]Read from MH i2c: E2 03 00 [16:26:11]MH_I2C_Read... [16:26:11]Read from MH i2c: E2 03 00 5A B4 00 90 00 82 [16:26:11]RAPDU: 90 00 [16:26:11]wFMCommunicate OK [16:26:11]wFMCommunicate request_size=255 [16:26:11]MH_SAM_APDU [16:26:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 AC C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EC 02 00 35 04 06 00 CE [16:26:11]Write to MH i2c: E2 02 01 5B B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 AC C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EC 02 00 35 04 06 00 CE 00 00 00 [16:26:11]Write i2c OK [16:26:11]MH_I2C_Read... [16:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:12]Read from MH i2c: E2 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 03 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 03 00 5B B4 00 90 00 83 [16:26:12]RAPDU: 90 00 [16:26:12]wFMCommunicate OK [16:26:12]wFMCommunicate request_size=10 [16:26:12]MH_SAM_APDU [16:26:12]CAPDU: 80 0D 02 02 05 22 60 1A 99 10 [16:26:12]Write to MH i2c: E2 0D 00 5C B4 80 0D 02 02 05 00 22 60 1A 99 10 00 00 D9 [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:12]Read from MH i2c: E2 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 03 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 03 00 5C B4 00 90 00 84 [16:26:12]RAPDU: 90 00 [16:26:12]wFMCommunicate OK [16:26:12]wFMCommunicate request_size=4 [16:26:12]MH_SAM_APDU [16:26:12]CAPDU: 80 0D 03 02 [16:26:12]Write to MH i2c: E2 08 00 5D B4 80 0D 03 02 00 00 00 00 8C [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:12]Read from MH i2c: E2 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 0B 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 0B 00 5D B4 00 4D A7 10 31 BB 09 54 3F 90 00 19 [16:26:12]RAPDU: 4D A7 10 31 BB 09 54 3F 90 00 [16:26:12]wFMCommunicate OK [16:26:12]SAM_PROTO_SignData done [16:26:12]FM_MakeSignedData done [16:26:12]CreateOFDProtocolMessage [16:26:12]wFMCommunicate request_size=4 [16:26:12]MH_SAM_APDU [16:26:12]CAPDU: 80 11 00 00 [16:26:12]Write to MH i2c: E2 08 00 5E B4 80 11 00 00 00 00 00 00 8C [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:12]Read from MH i2c: E2 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 17 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: E2 17 00 5E B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [16:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:12]wFMCommunicate OK [16:26:12]CreateOFDProtocolMessage done [16:26:12]OFDSenderStorePacket 191506 [16:26:12]StoreOFDPacket docnum=191506 [16:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 30 07 01 40 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 AC C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EC 02 00 35 04 06 00 CE 22 60 1A 99 10 4D A7 10 31 BB 09 54 3F [16:26:12]CheckFolder [16:26:12]dirname=/storage/ofd_packets [16:26:12]CheckFolder done [16:26:12]ProducePacketName [16:26:12]name=ofd_packets/00191506 [16:26:12]NVStorageSaveData ofd_packets/00191506 [16:26:12]File name is /storage/ofd_packets/00191506 [16:26:12]Write 301 bytes [16:26:12]NVStorageSaveData done [16:26:12]OFDSenderStorePacket done [16:26:12]KKMCreateOFDPacket done [16:26:12]NVStorageSaveData kkm_last_timestamp [16:26:12]File name is /storage/kkm_last_timestamp [16:26:12]Write 4 bytes [16:26:12]NVStorageSaveData done [16:26:12]ExternCall_PrintAddStr [16:26:12]wPrintStart [16:26:12]Write to MH i2c: 01 00 00 5F B4 13 [16:26:12]OFD Sender: Processing packet 191506 [packets to send 75, broken 74] [16:26:12]ProducePacketName [16:26:12]name=ofd_packets/00191506 [16:26:12]OFD Sender: To server: pG, [16:26:12]CommunicateWithHost lk.salyk.kg:30040 [16:26:12]ConnectInit lk.salyk.kg [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 07 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 07 00 5F B4 00 00 00 00 00 FF 0F 28 [16:26:12]RasterBufferAndPrint [16:26:12]line Счет N : (1)30804 [16:26:12]line ИНН: 02508201610067 [16:26:12]line Контрольно-Кассовый Чек [16:26:12]line ПРОДАЖА [16:26:12]line ТРК (МРК, ГНК) : 12 [16:26:12]line Товар: 2710124130 [16:26:12]line Аи-92-К-5 [16:26:12]line 10.470 * 66.90 [16:26:12]line = 700.44 [16:26:12]line НДС 12% НСП 1% [16:26:12]line > о реализуемом товаре [16:26:12]line ОКРУГЛЕНИЕ: -0.44 [16:26:12]line ИТОГО: 700.00 [16:26:12]line Внесено: 700.00 [16:26:12]line СДАЧА: 0.00 [16:26:12]line НСП 1% : 6.20 [16:26:12]line НДС 12% : 74.38 [16:26:12]line Наличными: 700.00 [16:26:12]line Безнал.: 0.00 [16:26:12]line Место: АЗС № 170 "Партнер Нефть" [16:26:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:26:12]line СНО: Общий режим [16:26:12]line Чек 245 25.10.2024 16:26 [16:26:12]line Смена: 540 ФФД: 1.0 [16:26:12]line ЗНМ: 0300000110 [16:26:12]line РНМ: 0000000000091776 [16:26:12]line Версия ККМ: 001 [16:26:12]line ФМ: 0000000000871754 [16:26:12]line ФД: 191506 [16:26:12]line ФПД: 226647036565776 [16:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191506&fm=226647036565776&tin=02508201610067®Number=0000000000091776&sum=70000 [16:26:12]Connected sock=9 [16:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 30 07 01 40 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 AC C6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EC 02 00 35 04 06 00 CE 22 60 1A 99 10 4D A7 10 31 BB 09 54 3F [16:26:12]written 0, free lines is 4095 [16:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B3 B1 47 00 89 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 31 37 35 34 10 04 04 00 12 EC 02 00 F4 03 04 00 7A 6B 1B 67 B6 04 01 00 00 56 35 4D 17 A8 17 67 9B [16:26:12]CommunicateWithHost err = 0 [16:26:12]CheckOFDResponse [16:26:12]1017 (14) - 77093643461234 [16:26:12]1041 (16) - 0000000000871754 [16:26:12]1040 (4) - 191506 [16:26:12]1012 (4) - 25.10.2024 09:57 [16:26:12]1206 (1) - 0 [16:26:12]OFD Sender: Remove packet 191506 [16:26:12]ProducePacketName [16:26:12]name=ofd_packets/00191506 [16:26:12]NVStorageDeleteData [16:26:13]Write to MH i2c: 01 00 00 8A B4 3E [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 8A B4 00 00 00 00 00 BB 0C 0C [16:26:13]RasterBufferAndPrint [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]written 0, free lines is 3266 [16:26:13]MH_Cut [16:26:13]Write to MH i2c: D1 01 00 91 B4 01 17 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 01 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 01 00 91 B4 00 16 [16:26:13]Write to MH i2c: 01 00 00 92 B4 46 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]OFD Sender: No OFD packet to send [16:26:13]*** Cut start [16:26:13]*** Partial cut [16:26:13]*** CUTSNS_PIN = 1 [16:26:14]*** CUTSNS_PIN = 0 [16:26:14]*** Brake cut motor [16:26:14]Read from MH i2c: 01 [16:26:14]MH_I2C_Read... [16:26:14]*** Stop cut motor [16:26:14]*** Cut end [16:26:14]Read from MH i2c: 01 07 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: 01 07 00 92 B4 00 00 00 00 00 FF 0F 5B [16:26:14]process_action close_receipt done [16:26:14]requested_data is exist [16:26:14]produce_requested_data [16:26:14]requested_item fm.sn is exist - process it [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 11 00 00 [16:26:14]Write to MH i2c: E2 08 00 93 B4 80 11 00 00 00 00 00 00 C1 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 17 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 17 00 93 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [16:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:14]wFMCommunicate OK [16:26:14]requested_item fd.num is exist - process it [16:26:14]SAM_PROTO_GetFieldsCounters [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 13 00 00 [16:26:14]Write to MH i2c: E2 08 00 94 B4 80 13 00 00 00 00 00 00 C4 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 62 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 62 00 94 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:14]wFMCommunicate OK [16:26:14]SAM_PROTO_GetFieldsCounters done [16:26:14]requested_item shift.num is exist - process it [16:26:14]requested_item shift.opened is exist - process it [16:26:14]req_shift_opened [16:26:14]FM_GetShiftState [16:26:14]SAM_PROTO_GetShiftState [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 13 01 00 [16:26:14]Write to MH i2c: E2 08 00 95 B4 80 13 01 00 00 00 00 00 C6 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 95 B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 89 [16:26:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:26:14]wFMCommunicate OK [16:26:14]SAM_PROTO_GetShiftState done [16:26:14]FM_GetShiftState done [16:26:14]req_shift_opened done [16:26:14]requested_item shift.open_date is exist - process it [16:26:14]req_shift_open_date [16:26:14]req_shift_open_date done [16:26:14]produce_requested_data done [16:26:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191506,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:26:14]process_action_free close_receipt [16:26:14]json_value_free [16:26:14]json_value_free done [16:26:14]process_json_proto returns [16:26:14]Send response to host [16:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191506,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:26:14]free response buf [16:26:14]execute_script done [16:26:14]execute_script returns [16:26:14]free content buf [16:26:14]Sock 10.Close socket [16:26:14]Sock 10.Thread stoped [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:50]accept exits with 8 [16:27:50]New connection [16:27:50]New thread 3066817892 created [16:27:50]Thread 3066961252 joined [16:27:50]Waiting for new connection... [16:27:50] Sock 8.Parse request [16:27:50]Sock 8.Check first char [16:27:50]Sock 8.First char is OK [16:27:50]request: POST /json_proto HTTP/1.0 [16:27:50]Method: POST [16:27:50]URL: /json_proto [16:27:50]Method is POST - this is cgi request [16:27:50]url: /json_proto [16:27:50]query_string will be loaded in cgi processing [16:27:50]execute_cgi json_proto POST (null) [16:27:50]execute_cgi path=json_proto method=POST [16:27:50]POST find Content-Length [16:27:50]Host: 172.17.63.131:8080 [16:27:50]Content-Length: 676 [16:27:50]Content-Type: application/json [16:27:50] [16:27:50]POST finish read [16:27:50]Found Content-Length = 676 [16:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:50]execute_script... [16:27: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)30805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:50]POST & json_proto [16:27:50]process_json_proto [16:27:50]json parsed OK: [16:27:50]protocol is kg_v1.0 [16:27:50]action value=close_receipt [16:27:50]process_action close_receipt [16:27:50]cmd_close_receipt [16:27:50]MH_GetDate [16:27:50]Write to MH i2c: F0 00 00 96 B4 39 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 09 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 09 00 96 B4 00 10 C7 1B 67 22 05 6E 64 94 [16:27:50]GetLastDocTimeStamp 1729873580 [16:27:50]current date 1729873680 [16:27:50]FM_GetShiftState [16:27:50]SAM_PROTO_GetShiftState [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 13 01 00 [16:27:50]Write to MH i2c: E2 08 00 97 B4 80 13 01 00 00 00 00 00 C8 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 97 B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8B [16:27:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_GetShiftState done [16:27:50]FM_GetShiftState done [16:27:50]opened in 1729816399 [16:27:50]opened+sec_in_day 1729902799 [16:27:50]quantity*price = 50041 [16:27:50]sum+1 = 50042 [16:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 246 25.10.2024 16:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191507 ФПД: 242797080608434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191507&fm=242797080608434&tin=02508201610067®Number=0000000000091776&sum=50000 [16:27:51]StoreToDocumentArchive [16:27:51]shift 540 fd 191507 [16:27:51]save to /storage/0540/doc_00191507 [16:27:51]save last doc name /storage/0540/doc_00191507 to /storage/kkm_last_doc_name [16:27:51]save OK [16:27:51]Clear old archive folders... [16:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:51]tlvbuf is 015E58C0 [16:27:51]SAM_PROTO_ClearQueue [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 09 00 00 [16:27:51]Write to MH i2c: E2 08 00 A4 B4 80 09 00 00 00 00 00 00 CA [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 A4 B4 00 90 00 CC [16:27:51]RAPDU: 90 00 [16:27:51]wFMCommunicate OK [16:27:51]SAM_PROTO_ClearQueue done [16:27:51]KKMCreateOFDPacket [16:27:51]OFDProtocolAddRootSTLVToBuf [16:27:51]FM_MakeSignedData [16:27:51]FM_MakeSignedData [16:27:51]SAM_PROTO_SignData [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 0D 01 02 [16:27:51]Write to MH i2c: E2 08 00 A5 B4 80 0D 01 02 00 00 00 00 D2 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 A5 B4 00 90 00 CD [16:27:51]RAPDU: 90 00 [16:27:51]wFMCommunicate OK [16:27:51]wFMCommunicate request_size=255 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 10 C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EC 02 00 35 04 06 00 DC [16:27:51]Write to MH i2c: E2 02 01 A6 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 10 C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EC 02 00 35 04 06 00 DC 00 00 B0 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 A6 B4 00 90 00 CE [16:27:51]RAPDU: 90 00 [16:27:51]wFMCommunicate OK [16:27:51]wFMCommunicate request_size=10 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 0D 02 02 05 D2 99 BD FE B2 [16:27:51]Write to MH i2c: E2 0D 00 A7 B4 80 0D 02 02 05 00 D2 99 BD FE B2 00 00 B7 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 03 00 A7 B4 00 90 00 CF [16:27:51]RAPDU: 90 00 [16:27:51]wFMCommunicate OK [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 0D 03 02 [16:27:51]Write to MH i2c: E2 08 00 A8 B4 80 0D 03 02 00 00 00 00 D7 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0B 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0B 00 A8 B4 00 3D A0 AC AD 1E CB 42 12 90 00 4B [16:27:52]RAPDU: 3D A0 AC AD 1E CB 42 12 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_SignData done [16:27:52]FM_MakeSignedData done [16:27:52]CreateOFDProtocolMessage [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 11 00 00 [16:27:52]Write to MH i2c: E2 08 00 A9 B4 80 11 00 00 00 00 00 00 D7 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 A9 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [16:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:27:52]wFMCommunicate OK [16:27:52]CreateOFDProtocolMessage done [16:27:52]OFDSenderStorePacket 191507 [16:27:52]StoreOFDPacket docnum=191507 [16:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 B0 07 01 04 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 10 C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EC 02 00 35 04 06 00 DC D2 99 BD FE B2 3D A0 AC AD 1E CB 42 12 [16:27:52]CheckFolder [16:27:52]dirname=/storage/ofd_packets [16:27:52]CheckFolder done [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00191507 [16:27:52]NVStorageSaveData ofd_packets/00191507 [16:27:52]File name is /storage/ofd_packets/00191507 [16:27:52]Write 301 bytes [16:27:52]NVStorageSaveData done [16:27:52]OFDSenderStorePacket done [16:27:52]KKMCreateOFDPacket done [16:27:52]NVStorageSaveData kkm_last_timestamp [16:27:52]File name is /storage/kkm_last_timestamp [16:27:52]Write 4 bytes [16:27:52]NVStorageSaveData done [16:27:52]ExternCall_PrintAddStr [16:27:52]wPrintStart [16:27:52]Write to MH i2c: 01 00 00 AA B4 5E [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 AA B4 00 00 00 00 00 FF 0F 73 [16:27:52]RasterBufferAndPrint [16:27:52]line Счет N : (1)30805 [16:27:52]line ИНН: 02508201610067 [16:27:52]line Контрольно-Кассовый Чек [16:27:52]line ПРОДАЖА [16:27:52]line ТРК (МРК, ГНК) : 12 [16:27:52]line Товар: 2710124130 [16:27:52]line Аи-92-К-5 [16:27:52]line 7.480 * 66.90 [16:27:52]line = 500.41 [16:27:52]line НДС 12% НСП 1% [16:27:52]line > о реализуемом товаре [16:27:52]line ОКРУГЛЕНИЕ: -0.41 [16:27:52]line ИТОГО: 500.00 [16:27:52]line Внесено: 500.00 [16:27:52]line СДАЧА: 0.00 [16:27:52]line НСП 1% : 4.43 [16:27:52]line НДС 12% : 53.14 [16:27:52]line Наличными: 500.00 [16:27:52]line Безнал.: 0.00 [16:27:52]line Место: АЗС № 170 "Партнер Нефть" [16:27:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:27:52]line СНО: Общий режим [16:27:52]line Чек 246 25.10.2024 16:28 [16:27:52]line Смена: 540 ФФД: 1.0 [16:27:52]line ЗНМ: 0300000110 [16:27:52]line РНМ: 0000000000091776 [16:27:52]line Версия ККМ: 001 [16:27:52]line ФМ: 0000000000871754 [16:27:52]line ФД: 191507 [16:27:52]line ФПД: 242797080608434 [16:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191507&fm=242797080608434&tin=02508201610067®Number=0000000000091776&sum=50000 [16:27:52]OFD Sender: Processing packet 191507 [packets to send 75, broken 74] [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00191507 [16:27:52]OFD Sender: To server: pG, [16:27:52]CommunicateWithHost lk.salyk.kg:30040 [16:27:52]ConnectInit lk.salyk.kg [16:27:52]written 0, free lines is 4095 [16:27:52]Connected sock=10 [16:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 B0 07 01 04 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 10 C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EC 02 00 35 04 06 00 DC D2 99 BD FE B2 3D A0 AC AD 1E CB 42 12 [16:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D CE 47 00 D2 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EC 02 00 F4 03 04 00 DE 6B 1B 67 B6 04 01 00 00 7A C0 F7 1B CA 9D F8 E0 [16:27:52]CommunicateWithHost err = 0 [16:27:52]CheckOFDResponse [16:27:52]1017 (14) - 77093643461234 [16:27:52]1041 (16) - 0000000000871754 [16:27:52]1040 (4) - 191507 [16:27:52]1012 (4) - 25.10.2024 09:58 [16:27:52]1206 (1) - 0 [16:27:52]OFD Sender: Remove packet 191507 [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00191507 [16:27:52]NVStorageDeleteData [16:27:52]Write to MH i2c: 01 00 00 D5 B4 89 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 D5 B4 00 00 00 00 00 C2 0C 5E [16:27:52]RasterBufferAndPrint [16:27:52]line [16:27:52]line [16:27:52]line [16:27:52]line [16:27:52]line [16:27:52]written 0, free lines is 3272 [16:27:52]MH_Cut [16:27:52]Write to MH i2c: D1 01 00 DC B4 01 62 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: D1 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: D1 01 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: D1 01 00 DC B4 00 61 [16:27:52]Write to MH i2c: 01 00 00 DD B4 91 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:53]OFD Sender: No OFD packet to send [16:27:53]*** Cut start [16:27:53]*** Partial cut [16:27:53]*** CUTSNS_PIN = 1 [16:27:53]*** CUTSNS_PIN = 0 [16:27:53]*** Brake cut motor [16:27:54]Read from MH i2c: 01 [16:27:54]MH_I2C_Read... [16:27:54]*** Stop cut motor [16:27:54]*** Cut end [16:27:54]Read from MH i2c: 01 07 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: 01 07 00 DD B4 00 00 00 00 00 FF 0F A6 [16:27:54]process_action close_receipt done [16:27:54]requested_data is exist [16:27:54]produce_requested_data [16:27:54]requested_item fm.sn is exist - process it [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 11 00 00 [16:27:54]Write to MH i2c: E2 08 00 DE B4 80 11 00 00 00 00 00 00 0C [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 17 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 17 00 DE B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [16:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:27:54]wFMCommunicate OK [16:27:54]requested_item fd.num is exist - process it [16:27:54]SAM_PROTO_GetFieldsCounters [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 13 00 00 [16:27:54]Write to MH i2c: E2 08 00 DF B4 80 13 00 00 00 00 00 00 0F [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 62 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 62 00 DF B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:54]wFMCommunicate OK [16:27:54]SAM_PROTO_GetFieldsCounters done [16:27:54]requested_item shift.num is exist - process it [16:27:54]requested_item shift.opened is exist - process it [16:27:54]req_shift_opened [16:27:54]FM_GetShiftState [16:27:54]SAM_PROTO_GetShiftState [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 13 01 00 [16:27:54]Write to MH i2c: E2 08 00 E0 B4 80 13 01 00 00 00 00 00 11 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 E0 B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D4 [16:27:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:27:54]wFMCommunicate OK [16:27:54]SAM_PROTO_GetShiftState done [16:27:54]FM_GetShiftState done [16:27:54]req_shift_opened done [16:27:54]requested_item shift.open_date is exist - process it [16:27:54]req_shift_open_date [16:27:54]req_shift_open_date done [16:27:54]produce_requested_data done [16:27:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191507,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:27:54]process_action_free close_receipt [16:27:54]json_value_free [16:27:54]json_value_free done [16:27:54]process_json_proto returns [16:27:54]Send response to host [16:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191507,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:27:54]free response buf [16:27:54]execute_script done [16:27:54]execute_script returns [16:27:54]free content buf [16:27:54]Sock 8.Close socket [16:27:54]Sock 8.Thread stoped [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:45]accept exits with 9 [16:31:45]New connection [16:31:45]New thread 3066961252 created [16:31:45]Thread 3066817892 joined [16:31:45]Waiting for new connection... [16:31:45] Sock 9.Parse request [16:31:45]Sock 9.Check first char [16:31:45]Sock 9.First char is OK [16:31:45]request: POST /json_proto HTTP/1.0 [16:31:45]Method: POST [16:31:45]URL: /json_proto [16:31:45]Method is POST - this is cgi request [16:31:45]url: /json_proto [16:31:45]query_string will be loaded in cgi processing [16:31:45]execute_cgi json_proto POST (null) [16:31:45]execute_cgi path=json_proto method=POST [16:31:45]POST find Content-Length [16:31:45]Host: 172.17.63.131:8080 [16:31:45]Content-Length: 681 [16:31:45]Content-Type: application/json [16:31:45] [16:31:45]POST finish read [16:31:45]Found Content-Length = 681 [16:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:45]execute_script... [16:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:45]POST & json_proto [16:31:45]process_json_proto [16:31:45]json parsed OK: [16:31:45]protocol is kg_v1.0 [16:31:45]action value=close_receipt [16:31:45]process_action close_receipt [16:31:45]cmd_close_receipt [16:31:45]MH_GetDate [16:31:45]Write to MH i2c: F0 00 00 E1 B4 84 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: F0 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: F0 09 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: F0 09 00 E1 B4 00 FB C7 1B 67 22 05 6E 64 CA [16:31:45]GetLastDocTimeStamp 1729873680 [16:31:45]current date 1729873915 [16:31:45]FM_GetShiftState [16:31:45]SAM_PROTO_GetShiftState [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 13 01 00 [16:31:45]Write to MH i2c: E2 08 00 E2 B4 80 13 01 00 00 00 00 00 13 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0E 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0E 00 E2 B4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [16:31:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:31:45]wFMCommunicate OK [16:31:45]SAM_PROTO_GetShiftState done [16:31:45]FM_GetShiftState done [16:31:45]opened in 1729816399 [16:31:45]opened+sec_in_day 1729902799 [16:31:45]quantity*price = 100015 [16:31:45]sum+1 = 100017 [16:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 247 25.10.2024 16:31 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191508 ФПД: 156264148395410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191508&fm=156264148395410&tin=02508201610067®Number=0000000000091776&sum=100000 [16:31:46]StoreToDocumentArchive [16:31:46]shift 540 fd 191508 [16:31:46]save to /storage/0540/doc_00191508 [16:31:46]save last doc name /storage/0540/doc_00191508 to /storage/kkm_last_doc_name [16:31:46]save OK [16:31:46]Clear old archive folders... [16:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:46]tlvbuf is 0183C290 [16:31:46]SAM_PROTO_ClearQueue [16:31:46]wFMCommunicate request_size=4 [16:31:46]MH_SAM_APDU [16:31:46]CAPDU: 80 09 00 00 [16:31:46]Write to MH i2c: E2 08 00 EF B4 80 09 00 00 00 00 00 00 15 [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:46]Read from MH i2c: E2 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 03 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 03 00 EF B4 00 90 00 17 [16:31:46]RAPDU: 90 00 [16:31:46]wFMCommunicate OK [16:31:46]SAM_PROTO_ClearQueue done [16:31:46]KKMCreateOFDPacket [16:31:46]OFDProtocolAddRootSTLVToBuf [16:31:46]FM_MakeSignedData [16:31:46]FM_MakeSignedData [16:31:46]SAM_PROTO_SignData [16:31:46]wFMCommunicate request_size=4 [16:31:46]MH_SAM_APDU [16:31:46]CAPDU: 80 0D 01 02 [16:31:46]Write to MH i2c: E2 08 00 F0 B4 80 0D 01 02 00 00 00 00 1D [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 F0 B4 00 90 00 18 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=255 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EC 02 00 35 04 06 00 8E [16:31:47]Write to MH i2c: E2 02 01 F1 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EC 02 00 35 04 06 00 8E 00 00 94 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 F1 B4 00 90 00 19 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=10 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 02 02 05 1F 15 0E 65 92 [16:31:47]Write to MH i2c: E2 0D 00 F2 B4 80 0D 02 02 05 00 1F 15 0E 65 92 00 00 63 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 F2 B4 00 90 00 1A [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 03 02 [16:31:47]Write to MH i2c: E2 08 00 F3 B4 80 0D 03 02 00 00 00 00 22 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0B 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0B 00 F3 B4 00 43 F6 23 DF A1 96 1B 89 90 00 39 [16:31:47]RAPDU: 43 F6 23 DF A1 96 1B 89 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_SignData done [16:31:47]FM_MakeSignedData done [16:31:47]CreateOFDProtocolMessage [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 11 00 00 [16:31:47]Write to MH i2c: E2 08 00 F4 B4 80 11 00 00 00 00 00 00 22 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 F4 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [16:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:31:47]wFMCommunicate OK [16:31:47]CreateOFDProtocolMessage done [16:31:47]OFDSenderStorePacket 191508 [16:31:47]StoreOFDPacket docnum=191508 [16:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 14 07 01 17 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EC 02 00 35 04 06 00 8E 1F 15 0E 65 92 43 F6 23 DF A1 96 1B 89 [16:31:47]CheckFolder [16:31:47]dirname=/storage/ofd_packets [16:31:47]CheckFolder done [16:31:47]ProducePacketName [16:31:47]name=ofd_packets/00191508 [16:31:47]NVStorageSaveData ofd_packets/00191508 [16:31:47]File name is /storage/ofd_packets/00191508 [16:31:47]Write 301 bytes [16:31:47]NVStorageSaveData done [16:31:47]OFDSenderStorePacket done [16:31:47]KKMCreateOFDPacket done [16:31:47]NVStorageSaveData kkm_last_timestamp [16:31:47]File name is /storage/kkm_last_timestamp [16:31:47]Write 4 bytes [16:31:47]NVStorageSaveData done [16:31:47]ExternCall_PrintAddStr [16:31:47]wPrintStart [16:31:47]Write to MH i2c: 01 00 00 F5 B4 A9 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 F5 B4 00 00 00 00 00 FF 0F BE [16:31:47]RasterBufferAndPrint [16:31:47]line Счет N : (1)30806 [16:31:47]line ИНН: 02508201610067 [16:31:47]line Контрольно-Кассовый Чек [16:31:47]line ПРОДАЖА [16:31:47]line ТРК (МРК, ГНК) : 21 [16:31:47]line Товар: 2710124130 [16:31:47]line Аи-92-К-5 [16:31:47]line 14.950 * 66.90 [16:31:47]line = 1000.16 [16:31:47]line НДС 12% НСП 1% [16:31:47]line > о реализуемом товаре [16:31:47]line ОКРУГЛЕНИЕ: -0.16 [16:31:47]line ИТОГО: 1000.00 [16:31:47]line Внесено: 1000.00 [16:31:47]line СДАЧА: 0.00 [16:31:47]line НСП 1% : 8.85 [16:31:47]line НДС 12% : 106.21 [16:31:47]line Наличными: 1000.00 [16:31:47]line Безнал.: 0.00 [16:31:47]line Место: АЗС № 170 "Партнер Нефть" [16:31:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:31:47]line СНО: Общий режим [16:31:47]line Чек 247 25.10.2024 16:31 [16:31:47]line Смена: 540 ФФД: 1.0 [16:31:47]line ЗНМ: 0300000110 [16:31:47]line РНМ: 0000000000091776 [16:31:47]line Версия ККМ: 001 [16:31:47]line ФМ: 0000000000871754 [16:31:47]line ФД: 191508 [16:31:47]line ФПД: 156264148395410 [16:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191508&fm=156264148395410&tin=02508201610067®Number=0000000000091776&sum=100000 [16:31:47]OFD Sender: Processing packet 191508 [packets to send 75, broken 74] [16:31:47]ProducePacketName [16:31:47]name=ofd_packets/00191508 [16:31:47]OFD Sender: To server: pG, [16:31:47]CommunicateWithHost lk.salyk.kg:30040 [16:31:47]ConnectInit lk.salyk.kg [16:31:47]written 0, free lines is 4095 [16:31:47]Connected sock=10 [16:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 14 07 01 17 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB C7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EC 02 00 35 04 06 00 8E 1F 15 0E 65 92 43 F6 23 DF A1 96 1B 89 [16:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 71 C7 47 00 44 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EC 02 00 F4 03 04 00 C9 6C 1B 67 B6 04 01 00 00 40 4D D9 C5 D5 25 07 1E [16:31:48]CommunicateWithHost err = 0 [16:31:48]CheckOFDResponse [16:31:48]1017 (14) - 77093643461234 [16:31:48]1041 (16) - 0000000000871754 [16:31:48]1040 (4) - 191508 [16:31:48]1012 (4) - 25.10.2024 10:02 [16:31:48]1206 (1) - 0 [16:31:48]OFD Sender: Remove packet 191508 [16:31:48]ProducePacketName [16:31:48]name=ofd_packets/00191508 [16:31:48]NVStorageDeleteData [16:31:48]Write to MH i2c: 01 00 00 20 B5 D5 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 20 B5 00 00 00 00 00 C6 0C AE [16:31:48]RasterBufferAndPrint [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]written 0, free lines is 3276 [16:31:48]MH_Cut [16:31:48]Write to MH i2c: D1 01 00 27 B5 01 AE [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: D1 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: D1 01 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: D1 01 00 27 B5 00 AD [16:31:48]Write to MH i2c: 01 00 00 28 B5 DD [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]OFD Sender: No OFD packet to send [16:31:49]*** Cut start [16:31:49]*** Partial cut [16:31:49]*** CUTSNS_PIN = 1 [16:31:49]*** CUTSNS_PIN = 0 [16:31:49]*** Brake cut motor [16:31:49]Read from MH i2c: 01 [16:31:49]MH_I2C_Read... [16:31:49]*** Stop cut motor [16:31:49]*** Cut end [16:31:49]Read from MH i2c: 01 07 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 07 00 28 B5 00 00 00 00 00 FF 0F F2 [16:31:49]process_action close_receipt done [16:31:49]requested_data is exist [16:31:49]produce_requested_data [16:31:49]requested_item fm.sn is exist - process it [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 11 00 00 [16:31:49]Write to MH i2c: E2 08 00 29 B5 80 11 00 00 00 00 00 00 58 [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 17 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 17 00 29 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [16:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:31:49]wFMCommunicate OK [16:31:49]requested_item fd.num is exist - process it [16:31:49]SAM_PROTO_GetFieldsCounters [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 13 00 00 [16:31:49]Write to MH i2c: E2 08 00 2A B5 80 13 00 00 00 00 00 00 5B [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 62 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 62 00 2A B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:49]wFMCommunicate OK [16:31:49]SAM_PROTO_GetFieldsCounters done [16:31:49]requested_item shift.num is exist - process it [16:31:49]requested_item shift.opened is exist - process it [16:31:49]req_shift_opened [16:31:49]FM_GetShiftState [16:31:49]SAM_PROTO_GetShiftState [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 13 01 00 [16:31:49]Write to MH i2c: E2 08 00 2B B5 80 13 01 00 00 00 00 00 5D [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 0E 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 0E 00 2B B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 20 [16:31:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:31:49]wFMCommunicate OK [16:31:49]SAM_PROTO_GetShiftState done [16:31:49]FM_GetShiftState done [16:31:49]req_shift_opened done [16:31:49]requested_item shift.open_date is exist - process it [16:31:49]req_shift_open_date [16:31:49]req_shift_open_date done [16:31:49]produce_requested_data done [16:31:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191508,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:31:49]process_action_free close_receipt [16:31:49]json_value_free [16:31:49]json_value_free done [16:31:49]process_json_proto returns [16:31:49]Send response to host [16:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191508,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:31:49]free response buf [16:31:49]execute_script done [16:31:49]execute_script returns [16:31:49]free content buf [16:31:49]Sock 9.Close socket [16:31:49]Sock 9.Thread stoped [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:06]accept exits with 8 [16:32:06]New connection [16:32:06]New thread 3066817892 created [16:32:06]Thread 3066961252 joined [16:32:06]Waiting for new connection... [16:32:06] Sock 8.Parse request [16:32:06]Sock 8.Check first char [16:32:06]Sock 8.First char is OK [16:32:06]request: POST /json_proto HTTP/1.0 [16:32:06]Method: POST [16:32:06]URL: /json_proto [16:32:06]Method is POST - this is cgi request [16:32:06]url: /json_proto [16:32:06]query_string will be loaded in cgi processing [16:32:06]execute_cgi json_proto POST (null) [16:32:06]execute_cgi path=json_proto method=POST [16:32:06]POST find Content-Length [16:32:06]Host: 172.17.63.131:8080 [16:32:06]Content-Length: 677 [16:32:06]Content-Type: application/json [16:32:06] [16:32:06]POST finish read [16:32:06]Found Content-Length = 677 [16:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:06]execute_script... [16:32: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)30807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:06]POST & json_proto [16:32:06]process_json_proto [16:32:06]json parsed OK: [16:32:06]protocol is kg_v1.0 [16:32:06]action value=close_receipt [16:32:06]process_action close_receipt [16:32:06]cmd_close_receipt [16:32:06]MH_GetDate [16:32:06]Write to MH i2c: F0 00 00 2C B5 D0 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: F0 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: F0 09 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: F0 09 00 2C B5 00 10 C8 1B 67 22 05 6E 64 2C [16:32:06]GetLastDocTimeStamp 1729873915 [16:32:06]current date 1729873936 [16:32:06]FM_GetShiftState [16:32:06]SAM_PROTO_GetShiftState [16:32:06]wFMCommunicate request_size=4 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 13 01 00 [16:32:06]Write to MH i2c: E2 08 00 2D B5 80 13 01 00 00 00 00 00 5F [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:07]Read from MH i2c: E2 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: E2 0E 00 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: E2 0E 00 2D B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 22 [16:32:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:32:07]wFMCommunicate OK [16:32:07]SAM_PROTO_GetShiftState done [16:32:07]FM_GetShiftState done [16:32:07]opened in 1729816399 [16:32:07]opened+sec_in_day 1729902799 [16:32:07]quantity*price = 80012 [16:32:07]sum+1 = 80013 [16:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 248 25.10.2024 16:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191509 ФПД: 55213318020588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191509&fm=55213318020588&tin=02508201610067®Number=0000000000091776&sum=80000 [16:32:08]StoreToDocumentArchive [16:32:08]shift 540 fd 191509 [16:32:08]save to /storage/0540/doc_00191509 [16:32:08]save last doc name /storage/0540/doc_00191509 to /storage/kkm_last_doc_name [16:32:08]save OK [16:32:08]Clear old archive folders... [16:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:08]tlvbuf is 0160B580 [16:32:08]SAM_PROTO_ClearQueue [16:32:08]wFMCommunicate request_size=4 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 09 00 00 [16:32:08]Write to MH i2c: E2 08 00 3A B5 80 09 00 00 00 00 00 00 61 [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 3A B5 00 90 00 63 [16:32:08]RAPDU: 90 00 [16:32:08]wFMCommunicate OK [16:32:08]SAM_PROTO_ClearQueue done [16:32:08]KKMCreateOFDPacket [16:32:08]OFDProtocolAddRootSTLVToBuf [16:32:08]FM_MakeSignedData [16:32:08]FM_MakeSignedData [16:32:08]SAM_PROTO_SignData [16:32:08]wFMCommunicate request_size=4 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 0D 01 02 [16:32:08]Write to MH i2c: E2 08 00 3B B5 80 0D 01 02 00 00 00 00 69 [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 3B B5 00 90 00 64 [16:32:08]RAPDU: 90 00 [16:32:08]wFMCommunicate OK [16:32:08]wFMCommunicate request_size=255 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EC 02 00 35 04 06 00 32 [16:32:08]Write to MH i2c: E2 02 01 3C B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EC 02 00 35 04 06 00 32 00 00 8E [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 3C B5 00 90 00 65 [16:32:08]RAPDU: 90 00 [16:32:08]wFMCommunicate OK [16:32:08]wFMCommunicate request_size=10 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 0D 02 02 05 37 5A 35 1D EC [16:32:08]Write to MH i2c: E2 0D 00 3D B5 80 0D 02 02 05 00 37 5A 35 1D EC 00 00 45 [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 03 00 3D B5 00 90 00 66 [16:32:08]RAPDU: 90 00 [16:32:08]wFMCommunicate OK [16:32:08]wFMCommunicate request_size=4 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 0D 03 02 [16:32:08]Write to MH i2c: E2 08 00 3E B5 80 0D 03 02 00 00 00 00 6E [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 0B 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 0B 00 3E B5 00 04 09 B7 63 DC 9E BA 88 90 00 52 [16:32:08]RAPDU: 04 09 B7 63 DC 9E BA 88 90 00 [16:32:08]wFMCommunicate OK [16:32:08]SAM_PROTO_SignData done [16:32:08]FM_MakeSignedData done [16:32:08]CreateOFDProtocolMessage [16:32:08]wFMCommunicate request_size=4 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 11 00 00 [16:32:08]Write to MH i2c: E2 08 00 3F B5 80 11 00 00 00 00 00 00 6E [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 17 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 17 00 3F B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [16:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:08]wFMCommunicate OK [16:32:08]CreateOFDProtocolMessage done [16:32:08]OFDSenderStorePacket 191509 [16:32:08]StoreOFDPacket docnum=191509 [16:32:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 7A 07 01 F9 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EC 02 00 35 04 06 00 32 37 5A 35 1D EC 04 09 B7 63 DC 9E BA 88 [16:32:08]CheckFolder [16:32:08]dirname=/storage/ofd_packets [16:32:08]CheckFolder done [16:32:08]ProducePacketName [16:32:08]name=ofd_packets/00191509 [16:32:08]NVStorageSaveData ofd_packets/00191509 [16:32:08]File name is /storage/ofd_packets/00191509 [16:32:08]Write 301 bytes [16:32:08]NVStorageSaveData done [16:32:08]OFDSenderStorePacket done [16:32:08]KKMCreateOFDPacket done [16:32:08]NVStorageSaveData kkm_last_timestamp [16:32:08]File name is /storage/kkm_last_timestamp [16:32:08]Write 4 bytes [16:32:08]NVStorageSaveData done [16:32:08]ExternCall_PrintAddStr [16:32:08]wPrintStart [16:32:08]Write to MH i2c: 01 00 00 40 B5 F5 [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: 01 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: 01 07 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: 01 07 00 40 B5 00 00 00 00 00 FF 0F 0A [16:32:08]RasterBufferAndPrint [16:32:08]line Счет N : (1)30807 [16:32:08]line ИНН: 02508201610067 [16:32:08]line Контрольно-Кассовый Чек [16:32:08]line ПРОДАЖА [16:32:08]line ТРК (МРК, ГНК) : 12 [16:32:08]line Товар: 2710124130 [16:32:08]line Аи-92-К-5 [16:32:08]line 11.960 * 66.90 [16:32:08]line = 800.12 [16:32:08]line НДС 12% НСП 1% [16:32:08]line > о реализуемом товаре [16:32:08]line ОКРУГЛЕНИЕ: -0.12 [16:32:08]line ИТОГО: 800.00 [16:32:08]line Внесено: 800.00 [16:32:08]line СДАЧА: 0.00 [16:32:08]line НСП 1% : 7.08 [16:32:08]line НДС 12% : 84.97 [16:32:08]line Наличными: 800.00 [16:32:08]line Безнал.: 0.00 [16:32:08]line Место: АЗС № 170 "Партнер Нефть" [16:32:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:32:08]line СНО: Общий режим [16:32:08]line Чек 248 25.10.2024 16:32 [16:32:08]line Смена: 540 ФФД: 1.0 [16:32:08]line ЗНМ: 0300000110 [16:32:08]line РНМ: 0000000000091776 [16:32:08]line Версия ККМ: 001 [16:32:08]line ФМ: 0000000000871754 [16:32:08]line ФД: 191509 [16:32:08]line ФПД: 55213318020588 [16:32:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191509&fm=55213318020588&tin=02508201610067®Number=0000000000091776&sum=80000 [16:32:09]OFD Sender: Processing packet 191509 [packets to send 75, broken 74] [16:32:09]ProducePacketName [16:32:09]name=ofd_packets/00191509 [16:32:09]OFD Sender: To server: pG, [16:32:09]CommunicateWithHost lk.salyk.kg:30040 [16:32:09]ConnectInit lk.salyk.kg [16:32:09]written 0, free lines is 4095 [16:32:09]Connected sock=10 [16:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 7A 07 01 F9 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 10 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EC 02 00 35 04 06 00 32 37 5A 35 1D EC 04 09 B7 63 DC 9E BA 88 [16:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FE A0 47 00 3B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EC 02 00 F4 03 04 00 DE 6C 1B 67 B6 04 01 00 00 42 0A 8D D8 37 91 73 AA [16:32:09]CommunicateWithHost err = 0 [16:32:09]CheckOFDResponse [16:32:09]1017 (14) - 77093643461234 [16:32:09]1041 (16) - 0000000000871754 [16:32:09]1040 (4) - 191509 [16:32:09]1012 (4) - 25.10.2024 10:03 [16:32:09]1206 (1) - 0 [16:32:09]OFD Sender: Remove packet 191509 [16:32:09]ProducePacketName [16:32:09]name=ofd_packets/00191509 [16:32:09]NVStorageDeleteData [16:32:09]Write to MH i2c: 01 00 00 6B B5 20 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 6B B5 00 00 00 00 00 CC 0C FF [16:32:09]RasterBufferAndPrint [16:32:09]line [16:32:09]line [16:32:09]line [16:32:09]line [16:32:09]line [16:32:09]written 0, free lines is 3282 [16:32:09]MH_Cut [16:32:09]Write to MH i2c: D1 01 00 72 B5 01 F9 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: D1 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: D1 01 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: D1 01 00 72 B5 00 F8 [16:32:09]Write to MH i2c: 01 00 00 73 B5 28 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]OFD Sender: No OFD packet to send [16:32:10]*** Cut start [16:32:10]*** Partial cut [16:32:10]*** CUTSNS_PIN = 1 [16:32:10]*** CUTSNS_PIN = 0 [16:32:10]*** Brake cut motor [16:32:10]Read from MH i2c: 01 [16:32:10]MH_I2C_Read... [16:32:10]*** Stop cut motor [16:32:10]*** Cut end [16:32:10]Read from MH i2c: 01 07 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: 01 07 00 73 B5 00 00 00 00 00 FF 0F 3D [16:32:10]process_action close_receipt done [16:32:10]requested_data is exist [16:32:10]produce_requested_data [16:32:10]requested_item fm.sn is exist - process it [16:32:10]wFMCommunicate request_size=4 [16:32:10]MH_SAM_APDU [16:32:10]CAPDU: 80 11 00 00 [16:32:10]Write to MH i2c: E2 08 00 74 B5 80 11 00 00 00 00 00 00 A3 [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:10]Read from MH i2c: E2 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: E2 17 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: E2 17 00 74 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [16:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:10]wFMCommunicate OK [16:32:10]requested_item fd.num is exist - process it [16:32:10]SAM_PROTO_GetFieldsCounters [16:32:10]wFMCommunicate request_size=4 [16:32:10]MH_SAM_APDU [16:32:10]CAPDU: 80 13 00 00 [16:32:10]Write to MH i2c: E2 08 00 75 B5 80 13 00 00 00 00 00 00 A6 [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:11]Read from MH i2c: E2 [16:32:11]MH_I2C_Read... [16:32:11]Read from MH i2c: E2 62 00 [16:32:11]MH_I2C_Read... [16:32:11]Read from MH i2c: E2 62 00 75 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:11]wFMCommunicate OK [16:32:11]SAM_PROTO_GetFieldsCounters done [16:32:11]requested_item shift.num is exist - process it [16:32:11]requested_item shift.opened is exist - process it [16:32:11]req_shift_opened [16:32:11]FM_GetShiftState [16:32:11]SAM_PROTO_GetShiftState [16:32:11]wFMCommunicate request_size=4 [16:32:11]MH_SAM_APDU [16:32:11]CAPDU: 80 13 01 00 [16:32:11]Write to MH i2c: E2 08 00 76 B5 80 13 01 00 00 00 00 00 A8 [16:32:11]Write i2c OK [16:32:11]MH_I2C_Read... [16:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:11]Read from MH i2c: E2 [16:32:11]MH_I2C_Read... [16:32:11]Read from MH i2c: E2 0E 00 [16:32:11]MH_I2C_Read... [16:32:11]Read from MH i2c: E2 0E 00 76 B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6B [16:32:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:32:11]wFMCommunicate OK [16:32:11]SAM_PROTO_GetShiftState done [16:32:11]FM_GetShiftState done [16:32:11]req_shift_opened done [16:32:11]requested_item shift.open_date is exist - process it [16:32:11]req_shift_open_date [16:32:11]req_shift_open_date done [16:32:11]produce_requested_data done [16:32:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191509,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:32:11]process_action_free close_receipt [16:32:11]json_value_free [16:32:11]json_value_free done [16:32:11]process_json_proto returns [16:32:11]Send response to host [16:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191509,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:32:11]free response buf [16:32:11]execute_script done [16:32:11]execute_script returns [16:32:11]free content buf [16:32:11]Sock 8.Close socket [16:32:11]Sock 8.Thread stoped [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:51]accept exits with 9 [16:32:51]New connection [16:32:51]New thread 3066961252 created [16:32:51]Thread 3066817892 joined [16:32:51]Waiting for new connection... [16:32:51] Sock 9.Parse request [16:32:51]Sock 9.Check first char [16:32:51]Sock 9.First char is OK [16:32:51]request: POST /json_proto HTTP/1.0 [16:32:51]Method: POST [16:32:51]URL: /json_proto [16:32:51]Method is POST - this is cgi request [16:32:51]url: /json_proto [16:32:51]query_string will be loaded in cgi processing [16:32:51]execute_cgi json_proto POST (null) [16:32:51]execute_cgi path=json_proto method=POST [16:32:51]POST find Content-Length [16:32:51]Host: 172.17.63.131:8080 [16:32:51]Content-Length: 676 [16:32:51]Content-Type: application/json [16:32:51] [16:32:51]POST finish read [16:32:51]Found Content-Length = 676 [16:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:51]execute_script... [16:32: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)30808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:51]POST & json_proto [16:32:51]process_json_proto [16:32:51]json parsed OK: [16:32:51]protocol is kg_v1.0 [16:32:51]action value=close_receipt [16:32:51]process_action close_receipt [16:32:51]cmd_close_receipt [16:32:51]MH_GetDate [16:32:51]Write to MH i2c: F0 00 00 77 B5 1B [16:32:51]Write i2c OK [16:32:51]MH_I2C_Read... [16:32:51]Read from MH i2c: F0 [16:32:51]MH_I2C_Read... [16:32:51]Read from MH i2c: F0 09 00 [16:32:51]MH_I2C_Read... [16:32:51]Read from MH i2c: F0 09 00 77 B5 00 3D C8 1B 67 22 05 6E 64 A4 [16:32:51]GetLastDocTimeStamp 1729873936 [16:32:51]current date 1729873981 [16:32:51]FM_GetShiftState [16:32:51]SAM_PROTO_GetShiftState [16:32:51]wFMCommunicate request_size=4 [16:32:51]MH_SAM_APDU [16:32:51]CAPDU: 80 13 01 00 [16:32:51]Write to MH i2c: E2 08 00 78 B5 80 13 01 00 00 00 00 00 AA [16:32:51]Write i2c OK [16:32:51]MH_I2C_Read... [16:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:52]Read from MH i2c: E2 [16:32:52]MH_I2C_Read... [16:32:52]Read from MH i2c: E2 0E 00 [16:32:52]MH_I2C_Read... [16:32:52]Read from MH i2c: E2 0E 00 78 B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6D [16:32:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:32:52]wFMCommunicate OK [16:32:52]SAM_PROTO_GetShiftState done [16:32:52]FM_GetShiftState done [16:32:52]opened in 1729816399 [16:32:52]opened+sec_in_day 1729902799 [16:32:52]quantity*price = 20003 [16:32:52]sum+1 = 20004 [16:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 249 25.10.2024 16:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191510 ФПД: 121594752965308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191510&fm=121594752965308&tin=02508201610067®Number=0000000000091776&sum=20000 [16:32:53]StoreToDocumentArchive [16:32:53]shift 540 fd 191510 [16:32:53]save to /storage/0540/doc_00191510 [16:32:53]save last doc name /storage/0540/doc_00191510 to /storage/kkm_last_doc_name [16:32:53]save OK [16:32:53]Clear old archive folders... [16:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:53]tlvbuf is 01600A60 [16:32:53]SAM_PROTO_ClearQueue [16:32:53]wFMCommunicate request_size=4 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 09 00 00 [16:32:53]Write to MH i2c: E2 08 00 85 B5 80 09 00 00 00 00 00 00 AC [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 85 B5 00 90 00 AE [16:32:53]RAPDU: 90 00 [16:32:53]wFMCommunicate OK [16:32:53]SAM_PROTO_ClearQueue done [16:32:53]KKMCreateOFDPacket [16:32:53]OFDProtocolAddRootSTLVToBuf [16:32:53]FM_MakeSignedData [16:32:53]FM_MakeSignedData [16:32:53]SAM_PROTO_SignData [16:32:53]wFMCommunicate request_size=4 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 0D 01 02 [16:32:53]Write to MH i2c: E2 08 00 86 B5 80 0D 01 02 00 00 00 00 B4 [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 86 B5 00 90 00 AF [16:32:53]RAPDU: 90 00 [16:32:53]wFMCommunicate OK [16:32:53]wFMCommunicate request_size=255 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3D C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EC 02 00 35 04 06 00 6E [16:32:53]Write to MH i2c: E2 02 01 87 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3D C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EC 02 00 35 04 06 00 6E 00 00 1A [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 87 B5 00 90 00 B0 [16:32:53]RAPDU: 90 00 [16:32:53]wFMCommunicate OK [16:32:53]wFMCommunicate request_size=10 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 0D 02 02 05 96 FC 0E 9A BC [16:32:53]Write to MH i2c: E2 0D 00 88 B5 80 0D 02 02 05 00 96 FC 0E 9A BC 00 00 B7 [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 03 00 88 B5 00 90 00 B1 [16:32:53]RAPDU: 90 00 [16:32:53]wFMCommunicate OK [16:32:53]wFMCommunicate request_size=4 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 0D 03 02 [16:32:53]Write to MH i2c: E2 08 00 89 B5 80 0D 03 02 00 00 00 00 B9 [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 0B 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 0B 00 89 B5 00 A4 BD EC B0 78 AC 37 8B 90 00 9D [16:32:53]RAPDU: A4 BD EC B0 78 AC 37 8B 90 00 [16:32:53]wFMCommunicate OK [16:32:53]SAM_PROTO_SignData done [16:32:53]FM_MakeSignedData done [16:32:53]CreateOFDProtocolMessage [16:32:53]wFMCommunicate request_size=4 [16:32:53]MH_SAM_APDU [16:32:53]CAPDU: 80 11 00 00 [16:32:53]Write to MH i2c: E2 08 00 8A B5 80 11 00 00 00 00 00 00 B9 [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:53]Read from MH i2c: E2 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 17 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: E2 17 00 8A B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [16:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:53]wFMCommunicate OK [16:32:53]CreateOFDProtocolMessage done [16:32:53]OFDSenderStorePacket 191510 [16:32:53]StoreOFDPacket docnum=191510 [16:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 C1 07 01 56 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3D C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EC 02 00 35 04 06 00 6E 96 FC 0E 9A BC A4 BD EC B0 78 AC 37 8B [16:32:53]CheckFolder [16:32:53]dirname=/storage/ofd_packets [16:32:53]CheckFolder done [16:32:53]ProducePacketName [16:32:53]name=ofd_packets/00191510 [16:32:53]NVStorageSaveData ofd_packets/00191510 [16:32:53]File name is /storage/ofd_packets/00191510 [16:32:53]Write 301 bytes [16:32:53]NVStorageSaveData done [16:32:53]OFDSenderStorePacket done [16:32:53]KKMCreateOFDPacket done [16:32:53]NVStorageSaveData kkm_last_timestamp [16:32:53]File name is /storage/kkm_last_timestamp [16:32:53]Write 4 bytes [16:32:53]NVStorageSaveData done [16:32:53]ExternCall_PrintAddStr [16:32:53]wPrintStart [16:32:53]Write to MH i2c: 01 00 00 8B B5 40 [16:32:53]Write i2c OK [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: 01 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: 01 07 00 [16:32:53]MH_I2C_Read... [16:32:53]Read from MH i2c: 01 07 00 8B B5 00 00 00 00 00 FF 0F 55 [16:32:53]RasterBufferAndPrint [16:32:53]line Счет N : (1)30808 [16:32:53]line ИНН: 02508201610067 [16:32:53]line Контрольно-Кассовый Чек [16:32:53]line ПРОДАЖА [16:32:53]line ТРК (МРК, ГНК) : 12 [16:32:53]line Товар: 2710124130 [16:32:53]line Аи-92-К-5 [16:32:53]line 2.990 * 66.90 [16:32:53]line = 200.03 [16:32:53]line НДС 12% НСП 1% [16:32:53]line > о реализуемом товаре [16:32:53]line ОКРУГЛЕНИЕ: -0.03 [16:32:53]line ИТОГО: 200.00 [16:32:53]line Внесено: 200.00 [16:32:53]line СДАЧА: 0.00 [16:32:53]line НСП 1% : 1.77 [16:32:53]line НДС 12% : 21.24 [16:32:53]line Наличными: 200.00 [16:32:53]line Безнал.: 0.00 [16:32:53]line Место: АЗС № 170 "Партнер Нефть" [16:32:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:32:53]line СНО: Общий режим [16:32:53]line Чек 249 25.10.2024 16:33 [16:32:53]line Смена: 540 ФФД: 1.0 [16:32:53]line ЗНМ: 0300000110 [16:32:53]line РНМ: 0000000000091776 [16:32:53]line Версия ККМ: 001 [16:32:53]line ФМ: 0000000000871754 [16:32:53]line ФД: 191510 [16:32:53]line ФПД: 121594752965308 [16:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191510&fm=121594752965308&tin=02508201610067®Number=0000000000091776&sum=20000 [16:32:54]OFD Sender: Processing packet 191510 [packets to send 75, broken 74] [16:32:54]ProducePacketName [16:32:54]name=ofd_packets/00191510 [16:32:54]OFD Sender: To server: pG, [16:32:54]CommunicateWithHost lk.salyk.kg:30040 [16:32:54]ConnectInit lk.salyk.kg [16:32:54]written 0, free lines is 4095 [16:32:54]Connected sock=10 [16:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 C1 07 01 56 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3D C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EC 02 00 35 04 06 00 6E 96 FC 0E 9A BC A4 BD EC B0 78 AC 37 8B [16:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B4 68 47 00 12 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 31 37 35 34 10 04 04 00 16 EC 02 00 F4 03 04 00 0B 6D 1B 67 B6 04 01 00 00 8A 78 DB FA EB 67 9B 27 [16:32:54]CommunicateWithHost err = 0 [16:32:54]CheckOFDResponse [16:32:54]1017 (14) - 77093643461234 [16:32:54]1041 (16) - 0000000000871754 [16:32:54]1040 (4) - 191510 [16:32:54]1012 (4) - 25.10.2024 10:03 [16:32:54]1206 (1) - 0 [16:32:54]OFD Sender: Remove packet 191510 [16:32:54]ProducePacketName [16:32:54]name=ofd_packets/00191510 [16:32:54]NVStorageDeleteData [16:32:54]Write to MH i2c: 01 00 00 B6 B5 6B [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 07 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 07 00 B6 B5 00 00 00 00 00 C2 0C 40 [16:32:54]RasterBufferAndPrint [16:32:54]line [16:32:54]line [16:32:54]line [16:32:54]line [16:32:54]line [16:32:54]written 0, free lines is 3272 [16:32:54]MH_Cut [16:32:54]Write to MH i2c: D1 01 00 BD B5 01 44 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: D1 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: D1 01 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: D1 01 00 BD B5 00 43 [16:32:54]Write to MH i2c: 01 00 00 BE B5 73 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]OFD Sender: No OFD packet to send [16:32:55]*** Cut start [16:32:55]*** Partial cut [16:32:55]*** CUTSNS_PIN = 1 [16:32:55]*** CUTSNS_PIN = 0 [16:32:55]*** Brake cut motor [16:32:55]Read from MH i2c: 01 [16:32:55]MH_I2C_Read... [16:32:55]*** Stop cut motor [16:32:55]*** Cut end [16:32:55]Read from MH i2c: 01 07 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: 01 07 00 BE B5 00 00 00 00 00 FF 0F 88 [16:32:55]process_action close_receipt done [16:32:55]requested_data is exist [16:32:55]produce_requested_data [16:32:55]requested_item fm.sn is exist - process it [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 11 00 00 [16:32:55]Write to MH i2c: E2 08 00 BF B5 80 11 00 00 00 00 00 00 EE [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:55]Read from MH i2c: E2 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 17 00 [16:32:55]MH_I2C_Read... [16:32:55]Read from MH i2c: E2 17 00 BF B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [16:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:55]wFMCommunicate OK [16:32:55]requested_item fd.num is exist - process it [16:32:55]SAM_PROTO_GetFieldsCounters [16:32:55]wFMCommunicate request_size=4 [16:32:55]MH_SAM_APDU [16:32:55]CAPDU: 80 13 00 00 [16:32:55]Write to MH i2c: E2 08 00 C0 B5 80 13 00 00 00 00 00 00 F1 [16:32:55]Write i2c OK [16:32:55]MH_I2C_Read... [16:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 62 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 62 00 C0 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:56]wFMCommunicate OK [16:32:56]SAM_PROTO_GetFieldsCounters done [16:32:56]requested_item shift.num is exist - process it [16:32:56]requested_item shift.opened is exist - process it [16:32:56]req_shift_opened [16:32:56]FM_GetShiftState [16:32:56]SAM_PROTO_GetShiftState [16:32:56]wFMCommunicate request_size=4 [16:32:56]MH_SAM_APDU [16:32:56]CAPDU: 80 13 01 00 [16:32:56]Write to MH i2c: E2 08 00 C1 B5 80 13 01 00 00 00 00 00 F3 [16:32:56]Write i2c OK [16:32:56]MH_I2C_Read... [16:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:56]Read from MH i2c: E2 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 0E 00 [16:32:56]MH_I2C_Read... [16:32:56]Read from MH i2c: E2 0E 00 C1 B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B6 [16:32:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:32:56]wFMCommunicate OK [16:32:56]SAM_PROTO_GetShiftState done [16:32:56]FM_GetShiftState done [16:32:56]req_shift_opened done [16:32:56]requested_item shift.open_date is exist - process it [16:32:56]req_shift_open_date [16:32:56]req_shift_open_date done [16:32:56]produce_requested_data done [16:32:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191510,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:32:56]process_action_free close_receipt [16:32:56]json_value_free [16:32:56]json_value_free done [16:32:56]process_json_proto returns [16:32:56]Send response to host [16:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191510,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:32:56]free response buf [16:32:56]execute_script done [16:32:56]execute_script returns [16:32:56]free content buf [16:32:56]Sock 9.Close socket [16:32:56]Sock 9.Thread stoped [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:02]accept exits with 8 [16:35:02]New connection [16:35:02]New thread 3066817892 created [16:35:02]Thread 3066961252 joined [16:35:02]Waiting for new connection... [16:35:02] Sock 8.Parse request [16:35:02]Sock 8.Check first char [16:35:02]Sock 8.First char is OK [16:35:02]request: POST /json_proto HTTP/1.0 [16:35:02]Method: POST [16:35:02]URL: /json_proto [16:35:02]Method is POST - this is cgi request [16:35:02]url: /json_proto [16:35:02]query_string will be loaded in cgi processing [16:35:02]execute_cgi json_proto POST (null) [16:35:02]execute_cgi path=json_proto method=POST [16:35:02]POST find Content-Length [16:35:02]Host: 172.17.63.131:8080 [16:35:02]Content-Length: 676 [16:35:02]Content-Type: application/json [16:35:02] [16:35:02]POST finish read [16:35:02]Found Content-Length = 676 [16:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:02]execute_script... [16:35: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)30809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:02]POST & json_proto [16:35:02]process_json_proto [16:35:02]json parsed OK: [16:35:02]protocol is kg_v1.0 [16:35:02]action value=close_receipt [16:35:02]process_action close_receipt [16:35:02]cmd_close_receipt [16:35:02]MH_GetDate [16:35:02]Write to MH i2c: F0 00 00 C2 B5 66 [16:35:02]Write i2c OK [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: F0 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: F0 09 00 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: F0 09 00 C2 B5 00 C0 C8 1B 67 22 05 6E 64 72 [16:35:02]GetLastDocTimeStamp 1729873981 [16:35:02]current date 1729874112 [16:35:02]FM_GetShiftState [16:35:02]SAM_PROTO_GetShiftState [16:35:02]wFMCommunicate request_size=4 [16:35:02]MH_SAM_APDU [16:35:02]CAPDU: 80 13 01 00 [16:35:02]Write to MH i2c: E2 08 00 C3 B5 80 13 01 00 00 00 00 00 F5 [16:35:02]Write i2c OK [16:35:02]MH_I2C_Read... [16:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:02]Read from MH i2c: E2 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: E2 0E 00 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: E2 0E 00 C3 B5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B8 [16:35:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:35:02]wFMCommunicate OK [16:35:02]SAM_PROTO_GetShiftState done [16:35:02]FM_GetShiftState done [16:35:02]opened in 1729816399 [16:35:02]opened+sec_in_day 1729902799 [16:35:02]quantity*price = 40006 [16:35:02]sum+1 = 40007 [16:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 250 25.10.2024 16:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191511 ФПД: 205312611793117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191511&fm=205312611793117&tin=02508201610067®Number=0000000000091776&sum=40000 [16:35:03]StoreToDocumentArchive [16:35:03]shift 540 fd 191511 [16:35:03]save to /storage/0540/doc_00191511 [16:35:03]save last doc name /storage/0540/doc_00191511 to /storage/kkm_last_doc_name [16:35:03]save OK [16:35:03]Clear old archive folders... [16:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:03]tlvbuf is 01600B30 [16:35:03]SAM_PROTO_ClearQueue [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 09 00 00 [16:35:03]Write to MH i2c: E2 08 00 D0 B5 80 09 00 00 00 00 00 00 F7 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 D0 B5 00 90 00 F9 [16:35:03]RAPDU: 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_ClearQueue done [16:35:03]KKMCreateOFDPacket [16:35:03]OFDProtocolAddRootSTLVToBuf [16:35:03]FM_MakeSignedData [16:35:03]FM_MakeSignedData [16:35:03]SAM_PROTO_SignData [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 0D 01 02 [16:35:03]Write to MH i2c: E2 08 00 D1 B5 80 0D 01 02 00 00 00 00 FF [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 D1 B5 00 90 00 FA [16:35:03]RAPDU: 90 00 [16:35:03]wFMCommunicate OK [16:35:03]wFMCommunicate request_size=255 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C0 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EC 02 00 35 04 06 00 BA [16:35:03]Write to MH i2c: E2 02 01 D2 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C0 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EC 02 00 35 04 06 00 BA 00 00 43 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 D2 B5 00 90 00 FB [16:35:03]RAPDU: 90 00 [16:35:03]wFMCommunicate OK [16:35:03]wFMCommunicate request_size=10 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 0D 02 02 05 BB 11 4B 38 DD [16:35:03]Write to MH i2c: E2 0D 00 D3 B5 80 0D 02 02 05 00 BB 11 4B 38 DD 00 00 38 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 03 00 D3 B5 00 90 00 FC [16:35:03]RAPDU: 90 00 [16:35:03]wFMCommunicate OK [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 0D 03 02 [16:35:03]Write to MH i2c: E2 08 00 D4 B5 80 0D 03 02 00 00 00 00 04 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0B 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0B 00 D4 B5 00 08 40 B5 38 87 BA E1 5E 90 00 BA [16:35:03]RAPDU: 08 40 B5 38 87 BA E1 5E 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_SignData done [16:35:03]FM_MakeSignedData done [16:35:03]CreateOFDProtocolMessage [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 11 00 00 [16:35:03]Write to MH i2c: E2 08 00 D5 B5 80 11 00 00 00 00 00 00 04 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 17 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 17 00 D5 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [16:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:35:03]wFMCommunicate OK [16:35:03]CreateOFDProtocolMessage done [16:35:03]OFDSenderStorePacket 191511 [16:35:03]StoreOFDPacket docnum=191511 [16:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 F6 07 01 49 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C0 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EC 02 00 35 04 06 00 BA BB 11 4B 38 DD 08 40 B5 38 87 BA E1 5E [16:35:03]CheckFolder [16:35:03]dirname=/storage/ofd_packets [16:35:03]CheckFolder done [16:35:03]ProducePacketName [16:35:03]name=ofd_packets/00191511 [16:35:03]NVStorageSaveData ofd_packets/00191511 [16:35:03]File name is /storage/ofd_packets/00191511 [16:35:03]Write 301 bytes [16:35:03]NVStorageSaveData done [16:35:03]OFDSenderStorePacket done [16:35:03]KKMCreateOFDPacket done [16:35:03]NVStorageSaveData kkm_last_timestamp [16:35:03]File name is /storage/kkm_last_timestamp [16:35:03]Write 4 bytes [16:35:03]NVStorageSaveData done [16:35:03]ExternCall_PrintAddStr [16:35:03]wPrintStart [16:35:03]Write to MH i2c: 01 00 00 D6 B5 8B [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: 01 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: 01 07 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: 01 07 00 D6 B5 00 00 00 00 00 FF 0F A0 [16:35:03]RasterBufferAndPrint [16:35:03]line Счет N : (1)30809 [16:35:03]line ИНН: 02508201610067 [16:35:03]line Контрольно-Кассовый Чек [16:35:03]line ПРОДАЖА [16:35:03]line ТРК (МРК, ГНК) : 12 [16:35:03]line Товар: 2710124130 [16:35:03]line Аи-92-К-5 [16:35:03]line 5.980 * 66.90 [16:35:03]line = 400.06 [16:35:03]line НДС 12% НСП 1% [16:35:03]line > о реализуемом товаре [16:35:03]line ОКРУГЛЕНИЕ: -0.06 [16:35:03]line ИТОГО: 400.00 [16:35:03]line Внесено: 400.00 [16:35:03]line СДАЧА: 0.00 [16:35:03]line НСП 1% : 3.54 [16:35:03]line НДС 12% : 42.48 [16:35:03]line Наличными: 400.00 [16:35:03]line Безнал.: 0.00 [16:35:03]line Место: АЗС № 170 "Партнер Нефть" [16:35:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:35:03]line СНО: Общий режим [16:35:03]line Чек 250 25.10.2024 16:35 [16:35:03]line Смена: 540 ФФД: 1.0 [16:35:03]line ЗНМ: 0300000110 [16:35:03]line РНМ: 0000000000091776 [16:35:03]line Версия ККМ: 001 [16:35:03]line ФМ: 0000000000871754 [16:35:03]line ФД: 191511 [16:35:03]line ФПД: 205312611793117 [16:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191511&fm=205312611793117&tin=02508201610067®Number=0000000000091776&sum=40000 [16:35:04]OFD Sender: Processing packet 191511 [packets to send 75, broken 74] [16:35:04]ProducePacketName [16:35:04]name=ofd_packets/00191511 [16:35:04]OFD Sender: To server: pG, [16:35:04]CommunicateWithHost lk.salyk.kg:30040 [16:35:04]ConnectInit lk.salyk.kg [16:35:04]written 0, free lines is 4095 [16:35:04]Connected sock=10 [16:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 F6 07 01 49 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C0 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EC 02 00 35 04 06 00 BA BB 11 4B 38 DD 08 40 B5 38 87 BA E1 5E [16:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF 22 47 00 8D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EC 02 00 F4 03 04 00 8E 6D 1B 67 B6 04 01 00 00 27 30 72 36 55 32 A3 DD [16:35:04]CommunicateWithHost err = 0 [16:35:04]CheckOFDResponse [16:35:04]1017 (14) - 77093643461234 [16:35:04]1041 (16) - 0000000000871754 [16:35:04]1040 (4) - 191511 [16:35:04]1012 (4) - 25.10.2024 10:06 [16:35:04]1206 (1) - 0 [16:35:04]OFD Sender: Remove packet 191511 [16:35:04]ProducePacketName [16:35:04]name=ofd_packets/00191511 [16:35:04]NVStorageDeleteData [16:35:04]Write to MH i2c: 01 00 00 01 B6 B7 [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 07 00 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 07 00 01 B6 00 00 00 00 00 CD 0C 97 [16:35:04]RasterBufferAndPrint [16:35:04]line [16:35:04]line [16:35:04]line [16:35:04]line [16:35:04]line [16:35:04]written 0, free lines is 3284 [16:35:04]MH_Cut [16:35:04]Write to MH i2c: D1 01 00 08 B6 01 90 [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: D1 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: D1 01 00 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: D1 01 00 08 B6 00 8F [16:35:04]Write to MH i2c: 01 00 00 09 B6 BF [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:05]OFD Sender: No OFD packet to send [16:35:05]*** Cut start [16:35:05]*** Partial cut [16:35:05]*** CUTSNS_PIN = 1 [16:35:05]*** CUTSNS_PIN = 0 [16:35:05]*** Brake cut motor [16:35:06]Read from MH i2c: 01 [16:35:06]MH_I2C_Read... [16:35:06]*** Stop cut motor [16:35:06]*** Cut end [16:35:06]Read from MH i2c: 01 07 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: 01 07 00 09 B6 00 00 00 00 00 FF 0F D4 [16:35:06]process_action close_receipt done [16:35:06]requested_data is exist [16:35:06]produce_requested_data [16:35:06]requested_item fm.sn is exist - process it [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 11 00 00 [16:35:06]Write to MH i2c: E2 08 00 0A B6 80 11 00 00 00 00 00 00 3A [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 17 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 17 00 0A B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [16:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:35:06]wFMCommunicate OK [16:35:06]requested_item fd.num is exist - process it [16:35:06]SAM_PROTO_GetFieldsCounters [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 13 00 00 [16:35:06]Write to MH i2c: E2 08 00 0B B6 80 13 00 00 00 00 00 00 3D [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 62 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 62 00 0B B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:06]wFMCommunicate OK [16:35:06]SAM_PROTO_GetFieldsCounters done [16:35:06]requested_item shift.num is exist - process it [16:35:06]requested_item shift.opened is exist - process it [16:35:06]req_shift_opened [16:35:06]FM_GetShiftState [16:35:06]SAM_PROTO_GetShiftState [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 13 01 00 [16:35:06]Write to MH i2c: E2 08 00 0C B6 80 13 01 00 00 00 00 00 3F [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 0C B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 02 [16:35:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:35:06]wFMCommunicate OK [16:35:06]SAM_PROTO_GetShiftState done [16:35:06]FM_GetShiftState done [16:35:06]req_shift_opened done [16:35:06]requested_item shift.open_date is exist - process it [16:35:06]req_shift_open_date [16:35:06]req_shift_open_date done [16:35:06]produce_requested_data done [16:35:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191511,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:35:06]process_action_free close_receipt [16:35:06]json_value_free [16:35:06]json_value_free done [16:35:06]process_json_proto returns [16:35:06]Send response to host [16:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191511,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:35:06]free response buf [16:35:06]execute_script done [16:35:06]execute_script returns [16:35:06]free content buf [16:35:06]Sock 8.Close socket [16:35:06]Sock 8.Thread stoped [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:35:59]accept exits with 9 [16:35:59]New connection [16:35:59]New thread 3066961252 created [16:35:59]Thread 3066817892 joined [16:35:59]Waiting for new connection... [16:35:59] Sock 9.Parse request [16:35:59]Sock 9.Check first char [16:35:59]Sock 9.First char is OK [16:35:59]request: POST /json_proto HTTP/1.0 [16:35:59]Method: POST [16:35:59]URL: /json_proto [16:35:59]Method is POST - this is cgi request [16:35:59]url: /json_proto [16:35:59]query_string will be loaded in cgi processing [16:35:59]execute_cgi json_proto POST (null) [16:35:59]execute_cgi path=json_proto method=POST [16:35:59]POST find Content-Length [16:35:59]Host: 172.17.63.131:8080 [16:35:59]Content-Length: 678 [16:35:59]Content-Type: application/json [16:35:59] [16:35:59]POST finish read [16:35:59]Found Content-Length = 678 [16:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:35:59]execute_script... [16:35: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)30810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:35:59]POST & json_proto [16:35:59]process_json_proto [16:35:59]json parsed OK: [16:35:59]protocol is kg_v1.0 [16:35:59]action value=close_receipt [16:35:59]process_action close_receipt [16:35:59]cmd_close_receipt [16:35:59]MH_GetDate [16:35:59]Write to MH i2c: F0 00 00 0D B6 B2 [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: F0 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: F0 09 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: F0 09 00 0D B6 00 F9 C8 1B 67 22 05 6E 64 F7 [16:35:59]GetLastDocTimeStamp 1729874112 [16:35:59]current date 1729874169 [16:35:59]FM_GetShiftState [16:35:59]SAM_PROTO_GetShiftState [16:35:59]wFMCommunicate request_size=4 [16:35:59]MH_SAM_APDU [16:35:59]CAPDU: 80 13 01 00 [16:35:59]Write to MH i2c: E2 08 00 0E B6 80 13 01 00 00 00 00 00 41 [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:59]Read from MH i2c: E2 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: E2 0E 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: E2 0E 00 0E B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 04 [16:35:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:35:59]wFMCommunicate OK [16:35:59]SAM_PROTO_GetShiftState done [16:35:59]FM_GetShiftState done [16:35:59]opened in 1729816399 [16:35:59]opened+sec_in_day 1729902799 [16:35:59]quantity*price = 100050 [16:35:59]sum+1 = 100052 [16:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 251 25.10.2024 16:36 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191512 ФПД: 181682234068730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191512&fm=181682234068730&tin=02508201610067®Number=0000000000091776&sum=100000 [16:36:01]StoreToDocumentArchive [16:36:01]shift 540 fd 191512 [16:36:01]save to /storage/0540/doc_00191512 [16:36:01]save last doc name /storage/0540/doc_00191512 to /storage/kkm_last_doc_name [16:36:01]save OK [16:36:01]Clear old archive folders... [16:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:01]tlvbuf is 01708ED0 [16:36:01]SAM_PROTO_ClearQueue [16:36:01]wFMCommunicate request_size=4 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 09 00 00 [16:36:01]Write to MH i2c: E2 08 00 1B B6 80 09 00 00 00 00 00 00 43 [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 1B B6 00 90 00 45 [16:36:01]RAPDU: 90 00 [16:36:01]wFMCommunicate OK [16:36:01]SAM_PROTO_ClearQueue done [16:36:01]KKMCreateOFDPacket [16:36:01]OFDProtocolAddRootSTLVToBuf [16:36:01]FM_MakeSignedData [16:36:01]FM_MakeSignedData [16:36:01]SAM_PROTO_SignData [16:36:01]wFMCommunicate request_size=4 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 0D 01 02 [16:36:01]Write to MH i2c: E2 08 00 1C B6 80 0D 01 02 00 00 00 00 4B [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 1C B6 00 90 00 46 [16:36:01]RAPDU: 90 00 [16:36:01]wFMCommunicate OK [16:36:01]wFMCommunicate request_size=255 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 F9 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EC 02 00 35 04 06 00 A5 3D 31 06 [16:36:01]Write to MH i2c: E2 02 01 1D B6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F9 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EC 02 00 35 04 06 00 A5 3D 31 06 00 00 50 [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 1D B6 00 90 00 47 [16:36:01]RAPDU: 90 00 [16:36:01]wFMCommunicate OK [16:36:01]wFMCommunicate request_size=7 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 0D 02 02 02 0E FA [16:36:01]Write to MH i2c: E2 0A 00 1E B6 80 0D 02 02 02 00 0E FA 00 00 5A [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 03 00 1E B6 00 90 00 48 [16:36:01]RAPDU: 90 00 [16:36:01]wFMCommunicate OK [16:36:01]wFMCommunicate request_size=4 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 0D 03 02 [16:36:01]Write to MH i2c: E2 08 00 1F B6 80 0D 03 02 00 00 00 00 50 [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 0B 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 0B 00 1F B6 00 E5 92 00 49 29 C5 8E CA 90 00 57 [16:36:01]RAPDU: E5 92 00 49 29 C5 8E CA 90 00 [16:36:01]wFMCommunicate OK [16:36:01]SAM_PROTO_SignData done [16:36:01]FM_MakeSignedData done [16:36:01]CreateOFDProtocolMessage [16:36:01]wFMCommunicate request_size=4 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 11 00 00 [16:36:01]Write to MH i2c: E2 08 00 20 B6 80 11 00 00 00 00 00 00 50 [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:01]Read from MH i2c: E2 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 17 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: E2 17 00 20 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [16:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:01]wFMCommunicate OK [16:36:01]CreateOFDProtocolMessage done [16:36:01]OFDSenderStorePacket 191512 [16:36:01]StoreOFDPacket docnum=191512 [16:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AF 0D 04 01 39 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 F9 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EC 02 00 35 04 06 00 A5 3D 31 06 0E FA E5 92 00 49 29 C5 8E CA [16:36:01]CheckFolder [16:36:01]dirname=/storage/ofd_packets [16:36:01]CheckFolder done [16:36:01]ProducePacketName [16:36:01]name=ofd_packets/00191512 [16:36:01]NVStorageSaveData ofd_packets/00191512 [16:36:01]File name is /storage/ofd_packets/00191512 [16:36:01]Write 298 bytes [16:36:01]NVStorageSaveData done [16:36:01]OFDSenderStorePacket done [16:36:01]KKMCreateOFDPacket done [16:36:01]NVStorageSaveData kkm_last_timestamp [16:36:01]File name is /storage/kkm_last_timestamp [16:36:01]Write 4 bytes [16:36:01]NVStorageSaveData done [16:36:01]ExternCall_PrintAddStr [16:36:01]wPrintStart [16:36:01]Write to MH i2c: 01 00 00 21 B6 D7 [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: 01 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: 01 07 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: 01 07 00 21 B6 00 00 00 00 00 FF 0F EC [16:36:01]RasterBufferAndPrint [16:36:01]line Счет N : (1)30810 [16:36:01]line ИНН: 02508201610067 [16:36:01]line Контрольно-Кассовый Чек [16:36:01]line ПРОДАЖА [16:36:01]line ТРК (МРК, ГНК) : 11 [16:36:01]line Товар: 2710194210 [16:36:01]line ДТ-К-5 [16:36:01]line 13.130 * 76.20 [16:36:01]line = 1000.51 [16:36:01]line НДС 12% НСП 1% [16:36:01]line > о реализуемом товаре [16:36:01]line ОКРУГЛЕНИЕ: -0.51 [16:36:01]line ИТОГО: 1000.00 [16:36:01]line Внесено: 1000.00 [16:36:01]line СДАЧА: 0.00 [16:36:01]line НСП 1% : 8.85 [16:36:01]line НДС 12% : 106.25 [16:36:01]line Наличными: 1000.00 [16:36:01]line Безнал.: 0.00 [16:36:01]line Место: АЗС № 170 "Партнер Нефть" [16:36:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:36:01]line СНО: Общий режим [16:36:01]line Чек 251 25.10.2024 16:36 [16:36:01]line Смена: 540 ФФД: 1.0 [16:36:01]line ЗНМ: 0300000110 [16:36:01]line РНМ: 0000000000091776 [16:36:01]line Версия ККМ: 001 [16:36:01]line ФМ: 0000000000871754 [16:36:01]line ФД: 191512 [16:36:01]line ФПД: 181682234068730 [16:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191512&fm=181682234068730&tin=02508201610067®Number=0000000000091776&sum=100000 [16:36:01]OFD Sender: Processing packet 191512 [packets to send 75, broken 74] [16:36:01]ProducePacketName [16:36:01]name=ofd_packets/00191512 [16:36:01]OFD Sender: To server: pG, [16:36:01]CommunicateWithHost lk.salyk.kg:30040 [16:36:01]ConnectInit lk.salyk.kg [16:36:01]written 0, free lines is 4095 [16:36:02]Connected sock=10 [16:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AF 0D 04 01 39 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 F9 C8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EC 02 00 35 04 06 00 A5 3D 31 06 0E FA E5 92 00 49 29 C5 8E CA [16:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC C6 47 00 23 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 31 37 35 34 10 04 04 00 18 EC 02 00 F4 03 04 00 C7 6D 1B 67 B6 04 01 00 00 CB AD 59 20 37 44 26 29 [16:36:02]CommunicateWithHost err = 0 [16:36:02]CheckOFDResponse [16:36:02]1017 (14) - 77093643461234 [16:36:02]1041 (16) - 0000000000871754 [16:36:02]1040 (4) - 191512 [16:36:02]1012 (4) - 25.10.2024 10:07 [16:36:02]1206 (1) - 0 [16:36:02]OFD Sender: Remove packet 191512 [16:36:02]ProducePacketName [16:36:02]name=ofd_packets/00191512 [16:36:02]NVStorageDeleteData [16:36:02]Write to MH i2c: 01 00 00 4C B6 02 [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: 01 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: 01 07 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: 01 07 00 4C B6 00 00 00 00 00 CC 0C E1 [16:36:02]RasterBufferAndPrint [16:36:02]line [16:36:02]line [16:36:02]line [16:36:02]line [16:36:02]line [16:36:02]written 0, free lines is 3282 [16:36:02]MH_Cut [16:36:02]Write to MH i2c: D1 01 00 53 B6 01 DB [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: D1 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: D1 01 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: D1 01 00 53 B6 00 DA [16:36:02]Write to MH i2c: 01 00 00 54 B6 0A [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]OFD Sender: No OFD packet to send [16:36:03]*** Cut start [16:36:03]*** Partial cut [16:36:03]*** CUTSNS_PIN = 1 [16:36:03]*** CUTSNS_PIN = 0 [16:36:03]*** Brake cut motor [16:36:03]Read from MH i2c: 01 [16:36:03]MH_I2C_Read... [16:36:03]*** Stop cut motor [16:36:03]*** Cut end [16:36:03]Read from MH i2c: 01 07 00 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: 01 07 00 54 B6 00 00 00 00 00 FF 0F 1F [16:36:03]process_action close_receipt done [16:36:03]requested_data is exist [16:36:03]produce_requested_data [16:36:03]requested_item fm.sn is exist - process it [16:36:03]wFMCommunicate request_size=4 [16:36:03]MH_SAM_APDU [16:36:03]CAPDU: 80 11 00 00 [16:36:03]Write to MH i2c: E2 08 00 55 B6 80 11 00 00 00 00 00 00 85 [16:36:03]Write i2c OK [16:36:03]MH_I2C_Read... [16:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:03]Read from MH i2c: E2 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 17 00 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 17 00 55 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [16:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:03]wFMCommunicate OK [16:36:03]requested_item fd.num is exist - process it [16:36:03]SAM_PROTO_GetFieldsCounters [16:36:03]wFMCommunicate request_size=4 [16:36:03]MH_SAM_APDU [16:36:03]CAPDU: 80 13 00 00 [16:36:03]Write to MH i2c: E2 08 00 56 B6 80 13 00 00 00 00 00 00 88 [16:36:03]Write i2c OK [16:36:03]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 62 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 62 00 56 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:36:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:04]wFMCommunicate OK [16:36:04]SAM_PROTO_GetFieldsCounters done [16:36:04]requested_item shift.num is exist - process it [16:36:04]requested_item shift.opened is exist - process it [16:36:04]req_shift_opened [16:36:04]FM_GetShiftState [16:36:04]SAM_PROTO_GetShiftState [16:36:04]wFMCommunicate request_size=4 [16:36:04]MH_SAM_APDU [16:36:04]CAPDU: 80 13 01 00 [16:36:04]Write to MH i2c: E2 08 00 57 B6 80 13 01 00 00 00 00 00 8A [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0E 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0E 00 57 B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4D [16:36:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:36:04]wFMCommunicate OK [16:36:04]SAM_PROTO_GetShiftState done [16:36:04]FM_GetShiftState done [16:36:04]req_shift_opened done [16:36:04]requested_item shift.open_date is exist - process it [16:36:04]req_shift_open_date [16:36:04]req_shift_open_date done [16:36:04]produce_requested_data done [16:36:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191512,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:36:04]process_action_free close_receipt [16:36:04]json_value_free [16:36:04]json_value_free done [16:36:04]process_json_proto returns [16:36:04]Send response to host [16:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191512,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:36:04]free response buf [16:36:04]execute_script done [16:36:04]execute_script returns [16:36:04]free content buf [16:36:04]Sock 9.Close socket [16:36:04]Sock 9.Thread stoped [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:40]accept exits with 8 [16:37:40]New connection [16:37:40]New thread 3066817892 created [16:37:40]Thread 3066961252 joined [16:37:40]Waiting for new connection... [16:37:40] Sock 8.Parse request [16:37:40]Sock 8.Check first char [16:37:40]Sock 8.First char is OK [16:37:40]request: POST /json_proto HTTP/1.0 [16:37:40]Method: POST [16:37:40]URL: /json_proto [16:37:40]Method is POST - this is cgi request [16:37:40]url: /json_proto [16:37:40]query_string will be loaded in cgi processing [16:37:40]execute_cgi json_proto POST (null) [16:37:40]execute_cgi path=json_proto method=POST [16:37:40]POST find Content-Length [16:37:40]Host: 172.17.63.131:8080 [16:37:40]Content-Length: 676 [16:37:40]Content-Type: application/json [16:37:40] [16:37:40]POST finish read [16:37:40]Found Content-Length = 676 [16:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:40]execute_script... [16:37: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)30811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:40]POST & json_proto [16:37:40]process_json_proto [16:37:40]json parsed OK: [16:37:40]protocol is kg_v1.0 [16:37:40]action value=close_receipt [16:37:40]process_action close_receipt [16:37:40]cmd_close_receipt [16:37:40]MH_GetDate [16:37:40]Write to MH i2c: F0 00 00 58 B6 FD [16:37:40]Write i2c OK [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 09 00 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 09 00 58 B6 00 5E C9 1B 67 22 05 6E 64 A8 [16:37:40]GetLastDocTimeStamp 1729874169 [16:37:40]current date 1729874270 [16:37:40]FM_GetShiftState [16:37:40]SAM_PROTO_GetShiftState [16:37:40]wFMCommunicate request_size=4 [16:37:40]MH_SAM_APDU [16:37:40]CAPDU: 80 13 01 00 [16:37:40]Write to MH i2c: E2 08 00 59 B6 80 13 01 00 00 00 00 00 8C [16:37:40]Write i2c OK [16:37:40]MH_I2C_Read... [16:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:40]Read from MH i2c: E2 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: E2 0E 00 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: E2 0E 00 59 B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4F [16:37:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:37:40]wFMCommunicate OK [16:37:40]SAM_PROTO_GetShiftState done [16:37:40]FM_GetShiftState done [16:37:40]opened in 1729816399 [16:37:40]opened+sec_in_day 1729902799 [16:37:40]quantity*price = 60009 [16:37:40]sum+1 = 60010 [16:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 252 25.10.2024 16:37 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191513 ФПД: 175519178198284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191513&fm=175519178198284&tin=02508201610067®Number=0000000000091776&sum=60000 [16:37:41]StoreToDocumentArchive [16:37:41]shift 540 fd 191513 [16:37:41]save to /storage/0540/doc_00191513 [16:37:41]save last doc name /storage/0540/doc_00191513 to /storage/kkm_last_doc_name [16:37:41]save OK [16:37:41]Clear old archive folders... [16:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:41]tlvbuf is 015D8770 [16:37:41]SAM_PROTO_ClearQueue [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 09 00 00 [16:37:41]Write to MH i2c: E2 08 00 66 B6 80 09 00 00 00 00 00 00 8E [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 66 B6 00 90 00 90 [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]SAM_PROTO_ClearQueue done [16:37:41]KKMCreateOFDPacket [16:37:41]OFDProtocolAddRootSTLVToBuf [16:37:41]FM_MakeSignedData [16:37:41]FM_MakeSignedData [16:37:41]SAM_PROTO_SignData [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 01 02 [16:37:41]Write to MH i2c: E2 08 00 67 B6 80 0D 01 02 00 00 00 00 96 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 67 B6 00 90 00 91 [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]wFMCommunicate request_size=255 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EC 02 00 35 04 06 00 9F [16:37:41]Write to MH i2c: E2 02 01 68 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EC 02 00 35 04 06 00 9F 00 00 70 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 68 B6 00 90 00 92 [16:37:42]RAPDU: 90 00 [16:37:42]wFMCommunicate OK [16:37:42]wFMCommunicate request_size=10 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 0D 02 02 05 A2 3E 44 8D 0C [16:37:42]Write to MH i2c: E2 0D 00 69 B6 80 0D 02 02 05 00 A2 3E 44 8D 0C 00 00 60 [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 03 00 69 B6 00 90 00 93 [16:37:42]RAPDU: 90 00 [16:37:42]wFMCommunicate OK [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 0D 03 02 [16:37:42]Write to MH i2c: E2 08 00 6A B6 80 0D 03 02 00 00 00 00 9B [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 0B 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 0B 00 6A B6 00 E1 AE 99 01 67 05 A4 35 90 00 0A [16:37:42]RAPDU: E1 AE 99 01 67 05 A4 35 90 00 [16:37:42]wFMCommunicate OK [16:37:42]SAM_PROTO_SignData done [16:37:42]FM_MakeSignedData done [16:37:42]CreateOFDProtocolMessage [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 11 00 00 [16:37:42]Write to MH i2c: E2 08 00 6B B6 80 11 00 00 00 00 00 00 9B [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 6B B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [16:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:37:42]wFMCommunicate OK [16:37:42]CreateOFDProtocolMessage done [16:37:42]OFDSenderStorePacket 191513 [16:37:42]StoreOFDPacket docnum=191513 [16:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C C0 07 01 02 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EC 02 00 35 04 06 00 9F A2 3E 44 8D 0C E1 AE 99 01 67 05 A4 35 [16:37:42]CheckFolder [16:37:42]dirname=/storage/ofd_packets [16:37:42]CheckFolder done [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00191513 [16:37:42]NVStorageSaveData ofd_packets/00191513 [16:37:42]File name is /storage/ofd_packets/00191513 [16:37:42]Write 301 bytes [16:37:42]NVStorageSaveData done [16:37:42]OFDSenderStorePacket done [16:37:42]KKMCreateOFDPacket done [16:37:42]NVStorageSaveData kkm_last_timestamp [16:37:42]File name is /storage/kkm_last_timestamp [16:37:42]Write 4 bytes [16:37:42]NVStorageSaveData done [16:37:42]ExternCall_PrintAddStr [16:37:42]wPrintStart [16:37:42]Write to MH i2c: 01 00 00 6C B6 22 [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 6C B6 00 00 00 00 00 FF 0F 37 [16:37:42]RasterBufferAndPrint [16:37:42]line Счет N : (1)30811 [16:37:42]line ИНН: 02508201610067 [16:37:42]line Контрольно-Кассовый Чек [16:37:42]line ПРОДАЖА [16:37:42]line ТРК (МРК, ГНК) : 12 [16:37:42]line Товар: 2710124130 [16:37:42]line Аи-92-К-5 [16:37:42]line 8.970 * 66.90 [16:37:42]line = 600.09 [16:37:42]line НДС 12% НСП 1% [16:37:42]line > о реализуемом товаре [16:37:42]line ОКРУГЛЕНИЕ: -0.09 [16:37:42]line ИТОГО: 600.00 [16:37:42]line Внесено: 600.00 [16:37:42]line СДАЧА: 0.00 [16:37:42]line НСП 1% : 5.31 [16:37:42]line НДС 12% : 63.73 [16:37:42]line Наличными: 600.00 [16:37:42]line Безнал.: 0.00 [16:37:42]line Место: АЗС № 170 "Партнер Нефть" [16:37:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:37:42]line СНО: Общий режим [16:37:42]line Чек 252 25.10.2024 16:37 [16:37:42]line Смена: 540 ФФД: 1.0 [16:37:42]line ЗНМ: 0300000110 [16:37:42]line РНМ: 0000000000091776 [16:37:42]line Версия ККМ: 001 [16:37:42]line ФМ: 0000000000871754 [16:37:42]line ФД: 191513 [16:37:42]line ФПД: 175519178198284 [16:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191513&fm=175519178198284&tin=02508201610067®Number=0000000000091776&sum=60000 [16:37:42]OFD Sender: Processing packet 191513 [packets to send 75, broken 74] [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00191513 [16:37:42]OFD Sender: To server: pG, [16:37:42]CommunicateWithHost lk.salyk.kg:30040 [16:37:42]ConnectInit lk.salyk.kg [16:37:42]written 0, free lines is 4095 [16:37:42]Connected sock=10 [16:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C C0 07 01 02 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EC 02 00 35 04 06 00 9F A2 3E 44 8D 0C E1 AE 99 01 67 05 A4 35 [16:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9C 15 47 00 11 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EC 02 00 F4 03 04 00 2C 6E 1B 67 B6 04 01 00 00 1C 4B E8 D8 D4 4B E2 03 [16:37:42]CommunicateWithHost err = 0 [16:37:42]CheckOFDResponse [16:37:42]1017 (14) - 77093643461234 [16:37:42]1041 (16) - 0000000000871754 [16:37:42]1040 (4) - 191513 [16:37:42]1012 (4) - 25.10.2024 10:08 [16:37:42]1206 (1) - 0 [16:37:42]OFD Sender: Remove packet 191513 [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00191513 [16:37:42]NVStorageDeleteData [16:37:43]Write to MH i2c: 01 00 00 97 B6 4D [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 07 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: 01 07 00 97 B6 00 00 00 00 00 C8 0C 28 [16:37:43]RasterBufferAndPrint [16:37:43]line [16:37:43]line [16:37:43]line [16:37:43]line [16:37:43]line [16:37:43]written 0, free lines is 3278 [16:37:43]MH_Cut [16:37:43]Write to MH i2c: D1 01 00 9E B6 01 26 [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: D1 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: D1 01 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: D1 01 00 9E B6 00 25 [16:37:43]Write to MH i2c: 01 00 00 9F B6 55 [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]OFD Sender: No OFD packet to send [16:37:43]*** Cut start [16:37:43]*** Partial cut [16:37:43]*** CUTSNS_PIN = 1 [16:37:43]*** CUTSNS_PIN = 0 [16:37:44]*** Brake cut motor [16:37:44]Read from MH i2c: 01 [16:37:44]MH_I2C_Read... [16:37:44]*** Stop cut motor [16:37:44]*** Cut end [16:37:44]Read from MH i2c: 01 07 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: 01 07 00 9F B6 00 00 00 00 00 FF 0F 6A [16:37:44]process_action close_receipt done [16:37:44]requested_data is exist [16:37:44]produce_requested_data [16:37:44]requested_item fm.sn is exist - process it [16:37:44]wFMCommunicate request_size=4 [16:37:44]MH_SAM_APDU [16:37:44]CAPDU: 80 11 00 00 [16:37:44]Write to MH i2c: E2 08 00 A0 B6 80 11 00 00 00 00 00 00 D0 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:44]Read from MH i2c: E2 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 17 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 17 00 A0 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [16:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:37:44]wFMCommunicate OK [16:37:44]requested_item fd.num is exist - process it [16:37:44]SAM_PROTO_GetFieldsCounters [16:37:44]wFMCommunicate request_size=4 [16:37:44]MH_SAM_APDU [16:37:44]CAPDU: 80 13 00 00 [16:37:44]Write to MH i2c: E2 08 00 A1 B6 80 13 00 00 00 00 00 00 D3 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:44]Read from MH i2c: E2 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 62 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 62 00 A1 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:44]wFMCommunicate OK [16:37:44]SAM_PROTO_GetFieldsCounters done [16:37:44]requested_item shift.num is exist - process it [16:37:44]requested_item shift.opened is exist - process it [16:37:44]req_shift_opened [16:37:44]FM_GetShiftState [16:37:44]SAM_PROTO_GetShiftState [16:37:44]wFMCommunicate request_size=4 [16:37:44]MH_SAM_APDU [16:37:44]CAPDU: 80 13 01 00 [16:37:44]Write to MH i2c: E2 08 00 A2 B6 80 13 01 00 00 00 00 00 D5 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:44]Read from MH i2c: E2 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 0E 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 0E 00 A2 B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 98 [16:37:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:37:44]wFMCommunicate OK [16:37:44]SAM_PROTO_GetShiftState done [16:37:44]FM_GetShiftState done [16:37:44]req_shift_opened done [16:37:44]requested_item shift.open_date is exist - process it [16:37:44]req_shift_open_date [16:37:44]req_shift_open_date done [16:37:44]produce_requested_data done [16:37:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191513,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:37:44]process_action_free close_receipt [16:37:44]json_value_free [16:37:44]json_value_free done [16:37:44]process_json_proto returns [16:37:44]Send response to host [16:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191513,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:37:44]free response buf [16:37:44]execute_script done [16:37:44]execute_script returns [16:37:44]free content buf [16:37:44]Sock 8.Close socket [16:37:44]Sock 8.Thread stoped [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:34]accept exits with 9 [16:38:34]New connection [16:38:34]New thread 3066961252 created [16:38:34]Thread 3066817892 joined [16:38:34]Waiting for new connection... [16:38:34] Sock 9.Parse request [16:38:34]Sock 9.Check first char [16:38:34]Sock 9.First char is OK [16:38:34]request: POST /json_proto HTTP/1.0 [16:38:34]Method: POST [16:38:34]URL: /json_proto [16:38:34]Method is POST - this is cgi request [16:38:34]url: /json_proto [16:38:34]query_string will be loaded in cgi processing [16:38:34]execute_cgi json_proto POST (null) [16:38:34]execute_cgi path=json_proto method=POST [16:38:34]POST find Content-Length [16:38:34]Host: 172.17.63.131:8080 [16:38:34]Content-Length: 862 [16:38:34]Content-Type: application/json [16:38:34] [16:38:34]POST finish read [16:38:34]Found Content-Length = 862 [16:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:34]execute_script... [16:38: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)30812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:34]POST & json_proto [16:38:34]process_json_proto [16:38:34]json parsed OK: [16:38:34]protocol is kg_v1.0 [16:38:34]action value=close_receipt [16:38:34]process_action close_receipt [16:38:34]cmd_close_receipt [16:38:34]MH_GetDate [16:38:34]Write to MH i2c: F0 00 00 A3 B6 48 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 09 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 09 00 A3 B6 00 94 C9 1B 67 22 05 6E 64 29 [16:38:34]GetLastDocTimeStamp 1729874270 [16:38:34]current date 1729874324 [16:38:34]FM_GetShiftState [16:38:34]SAM_PROTO_GetShiftState [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 13 01 00 [16:38:34]Write to MH i2c: E2 08 00 A4 B6 80 13 01 00 00 00 00 00 D7 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0E 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0E 00 A4 B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9A [16:38:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_GetShiftState done [16:38:34]FM_GetShiftState done [16:38:34]opened in 1729816399 [16:38:34]opened+sec_in_day 1729902799 [16:38:34]quantity*price = 15052 [16:38:34]sum+1 = 15054 [16:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.53 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.53 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 253 25.10.2024 16:38 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191514 ФПД: 27386859200156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191514&fm=27386859200156&tin=02508201610067®Number=0000000000091776&sum=15053 [16:38:35]StoreToDocumentArchive [16:38:35]shift 540 fd 191514 [16:38:35]save to /storage/0540/doc_00191514 [16:38:35]save last doc name /storage/0540/doc_00191514 to /storage/kkm_last_doc_name [16:38:35]save OK [16:38:35]Clear old archive folders... [16:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:35]tlvbuf is 0172E870 [16:38:35]SAM_PROTO_ClearQueue [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 09 00 00 [16:38:35]Write to MH i2c: E2 08 00 B1 B6 80 09 00 00 00 00 00 00 D9 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 B1 B6 00 90 00 DB [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_ClearQueue done [16:38:35]KKMCreateOFDPacket [16:38:35]OFDProtocolAddRootSTLVToBuf [16:38:35]FM_MakeSignedData [16:38:35]FM_MakeSignedData [16:38:35]SAM_PROTO_SignData [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 01 02 [16:38:35]Write to MH i2c: E2 08 00 B2 B6 80 0D 01 02 00 00 00 00 E1 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 B2 B6 00 90 00 DC [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=255 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 94 C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EC 02 00 35 04 06 00 18 [16:38:35]Write to MH i2c: E2 02 01 B3 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 94 C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EC 02 00 35 04 06 00 18 00 00 F6 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 03 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 03 00 B3 B6 00 90 00 DD [16:38:36]RAPDU: 90 00 [16:38:36]wFMCommunicate OK [16:38:36]wFMCommunicate request_size=10 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 0D 02 02 05 E8 80 03 9E 9C [16:38:36]Write to MH i2c: E2 0D 00 B4 B6 80 0D 02 02 05 00 E8 80 03 9E 9C 00 00 93 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 03 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 03 00 B4 B6 00 90 00 DE [16:38:36]RAPDU: 90 00 [16:38:36]wFMCommunicate OK [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 0D 03 02 [16:38:36]Write to MH i2c: E2 08 00 B5 B6 80 0D 03 02 00 00 00 00 E6 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0B 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0B 00 B5 B6 00 D0 78 8D A7 AA C7 32 E4 90 00 EA [16:38:36]RAPDU: D0 78 8D A7 AA C7 32 E4 90 00 [16:38:36]wFMCommunicate OK [16:38:36]SAM_PROTO_SignData done [16:38:36]FM_MakeSignedData done [16:38:36]CreateOFDProtocolMessage [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 11 00 00 [16:38:36]Write to MH i2c: E2 08 00 B6 B6 80 11 00 00 00 00 00 00 E6 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 B6 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [16:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:36]wFMCommunicate OK [16:38:36]CreateOFDProtocolMessage done [16:38:36]OFDSenderStorePacket 191514 [16:38:36]StoreOFDPacket docnum=191514 [16:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 FC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 94 C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EC 02 00 35 04 06 00 18 E8 80 03 9E 9C D0 78 8D A7 AA C7 32 E4 [16:38:36]CheckFolder [16:38:36]dirname=/storage/ofd_packets [16:38:36]CheckFolder done [16:38:36]ProducePacketName [16:38:36]name=ofd_packets/00191514 [16:38:36]NVStorageSaveData ofd_packets/00191514 [16:38:36]File name is /storage/ofd_packets/00191514 [16:38:36]Write 301 bytes [16:38:36]NVStorageSaveData done [16:38:36]OFDSenderStorePacket done [16:38:36]KKMCreateOFDPacket done [16:38:36]NVStorageSaveData kkm_last_timestamp [16:38:36]File name is /storage/kkm_last_timestamp [16:38:36]Write 4 bytes [16:38:36]NVStorageSaveData done [16:38:36]ExternCall_PrintAddStr [16:38:36]wPrintStart [16:38:36]Write to MH i2c: 01 00 00 B7 B6 6D [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 B7 B6 00 00 00 00 00 FF 0F 82 [16:38:36]RasterBufferAndPrint [16:38:36]line Счет N : (1)30812 [16:38:36]line ИНН: 02508201610067 [16:38:36]line Контрольно-Кассовый Чек [16:38:36]line ПРОДАЖА [16:38:36]line ТРК (МРК, ГНК) : 12 [16:38:36]line Товар: 2710124130 [16:38:36]line Аи-92-К-5 [16:38:36]line 2.250 * 66.90 [16:38:36]line = 150.53 [16:38:36]line НДС 12% НСП 1% [16:38:36]line > о реализуемом товаре [16:38:36]line ИТОГО: 150.53 [16:38:36]line НСП 1% : 1.33 [16:38:36]line НДС 12% : 15.98 [16:38:36]line Наличными: 0.00 [16:38:36]line Безнал.: 150.53 [16:38:36]line Место: АЗС № 170 "Партнер Нефть" [16:38:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:38:36]line СНО: Общий режим [16:38:36]line Чек 253 25.10.2024 16:38 [16:38:36]line Смена: 540 ФФД: 1.0 [16:38:36]line ЗНМ: 0300000110 [16:38:36]line РНМ: 0000000000091776 [16:38:36]line Версия ККМ: 001 [16:38:36]line Платежная система: Кыргызкоммерцбанк [16:38:36]line ФМ: 0000000000871754 [16:38:36]line ФД: 191514 [16:38:36]line ФПД: 27386859200156 [16:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191514&fm=27386859200156&tin=02508201610067®Number=0000000000091776&sum=15053 [16:38:36]OFD Sender: Processing packet 191514 [packets to send 75, broken 74] [16:38:36]ProducePacketName [16:38:36]name=ofd_packets/00191514 [16:38:36]OFD Sender: To server: pG, [16:38:36]CommunicateWithHost lk.salyk.kg:30040 [16:38:36]ConnectInit lk.salyk.kg [16:38:36]written 0, free lines is 4095 [16:38:36]Connected sock=10 [16:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 FC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 94 C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EC 02 00 35 04 06 00 18 E8 80 03 9E 9C D0 78 8D A7 AA C7 32 E4 [16:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 3C 47 00 CE 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EC 02 00 F4 03 04 00 62 6E 1B 67 B6 04 01 00 00 D0 5B 1B 63 EA E3 C9 E4 [16:38:37]CommunicateWithHost err = 0 [16:38:37]CheckOFDResponse [16:38:37]1017 (14) - 77093643461234 [16:38:37]1041 (16) - 0000000000871754 [16:38:37]1040 (4) - 191514 [16:38:37]1012 (4) - 25.10.2024 10:09 [16:38:37]1206 (1) - 0 [16:38:37]OFD Sender: Remove packet 191514 [16:38:37]ProducePacketName [16:38:37]name=ofd_packets/00191514 [16:38:37]NVStorageDeleteData [16:38:37]Write to MH i2c: 01 00 00 E1 B6 97 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 E1 B6 00 00 00 00 00 E0 0C 8A [16:38:37]RasterBufferAndPrint [16:38:37]line [16:38:37]line [16:38:37]line [16:38:37]line [16:38:37]line [16:38:37]written 0, free lines is 3302 [16:38:37]MH_Cut [16:38:37]Write to MH i2c: D1 01 00 E8 B6 01 70 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: D1 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: D1 01 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: D1 01 00 E8 B6 00 6F [16:38:37]Write to MH i2c: 01 00 00 E9 B6 9F [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]OFD Sender: No OFD packet to send [16:38:37]*** Cut start [16:38:37]*** Partial cut [16:38:37]*** CUTSNS_PIN = 1 [16:38:38]*** CUTSNS_PIN = 0 [16:38:38]*** Brake cut motor [16:38:38]Read from MH i2c: 01 [16:38:38]MH_I2C_Read... [16:38:38]*** Stop cut motor [16:38:38]*** Cut end [16:38:38]Read from MH i2c: 01 07 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 E9 B6 00 00 00 00 00 FF 0F B4 [16:38:38]process_action close_receipt done [16:38:38]requested_data is exist [16:38:38]produce_requested_data [16:38:38]requested_item fm.sn is exist - process it [16:38:38]wFMCommunicate request_size=4 [16:38:38]MH_SAM_APDU [16:38:38]CAPDU: 80 11 00 00 [16:38:38]Write to MH i2c: E2 08 00 EA B6 80 11 00 00 00 00 00 00 1A [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 17 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 17 00 EA B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [16:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:38]wFMCommunicate OK [16:38:38]requested_item fd.num is exist - process it [16:38:38]SAM_PROTO_GetFieldsCounters [16:38:38]wFMCommunicate request_size=4 [16:38:38]MH_SAM_APDU [16:38:38]CAPDU: 80 13 00 00 [16:38:38]Write to MH i2c: E2 08 00 EB B6 80 13 00 00 00 00 00 00 1D [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 62 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 62 00 EB B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:38]wFMCommunicate OK [16:38:38]SAM_PROTO_GetFieldsCounters done [16:38:38]requested_item shift.num is exist - process it [16:38:38]requested_item shift.opened is exist - process it [16:38:38]req_shift_opened [16:38:38]FM_GetShiftState [16:38:38]SAM_PROTO_GetShiftState [16:38:38]wFMCommunicate request_size=4 [16:38:38]MH_SAM_APDU [16:38:38]CAPDU: 80 13 01 00 [16:38:38]Write to MH i2c: E2 08 00 EC B6 80 13 01 00 00 00 00 00 1F [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 EC B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E2 [16:38:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:38:38]wFMCommunicate OK [16:38:38]SAM_PROTO_GetShiftState done [16:38:38]FM_GetShiftState done [16:38:38]req_shift_opened done [16:38:38]requested_item shift.open_date is exist - process it [16:38:38]req_shift_open_date [16:38:38]req_shift_open_date done [16:38:38]produce_requested_data done [16:38:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191514,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:38:38]process_action_free close_receipt [16:38:38]json_value_free [16:38:38]json_value_free done [16:38:38]process_json_proto returns [16:38:38]Send response to host [16:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191514,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:38:38]free response buf [16:38:38]execute_script done [16:38:38]execute_script returns [16:38:38]free content buf [16:38:38]Sock 9.Close socket [16:38:38]Sock 9.Thread stoped [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]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:15]accept exits with 8 [16:39:15]New connection [16:39:15]New thread 3066817892 created [16:39:15]Thread 3066961252 joined [16:39:15]Waiting for new connection... [16:39:15] Sock 8.Parse request [16:39:15]Sock 8.Check first char [16:39:15]Sock 8.First char is OK [16:39:15]request: POST /json_proto HTTP/1.0 [16:39:15]Method: POST [16:39:15]URL: /json_proto [16:39:15]Method is POST - this is cgi request [16:39:15]url: /json_proto [16:39:15]query_string will be loaded in cgi processing [16:39:15]execute_cgi json_proto POST (null) [16:39:15]execute_cgi path=json_proto method=POST [16:39:15]POST find Content-Length [16:39:15]Host: 172.17.63.131:8080 [16:39:15]Content-Length: 681 [16:39:15]Content-Type: application/json [16:39:15] [16:39:15]POST finish read [16:39:15]Found Content-Length = 681 [16:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:15]execute_script... [16:39: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)30813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:15]POST & json_proto [16:39:15]process_json_proto [16:39:15]json parsed OK: [16:39:15]protocol is kg_v1.0 [16:39:15]action value=close_receipt [16:39:15]process_action close_receipt [16:39:15]cmd_close_receipt [16:39:15]MH_GetDate [16:39:15]Write to MH i2c: F0 00 00 ED B6 92 [16:39:15]Write i2c OK [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: F0 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: F0 09 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: F0 09 00 ED B6 00 BD C9 1B 67 22 05 6E 64 9C [16:39:15]GetLastDocTimeStamp 1729874324 [16:39:15]current date 1729874365 [16:39:15]FM_GetShiftState [16:39:15]SAM_PROTO_GetShiftState [16:39:15]wFMCommunicate request_size=4 [16:39:15]MH_SAM_APDU [16:39:15]CAPDU: 80 13 01 00 [16:39:15]Write to MH i2c: E2 08 00 EE B6 80 13 01 00 00 00 00 00 21 [16:39:15]Write i2c OK [16:39:15]MH_I2C_Read... [16:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:15]Read from MH i2c: E2 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 0E 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 0E 00 EE B6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E4 [16:39:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:39:15]wFMCommunicate OK [16:39:15]SAM_PROTO_GetShiftState done [16:39:15]FM_GetShiftState done [16:39:15]opened in 1729816399 [16:39:15]opened+sec_in_day 1729902799 [16:39:15]quantity*price = 100015 [16:39:15]sum+1 = 100017 [16:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 254 25.10.2024 16:39 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191515 ФПД: 110698638000747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191515&fm=110698638000747&tin=02508201610067®Number=0000000000091776&sum=100000 [16:39:16]StoreToDocumentArchive [16:39:16]shift 540 fd 191515 [16:39:16]save to /storage/0540/doc_00191515 [16:39:16]save last doc name /storage/0540/doc_00191515 to /storage/kkm_last_doc_name [16:39:16]save OK [16:39:16]Clear old archive folders... [16:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:16]tlvbuf is 017090D0 [16:39:16]SAM_PROTO_ClearQueue [16:39:16]wFMCommunicate request_size=4 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 09 00 00 [16:39:16]Write to MH i2c: E2 08 00 FB B6 80 09 00 00 00 00 00 00 23 [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:16]Read from MH i2c: E2 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 03 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 03 00 FB B6 00 90 00 25 [16:39:16]RAPDU: 90 00 [16:39:16]wFMCommunicate OK [16:39:16]SAM_PROTO_ClearQueue done [16:39:16]KKMCreateOFDPacket [16:39:16]OFDProtocolAddRootSTLVToBuf [16:39:16]FM_MakeSignedData [16:39:16]FM_MakeSignedData [16:39:16]SAM_PROTO_SignData [16:39:16]wFMCommunicate request_size=4 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 0D 01 02 [16:39:16]Write to MH i2c: E2 08 00 FC B6 80 0D 01 02 00 00 00 00 2B [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:16]Read from MH i2c: E2 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 03 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 03 00 FC B6 00 90 00 26 [16:39:16]RAPDU: 90 00 [16:39:16]wFMCommunicate OK [16:39:16]wFMCommunicate request_size=255 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EC 02 00 35 04 06 00 64 [16:39:16]Write to MH i2c: E2 02 01 FD B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EC 02 00 35 04 06 00 64 00 00 4A [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:17]Read from MH i2c: E2 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 03 00 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 03 00 FD B6 00 90 00 27 [16:39:17]RAPDU: 90 00 [16:39:17]wFMCommunicate OK [16:39:17]wFMCommunicate request_size=10 [16:39:17]MH_SAM_APDU [16:39:17]CAPDU: 80 0D 02 02 05 AE 08 FE C2 6B [16:39:17]Write to MH i2c: E2 0D 00 FE B6 80 0D 02 02 05 00 AE 08 FE C2 6B 00 00 19 [16:39:17]Write i2c OK [16:39:17]MH_I2C_Read... [16:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:17]Read from MH i2c: E2 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 03 00 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 03 00 FE B6 00 90 00 28 [16:39:17]RAPDU: 90 00 [16:39:17]wFMCommunicate OK [16:39:17]wFMCommunicate request_size=4 [16:39:17]MH_SAM_APDU [16:39:17]CAPDU: 80 0D 03 02 [16:39:17]Write to MH i2c: E2 08 00 FF B6 80 0D 03 02 00 00 00 00 30 [16:39:17]Write i2c OK [16:39:17]MH_I2C_Read... [16:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:17]Read from MH i2c: E2 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 0B 00 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 0B 00 FF B6 00 04 95 DC 3C C6 90 AD DA 90 00 BF [16:39:17]RAPDU: 04 95 DC 3C C6 90 AD DA 90 00 [16:39:17]wFMCommunicate OK [16:39:17]SAM_PROTO_SignData done [16:39:17]FM_MakeSignedData done [16:39:17]CreateOFDProtocolMessage [16:39:17]wFMCommunicate request_size=4 [16:39:17]MH_SAM_APDU [16:39:17]CAPDU: 80 11 00 00 [16:39:17]Write to MH i2c: E2 08 00 00 B7 80 11 00 00 00 00 00 00 31 [16:39:17]Write i2c OK [16:39:17]MH_I2C_Read... [16:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:17]Read from MH i2c: E2 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 17 00 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: E2 17 00 00 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [16:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:17]wFMCommunicate OK [16:39:17]CreateOFDProtocolMessage done [16:39:17]OFDSenderStorePacket 191515 [16:39:17]StoreOFDPacket docnum=191515 [16:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 FD 07 01 6B 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EC 02 00 35 04 06 00 64 AE 08 FE C2 6B 04 95 DC 3C C6 90 AD DA [16:39:17]CheckFolder [16:39:17]dirname=/storage/ofd_packets [16:39:17]CheckFolder done [16:39:17]ProducePacketName [16:39:17]name=ofd_packets/00191515 [16:39:17]NVStorageSaveData ofd_packets/00191515 [16:39:17]File name is /storage/ofd_packets/00191515 [16:39:17]Write 301 bytes [16:39:17]NVStorageSaveData done [16:39:17]OFDSenderStorePacket done [16:39:17]KKMCreateOFDPacket done [16:39:17]NVStorageSaveData kkm_last_timestamp [16:39:17]File name is /storage/kkm_last_timestamp [16:39:17]Write 4 bytes [16:39:17]NVStorageSaveData done [16:39:17]ExternCall_PrintAddStr [16:39:17]wPrintStart [16:39:17]Write to MH i2c: 01 00 00 01 B7 B8 [16:39:17]Write i2c OK [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: 01 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: 01 07 00 [16:39:17]MH_I2C_Read... [16:39:17]Read from MH i2c: 01 07 00 01 B7 00 00 00 00 00 FF 0F CD [16:39:17]RasterBufferAndPrint [16:39:17]line Счет N : (1)30813 [16:39:17]line ИНН: 02508201610067 [16:39:17]line Контрольно-Кассовый Чек [16:39:17]line ПРОДАЖА [16:39:17]line ТРК (МРК, ГНК) : 21 [16:39:17]line Товар: 2710124130 [16:39:17]line Аи-92-К-5 [16:39:17]line 14.950 * 66.90 [16:39:17]line = 1000.16 [16:39:17]line НДС 12% НСП 1% [16:39:17]line > о реализуемом товаре [16:39:17]line ОКРУГЛЕНИЕ: -0.16 [16:39:17]line ИТОГО: 1000.00 [16:39:17]line Внесено: 1000.00 [16:39:17]line СДАЧА: 0.00 [16:39:17]line НСП 1% : 8.85 [16:39:17]line НДС 12% : 106.21 [16:39:17]line Наличными: 1000.00 [16:39:17]line Безнал.: 0.00 [16:39:17]line Место: АЗС № 170 "Партнер Нефть" [16:39:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:39:17]line СНО: Общий режим [16:39:17]line Чек 254 25.10.2024 16:39 [16:39:17]line Смена: 540 ФФД: 1.0 [16:39:17]line ЗНМ: 0300000110 [16:39:17]line РНМ: 0000000000091776 [16:39:17]line Версия ККМ: 001 [16:39:17]line ФМ: 0000000000871754 [16:39:17]line ФД: 191515 [16:39:17]line ФПД: 110698638000747 [16:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191515&fm=110698638000747&tin=02508201610067®Number=0000000000091776&sum=100000 [16:39:17]OFD Sender: Processing packet 191515 [packets to send 75, broken 74] [16:39:17]ProducePacketName [16:39:17]name=ofd_packets/00191515 [16:39:17]OFD Sender: To server: pG, [16:39:17]CommunicateWithHost lk.salyk.kg:30040 [16:39:17]ConnectInit lk.salyk.kg [16:39:17]written 0, free lines is 4095 [16:39:17]Connected sock=11 [16:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 FD 07 01 6B 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD C9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EC 02 00 35 04 06 00 64 AE 08 FE C2 6B 04 95 DC 3C C6 90 AD DA [16:39:18]Write to MH i2c: 01 00 00 2C B7 E3 [16:39:18]Write i2c OK [16:39:18]MH_I2C_Read... [16:39:18]Read from MH i2c: 01 [16:39:18]MH_I2C_Read... [16:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 BD 47 00 5A F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EC 02 00 F4 03 04 00 8B 6E 1B 67 B6 04 01 00 00 42 51 08 75 3C BD FA ED [16:39:18]CommunicateWithHost err = 0 [16:39:18]CheckOFDResponse [16:39:18]1017 (14) - 77093643461234 [16:39:18]1041 (16) - 0000000000871754 [16:39:18]1040 (4) - 191515 [16:39:18]1012 (4) - 25.10.2024 10:10 [16:39:18]1206 (1) - 0 [16:39:18]OFD Sender: Remove packet 191515 [16:39:18]ProducePacketName [16:39:18]name=ofd_packets/00191515 [16:39:18]NVStorageDeleteData [16:39:18]Read from MH i2c: 01 07 00 [16:39:18]MH_I2C_Read... [16:39:18]Read from MH i2c: 01 07 00 2C B7 00 00 00 00 00 BB 0C B1 [16:39:18]RasterBufferAndPrint [16:39:18]line [16:39:18]line [16:39:18]line [16:39:18]line [16:39:18]line [16:39:18]written 0, free lines is 3282 [16:39:18]MH_Cut [16:39:18]Write to MH i2c: D1 01 00 33 B7 01 BC [16:39:18]Write i2c OK [16:39:18]MH_I2C_Read... [16:39:18]Read from MH i2c: D1 [16:39:18]MH_I2C_Read... [16:39:18]Read from MH i2c: D1 01 00 [16:39:18]MH_I2C_Read... [16:39:18]Read from MH i2c: D1 01 00 33 B7 00 BB [16:39:18]Write to MH i2c: 01 00 00 34 B7 EB [16:39:18]Write i2c OK [16:39:18]MH_I2C_Read... [16:39:18]OFD Sender: No OFD packet to send [16:39:18]*** Cut start [16:39:18]*** Partial cut [16:39:18]*** CUTSNS_PIN = 1 [16:39:18]*** CUTSNS_PIN = 0 [16:39:19]*** Brake cut motor [16:39:19]Read from MH i2c: 01 [16:39:19]*** Stop cut motor [16:39:19]*** Cut end [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: 01 07 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: 01 07 00 34 B7 00 00 00 00 00 FF 0F 00 [16:39:19]process_action close_receipt done [16:39:19]requested_data is exist [16:39:19]produce_requested_data [16:39:19]requested_item fm.sn is exist - process it [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 11 00 00 [16:39:19]Write to MH i2c: E2 08 00 35 B7 80 11 00 00 00 00 00 00 66 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 17 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 17 00 35 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [16:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:19]wFMCommunicate OK [16:39:19]requested_item fd.num is exist - process it [16:39:19]SAM_PROTO_GetFieldsCounters [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 13 00 00 [16:39:19]Write to MH i2c: E2 08 00 36 B7 80 13 00 00 00 00 00 00 69 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 62 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 62 00 36 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:19]wFMCommunicate OK [16:39:19]SAM_PROTO_GetFieldsCounters done [16:39:19]requested_item shift.num is exist - process it [16:39:19]requested_item shift.opened is exist - process it [16:39:19]req_shift_opened [16:39:19]FM_GetShiftState [16:39:19]SAM_PROTO_GetShiftState [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 13 01 00 [16:39:19]Write to MH i2c: E2 08 00 37 B7 80 13 01 00 00 00 00 00 6B [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 37 B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2E [16:39:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:39:19]wFMCommunicate OK [16:39:19]SAM_PROTO_GetShiftState done [16:39:19]FM_GetShiftState done [16:39:19]req_shift_opened done [16:39:19]requested_item shift.open_date is exist - process it [16:39:19]req_shift_open_date [16:39:19]req_shift_open_date done [16:39:19]produce_requested_data done [16:39:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191515,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:39:19]process_action_free close_receipt [16:39:19]json_value_free [16:39:19]json_value_free done [16:39:19]process_json_proto returns [16:39:19]Send response to host [16:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191515,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:39:19]free response buf [16:39:19]execute_script done [16:39:19]execute_script returns [16:39:19]free content buf [16:39:19]Sock 8.Close socket [16:39:19]Sock 8.Thread stoped [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:45]accept exits with 9 [16:40:45]New connection [16:40:45]New thread 3066961252 created [16:40:45]Thread 3066817892 joined [16:40:45]Waiting for new connection... [16:40:45] Sock 9.Parse request [16:40:45]Sock 9.Check first char [16:40:45]Sock 9.First char is OK [16:40:45]request: POST /json_proto HTTP/1.0 [16:40:45]Method: POST [16:40:45]URL: /json_proto [16:40:45]Method is POST - this is cgi request [16:40:45]url: /json_proto [16:40:45]query_string will be loaded in cgi processing [16:40:45]execute_cgi json_proto POST (null) [16:40:45]execute_cgi path=json_proto method=POST [16:40:45]POST find Content-Length [16:40:45]Host: 172.17.63.131:8080 [16:40:45]Content-Length: 676 [16:40:45]Content-Type: application/json [16:40:45] [16:40:45]POST finish read [16:40:45]Found Content-Length = 676 [16:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:45]execute_script... [16:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:45]POST & json_proto [16:40:45]process_json_proto [16:40:45]json parsed OK: [16:40:45]protocol is kg_v1.0 [16:40:45]action value=close_receipt [16:40:45]process_action close_receipt [16:40:45]cmd_close_receipt [16:40:45]MH_GetDate [16:40:45]Write to MH i2c: F0 00 00 38 B7 DE [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 09 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 09 00 38 B7 00 17 CA 1B 67 22 05 6E 64 43 [16:40:45]GetLastDocTimeStamp 1729874365 [16:40:45]current date 1729874455 [16:40:45]FM_GetShiftState [16:40:45]SAM_PROTO_GetShiftState [16:40:45]wFMCommunicate request_size=4 [16:40:45]MH_SAM_APDU [16:40:45]CAPDU: 80 13 01 00 [16:40:45]Write to MH i2c: E2 08 00 39 B7 80 13 01 00 00 00 00 00 6D [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:45]Read from MH i2c: E2 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 0E 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 0E 00 39 B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 30 [16:40:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:40:45]wFMCommunicate OK [16:40:45]SAM_PROTO_GetShiftState done [16:40:45]FM_GetShiftState done [16:40:45]opened in 1729816399 [16:40:45]opened+sec_in_day 1729902799 [16:40:45]quantity*price = 50041 [16:40:45]sum+1 = 50042 [16:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 255 25.10.2024 16:40 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191516 ФПД: 59272337281554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191516&fm=59272337281554&tin=02508201610067®Number=0000000000091776&sum=50000 [16:40:47]StoreToDocumentArchive [16:40:47]shift 540 fd 191516 [16:40:47]save to /storage/0540/doc_00191516 [16:40:47]save last doc name /storage/0540/doc_00191516 to /storage/kkm_last_doc_name [16:40:47]save OK [16:40:47]Clear old archive folders... [16:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:47]tlvbuf is 017F1190 [16:40:47]SAM_PROTO_ClearQueue [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 09 00 00 [16:40:47]Write to MH i2c: E2 08 00 46 B7 80 09 00 00 00 00 00 00 6F [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 46 B7 00 90 00 71 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]SAM_PROTO_ClearQueue done [16:40:47]KKMCreateOFDPacket [16:40:47]OFDProtocolAddRootSTLVToBuf [16:40:47]FM_MakeSignedData [16:40:47]FM_MakeSignedData [16:40:47]SAM_PROTO_SignData [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 01 02 [16:40:47]Write to MH i2c: E2 08 00 47 B7 80 0D 01 02 00 00 00 00 77 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 47 B7 00 90 00 72 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=255 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 17 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EC 02 00 35 04 06 00 35 [16:40:47]Write to MH i2c: E2 02 01 48 B7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 17 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EC 02 00 35 04 06 00 35 00 00 CA [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 48 B7 00 90 00 73 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=10 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 02 02 05 E8 6A 9B D2 12 [16:40:47]Write to MH i2c: E2 0D 00 49 B7 80 0D 02 02 05 00 E8 6A 9B D2 12 00 00 55 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 03 00 49 B7 00 90 00 74 [16:40:47]RAPDU: 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 0D 03 02 [16:40:47]Write to MH i2c: E2 08 00 4A B7 80 0D 03 02 00 00 00 00 7C [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 0B 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 0B 00 4A B7 00 5B 5B 6C F9 4F 2C 28 26 90 00 61 [16:40:47]RAPDU: 5B 5B 6C F9 4F 2C 28 26 90 00 [16:40:47]wFMCommunicate OK [16:40:47]SAM_PROTO_SignData done [16:40:47]FM_MakeSignedData done [16:40:47]CreateOFDProtocolMessage [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 11 00 00 [16:40:47]Write to MH i2c: E2 08 00 4B B7 80 11 00 00 00 00 00 00 7C [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 17 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 17 00 4B B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [16:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:47]wFMCommunicate OK [16:40:47]CreateOFDProtocolMessage done [16:40:47]OFDSenderStorePacket 191516 [16:40:47]StoreOFDPacket docnum=191516 [16:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 A8 07 01 FF 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 17 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EC 02 00 35 04 06 00 35 E8 6A 9B D2 12 5B 5B 6C F9 4F 2C 28 26 [16:40:47]CheckFolder [16:40:47]dirname=/storage/ofd_packets [16:40:47]CheckFolder done [16:40:47]ProducePacketName [16:40:47]name=ofd_packets/00191516 [16:40:47]NVStorageSaveData ofd_packets/00191516 [16:40:47]File name is /storage/ofd_packets/00191516 [16:40:47]Write 301 bytes [16:40:47]NVStorageSaveData done [16:40:47]OFDSenderStorePacket done [16:40:47]KKMCreateOFDPacket done [16:40:47]NVStorageSaveData kkm_last_timestamp [16:40:47]File name is /storage/kkm_last_timestamp [16:40:47]Write 4 bytes [16:40:47]NVStorageSaveData done [16:40:47]ExternCall_PrintAddStr [16:40:47]wPrintStart [16:40:47]Write to MH i2c: 01 00 00 4C B7 03 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 07 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 07 00 4C B7 00 00 00 00 00 FF 0F 18 [16:40:47]RasterBufferAndPrint [16:40:47]line Счет N : (1)30814 [16:40:47]line ИНН: 02508201610067 [16:40:47]line Контрольно-Кассовый Чек [16:40:47]line ПРОДАЖА [16:40:47]line ТРК (МРК, ГНК) : 21 [16:40:47]line Товар: 2710124130 [16:40:47]line Аи-92-К-5 [16:40:47]line 7.480 * 66.90 [16:40:47]line = 500.41 [16:40:47]line НДС 12% НСП 1% [16:40:47]line > о реализуемом товаре [16:40:47]line ОКРУГЛЕНИЕ: -0.41 [16:40:47]line ИТОГО: 500.00 [16:40:47]line Внесено: 500.00 [16:40:47]line СДАЧА: 0.00 [16:40:47]line НСП 1% : 4.43 [16:40:47]line НДС 12% : 53.14 [16:40:47]line Наличными: 500.00 [16:40:47]line Безнал.: 0.00 [16:40:47]line Место: АЗС № 170 "Партнер Нефть" [16:40:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:40:47]line СНО: Общий режим [16:40:47]line Чек 255 25.10.2024 16:40 [16:40:47]line Смена: 540 ФФД: 1.0 [16:40:47]line ЗНМ: 0300000110 [16:40:47]line РНМ: 0000000000091776 [16:40:47]line Версия ККМ: 001 [16:40:47]line ФМ: 0000000000871754 [16:40:47]line ФД: 191516 [16:40:47]line ФПД: 59272337281554 [16:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191516&fm=59272337281554&tin=02508201610067®Number=0000000000091776&sum=50000 [16:40:47]OFD Sender: Processing packet 191516 [packets to send 75, broken 74] [16:40:47]ProducePacketName [16:40:47]name=ofd_packets/00191516 [16:40:47]OFD Sender: To server: pG, [16:40:47]CommunicateWithHost lk.salyk.kg:30040 [16:40:47]ConnectInit lk.salyk.kg [16:40:47]written 0, free lines is 4095 [16:40:48]Connected sock=11 [16: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 31 37 35 34 0F 01 00 00 21 A8 07 01 FF 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 17 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EC 02 00 35 04 06 00 35 E8 6A 9B D2 12 5B 5B 6C F9 4F 2C 28 26 [16:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 49 C3 47 00 2E 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 31 37 35 34 10 04 04 00 1C EC 02 00 F4 03 04 00 E5 6E 1B 67 B6 04 01 00 00 E1 ED C3 01 D4 74 D8 93 [16:40:48]CommunicateWithHost err = 0 [16:40:48]CheckOFDResponse [16:40:48]1017 (14) - 77093643461234 [16:40:48]1041 (16) - 0000000000871754 [16:40:48]1040 (4) - 191516 [16:40:48]1012 (4) - 25.10.2024 10:11 [16:40:48]1206 (1) - 0 [16:40:48]OFD Sender: Remove packet 191516 [16:40:48]ProducePacketName [16:40:48]name=ofd_packets/00191516 [16:40:48]NVStorageDeleteData [16:40:48]Write to MH i2c: 01 00 00 77 B7 2E [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 77 B7 00 00 00 00 00 CB 0C 0C [16:40:48]RasterBufferAndPrint [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]line [16:40:48]written 0, free lines is 3282 [16:40:48]MH_Cut [16:40:48]Write to MH i2c: D1 01 00 7E B7 01 07 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D1 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D1 01 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D1 01 00 7E B7 00 06 [16:40:48]Write to MH i2c: 01 00 00 7F B7 36 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]OFD Sender: No OFD packet to send [16:40:49]*** Cut start [16:40:49]*** Partial cut [16:40:49]*** CUTSNS_PIN = 1 [16:40:49]*** CUTSNS_PIN = 0 [16:40:49]*** Brake cut motor [16:40:49]Read from MH i2c: 01 [16:40:49]MH_I2C_Read... [16:40:49]*** Stop cut motor [16:40:49]*** Cut end [16:40:49]Read from MH i2c: 01 07 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: 01 07 00 7F B7 00 00 00 00 00 FF 0F 4B [16:40:49]process_action close_receipt done [16:40:49]requested_data is exist [16:40:49]produce_requested_data [16:40:49]requested_item fm.sn is exist - process it [16:40:49]wFMCommunicate request_size=4 [16:40:49]MH_SAM_APDU [16:40:49]CAPDU: 80 11 00 00 [16:40:49]Write to MH i2c: E2 08 00 80 B7 80 11 00 00 00 00 00 00 B1 [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:49]Read from MH i2c: E2 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 17 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 17 00 80 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [16:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:49]wFMCommunicate OK [16:40:49]requested_item fd.num is exist - process it [16:40:49]SAM_PROTO_GetFieldsCounters [16:40:49]wFMCommunicate request_size=4 [16:40:49]MH_SAM_APDU [16:40:49]CAPDU: 80 13 00 00 [16:40:49]Write to MH i2c: E2 08 00 81 B7 80 13 00 00 00 00 00 00 B4 [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 62 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 62 00 81 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [16: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:50]wFMCommunicate OK [16:40:50]SAM_PROTO_GetFieldsCounters done [16:40:50]requested_item shift.num is exist - process it [16:40:50]requested_item shift.opened is exist - process it [16:40:50]req_shift_opened [16:40:50]FM_GetShiftState [16:40:50]SAM_PROTO_GetShiftState [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 13 01 00 [16:40:50]Write to MH i2c: E2 08 00 82 B7 80 13 01 00 00 00 00 00 B6 [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 0E 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 0E 00 82 B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 79 [16:40:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:40:50]wFMCommunicate OK [16:40:50]SAM_PROTO_GetShiftState done [16:40:50]FM_GetShiftState done [16:40:50]req_shift_opened done [16:40:50]requested_item shift.open_date is exist - process it [16:40:50]req_shift_open_date [16:40:50]req_shift_open_date done [16:40:50]produce_requested_data done [16:40:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191516,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:40:50]process_action_free close_receipt [16:40:50]json_value_free [16:40:50]json_value_free done [16:40:50]process_json_proto returns [16:40:50]Send response to host [16:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191516,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:40:50]free response buf [16:40:50]execute_script done [16:40:50]execute_script returns [16:40:50]free content buf [16:40:50]Sock 9.Close socket [16:40:50]Sock 9.Thread stoped [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]accept exits with 8 [16:42:13]New connection [16:42:13]New thread 3066817892 created [16:42:13]Thread 3066961252 joined [16:42:13]Waiting for new connection... [16:42:13] Sock 8.Parse request [16:42:13]Sock 8.Check first char [16:42:13]Sock 8.First char is OK [16:42:13]request: POST /json_proto HTTP/1.0 [16:42:13]Method: POST [16:42:13]URL: /json_proto [16:42:13]Method is POST - this is cgi request [16:42:13]url: /json_proto [16:42:13]query_string will be loaded in cgi processing [16:42:13]execute_cgi json_proto POST (null) [16:42:13]execute_cgi path=json_proto method=POST [16:42:13]POST find Content-Length [16:42:13]Host: 172.17.63.131:8080 [16:42:13]Content-Length: 676 [16:42:13]Content-Type: application/json [16:42:13] [16:42:13]POST finish read [16:42:13]Found Content-Length = 676 [16:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:13]execute_script... [16:42: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)30815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:13]POST & json_proto [16:42:13]process_json_proto [16:42:13]json parsed OK: [16:42:13]protocol is kg_v1.0 [16:42:13]action value=close_receipt [16:42:13]process_action close_receipt [16:42:13]cmd_close_receipt [16:42:13]MH_GetDate [16:42:13]Write to MH i2c: F0 00 00 83 B7 29 [16:42:13]Write i2c OK [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: F0 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: F0 09 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: F0 09 00 83 B7 00 6F CA 1B 67 22 05 6E 64 E6 [16:42:13]GetLastDocTimeStamp 1729874455 [16:42:13]current date 1729874543 [16:42:13]FM_GetShiftState [16:42:13]SAM_PROTO_GetShiftState [16:42:13]wFMCommunicate request_size=4 [16:42:13]MH_SAM_APDU [16:42:13]CAPDU: 80 13 01 00 [16:42:13]Write to MH i2c: E2 08 00 84 B7 80 13 01 00 00 00 00 00 B8 [16:42:13]Write i2c OK [16:42:13]MH_I2C_Read... [16:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:13]Read from MH i2c: E2 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 0E 00 [16:42:13]MH_I2C_Read... [16:42:13]Read from MH i2c: E2 0E 00 84 B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7B [16:42:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:42:13]wFMCommunicate OK [16:42:13]SAM_PROTO_GetShiftState done [16:42:13]FM_GetShiftState done [16:42:13]opened in 1729816399 [16:42:13]opened+sec_in_day 1729902799 [16:42:13]quantity*price = 60009 [16:42:13]sum+1 = 60010 [16:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 256 25.10.2024 16:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191517 ФПД: 83058956952295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191517&fm=83058956952295&tin=02508201610067®Number=0000000000091776&sum=60000 [16:42:15]StoreToDocumentArchive [16:42:15]shift 540 fd 191517 [16:42:15]save to /storage/0540/doc_00191517 [16:42:15]save last doc name /storage/0540/doc_00191517 to /storage/kkm_last_doc_name [16:42:15]save OK [16:42:15]Clear old archive folders... [16:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:15]tlvbuf is 0160B030 [16:42:15]SAM_PROTO_ClearQueue [16:42:15]wFMCommunicate request_size=4 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 09 00 00 [16:42:15]Write to MH i2c: E2 08 00 91 B7 80 09 00 00 00 00 00 00 BA [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 91 B7 00 90 00 BC [16:42:15]RAPDU: 90 00 [16:42:15]wFMCommunicate OK [16:42:15]SAM_PROTO_ClearQueue done [16:42:15]KKMCreateOFDPacket [16:42:15]OFDProtocolAddRootSTLVToBuf [16:42:15]FM_MakeSignedData [16:42:15]FM_MakeSignedData [16:42:15]SAM_PROTO_SignData [16:42:15]wFMCommunicate request_size=4 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 0D 01 02 [16:42:15]Write to MH i2c: E2 08 00 92 B7 80 0D 01 02 00 00 00 00 C2 [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 92 B7 00 90 00 BD [16:42:15]RAPDU: 90 00 [16:42:15]wFMCommunicate OK [16:42:15]wFMCommunicate request_size=255 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6F CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EC 02 00 35 04 06 00 4B [16:42:15]Write to MH i2c: E2 02 01 93 B7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6F CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EC 02 00 35 04 06 00 4B 00 00 63 [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 93 B7 00 90 00 BE [16:42:15]RAPDU: 90 00 [16:42:15]wFMCommunicate OK [16:42:15]wFMCommunicate request_size=10 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 0D 02 02 05 8A AB 9F E2 E7 [16:42:15]Write to MH i2c: E2 0D 00 94 B7 80 0D 02 02 05 00 8A AB 9F E2 E7 00 00 6C [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 03 00 94 B7 00 90 00 BF [16:42:15]RAPDU: 90 00 [16:42:15]wFMCommunicate OK [16:42:15]wFMCommunicate request_size=4 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 0D 03 02 [16:42:15]Write to MH i2c: E2 08 00 95 B7 80 0D 03 02 00 00 00 00 C7 [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 0B 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 0B 00 95 B7 00 10 A4 20 21 4C A8 5E 2E 90 00 3D [16:42:15]RAPDU: 10 A4 20 21 4C A8 5E 2E 90 00 [16:42:15]wFMCommunicate OK [16:42:15]SAM_PROTO_SignData done [16:42:15]FM_MakeSignedData done [16:42:15]CreateOFDProtocolMessage [16:42:15]wFMCommunicate request_size=4 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 11 00 00 [16:42:15]Write to MH i2c: E2 08 00 96 B7 80 11 00 00 00 00 00 00 C7 [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 17 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 17 00 96 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [16:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:42:15]wFMCommunicate OK [16:42:15]CreateOFDProtocolMessage done [16:42:15]OFDSenderStorePacket 191517 [16:42:15]StoreOFDPacket docnum=191517 [16:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 A3 07 01 7C 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6F CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EC 02 00 35 04 06 00 4B 8A AB 9F E2 E7 10 A4 20 21 4C A8 5E 2E [16:42:15]CheckFolder [16:42:15]dirname=/storage/ofd_packets [16:42:15]CheckFolder done [16:42:15]ProducePacketName [16:42:15]name=ofd_packets/00191517 [16:42:15]NVStorageSaveData ofd_packets/00191517 [16:42:15]File name is /storage/ofd_packets/00191517 [16:42:15]Write 301 bytes [16:42:15]NVStorageSaveData done [16:42:15]OFDSenderStorePacket done [16:42:15]KKMCreateOFDPacket done [16:42:15]NVStorageSaveData kkm_last_timestamp [16:42:15]File name is /storage/kkm_last_timestamp [16:42:15]Write 4 bytes [16:42:15]NVStorageSaveData done [16:42:15]ExternCall_PrintAddStr [16:42:15]wPrintStart [16:42:15]Write to MH i2c: 01 00 00 97 B7 4E [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: 01 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: 01 07 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: 01 07 00 97 B7 00 00 00 00 00 FF 0F 63 [16:42:15]RasterBufferAndPrint [16:42:15]line Счет N : (1)30815 [16:42:15]line ИНН: 02508201610067 [16:42:15]line Контрольно-Кассовый Чек [16:42:15]line ПРОДАЖА [16:42:15]line ТРК (МРК, ГНК) : 12 [16:42:15]line Товар: 2710124130 [16:42:15]line Аи-92-К-5 [16:42:15]line 8.970 * 66.90 [16:42:15]line = 600.09 [16:42:15]line НДС 12% НСП 1% [16:42:15]line > о реализуемом товаре [16:42:15]line ОКРУГЛЕНИЕ: -0.09 [16:42:15]line ИТОГО: 600.00 [16:42:15]line Внесено: 600.00 [16:42:15]line СДАЧА: 0.00 [16:42:15]line НСП 1% : 5.31 [16:42:15]line НДС 12% : 63.73 [16:42:15]line Наличными: 600.00 [16:42:15]line Безнал.: 0.00 [16:42:15]line Место: АЗС № 170 "Партнер Нефть" [16:42:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:42:15]line СНО: Общий режим [16:42:15]line Чек 256 25.10.2024 16:42 [16:42:15]line Смена: 540 ФФД: 1.0 [16:42:15]line ЗНМ: 0300000110 [16:42:15]line РНМ: 0000000000091776 [16:42:15]line Версия ККМ: 001 [16:42:15]line ФМ: 0000000000871754 [16:42:15]line ФД: 191517 [16:42:15]line ФПД: 83058956952295 [16:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191517&fm=83058956952295&tin=02508201610067®Number=0000000000091776&sum=60000 [16:42:15]OFD Sender: Processing packet 191517 [packets to send 75, broken 74] [16:42:15]ProducePacketName [16:42:15]name=ofd_packets/00191517 [16:42:15]OFD Sender: To server: pG, [16:42:15]CommunicateWithHost lk.salyk.kg:30040 [16:42:15]ConnectInit lk.salyk.kg [16:42:15]written 0, free lines is 4095 [16:42:16]Connected sock=10 [16:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 A3 07 01 7C 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6F CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EC 02 00 35 04 06 00 4B 8A AB 9F E2 E7 10 A4 20 21 4C A8 5E 2E [16:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 41 AD 47 00 12 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EC 02 00 F4 03 04 00 3D 6F 1B 67 B6 04 01 00 00 B1 CB 43 B9 E4 91 81 EE [16:42:16]CommunicateWithHost err = 0 [16:42:16]CheckOFDResponse [16:42:16]1017 (14) - 77093643461234 [16:42:16]1041 (16) - 0000000000871754 [16:42:16]1040 (4) - 191517 [16:42:16]1012 (4) - 25.10.2024 10:13 [16:42:16]1206 (1) - 0 [16:42:16]OFD Sender: Remove packet 191517 [16:42:16]ProducePacketName [16:42:16]name=ofd_packets/00191517 [16:42:16]NVStorageDeleteData [16:42:16]Write to MH i2c: 01 00 00 C2 B7 79 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 07 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 07 00 C2 B7 00 00 00 00 00 D2 0C 5E [16:42:16]RasterBufferAndPrint [16:42:16]line [16:42:16]line [16:42:16]line [16:42:16]line [16:42:16]line [16:42:16]written 0, free lines is 3293 [16:42:16]MH_Cut [16:42:16]Write to MH i2c: D1 01 00 C9 B7 01 52 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: D1 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: D1 01 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: D1 01 00 C9 B7 00 51 [16:42:16]Write to MH i2c: 01 00 00 CA B7 81 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]OFD Sender: No OFD packet to send [16:42:17]*** Cut start [16:42:17]*** Partial cut [16:42:17]*** CUTSNS_PIN = 1 [16:42:17]*** CUTSNS_PIN = 0 [16:42:17]*** Brake cut motor [16:42:17]Read from MH i2c: 01 [16:42:17]MH_I2C_Read... [16:42:17]*** Stop cut motor [16:42:17]*** Cut end [16:42:17]Read from MH i2c: 01 07 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: 01 07 00 CA B7 00 00 00 00 00 FF 0F 96 [16:42:17]process_action close_receipt done [16:42:17]requested_data is exist [16:42:17]produce_requested_data [16:42:17]requested_item fm.sn is exist - process it [16:42:17]wFMCommunicate request_size=4 [16:42:17]MH_SAM_APDU [16:42:17]CAPDU: 80 11 00 00 [16:42:17]Write to MH i2c: E2 08 00 CB B7 80 11 00 00 00 00 00 00 FC [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:17]Read from MH i2c: E2 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: E2 17 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: E2 17 00 CB B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [16:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:42:17]wFMCommunicate OK [16:42:17]requested_item fd.num is exist - process it [16:42:17]SAM_PROTO_GetFieldsCounters [16:42:17]wFMCommunicate request_size=4 [16:42:17]MH_SAM_APDU [16:42:17]CAPDU: 80 13 00 00 [16:42:17]Write to MH i2c: E2 08 00 CC B7 80 13 00 00 00 00 00 00 FF [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:18]Read from MH i2c: E2 [16:42:18]MH_I2C_Read... [16:42:18]Read from MH i2c: E2 62 00 [16:42:18]MH_I2C_Read... [16:42:18]Read from MH i2c: E2 62 00 CC B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:18]wFMCommunicate OK [16:42:18]SAM_PROTO_GetFieldsCounters done [16:42:18]requested_item shift.num is exist - process it [16:42:18]requested_item shift.opened is exist - process it [16:42:18]req_shift_opened [16:42:18]FM_GetShiftState [16:42:18]SAM_PROTO_GetShiftState [16:42:18]wFMCommunicate request_size=4 [16:42:18]MH_SAM_APDU [16:42:18]CAPDU: 80 13 01 00 [16:42:18]Write to MH i2c: E2 08 00 CD B7 80 13 01 00 00 00 00 00 01 [16:42:18]Write i2c OK [16:42:18]MH_I2C_Read... [16:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:18]Read from MH i2c: E2 [16:42:18]MH_I2C_Read... [16:42:18]Read from MH i2c: E2 0E 00 [16:42:18]MH_I2C_Read... [16:42:18]Read from MH i2c: E2 0E 00 CD B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C4 [16:42:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:42:18]wFMCommunicate OK [16:42:18]SAM_PROTO_GetShiftState done [16:42:18]FM_GetShiftState done [16:42:18]req_shift_opened done [16:42:18]requested_item shift.open_date is exist - process it [16:42:18]req_shift_open_date [16:42:18]req_shift_open_date done [16:42:18]produce_requested_data done [16:42:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191517,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:42:18]process_action_free close_receipt [16:42:18]json_value_free [16:42:18]json_value_free done [16:42:18]process_json_proto returns [16:42:18]Send response to host [16:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191517,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:42:18]free response buf [16:42:18]execute_script done [16:42:18]execute_script returns [16:42:18]free content buf [16:42:18]Sock 8.Close socket [16:42:18]Sock 8.Thread stoped [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:23]accept exits with 9 [16:43:23]New connection [16:43:23]New thread 3066961252 created [16:43:23]Thread 3066817892 joined [16:43:23]Waiting for new connection... [16:43:23] Sock 9.Parse request [16:43:23]Sock 9.Check first char [16:43:23]Sock 9.First char is OK [16:43:23]request: POST /json_proto HTTP/1.0 [16:43:23]Method: POST [16:43:23]URL: /json_proto [16:43:23]Method is POST - this is cgi request [16:43:23]url: /json_proto [16:43:23]query_string will be loaded in cgi processing [16:43:23]execute_cgi json_proto POST (null) [16:43:23]execute_cgi path=json_proto method=POST [16:43:23]POST find Content-Length [16:43:23]Host: 172.17.63.131:8080 [16:43:23]Content-Length: 673 [16:43:23]Content-Type: application/json [16:43:23] [16:43:23]POST finish read [16:43:23]Found Content-Length = 673 [16:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:23]execute_script... [16:43: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)30816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:23]POST & json_proto [16:43:23]process_json_proto [16:43:23]json parsed OK: [16:43:23]protocol is kg_v1.0 [16:43:23]action value=close_receipt [16:43:23]process_action close_receipt [16:43:23]cmd_close_receipt [16:43:23]MH_GetDate [16:43:23]Write to MH i2c: F0 00 00 CE B7 74 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: F0 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: F0 09 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: F0 09 00 CE B7 00 B5 CA 1B 67 22 05 6E 64 77 [16:43:23]GetLastDocTimeStamp 1729874543 [16:43:23]current date 1729874613 [16:43:23]FM_GetShiftState [16:43:23]SAM_PROTO_GetShiftState [16:43:23]wFMCommunicate request_size=4 [16:43:23]MH_SAM_APDU [16:43:23]CAPDU: 80 13 01 00 [16:43:23]Write to MH i2c: E2 08 00 CF B7 80 13 01 00 00 00 00 00 03 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:23]Read from MH i2c: E2 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 0E 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: E2 0E 00 CF B7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C6 [16:43:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:43:23]wFMCommunicate OK [16:43:23]SAM_PROTO_GetShiftState done [16:43:23]FM_GetShiftState done [16:43:23]opened in 1729816399 [16:43:23]opened+sec_in_day 1729902799 [16:43:23]quantity*price = 50063 [16:43:23]sum+1 = 50064 [16:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 257 25.10.2024 16:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191518 ФПД: 22269669745094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191518&fm=22269669745094&tin=02508201610067®Number=0000000000091776&sum=50000 [16:43:24]StoreToDocumentArchive [16:43:24]shift 540 fd 191518 [16:43:24]save to /storage/0540/doc_00191518 [16:43:24]save last doc name /storage/0540/doc_00191518 to /storage/kkm_last_doc_name [16:43:24]save OK [16:43:24]Clear old archive folders... [16:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:24]tlvbuf is 015B0A50 [16:43:24]SAM_PROTO_ClearQueue [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 09 00 00 [16:43:24]Write to MH i2c: E2 08 00 DC B7 80 09 00 00 00 00 00 00 05 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 DC B7 00 90 00 07 [16:43:24]RAPDU: 90 00 [16:43:24]wFMCommunicate OK [16:43:24]SAM_PROTO_ClearQueue done [16:43:24]KKMCreateOFDPacket [16:43:24]OFDProtocolAddRootSTLVToBuf [16:43:24]FM_MakeSignedData [16:43:24]FM_MakeSignedData [16:43:24]SAM_PROTO_SignData [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 0D 01 02 [16:43:24]Write to MH i2c: E2 08 00 DD B7 80 0D 01 02 00 00 00 00 0D [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 DD B7 00 90 00 08 [16:43:24]RAPDU: 90 00 [16:43:24]wFMCommunicate OK [16:43:24]wFMCommunicate request_size=255 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 B5 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EC 02 00 35 04 06 00 14 41 0F C1 [16:43:24]Write to MH i2c: E2 02 01 DE B7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 01 01 00 00 F4 03 04 00 B5 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EC 02 00 35 04 06 00 14 41 0F C1 00 00 71 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 DE B7 00 90 00 09 [16:43:24]RAPDU: 90 00 [16:43:24]wFMCommunicate OK [16:43:24]wFMCommunicate request_size=7 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 0D 02 02 02 21 C6 [16:43:24]Write to MH i2c: E2 0A 00 DF B7 80 0D 02 02 02 00 21 C6 00 00 FB [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 03 00 DF B7 00 90 00 0A [16:43:24]RAPDU: 90 00 [16:43:24]wFMCommunicate OK [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 0D 03 02 [16:43:24]Write to MH i2c: E2 08 00 E0 B7 80 0D 03 02 00 00 00 00 12 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 0B 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 0B 00 E0 B7 00 1C A2 88 E7 D9 DE 6A 1B 90 00 7C [16:43:24]RAPDU: 1C A2 88 E7 D9 DE 6A 1B 90 00 [16:43:24]wFMCommunicate OK [16:43:24]SAM_PROTO_SignData done [16:43:24]FM_MakeSignedData done [16:43:24]CreateOFDProtocolMessage [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 11 00 00 [16:43:24]Write to MH i2c: E2 08 00 E1 B7 80 11 00 00 00 00 00 00 12 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 17 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 17 00 E1 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [16:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:24]wFMCommunicate OK [16:43:24]CreateOFDProtocolMessage done [16:43:24]OFDSenderStorePacket 191518 [16:43:24]StoreOFDPacket docnum=191518 [16:43:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE 26 04 01 1A F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 B5 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EC 02 00 35 04 06 00 14 41 0F C1 21 C6 1C A2 88 E7 D9 DE 6A 1B [16:43:24]CheckFolder [16:43:24]dirname=/storage/ofd_packets [16:43:24]CheckFolder done [16:43:24]ProducePacketName [16:43:24]name=ofd_packets/00191518 [16:43:24]NVStorageSaveData ofd_packets/00191518 [16:43:24]File name is /storage/ofd_packets/00191518 [16:43:24]Write 298 bytes [16:43:24]NVStorageSaveData done [16:43:24]OFDSenderStorePacket done [16:43:24]KKMCreateOFDPacket done [16:43:24]NVStorageSaveData kkm_last_timestamp [16:43:24]File name is /storage/kkm_last_timestamp [16:43:24]Write 4 bytes [16:43:24]NVStorageSaveData done [16:43:24]ExternCall_PrintAddStr [16:43:24]wPrintStart [16:43:24]Write to MH i2c: 01 00 00 E2 B7 99 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 07 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 07 00 E2 B7 00 00 00 00 00 FF 0F AE [16:43:24]RasterBufferAndPrint [16:43:24]line Счет N : (1)30816 [16:43:24]line ИНН: 02508201610067 [16:43:24]line Контрольно-Кассовый Чек [16:43:24]line ПРОДАЖА [16:43:24]line ТРК (МРК, ГНК) : 11 [16:43:24]line Товар: 2710194210 [16:43:24]line ДТ-К-5 [16:43:24]line 6.570 * 76.20 [16:43:24]line = 500.63 [16:43:24]line НДС 12% НСП 1% [16:43:24]line > о реализуемом товаре [16:43:24]line ОКРУГЛЕНИЕ: -0.63 [16:43:24]line ИТОГО: 500.00 [16:43:24]line Внесено: 500.00 [16:43:24]line СДАЧА: 0.00 [16:43:24]line НСП 1% : 4.43 [16:43:24]line НДС 12% : 53.16 [16:43:24]line Наличными: 500.00 [16:43:24]line Безнал.: 0.00 [16:43:24]line Место: АЗС № 170 "Партнер Нефть" [16:43:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:43:24]line СНО: Общий режим [16:43:24]line Чек 257 25.10.2024 16:43 [16:43:24]line Смена: 540 ФФД: 1.0 [16:43:24]line ЗНМ: 0300000110 [16:43:24]line РНМ: 0000000000091776 [16:43:24]line Версия ККМ: 001 [16:43:24]line ФМ: 0000000000871754 [16:43:24]line ФД: 191518 [16:43:24]line ФПД: 22269669745094 [16:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191518&fm=22269669745094&tin=02508201610067®Number=0000000000091776&sum=50000 [16:43:25]OFD Sender: Processing packet 191518 [packets to send 75, broken 74] [16:43:25]ProducePacketName [16:43:25]name=ofd_packets/00191518 [16:43:25]OFD Sender: To server: pG, [16:43:25]CommunicateWithHost lk.salyk.kg:30040 [16:43:25]ConnectInit lk.salyk.kg [16:43:25]written 0, free lines is 4095 [16:43:25]Connected sock=10 [16:43:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE 26 04 01 1A F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 B5 CA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EC 02 00 35 04 06 00 14 41 0F C1 21 C6 1C A2 88 E7 D9 DE 6A 1B [16:43:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 09 9D 47 00 57 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EC 02 00 F4 03 04 00 83 6F 1B 67 B6 04 01 00 00 C9 62 13 A2 7A A5 43 1D [16:43:25]CommunicateWithHost err = 0 [16:43:25]CheckOFDResponse [16:43:25]1017 (14) - 77093643461234 [16:43:25]1041 (16) - 0000000000871754 [16:43:25]1040 (4) - 191518 [16:43:25]1012 (4) - 25.10.2024 10:14 [16:43:25]1206 (1) - 0 [16:43:25]OFD Sender: Remove packet 191518 [16:43:25]ProducePacketName [16:43:25]name=ofd_packets/00191518 [16:43:25]NVStorageDeleteData [16:43:25]Write to MH i2c: 01 00 00 0D B8 C5 [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: 01 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: 01 07 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: 01 07 00 0D B8 00 00 00 00 00 C0 0C 98 [16:43:25]RasterBufferAndPrint [16:43:25]line [16:43:25]line [16:43:25]line [16:43:25]line [16:43:25]line [16:43:25]written 0, free lines is 3273 [16:43:25]MH_Cut [16:43:25]Write to MH i2c: D1 01 00 14 B8 01 9E [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: D1 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: D1 01 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: D1 01 00 14 B8 00 9D [16:43:25]Write to MH i2c: 01 00 00 15 B8 CD [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:26]OFD Sender: No OFD packet to send [16:43:26]*** Cut start [16:43:26]*** Partial cut [16:43:26]*** CUTSNS_PIN = 1 [16:43:26]*** CUTSNS_PIN = 0 [16:43:26]*** Brake cut motor [16:43:27]Read from MH i2c: 01 [16:43:27]MH_I2C_Read... [16:43:27]*** Stop cut motor [16:43:27]*** Cut end [16:43:27]Read from MH i2c: 01 07 00 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: 01 07 00 15 B8 00 00 00 00 00 FF 0F E2 [16:43:27]process_action close_receipt done [16:43:27]requested_data is exist [16:43:27]produce_requested_data [16:43:27]requested_item fm.sn is exist - process it [16:43:27]wFMCommunicate request_size=4 [16:43:27]MH_SAM_APDU [16:43:27]CAPDU: 80 11 00 00 [16:43:27]Write to MH i2c: E2 08 00 16 B8 80 11 00 00 00 00 00 00 48 [16:43:27]Write i2c OK [16:43:27]MH_I2C_Read... [16:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:27]Read from MH i2c: E2 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 17 00 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 17 00 16 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [16:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:27]wFMCommunicate OK [16:43:27]requested_item fd.num is exist - process it [16:43:27]SAM_PROTO_GetFieldsCounters [16:43:27]wFMCommunicate request_size=4 [16:43:27]MH_SAM_APDU [16:43:27]CAPDU: 80 13 00 00 [16:43:27]Write to MH i2c: E2 08 00 17 B8 80 13 00 00 00 00 00 00 4B [16:43:27]Write i2c OK [16:43:27]MH_I2C_Read... [16:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:27]Read from MH i2c: E2 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 62 00 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 62 00 17 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:27]wFMCommunicate OK [16:43:27]SAM_PROTO_GetFieldsCounters done [16:43:27]requested_item shift.num is exist - process it [16:43:27]requested_item shift.opened is exist - process it [16:43:27]req_shift_opened [16:43:27]FM_GetShiftState [16:43:27]SAM_PROTO_GetShiftState [16:43:27]wFMCommunicate request_size=4 [16:43:27]MH_SAM_APDU [16:43:27]CAPDU: 80 13 01 00 [16:43:27]Write to MH i2c: E2 08 00 18 B8 80 13 01 00 00 00 00 00 4D [16:43:27]Write i2c OK [16:43:27]MH_I2C_Read... [16:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:27]Read from MH i2c: E2 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 0E 00 [16:43:27]MH_I2C_Read... [16:43:27]Read from MH i2c: E2 0E 00 18 B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 10 [16:43:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:43:27]wFMCommunicate OK [16:43:27]SAM_PROTO_GetShiftState done [16:43:27]FM_GetShiftState done [16:43:27]req_shift_opened done [16:43:27]requested_item shift.open_date is exist - process it [16:43:27]req_shift_open_date [16:43:27]req_shift_open_date done [16:43:27]produce_requested_data done [16:43:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191518,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:43:27]process_action_free close_receipt [16:43:27]json_value_free [16:43:27]json_value_free done [16:43:27]process_json_proto returns [16:43:27]Send response to host [16:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191518,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:43:27]free response buf [16:43:27]execute_script done [16:43:27]execute_script returns [16:43:27]free content buf [16:43:27]Sock 9.Close socket [16:43:27]Sock 9.Thread stoped [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:16]accept exits with 8 [16:46:16]New connection [16:46:16]New thread 3066817892 created [16:46:16]Thread 3066961252 joined [16:46:16]Waiting for new connection... [16:46:16] Sock 8.Parse request [16:46:16]Sock 8.Check first char [16:46:16]Sock 8.First char is OK [16:46:16]request: POST /json_proto HTTP/1.0 [16:46:16]Method: POST [16:46:16]URL: /json_proto [16:46:16]Method is POST - this is cgi request [16:46:16]url: /json_proto [16:46:16]query_string will be loaded in cgi processing [16:46:16]execute_cgi json_proto POST (null) [16:46:16]execute_cgi path=json_proto method=POST [16:46:16]POST find Content-Length [16:46:16]Host: 172.17.63.131:8080 [16:46:16]Content-Length: 676 [16:46:16]Content-Type: application/json [16:46:16] [16:46:16]POST finish read [16:46:16]Found Content-Length = 676 [16:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:16]execute_script... [16:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:16]POST & json_proto [16:46:16]process_json_proto [16:46:16]json parsed OK: [16:46:16]protocol is kg_v1.0 [16:46:16]action value=close_receipt [16:46:16]process_action close_receipt [16:46:16]cmd_close_receipt [16:46:16]MH_GetDate [16:46:16]Write to MH i2c: F0 00 00 19 B8 C0 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 09 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: F0 09 00 19 B8 00 62 CB 1B 67 22 05 6E 64 71 [16:46:16]GetLastDocTimeStamp 1729874613 [16:46:16]current date 1729874786 [16:46:16]FM_GetShiftState [16:46:16]SAM_PROTO_GetShiftState [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 13 01 00 [16:46:16]Write to MH i2c: E2 08 00 1A B8 80 13 01 00 00 00 00 00 4F [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 1A B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 12 [16:46:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_GetShiftState done [16:46:16]FM_GetShiftState done [16:46:16]opened in 1729816399 [16:46:16]opened+sec_in_day 1729902799 [16:46:16]quantity*price = 20003 [16:46:16]sum+1 = 20004 [16:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 258 25.10.2024 16:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191519 ФПД: 3236353819333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191519&fm=3236353819333&tin=02508201610067®Number=0000000000091776&sum=20000 [16:46:17]StoreToDocumentArchive [16:46:17]shift 540 fd 191519 [16:46:17]save to /storage/0540/doc_00191519 [16:46:17]save last doc name /storage/0540/doc_00191519 to /storage/kkm_last_doc_name [16:46:17]save OK [16:46:17]Clear old archive folders... [16:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:17]tlvbuf is 016B05D0 [16:46:17]SAM_PROTO_ClearQueue [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 09 00 00 [16:46:17]Write to MH i2c: E2 08 00 27 B8 80 09 00 00 00 00 00 00 51 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 27 B8 00 90 00 53 [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_ClearQueue done [16:46:17]KKMCreateOFDPacket [16:46:17]OFDProtocolAddRootSTLVToBuf [16:46:17]FM_MakeSignedData [16:46:17]FM_MakeSignedData [16:46:17]SAM_PROTO_SignData [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 01 02 [16:46:17]Write to MH i2c: E2 08 00 28 B8 80 0D 01 02 00 00 00 00 59 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 28 B8 00 90 00 54 [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=255 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EC 02 00 35 04 06 00 02 [16:46:17]Write to MH i2c: E2 02 01 29 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EC 02 00 35 04 06 00 02 00 00 8E [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 29 B8 00 90 00 55 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=10 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 02 02 05 F1 85 B8 42 C5 [16:46:18]Write to MH i2c: E2 0D 00 2A B8 80 0D 02 02 05 00 F1 85 B8 42 C5 00 00 9B [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 2A B8 00 90 00 56 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 03 02 [16:46:18]Write to MH i2c: E2 08 00 2B B8 80 0D 03 02 00 00 00 00 5E [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 2B B8 00 22 68 9C B0 64 B3 6A FE 90 00 B4 [16:46:18]RAPDU: 22 68 9C B0 64 B3 6A FE 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_SignData done [16:46:18]FM_MakeSignedData done [16:46:18]CreateOFDProtocolMessage [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 11 00 00 [16:46:18]Write to MH i2c: E2 08 00 2C B8 80 11 00 00 00 00 00 00 5E [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 2C B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [16:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:46:18]wFMCommunicate OK [16:46:18]CreateOFDProtocolMessage done [16:46:18]OFDSenderStorePacket 191519 [16:46:18]StoreOFDPacket docnum=191519 [16:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 38 07 01 DF 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EC 02 00 35 04 06 00 02 F1 85 B8 42 C5 22 68 9C B0 64 B3 6A FE [16:46:18]CheckFolder [16:46:18]dirname=/storage/ofd_packets [16:46:18]CheckFolder done [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00191519 [16:46:18]NVStorageSaveData ofd_packets/00191519 [16:46:18]File name is /storage/ofd_packets/00191519 [16:46:18]Write 301 bytes [16:46:18]NVStorageSaveData done [16:46:18]OFDSenderStorePacket done [16:46:18]KKMCreateOFDPacket done [16:46:18]NVStorageSaveData kkm_last_timestamp [16:46:18]File name is /storage/kkm_last_timestamp [16:46:18]Write 4 bytes [16:46:18]NVStorageSaveData done [16:46:18]ExternCall_PrintAddStr [16:46:18]wPrintStart [16:46:18]Write to MH i2c: 01 00 00 2D B8 E5 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 2D B8 00 00 00 00 00 FF 0F FA [16:46:18]RasterBufferAndPrint [16:46:18]line Счет N : (1)30817 [16:46:18]line ИНН: 02508201610067 [16:46:18]line Контрольно-Кассовый Чек [16:46:18]line ПРОДАЖА [16:46:18]line ТРК (МРК, ГНК) : 21 [16:46:18]line Товар: 2710124130 [16:46:18]line Аи-92-К-5 [16:46:18]line 2.990 * 66.90 [16:46:18]line = 200.03 [16:46:18]line НДС 12% НСП 1% [16:46:18]line > о реализуемом товаре [16:46:18]line ОКРУГЛЕНИЕ: -0.03 [16:46:18]line ИТОГО: 200.00 [16:46:18]line Внесено: 200.00 [16:46:18]line СДАЧА: 0.00 [16:46:18]line НСП 1% : 1.77 [16:46:18]line НДС 12% : 21.24 [16:46:18]line Наличными: 200.00 [16:46:18]line Безнал.: 0.00 [16:46:18]line Место: АЗС № 170 "Партнер Нефть" [16:46:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:46:18]line СНО: Общий режим [16:46:18]line Чек 258 25.10.2024 16:46 [16:46:18]line Смена: 540 ФФД: 1.0 [16:46:18]line ЗНМ: 0300000110 [16:46:18]line РНМ: 0000000000091776 [16:46:18]line Версия ККМ: 001 [16:46:18]line ФМ: 0000000000871754 [16:46:18]line ФД: 191519 [16:46:18]line ФПД: 3236353819333 [16:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191519&fm=3236353819333&tin=02508201610067®Number=0000000000091776&sum=20000 [16:46:18]OFD Sender: Processing packet 191519 [packets to send 75, broken 74] [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00191519 [16:46:18]OFD Sender: To server: pG, [16:46:18]CommunicateWithHost lk.salyk.kg:30040 [16:46:18]ConnectInit lk.salyk.kg [16:46:18]written 0, free lines is 4095 [16:46:18]Connected sock=10 [16:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 38 07 01 DF 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EC 02 00 35 04 06 00 02 F1 85 B8 42 C5 22 68 9C B0 64 B3 6A FE [16:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 39 BC 47 00 77 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EC 02 00 F4 03 04 00 30 70 1B 67 B6 04 01 00 00 C4 00 BE B6 99 EB FC F9 [16:46:19]CommunicateWithHost err = 0 [16:46:19]CheckOFDResponse [16:46:19]1017 (14) - 77093643461234 [16:46:19]1041 (16) - 0000000000871754 [16:46:19]1040 (4) - 191519 [16:46:19]1012 (4) - 25.10.2024 10:17 [16:46:19]1206 (1) - 0 [16:46:19]OFD Sender: Remove packet 191519 [16:46:19]ProducePacketName [16:46:19]name=ofd_packets/00191519 [16:46:19]NVStorageDeleteData [16:46:19]Write to MH i2c: 01 00 00 58 B8 10 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 58 B8 00 00 00 00 00 CD 0C F0 [16:46:19]RasterBufferAndPrint [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]written 0, free lines is 3284 [16:46:19]MH_Cut [16:46:19]Write to MH i2c: D1 01 00 5F B8 01 E9 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 5F B8 00 E8 [16:46:19]Write to MH i2c: 01 00 00 60 B8 18 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]OFD Sender: No OFD packet to send [16:46:19]*** Cut start [16:46:19]*** Partial cut [16:46:19]*** CUTSNS_PIN = 1 [16:46:20]*** CUTSNS_PIN = 0 [16:46:20]*** Brake cut motor [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]*** Stop cut motor [16:46:20]*** Cut end [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 60 B8 00 00 00 00 00 FF 0F 2D [16:46:20]process_action close_receipt done [16:46:20]requested_data is exist [16:46:20]produce_requested_data [16:46:20]requested_item fm.sn is exist - process it [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 61 B8 80 11 00 00 00 00 00 00 93 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 61 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [16:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:46:20]wFMCommunicate OK [16:46:20]requested_item fd.num is exist - process it [16:46:20]SAM_PROTO_GetFieldsCounters [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 00 00 [16:46:20]Write to MH i2c: E2 08 00 62 B8 80 13 00 00 00 00 00 00 96 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 62 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [16:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetFieldsCounters done [16:46:20]requested_item shift.num is exist - process it [16:46:20]requested_item shift.opened is exist - process it [16:46:20]req_shift_opened [16:46:20]FM_GetShiftState [16:46:20]SAM_PROTO_GetShiftState [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 01 00 [16:46:20]Write to MH i2c: E2 08 00 63 B8 80 13 01 00 00 00 00 00 98 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 63 B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5B [16:46:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetShiftState done [16:46:20]FM_GetShiftState done [16:46:20]req_shift_opened done [16:46:20]requested_item shift.open_date is exist - process it [16:46:20]req_shift_open_date [16:46:20]req_shift_open_date done [16:46:20]produce_requested_data done [16:46:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191519,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:46:20]process_action_free close_receipt [16:46:20]json_value_free [16:46:20]json_value_free done [16:46:20]process_json_proto returns [16:46:20]Send response to host [16:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191519,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:46:20]free response buf [16:46:20]execute_script done [16:46:20]execute_script returns [16:46:20]free content buf [16:46:20]Sock 8.Close socket [16:46:20]Sock 8.Thread stoped [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:06]accept exits with 9 [16:48:06]New connection [16:48:06]New thread 3066961252 created [16:48:06]Thread 3066817892 joined [16:48:06]Waiting for new connection... [16:48:06] Sock 9.Parse request [16:48:06]Sock 9.Check first char [16:48:06]Sock 9.First char is OK [16:48:06]request: POST /json_proto HTTP/1.0 [16:48:06]Method: POST [16:48:06]URL: /json_proto [16:48:06]Method is POST - this is cgi request [16:48:06]url: /json_proto [16:48:06]query_string will be loaded in cgi processing [16:48:06]execute_cgi json_proto POST (null) [16:48:06]execute_cgi path=json_proto method=POST [16:48:06]POST find Content-Length [16:48:06]Host: 172.17.63.131:8080 [16:48:06]Content-Length: 983 [16:48:06]Content-Type: application/json [16:48:06] [16:48:06]POST finish read [16:48:06]Found Content-Length = 983 [16:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]execute_script... [16:48: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)30818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]POST & json_proto [16:48:06]process_json_proto [16:48:06]json parsed OK: [16:48:06]protocol is kg_v1.0 [16:48:06]action value=close_receipt [16:48:06]process_action close_receipt [16:48:06]cmd_close_receipt [16:48:06]MH_GetDate [16:48:06]Write to MH i2c: F0 00 00 64 B8 0B [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 09 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 09 00 64 B8 00 D0 CB 1B 67 22 05 6E 64 2A [16:48:06]GetLastDocTimeStamp 1729874786 [16:48:06]current date 1729874896 [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 65 B8 80 13 01 00 00 00 00 00 9A [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 65 B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5D [16:48:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]opened in 1729816399 [16:48:06]opened+sec_in_day 1729902799 [16:48:06]quantity*price = 150054 [16:48:06]sum+1 = 150055 [16:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 259 25.10.2024 16:48 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191520 ФПД: 129817395981392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164816&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191520&fm=129817395981392&tin=02508201610067®Number=0000000000091776&sum=150000 [16:48:07]StoreToDocumentArchive [16:48:07]shift 540 fd 191520 [16:48:07]save to /storage/0540/doc_00191520 [16:48:07]save last doc name /storage/0540/doc_00191520 to /storage/kkm_last_doc_name [16:48:07]save OK [16:48:07]Clear old archive folders... [16:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:07]tlvbuf is 016CEA80 [16:48:07]SAM_PROTO_ClearQueue [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 09 00 00 [16:48:07]Write to MH i2c: E2 08 00 72 B8 80 09 00 00 00 00 00 00 9C [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 72 B8 00 90 00 9E [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_ClearQueue done [16:48:07]KKMCreateOFDPacket [16:48:07]OFDProtocolAddRootSTLVToBuf [16:48:07]FM_MakeSignedData [16:48:07]FM_MakeSignedData [16:48:07]SAM_PROTO_SignData [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 01 02 [16:48:07]Write to MH i2c: E2 08 00 73 B8 80 0D 01 02 00 00 00 00 A4 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 73 B8 00 90 00 9F [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]wFMCommunicate request_size=255 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EC 02 00 35 04 06 00 76 [16:48:07]Write to MH i2c: E2 02 01 74 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EC 02 00 35 04 06 00 76 00 00 31 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 74 B8 00 90 00 A0 [16:48:08]RAPDU: 90 00 [16:48:08]wFMCommunicate OK [16:48:08]wFMCommunicate request_size=10 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 0D 02 02 05 11 77 C5 EC 50 [16:48:08]Write to MH i2c: E2 0D 00 75 B8 80 0D 02 02 05 00 11 77 C5 EC 50 00 00 3A [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 75 B8 00 90 00 A1 [16:48:08]RAPDU: 90 00 [16:48:08]wFMCommunicate OK [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 0D 03 02 [16:48:08]Write to MH i2c: E2 08 00 76 B8 80 0D 03 02 00 00 00 00 A9 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0B 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0B 00 76 B8 00 5A FC 02 B5 4F 56 38 4E 90 00 E2 [16:48:08]RAPDU: 5A FC 02 B5 4F 56 38 4E 90 00 [16:48:08]wFMCommunicate OK [16:48:08]SAM_PROTO_SignData done [16:48:08]FM_MakeSignedData done [16:48:08]CreateOFDProtocolMessage [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 11 00 00 [16:48:08]Write to MH i2c: E2 08 00 77 B8 80 11 00 00 00 00 00 00 A9 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 77 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [16:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:48:08]wFMCommunicate OK [16:48:08]CreateOFDProtocolMessage done [16:48:08]OFDSenderStorePacket 191520 [16:48:08]StoreOFDPacket docnum=191520 [16:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 37 07 01 38 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EC 02 00 35 04 06 00 76 11 77 C5 EC 50 5A FC 02 B5 4F 56 38 4E [16:48:08]CheckFolder [16:48:08]dirname=/storage/ofd_packets [16:48:08]CheckFolder done [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00191520 [16:48:08]NVStorageSaveData ofd_packets/00191520 [16:48:08]File name is /storage/ofd_packets/00191520 [16:48:08]Write 301 bytes [16:48:08]NVStorageSaveData done [16:48:08]OFDSenderStorePacket done [16:48:08]KKMCreateOFDPacket done [16:48:08]NVStorageSaveData kkm_last_timestamp [16:48:08]File name is /storage/kkm_last_timestamp [16:48:08]Write 4 bytes [16:48:08]NVStorageSaveData done [16:48:08]ExternCall_PrintAddStr [16:48:08]wPrintStart [16:48:08]Write to MH i2c: 01 00 00 78 B8 30 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 78 B8 00 00 00 00 00 FF 0F 45 [16:48:08]RasterBufferAndPrint [16:48:08]line Счет N : (1)30818 [16:48:08]line ИНН: 02508201610067 [16:48:08]line Контрольно-Кассовый Чек [16:48:08]line ПРОДАЖА [16:48:08]line ТРК (МРК, ГНК) : 21 [16:48:08]line Товар: 2710124130 [16:48:08]line Аи-92-К-5 [16:48:08]line 22.770 * 65.90 [16:48:08]line = 1500.54 [16:48:08]line НДС 12% НСП 1% [16:48:08]line > о реализуемом товаре [16:48:08]line ОКРУГЛЕНИЕ: -0.54 [16:48:08]line ИТОГО: 1500.00 [16:48:08]line Внесено: 1500.00 [16:48:08]line СДАЧА: 0.00 [16:48:08]line НСП 1% : 13.28 [16:48:08]line НДС 12% : 159.35 [16:48:08]line Наличными: 1500.00 [16:48:08]line Безнал.: 0.00 [16:48:08]line Место: АЗС № 170 "Партнер Нефть" [16:48:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:48:08]line СНО: Общий режим [16:48:08]line Чек 259 25.10.2024 16:48 [16:48:08]line Смена: 540 ФФД: 1.0 [16:48:08]line ЗНМ: 0300000110 [16:48:08]line РНМ: 0000000000091776 [16:48:08]line Версия ККМ: 001 [16:48:08]line [16:48:08]line Дисконтная программа [16:48:08]line АИ-92 [16:48:08]line номер 170 [16:48:08]line сэкономлено 22.77 сом [16:48:08]line ФМ: 0000000000871754 [16:48:08]line ФД: 191520 [16:48:08]line ФПД: 129817395981392 [16:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164816&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191520&fm=129817395981392&tin=02508201610067®Number=0000000000091776&sum=150000 [16:48:08]OFD Sender: Processing packet 191520 [packets to send 75, broken 74] [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00191520 [16:48:08]OFD Sender: To server: pG, [16:48:08]CommunicateWithHost lk.salyk.kg:30040 [16:48:08]ConnectInit lk.salyk.kg [16:48:08]written 0, free lines is 4095 [16:48:08]Connected sock=11 [16:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 37 07 01 38 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 CB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EC 02 00 35 04 06 00 76 11 77 C5 EC 50 5A FC 02 B5 4F 56 38 4E [16:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 2D 47 00 FC 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EC 02 00 F4 03 04 00 9E 70 1B 67 B6 04 01 00 00 99 C2 35 75 C9 C9 0E 4C [16:48:08]CommunicateWithHost err = 0 [16:48:08]CheckOFDResponse [16:48:08]1017 (14) - 77093643461234 [16:48:08]1041 (16) - 0000000000871754 [16:48:08]1040 (4) - 191520 [16:48:08]1012 (4) - 25.10.2024 10:19 [16:48:08]1206 (1) - 0 [16:48:08]OFD Sender: Remove packet 191520 [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00191520 [16:48:08]NVStorageDeleteData [16:48:09]Write to MH i2c: 01 00 00 A8 B8 60 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 A8 B8 00 00 00 00 00 72 0C E5 [16:48:09]RasterBufferAndPrint [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]line [16:48:09]written 0, free lines is 3192 [16:48:09]MH_Cut [16:48:09]Write to MH i2c: D1 01 00 AF B8 01 39 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: D1 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: D1 01 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: D1 01 00 AF B8 00 38 [16:48:09]Write to MH i2c: 01 00 00 B0 B8 68 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]OFD Sender: No OFD packet to send [16:48:09]*** Cut start [16:48:09]*** Partial cut [16:48:09]*** CUTSNS_PIN = 1 [16:48:09]*** CUTSNS_PIN = 0 [16:48:10]*** Brake cut motor [16:48:10]Read from MH i2c: 01 [16:48:10]MH_I2C_Read... [16:48:10]*** Stop cut motor [16:48:10]*** Cut end [16:48:10]Read from MH i2c: 01 07 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 B0 B8 00 00 00 00 00 FF 0F 7D [16:48:10]process_action close_receipt done [16:48:10]requested_data is exist [16:48:10]produce_requested_data [16:48:10]requested_item fm.sn is exist - process it [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 11 00 00 [16:48:10]Write to MH i2c: E2 08 00 B1 B8 80 11 00 00 00 00 00 00 E3 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 B1 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [16:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:48:10]wFMCommunicate OK [16:48:10]requested_item fd.num is exist - process it [16:48:10]SAM_PROTO_GetFieldsCounters [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 13 00 00 [16:48:10]Write to MH i2c: E2 08 00 B2 B8 80 13 00 00 00 00 00 00 E6 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 62 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 62 00 B2 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:10]wFMCommunicate OK [16:48:10]SAM_PROTO_GetFieldsCounters done [16:48:10]requested_item shift.num is exist - process it [16:48:10]requested_item shift.opened is exist - process it [16:48:10]req_shift_opened [16:48:10]FM_GetShiftState [16:48:10]SAM_PROTO_GetShiftState [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 13 01 00 [16:48:10]Write to MH i2c: E2 08 00 B3 B8 80 13 01 00 00 00 00 00 E8 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 0E 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 0E 00 B3 B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AB [16:48:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:48:10]wFMCommunicate OK [16:48:10]SAM_PROTO_GetShiftState done [16:48:10]FM_GetShiftState done [16:48:10]req_shift_opened done [16:48:10]requested_item shift.open_date is exist - process it [16:48:10]req_shift_open_date [16:48:10]req_shift_open_date done [16:48:10]produce_requested_data done [16:48:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191520,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:48:10]process_action_free close_receipt [16:48:10]json_value_free [16:48:10]json_value_free done [16:48:10]process_json_proto returns [16:48:10]Send response to host [16:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191520,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:48:10]free response buf [16:48:10]execute_script done [16:48:10]execute_script returns [16:48:10]free content buf [16:48:10]Sock 9.Close socket [16:48:10]Sock 9.Thread stoped [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:55]accept exits with 8 [16:49:55]New connection [16:49:55]New thread 3066817892 created [16:49:55]Thread 3066961252 joined [16:49:55]Waiting for new connection... [16:49:55] Sock 8.Parse request [16:49:55]Sock 8.Check first char [16:49:55]Sock 8.First char is OK [16:49:55]request: POST /json_proto HTTP/1.0 [16:49:55]Method: POST [16:49:55]URL: /json_proto [16:49:55]Method is POST - this is cgi request [16:49:55]url: /json_proto [16:49:55]query_string will be loaded in cgi processing [16:49:55]execute_cgi json_proto POST (null) [16:49:55]execute_cgi path=json_proto method=POST [16:49:55]POST find Content-Length [16:49:55]Host: 172.17.63.131:8080 [16:49:55]Content-Length: 983 [16:49:55]Content-Type: application/json [16:49:55] [16:49:55]POST finish read [16:49:55]Found Content-Length = 983 [16:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 26.110, "sum" : 1720.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 26.11 \u0441\u043E\u043C", "deposit" : 1720.00, "total" : 1720.00, "payments": [ { "type": 0, "sum" : 1720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:55]execute_script... [16:49: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)30819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 26.110, "sum" : 1720.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 26.11 \u0441\u043E\u043C", "deposit" : 1720.00, "total" : 1720.00, "payments": [ { "type": 0, "sum" : 1720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:55]POST & json_proto [16:49:55]process_json_proto [16:49:55]json parsed OK: [16:49:55]protocol is kg_v1.0 [16:49:55]action value=close_receipt [16:49:55]process_action close_receipt [16:49:55]cmd_close_receipt [16:49:55]MH_GetDate [16:49:55]Write to MH i2c: F0 00 00 B4 B8 5B [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 09 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: F0 09 00 B4 B8 00 3C CC 1B 67 22 05 6E 64 E7 [16:49:55]GetLastDocTimeStamp 1729874896 [16:49:55]current date 1729875004 [16:49:55]FM_GetShiftState [16:49:55]SAM_PROTO_GetShiftState [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 13 01 00 [16:49:55]Write to MH i2c: E2 08 00 B5 B8 80 13 01 00 00 00 00 00 EA [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 0E 00 B5 B8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AD [16:49:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]SAM_PROTO_GetShiftState done [16:49:55]FM_GetShiftState done [16:49:55]opened in 1729816399 [16:49:55]opened+sec_in_day 1729902799 [16:49:55]quantity*price = 172064 [16:49:55]sum+1 = 172066 [16:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1720.00 Внесено: 1720.00 СДАЧА: 0.00 НСП 1% : 15.23 НДС 12% : 182.72 Наличными: 1720.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 260 25.10.2024 16:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 26.11 сом ФМ: 0000000000871754 ФД: 191521 ФПД: 154599618965868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165005&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191521&fm=154599618965868&tin=02508201610067®Number=0000000000091776&sum=172000 [16:49:56]StoreToDocumentArchive [16:49:56]shift 540 fd 191521 [16:49:56]save to /storage/0540/doc_00191521 [16:49:56]save last doc name /storage/0540/doc_00191521 to /storage/kkm_last_doc_name [16:49:56]save OK [16:49:56]Clear old archive folders... [16:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:56]tlvbuf is 0160B860 [16:49:56]SAM_PROTO_ClearQueue [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 09 00 00 [16:49:56]Write to MH i2c: E2 08 00 C2 B8 80 09 00 00 00 00 00 00 EC [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 C2 B8 00 90 00 EE [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]SAM_PROTO_ClearQueue done [16:49:56]KKMCreateOFDPacket [16:49:56]OFDProtocolAddRootSTLVToBuf [16:49:56]FM_MakeSignedData [16:49:56]FM_MakeSignedData [16:49:56]SAM_PROTO_SignData [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 01 02 [16:49:56]Write to MH i2c: E2 08 00 C3 B8 80 0D 01 02 00 00 00 00 F4 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 C3 B8 00 90 00 EF [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=255 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 65 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 9F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 47 00 00 00 00 07 04 06 00 E0 9F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 3D CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EC 02 00 35 04 06 00 8C [16:49:56]Write to MH i2c: E2 02 01 C4 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 65 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 9F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 47 00 00 00 00 07 04 06 00 E0 9F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 3D CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EC 02 00 35 04 06 00 8C 00 00 EA [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 C4 B8 00 90 00 F0 [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=10 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 02 02 05 9B 87 5E F1 6C [16:49:56]Write to MH i2c: E2 0D 00 C5 B8 80 0D 02 02 05 00 9B 87 5E F1 6C 00 00 DE [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 C5 B8 00 90 00 F1 [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 03 02 [16:49:56]Write to MH i2c: E2 08 00 C6 B8 80 0D 03 02 00 00 00 00 F9 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 0B 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 0B 00 C6 B8 00 DE A9 3A A9 09 79 18 2B 90 00 29 [16:49:56]RAPDU: DE A9 3A A9 09 79 18 2B 90 00 [16:49:56]wFMCommunicate OK [16:49:56]SAM_PROTO_SignData done [16:49:56]FM_MakeSignedData done [16:49:56]CreateOFDProtocolMessage [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 11 00 00 [16:49:56]Write to MH i2c: E2 08 00 C7 B8 80 11 00 00 00 00 00 00 F9 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 17 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 17 00 C7 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [16:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:56]wFMCommunicate OK [16:49:56]CreateOFDProtocolMessage done [16:49:56]OFDSenderStorePacket 191521 [16:49:56]StoreOFDPacket docnum=191521 [16:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 87 07 01 09 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 65 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 9F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 47 00 00 00 00 07 04 06 00 E0 9F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 3D CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EC 02 00 35 04 06 00 8C 9B 87 5E F1 6C DE A9 3A A9 09 79 18 2B [16:49:56]CheckFolder [16:49:56]dirname=/storage/ofd_packets [16:49:56]CheckFolder done [16:49:56]ProducePacketName [16:49:56]name=ofd_packets/00191521 [16:49:56]NVStorageSaveData ofd_packets/00191521 [16:49:56]File name is /storage/ofd_packets/00191521 [16:49:56]Write 301 bytes [16:49:56]NVStorageSaveData done [16:49:56]OFDSenderStorePacket done [16:49:56]KKMCreateOFDPacket done [16:49:56]NVStorageSaveData kkm_last_timestamp [16:49:56]File name is /storage/kkm_last_timestamp [16:49:56]Write 4 bytes [16:49:56]NVStorageSaveData done [16:49:56]ExternCall_PrintAddStr [16:49:56]wPrintStart [16:49:56]Write to MH i2c: 01 00 00 C8 B8 80 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 07 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 07 00 C8 B8 00 00 00 00 00 FF 0F 95 [16:49:56]RasterBufferAndPrint [16:49:56]line Счет N : (1)30819 [16:49:56]line ИНН: 02508201610067 [16:49:56]line Контрольно-Кассовый Чек [16:49:56]line ПРОДАЖА [16:49:56]line ТРК (МРК, ГНК) : 21 [16:49:56]line Товар: 2710124130 [16:49:56]line Аи-92-К-5 [16:49:56]line 26.110 * 65.90 [16:49:56]line = 1720.65 [16:49:56]line НДС 12% НСП 1% [16:49:56]line > о реализуемом товаре [16:49:56]line ОКРУГЛЕНИЕ: -0.65 [16:49:56]line ИТОГО: 1720.00 [16:49:56]line Внесено: 1720.00 [16:49:56]line СДАЧА: 0.00 [16:49:56]line НСП 1% : 15.23 [16:49:56]line НДС 12% : 182.72 [16:49:56]line Наличными: 1720.00 [16:49:56]line Безнал.: 0.00 [16:49:56]line Место: АЗС № 170 "Партнер Нефть" [16:49:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:49:56]line СНО: Общий режим [16:49:56]line Чек 260 25.10.2024 16:50 [16:49:56]line Смена: 540 ФФД: 1.0 [16:49:56]line ЗНМ: 0300000110 [16:49:56]line РНМ: 0000000000091776 [16:49:56]line Версия ККМ: 001 [16:49:56]line [16:49:56]line Дисконтная программа [16:49:56]line АИ-92 [16:49:56]line номер 170 [16:49:56]line сэкономлено 26.11 сом [16:49:56]line ФМ: 0000000000871754 [16:49:56]line ФД: 191521 [16:49:56]line ФПД: 154599618965868 [16:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165005&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191521&fm=154599618965868&tin=02508201610067®Number=0000000000091776&sum=172000 [16:49:57]OFD Sender: Processing packet 191521 [packets to send 75, broken 74] [16:49:57]ProducePacketName [16:49:57]name=ofd_packets/00191521 [16:49:57]OFD Sender: To server: pG, [16:49:57]CommunicateWithHost lk.salyk.kg:30040 [16:49:57]ConnectInit lk.salyk.kg [16:49:57]written 0, free lines is 4095 [16:49:57]Connected sock=10 [16:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 87 07 01 09 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 65 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 9F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 47 00 00 00 00 07 04 06 00 E0 9F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 3D CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EC 02 00 35 04 06 00 8C 9B 87 5E F1 6C DE A9 3A A9 09 79 18 2B [16:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 20 47 00 4E B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EC 02 00 F4 03 04 00 0B 71 1B 67 B6 04 01 00 00 50 3D 27 E9 33 B2 6C 57 [16:49:57]CommunicateWithHost err = 0 [16:49:57]CheckOFDResponse [16:49:57]1017 (14) - 77093643461234 [16:49:57]1041 (16) - 0000000000871754 [16:49:57]1040 (4) - 191521 [16:49:57]1012 (4) - 25.10.2024 10:20 [16:49:57]1206 (1) - 0 [16:49:57]OFD Sender: Remove packet 191521 [16:49:57]ProducePacketName [16:49:57]name=ofd_packets/00191521 [16:49:57]NVStorageDeleteData [16:49:57]Write to MH i2c: 01 00 00 F8 B8 B0 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 F8 B8 00 00 00 00 00 6E 0C 31 [16:49:57]RasterBufferAndPrint [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]written 0, free lines is 3189 [16:49:57]MH_Cut [16:49:57]Write to MH i2c: D1 01 00 FF B8 01 89 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 01 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 01 00 FF B8 00 88 [16:49:57]Write to MH i2c: 01 00 00 00 B9 B9 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]OFD Sender: No OFD packet to send [16:49:58]*** Cut start [16:49:58]*** Partial cut [16:49:58]*** CUTSNS_PIN = 1 [16:49:58]*** CUTSNS_PIN = 0 [16:49:58]*** Brake cut motor [16:49:59]Read from MH i2c: 01 [16:49:59]MH_I2C_Read... [16:49:59]*** Stop cut motor [16:49:59]*** Cut end [16:49:59]Read from MH i2c: 01 07 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: 01 07 00 00 B9 00 00 00 00 00 FF 0F CE [16:49:59]process_action close_receipt done [16:49:59]requested_data is exist [16:49:59]produce_requested_data [16:49:59]requested_item fm.sn is exist - process it [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 11 00 00 [16:49:59]Write to MH i2c: E2 08 00 01 B9 80 11 00 00 00 00 00 00 34 [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 17 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 17 00 01 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [16:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:59]wFMCommunicate OK [16:49:59]requested_item fd.num is exist - process it [16:49:59]SAM_PROTO_GetFieldsCounters [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 13 00 00 [16:49:59]Write to MH i2c: E2 08 00 02 B9 80 13 00 00 00 00 00 00 37 [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 62 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 62 00 02 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:59]wFMCommunicate OK [16:49:59]SAM_PROTO_GetFieldsCounters done [16:49:59]requested_item shift.num is exist - process it [16:49:59]requested_item shift.opened is exist - process it [16:49:59]req_shift_opened [16:49:59]FM_GetShiftState [16:49:59]SAM_PROTO_GetShiftState [16:49:59]wFMCommunicate request_size=4 [16:49:59]MH_SAM_APDU [16:49:59]CAPDU: 80 13 01 00 [16:49:59]Write to MH i2c: E2 08 00 03 B9 80 13 01 00 00 00 00 00 39 [16:49:59]Write i2c OK [16:49:59]MH_I2C_Read... [16:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:59]Read from MH i2c: E2 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 0E 00 [16:49:59]MH_I2C_Read... [16:49:59]Read from MH i2c: E2 0E 00 03 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FC [16:49:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:49:59]wFMCommunicate OK [16:49:59]SAM_PROTO_GetShiftState done [16:49:59]FM_GetShiftState done [16:49:59]req_shift_opened done [16:49:59]requested_item shift.open_date is exist - process it [16:49:59]req_shift_open_date [16:49:59]req_shift_open_date done [16:49:59]produce_requested_data done [16:49:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191521,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:49:59]process_action_free close_receipt [16:49:59]json_value_free [16:49:59]json_value_free done [16:49:59]process_json_proto returns [16:49:59]Send response to host [16:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191521,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:49:59]free response buf [16:49:59]execute_script done [16:49:59]execute_script returns [16:49:59]free content buf [16:49:59]Sock 8.Close socket [16:49:59]Sock 8.Thread stoped [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:51:02]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:18]accept exits with 9 [16:52:18]New connection [16:52:18]New thread 3066961252 created [16:52:18]Thread 3066817892 joined [16:52:18]Waiting for new connection... [16:52:18] Sock 9.Parse request [16:52:18]Sock 9.Check first char [16:52:18]Sock 9.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.63.131:8080 [16:52:18]Content-Length: 678 [16:52:18]Content-Type: application/json [16:52:18] [16:52:18]POST finish read [16:52:18]Found Content-Length = 678 [16:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: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", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: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 04 B9 AC [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 04 B9 00 CC CC 1B 67 22 05 6E 64 C8 [16:52:18]GetLastDocTimeStamp 1729875005 [16:52:18]current date 1729875148 [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 05 B9 80 13 01 00 00 00 00 00 3B [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 05 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FE [16:52:18]RAPDU: 09 00 01 4F E7 1A 67 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 1729816399 [16:52:18]opened+sec_in_day 1729902799 [16:52:18]quantity*price = 100050 [16:52:18]sum+1 = 100052 [16:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 261 25.10.2024 16:52 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191522 ФПД: 6870679336518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191522&fm=6870679336518&tin=02508201610067®Number=0000000000091776&sum=100000 [16:52:19]StoreToDocumentArchive [16:52:19]shift 540 fd 191522 [16:52:19]save to /storage/0540/doc_00191522 [16:52:19]save last doc name /storage/0540/doc_00191522 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=248 [16:52:19]tlvbuf is 01625250 [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 12 B9 80 09 00 00 00 00 00 00 3D [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 12 B9 00 90 00 3F [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 13 B9 80 0D 01 02 00 00 00 00 45 [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 13 B9 00 90 00 40 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CC CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EC 02 00 35 04 06 00 06 3F B4 66 [16:52:19]Write to MH i2c: E2 02 01 14 B9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CC CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EC 02 00 35 04 06 00 06 3F B4 66 00 00 7C [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 14 B9 00 90 00 41 [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]wFMCommunicate request_size=7 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 02 02 02 B6 46 [16:52:19]Write to MH i2c: E2 0A 00 15 B9 80 0D 02 02 02 00 B6 46 00 00 48 [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 15 B9 00 90 00 42 [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 16 B9 80 0D 03 02 00 00 00 00 4A [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 16 B9 00 85 8A 08 99 1A B5 D5 6E 90 00 0D [16:52:19]RAPDU: 85 8A 08 99 1A B5 D5 6E 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 17 B9 80 11 00 00 00 00 00 00 4A [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 17 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [16:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:52:19]wFMCommunicate OK [16:52:19]CreateOFDProtocolMessage done [16:52:19]OFDSenderStorePacket 191522 [16:52:19]StoreOFDPacket docnum=191522 [16:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 96 DC 04 01 3B D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EC 02 00 35 04 06 00 06 3F B4 66 B6 46 85 8A 08 99 1A B5 D5 6E [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/00191522 [16:52:19]NVStorageSaveData ofd_packets/00191522 [16:52:19]File name is /storage/ofd_packets/00191522 [16:52:19]Write 298 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 18 B9 D1 [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 18 B9 00 00 00 00 00 FF 0F E6 [16:52:19]RasterBufferAndPrint [16:52:19]line Счет N : (1)30820 [16:52:19]line ИНН: 02508201610067 [16:52:19]line Контрольно-Кассовый Чек [16:52:19]line ПРОДАЖА [16:52:19]line ТРК (МРК, ГНК) : 11 [16:52:19]line Товар: 2710194210 [16:52:19]line ДТ-К-5 [16:52:19]line 13.130 * 76.20 [16:52:19]line = 1000.51 [16:52:19]line НДС 12% НСП 1% [16:52:19]line > о реализуемом товаре [16:52:19]line ОКРУГЛЕНИЕ: -0.51 [16:52:19]line ИТОГО: 1000.00 [16:52:19]line Внесено: 1000.00 [16:52:19]line СДАЧА: 0.00 [16:52:19]line НСП 1% : 8.85 [16:52:19]line НДС 12% : 106.25 [16:52:19]line Наличными: 1000.00 [16:52:19]line Безнал.: 0.00 [16:52:19]line Место: АЗС № 170 "Партнер Нефть" [16:52:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:52:19]line СНО: Общий режим [16:52:19]line Чек 261 25.10.2024 16:52 [16:52:19]line Смена: 540 ФФД: 1.0 [16:52:19]line ЗНМ: 0300000110 [16:52:19]line РНМ: 0000000000091776 [16:52:19]line Версия ККМ: 001 [16:52:19]line ФМ: 0000000000871754 [16:52:19]line ФД: 191522 [16:52:19]line ФПД: 6870679336518 [16:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191522&fm=6870679336518&tin=02508201610067®Number=0000000000091776&sum=100000 [16:52:20]OFD Sender: Processing packet 191522 [packets to send 75, broken 74] [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00191522 [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 31 37 35 34 0C 01 00 00 96 DC 04 01 3B D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC CC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EC 02 00 35 04 06 00 06 3F B4 66 B6 46 85 8A 08 99 1A B5 D5 6E [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 31 37 35 34 4F 00 00 00 89 BB 47 00 FD 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EC 02 00 F4 03 04 00 9A 71 1B 67 B6 04 01 00 00 AD 24 85 58 DF 13 FE 75 [16:52:20]CommunicateWithHost err = 0 [16:52:20]CheckOFDResponse [16:52:20]1017 (14) - 77093643461234 [16:52:20]1041 (16) - 0000000000871754 [16:52:20]1040 (4) - 191522 [16:52:20]1012 (4) - 25.10.2024 10:23 [16:52:20]1206 (1) - 0 [16:52:20]OFD Sender: Remove packet 191522 [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00191522 [16:52:20]NVStorageDeleteData [16:52:20]Write to MH i2c: 01 00 00 43 B9 FC [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 43 B9 00 00 00 00 00 C2 0C D1 [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 3272 [16:52:20]MH_Cut [16:52:20]Write to MH i2c: D1 01 00 4A B9 01 D5 [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 4A B9 00 D4 [16:52:20]Write to MH i2c: 01 00 00 4B B9 04 [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 4B B9 00 00 00 00 00 FF 0F 19 [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 4C B9 80 11 00 00 00 00 00 00 7F [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 4C B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [16:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 4D B9 80 13 00 00 00 00 00 00 82 [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 4D B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 4E B9 80 13 01 00 00 00 00 00 84 [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 4E B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 47 [16:52:22]RAPDU: 09 00 01 4F E7 1A 67 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":"0000000000871754","fd.num":191522,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [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":"0000000000871754","fd.num":191522,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [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 9.Close socket [16:52:22]Sock 9.Thread stoped [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]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:18]accept exits with 8 [16:55:18]New connection [16:55:18]New thread 3066817892 created [16:55:18]Thread 3066961252 joined [16:55:18]Waiting for new connection... [16:55:18] Sock 8.Parse request [16:55:18]Sock 8.Check first char [16:55:18]Sock 8.First char is OK [16:55:18]request: POST /json_proto HTTP/1.0 [16:55:18]Method: POST [16:55:18]URL: /json_proto [16:55:18]Method is POST - this is cgi request [16:55:18]url: /json_proto [16:55:18]query_string will be loaded in cgi processing [16:55:18]execute_cgi json_proto POST (null) [16:55:18]execute_cgi path=json_proto method=POST [16:55:18]POST find Content-Length [16:55:18]Host: 172.17.63.131:8080 [16:55:18]Content-Length: 677 [16:55:18]Content-Type: application/json [16:55:18] [16:55:18]POST finish read [16:55:18]Found Content-Length = 677 [16:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:18]execute_script... [16:55: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)30822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:18]POST & json_proto [16:55:18]process_json_proto [16:55:18]json parsed OK: [16:55:18]protocol is kg_v1.0 [16:55:18]action value=close_receipt [16:55:18]process_action close_receipt [16:55:18]cmd_close_receipt [16:55:18]MH_GetDate [16:55:18]Write to MH i2c: F0 00 00 4F B9 F7 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 09 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 09 00 4F B9 00 80 CD 1B 67 22 05 6E 64 C8 [16:55:18]GetLastDocTimeStamp 1729875148 [16:55:18]current date 1729875328 [16:55:18]FM_GetShiftState [16:55:18]SAM_PROTO_GetShiftState [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 01 00 [16:55:18]Write to MH i2c: E2 08 00 50 B9 80 13 01 00 00 00 00 00 86 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 50 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 49 [16:55:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetShiftState done [16:55:18]FM_GetShiftState done [16:55:18]opened in 1729816399 [16:55:18]opened+sec_in_day 1729902799 [16:55:18]quantity*price = 70044 [16:55:18]sum+1 = 70045 [16:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 262 25.10.2024 16:55 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191523 ФПД: 112284447773773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191523&fm=112284447773773&tin=02508201610067®Number=0000000000091776&sum=70000 [16:55:19]StoreToDocumentArchive [16:55:19]shift 540 fd 191523 [16:55:19]save to /storage/0540/doc_00191523 [16:55:19]save last doc name /storage/0540/doc_00191523 to /storage/kkm_last_doc_name [16:55:19]save OK [16:55:19]Clear old archive folders... [16:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:19]tlvbuf is 01600BA0 [16:55:19]SAM_PROTO_ClearQueue [16:55:19]wFMCommunicate request_size=4 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 09 00 00 [16:55:19]Write to MH i2c: E2 08 00 5D B9 80 09 00 00 00 00 00 00 88 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 5D B9 00 90 00 8A [16:55:19]RAPDU: 90 00 [16:55:19]wFMCommunicate OK [16:55:19]SAM_PROTO_ClearQueue done [16:55:19]KKMCreateOFDPacket [16:55:19]OFDProtocolAddRootSTLVToBuf [16:55:19]FM_MakeSignedData [16:55:19]FM_MakeSignedData [16:55:19]SAM_PROTO_SignData [16:55:19]wFMCommunicate request_size=4 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 0D 01 02 [16:55:19]Write to MH i2c: E2 08 00 5E B9 80 0D 01 02 00 00 00 00 90 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 5E B9 00 90 00 8B [16:55:19]RAPDU: 90 00 [16:55:19]wFMCommunicate OK [16:55:19]wFMCommunicate request_size=255 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 80 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EC 02 00 35 04 06 00 66 [16:55:19]Write to MH i2c: E2 02 01 5F B9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 80 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EC 02 00 35 04 06 00 66 00 00 9F [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 5F B9 00 90 00 8C [16:55:19]RAPDU: 90 00 [16:55:19]wFMCommunicate OK [16:55:19]wFMCommunicate request_size=10 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 0D 02 02 05 1F 42 9F 94 4D [16:55:19]Write to MH i2c: E2 0D 00 60 B9 80 0D 02 02 05 00 1F 42 9F 94 4D 00 00 7E [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 03 00 60 B9 00 90 00 8D [16:55:19]RAPDU: 90 00 [16:55:19]wFMCommunicate OK [16:55:19]wFMCommunicate request_size=4 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 0D 03 02 [16:55:19]Write to MH i2c: E2 08 00 61 B9 80 0D 03 02 00 00 00 00 95 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 0B 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 0B 00 61 B9 00 DA 7C 5B 5E 13 D4 2E 32 90 00 EC [16:55:19]RAPDU: DA 7C 5B 5E 13 D4 2E 32 90 00 [16:55:19]wFMCommunicate OK [16:55:19]SAM_PROTO_SignData done [16:55:19]FM_MakeSignedData done [16:55:19]CreateOFDProtocolMessage [16:55:19]wFMCommunicate request_size=4 [16:55:19]MH_SAM_APDU [16:55:19]CAPDU: 80 11 00 00 [16:55:19]Write to MH i2c: E2 08 00 62 B9 80 11 00 00 00 00 00 00 95 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:19]Read from MH i2c: E2 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 17 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: E2 17 00 62 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [16:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:19]wFMCommunicate OK [16:55:19]CreateOFDProtocolMessage done [16:55:19]OFDSenderStorePacket 191523 [16:55:19]StoreOFDPacket docnum=191523 [16:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 8E 07 01 86 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 80 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EC 02 00 35 04 06 00 66 1F 42 9F 94 4D DA 7C 5B 5E 13 D4 2E 32 [16:55:19]CheckFolder [16:55:19]dirname=/storage/ofd_packets [16:55:19]CheckFolder done [16:55:19]ProducePacketName [16:55:19]name=ofd_packets/00191523 [16:55:19]NVStorageSaveData ofd_packets/00191523 [16:55:19]File name is /storage/ofd_packets/00191523 [16:55:19]Write 301 bytes [16:55:19]NVStorageSaveData done [16:55:19]OFDSenderStorePacket done [16:55:19]KKMCreateOFDPacket done [16:55:19]NVStorageSaveData kkm_last_timestamp [16:55:19]File name is /storage/kkm_last_timestamp [16:55:19]Write 4 bytes [16:55:19]NVStorageSaveData done [16:55:19]ExternCall_PrintAddStr [16:55:19]wPrintStart [16:55:19]Write to MH i2c: 01 00 00 63 B9 1C [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 07 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 07 00 63 B9 00 00 00 00 00 FF 0F 31 [16:55:19]RasterBufferAndPrint [16:55:19]line Счет N : (1)30822 [16:55:19]line ИНН: 02508201610067 [16:55:19]line Контрольно-Кассовый Чек [16:55:19]line ПРОДАЖА [16:55:19]line ТРК (МРК, ГНК) : 12 [16:55:19]line Товар: 2710124130 [16:55:19]line Аи-92-К-5 [16:55:19]line 10.470 * 66.90 [16:55:19]line = 700.44 [16:55:19]line НДС 12% НСП 1% [16:55:19]line > о реализуемом товаре [16:55:19]line ОКРУГЛЕНИЕ: -0.44 [16:55:19]line ИТОГО: 700.00 [16:55:19]line Внесено: 700.00 [16:55:19]line СДАЧА: 0.00 [16:55:19]line НСП 1% : 6.20 [16:55:19]line НДС 12% : 74.38 [16:55:19]line Наличными: 700.00 [16:55:19]line Безнал.: 0.00 [16:55:19]line Место: АЗС № 170 "Партнер Нефть" [16:55:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:55:19]line СНО: Общий режим [16:55:19]line Чек 262 25.10.2024 16:55 [16:55:19]line Смена: 540 ФФД: 1.0 [16:55:19]line ЗНМ: 0300000110 [16:55:19]line РНМ: 0000000000091776 [16:55:19]line Версия ККМ: 001 [16:55:19]line ФМ: 0000000000871754 [16:55:19]line ФД: 191523 [16:55:19]line ФПД: 112284447773773 [16:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191523&fm=112284447773773&tin=02508201610067®Number=0000000000091776&sum=70000 [16:55:19]written 0, free lines is 4095 [16:55:19]OFD Sender: Processing packet 191523 [packets to send 75, broken 74] [16:55:19]ProducePacketName [16:55:19]name=ofd_packets/00191523 [16:55:19]OFD Sender: To server: pG, [16:55:19]CommunicateWithHost lk.salyk.kg:30040 [16:55:19]ConnectInit lk.salyk.kg [16:55:20]Connected sock=9 [16:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 8E 07 01 86 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 80 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EC 02 00 35 04 06 00 66 1F 42 9F 94 4D DA 7C 5B 5E 13 D4 2E 32 [16:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 41 64 47 00 E3 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EC 02 00 F4 03 04 00 4D 72 1B 67 B6 04 01 00 00 41 9B 02 13 7E 37 11 B0 [16:55:20]CommunicateWithHost err = 0 [16:55:20]CheckOFDResponse [16:55:20]1017 (14) - 77093643461234 [16:55:20]1041 (16) - 0000000000871754 [16:55:20]1040 (4) - 191523 [16:55:20]1012 (4) - 25.10.2024 10:26 [16:55:20]1206 (1) - 0 [16:55:20]OFD Sender: Remove packet 191523 [16:55:20]ProducePacketName [16:55:20]name=ofd_packets/00191523 [16:55:20]NVStorageDeleteData [16:55:20]Write to MH i2c: 01 00 00 8E B9 47 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: 01 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: 01 07 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: 01 07 00 8E B9 00 00 00 00 00 C6 0C 20 [16:55:20]RasterBufferAndPrint [16:55:20]line [16:55:20]line [16:55:20]line [16:55:20]line [16:55:20]line [16:55:20]written 0, free lines is 3279 [16:55:20]MH_Cut [16:55:20]Write to MH i2c: D1 01 00 95 B9 01 20 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: D1 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: D1 01 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: D1 01 00 95 B9 00 1F [16:55:20]Write to MH i2c: 01 00 00 96 B9 4F [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]OFD Sender: No OFD packet to send [16:55:21]*** Cut start [16:55:21]*** Partial cut [16:55:21]*** CUTSNS_PIN = 1 [16:55:21]*** CUTSNS_PIN = 0 [16:55:21]*** Brake cut motor [16:55:21]Read from MH i2c: 01 [16:55:21]MH_I2C_Read... [16:55:21]*** Stop cut motor [16:55:21]*** Cut end [16:55:21]Read from MH i2c: 01 07 00 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: 01 07 00 96 B9 00 00 00 00 00 FF 0F 64 [16:55:21]process_action close_receipt done [16:55:21]requested_data is exist [16:55:21]produce_requested_data [16:55:21]requested_item fm.sn is exist - process it [16:55:21]wFMCommunicate request_size=4 [16:55:21]MH_SAM_APDU [16:55:21]CAPDU: 80 11 00 00 [16:55:21]Write to MH i2c: E2 08 00 97 B9 80 11 00 00 00 00 00 00 CA [16:55:21]Write i2c OK [16:55:21]MH_I2C_Read... [16:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:21]Read from MH i2c: E2 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 17 00 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 17 00 97 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [16:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:21]wFMCommunicate OK [16:55:21]requested_item fd.num is exist - process it [16:55:21]SAM_PROTO_GetFieldsCounters [16:55:21]wFMCommunicate request_size=4 [16:55:21]MH_SAM_APDU [16:55:21]CAPDU: 80 13 00 00 [16:55:21]Write to MH i2c: E2 08 00 98 B9 80 13 00 00 00 00 00 00 CD [16:55:21]Write i2c OK [16:55:21]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 62 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 62 00 98 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:22]wFMCommunicate OK [16:55:22]SAM_PROTO_GetFieldsCounters done [16:55:22]requested_item shift.num is exist - process it [16:55:22]requested_item shift.opened is exist - process it [16:55:22]req_shift_opened [16:55:22]FM_GetShiftState [16:55:22]SAM_PROTO_GetShiftState [16:55:22]wFMCommunicate request_size=4 [16:55:22]MH_SAM_APDU [16:55:22]CAPDU: 80 13 01 00 [16:55:22]Write to MH i2c: E2 08 00 99 B9 80 13 01 00 00 00 00 00 CF [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 0E 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 0E 00 99 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 92 [16:55:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:55:22]wFMCommunicate OK [16:55:22]SAM_PROTO_GetShiftState done [16:55:22]FM_GetShiftState done [16:55:22]req_shift_opened done [16:55:22]requested_item shift.open_date is exist - process it [16:55:22]req_shift_open_date [16:55:22]req_shift_open_date done [16:55:22]produce_requested_data done [16:55:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191523,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:55:22]process_action_free close_receipt [16:55:22]json_value_free [16:55:22]json_value_free done [16:55:22]process_json_proto returns [16:55:22]Send response to host [16:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191523,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:55:22]free response buf [16:55:22]execute_script done [16:55:22]execute_script returns [16:55:22]free content buf [16:55:22]Sock 8.Close socket [16:55:22]Sock 8.Thread stoped [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:39]accept exits with 10 [16:55:39]New connection [16:55:39]New thread 3066961252 created [16:55:39]Thread 3066817892 joined [16:55:39]Waiting for new connection... [16:55:39] Sock 10.Parse request [16:55:39]Sock 10.Check first char [16:55:39]Sock 10.First char is OK [16:55:39]request: POST /json_proto HTTP/1.0 [16:55:39]Method: POST [16:55:39]URL: /json_proto [16:55:39]Method is POST - this is cgi request [16:55:39]url: /json_proto [16:55:39]query_string will be loaded in cgi processing [16:55:39]execute_cgi json_proto POST (null) [16:55:39]execute_cgi path=json_proto method=POST [16:55:39]POST find Content-Length [16:55:39]Host: 172.17.63.131:8080 [16:55:39]Content-Length: 678 [16:55:39]Content-Type: application/json [16:55:39] [16:55:39]POST finish read [16:55:39]Found Content-Length = 678 [16:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:39]execute_script... [16:55:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:39]POST & json_proto [16:55:39]process_json_proto [16:55:39]json parsed OK: [16:55:39]protocol is kg_v1.0 [16:55:39]action value=close_receipt [16:55:39]process_action close_receipt [16:55:39]cmd_close_receipt [16:55:39]MH_GetDate [16:55:39]Write to MH i2c: F0 00 00 9A B9 42 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: F0 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: F0 09 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: F0 09 00 9A B9 00 95 CD 1B 67 22 05 6E 64 28 [16:55:39]GetLastDocTimeStamp 1729875328 [16:55:39]current date 1729875349 [16:55:39]FM_GetShiftState [16:55:39]SAM_PROTO_GetShiftState [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 13 01 00 [16:55:39]Write to MH i2c: E2 08 00 9B B9 80 13 01 00 00 00 00 00 D1 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 0E 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 0E 00 9B B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 94 [16:55:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:55:39]wFMCommunicate OK [16:55:39]SAM_PROTO_GetShiftState done [16:55:39]FM_GetShiftState done [16:55:39]opened in 1729816399 [16:55:39]opened+sec_in_day 1729902799 [16:55:39]quantity*price = 300075 [16:55:39]sum+1 = 300077 [16:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 263 25.10.2024 16:55 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191524 ФПД: 49158828685205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191524&fm=49158828685205&tin=02508201610067®Number=0000000000091776&sum=300000 [16:55:40]StoreToDocumentArchive [16:55:40]shift 540 fd 191524 [16:55:40]save to /storage/0540/doc_00191524 [16:55:40]save last doc name /storage/0540/doc_00191524 to /storage/kkm_last_doc_name [16:55:40]save OK [16:55:40]Clear old archive folders... [16:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:55:40]tlvbuf is 016AFD80 [16:55:40]SAM_PROTO_ClearQueue [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 09 00 00 [16:55:40]Write to MH i2c: E2 08 00 A8 B9 80 09 00 00 00 00 00 00 D3 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 A8 B9 00 90 00 D5 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_ClearQueue done [16:55:40]KKMCreateOFDPacket [16:55:40]OFDProtocolAddRootSTLVToBuf [16:55:40]FM_MakeSignedData [16:55:40]FM_MakeSignedData [16:55:40]SAM_PROTO_SignData [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 01 02 [16:55:40]Write to MH i2c: E2 08 00 A9 B9 80 0D 01 02 00 00 00 00 DB [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 A9 B9 00 90 00 D6 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=255 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 95 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EC 02 00 35 04 06 00 2C B5 AE 85 [16:55:40]Write to MH i2c: E2 02 01 AA B9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 95 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EC 02 00 35 04 06 00 2C B5 AE 85 00 00 CC [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 AA B9 00 90 00 D7 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=7 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 02 02 02 77 95 [16:55:40]Write to MH i2c: E2 0A 00 AB B9 80 0D 02 02 02 00 77 95 00 00 EE [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 AB B9 00 90 00 D8 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 03 02 [16:55:40]Write to MH i2c: E2 08 00 AC B9 80 0D 03 02 00 00 00 00 E0 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:40]OFD Sender: No OFD packet to send [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 AC B9 00 EB D7 1A D9 1B 06 D4 1A 90 00 A5 [16:55:40]RAPDU: EB D7 1A D9 1B 06 D4 1A 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_SignData done [16:55:40]FM_MakeSignedData done [16:55:40]CreateOFDProtocolMessage [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 11 00 00 [16:55:40]Write to MH i2c: E2 08 00 AD B9 80 11 00 00 00 00 00 00 E0 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 AD B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [16:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:40]wFMCommunicate OK [16:55:40]CreateOFDProtocolMessage done [16:55:40]OFDSenderStorePacket 191524 [16:55:40]StoreOFDPacket docnum=191524 [16:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 6E 04 01 13 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 95 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EC 02 00 35 04 06 00 2C B5 AE 85 77 95 EB D7 1A D9 1B 06 D4 1A [16:55:40]CheckFolder [16:55:40]dirname=/storage/ofd_packets [16:55:40]CheckFolder done [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00191524 [16:55:40]NVStorageSaveData ofd_packets/00191524 [16:55:40]File name is /storage/ofd_packets/00191524 [16:55:40]Write 298 bytes [16:55:40]NVStorageSaveData done [16:55:40]OFDSenderStorePacket done [16:55:40]KKMCreateOFDPacket done [16:55:40]NVStorageSaveData kkm_last_timestamp [16:55:40]File name is /storage/kkm_last_timestamp [16:55:40]Write 4 bytes [16:55:40]NVStorageSaveData done [16:55:40]ExternCall_PrintAddStr [16:55:40]wPrintStart [16:55:40]Write to MH i2c: 01 00 00 AE B9 67 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 AE B9 00 00 00 00 00 FF 0F 7C [16:55:40]RasterBufferAndPrint [16:55:40]line Счет N : (1)30821 [16:55:40]line ИНН: 02508201610067 [16:55:40]line Контрольно-Кассовый Чек [16:55:40]line ПРОДАЖА [16:55:40]line ТРК (МРК, ГНК) : 22 [16:55:40]line Товар: 2710194210 [16:55:40]line ДТ-К-5 [16:55:40]line 39.380 * 76.20 [16:55:40]line = 3000.76 [16:55:40]line НДС 12% НСП 1% [16:55:40]line > о реализуемом товаре [16:55:40]line ОКРУГЛЕНИЕ: -0.76 [16:55:40]line ИТОГО: 3000.00 [16:55:40]line Внесено: 3000.00 [16:55:40]line СДАЧА: 0.00 [16:55:40]line НСП 1% : 26.55 [16:55:40]line НДС 12% : 318.66 [16:55:40]line Наличными: 3000.00 [16:55:40]line Безнал.: 0.00 [16:55:40]line Место: АЗС № 170 "Партнер Нефть" [16:55:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:55:40]line СНО: Общий режим [16:55:40]line Чек 263 25.10.2024 16:55 [16:55:40]line Смена: 540 ФФД: 1.0 [16:55:40]line ЗНМ: 0300000110 [16:55:40]line РНМ: 0000000000091776 [16:55:40]line Версия ККМ: 001 [16:55:40]line ФМ: 0000000000871754 [16:55:40]line ФД: 191524 [16:55:40]line ФПД: 49158828685205 [16:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191524&fm=49158828685205&tin=02508201610067®Number=0000000000091776&sum=300000 [16:55:41]OFD Sender: Processing packet 191524 [packets to send 75, broken 74] [16:55:41]ProducePacketName [16:55:41]name=ofd_packets/00191524 [16:55:41]OFD Sender: To server: pG, [16:55:41]CommunicateWithHost lk.salyk.kg:30040 [16:55:41]ConnectInit lk.salyk.kg [16:55:41]written 0, free lines is 4095 [16:55:41]Connected sock=8 [16:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 6E 04 01 13 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 95 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EC 02 00 35 04 06 00 2C B5 AE 85 77 95 EB D7 1A D9 1B 06 D4 1A [16:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 4A 47 00 DC 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EC 02 00 F4 03 04 00 63 72 1B 67 B6 04 01 00 00 09 17 D3 2F B6 51 D3 C8 [16:55:41]CommunicateWithHost err = 0 [16:55:41]CheckOFDResponse [16:55:41]1017 (14) - 77093643461234 [16:55:41]1041 (16) - 0000000000871754 [16:55:41]1040 (4) - 191524 [16:55:41]1012 (4) - 25.10.2024 10:26 [16:55:41]1206 (1) - 0 [16:55:41]OFD Sender: Remove packet 191524 [16:55:41]ProducePacketName [16:55:41]name=ofd_packets/00191524 [16:55:41]NVStorageDeleteData [16:55:41]Write to MH i2c: 01 00 00 D9 B9 92 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 D9 B9 00 00 00 00 00 C7 0C 6C [16:55:41]RasterBufferAndPrint [16:55:41]line [16:55:41]line [16:55:41]line [16:55:41]line [16:55:41]line [16:55:41]written 0, free lines is 3277 [16:55:41]MH_Cut [16:55:41]Write to MH i2c: D1 01 00 E0 B9 01 6B [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 01 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 01 00 E0 B9 00 6A [16:55:41]Write to MH i2c: 01 00 00 E1 B9 9A [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:42]OFD Sender: No OFD packet to send [16:55:42]*** Cut start [16:55:42]*** Partial cut [16:55:42]*** CUTSNS_PIN = 1 [16:55:42]*** CUTSNS_PIN = 0 [16:55:42]*** Brake cut motor [16:55:43]Read from MH i2c: 01 [16:55:43]MH_I2C_Read... [16:55:43]*** Stop cut motor [16:55:43]*** Cut end [16:55:43]Read from MH i2c: 01 07 00 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: 01 07 00 E1 B9 00 00 00 00 00 FF 0F AF [16:55:43]process_action close_receipt done [16:55:43]requested_data is exist [16:55:43]produce_requested_data [16:55:43]requested_item fm.sn is exist - process it [16:55:43]wFMCommunicate request_size=4 [16:55:43]MH_SAM_APDU [16:55:43]CAPDU: 80 11 00 00 [16:55:43]Write to MH i2c: E2 08 00 E2 B9 80 11 00 00 00 00 00 00 15 [16:55:43]Write i2c OK [16:55:43]MH_I2C_Read... [16:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:43]Read from MH i2c: E2 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 17 00 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 17 00 E2 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [16:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:43]wFMCommunicate OK [16:55:43]requested_item fd.num is exist - process it [16:55:43]SAM_PROTO_GetFieldsCounters [16:55:43]wFMCommunicate request_size=4 [16:55:43]MH_SAM_APDU [16:55:43]CAPDU: 80 13 00 00 [16:55:43]Write to MH i2c: E2 08 00 E3 B9 80 13 00 00 00 00 00 00 18 [16:55:43]Write i2c OK [16:55:43]MH_I2C_Read... [16:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:43]Read from MH i2c: E2 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 62 00 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 62 00 E3 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:43]wFMCommunicate OK [16:55:43]SAM_PROTO_GetFieldsCounters done [16:55:43]requested_item shift.num is exist - process it [16:55:43]requested_item shift.opened is exist - process it [16:55:43]req_shift_opened [16:55:43]FM_GetShiftState [16:55:43]SAM_PROTO_GetShiftState [16:55:43]wFMCommunicate request_size=4 [16:55:43]MH_SAM_APDU [16:55:43]CAPDU: 80 13 01 00 [16:55:43]Write to MH i2c: E2 08 00 E4 B9 80 13 01 00 00 00 00 00 1A [16:55:43]Write i2c OK [16:55:43]MH_I2C_Read... [16:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:43]Read from MH i2c: E2 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 0E 00 [16:55:43]MH_I2C_Read... [16:55:43]Read from MH i2c: E2 0E 00 E4 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DD [16:55:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:55:43]wFMCommunicate OK [16:55:43]SAM_PROTO_GetShiftState done [16:55:43]FM_GetShiftState done [16:55:43]req_shift_opened done [16:55:43]requested_item shift.open_date is exist - process it [16:55:43]req_shift_open_date [16:55:43]req_shift_open_date done [16:55:43]produce_requested_data done [16:55:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191524,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:55:43]process_action_free close_receipt [16:55:43]json_value_free [16:55:43]json_value_free done [16:55:43]process_json_proto returns [16:55:43]Send response to host [16:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191524,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:55:43]free response buf [16:55:43]execute_script done [16:55:43]execute_script returns [16:55:43]free content buf [16:55:43]Sock 10.Close socket [16:55:43]Sock 10.Thread stoped [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:06]accept exits with 9 [16:56:06]New connection [16:56:06]New thread 3066817892 created [16:56:06]Thread 3066961252 joined [16:56:06]Waiting for new connection... [16:56:06] Sock 9.Parse request [16:56:06]Sock 9.Check first char [16:56:06]Sock 9.First char is OK [16:56:06]request: POST /json_proto HTTP/1.0 [16:56:06]Method: POST [16:56:06]URL: /json_proto [16:56:06]Method is POST - this is cgi request [16:56:06]url: /json_proto [16:56:06]query_string will be loaded in cgi processing [16:56:06]execute_cgi json_proto POST (null) [16:56:06]execute_cgi path=json_proto method=POST [16:56:06]POST find Content-Length [16:56:06]Host: 172.17.63.131:8080 [16:56:06]Content-Length: 681 [16:56:06]Content-Type: application/json [16:56:06] [16:56:06]POST finish read [16:56:06]Found Content-Length = 681 [16:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:06]execute_script... [16:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:06]POST & json_proto [16:56:06]process_json_proto [16:56:06]json parsed OK: [16:56:06]protocol is kg_v1.0 [16:56:06]action value=close_receipt [16:56:06]process_action close_receipt [16:56:06]cmd_close_receipt [16:56:06]MH_GetDate [16:56:06]Write to MH i2c: F0 00 00 E5 B9 8D [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 09 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 09 00 E5 B9 00 B0 CD 1B 67 22 05 6E 64 8E [16:56:06]GetLastDocTimeStamp 1729875349 [16:56:06]current date 1729875376 [16:56:06]FM_GetShiftState [16:56:06]SAM_PROTO_GetShiftState [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 13 01 00 [16:56:06]Write to MH i2c: E2 08 00 E6 B9 80 13 01 00 00 00 00 00 1C [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 0E 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 0E 00 E6 B9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DF [16:56:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:56:06]wFMCommunicate OK [16:56:06]SAM_PROTO_GetShiftState done [16:56:06]FM_GetShiftState done [16:56:06]opened in 1729816399 [16:56:06]opened+sec_in_day 1729902799 [16:56:06]quantity*price = 100015 [16:56:06]sum+1 = 100017 [16:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 264 25.10.2024 16:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191525 ФПД: 175300178940831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191525&fm=175300178940831&tin=02508201610067®Number=0000000000091776&sum=100000 [16:56:08]StoreToDocumentArchive [16:56:08]shift 540 fd 191525 [16:56:08]save to /storage/0540/doc_00191525 [16:56:08]save last doc name /storage/0540/doc_00191525 to /storage/kkm_last_doc_name [16:56:08]save OK [16:56:08]Clear old archive folders... [16:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:08]tlvbuf is 0183C160 [16:56:08]SAM_PROTO_ClearQueue [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 09 00 00 [16:56:08]Write to MH i2c: E2 08 00 F3 B9 80 09 00 00 00 00 00 00 1E [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 F3 B9 00 90 00 20 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]SAM_PROTO_ClearQueue done [16:56:08]KKMCreateOFDPacket [16:56:08]OFDProtocolAddRootSTLVToBuf [16:56:08]FM_MakeSignedData [16:56:08]FM_MakeSignedData [16:56:08]SAM_PROTO_SignData [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 01 02 [16:56:08]Write to MH i2c: E2 08 00 F4 B9 80 0D 01 02 00 00 00 00 26 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 F4 B9 00 90 00 21 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=255 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B0 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EC 02 00 35 04 06 00 9F [16:56:08]Write to MH i2c: E2 02 01 F5 B9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B0 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EC 02 00 35 04 06 00 9F 00 00 8C [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 F5 B9 00 90 00 22 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=10 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 02 02 05 6F 40 E5 13 9F [16:56:08]Write to MH i2c: E2 0D 00 F6 B9 80 0D 02 02 05 00 6F 40 E5 13 9F 00 00 79 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 F6 B9 00 90 00 23 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 03 02 [16:56:08]Write to MH i2c: E2 08 00 F7 B9 80 0D 03 02 00 00 00 00 2B [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0B 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0B 00 F7 B9 00 A1 55 0E 8D 00 DC 84 D3 90 00 F0 [16:56:08]RAPDU: A1 55 0E 8D 00 DC 84 D3 90 00 [16:56:08]wFMCommunicate OK [16:56:08]SAM_PROTO_SignData done [16:56:08]FM_MakeSignedData done [16:56:08]CreateOFDProtocolMessage [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 11 00 00 [16:56:08]Write to MH i2c: E2 08 00 F8 B9 80 11 00 00 00 00 00 00 2B [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 17 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 17 00 F8 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [16:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:08]wFMCommunicate OK [16:56:08]CreateOFDProtocolMessage done [16:56:08]OFDSenderStorePacket 191525 [16:56:08]StoreOFDPacket docnum=191525 [16:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 26 07 01 94 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B0 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EC 02 00 35 04 06 00 9F 6F 40 E5 13 9F A1 55 0E 8D 00 DC 84 D3 [16:56:08]CheckFolder [16:56:08]dirname=/storage/ofd_packets [16:56:08]CheckFolder done [16:56:08]ProducePacketName [16:56:08]name=ofd_packets/00191525 [16:56:08]NVStorageSaveData ofd_packets/00191525 [16:56:08]File name is /storage/ofd_packets/00191525 [16:56:08]Write 301 bytes [16:56:08]NVStorageSaveData done [16:56:08]OFDSenderStorePacket done [16:56:08]KKMCreateOFDPacket done [16:56:08]NVStorageSaveData kkm_last_timestamp [16:56:08]File name is /storage/kkm_last_timestamp [16:56:08]Write 4 bytes [16:56:08]NVStorageSaveData done [16:56:08]ExternCall_PrintAddStr [16:56:08]wPrintStart [16:56:08]Write to MH i2c: 01 00 00 F9 B9 B2 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 07 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 07 00 F9 B9 00 00 00 00 00 FF 0F C7 [16:56:08]RasterBufferAndPrint [16:56:08]line Счет N : (1)30823 [16:56:08]line ИНН: 02508201610067 [16:56:08]line Контрольно-Кассовый Чек [16:56:08]line ПРОДАЖА [16:56:08]line ТРК (МРК, ГНК) : 12 [16:56:08]line Товар: 2710124130 [16:56:08]line Аи-92-К-5 [16:56:08]line 14.950 * 66.90 [16:56:08]line = 1000.16 [16:56:08]line НДС 12% НСП 1% [16:56:08]line > о реализуемом товаре [16:56:08]line ОКРУГЛЕНИЕ: -0.16 [16:56:08]line ИТОГО: 1000.00 [16:56:08]line Внесено: 1000.00 [16:56:08]line СДАЧА: 0.00 [16:56:08]line НСП 1% : 8.85 [16:56:08]line НДС 12% : 106.21 [16:56:08]line Наличными: 1000.00 [16:56:08]line Безнал.: 0.00 [16:56:08]line Место: АЗС № 170 "Партнер Нефть" [16:56:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:56:08]line СНО: Общий режим [16:56:08]line Чек 264 25.10.2024 16:56 [16:56:08]line Смена: 540 ФФД: 1.0 [16:56:08]line ЗНМ: 0300000110 [16:56:08]line РНМ: 0000000000091776 [16:56:08]line Версия ККМ: 001 [16:56:08]line ФМ: 0000000000871754 [16:56:08]line ФД: 191525 [16:56:08]line ФПД: 175300178940831 [16:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191525&fm=175300178940831&tin=02508201610067®Number=0000000000091776&sum=100000 [16:56:08]OFD Sender: Processing packet 191525 [packets to send 75, broken 74] [16:56:08]ProducePacketName [16:56:08]name=ofd_packets/00191525 [16:56:08]OFD Sender: To server: pG, [16:56:08]CommunicateWithHost lk.salyk.kg:30040 [16:56:08]ConnectInit lk.salyk.kg [16:56:08]written 0, free lines is 4095 [16:56:09]Connected sock=10 [16:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 26 07 01 94 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B0 CD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EC 02 00 35 04 06 00 9F 6F 40 E5 13 9F A1 55 0E 8D 00 DC 84 D3 [16:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 00 2F 47 00 87 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 31 37 35 34 10 04 04 00 25 EC 02 00 F4 03 04 00 7E 72 1B 67 B6 04 01 00 00 32 CB 1B 66 82 35 FC C7 [16:56:09]CommunicateWithHost err = 0 [16:56:09]CheckOFDResponse [16:56:09]1017 (14) - 77093643461234 [16:56:09]1041 (16) - 0000000000871754 [16:56:09]1040 (4) - 191525 [16:56:09]1012 (4) - 25.10.2024 10:27 [16:56:09]1206 (1) - 0 [16:56:09]OFD Sender: Remove packet 191525 [16:56:09]ProducePacketName [16:56:09]name=ofd_packets/00191525 [16:56:09]NVStorageDeleteData [16:56:09]Write to MH i2c: 01 00 00 24 BA DE [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 24 BA 00 00 00 00 00 C9 0C BA [16:56:09]RasterBufferAndPrint [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]written 0, free lines is 3280 [16:56:09]MH_Cut [16:56:09]Write to MH i2c: D1 01 00 2B BA 01 B7 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 01 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 01 00 2B BA 00 B6 [16:56:09]Write to MH i2c: 01 00 00 2C BA E6 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]OFD Sender: No OFD packet to send [16:56:10]*** Cut start [16:56:10]*** Partial cut [16:56:10]*** CUTSNS_PIN = 1 [16:56:10]*** CUTSNS_PIN = 0 [16:56:10]*** Brake cut motor [16:56:10]Read from MH i2c: 01 [16:56:10]MH_I2C_Read... [16:56:10]*** Stop cut motor [16:56:10]*** Cut end [16:56:10]Read from MH i2c: 01 07 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: 01 07 00 2C BA 00 00 00 00 00 FF 0F FB [16:56:10]process_action close_receipt done [16:56:10]requested_data is exist [16:56:10]produce_requested_data [16:56:10]requested_item fm.sn is exist - process it [16:56:10]wFMCommunicate request_size=4 [16:56:10]MH_SAM_APDU [16:56:10]CAPDU: 80 11 00 00 [16:56:10]Write to MH i2c: E2 08 00 2D BA 80 11 00 00 00 00 00 00 61 [16:56:10]Write i2c OK [16:56:10]MH_I2C_Read... [16:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:10]Read from MH i2c: E2 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 17 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 17 00 2D BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [16:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:10]wFMCommunicate OK [16:56:10]requested_item fd.num is exist - process it [16:56:10]SAM_PROTO_GetFieldsCounters [16:56:10]wFMCommunicate request_size=4 [16:56:10]MH_SAM_APDU [16:56:10]CAPDU: 80 13 00 00 [16:56:10]Write to MH i2c: E2 08 00 2E BA 80 13 00 00 00 00 00 00 64 [16:56:10]Write i2c OK [16:56:10]MH_I2C_Read... [16:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:11]Read from MH i2c: E2 [16:56:11]MH_I2C_Read... [16:56:11]Read from MH i2c: E2 62 00 [16:56:11]MH_I2C_Read... [16:56:11]Read from MH i2c: E2 62 00 2E BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:11]wFMCommunicate OK [16:56:11]SAM_PROTO_GetFieldsCounters done [16:56:11]requested_item shift.num is exist - process it [16:56:11]requested_item shift.opened is exist - process it [16:56:11]req_shift_opened [16:56:11]FM_GetShiftState [16:56:11]SAM_PROTO_GetShiftState [16:56:11]wFMCommunicate request_size=4 [16:56:11]MH_SAM_APDU [16:56:11]CAPDU: 80 13 01 00 [16:56:11]Write to MH i2c: E2 08 00 2F BA 80 13 01 00 00 00 00 00 66 [16:56:11]Write i2c OK [16:56:11]MH_I2C_Read... [16:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:11]Read from MH i2c: E2 [16:56:11]MH_I2C_Read... [16:56:11]Read from MH i2c: E2 0E 00 [16:56:11]MH_I2C_Read... [16:56:11]Read from MH i2c: E2 0E 00 2F BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 29 [16:56:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:56:11]wFMCommunicate OK [16:56:11]SAM_PROTO_GetShiftState done [16:56:11]FM_GetShiftState done [16:56:11]req_shift_opened done [16:56:11]requested_item shift.open_date is exist - process it [16:56:11]req_shift_open_date [16:56:11]req_shift_open_date done [16:56:11]produce_requested_data done [16:56:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191525,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:56:11]process_action_free close_receipt [16:56:11]json_value_free [16:56:11]json_value_free done [16:56:11]process_json_proto returns [16:56:11]Send response to host [16:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191525,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:56:11]free response buf [16:56:11]execute_script done [16:56:11]execute_script returns [16:56:11]free content buf [16:56:11]Sock 9.Close socket [16:56:11]Sock 9.Thread stoped [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:06]accept exits with 8 [16:59:06]New connection [16:59:06]New thread 3066961252 created [16:59:06]Thread 3066817892 joined [16:59:06]Waiting for new connection... [16:59:06] Sock 8.Parse request [16:59:06]Sock 8.Check first char [16:59:06]Sock 8.First char is OK [16:59:06]request: POST /json_proto HTTP/1.0 [16:59:06]Method: POST [16:59:06]URL: /json_proto [16:59:06]Method is POST - this is cgi request [16:59:06]url: /json_proto [16:59:06]query_string will be loaded in cgi processing [16:59:06]execute_cgi json_proto POST (null) [16:59:06]execute_cgi path=json_proto method=POST [16:59:06]POST find Content-Length [16:59:06]Host: 172.17.63.131:8080 [16:59:06]Content-Length: 676 [16:59:06]Content-Type: application/json [16:59:06] [16:59:06]POST finish read [16:59:06]Found Content-Length = 676 [16:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:06]execute_script... [16:59: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)30824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:06]POST & json_proto [16:59:06]process_json_proto [16:59:06]json parsed OK: [16:59:06]protocol is kg_v1.0 [16:59:06]action value=close_receipt [16:59:06]process_action close_receipt [16:59:06]cmd_close_receipt [16:59:06]MH_GetDate [16:59:06]Write to MH i2c: F0 00 00 30 BA D9 [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: F0 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: F0 09 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: F0 09 00 30 BA 00 64 CE 1B 67 22 05 6E 64 8F [16:59:06]GetLastDocTimeStamp 1729875376 [16:59:06]current date 1729875556 [16:59:06]FM_GetShiftState [16:59:06]SAM_PROTO_GetShiftState [16:59:06]wFMCommunicate request_size=4 [16:59:06]MH_SAM_APDU [16:59:06]CAPDU: 80 13 01 00 [16:59:06]Write to MH i2c: E2 08 00 31 BA 80 13 01 00 00 00 00 00 68 [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:06]Read from MH i2c: E2 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: E2 0E 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: E2 0E 00 31 BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2B [16:59:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:59:06]wFMCommunicate OK [16:59:06]SAM_PROTO_GetShiftState done [16:59:06]FM_GetShiftState done [16:59:06]opened in 1729816399 [16:59:06]opened+sec_in_day 1729902799 [16:59:06]quantity*price = 50041 [16:59:06]sum+1 = 50042 [16:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 265 25.10.2024 16:59 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191526 ФПД: 23809545895578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165916&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191526&fm=23809545895578&tin=02508201610067®Number=0000000000091776&sum=50000 [16:59:07]StoreToDocumentArchive [16:59:07]shift 540 fd 191526 [16:59:07]save to /storage/0540/doc_00191526 [16:59:07]save last doc name /storage/0540/doc_00191526 to /storage/kkm_last_doc_name [16:59:07]save OK [16:59:07]Clear old archive folders... [16:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:07]tlvbuf is 016EB230 [16:59:07]SAM_PROTO_ClearQueue [16:59:07]wFMCommunicate request_size=4 [16:59:07]MH_SAM_APDU [16:59:07]CAPDU: 80 09 00 00 [16:59:07]Write to MH i2c: E2 08 00 3E BA 80 09 00 00 00 00 00 00 6A [16:59:07]Write i2c OK [16:59:07]MH_I2C_Read... [16:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:07]Read from MH i2c: E2 [16:59:07]MH_I2C_Read... [16:59:07]Read from MH i2c: E2 03 00 [16:59:07]MH_I2C_Read... [16:59:07]Read from MH i2c: E2 03 00 3E BA 00 90 00 6C [16:59:07]RAPDU: 90 00 [16:59:07]wFMCommunicate OK [16:59:07]SAM_PROTO_ClearQueue done [16:59:07]KKMCreateOFDPacket [16:59:07]OFDProtocolAddRootSTLVToBuf [16:59:07]FM_MakeSignedData [16:59:07]FM_MakeSignedData [16:59:07]SAM_PROTO_SignData [16:59:07]wFMCommunicate request_size=4 [16:59:07]MH_SAM_APDU [16:59:07]CAPDU: 80 0D 01 02 [16:59:07]Write to MH i2c: E2 08 00 3F BA 80 0D 01 02 00 00 00 00 72 [16:59:07]Write i2c OK [16:59:07]MH_I2C_Read... [16:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:07]Read from MH i2c: E2 [16:59:07]MH_I2C_Read... [16:59:07]Read from MH i2c: E2 03 00 [16:59:07]MH_I2C_Read... [16:59:07]Read from MH i2c: E2 03 00 3F BA 00 90 00 6D [16:59:07]RAPDU: 90 00 [16:59:07]wFMCommunicate OK [16:59:07]wFMCommunicate request_size=255 [16:59:07]MH_SAM_APDU [16:59:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EC 02 00 35 04 06 00 15 [16:59:07]Write to MH i2c: E2 02 01 40 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EC 02 00 35 04 06 00 15 00 00 0B [16:59:07]Write i2c OK [16:59:07]MH_I2C_Read... [16:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:08]Read from MH i2c: E2 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 03 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 03 00 40 BA 00 90 00 6E [16:59:08]RAPDU: 90 00 [16:59:08]wFMCommunicate OK [16:59:08]wFMCommunicate request_size=10 [16:59:08]MH_SAM_APDU [16:59:08]CAPDU: 80 0D 02 02 05 A7 97 86 7E 9A [16:59:08]Write to MH i2c: E2 0D 00 41 BA 80 0D 02 02 05 00 A7 97 86 7E 9A 00 00 5B [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:08]Read from MH i2c: E2 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 03 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 03 00 41 BA 00 90 00 6F [16:59:08]RAPDU: 90 00 [16:59:08]wFMCommunicate OK [16:59:08]wFMCommunicate request_size=4 [16:59:08]MH_SAM_APDU [16:59:08]CAPDU: 80 0D 03 02 [16:59:08]Write to MH i2c: E2 08 00 42 BA 80 0D 03 02 00 00 00 00 77 [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:08]Read from MH i2c: E2 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 0B 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 0B 00 42 BA 00 4B 5C E8 A2 BE 44 35 DD 90 00 BD [16:59:08]RAPDU: 4B 5C E8 A2 BE 44 35 DD 90 00 [16:59:08]wFMCommunicate OK [16:59:08]SAM_PROTO_SignData done [16:59:08]FM_MakeSignedData done [16:59:08]CreateOFDProtocolMessage [16:59:08]wFMCommunicate request_size=4 [16:59:08]MH_SAM_APDU [16:59:08]CAPDU: 80 11 00 00 [16:59:08]Write to MH i2c: E2 08 00 43 BA 80 11 00 00 00 00 00 00 77 [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:08]Read from MH i2c: E2 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 17 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 17 00 43 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [16:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:59:08]wFMCommunicate OK [16:59:08]CreateOFDProtocolMessage done [16:59:08]OFDSenderStorePacket 191526 [16:59:08]StoreOFDPacket docnum=191526 [16:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B 29 07 01 E9 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EC 02 00 35 04 06 00 15 A7 97 86 7E 9A 4B 5C E8 A2 BE 44 35 DD [16:59:08]CheckFolder [16:59:08]dirname=/storage/ofd_packets [16:59:08]CheckFolder done [16:59:08]ProducePacketName [16:59:08]name=ofd_packets/00191526 [16:59:08]NVStorageSaveData ofd_packets/00191526 [16:59:08]File name is /storage/ofd_packets/00191526 [16:59:08]Write 301 bytes [16:59:08]NVStorageSaveData done [16:59:08]OFDSenderStorePacket done [16:59:08]KKMCreateOFDPacket done [16:59:08]NVStorageSaveData kkm_last_timestamp [16:59:08]File name is /storage/kkm_last_timestamp [16:59:08]Write 4 bytes [16:59:08]NVStorageSaveData done [16:59:08]ExternCall_PrintAddStr [16:59:08]wPrintStart [16:59:08]Write to MH i2c: 01 00 00 44 BA FE [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: 01 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: 01 07 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: 01 07 00 44 BA 00 00 00 00 00 FF 0F 13 [16:59:08]RasterBufferAndPrint [16:59:08]line Счет N : (1)30824 [16:59:08]line ИНН: 02508201610067 [16:59:08]line Контрольно-Кассовый Чек [16:59:08]line ПРОДАЖА [16:59:08]line ТРК (МРК, ГНК) : 21 [16:59:08]line Товар: 2710124130 [16:59:08]line Аи-92-К-5 [16:59:08]line 7.480 * 66.90 [16:59:08]line = 500.41 [16:59:08]line НДС 12% НСП 1% [16:59:08]line > о реализуемом товаре [16:59:08]line ОКРУГЛЕНИЕ: -0.41 [16:59:08]line ИТОГО: 500.00 [16:59:08]line Внесено: 500.00 [16:59:08]line СДАЧА: 0.00 [16:59:08]line НСП 1% : 4.43 [16:59:08]line НДС 12% : 53.14 [16:59:08]line Наличными: 500.00 [16:59:08]line Безнал.: 0.00 [16:59:08]line Место: АЗС № 170 "Партнер Нефть" [16:59:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:59:08]line СНО: Общий режим [16:59:08]line Чек 265 25.10.2024 16:59 [16:59:08]line Смена: 540 ФФД: 1.0 [16:59:08]line ЗНМ: 0300000110 [16:59:08]line РНМ: 0000000000091776 [16:59:08]line Версия ККМ: 001 [16:59:08]line ФМ: 0000000000871754 [16:59:08]line ФД: 191526 [16:59:08]line ФПД: 23809545895578 [16:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165916&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191526&fm=23809545895578&tin=02508201610067®Number=0000000000091776&sum=50000 [16:59:08]OFD Sender: Processing packet 191526 [packets to send 75, broken 74] [16:59:08]ProducePacketName [16:59:08]name=ofd_packets/00191526 [16:59:08]OFD Sender: To server: pG, [16:59:08]CommunicateWithHost lk.salyk.kg:30040 [16:59:08]ConnectInit lk.salyk.kg [16:59:08]written 0, free lines is 4095 [16:59:08]Connected sock=10 [16:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B 29 07 01 E9 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EC 02 00 35 04 06 00 15 A7 97 86 7E 9A 4B 5C E8 A2 BE 44 35 DD [16:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D7 29 47 00 8E CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EC 02 00 F4 03 04 00 32 73 1B 67 B6 04 01 00 00 4A 95 01 86 47 6B E9 85 [16:59:09]CommunicateWithHost err = 0 [16:59:09]CheckOFDResponse [16:59:09]1017 (14) - 77093643461234 [16:59:09]1041 (16) - 0000000000871754 [16:59:09]1040 (4) - 191526 [16:59:09]1012 (4) - 25.10.2024 10:30 [16:59:09]1206 (1) - 0 [16:59:09]OFD Sender: Remove packet 191526 [16:59:09]ProducePacketName [16:59:09]name=ofd_packets/00191526 [16:59:09]NVStorageDeleteData [16:59:09]Write to MH i2c: 01 00 00 6F BA 29 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: 01 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: 01 07 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: 01 07 00 6F BA 00 00 00 00 00 CB 0C 07 [16:59:09]RasterBufferAndPrint [16:59:09]line [16:59:09]line [16:59:09]line [16:59:09]line [16:59:09]line [16:59:09]written 0, free lines is 3281 [16:59:09]MH_Cut [16:59:09]Write to MH i2c: D1 01 00 76 BA 01 02 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: D1 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: D1 01 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: D1 01 00 76 BA 00 01 [16:59:09]Write to MH i2c: 01 00 00 77 BA 31 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]OFD Sender: No OFD packet to send [16:59:09]*** Cut start [16:59:09]*** Partial cut [16:59:09]*** CUTSNS_PIN = 1 [16:59:10]*** CUTSNS_PIN = 0 [16:59:10]*** Brake cut motor [16:59:10]Read from MH i2c: 01 [16:59:10]MH_I2C_Read... [16:59:10]*** Stop cut motor [16:59:10]*** Cut end [16:59:10]Read from MH i2c: 01 07 00 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: 01 07 00 77 BA 00 00 00 00 00 FF 0F 46 [16:59:10]process_action close_receipt done [16:59:10]requested_data is exist [16:59:10]produce_requested_data [16:59:10]requested_item fm.sn is exist - process it [16:59:10]wFMCommunicate request_size=4 [16:59:10]MH_SAM_APDU [16:59:10]CAPDU: 80 11 00 00 [16:59:10]Write to MH i2c: E2 08 00 78 BA 80 11 00 00 00 00 00 00 AC [16:59:10]Write i2c OK [16:59:10]MH_I2C_Read... [16:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:10]Read from MH i2c: E2 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 17 00 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 17 00 78 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [16:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:59:10]wFMCommunicate OK [16:59:10]requested_item fd.num is exist - process it [16:59:10]SAM_PROTO_GetFieldsCounters [16:59:10]wFMCommunicate request_size=4 [16:59:10]MH_SAM_APDU [16:59:10]CAPDU: 80 13 00 00 [16:59:10]Write to MH i2c: E2 08 00 79 BA 80 13 00 00 00 00 00 00 AF [16:59:10]Write i2c OK [16:59:10]MH_I2C_Read... [16:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:10]Read from MH i2c: E2 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 62 00 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 62 00 79 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:59:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:10]wFMCommunicate OK [16:59:10]SAM_PROTO_GetFieldsCounters done [16:59:10]requested_item shift.num is exist - process it [16:59:10]requested_item shift.opened is exist - process it [16:59:10]req_shift_opened [16:59:10]FM_GetShiftState [16:59:10]SAM_PROTO_GetShiftState [16:59:10]wFMCommunicate request_size=4 [16:59:10]MH_SAM_APDU [16:59:10]CAPDU: 80 13 01 00 [16:59:10]Write to MH i2c: E2 08 00 7A BA 80 13 01 00 00 00 00 00 B1 [16:59:10]Write i2c OK [16:59:10]MH_I2C_Read... [16:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:10]Read from MH i2c: E2 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 0E 00 [16:59:10]MH_I2C_Read... [16:59:10]Read from MH i2c: E2 0E 00 7A BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 74 [16:59:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [16:59:10]wFMCommunicate OK [16:59:10]SAM_PROTO_GetShiftState done [16:59:10]FM_GetShiftState done [16:59:10]req_shift_opened done [16:59:10]requested_item shift.open_date is exist - process it [16:59:10]req_shift_open_date [16:59:10]req_shift_open_date done [16:59:10]produce_requested_data done [16:59:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191526,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [16:59:10]process_action_free close_receipt [16:59:10]json_value_free [16:59:10]json_value_free done [16:59:10]process_json_proto returns [16:59:10]Send response to host [16:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191526,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [16:59:10]free response buf [16:59:10]execute_script done [16:59:10]execute_script returns [16:59:10]free content buf [16:59:10]Sock 8.Close socket [16:59:10]Sock 8.Thread stoped [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:35]accept exits with 9 [17:01:35]New connection [17:01:35]New thread 3066817892 created [17:01:35]Thread 3066961252 joined [17:01:35]Waiting for new connection... [17:01:35] Sock 9.Parse request [17:01:35]Sock 9.Check first char [17:01:35]Sock 9.First char is OK [17:01:35]request: POST /json_proto HTTP/1.0 [17:01:35]Method: POST [17:01:35]URL: /json_proto [17:01:35]Method is POST - this is cgi request [17:01:35]url: /json_proto [17:01:35]query_string will be loaded in cgi processing [17:01:35]execute_cgi json_proto POST (null) [17:01:35]execute_cgi path=json_proto method=POST [17:01:35]POST find Content-Length [17:01:35]Host: 172.17.63.131:8080 [17:01:35]Content-Length: 676 [17:01:35]Content-Type: application/json [17:01:35] [17:01:35]POST finish read [17:01:35]Found Content-Length = 676 [17:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:35]execute_script... [17:01:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:35]POST & json_proto [17:01:35]process_json_proto [17:01:35]json parsed OK: [17:01:35]protocol is kg_v1.0 [17:01:35]action value=close_receipt [17:01:35]process_action close_receipt [17:01:35]cmd_close_receipt [17:01:35]MH_GetDate [17:01:35]Write to MH i2c: F0 00 00 7B BA 24 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: F0 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: F0 09 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: F0 09 00 7B BA 00 F9 CE 1B 67 22 05 6E 64 6F [17:01:35]GetLastDocTimeStamp 1729875556 [17:01:35]current date 1729875705 [17:01:35]FM_GetShiftState [17:01:35]SAM_PROTO_GetShiftState [17:01:35]wFMCommunicate request_size=4 [17:01:35]MH_SAM_APDU [17:01:35]CAPDU: 80 13 01 00 [17:01:35]Write to MH i2c: E2 08 00 7C BA 80 13 01 00 00 00 00 00 B3 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:35]Read from MH i2c: E2 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 0E 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 0E 00 7C BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 76 [17:01:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:01:35]wFMCommunicate OK [17:01:35]SAM_PROTO_GetShiftState done [17:01:35]FM_GetShiftState done [17:01:35]opened in 1729816399 [17:01:35]opened+sec_in_day 1729902799 [17:01:35]quantity*price = 50041 [17:01:35]sum+1 = 50042 [17:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 266 25.10.2024 17:01 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191527 ФПД: 18803133372161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191527&fm=18803133372161&tin=02508201610067®Number=0000000000091776&sum=50000 [17:01:36]StoreToDocumentArchive [17:01:36]shift 540 fd 191527 [17:01:36]save to /storage/0540/doc_00191527 [17:01:36]save last doc name /storage/0540/doc_00191527 to /storage/kkm_last_doc_name [17:01:36]save OK [17:01:36]Clear old archive folders... [17:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:36]tlvbuf is 01789B70 [17:01:36]SAM_PROTO_ClearQueue [17:01:36]wFMCommunicate request_size=4 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 09 00 00 [17:01:36]Write to MH i2c: E2 08 00 89 BA 80 09 00 00 00 00 00 00 B5 [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:36]Read from MH i2c: E2 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 03 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 03 00 89 BA 00 90 00 B7 [17:01:36]RAPDU: 90 00 [17:01:36]wFMCommunicate OK [17:01:36]SAM_PROTO_ClearQueue done [17:01:36]KKMCreateOFDPacket [17:01:36]OFDProtocolAddRootSTLVToBuf [17:01:36]FM_MakeSignedData [17:01:36]FM_MakeSignedData [17:01:36]SAM_PROTO_SignData [17:01:36]wFMCommunicate request_size=4 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 0D 01 02 [17:01:36]Write to MH i2c: E2 08 00 8A BA 80 0D 01 02 00 00 00 00 BD [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:36]Read from MH i2c: E2 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 03 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 03 00 8A BA 00 90 00 B8 [17:01:36]RAPDU: 90 00 [17:01:36]wFMCommunicate OK [17:01:36]wFMCommunicate request_size=255 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F9 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EC 02 00 35 04 06 00 11 [17:01:36]Write to MH i2c: E2 02 01 8B BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F9 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EC 02 00 35 04 06 00 11 00 00 E9 [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:37]Read from MH i2c: E2 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 03 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 03 00 8B BA 00 90 00 B9 [17:01:37]RAPDU: 90 00 [17:01:37]wFMCommunicate OK [17:01:37]wFMCommunicate request_size=10 [17:01:37]MH_SAM_APDU [17:01:37]CAPDU: 80 0D 02 02 05 19 F2 15 D7 01 [17:01:37]Write to MH i2c: E2 0D 00 8C BA 80 0D 02 02 05 00 19 F2 15 D7 01 00 00 C2 [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:37]Read from MH i2c: E2 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 03 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 03 00 8C BA 00 90 00 BA [17:01:37]RAPDU: 90 00 [17:01:37]wFMCommunicate OK [17:01:37]wFMCommunicate request_size=4 [17:01:37]MH_SAM_APDU [17:01:37]CAPDU: 80 0D 03 02 [17:01:37]Write to MH i2c: E2 08 00 8D BA 80 0D 03 02 00 00 00 00 C2 [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:37]Read from MH i2c: E2 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 0B 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 0B 00 8D BA 00 3E 68 8A B2 B5 90 F8 F2 90 00 D4 [17:01:37]RAPDU: 3E 68 8A B2 B5 90 F8 F2 90 00 [17:01:37]wFMCommunicate OK [17:01:37]SAM_PROTO_SignData done [17:01:37]FM_MakeSignedData done [17:01:37]CreateOFDProtocolMessage [17:01:37]wFMCommunicate request_size=4 [17:01:37]MH_SAM_APDU [17:01:37]CAPDU: 80 11 00 00 [17:01:37]Write to MH i2c: E2 08 00 8E BA 80 11 00 00 00 00 00 00 C2 [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:37]Read from MH i2c: E2 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 17 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: E2 17 00 8E BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [17:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:37]wFMCommunicate OK [17:01:37]CreateOFDProtocolMessage done [17:01:37]OFDSenderStorePacket 191527 [17:01:37]StoreOFDPacket docnum=191527 [17:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 60 07 01 45 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F9 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EC 02 00 35 04 06 00 11 19 F2 15 D7 01 3E 68 8A B2 B5 90 F8 F2 [17:01:37]CheckFolder [17:01:37]dirname=/storage/ofd_packets [17:01:37]CheckFolder done [17:01:37]ProducePacketName [17:01:37]name=ofd_packets/00191527 [17:01:37]NVStorageSaveData ofd_packets/00191527 [17:01:37]File name is /storage/ofd_packets/00191527 [17:01:37]Write 301 bytes [17:01:37]NVStorageSaveData done [17:01:37]OFDSenderStorePacket done [17:01:37]KKMCreateOFDPacket done [17:01:37]NVStorageSaveData kkm_last_timestamp [17:01:37]File name is /storage/kkm_last_timestamp [17:01:37]Write 4 bytes [17:01:37]NVStorageSaveData done [17:01:37]ExternCall_PrintAddStr [17:01:37]wPrintStart [17:01:37]Write to MH i2c: 01 00 00 8F BA 49 [17:01:37]Write i2c OK [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: 01 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: 01 07 00 [17:01:37]MH_I2C_Read... [17:01:37]Read from MH i2c: 01 07 00 8F BA 00 00 00 00 00 FF 0F 5E [17:01:37]RasterBufferAndPrint [17:01:37]line Счет N : (1)30825 [17:01:37]line ИНН: 02508201610067 [17:01:37]line Контрольно-Кассовый Чек [17:01:37]line ПРОДАЖА [17:01:37]line ТРК (МРК, ГНК) : 12 [17:01:37]line Товар: 2710124130 [17:01:37]line Аи-92-К-5 [17:01:37]line 7.480 * 66.90 [17:01:37]line = 500.41 [17:01:37]line НДС 12% НСП 1% [17:01:37]line > о реализуемом товаре [17:01:37]line ОКРУГЛЕНИЕ: -0.41 [17:01:37]line ИТОГО: 500.00 [17:01:37]line Внесено: 500.00 [17:01:37]line СДАЧА: 0.00 [17:01:37]line НСП 1% : 4.43 [17:01:37]line НДС 12% : 53.14 [17:01:37]line Наличными: 500.00 [17:01:37]line Безнал.: 0.00 [17:01:37]line Место: АЗС № 170 "Партнер Нефть" [17:01:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:01:37]line СНО: Общий режим [17:01:37]line Чек 266 25.10.2024 17:01 [17:01:37]line Смена: 540 ФФД: 1.0 [17:01:37]line ЗНМ: 0300000110 [17:01:37]line РНМ: 0000000000091776 [17:01:37]line Версия ККМ: 001 [17:01:37]line ФМ: 0000000000871754 [17:01:37]line ФД: 191527 [17:01:37]line ФПД: 18803133372161 [17:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191527&fm=18803133372161&tin=02508201610067®Number=0000000000091776&sum=50000 [17:01:37]OFD Sender: Processing packet 191527 [packets to send 75, broken 74] [17:01:37]ProducePacketName [17:01:37]name=ofd_packets/00191527 [17:01:37]OFD Sender: To server: pG, [17:01:37]CommunicateWithHost lk.salyk.kg:30040 [17:01:37]ConnectInit lk.salyk.kg [17:01:37]written 0, free lines is 4095 [17:01:37]Connected sock=10 [17:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 60 07 01 45 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F9 CE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EC 02 00 35 04 06 00 11 19 F2 15 D7 01 3E 68 8A B2 B5 90 F8 F2 [17:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 52 47 00 4F 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EC 02 00 F4 03 04 00 C7 73 1B 67 B6 04 01 00 00 B7 12 6E 15 FB 46 58 20 [17:01:37]CommunicateWithHost err = 0 [17:01:37]CheckOFDResponse [17:01:37]1017 (14) - 77093643461234 [17:01:37]1041 (16) - 0000000000871754 [17:01:37]1040 (4) - 191527 [17:01:37]1012 (4) - 25.10.2024 10:32 [17:01:37]1206 (1) - 0 [17:01:37]OFD Sender: Remove packet 191527 [17:01:37]ProducePacketName [17:01:37]name=ofd_packets/00191527 [17:01:37]NVStorageDeleteData [17:01:38]Write to MH i2c: 01 00 00 BA BA 74 [17:01:38]Write i2c OK [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: 01 [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: 01 07 00 [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: 01 07 00 BA BA 00 00 00 00 00 C7 0C 4E [17:01:38]RasterBufferAndPrint [17:01:38]line [17:01:38]line [17:01:38]line [17:01:38]line [17:01:38]line [17:01:38]written 0, free lines is 3277 [17:01:38]MH_Cut [17:01:38]Write to MH i2c: D1 01 00 C1 BA 01 4D [17:01:38]Write i2c OK [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: D1 [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: D1 01 00 [17:01:38]MH_I2C_Read... [17:01:38]Read from MH i2c: D1 01 00 C1 BA 00 4C [17:01:38]Write to MH i2c: 01 00 00 C2 BA 7C [17:01:38]Write i2c OK [17:01:38]MH_I2C_Read... [17:01:38]OFD Sender: No OFD packet to send [17:01:38]*** Cut start [17:01:38]*** Partial cut [17:01:38]*** CUTSNS_PIN = 1 [17:01:38]*** CUTSNS_PIN = 0 [17:01:39]*** Brake cut motor [17:01:39]Read from MH i2c: 01 [17:01:39]MH_I2C_Read... [17:01:39]*** Stop cut motor [17:01:39]*** Cut end [17:01:39]Read from MH i2c: 01 07 00 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: 01 07 00 C2 BA 00 00 00 00 00 FF 0F 91 [17:01:39]process_action close_receipt done [17:01:39]requested_data is exist [17:01:39]produce_requested_data [17:01:39]requested_item fm.sn is exist - process it [17:01:39]wFMCommunicate request_size=4 [17:01:39]MH_SAM_APDU [17:01:39]CAPDU: 80 11 00 00 [17:01:39]Write to MH i2c: E2 08 00 C3 BA 80 11 00 00 00 00 00 00 F7 [17:01:39]Write i2c OK [17:01:39]MH_I2C_Read... [17:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:39]Read from MH i2c: E2 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 17 00 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 17 00 C3 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [17:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:39]wFMCommunicate OK [17:01:39]requested_item fd.num is exist - process it [17:01:39]SAM_PROTO_GetFieldsCounters [17:01:39]wFMCommunicate request_size=4 [17:01:39]MH_SAM_APDU [17:01:39]CAPDU: 80 13 00 00 [17:01:39]Write to MH i2c: E2 08 00 C4 BA 80 13 00 00 00 00 00 00 FA [17:01:39]Write i2c OK [17:01:39]MH_I2C_Read... [17:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:39]Read from MH i2c: E2 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 62 00 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 62 00 C4 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [17:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:39]wFMCommunicate OK [17:01:39]SAM_PROTO_GetFieldsCounters done [17:01:39]requested_item shift.num is exist - process it [17:01:39]requested_item shift.opened is exist - process it [17:01:39]req_shift_opened [17:01:39]FM_GetShiftState [17:01:39]SAM_PROTO_GetShiftState [17:01:39]wFMCommunicate request_size=4 [17:01:39]MH_SAM_APDU [17:01:39]CAPDU: 80 13 01 00 [17:01:39]Write to MH i2c: E2 08 00 C5 BA 80 13 01 00 00 00 00 00 FC [17:01:39]Write i2c OK [17:01:39]MH_I2C_Read... [17:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:39]Read from MH i2c: E2 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 0E 00 [17:01:39]MH_I2C_Read... [17:01:39]Read from MH i2c: E2 0E 00 C5 BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [17:01:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:01:39]wFMCommunicate OK [17:01:39]SAM_PROTO_GetShiftState done [17:01:39]FM_GetShiftState done [17:01:39]req_shift_opened done [17:01:39]requested_item shift.open_date is exist - process it [17:01:39]req_shift_open_date [17:01:39]req_shift_open_date done [17:01:39]produce_requested_data done [17:01:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191527,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:01:39]process_action_free close_receipt [17:01:39]json_value_free [17:01:39]json_value_free done [17:01:39]process_json_proto returns [17:01:39]Send response to host [17:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191527,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:01:39]free response buf [17:01:39]execute_script done [17:01:39]execute_script returns [17:01:39]free content buf [17:01:39]Sock 9.Close socket [17:01:39]Sock 9.Thread stoped [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:10]accept exits with 8 [17:02:10]New connection [17:02:10]New thread 3066961252 created [17:02:10]Thread 3066817892 joined [17:02:10]Waiting for new connection... [17:02:10] Sock 8.Parse request [17:02:10]Sock 8.Check first char [17:02:10]Sock 8.First char is OK [17:02:10]request: POST /json_proto HTTP/1.0 [17:02:10]Method: POST [17:02:10]URL: /json_proto [17:02:10]Method is POST - this is cgi request [17:02:10]url: /json_proto [17:02:10]query_string will be loaded in cgi processing [17:02:10]execute_cgi json_proto POST (null) [17:02:10]execute_cgi path=json_proto method=POST [17:02:10]POST find Content-Length [17:02:10]Host: 172.17.63.131:8080 [17:02:10]Content-Length: 676 [17:02:10]Content-Type: application/json [17:02:10] [17:02:10]POST finish read [17:02:10]Found Content-Length = 676 [17:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:10]execute_script... [17:02: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)30826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:10]POST & json_proto [17:02:10]process_json_proto [17:02:10]json parsed OK: [17:02:10]protocol is kg_v1.0 [17:02:10]action value=close_receipt [17:02:10]process_action close_receipt [17:02:10]cmd_close_receipt [17:02:10]MH_GetDate [17:02:10]Write to MH i2c: F0 00 00 C6 BA 6F [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: F0 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: F0 09 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: F0 09 00 C6 BA 00 1C CF 1B 67 22 05 6E 64 DE [17:02:10]GetLastDocTimeStamp 1729875705 [17:02:10]current date 1729875740 [17:02:10]FM_GetShiftState [17:02:10]SAM_PROTO_GetShiftState [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 01 00 [17:02:10]Write to MH i2c: E2 08 00 C7 BA 80 13 01 00 00 00 00 00 FE [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 C7 BA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C1 [17:02:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:02:10]wFMCommunicate OK [17:02:10]SAM_PROTO_GetShiftState done [17:02:10]FM_GetShiftState done [17:02:10]opened in 1729816399 [17:02:10]opened+sec_in_day 1729902799 [17:02:10]quantity*price = 60009 [17:02:10]sum+1 = 60010 [17:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 267 25.10.2024 17:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191528 ФПД: 90387507713477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191528&fm=90387507713477&tin=02508201610067®Number=0000000000091776&sum=60000 [17:02:11]StoreToDocumentArchive [17:02:11]shift 540 fd 191528 [17:02:11]save to /storage/0540/doc_00191528 [17:02:11]save last doc name /storage/0540/doc_00191528 to /storage/kkm_last_doc_name [17:02:11]save OK [17:02:11]Clear old archive folders... [17:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:11]tlvbuf is 015CCE80 [17:02:11]SAM_PROTO_ClearQueue [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 09 00 00 [17:02:11]Write to MH i2c: E2 08 00 D4 BA 80 09 00 00 00 00 00 00 00 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 03 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 03 00 D4 BA 00 90 00 02 [17:02:11]RAPDU: 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_ClearQueue done [17:02:11]KKMCreateOFDPacket [17:02:11]OFDProtocolAddRootSTLVToBuf [17:02:11]FM_MakeSignedData [17:02:11]FM_MakeSignedData [17:02:11]SAM_PROTO_SignData [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 0D 01 02 [17:02:11]Write to MH i2c: E2 08 00 D5 BA 80 0D 01 02 00 00 00 00 08 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 03 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 03 00 D5 BA 00 90 00 03 [17:02:11]RAPDU: 90 00 [17:02:11]wFMCommunicate OK [17:02:11]wFMCommunicate request_size=255 [17:02:11]MH_SAM_APDU [17: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1C CF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EC 02 00 35 04 06 00 52 [17:02:11]Write to MH i2c: E2 02 01 D6 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1C CF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EC 02 00 35 04 06 00 52 00 00 78 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 D6 BA 00 90 00 04 [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]wFMCommunicate request_size=10 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 02 02 05 34 FB 4A 15 C5 [17:02:12]Write to MH i2c: E2 0D 00 D7 BA 80 0D 02 02 05 00 34 FB 4A 15 C5 00 00 68 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 D7 BA 00 90 00 05 [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 03 02 [17:02:12]Write to MH i2c: E2 08 00 D8 BA 80 0D 03 02 00 00 00 00 0D [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 0B 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 0B 00 D8 BA 00 39 C5 15 69 2F 5D F1 A5 90 00 AC [17:02:12]RAPDU: 39 C5 15 69 2F 5D F1 A5 90 00 [17:02:12]wFMCommunicate OK [17:02:12]SAM_PROTO_SignData done [17:02:12]FM_MakeSignedData done [17:02:12]CreateOFDProtocolMessage [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 11 00 00 [17:02:12]Write to MH i2c: E2 08 00 D9 BA 80 11 00 00 00 00 00 00 0D [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 17 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 17 00 D9 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [17:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:02:12]wFMCommunicate OK [17:02:12]CreateOFDProtocolMessage done [17:02:12]OFDSenderStorePacket 191528 [17:02:12]StoreOFDPacket docnum=191528 [17:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 06 07 01 68 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1C CF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EC 02 00 35 04 06 00 52 34 FB 4A 15 C5 39 C5 15 69 2F 5D F1 A5 [17:02:12]CheckFolder [17:02:12]dirname=/storage/ofd_packets [17:02:12]CheckFolder done [17:02:12]ProducePacketName [17:02:12]name=ofd_packets/00191528 [17:02:12]NVStorageSaveData ofd_packets/00191528 [17:02:12]File name is /storage/ofd_packets/00191528 [17:02:12]Write 301 bytes [17:02:12]NVStorageSaveData done [17:02:12]OFDSenderStorePacket done [17:02:12]KKMCreateOFDPacket done [17:02:12]NVStorageSaveData kkm_last_timestamp [17:02:12]File name is /storage/kkm_last_timestamp [17:02:12]Write 4 bytes [17:02:12]NVStorageSaveData done [17:02:12]ExternCall_PrintAddStr [17:02:12]wPrintStart [17:02:12]Write to MH i2c: 01 00 00 DA BA 94 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: 01 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: 01 07 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: 01 07 00 DA BA 00 00 00 00 00 FF 0F A9 [17:02:12]RasterBufferAndPrint [17:02:12]line Счет N : (1)30826 [17:02:12]line ИНН: 02508201610067 [17:02:12]line Контрольно-Кассовый Чек [17:02:12]line ПРОДАЖА [17:02:12]line ТРК (МРК, ГНК) : 21 [17:02:12]line Товар: 2710124130 [17:02:12]line Аи-92-К-5 [17:02:12]line 8.970 * 66.90 [17:02:12]line = 600.09 [17:02:12]line НДС 12% НСП 1% [17:02:12]line > о реализуемом товаре [17:02:12]line ОКРУГЛЕНИЕ: -0.09 [17:02:12]line ИТОГО: 600.00 [17:02:12]line Внесено: 600.00 [17:02:12]line СДАЧА: 0.00 [17:02:12]line НСП 1% : 5.31 [17:02:12]line НДС 12% : 63.73 [17:02:12]line Наличными: 600.00 [17:02:12]line Безнал.: 0.00 [17:02:12]line Место: АЗС № 170 "Партнер Нефть" [17:02:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:02:12]line СНО: Общий режим [17:02:12]line Чек 267 25.10.2024 17:02 [17:02:12]line Смена: 540 ФФД: 1.0 [17:02:12]line ЗНМ: 0300000110 [17:02:12]line РНМ: 0000000000091776 [17:02:12]line Версия ККМ: 001 [17:02:12]line ФМ: 0000000000871754 [17:02:12]line ФД: 191528 [17:02:12]line ФПД: 90387507713477 [17:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191528&fm=90387507713477&tin=02508201610067®Number=0000000000091776&sum=60000 [17:02:12]OFD Sender: Processing packet 191528 [packets to send 75, broken 74] [17:02:12]ProducePacketName [17:02:12]name=ofd_packets/00191528 [17:02:12]OFD Sender: To server: pG, [17:02:12]CommunicateWithHost lk.salyk.kg:30040 [17:02:12]ConnectInit lk.salyk.kg [17:02:12]written 0, free lines is 4095 [17:02:12]Connected sock=10 [17:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 06 07 01 68 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1C CF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EC 02 00 35 04 06 00 52 34 FB 4A 15 C5 39 C5 15 69 2F 5D F1 A5 [17:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3D 55 47 00 62 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EC 02 00 F4 03 04 00 EA 73 1B 67 B6 04 01 00 00 BE 64 39 97 FA 91 C7 9F [17:02:12]CommunicateWithHost err = 0 [17:02:12]CheckOFDResponse [17:02:12]1017 (14) - 77093643461234 [17:02:12]1041 (16) - 0000000000871754 [17:02:12]1040 (4) - 191528 [17:02:12]1012 (4) - 25.10.2024 10:33 [17:02:12]1206 (1) - 0 [17:02:12]OFD Sender: Remove packet 191528 [17:02:12]ProducePacketName [17:02:12]name=ofd_packets/00191528 [17:02:12]NVStorageDeleteData [17:02:13]Write to MH i2c: 01 00 00 05 BB C0 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 05 BB 00 00 00 00 00 C2 0C 95 [17:02:13]RasterBufferAndPrint [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]written 0, free lines is 3272 [17:02:13]MH_Cut [17:02:13]Write to MH i2c: D1 01 00 0C BB 01 99 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 01 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 01 00 0C BB 00 98 [17:02:13]Write to MH i2c: 01 00 00 0D BB C8 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]OFD Sender: No OFD packet to send [17:02:13]*** Cut start [17:02:13]*** Partial cut [17:02:13]*** CUTSNS_PIN = 1 [17:02:13]*** CUTSNS_PIN = 0 [17:02:14]*** Brake cut motor [17:02:14]Read from MH i2c: 01 [17:02:14]MH_I2C_Read... [17:02:14]*** Stop cut motor [17:02:14]*** Cut end [17:02:14]Read from MH i2c: 01 07 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: 01 07 00 0D BB 00 00 00 00 00 FF 0F DD [17:02:14]process_action close_receipt done [17:02:14]requested_data is exist [17:02:14]produce_requested_data [17:02:14]requested_item fm.sn is exist - process it [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 11 00 00 [17:02:14]Write to MH i2c: E2 08 00 0E BB 80 11 00 00 00 00 00 00 43 [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 17 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 17 00 0E BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [17:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:02:14]wFMCommunicate OK [17:02:14]requested_item fd.num is exist - process it [17:02:14]SAM_PROTO_GetFieldsCounters [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 13 00 00 [17:02:14]Write to MH i2c: E2 08 00 0F BB 80 13 00 00 00 00 00 00 46 [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 62 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 62 00 0F BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [17:02:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:14]wFMCommunicate OK [17:02:14]SAM_PROTO_GetFieldsCounters done [17:02:14]requested_item shift.num is exist - process it [17:02:14]requested_item shift.opened is exist - process it [17:02:14]req_shift_opened [17:02:14]FM_GetShiftState [17:02:14]SAM_PROTO_GetShiftState [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 13 01 00 [17:02:14]Write to MH i2c: E2 08 00 10 BB 80 13 01 00 00 00 00 00 48 [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 0E 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 0E 00 10 BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0B [17:02:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:02:14]wFMCommunicate OK [17:02:14]SAM_PROTO_GetShiftState done [17:02:14]FM_GetShiftState done [17:02:14]req_shift_opened done [17:02:14]requested_item shift.open_date is exist - process it [17:02:14]req_shift_open_date [17:02:14]req_shift_open_date done [17:02:14]produce_requested_data done [17:02:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191528,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:02:14]process_action_free close_receipt [17:02:14]json_value_free [17:02:14]json_value_free done [17:02:14]process_json_proto returns [17:02:14]Send response to host [17:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191528,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:02:14]free response buf [17:02:14]execute_script done [17:02:14]execute_script returns [17:02:14]free content buf [17:02:14]Sock 8.Close socket [17:02:14]Sock 8.Thread stoped [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]accept exits with 9 [17:07:03]New connection [17:07:03]New thread 3066817892 created [17:07:03]Thread 3066961252 joined [17:07:03]Waiting for new connection... [17:07:03] Sock 9.Parse request [17:07:03]Sock 9.Check first char [17:07:03]Sock 9.First char is OK [17:07:03]request: POST /json_proto HTTP/1.0 [17:07:03]Method: POST [17:07:03]URL: /json_proto [17:07:03]Method is POST - this is cgi request [17:07:03]url: /json_proto [17:07:03]query_string will be loaded in cgi processing [17:07:03]execute_cgi json_proto POST (null) [17:07:03]execute_cgi path=json_proto method=POST [17:07:03]POST find Content-Length [17:07:03]Host: 172.17.63.131:8080 [17:07:03]Content-Length: 676 [17:07:03]Content-Type: application/json [17:07:03] [17:07:03]POST finish read [17:07:03]Found Content-Length = 676 [17:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:03]execute_script... [17:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:03]POST & json_proto [17:07:03]process_json_proto [17:07:03]json parsed OK: [17:07:03]protocol is kg_v1.0 [17:07:03]action value=close_receipt [17:07:03]process_action close_receipt [17:07:03]cmd_close_receipt [17:07:03]MH_GetDate [17:07:03]Write to MH i2c: F0 00 00 11 BB BB [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 11 BB 00 41 D0 1B 67 22 05 6E 64 50 [17:07:03]GetLastDocTimeStamp 1729875740 [17:07:03]current date 1729876033 [17:07:03]FM_GetShiftState [17:07:03]SAM_PROTO_GetShiftState [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 13 01 00 [17:07:03]Write to MH i2c: E2 08 00 12 BB 80 13 01 00 00 00 00 00 4A [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]OFD Sender: No OFD packet to send [17:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 12 BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [17:07:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:07:03]wFMCommunicate OK [17:07:03]SAM_PROTO_GetShiftState done [17:07:03]FM_GetShiftState done [17:07:03]opened in 1729816399 [17:07:03]opened+sec_in_day 1729902799 [17:07:03]quantity*price = 40006 [17:07:03]sum+1 = 40007 [17:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 268 25.10.2024 17:07 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191529 ФПД: 230639941160577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170713&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191529&fm=230639941160577&tin=02508201610067®Number=0000000000091776&sum=40000 [17:07:04]StoreToDocumentArchive [17:07:04]shift 540 fd 191529 [17:07:04]save to /storage/0540/doc_00191529 [17:07:04]save last doc name /storage/0540/doc_00191529 to /storage/kkm_last_doc_name [17:07:04]save OK [17:07:04]Clear old archive folders... [17:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:04]tlvbuf is 01708DC0 [17:07:04]SAM_PROTO_ClearQueue [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 09 00 00 [17:07:04]Write to MH i2c: E2 08 00 1F BB 80 09 00 00 00 00 00 00 4C [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:04]Read from MH i2c: E2 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 1F BB 00 90 00 4E [17:07:04]RAPDU: 90 00 [17:07:04]wFMCommunicate OK [17:07:04]SAM_PROTO_ClearQueue done [17:07:04]KKMCreateOFDPacket [17:07:04]OFDProtocolAddRootSTLVToBuf [17:07:04]FM_MakeSignedData [17:07:04]FM_MakeSignedData [17:07:04]SAM_PROTO_SignData [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 0D 01 02 [17:07:04]Write to MH i2c: E2 08 00 20 BB 80 0D 01 02 00 00 00 00 54 [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 20 BB 00 90 00 4F [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=255 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 41 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EC 02 00 35 04 06 00 D1 [17:07:05]Write to MH i2c: E2 02 01 21 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 41 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EC 02 00 35 04 06 00 D1 00 00 5D [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 21 BB 00 90 00 50 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=10 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 02 02 05 C4 0B C3 8E 81 [17:07:05]Write to MH i2c: E2 0D 00 22 BB 80 0D 02 02 05 00 C4 0B C3 8E 81 00 00 02 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 22 BB 00 90 00 51 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 03 02 [17:07:05]Write to MH i2c: E2 08 00 23 BB 80 0D 03 02 00 00 00 00 59 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 23 BB 00 00 2E 96 40 1E 54 2B 92 90 00 8D [17:07:05]RAPDU: 00 2E 96 40 1E 54 2B 92 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_SignData done [17:07:05]FM_MakeSignedData done [17:07:05]CreateOFDProtocolMessage [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 11 00 00 [17:07:05]Write to MH i2c: E2 08 00 24 BB 80 11 00 00 00 00 00 00 59 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 24 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [17:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:07:05]wFMCommunicate OK [17:07:05]CreateOFDProtocolMessage done [17:07:05]OFDSenderStorePacket 191529 [17:07:05]StoreOFDPacket docnum=191529 [17:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 6C 07 01 C8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 41 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EC 02 00 35 04 06 00 D1 C4 0B C3 8E 81 00 2E 96 40 1E 54 2B 92 [17:07:05]CheckFolder [17:07:05]dirname=/storage/ofd_packets [17:07:05]CheckFolder done [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00191529 [17:07:05]NVStorageSaveData ofd_packets/00191529 [17:07:05]File name is /storage/ofd_packets/00191529 [17:07:05]Write 301 bytes [17:07:05]NVStorageSaveData done [17:07:05]OFDSenderStorePacket done [17:07:05]KKMCreateOFDPacket done [17:07:05]NVStorageSaveData kkm_last_timestamp [17:07:05]File name is /storage/kkm_last_timestamp [17:07:05]Write 4 bytes [17:07:05]NVStorageSaveData done [17:07:05]ExternCall_PrintAddStr [17:07:05]wPrintStart [17:07:05]Write to MH i2c: 01 00 00 25 BB E0 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 25 BB 00 00 00 00 00 FF 0F F5 [17:07:05]RasterBufferAndPrint [17:07:05]line Счет N : (1)30827 [17:07:05]line ИНН: 02508201610067 [17:07:05]line Контрольно-Кассовый Чек [17:07:05]line ПРОДАЖА [17:07:05]line ТРК (МРК, ГНК) : 21 [17:07:05]line Товар: 2710124130 [17:07:05]line Аи-92-К-5 [17:07:05]line 5.980 * 66.90 [17:07:05]line = 400.06 [17:07:05]line НДС 12% НСП 1% [17:07:05]line > о реализуемом товаре [17:07:05]line ОКРУГЛЕНИЕ: -0.06 [17:07:05]line ИТОГО: 400.00 [17:07:05]line Внесено: 400.00 [17:07:05]line СДАЧА: 0.00 [17:07:05]line НСП 1% : 3.54 [17:07:05]line НДС 12% : 42.48 [17:07:05]line Наличными: 400.00 [17:07:05]line Безнал.: 0.00 [17:07:05]line Место: АЗС № 170 "Партнер Нефть" [17:07:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:07:05]line СНО: Общий режим [17:07:05]line Чек 268 25.10.2024 17:07 [17:07:05]line Смена: 540 ФФД: 1.0 [17:07:05]line ЗНМ: 0300000110 [17:07:05]line РНМ: 0000000000091776 [17:07:05]line Версия ККМ: 001 [17:07:05]line ФМ: 0000000000871754 [17:07:05]line ФД: 191529 [17:07:05]line ФПД: 230639941160577 [17:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170713&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191529&fm=230639941160577&tin=02508201610067®Number=0000000000091776&sum=40000 [17:07:05]OFD Sender: Processing packet 191529 [packets to send 75, broken 74] [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00191529 [17:07:05]OFD Sender: To server: pG, [17:07:05]CommunicateWithHost lk.salyk.kg:30040 [17:07:05]ConnectInit lk.salyk.kg [17:07:05]written 0, free lines is 4095 [17:07:05]Connected sock=10 [17:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 6C 07 01 C8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 41 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EC 02 00 35 04 06 00 D1 C4 0B C3 8E 81 00 2E 96 40 1E 54 2B 92 [17:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C 70 47 00 95 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EC 02 00 F4 03 04 00 0F 75 1B 67 B6 04 01 00 00 0C B9 81 C4 49 CA 33 E2 [17:07:06]CommunicateWithHost err = 0 [17:07:06]CheckOFDResponse [17:07:06]1017 (14) - 77093643461234 [17:07:06]1041 (16) - 0000000000871754 [17:07:06]1040 (4) - 191529 [17:07:06]1012 (4) - 25.10.2024 10:38 [17:07:06]1206 (1) - 0 [17:07:06]OFD Sender: Remove packet 191529 [17:07:06]ProducePacketName [17:07:06]name=ofd_packets/00191529 [17:07:06]NVStorageDeleteData [17:07:06]Write to MH i2c: 01 00 00 50 BB 0B [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 50 BB 00 00 00 00 00 C8 0C E6 [17:07:06]RasterBufferAndPrint [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]written 0, free lines is 3278 [17:07:06]MH_Cut [17:07:06]Write to MH i2c: D1 01 00 57 BB 01 E4 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 01 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 01 00 57 BB 00 E3 [17:07:06]Write to MH i2c: 01 00 00 58 BB 13 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]OFD Sender: No OFD packet to send [17:07:07]*** Cut start [17:07:07]*** Partial cut [17:07:07]*** CUTSNS_PIN = 1 [17:07:07]*** CUTSNS_PIN = 0 [17:07:07]*** Brake cut motor [17:07:07]Read from MH i2c: 01 [17:07:07]MH_I2C_Read... [17:07:07]*** Stop cut motor [17:07:07]*** Cut end [17:07:07]Read from MH i2c: 01 07 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 58 BB 00 00 00 00 00 FF 0F 28 [17:07:07]process_action close_receipt done [17:07:07]requested_data is exist [17:07:07]produce_requested_data [17:07:07]requested_item fm.sn is exist - process it [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 11 00 00 [17:07:07]Write to MH i2c: E2 08 00 59 BB 80 11 00 00 00 00 00 00 8E [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 59 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [17:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:07:07]wFMCommunicate OK [17:07:07]requested_item fd.num is exist - process it [17:07:07]SAM_PROTO_GetFieldsCounters [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 13 00 00 [17:07:07]Write to MH i2c: E2 08 00 5A BB 80 13 00 00 00 00 00 00 91 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 62 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 62 00 5A BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:07]wFMCommunicate OK [17:07:07]SAM_PROTO_GetFieldsCounters done [17:07:07]requested_item shift.num is exist - process it [17:07:07]requested_item shift.opened is exist - process it [17:07:07]req_shift_opened [17:07:07]FM_GetShiftState [17:07:07]SAM_PROTO_GetShiftState [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 13 01 00 [17:07:07]Write to MH i2c: E2 08 00 5B BB 80 13 01 00 00 00 00 00 93 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0E 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0E 00 5B BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 56 [17:07:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:07:07]wFMCommunicate OK [17:07:07]SAM_PROTO_GetShiftState done [17:07:07]FM_GetShiftState done [17:07:07]req_shift_opened done [17:07:07]requested_item shift.open_date is exist - process it [17:07:07]req_shift_open_date [17:07:07]req_shift_open_date done [17:07:07]produce_requested_data done [17:07:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191529,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:07:07]process_action_free close_receipt [17:07:07]json_value_free [17:07:07]json_value_free done [17:07:07]process_json_proto returns [17:07:07]Send response to host [17:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191529,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:07:07]free response buf [17:07:07]execute_script done [17:07:07]execute_script returns [17:07:07]free content buf [17:07:07]Sock 9.Close socket [17:07:07]Sock 9.Thread stoped [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:45]accept exits with 8 [17:09:45]New connection [17:09:45]New thread 3066961252 created [17:09:45]Thread 3066817892 joined [17:09:45]Waiting for new connection... [17:09:45] Sock 8.Parse request [17:09:45]Sock 8.Check first char [17:09:45]Sock 8.First char is OK [17:09:45]request: POST /json_proto HTTP/1.0 [17:09:45]Method: POST [17:09:45]URL: /json_proto [17:09:45]Method is POST - this is cgi request [17:09:45]url: /json_proto [17:09:45]query_string will be loaded in cgi processing [17:09:45]execute_cgi json_proto POST (null) [17:09:45]execute_cgi path=json_proto method=POST [17:09:45]POST find Content-Length [17:09:45]Host: 172.17.63.131:8080 [17:09:45]Content-Length: 983 [17:09:45]Content-Type: application/json [17:09:45] [17:09:45]POST finish read [17:09:45]Found Content-Length = 983 [17:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:45]execute_script... [17:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:45]POST & json_proto [17:09:45]process_json_proto [17:09:45]json parsed OK: [17:09:45]protocol is kg_v1.0 [17:09:45]action value=close_receipt [17:09:45]process_action close_receipt [17:09:45]cmd_close_receipt [17:09:45]MH_GetDate [17:09:45]Write to MH i2c: F0 00 00 5C BB 06 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: F0 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: F0 09 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: F0 09 00 5C BB 00 E3 D0 1B 67 22 05 6E 64 3D [17:09:45]GetLastDocTimeStamp 1729876033 [17:09:45]current date 1729876195 [17:09:45]FM_GetShiftState [17:09:45]SAM_PROTO_GetShiftState [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 13 01 00 [17:09:45]Write to MH i2c: E2 08 00 5D BB 80 13 01 00 00 00 00 00 95 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0E 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0E 00 5D BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 58 [17:09:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:09:45]wFMCommunicate OK [17:09:45]SAM_PROTO_GetShiftState done [17:09:45]FM_GetShiftState done [17:09:45]opened in 1729816399 [17:09:45]opened+sec_in_day 1729902799 [17:09:45]quantity*price = 200006 [17:09:45]sum+1 = 200008 [17:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 269 25.10.2024 17:09 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 191530 ФПД: 177749581137401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191530&fm=177749581137401&tin=02508201610067®Number=0000000000091776&sum=200000 [17:09:46]StoreToDocumentArchive [17:09:46]shift 540 fd 191530 [17:09:46]save to /storage/0540/doc_00191530 [17:09:46]save last doc name /storage/0540/doc_00191530 to /storage/kkm_last_doc_name [17:09:46]save OK [17:09:46]Clear old archive folders... [17:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:46]tlvbuf is 016EB990 [17:09:46]SAM_PROTO_ClearQueue [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 09 00 00 [17:09:46]Write to MH i2c: E2 08 00 6A BB 80 09 00 00 00 00 00 00 97 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 6A BB 00 90 00 99 [17:09:46]RAPDU: 90 00 [17:09:46]wFMCommunicate OK [17:09:46]SAM_PROTO_ClearQueue done [17:09:46]KKMCreateOFDPacket [17:09:46]OFDProtocolAddRootSTLVToBuf [17:09:46]FM_MakeSignedData [17:09:46]FM_MakeSignedData [17:09:46]SAM_PROTO_SignData [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 0D 01 02 [17:09:46]Write to MH i2c: E2 08 00 6B BB 80 0D 01 02 00 00 00 00 9F [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 6B BB 00 90 00 9A [17:09:46]RAPDU: 90 00 [17:09:46]wFMCommunicate OK [17:09:46]wFMCommunicate request_size=255 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E3 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EC 02 00 35 04 06 00 A1 [17:09:46]Write to MH i2c: E2 02 01 6C BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E3 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EC 02 00 35 04 06 00 A1 00 00 D4 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 6C BB 00 90 00 9B [17:09:46]RAPDU: 90 00 [17:09:46]wFMCommunicate OK [17:09:46]wFMCommunicate request_size=10 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 0D 02 02 05 A9 8C A4 85 F9 [17:09:46]Write to MH i2c: E2 0D 00 6D BB 80 0D 02 02 05 00 A9 8C A4 85 F9 00 00 03 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 03 00 6D BB 00 90 00 9C [17:09:46]RAPDU: 90 00 [17:09:46]wFMCommunicate OK [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 0D 03 02 [17:09:46]Write to MH i2c: E2 08 00 6E BB 80 0D 03 02 00 00 00 00 A4 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0B 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0B 00 6E BB 00 4A 73 C5 9A AB 53 4D 0E 90 00 1A [17:09:46]RAPDU: 4A 73 C5 9A AB 53 4D 0E 90 00 [17:09:46]wFMCommunicate OK [17:09:46]SAM_PROTO_SignData done [17:09:46]FM_MakeSignedData done [17:09:46]CreateOFDProtocolMessage [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 11 00 00 [17:09:46]Write to MH i2c: E2 08 00 6F BB 80 11 00 00 00 00 00 00 A4 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 17 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 17 00 6F BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [17:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:46]wFMCommunicate OK [17:09:46]CreateOFDProtocolMessage done [17:09:46]OFDSenderStorePacket 191530 [17:09:46]StoreOFDPacket docnum=191530 [17:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 45 07 01 6B FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E3 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EC 02 00 35 04 06 00 A1 A9 8C A4 85 F9 4A 73 C5 9A AB 53 4D 0E [17:09:46]CheckFolder [17:09:46]dirname=/storage/ofd_packets [17:09:46]CheckFolder done [17:09:46]ProducePacketName [17:09:46]name=ofd_packets/00191530 [17:09:46]NVStorageSaveData ofd_packets/00191530 [17:09:46]File name is /storage/ofd_packets/00191530 [17:09:46]Write 301 bytes [17:09:46]NVStorageSaveData done [17:09:46]OFDSenderStorePacket done [17:09:46]KKMCreateOFDPacket done [17:09:46]NVStorageSaveData kkm_last_timestamp [17:09:46]File name is /storage/kkm_last_timestamp [17:09:46]Write 4 bytes [17:09:46]NVStorageSaveData done [17:09:46]ExternCall_PrintAddStr [17:09:46]wPrintStart [17:09:46]Write to MH i2c: 01 00 00 70 BB 2B [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 07 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 07 00 70 BB 00 00 00 00 00 FF 0F 40 [17:09:46]RasterBufferAndPrint [17:09:46]line Счет N : (1)30828 [17:09:46]line ИНН: 02508201610067 [17:09:46]line Контрольно-Кассовый Чек [17:09:46]line ПРОДАЖА [17:09:46]line ТРК (МРК, ГНК) : 12 [17:09:46]line Товар: 2710124130 [17:09:46]line Аи-92-К-5 [17:09:46]line 30.350 * 65.90 [17:09:46]line = 2000.07 [17:09:46]line НДС 12% НСП 1% [17:09:46]line > о реализуемом товаре [17:09:46]line ОКРУГЛЕНИЕ: -0.07 [17:09:46]line ИТОГО: 2000.00 [17:09:46]line Внесено: 2000.00 [17:09:46]line СДАЧА: 0.00 [17:09:46]line НСП 1% : 17.70 [17:09:46]line НДС 12% : 212.40 [17:09:46]line Наличными: 2000.00 [17:09:46]line Безнал.: 0.00 [17:09:46]line Место: АЗС № 170 "Партнер Нефть" [17:09:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:09:46]line СНО: Общий режим [17:09:46]line Чек 269 25.10.2024 17:09 [17:09:46]line Смена: 540 ФФД: 1.0 [17:09:46]line ЗНМ: 0300000110 [17:09:46]line РНМ: 0000000000091776 [17:09:46]line Версия ККМ: 001 [17:09:46]line [17:09:46]line Дисконтная программа [17:09:46]line АИ-92 [17:09:46]line номер 170 [17:09:46]line сэкономлено 30.35 сом [17:09:46]line ФМ: 0000000000871754 [17:09:46]line ФД: 191530 [17:09:46]line ФПД: 177749581137401 [17:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191530&fm=177749581137401&tin=02508201610067®Number=0000000000091776&sum=200000 [17:09:47]OFD Sender: Processing packet 191530 [packets to send 75, broken 74] [17:09:47]ProducePacketName [17:09:47]name=ofd_packets/00191530 [17:09:47]OFD Sender: To server: pG, [17:09:47]CommunicateWithHost lk.salyk.kg:30040 [17:09:47]ConnectInit lk.salyk.kg [17:09:47]written 0, free lines is 4095 [17:09:47]Connected sock=10 [17:09:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 45 07 01 6B FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E3 D0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EC 02 00 35 04 06 00 A1 A9 8C A4 85 F9 4A 73 C5 9A AB 53 4D 0E [17:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 23 47 00 A4 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EC 02 00 F4 03 04 00 B1 75 1B 67 B6 04 01 00 00 26 D1 69 3B 44 E5 8B D8 [17:09:47]CommunicateWithHost err = 0 [17:09:47]CheckOFDResponse [17:09:47]1017 (14) - 77093643461234 [17:09:47]1041 (16) - 0000000000871754 [17:09:47]1040 (4) - 191530 [17:09:47]1012 (4) - 25.10.2024 10:40 [17:09:47]1206 (1) - 0 [17:09:47]OFD Sender: Remove packet 191530 [17:09:47]ProducePacketName [17:09:47]name=ofd_packets/00191530 [17:09:47]NVStorageDeleteData [17:09:47]Write to MH i2c: 01 00 00 A0 BB 5B [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: 01 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: 01 07 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: 01 07 00 A0 BB 00 00 00 00 00 68 0C D6 [17:09:47]RasterBufferAndPrint [17:09:47]line [17:09:47]line [17:09:47]line [17:09:47]line [17:09:47]line [17:09:47]written 0, free lines is 3182 [17:09:47]MH_Cut [17:09:47]Write to MH i2c: D1 01 00 A7 BB 01 34 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: D1 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: D1 01 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: D1 01 00 A7 BB 00 33 [17:09:47]Write to MH i2c: 01 00 00 A8 BB 63 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]OFD Sender: No OFD packet to send [17:09:48]*** Cut start [17:09:48]*** Partial cut [17:09:48]*** CUTSNS_PIN = 1 [17:09:48]*** CUTSNS_PIN = 0 [17:09:48]*** Brake cut motor [17:09:49]Read from MH i2c: 01 [17:09:49]MH_I2C_Read... [17:09:49]*** Stop cut motor [17:09:49]*** Cut end [17:09:49]Read from MH i2c: 01 07 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: 01 07 00 A8 BB 00 00 00 00 00 FF 0F 78 [17:09:49]process_action close_receipt done [17:09:49]requested_data is exist [17:09:49]produce_requested_data [17:09:49]requested_item fm.sn is exist - process it [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 11 00 00 [17:09:49]Write to MH i2c: E2 08 00 A9 BB 80 11 00 00 00 00 00 00 DE [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 17 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 17 00 A9 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [17:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:49]wFMCommunicate OK [17:09:49]requested_item fd.num is exist - process it [17:09:49]SAM_PROTO_GetFieldsCounters [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 13 00 00 [17:09:49]Write to MH i2c: E2 08 00 AA BB 80 13 00 00 00 00 00 00 E1 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 62 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 62 00 AA BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [17: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:49]wFMCommunicate OK [17:09:49]SAM_PROTO_GetFieldsCounters done [17:09:49]requested_item shift.num is exist - process it [17:09:49]requested_item shift.opened is exist - process it [17:09:49]req_shift_opened [17:09:49]FM_GetShiftState [17:09:49]SAM_PROTO_GetShiftState [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 13 01 00 [17:09:49]Write to MH i2c: E2 08 00 AB BB 80 13 01 00 00 00 00 00 E3 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 AB BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A6 [17:09:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:09:49]wFMCommunicate OK [17:09:49]SAM_PROTO_GetShiftState done [17:09:49]FM_GetShiftState done [17:09:49]req_shift_opened done [17:09:49]requested_item shift.open_date is exist - process it [17:09:49]req_shift_open_date [17:09:49]req_shift_open_date done [17:09:49]produce_requested_data done [17:09:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191530,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:09:49]process_action_free close_receipt [17:09:49]json_value_free [17:09:49]json_value_free done [17:09:49]process_json_proto returns [17:09:49]Send response to host [17:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191530,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:09:49]free response buf [17:09:49]execute_script done [17:09:49]execute_script returns [17:09:49]free content buf [17:09:49]Sock 8.Close socket [17:09:49]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [17:10:54]accept exits with 9 [17:10:54]New connection [17:10:54]New thread 3066817892 created [17:10:54]Thread 3066961252 joined [17:10:54]Waiting for new connection... [17:10:54] Sock 9.Parse request [17:10:54]Sock 9.Check first char [17:10:54]Sock 9.First char is OK [17:10:54]request: POST /json_proto HTTP/1.0 [17:10:54]Method: POST [17:10:54]URL: /json_proto [17:10:54]Method is POST - this is cgi request [17:10:54]url: /json_proto [17:10:54]query_string will be loaded in cgi processing [17:10:54]execute_cgi json_proto POST (null) [17:10:54]execute_cgi path=json_proto method=POST [17:10:54]POST find Content-Length [17:10:54]Host: 172.17.63.131:8080 [17:10:54]Content-Length: 676 [17:10:54]Content-Type: application/json [17:10:54] [17:10:54]POST finish read [17:10:54]Found Content-Length = 676 [17:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:54]execute_script... [17:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:54]POST & json_proto [17:10:54]process_json_proto [17:10:54]json parsed OK: [17:10:54]protocol is kg_v1.0 [17:10:54]action value=close_receipt [17:10:54]process_action close_receipt [17:10:54]cmd_close_receipt [17:10:54]MH_GetDate [17:10:54]Write to MH i2c: F0 00 00 AC BB 56 [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: F0 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: F0 09 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: F0 09 00 AC BB 00 28 D1 1B 67 22 05 6E 64 D3 [17:10:54]GetLastDocTimeStamp 1729876195 [17:10:54]current date 1729876264 [17:10:54]FM_GetShiftState [17:10:54]SAM_PROTO_GetShiftState [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 13 01 00 [17:10:54]Write to MH i2c: E2 08 00 AD BB 80 13 01 00 00 00 00 00 E5 [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 0E 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 0E 00 AD BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A8 [17:10:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:10:54]wFMCommunicate OK [17:10:54]SAM_PROTO_GetShiftState done [17:10:54]FM_GetShiftState done [17:10:54]opened in 1729816399 [17:10:54]opened+sec_in_day 1729902799 [17:10:54]quantity*price = 50041 [17:10:54]sum+1 = 50042 [17:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 270 25.10.2024 17:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191531 ФПД: 280296967073564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191531&fm=280296967073564&tin=02508201610067®Number=0000000000091776&sum=50000 [17:10:55]StoreToDocumentArchive [17:10:55]shift 540 fd 191531 [17:10:55]save to /storage/0540/doc_00191531 [17:10:55]save last doc name /storage/0540/doc_00191531 to /storage/kkm_last_doc_name [17:10:55]save OK [17:10:55]Clear old archive folders... [17:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:55]tlvbuf is 01600B90 [17:10:55]SAM_PROTO_ClearQueue [17:10:55]wFMCommunicate request_size=4 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 09 00 00 [17:10:55]Write to MH i2c: E2 08 00 BA BB 80 09 00 00 00 00 00 00 E7 [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 03 00 BA BB 00 90 00 E9 [17:10:55]RAPDU: 90 00 [17:10:55]wFMCommunicate OK [17:10:55]SAM_PROTO_ClearQueue done [17:10:55]KKMCreateOFDPacket [17:10:55]OFDProtocolAddRootSTLVToBuf [17:10:55]FM_MakeSignedData [17:10:55]FM_MakeSignedData [17:10:55]SAM_PROTO_SignData [17:10:55]wFMCommunicate request_size=4 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 0D 01 02 [17:10:55]Write to MH i2c: E2 08 00 BB BB 80 0D 01 02 00 00 00 00 EF [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 BB BB 00 90 00 EA [17:10:56]RAPDU: 90 00 [17:10:56]wFMCommunicate OK [17:10:56]wFMCommunicate request_size=255 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 28 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EC 02 00 35 04 06 00 FE [17:10:56]Write to MH i2c: E2 02 01 BC BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 28 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EC 02 00 35 04 06 00 FE 00 00 42 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 BC BB 00 90 00 EB [17:10:56]RAPDU: 90 00 [17:10:56]wFMCommunicate OK [17:10:56]wFMCommunicate request_size=10 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 0D 02 02 05 ED B9 27 6F 1C [17:10:56]Write to MH i2c: E2 0D 00 BD BB 80 0D 02 02 05 00 ED B9 27 6F 1C 00 00 54 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 03 00 BD BB 00 90 00 EC [17:10:56]RAPDU: 90 00 [17:10:56]wFMCommunicate OK [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 0D 03 02 [17:10:56]Write to MH i2c: E2 08 00 BE BB 80 0D 03 02 00 00 00 00 F4 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0B 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0B 00 BE BB 00 CD 30 F5 3E E3 D7 F0 00 90 00 CF [17:10:56]RAPDU: CD 30 F5 3E E3 D7 F0 00 90 00 [17:10:56]wFMCommunicate OK [17:10:56]SAM_PROTO_SignData done [17:10:56]FM_MakeSignedData done [17:10:56]CreateOFDProtocolMessage [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 11 00 00 [17:10:56]Write to MH i2c: E2 08 00 BF BB 80 11 00 00 00 00 00 00 F4 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 17 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 17 00 BF BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [17:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:10:56]wFMCommunicate OK [17:10:56]CreateOFDProtocolMessage done [17:10:56]OFDSenderStorePacket 191531 [17:10:56]StoreOFDPacket docnum=191531 [17:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 52 07 01 94 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 28 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EC 02 00 35 04 06 00 FE ED B9 27 6F 1C CD 30 F5 3E E3 D7 F0 00 [17:10:56]CheckFolder [17:10:56]dirname=/storage/ofd_packets [17:10:56]CheckFolder done [17:10:56]ProducePacketName [17:10:56]name=ofd_packets/00191531 [17:10:56]NVStorageSaveData ofd_packets/00191531 [17:10:56]File name is /storage/ofd_packets/00191531 [17:10:56]Write 301 bytes [17:10:56]NVStorageSaveData done [17:10:56]OFDSenderStorePacket done [17:10:56]KKMCreateOFDPacket done [17:10:56]NVStorageSaveData kkm_last_timestamp [17:10:56]File name is /storage/kkm_last_timestamp [17:10:56]Write 4 bytes [17:10:56]NVStorageSaveData done [17:10:56]ExternCall_PrintAddStr [17:10:56]wPrintStart [17:10:56]Write to MH i2c: 01 00 00 C0 BB 7B [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 C0 BB 00 00 00 00 00 FF 0F 90 [17:10:56]RasterBufferAndPrint [17:10:56]line Счет N : (1)30829 [17:10:56]line ИНН: 02508201610067 [17:10:56]line Контрольно-Кассовый Чек [17:10:56]line ПРОДАЖА [17:10:56]line ТРК (МРК, ГНК) : 21 [17:10:56]line Товар: 2710124130 [17:10:56]line Аи-92-К-5 [17:10:56]line 7.480 * 66.90 [17:10:56]line = 500.41 [17:10:56]line НДС 12% НСП 1% [17:10:56]line > о реализуемом товаре [17:10:56]line ОКРУГЛЕНИЕ: -0.41 [17:10:56]line ИТОГО: 500.00 [17:10:56]line Внесено: 500.00 [17:10:56]line СДАЧА: 0.00 [17:10:56]line НСП 1% : 4.43 [17:10:56]line НДС 12% : 53.14 [17:10:56]line Наличными: 500.00 [17:10:56]line Безнал.: 0.00 [17:10:56]line Место: АЗС № 170 "Партнер Нефть" [17:10:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:10:56]line СНО: Общий режим [17:10:56]line Чек 270 25.10.2024 17:11 [17:10:56]line Смена: 540 ФФД: 1.0 [17:10:56]line ЗНМ: 0300000110 [17:10:56]line РНМ: 0000000000091776 [17:10:56]line Версия ККМ: 001 [17:10:56]line ФМ: 0000000000871754 [17:10:56]line ФД: 191531 [17:10:56]line ФПД: 280296967073564 [17:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191531&fm=280296967073564&tin=02508201610067®Number=0000000000091776&sum=50000 [17:10:56]OFD Sender: Processing packet 191531 [packets to send 75, broken 74] [17:10:56]ProducePacketName [17:10:56]name=ofd_packets/00191531 [17:10:56]OFD Sender: To server: pG, [17:10:56]CommunicateWithHost lk.salyk.kg:30040 [17:10:56]ConnectInit lk.salyk.kg [17:10:56]written 0, free lines is 4095 [17:10:56]Connected sock=11 [17:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 52 07 01 94 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 28 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EC 02 00 35 04 06 00 FE ED B9 27 6F 1C CD 30 F5 3E E3 D7 F0 00 [17:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA F5 47 00 C8 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EC 02 00 F4 03 04 00 F6 75 1B 67 B6 04 01 00 00 4B 45 6F FF B1 61 CD 3B [17:10:57]CommunicateWithHost err = 0 [17:10:57]CheckOFDResponse [17:10:57]1017 (14) - 77093643461234 [17:10:57]1041 (16) - 0000000000871754 [17:10:57]1040 (4) - 191531 [17:10:57]1012 (4) - 25.10.2024 10:41 [17:10:57]1206 (1) - 0 [17:10:57]OFD Sender: Remove packet 191531 [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00191531 [17:10:57]NVStorageDeleteData [17:10:57]Write to MH i2c: 01 00 00 EB BB A6 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 EB BB 00 00 00 00 00 C0 0C 79 [17:10:57]RasterBufferAndPrint [17:10:57]line [17:10:57]line [17:10:57]line [17:10:57]line [17:10:57]line [17:10:57]written 0, free lines is 3270 [17:10:57]MH_Cut [17:10:57]Write to MH i2c: D1 01 00 F2 BB 01 7F [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: D1 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: D1 01 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: D1 01 00 F2 BB 00 7E [17:10:57]Write to MH i2c: 01 00 00 F3 BB AE [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]OFD Sender: No OFD packet to send [17:10:58]*** Cut start [17:10:58]*** Partial cut [17:10:58]*** CUTSNS_PIN = 1 [17:10:58]*** CUTSNS_PIN = 0 [17:10:58]*** Brake cut motor [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]*** Stop cut motor [17:10:58]*** Cut end [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 F3 BB 00 00 00 00 00 FF 0F C3 [17:10:58]process_action close_receipt done [17:10:58]requested_data is exist [17:10:58]produce_requested_data [17:10:58]requested_item fm.sn is exist - process it [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 11 00 00 [17:10:58]Write to MH i2c: E2 08 00 F4 BB 80 11 00 00 00 00 00 00 29 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 17 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 17 00 F4 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [17:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:10:58]wFMCommunicate OK [17:10:58]requested_item fd.num is exist - process it [17:10:58]SAM_PROTO_GetFieldsCounters [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 13 00 00 [17:10:58]Write to MH i2c: E2 08 00 F5 BB 80 13 00 00 00 00 00 00 2C [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 62 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 62 00 F5 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_GetFieldsCounters done [17:10:58]requested_item shift.num is exist - process it [17:10:58]requested_item shift.opened is exist - process it [17:10:58]req_shift_opened [17:10:58]FM_GetShiftState [17:10:58]SAM_PROTO_GetShiftState [17:10:58]wFMCommunicate request_size=4 [17:10:58]MH_SAM_APDU [17:10:58]CAPDU: 80 13 01 00 [17:10:58]Write to MH i2c: E2 08 00 F6 BB 80 13 01 00 00 00 00 00 2E [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:58]Read from MH i2c: E2 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 0E 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: E2 0E 00 F6 BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F1 [17:10:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:10:58]wFMCommunicate OK [17:10:58]SAM_PROTO_GetShiftState done [17:10:58]FM_GetShiftState done [17:10:58]req_shift_opened done [17:10:58]requested_item shift.open_date is exist - process it [17:10:58]req_shift_open_date [17:10:58]req_shift_open_date done [17:10:58]produce_requested_data done [17:10:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191531,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:10:58]process_action_free close_receipt [17:10:58]json_value_free [17:10:58]json_value_free done [17:10:58]process_json_proto returns [17:10:58]Send response to host [17:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191531,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:10:58]free response buf [17:10:58]execute_script done [17:10:58]execute_script returns [17:10:58]free content buf [17:10:58]Sock 9.Close socket [17:10:58]Sock 9.Thread stoped [17:11:02]OFD Sender: No OFD packet to send [17:11:06]accept exits with 8 [17:11:06]New connection [17:11:06]New thread 3066961252 created [17:11:06]Thread 3066817892 joined [17:11:06]Waiting for new connection... [17:11:06] Sock 8.Parse request [17:11:06]Sock 8.Check first char [17:11:06]Sock 8.First char is OK [17:11:06]request: POST /json_proto HTTP/1.0 [17:11:06]Method: POST [17:11:06]URL: /json_proto [17:11:06]Method is POST - this is cgi request [17:11:06]url: /json_proto [17:11:06]query_string will be loaded in cgi processing [17:11:06]execute_cgi json_proto POST (null) [17:11:06]execute_cgi path=json_proto method=POST [17:11:06]POST find Content-Length [17:11:06]Host: 172.17.63.131:8080 [17:11:06]Content-Length: 678 [17:11:06]Content-Type: application/json [17:11:06] [17:11:06]POST finish read [17:11:06]Found Content-Length = 678 [17:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:11:06]execute_script... [17:11: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)30830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:11:06]POST & json_proto [17:11:06]process_json_proto [17:11:06]json parsed OK: [17:11:06]protocol is kg_v1.0 [17:11:06]action value=close_receipt [17:11:06]process_action close_receipt [17:11:06]cmd_close_receipt [17:11:06]MH_GetDate [17:11:06]Write to MH i2c: F0 00 00 F7 BB A1 [17:11:06]Write i2c OK [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: F0 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: F0 09 00 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: F0 09 00 F7 BB 00 34 D1 1B 67 22 05 6E 64 2A [17:11:06]GetLastDocTimeStamp 1729876264 [17:11:06]current date 1729876276 [17:11:06]FM_GetShiftState [17:11:06]SAM_PROTO_GetShiftState [17:11:06]wFMCommunicate request_size=4 [17:11:06]MH_SAM_APDU [17:11:06]CAPDU: 80 13 01 00 [17:11:06]Write to MH i2c: E2 08 00 F8 BB 80 13 01 00 00 00 00 00 30 [17:11:06]Write i2c OK [17:11:06]MH_I2C_Read... [17:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:06]Read from MH i2c: E2 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 0E 00 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 0E 00 F8 BB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F3 [17:11:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:11:06]wFMCommunicate OK [17:11:06]SAM_PROTO_GetShiftState done [17:11:06]FM_GetShiftState done [17:11:06]opened in 1729816399 [17:11:06]opened+sec_in_day 1729902799 [17:11:06]quantity*price = 200025 [17:11:06]sum+1 = 200026 [17:11:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 271 25.10.2024 17:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191532 ФПД: 200898344008640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171117&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191532&fm=200898344008640&tin=02508201610067®Number=0000000000091776&sum=200000 [17:11:08]StoreToDocumentArchive [17:11:08]shift 540 fd 191532 [17:11:08]save to /storage/0540/doc_00191532 [17:11:08]save last doc name /storage/0540/doc_00191532 to /storage/kkm_last_doc_name [17:11:08]save OK [17:11:08]Clear old archive folders... [17:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:08]tlvbuf is 0172E6D0 [17:11:08]SAM_PROTO_ClearQueue [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 09 00 00 [17:11:08]Write to MH i2c: E2 08 00 05 BC 80 09 00 00 00 00 00 00 33 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 05 BC 00 90 00 35 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]SAM_PROTO_ClearQueue done [17:11:08]KKMCreateOFDPacket [17:11:08]OFDProtocolAddRootSTLVToBuf [17:11:08]FM_MakeSignedData [17:11:08]FM_MakeSignedData [17:11:08]SAM_PROTO_SignData [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 01 02 [17:11:08]Write to MH i2c: E2 08 00 06 BC 80 0D 01 02 00 00 00 00 3B [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 06 BC 00 90 00 36 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=255 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 01 00 00 F4 03 04 00 35 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EC 02 00 35 04 06 00 B6 B7 4A 6E [17:11:08]Write to MH i2c: E2 02 01 07 BC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EC 02 00 35 04 06 00 B6 B7 4A 6E 00 00 A8 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 07 BC 00 90 00 37 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=7 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 02 02 02 3B C0 [17:11:08]Write to MH i2c: E2 0A 00 08 BC 80 0D 02 02 02 00 3B C0 00 00 3D [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 08 BC 00 90 00 38 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 03 02 [17:11:08]Write to MH i2c: E2 08 00 09 BC 80 0D 03 02 00 00 00 00 40 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 0B 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 0B 00 09 BC 00 34 37 E0 25 4B 1F 51 77 90 00 E3 [17:11:08]RAPDU: 34 37 E0 25 4B 1F 51 77 90 00 [17:11:08]wFMCommunicate OK [17:11:08]SAM_PROTO_SignData done [17:11:08]FM_MakeSignedData done [17:11:08]CreateOFDProtocolMessage [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 11 00 00 [17:11:08]Write to MH i2c: E2 08 00 0A BC 80 11 00 00 00 00 00 00 40 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 17 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 17 00 0A BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [17:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:11:08]wFMCommunicate OK [17:11:08]CreateOFDProtocolMessage done [17:11:08]OFDSenderStorePacket 191532 [17:11:08]StoreOFDPacket docnum=191532 [17:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D8 C1 04 01 C6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EC 02 00 35 04 06 00 B6 B7 4A 6E 3B C0 34 37 E0 25 4B 1F 51 77 [17:11:08]CheckFolder [17:11:08]dirname=/storage/ofd_packets [17:11:08]CheckFolder done [17:11:08]ProducePacketName [17:11:08]name=ofd_packets/00191532 [17:11:08]NVStorageSaveData ofd_packets/00191532 [17:11:08]File name is /storage/ofd_packets/00191532 [17:11:08]Write 298 bytes [17:11:08]NVStorageSaveData done [17:11:08]OFDSenderStorePacket done [17:11:08]KKMCreateOFDPacket done [17:11:08]NVStorageSaveData kkm_last_timestamp [17:11:08]File name is /storage/kkm_last_timestamp [17:11:08]Write 4 bytes [17:11:08]NVStorageSaveData done [17:11:08]ExternCall_PrintAddStr [17:11:08]wPrintStart [17:11:08]Write to MH i2c: 01 00 00 0B BC C7 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 07 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: 01 07 00 0B BC 00 00 00 00 00 FF 0F DC [17:11:08]RasterBufferAndPrint [17:11:08]line Счет N : (1)30830 [17:11:08]line ИНН: 02508201610067 [17:11:08]line Контрольно-Кассовый Чек [17:11:08]line ПРОДАЖА [17:11:08]line ТРК (МРК, ГНК) : 22 [17:11:08]line Товар: 2710194210 [17:11:08]line ДТ-К-5 [17:11:08]line 26.250 * 76.20 [17:11:08]line = 2000.25 [17:11:08]line НДС 12% НСП 1% [17:11:08]line > о реализуемом товаре [17:11:08]line ОКРУГЛЕНИЕ: -0.25 [17:11:08]line ИТОГО: 2000.00 [17:11:08]line Внесено: 2000.00 [17:11:08]line СДАЧА: 0.00 [17:11:08]line НСП 1% : 17.70 [17:11:08]line НДС 12% : 212.42 [17:11:08]line Наличными: 2000.00 [17:11:08]line Безнал.: 0.00 [17:11:08]line Место: АЗС № 170 "Партнер Нефть" [17:11:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:11:08]line СНО: Общий режим [17:11:08]line Чек 271 25.10.2024 17:11 [17:11:08]line Смена: 540 ФФД: 1.0 [17:11:08]line ЗНМ: 0300000110 [17:11:08]line РНМ: 0000000000091776 [17:11:08]line Версия ККМ: 001 [17:11:08]line ФМ: 0000000000871754 [17:11:08]line ФД: 191532 [17:11:08]line ФПД: 200898344008640 [17:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171117&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191532&fm=200898344008640&tin=02508201610067®Number=0000000000091776&sum=200000 [17:11:08]OFD Sender: Processing packet 191532 [packets to send 75, broken 74] [17:11:08]ProducePacketName [17:11:08]name=ofd_packets/00191532 [17:11:08]OFD Sender: To server: pG, [17:11:08]CommunicateWithHost lk.salyk.kg:30040 [17:11:08]ConnectInit lk.salyk.kg [17:11:08]written 0, free lines is 4095 [17:11:09]Connected sock=10 [17:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D8 C1 04 01 C6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EC 02 00 35 04 06 00 B6 B7 4A 6E 3B C0 34 37 E0 25 4B 1F 51 77 [17:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE A3 47 00 49 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EC 02 00 F4 03 04 00 02 76 1B 67 B6 04 01 00 00 01 BA 91 1A D8 FA 94 2F [17:11:09]CommunicateWithHost err = 0 [17:11:09]CheckOFDResponse [17:11:09]1017 (14) - 77093643461234 [17:11:09]1041 (16) - 0000000000871754 [17:11:09]1040 (4) - 191532 [17:11:09]1012 (4) - 25.10.2024 10:42 [17:11:09]1206 (1) - 0 [17:11:09]OFD Sender: Remove packet 191532 [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00191532 [17:11:09]NVStorageDeleteData [17:11:09]Write to MH i2c: 01 00 00 36 BC F2 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 36 BC 00 00 00 00 00 CD 0C D2 [17:11:09]RasterBufferAndPrint [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]written 0, free lines is 3283 [17:11:09]MH_Cut [17:11:09]Write to MH i2c: D1 01 00 3D BC 01 CB [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 01 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 01 00 3D BC 00 CA [17:11:09]Write to MH i2c: 01 00 00 3E BC FA [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]OFD Sender: No OFD packet to send [17:11:10]*** Cut start [17:11:10]*** Partial cut [17:11:10]*** CUTSNS_PIN = 1 [17:11:10]*** CUTSNS_PIN = 0 [17:11:10]*** Brake cut motor [17:11:10]Read from MH i2c: 01 [17:11:10]MH_I2C_Read... [17:11:10]*** Stop cut motor [17:11:10]*** Cut end [17:11:10]Read from MH i2c: 01 07 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: 01 07 00 3E BC 00 00 00 00 00 FF 0F 0F [17:11:10]process_action close_receipt done [17:11:10]requested_data is exist [17:11:10]produce_requested_data [17:11:10]requested_item fm.sn is exist - process it [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 11 00 00 [17:11:10]Write to MH i2c: E2 08 00 3F BC 80 11 00 00 00 00 00 00 75 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:10]Read from MH i2c: E2 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 17 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 17 00 3F BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [17:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:11:10]wFMCommunicate OK [17:11:10]requested_item fd.num is exist - process it [17:11:10]SAM_PROTO_GetFieldsCounters [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 13 00 00 [17:11:10]Write to MH i2c: E2 08 00 40 BC 80 13 00 00 00 00 00 00 78 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 40 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetFieldsCounters done [17:11:11]requested_item shift.num is exist - process it [17:11:11]requested_item shift.opened is exist - process it [17:11:11]req_shift_opened [17:11:11]FM_GetShiftState [17:11:11]SAM_PROTO_GetShiftState [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 13 01 00 [17:11:11]Write to MH i2c: E2 08 00 41 BC 80 13 01 00 00 00 00 00 7A [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 41 BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3D [17:11:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetShiftState done [17:11:11]FM_GetShiftState done [17:11:11]req_shift_opened done [17:11:11]requested_item shift.open_date is exist - process it [17:11:11]req_shift_open_date [17:11:11]req_shift_open_date done [17:11:11]produce_requested_data done [17:11:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191532,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:11:11]process_action_free close_receipt [17:11:11]json_value_free [17:11:11]json_value_free done [17:11:11]process_json_proto returns [17:11:11]Send response to host [17:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191532,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:11:11]free response buf [17:11:11]execute_script done [17:11:11]execute_script returns [17:11:11]free content buf [17:11:11]Sock 8.Close socket [17:11:11]Sock 8.Thread stoped [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:38]accept exits with 9 [17:13:38]New connection [17:13:38]New thread 3066817892 created [17:13:38]Thread 3066961252 joined [17:13:38]Waiting for new connection... [17:13:38] Sock 9.Parse request [17:13:38]Sock 9.Check first char [17:13:38]Sock 9.First char is OK [17:13:38]request: POST /json_proto HTTP/1.0 [17:13:38]Method: POST [17:13:38]URL: /json_proto [17:13:38]Method is POST - this is cgi request [17:13:38]url: /json_proto [17:13:38]query_string will be loaded in cgi processing [17:13:38]execute_cgi json_proto POST (null) [17:13:38]execute_cgi path=json_proto method=POST [17:13:38]POST find Content-Length [17:13:38]Host: 172.17.63.131:8080 [17:13:38]Content-Length: 983 [17:13:38]Content-Type: application/json [17:13:38] [17:13:38]POST finish read [17:13:38]Found Content-Length = 983 [17:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:38]execute_script... [17:13: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)30831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:38]POST & json_proto [17:13:38]process_json_proto [17:13:38]json parsed OK: [17:13:38]protocol is kg_v1.0 [17:13:38]action value=close_receipt [17:13:38]process_action close_receipt [17:13:38]cmd_close_receipt [17:13:38]MH_GetDate [17:13:38]Write to MH i2c: F0 00 00 42 BC ED [17:13:38]Write i2c OK [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: F0 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: F0 09 00 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: F0 09 00 42 BC 00 CC D1 1B 67 22 05 6E 64 0E [17:13:38]GetLastDocTimeStamp 1729876277 [17:13:38]current date 1729876428 [17:13:38]FM_GetShiftState [17:13:38]SAM_PROTO_GetShiftState [17:13:38]wFMCommunicate request_size=4 [17:13:38]MH_SAM_APDU [17:13:38]CAPDU: 80 13 01 00 [17:13:38]Write to MH i2c: E2 08 00 43 BC 80 13 01 00 00 00 00 00 7C [17:13:38]Write i2c OK [17:13:38]MH_I2C_Read... [17:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:38]Read from MH i2c: E2 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: E2 0E 00 [17:13:38]MH_I2C_Read... [17:13:38]Read from MH i2c: E2 0E 00 43 BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3F [17:13:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:13:38]wFMCommunicate OK [17:13:38]SAM_PROTO_GetShiftState done [17:13:38]FM_GetShiftState done [17:13:38]opened in 1729816399 [17:13:38]opened+sec_in_day 1729902799 [17:13:38]quantity*price = 150054 [17:13:38]sum+1 = 150055 [17:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 272 25.10.2024 17:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191533 ФПД: 194572950288517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191533&fm=194572950288517&tin=02508201610067®Number=0000000000091776&sum=150000 [17:13:39]StoreToDocumentArchive [17:13:39]shift 540 fd 191533 [17:13:39]save to /storage/0540/doc_00191533 [17:13:39]save last doc name /storage/0540/doc_00191533 to /storage/kkm_last_doc_name [17:13:39]save OK [17:13:39]Clear old archive folders... [17:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:39]tlvbuf is 0160B820 [17:13:39]SAM_PROTO_ClearQueue [17:13:39]wFMCommunicate request_size=4 [17:13:39]MH_SAM_APDU [17:13:39]CAPDU: 80 09 00 00 [17:13:39]Write to MH i2c: E2 08 00 50 BC 80 09 00 00 00 00 00 00 7E [17:13:39]Write i2c OK [17:13:39]MH_I2C_Read... [17:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:39]Read from MH i2c: E2 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 03 00 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 03 00 50 BC 00 90 00 80 [17:13:39]RAPDU: 90 00 [17:13:39]wFMCommunicate OK [17:13:39]SAM_PROTO_ClearQueue done [17:13:39]KKMCreateOFDPacket [17:13:39]OFDProtocolAddRootSTLVToBuf [17:13:39]FM_MakeSignedData [17:13:39]FM_MakeSignedData [17:13:39]SAM_PROTO_SignData [17:13:39]wFMCommunicate request_size=4 [17:13:39]MH_SAM_APDU [17:13:39]CAPDU: 80 0D 01 02 [17:13:39]Write to MH i2c: E2 08 00 51 BC 80 0D 01 02 00 00 00 00 86 [17:13:39]Write i2c OK [17:13:39]MH_I2C_Read... [17:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:39]Read from MH i2c: E2 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 03 00 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 03 00 51 BC 00 90 00 81 [17:13:39]RAPDU: 90 00 [17:13:39]wFMCommunicate OK [17:13:39]wFMCommunicate request_size=255 [17:13:39]MH_SAM_APDU [17:13:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CC D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EC 02 00 35 04 06 00 B0 [17:13:39]Write to MH i2c: E2 02 01 52 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CC D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EC 02 00 35 04 06 00 B0 00 00 69 [17:13:39]Write i2c OK [17:13:39]MH_I2C_Read... [17:13:39]OFD Sender: No OFD packet to send [17:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 52 BC 00 90 00 82 [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]wFMCommunicate request_size=10 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 02 02 05 F6 8B 95 B8 85 [17:13:40]Write to MH i2c: E2 0D 00 53 BC 80 0D 02 02 05 00 F6 8B 95 B8 85 00 00 E6 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 53 BC 00 90 00 83 [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 03 02 [17:13:40]Write to MH i2c: E2 08 00 54 BC 80 0D 03 02 00 00 00 00 8B [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0B 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0B 00 54 BC 00 F2 C9 91 65 59 B5 08 AC 90 00 FF [17:13:40]RAPDU: F2 C9 91 65 59 B5 08 AC 90 00 [17:13:40]wFMCommunicate OK [17:13:40]SAM_PROTO_SignData done [17:13:40]FM_MakeSignedData done [17:13:40]CreateOFDProtocolMessage [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 11 00 00 [17:13:40]Write to MH i2c: E2 08 00 55 BC 80 11 00 00 00 00 00 00 8B [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 17 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 17 00 55 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [17:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:40]wFMCommunicate OK [17:13:40]CreateOFDProtocolMessage done [17:13:40]OFDSenderStorePacket 191533 [17:13:40]StoreOFDPacket docnum=191533 [17:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 66 15 07 01 17 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CC D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EC 02 00 35 04 06 00 B0 F6 8B 95 B8 85 F2 C9 91 65 59 B5 08 AC [17:13:40]CheckFolder [17:13:40]dirname=/storage/ofd_packets [17:13:40]CheckFolder done [17:13:40]ProducePacketName [17:13:40]name=ofd_packets/00191533 [17:13:40]NVStorageSaveData ofd_packets/00191533 [17:13:40]File name is /storage/ofd_packets/00191533 [17:13:40]Write 301 bytes [17:13:40]NVStorageSaveData done [17:13:40]OFDSenderStorePacket done [17:13:40]KKMCreateOFDPacket done [17:13:40]NVStorageSaveData kkm_last_timestamp [17:13:40]File name is /storage/kkm_last_timestamp [17:13:40]Write 4 bytes [17:13:40]NVStorageSaveData done [17:13:40]ExternCall_PrintAddStr [17:13:40]wPrintStart [17:13:40]Write to MH i2c: 01 00 00 56 BC 12 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 07 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 07 00 56 BC 00 00 00 00 00 FF 0F 27 [17:13:40]RasterBufferAndPrint [17:13:40]line Счет N : (1)30831 [17:13:40]line ИНН: 02508201610067 [17:13:40]line Контрольно-Кассовый Чек [17:13:40]line ПРОДАЖА [17:13:40]line ТРК (МРК, ГНК) : 21 [17:13:40]line Товар: 2710124130 [17:13:40]line Аи-92-К-5 [17:13:40]line 22.770 * 65.90 [17:13:40]line = 1500.54 [17:13:40]line НДС 12% НСП 1% [17:13:40]line > о реализуемом товаре [17:13:40]line ОКРУГЛЕНИЕ: -0.54 [17:13:40]line ИТОГО: 1500.00 [17:13:40]line Внесено: 1500.00 [17:13:40]line СДАЧА: 0.00 [17:13:40]line НСП 1% : 13.28 [17:13:40]line НДС 12% : 159.35 [17:13:40]line Наличными: 1500.00 [17:13:40]line Безнал.: 0.00 [17:13:40]line Место: АЗС № 170 "Партнер Нефть" [17:13:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:13:40]line СНО: Общий режим [17:13:40]line Чек 272 25.10.2024 17:13 [17:13:40]line Смена: 540 ФФД: 1.0 [17:13:40]line ЗНМ: 0300000110 [17:13:40]line РНМ: 0000000000091776 [17:13:40]line Версия ККМ: 001 [17:13:40]line [17:13:40]line Дисконтная программа [17:13:40]line АИ-92 [17:13:40]line номер 170 [17:13:40]line сэкономлено 22.77 сом [17:13:40]line ФМ: 0000000000871754 [17:13:40]line ФД: 191533 [17:13:40]line ФПД: 194572950288517 [17:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191533&fm=194572950288517&tin=02508201610067®Number=0000000000091776&sum=150000 [17:13:40]OFD Sender: Processing packet 191533 [packets to send 75, broken 74] [17:13:40]ProducePacketName [17:13:40]name=ofd_packets/00191533 [17:13:40]OFD Sender: To server: pG, [17:13:40]CommunicateWithHost lk.salyk.kg:30040 [17:13:40]ConnectInit lk.salyk.kg [17:13:40]written 0, free lines is 4095 [17:13:40]Connected sock=10 [17:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 66 15 07 01 17 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CC D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EC 02 00 35 04 06 00 B0 F6 8B 95 B8 85 F2 C9 91 65 59 B5 08 AC [17:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 F1 47 00 B1 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EC 02 00 F4 03 04 00 9A 76 1B 67 B6 04 01 00 00 E6 0A 21 40 77 14 6A B0 [17:13:40]CommunicateWithHost err = 0 [17:13:40]CheckOFDResponse [17:13:40]1017 (14) - 77093643461234 [17:13:40]1041 (16) - 0000000000871754 [17:13:40]1040 (4) - 191533 [17:13:40]1012 (4) - 25.10.2024 10:44 [17:13:40]1206 (1) - 0 [17:13:40]OFD Sender: Remove packet 191533 [17:13:40]ProducePacketName [17:13:40]name=ofd_packets/00191533 [17:13:40]NVStorageDeleteData [17:13:41]Write to MH i2c: 01 00 00 86 BC 42 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 86 BC 00 00 00 00 00 65 0C BA [17:13:41]RasterBufferAndPrint [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]written 0, free lines is 3180 [17:13:41]MH_Cut [17:13:41]Write to MH i2c: D1 01 00 8D BC 01 1B [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 01 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 01 00 8D BC 00 1A [17:13:41]Write to MH i2c: 01 00 00 8E BC 4A [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]OFD Sender: No OFD packet to send [17:13:41]*** Cut start [17:13:41]*** Partial cut [17:13:41]*** CUTSNS_PIN = 1 [17:13:42]*** CUTSNS_PIN = 0 [17:13:42]*** Brake cut motor [17:13:42]Read from MH i2c: 01 [17:13:42]MH_I2C_Read... [17:13:42]*** Stop cut motor [17:13:42]*** Cut end [17:13:42]Read from MH i2c: 01 07 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 8E BC 00 00 00 00 00 FF 0F 5F [17:13:42]process_action close_receipt done [17:13:42]requested_data is exist [17:13:42]produce_requested_data [17:13:42]requested_item fm.sn is exist - process it [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 11 00 00 [17:13:42]Write to MH i2c: E2 08 00 8F BC 80 11 00 00 00 00 00 00 C5 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 8F BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [17:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:42]wFMCommunicate OK [17:13:42]requested_item fd.num is exist - process it [17:13:42]SAM_PROTO_GetFieldsCounters [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 00 00 [17:13:42]Write to MH i2c: E2 08 00 90 BC 80 13 00 00 00 00 00 00 C8 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 62 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 62 00 90 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [17:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_GetFieldsCounters done [17:13:42]requested_item shift.num is exist - process it [17:13:42]requested_item shift.opened is exist - process it [17:13:42]req_shift_opened [17:13:42]FM_GetShiftState [17:13:42]SAM_PROTO_GetShiftState [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 01 00 [17:13:42]Write to MH i2c: E2 08 00 91 BC 80 13 01 00 00 00 00 00 CA [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 91 BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8D [17:13:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_GetShiftState done [17:13:42]FM_GetShiftState done [17:13:42]req_shift_opened done [17:13:42]requested_item shift.open_date is exist - process it [17:13:42]req_shift_open_date [17:13:42]req_shift_open_date done [17:13:42]produce_requested_data done [17:13:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191533,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:13:42]process_action_free close_receipt [17:13:42]json_value_free [17:13:42]json_value_free done [17:13:42]process_json_proto returns [17:13:42]Send response to host [17:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191533,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:13:42]free response buf [17:13:42]execute_script done [17:13:42]execute_script returns [17:13:42]free content buf [17:13:42]Sock 9.Close socket [17:13:42]Sock 9.Thread stoped [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:52]accept exits with 8 [17:13:52]New connection [17:13:52]New thread 3066961252 created [17:13:52]Thread 3066817892 joined [17:13:52]Waiting for new connection... [17:13:52] Sock 8.Parse request [17:13:52]Sock 8.Check first char [17:13:52]Sock 8.First char is OK [17:13:52]request: POST /json_proto HTTP/1.0 [17:13:52]Method: POST [17:13:52]URL: /json_proto [17:13:52]Method is POST - this is cgi request [17:13:52]url: /json_proto [17:13:52]query_string will be loaded in cgi processing [17:13:52]execute_cgi json_proto POST (null) [17:13:52]execute_cgi path=json_proto method=POST [17:13:52]POST find Content-Length [17:13:52]Host: 172.17.63.131:8080 [17:13:52]Content-Length: 681 [17:13:52]Content-Type: application/json [17:13:52] [17:13:52]POST finish read [17:13:52]Found Content-Length = 681 [17:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:52]execute_script... [17:13: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)30832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:52]POST & json_proto [17:13:52]process_json_proto [17:13:52]json parsed OK: [17:13:52]protocol is kg_v1.0 [17:13:52]action value=close_receipt [17:13:52]process_action close_receipt [17:13:52]cmd_close_receipt [17:13:52]MH_GetDate [17:13:52]Write to MH i2c: F0 00 00 92 BC 3D [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 09 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 09 00 92 BC 00 DA D1 1B 67 22 05 6E 64 6C [17:13:52]GetLastDocTimeStamp 1729876428 [17:13:52]current date 1729876442 [17:13:52]FM_GetShiftState [17:13:52]SAM_PROTO_GetShiftState [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 13 01 00 [17:13:52]Write to MH i2c: E2 08 00 93 BC 80 13 01 00 00 00 00 00 CC [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 93 BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8F [17:13:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_GetShiftState done [17:13:52]FM_GetShiftState done [17:13:52]opened in 1729816399 [17:13:52]opened+sec_in_day 1729902799 [17:13:52]quantity*price = 100015 [17:13:52]sum+1 = 100017 [17:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 273 25.10.2024 17:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191534 ФПД: 216952437834757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191534&fm=216952437834757&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:53]StoreToDocumentArchive [17:13:53]shift 540 fd 191534 [17:13:53]save to /storage/0540/doc_00191534 [17:13:53]save last doc name /storage/0540/doc_00191534 to /storage/kkm_last_doc_name [17:13:53]save OK [17:13:53]Clear old archive folders... [17:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:53]tlvbuf is 0183C5A0 [17:13:53]SAM_PROTO_ClearQueue [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 09 00 00 [17:13:53]Write to MH i2c: E2 08 00 A0 BC 80 09 00 00 00 00 00 00 CE [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 A0 BC 00 90 00 D0 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_ClearQueue done [17:13:54]KKMCreateOFDPacket [17:13:54]OFDProtocolAddRootSTLVToBuf [17:13:54]FM_MakeSignedData [17:13:54]FM_MakeSignedData [17:13:54]SAM_PROTO_SignData [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 01 02 [17:13:54]Write to MH i2c: E2 08 00 A1 BC 80 0D 01 02 00 00 00 00 D6 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 A1 BC 00 90 00 D1 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]wFMCommunicate request_size=255 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DA D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EC 02 00 35 04 06 00 C5 [17:13:54]Write to MH i2c: E2 02 01 A2 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DA D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EC 02 00 35 04 06 00 C5 00 00 A2 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 A2 BC 00 90 00 D2 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]wFMCommunicate request_size=10 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 02 02 05 51 2C FD 84 05 [17:13:54]Write to MH i2c: E2 0D 00 A3 BC 80 0D 02 02 05 00 51 2C FD 84 05 00 00 E6 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 A3 BC 00 90 00 D3 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 03 02 [17:13:54]Write to MH i2c: E2 08 00 A4 BC 80 0D 03 02 00 00 00 00 DB [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0B 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0B 00 A4 BC 00 53 BD 14 CA 39 95 CC 9A 90 00 FE [17:13:54]RAPDU: 53 BD 14 CA 39 95 CC 9A 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_SignData done [17:13:54]FM_MakeSignedData done [17:13:54]CreateOFDProtocolMessage [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 11 00 00 [17:13:54]Write to MH i2c: E2 08 00 A5 BC 80 11 00 00 00 00 00 00 DB [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 A5 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [17:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:54]wFMCommunicate OK [17:13:54]CreateOFDProtocolMessage done [17:13:54]OFDSenderStorePacket 191534 [17:13:54]StoreOFDPacket docnum=191534 [17:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B D7 07 01 56 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DA D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EC 02 00 35 04 06 00 C5 51 2C FD 84 05 53 BD 14 CA 39 95 CC 9A [17:13:54]CheckFolder [17:13:54]dirname=/storage/ofd_packets [17:13:54]CheckFolder done [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00191534 [17:13:54]NVStorageSaveData ofd_packets/00191534 [17:13:54]File name is /storage/ofd_packets/00191534 [17:13:54]Write 301 bytes [17:13:54]NVStorageSaveData done [17:13:54]OFDSenderStorePacket done [17:13:54]KKMCreateOFDPacket done [17:13:54]NVStorageSaveData kkm_last_timestamp [17:13:54]File name is /storage/kkm_last_timestamp [17:13:54]Write 4 bytes [17:13:54]NVStorageSaveData done [17:13:54]ExternCall_PrintAddStr [17:13:54]wPrintStart [17:13:54]Write to MH i2c: 01 00 00 A6 BC 62 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 A6 BC 00 00 00 00 00 FF 0F 77 [17:13:54]RasterBufferAndPrint [17:13:54]line Счет N : (1)30832 [17:13:54]line ИНН: 02508201610067 [17:13:54]line Контрольно-Кассовый Чек [17:13:54]line ПРОДАЖА [17:13:54]line ТРК (МРК, ГНК) : 12 [17:13:54]line Товар: 2710124130 [17:13:54]line Аи-92-К-5 [17:13:54]line 14.950 * 66.90 [17:13:54]line = 1000.16 [17:13:54]line НДС 12% НСП 1% [17:13:54]line > о реализуемом товаре [17:13:54]line ОКРУГЛЕНИЕ: -0.16 [17:13:54]line ИТОГО: 1000.00 [17:13:54]line Внесено: 1000.00 [17:13:54]line СДАЧА: 0.00 [17:13:54]line НСП 1% : 8.85 [17:13:54]line НДС 12% : 106.21 [17:13:54]line Наличными: 1000.00 [17:13:54]line Безнал.: 0.00 [17:13:54]line Место: АЗС № 170 "Партнер Нефть" [17:13:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:13:54]line СНО: Общий режим [17:13:54]line Чек 273 25.10.2024 17:14 [17:13:54]line Смена: 540 ФФД: 1.0 [17:13:54]line ЗНМ: 0300000110 [17:13:54]line РНМ: 0000000000091776 [17:13:54]line Версия ККМ: 001 [17:13:54]line ФМ: 0000000000871754 [17:13:54]line ФД: 191534 [17:13:54]line ФПД: 216952437834757 [17:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191534&fm=216952437834757&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:54]written 0, free lines is 4095 [17:13:54]OFD Sender: Processing packet 191534 [packets to send 75, broken 74] [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00191534 [17:13:54]OFD Sender: To server: pG, [17:13:54]CommunicateWithHost lk.salyk.kg:30040 [17:13:54]ConnectInit lk.salyk.kg [17:13:54]Connected sock=10 [17:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B D7 07 01 56 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 DA D1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EC 02 00 35 04 06 00 C5 51 2C FD 84 05 53 BD 14 CA 39 95 CC 9A [17:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 FC 47 00 2D 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EC 02 00 F4 03 04 00 A8 76 1B 67 B6 04 01 00 00 F3 C1 F2 99 E8 95 7E 4E [17:13:54]CommunicateWithHost err = 0 [17:13:54]CheckOFDResponse [17:13:54]1017 (14) - 77093643461234 [17:13:54]1041 (16) - 0000000000871754 [17:13:54]1040 (4) - 191534 [17:13:54]1012 (4) - 25.10.2024 10:44 [17:13:54]1206 (1) - 0 [17:13:54]OFD Sender: Remove packet 191534 [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00191534 [17:13:54]NVStorageDeleteData [17:13:54]Write to MH i2c: 01 00 00 D1 BC 8D [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 07 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 07 00 D1 BC 00 00 00 00 00 BA 0C 5A [17:13:55]RasterBufferAndPrint [17:13:55]line [17:13:55]line [17:13:55]line [17:13:55]line [17:13:55]line [17:13:55]written 0, free lines is 3266 [17:13:55]MH_Cut [17:13:55]Write to MH i2c: D1 01 00 D8 BC 01 66 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: D1 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: D1 01 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: D1 01 00 D8 BC 00 65 [17:13:55]Write to MH i2c: 01 00 00 D9 BC 95 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]OFD Sender: No OFD packet to send [17:13:55]*** Cut start [17:13:55]*** Partial cut [17:13:55]*** CUTSNS_PIN = 1 [17:13:55]*** CUTSNS_PIN = 0 [17:13:56]*** Brake cut motor [17:13:56]Read from MH i2c: 01 [17:13:56]MH_I2C_Read... [17:13:56]*** Stop cut motor [17:13:56]*** Cut end [17:13:56]Read from MH i2c: 01 07 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: 01 07 00 D9 BC 00 00 00 00 00 FF 0F AA [17:13:56]process_action close_receipt done [17:13:56]requested_data is exist [17:13:56]produce_requested_data [17:13:56]requested_item fm.sn is exist - process it [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 11 00 00 [17:13:56]Write to MH i2c: E2 08 00 DA BC 80 11 00 00 00 00 00 00 10 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 17 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 17 00 DA BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [17:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:56]wFMCommunicate OK [17:13:56]requested_item fd.num is exist - process it [17:13:56]SAM_PROTO_GetFieldsCounters [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 13 00 00 [17:13:56]Write to MH i2c: E2 08 00 DB BC 80 13 00 00 00 00 00 00 13 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 62 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 62 00 DB BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:13:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:56]wFMCommunicate OK [17:13:56]SAM_PROTO_GetFieldsCounters done [17:13:56]requested_item shift.num is exist - process it [17:13:56]requested_item shift.opened is exist - process it [17:13:56]req_shift_opened [17:13:56]FM_GetShiftState [17:13:56]SAM_PROTO_GetShiftState [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 13 01 00 [17:13:56]Write to MH i2c: E2 08 00 DC BC 80 13 01 00 00 00 00 00 15 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 0E 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 0E 00 DC BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [17:13:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:13:56]wFMCommunicate OK [17:13:56]SAM_PROTO_GetShiftState done [17:13:56]FM_GetShiftState done [17:13:56]req_shift_opened done [17:13:56]requested_item shift.open_date is exist - process it [17:13:56]req_shift_open_date [17:13:56]req_shift_open_date done [17:13:56]produce_requested_data done [17:13:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191534,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:13:56]process_action_free close_receipt [17:13:56]json_value_free [17:13:56]json_value_free done [17:13:56]process_json_proto returns [17:13:56]Send response to host [17:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191534,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:13:56]free response buf [17:13:56]execute_script done [17:13:56]execute_script returns [17:13:56]free content buf [17:13:56]Sock 8.Close socket [17:13:56]Sock 8.Thread stoped [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:45]accept exits with 9 [17:14:45]New connection [17:14:45]New thread 3066817892 created [17:14:45]Thread 3066961252 joined [17:14:45]Waiting for new connection... [17:14:45] Sock 9.Parse request [17:14:45]Sock 9.Check first char [17:14:45]Sock 9.First char is OK [17:14:45]request: POST /json_proto HTTP/1.0 [17:14:45]Method: POST [17:14:45]URL: /json_proto [17:14:45]Method is POST - this is cgi request [17:14:45]url: /json_proto [17:14:45]query_string will be loaded in cgi processing [17:14:45]execute_cgi json_proto POST (null) [17:14:45]execute_cgi path=json_proto method=POST [17:14:45]POST find Content-Length [17:14:45]Host: 172.17.63.131:8080 [17:14:45]Content-Length: 681 [17:14:45]Content-Type: application/json [17:14:45] [17:14:45]POST finish read [17:14:45]Found Content-Length = 681 [17:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:45]execute_script... [17:14: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)30833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:45]POST & json_proto [17:14:45]process_json_proto [17:14:45]json parsed OK: [17:14:45]protocol is kg_v1.0 [17:14:45]action value=close_receipt [17:14:45]process_action close_receipt [17:14:45]cmd_close_receipt [17:14:45]MH_GetDate [17:14:45]Write to MH i2c: F0 00 00 DD BC 88 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 09 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: F0 09 00 DD BC 00 0F D2 1B 67 22 05 6E 64 ED [17:14:45]GetLastDocTimeStamp 1729876442 [17:14:45]current date 1729876495 [17:14:45]FM_GetShiftState [17:14:45]SAM_PROTO_GetShiftState [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 13 01 00 [17:14:45]Write to MH i2c: E2 08 00 DE BC 80 13 01 00 00 00 00 00 17 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 DE BC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DA [17:14:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:14:45]wFMCommunicate OK [17:14:45]SAM_PROTO_GetShiftState done [17:14:45]FM_GetShiftState done [17:14:45]opened in 1729816399 [17:14:45]opened+sec_in_day 1729902799 [17:14:45]quantity*price = 100015 [17:14:45]sum+1 = 100017 [17:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 274 25.10.2024 17:14 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191535 ФПД: 268345032747681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191535&fm=268345032747681&tin=02508201610067®Number=0000000000091776&sum=100000 [17:14:46]StoreToDocumentArchive [17:14:46]shift 540 fd 191535 [17:14:46]save to /storage/0540/doc_00191535 [17:14:46]save last doc name /storage/0540/doc_00191535 to /storage/kkm_last_doc_name [17:14:46]save OK [17:14:46]Clear old archive folders... [17:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:46]tlvbuf is 016AFDC0 [17:14:46]SAM_PROTO_ClearQueue [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 09 00 00 [17:14:46]Write to MH i2c: E2 08 00 EB BC 80 09 00 00 00 00 00 00 19 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 EB BC 00 90 00 1B [17:14:46]RAPDU: 90 00 [17:14:46]wFMCommunicate OK [17:14:46]SAM_PROTO_ClearQueue done [17:14:46]KKMCreateOFDPacket [17:14:46]OFDProtocolAddRootSTLVToBuf [17:14:46]FM_MakeSignedData [17:14:46]FM_MakeSignedData [17:14:46]SAM_PROTO_SignData [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 0D 01 02 [17:14:46]Write to MH i2c: E2 08 00 EC BC 80 0D 01 02 00 00 00 00 21 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 03 00 EC BC 00 90 00 1C [17:14:46]RAPDU: 90 00 [17:14:46]wFMCommunicate OK [17:14:46]wFMCommunicate request_size=255 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0F D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EC 02 00 35 04 06 00 F4 [17:14:46]Write to MH i2c: E2 02 01 ED BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0F D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EC 02 00 35 04 06 00 F4 00 00 54 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 ED BC 00 90 00 1D [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=10 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 02 02 05 0E F2 5A AA A1 [17:14:47]Write to MH i2c: E2 0D 00 EE BC 80 0D 02 02 05 00 0E F2 5A AA A1 00 00 D3 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 EE BC 00 90 00 1E [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 03 02 [17:14:47]Write to MH i2c: E2 08 00 EF BC 80 0D 03 02 00 00 00 00 26 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 0B 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 0B 00 EF BC 00 B7 8E 28 FF 17 C9 2C CC 90 00 6B [17:14:47]RAPDU: B7 8E 28 FF 17 C9 2C CC 90 00 [17:14:47]wFMCommunicate OK [17:14:47]SAM_PROTO_SignData done [17:14:47]FM_MakeSignedData done [17:14:47]CreateOFDProtocolMessage [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 11 00 00 [17:14:47]Write to MH i2c: E2 08 00 F0 BC 80 11 00 00 00 00 00 00 26 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 17 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 17 00 F0 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [17:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:14:47]wFMCommunicate OK [17:14:47]CreateOFDProtocolMessage done [17:14:47]OFDSenderStorePacket 191535 [17:14:47]StoreOFDPacket docnum=191535 [17:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 16 07 01 29 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0F D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EC 02 00 35 04 06 00 F4 0E F2 5A AA A1 B7 8E 28 FF 17 C9 2C CC [17:14:47]CheckFolder [17:14:47]dirname=/storage/ofd_packets [17:14:47]CheckFolder done [17:14:47]ProducePacketName [17:14:47]name=ofd_packets/00191535 [17:14:47]NVStorageSaveData ofd_packets/00191535 [17:14:47]File name is /storage/ofd_packets/00191535 [17:14:47]Write 301 bytes [17:14:47]NVStorageSaveData done [17:14:47]OFDSenderStorePacket done [17:14:47]KKMCreateOFDPacket done [17:14:47]NVStorageSaveData kkm_last_timestamp [17:14:47]File name is /storage/kkm_last_timestamp [17:14:47]Write 4 bytes [17:14:47]NVStorageSaveData done [17:14:47]ExternCall_PrintAddStr [17:14:47]wPrintStart [17:14:47]Write to MH i2c: 01 00 00 F1 BC AD [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: 01 07 00 F1 BC 00 00 00 00 00 FF 0F C2 [17:14:47]RasterBufferAndPrint [17:14:47]line Счет N : (1)30833 [17:14:47]line ИНН: 02508201610067 [17:14:47]line Контрольно-Кассовый Чек [17:14:47]line ПРОДАЖА [17:14:47]line ТРК (МРК, ГНК) : 12 [17:14:47]line Товар: 2710124130 [17:14:47]line Аи-92-К-5 [17:14:47]line 14.950 * 66.90 [17:14:47]line = 1000.16 [17:14:47]line НДС 12% НСП 1% [17:14:47]line > о реализуемом товаре [17:14:47]line ОКРУГЛЕНИЕ: -0.16 [17:14:47]line ИТОГО: 1000.00 [17:14:47]line Внесено: 1000.00 [17:14:47]line СДАЧА: 0.00 [17:14:47]line НСП 1% : 8.85 [17:14:47]line НДС 12% : 106.21 [17:14:47]line Наличными: 1000.00 [17:14:47]line Безнал.: 0.00 [17:14:47]line Место: АЗС № 170 "Партнер Нефть" [17:14:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:14:47]line СНО: Общий режим [17:14:47]line Чек 274 25.10.2024 17:14 [17:14:47]line Смена: 540 ФФД: 1.0 [17:14:47]line ЗНМ: 0300000110 [17:14:47]line РНМ: 0000000000091776 [17:14:47]line Версия ККМ: 001 [17:14:47]line ФМ: 0000000000871754 [17:14:47]line ФД: 191535 [17:14:47]line ФПД: 268345032747681 [17:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191535&fm=268345032747681&tin=02508201610067®Number=0000000000091776&sum=100000 [17:14:47]OFD Sender: Processing packet 191535 [packets to send 75, broken 74] [17:14:47]ProducePacketName [17:14:47]name=ofd_packets/00191535 [17:14:47]OFD Sender: To server: pG, [17:14:47]CommunicateWithHost lk.salyk.kg:30040 [17:14:47]ConnectInit lk.salyk.kg [17:14:47]written 0, free lines is 4095 [17:14:47]Connected sock=10 [17:14:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 16 07 01 29 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0F D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EC 02 00 35 04 06 00 F4 0E F2 5A AA A1 B7 8E 28 FF 17 C9 2C CC [17:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 28 47 00 64 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 31 37 35 34 10 04 04 00 2F EC 02 00 F4 03 04 00 DD 76 1B 67 B6 04 01 00 00 A1 EA F4 6F A0 B9 1C 65 [17:14:47]CommunicateWithHost err = 0 [17:14:47]CheckOFDResponse [17:14:47]1017 (14) - 77093643461234 [17:14:47]1041 (16) - 0000000000871754 [17:14:47]1040 (4) - 191535 [17:14:47]1012 (4) - 25.10.2024 10:45 [17:14:47]1206 (1) - 0 [17:14:47]OFD Sender: Remove packet 191535 [17:14:47]ProducePacketName [17:14:47]name=ofd_packets/00191535 [17:14:47]NVStorageDeleteData [17:14:48]Write to MH i2c: 01 00 00 1C BD D9 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 1C BD 00 00 00 00 00 BB 0C A7 [17:14:48]RasterBufferAndPrint [17:14:48]line [17:14:48]line [17:14:48]line [17:14:48]line [17:14:48]line [17:14:48]written 0, free lines is 3266 [17:14:48]MH_Cut [17:14:48]Write to MH i2c: D1 01 00 23 BD 01 B2 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: D1 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: D1 01 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: D1 01 00 23 BD 00 B1 [17:14:48]Write to MH i2c: 01 00 00 24 BD E1 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]OFD Sender: No OFD packet to send [17:14:48]*** Cut start [17:14:48]*** Partial cut [17:14:48]*** CUTSNS_PIN = 1 [17:14:48]*** CUTSNS_PIN = 0 [17:14:49]*** Brake cut motor [17:14:49]Read from MH i2c: 01 [17:14:49]MH_I2C_Read... [17:14:49]*** Stop cut motor [17:14:49]*** Cut end [17:14:49]Read from MH i2c: 01 07 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: 01 07 00 24 BD 00 00 00 00 00 FF 0F F6 [17:14:49]process_action close_receipt done [17:14:49]requested_data is exist [17:14:49]produce_requested_data [17:14:49]requested_item fm.sn is exist - process it [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 11 00 00 [17:14:49]Write to MH i2c: E2 08 00 25 BD 80 11 00 00 00 00 00 00 5C [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 17 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 17 00 25 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [17:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:14:49]wFMCommunicate OK [17:14:49]requested_item fd.num is exist - process it [17:14:49]SAM_PROTO_GetFieldsCounters [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 00 00 [17:14:49]Write to MH i2c: E2 08 00 26 BD 80 13 00 00 00 00 00 00 5F [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 62 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 62 00 26 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [17:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetFieldsCounters done [17:14:49]requested_item shift.num is exist - process it [17:14:49]requested_item shift.opened is exist - process it [17:14:49]req_shift_opened [17:14:49]FM_GetShiftState [17:14:49]SAM_PROTO_GetShiftState [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 01 00 [17:14:49]Write to MH i2c: E2 08 00 27 BD 80 13 01 00 00 00 00 00 61 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 27 BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 24 [17:14:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetShiftState done [17:14:49]FM_GetShiftState done [17:14:49]req_shift_opened done [17:14:49]requested_item shift.open_date is exist - process it [17:14:49]req_shift_open_date [17:14:49]req_shift_open_date done [17:14:49]produce_requested_data done [17:14:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191535,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:14:49]process_action_free close_receipt [17:14:49]json_value_free [17:14:49]json_value_free done [17:14:49]process_json_proto returns [17:14:49]Send response to host [17:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191535,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:14:49]free response buf [17:14:49]execute_script done [17:14:49]execute_script returns [17:14:49]free content buf [17:14:49]Sock 9.Close socket [17:14:49]Sock 9.Thread stoped [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:22]accept exits with 8 [17:15:22]New connection [17:15:22]New thread 3066961252 created [17:15:22]Thread 3066817892 joined [17:15:22]Waiting for new connection... [17:15:22] Sock 8.Parse request [17:15:22]Sock 8.Check first char [17:15:22]Sock 8.First char is OK [17:15:22]request: POST /json_proto HTTP/1.0 [17:15:22]Method: POST [17:15:22]URL: /json_proto [17:15:22]Method is POST - this is cgi request [17:15:22]url: /json_proto [17:15:22]query_string will be loaded in cgi processing [17:15:22]execute_cgi json_proto POST (null) [17:15:22]execute_cgi path=json_proto method=POST [17:15:22]POST find Content-Length [17:15:22]Host: 172.17.63.131:8080 [17:15:22]Content-Length: 862 [17:15:22]Content-Type: application/json [17:15:22] [17:15:22]POST finish read [17:15:22]Found Content-Length = 862 [17:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:22]execute_script... [17:15: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)30834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:22]POST & json_proto [17:15:22]process_json_proto [17:15:22]json parsed OK: [17:15:22]protocol is kg_v1.0 [17:15:22]action value=close_receipt [17:15:22]process_action close_receipt [17:15:22]cmd_close_receipt [17:15:22]MH_GetDate [17:15:22]Write to MH i2c: F0 00 00 28 BD D4 [17:15:22]Write i2c OK [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: F0 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: F0 09 00 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: F0 09 00 28 BD 00 34 D2 1B 67 22 05 6E 64 5E [17:15:22]GetLastDocTimeStamp 1729876495 [17:15:22]current date 1729876532 [17:15:22]FM_GetShiftState [17:15:22]SAM_PROTO_GetShiftState [17:15:22]wFMCommunicate request_size=4 [17:15:22]MH_SAM_APDU [17:15:22]CAPDU: 80 13 01 00 [17:15:22]Write to MH i2c: E2 08 00 29 BD 80 13 01 00 00 00 00 00 63 [17:15:22]Write i2c OK [17:15:22]MH_I2C_Read... [17:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:22]Read from MH i2c: E2 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: E2 0E 00 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: E2 0E 00 29 BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 26 [17:15:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:15:22]wFMCommunicate OK [17:15:22]SAM_PROTO_GetShiftState done [17:15:22]FM_GetShiftState done [17:15:22]opened in 1729816399 [17:15:22]opened+sec_in_day 1729902799 [17:15:22]quantity*price = 10035 [17:15:22]sum+1 = 10036 [17:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.35 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 0.00 Безнал.: 100.35 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 275 25.10.2024 17:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191536 ФПД: 212864466138041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171533&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191536&fm=212864466138041&tin=02508201610067®Number=0000000000091776&sum=10035 [17:15:24]StoreToDocumentArchive [17:15:24]shift 540 fd 191536 [17:15:24]save to /storage/0540/doc_00191536 [17:15:24]save last doc name /storage/0540/doc_00191536 to /storage/kkm_last_doc_name [17:15:24]save OK [17:15:24]Clear old archive folders... [17:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:24]tlvbuf is 0178A170 [17:15:24]SAM_PROTO_ClearQueue [17:15:24]wFMCommunicate request_size=4 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 09 00 00 [17:15:24]Write to MH i2c: E2 08 00 36 BD 80 09 00 00 00 00 00 00 65 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 36 BD 00 90 00 67 [17:15:24]RAPDU: 90 00 [17:15:24]wFMCommunicate OK [17:15:24]SAM_PROTO_ClearQueue done [17:15:24]KKMCreateOFDPacket [17:15:24]OFDProtocolAddRootSTLVToBuf [17:15:24]FM_MakeSignedData [17:15:24]FM_MakeSignedData [17:15:24]SAM_PROTO_SignData [17:15:24]wFMCommunicate request_size=4 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 0D 01 02 [17:15:24]Write to MH i2c: E2 08 00 37 BD 80 0D 01 02 00 00 00 00 6D [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 37 BD 00 90 00 68 [17:15:24]RAPDU: 90 00 [17:15:24]wFMCommunicate OK [17:15:24]wFMCommunicate request_size=255 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 35 D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EC 02 00 35 04 06 00 C1 [17:15:24]Write to MH i2c: E2 02 01 38 BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 35 D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EC 02 00 35 04 06 00 C1 00 00 C8 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 38 BD 00 90 00 69 [17:15:24]RAPDU: 90 00 [17:15:24]wFMCommunicate OK [17:15:24]wFMCommunicate request_size=10 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 0D 02 02 05 99 5E E3 B3 B9 [17:15:24]Write to MH i2c: E2 0D 00 39 BD 80 0D 02 02 05 00 99 5E E3 B3 B9 00 00 C0 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 03 00 39 BD 00 90 00 6A [17:15:24]RAPDU: 90 00 [17:15:24]wFMCommunicate OK [17:15:24]wFMCommunicate request_size=4 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 0D 03 02 [17:15:24]Write to MH i2c: E2 08 00 3A BD 80 0D 03 02 00 00 00 00 72 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 0B 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 0B 00 3A BD 00 88 1C 51 9F 0E 65 85 E6 90 00 E5 [17:15:24]RAPDU: 88 1C 51 9F 0E 65 85 E6 90 00 [17:15:24]wFMCommunicate OK [17:15:24]SAM_PROTO_SignData done [17:15:24]FM_MakeSignedData done [17:15:24]CreateOFDProtocolMessage [17:15:24]wFMCommunicate request_size=4 [17:15:24]MH_SAM_APDU [17:15:24]CAPDU: 80 11 00 00 [17:15:24]Write to MH i2c: E2 08 00 3B BD 80 11 00 00 00 00 00 00 72 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:24]Read from MH i2c: E2 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 17 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: E2 17 00 3B BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [17:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:15:24]wFMCommunicate OK [17:15:24]CreateOFDProtocolMessage done [17:15:24]OFDSenderStorePacket 191536 [17:15:24]StoreOFDPacket docnum=191536 [17:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 1B 07 01 F1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 35 D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EC 02 00 35 04 06 00 C1 99 5E E3 B3 B9 88 1C 51 9F 0E 65 85 E6 [17:15:24]CheckFolder [17:15:24]dirname=/storage/ofd_packets [17:15:24]CheckFolder done [17:15:24]ProducePacketName [17:15:24]name=ofd_packets/00191536 [17:15:24]NVStorageSaveData ofd_packets/00191536 [17:15:24]File name is /storage/ofd_packets/00191536 [17:15:24]Write 301 bytes [17:15:24]NVStorageSaveData done [17:15:24]OFDSenderStorePacket done [17:15:24]KKMCreateOFDPacket done [17:15:24]NVStorageSaveData kkm_last_timestamp [17:15:24]File name is /storage/kkm_last_timestamp [17:15:24]Write 4 bytes [17:15:24]NVStorageSaveData done [17:15:24]ExternCall_PrintAddStr [17:15:24]wPrintStart [17:15:24]Write to MH i2c: 01 00 00 3C BD F9 [17:15:24]Write i2c OK [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: 01 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: 01 07 00 [17:15:24]MH_I2C_Read... [17:15:24]Read from MH i2c: 01 07 00 3C BD 00 00 00 00 00 FF 0F 0E [17:15:24]RasterBufferAndPrint [17:15:24]line Счет N : (1)30834 [17:15:24]line ИНН: 02508201610067 [17:15:24]line Контрольно-Кассовый Чек [17:15:24]line ПРОДАЖА [17:15:24]line ТРК (МРК, ГНК) : 21 [17:15:24]line Товар: 2710124130 [17:15:24]line Аи-92-К-5 [17:15:24]line 1.500 * 66.90 [17:15:24]line = 100.35 [17:15:24]line НДС 12% НСП 1% [17:15:24]line > о реализуемом товаре [17:15:24]line ИТОГО: 100.35 [17:15:24]line НСП 1% : 0.89 [17:15:24]line НДС 12% : 10.66 [17:15:24]line Наличными: 0.00 [17:15:24]line Безнал.: 100.35 [17:15:24]line Место: АЗС № 170 "Партнер Нефть" [17:15:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:15:24]line СНО: Общий режим [17:15:24]line Чек 275 25.10.2024 17:15 [17:15:24]line Смена: 540 ФФД: 1.0 [17:15:24]line ЗНМ: 0300000110 [17:15:24]line РНМ: 0000000000091776 [17:15:24]line Версия ККМ: 001 [17:15:24]line Платежная система: Кыргызкоммерцбанк [17:15:24]line ФМ: 0000000000871754 [17:15:24]line ФД: 191536 [17:15:24]line ФПД: 212864466138041 [17:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171533&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191536&fm=212864466138041&tin=02508201610067®Number=0000000000091776&sum=10035 [17:15:24]OFD Sender: Processing packet 191536 [packets to send 75, broken 74] [17:15:24]ProducePacketName [17:15:24]name=ofd_packets/00191536 [17:15:24]OFD Sender: To server: pG, [17:15:24]CommunicateWithHost lk.salyk.kg:30040 [17:15:24]ConnectInit lk.salyk.kg [17:15:24]written 0, free lines is 4095 [17:15:25]Connected sock=10 [17:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 1B 07 01 F1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 35 D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EC 02 00 35 04 06 00 C1 99 5E E3 B3 B9 88 1C 51 9F 0E 65 85 E6 [17:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 94 A6 47 00 B7 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EC 02 00 F4 03 04 00 02 77 1B 67 B6 04 01 00 00 6A D9 21 65 AB C9 E7 C6 [17:15:25]CommunicateWithHost err = 0 [17:15:25]CheckOFDResponse [17:15:25]1017 (14) - 77093643461234 [17:15:25]1041 (16) - 0000000000871754 [17:15:25]1040 (4) - 191536 [17:15:25]1012 (4) - 25.10.2024 10:46 [17:15:25]1206 (1) - 0 [17:15:25]OFD Sender: Remove packet 191536 [17:15:25]ProducePacketName [17:15:25]name=ofd_packets/00191536 [17:15:25]NVStorageDeleteData [17:15:25]Write to MH i2c: 01 00 00 66 BD 23 [17:15:25]Write i2c OK [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: 01 [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: 01 07 00 [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: 01 07 00 66 BD 00 00 00 00 00 D4 0C 0A [17:15:25]RasterBufferAndPrint [17:15:25]line [17:15:25]line [17:15:25]line [17:15:25]line [17:15:25]line [17:15:25]written 0, free lines is 3290 [17:15:25]MH_Cut [17:15:25]Write to MH i2c: D1 01 00 6D BD 01 FC [17:15:25]Write i2c OK [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: D1 [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: D1 01 00 [17:15:25]MH_I2C_Read... [17:15:25]Read from MH i2c: D1 01 00 6D BD 00 FB [17:15:25]Write to MH i2c: 01 00 00 6E BD 2B [17:15:25]Write i2c OK [17:15:25]MH_I2C_Read... [17:15:25]OFD Sender: No OFD packet to send [17:15:26]*** Cut start [17:15:26]*** Partial cut [17:15:26]*** CUTSNS_PIN = 1 [17:15:26]*** CUTSNS_PIN = 0 [17:15:26]*** Brake cut motor [17:15:26]Read from MH i2c: 01 [17:15:26]MH_I2C_Read... [17:15:26]*** Stop cut motor [17:15:26]*** Cut end [17:15:26]Read from MH i2c: 01 07 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: 01 07 00 6E BD 00 00 00 00 00 FF 0F 40 [17:15:26]process_action close_receipt done [17:15:26]requested_data is exist [17:15:26]produce_requested_data [17:15:26]requested_item fm.sn is exist - process it [17:15:26]wFMCommunicate request_size=4 [17:15:26]MH_SAM_APDU [17:15:26]CAPDU: 80 11 00 00 [17:15:26]Write to MH i2c: E2 08 00 6F BD 80 11 00 00 00 00 00 00 A6 [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:26]Read from MH i2c: E2 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 17 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 17 00 6F BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [17:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:15:26]wFMCommunicate OK [17:15:26]requested_item fd.num is exist - process it [17:15:26]SAM_PROTO_GetFieldsCounters [17:15:26]wFMCommunicate request_size=4 [17:15:26]MH_SAM_APDU [17:15:26]CAPDU: 80 13 00 00 [17:15:26]Write to MH i2c: E2 08 00 70 BD 80 13 00 00 00 00 00 00 A9 [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:26]Read from MH i2c: E2 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 62 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 62 00 70 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:27]wFMCommunicate OK [17:15:27]SAM_PROTO_GetFieldsCounters done [17:15:27]requested_item shift.num is exist - process it [17:15:27]requested_item shift.opened is exist - process it [17:15:27]req_shift_opened [17:15:27]FM_GetShiftState [17:15:27]SAM_PROTO_GetShiftState [17:15:27]wFMCommunicate request_size=4 [17:15:27]MH_SAM_APDU [17:15:27]CAPDU: 80 13 01 00 [17:15:27]Write to MH i2c: E2 08 00 71 BD 80 13 01 00 00 00 00 00 AB [17:15:27]Write i2c OK [17:15:27]MH_I2C_Read... [17:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:27]Read from MH i2c: E2 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 0E 00 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 0E 00 71 BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6E [17:15:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:15:27]wFMCommunicate OK [17:15:27]SAM_PROTO_GetShiftState done [17:15:27]FM_GetShiftState done [17:15:27]req_shift_opened done [17:15:27]requested_item shift.open_date is exist - process it [17:15:27]req_shift_open_date [17:15:27]req_shift_open_date done [17:15:27]produce_requested_data done [17:15:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191536,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:15:27]process_action_free close_receipt [17:15:27]json_value_free [17:15:27]json_value_free done [17:15:27]process_json_proto returns [17:15:27]Send response to host [17:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191536,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:15:27]free response buf [17:15:27]execute_script done [17:15:27]execute_script returns [17:15:27]free content buf [17:15:27]Sock 8.Close socket [17:15:27]Sock 8.Thread stoped [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:44]accept exits with 9 [17:18:44]New connection [17:18:44]New thread 3066817892 created [17:18:44]Thread 3066961252 joined [17:18:44]Waiting for new connection... [17:18:44] Sock 9.Parse request [17:18:44]Sock 9.Check first char [17:18:44]Sock 9.First char is OK [17:18:44]request: POST /json_proto HTTP/1.0 [17:18:44]Method: POST [17:18:44]URL: /json_proto [17:18:44]Method is POST - this is cgi request [17:18:44]url: /json_proto [17:18:44]query_string will be loaded in cgi processing [17:18:44]execute_cgi json_proto POST (null) [17:18:44]execute_cgi path=json_proto method=POST [17:18:44]POST find Content-Length [17:18:44]Host: 172.17.63.131:8080 [17:18:44]Content-Length: 681 [17:18:44]Content-Type: application/json [17:18:44] [17:18:44]POST finish read [17:18:44]Found Content-Length = 681 [17:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:44]execute_script... [17:18: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)30835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:44]POST & json_proto [17:18:44]process_json_proto [17:18:44]json parsed OK: [17:18:44]protocol is kg_v1.0 [17:18:44]action value=close_receipt [17:18:44]process_action close_receipt [17:18:44]cmd_close_receipt [17:18:44]MH_GetDate [17:18:44]Write to MH i2c: F0 00 00 72 BD 1E [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: F0 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: F0 09 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: F0 09 00 72 BD 00 FE D2 1B 67 22 05 6E 64 72 [17:18:44]GetLastDocTimeStamp 1729876533 [17:18:44]current date 1729876734 [17:18:44]FM_GetShiftState [17:18:44]SAM_PROTO_GetShiftState [17:18:44]wFMCommunicate request_size=4 [17:18:44]MH_SAM_APDU [17:18:44]CAPDU: 80 13 01 00 [17:18:44]Write to MH i2c: E2 08 00 73 BD 80 13 01 00 00 00 00 00 AD [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:44]Read from MH i2c: E2 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 0E 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 0E 00 73 BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 70 [17:18:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:18:44]wFMCommunicate OK [17:18:44]SAM_PROTO_GetShiftState done [17:18:44]FM_GetShiftState done [17:18:44]opened in 1729816399 [17:18:44]opened+sec_in_day 1729902799 [17:18:44]quantity*price = 100015 [17:18:44]sum+1 = 100017 [17:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 276 25.10.2024 17:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191537 ФПД: 39538497509057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171854&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191537&fm=39538497509057&tin=02508201610067®Number=0000000000091776&sum=100000 [17:18:45]StoreToDocumentArchive [17:18:45]shift 540 fd 191537 [17:18:45]save to /storage/0540/doc_00191537 [17:18:45]save last doc name /storage/0540/doc_00191537 to /storage/kkm_last_doc_name [17:18:45]save OK [17:18:45]Clear old archive folders... [17:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:45]tlvbuf is 01708E50 [17:18:45]SAM_PROTO_ClearQueue [17:18:45]wFMCommunicate request_size=4 [17:18:45]MH_SAM_APDU [17:18:45]CAPDU: 80 09 00 00 [17:18:45]Write to MH i2c: E2 08 00 80 BD 80 09 00 00 00 00 00 00 AF [17:18:45]Write i2c OK [17:18:45]MH_I2C_Read... [17:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:45]Read from MH i2c: E2 [17:18:45]MH_I2C_Read... [17:18:45]Read from MH i2c: E2 03 00 [17:18:45]MH_I2C_Read... [17:18:45]Read from MH i2c: E2 03 00 80 BD 00 90 00 B1 [17:18:45]RAPDU: 90 00 [17:18:45]wFMCommunicate OK [17:18:45]SAM_PROTO_ClearQueue done [17:18:45]KKMCreateOFDPacket [17:18:45]OFDProtocolAddRootSTLVToBuf [17:18:45]FM_MakeSignedData [17:18:45]FM_MakeSignedData [17:18:45]SAM_PROTO_SignData [17:18:45]wFMCommunicate request_size=4 [17:18:45]MH_SAM_APDU [17:18:45]CAPDU: 80 0D 01 02 [17:18:45]Write to MH i2c: E2 08 00 81 BD 80 0D 01 02 00 00 00 00 B7 [17:18:45]Write i2c OK [17:18:45]MH_I2C_Read... [17:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:45]Read from MH i2c: E2 [17:18:45]MH_I2C_Read... [17:18:45]Read from MH i2c: E2 03 00 [17:18:45]MH_I2C_Read... [17:18:45]Read from MH i2c: E2 03 00 81 BD 00 90 00 B2 [17:18:45]RAPDU: 90 00 [17:18:45]wFMCommunicate OK [17:18:45]wFMCommunicate request_size=255 [17:18:45]MH_SAM_APDU [17:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FE D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EC 02 00 35 04 06 00 23 [17:18:45]Write to MH i2c: E2 02 01 82 BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FE D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EC 02 00 35 04 06 00 23 00 00 0C [17:18:45]Write i2c OK [17:18:45]MH_I2C_Read... [17:18:46]OFD Sender: No OFD packet to send [17:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 03 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 03 00 82 BD 00 90 00 B3 [17:18:46]RAPDU: 90 00 [17:18:46]wFMCommunicate OK [17:18:46]wFMCommunicate request_size=10 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 0D 02 02 05 F5 C6 19 56 C1 [17:18:46]Write to MH i2c: E2 0D 00 83 BD 80 0D 02 02 05 00 F5 C6 19 56 C1 00 00 AF [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 03 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 03 00 83 BD 00 90 00 B4 [17:18:46]RAPDU: 90 00 [17:18:46]wFMCommunicate OK [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 0D 03 02 [17:18:46]Write to MH i2c: E2 08 00 84 BD 80 0D 03 02 00 00 00 00 BC [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0B 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0B 00 84 BD 00 F7 85 A4 DF E3 D3 AF B8 90 00 D9 [17:18:46]RAPDU: F7 85 A4 DF E3 D3 AF B8 90 00 [17:18:46]wFMCommunicate OK [17:18:46]SAM_PROTO_SignData done [17:18:46]FM_MakeSignedData done [17:18:46]CreateOFDProtocolMessage [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 11 00 00 [17:18:46]Write to MH i2c: E2 08 00 85 BD 80 11 00 00 00 00 00 00 BC [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 17 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 17 00 85 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [17:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:18:46]wFMCommunicate OK [17:18:46]CreateOFDProtocolMessage done [17:18:46]OFDSenderStorePacket 191537 [17:18:46]StoreOFDPacket docnum=191537 [17:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 29 07 01 3E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FE D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EC 02 00 35 04 06 00 23 F5 C6 19 56 C1 F7 85 A4 DF E3 D3 AF B8 [17:18:46]CheckFolder [17:18:46]dirname=/storage/ofd_packets [17:18:46]CheckFolder done [17:18:46]ProducePacketName [17:18:46]name=ofd_packets/00191537 [17:18:46]NVStorageSaveData ofd_packets/00191537 [17:18:46]File name is /storage/ofd_packets/00191537 [17:18:46]Write 301 bytes [17:18:46]NVStorageSaveData done [17:18:46]OFDSenderStorePacket done [17:18:46]KKMCreateOFDPacket done [17:18:46]NVStorageSaveData kkm_last_timestamp [17:18:46]File name is /storage/kkm_last_timestamp [17:18:46]Write 4 bytes [17:18:46]NVStorageSaveData done [17:18:46]ExternCall_PrintAddStr [17:18:46]wPrintStart [17:18:46]Write to MH i2c: 01 00 00 86 BD 43 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 07 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 07 00 86 BD 00 00 00 00 00 FF 0F 58 [17:18:46]RasterBufferAndPrint [17:18:46]line Счет N : (1)30835 [17:18:46]line ИНН: 02508201610067 [17:18:46]line Контрольно-Кассовый Чек [17:18:46]line ПРОДАЖА [17:18:46]line ТРК (МРК, ГНК) : 21 [17:18:46]line Товар: 2710124130 [17:18:46]line Аи-92-К-5 [17:18:46]line 14.950 * 66.90 [17:18:46]line = 1000.16 [17:18:46]line НДС 12% НСП 1% [17:18:46]line > о реализуемом товаре [17:18:46]line ОКРУГЛЕНИЕ: -0.16 [17:18:46]line ИТОГО: 1000.00 [17:18:46]line Внесено: 1000.00 [17:18:46]line СДАЧА: 0.00 [17:18:46]line НСП 1% : 8.85 [17:18:46]line НДС 12% : 106.21 [17:18:46]line Наличными: 1000.00 [17:18:46]line Безнал.: 0.00 [17:18:46]line Место: АЗС № 170 "Партнер Нефть" [17:18:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:18:46]line СНО: Общий режим [17:18:46]line Чек 276 25.10.2024 17:18 [17:18:46]line Смена: 540 ФФД: 1.0 [17:18:46]line ЗНМ: 0300000110 [17:18:46]line РНМ: 0000000000091776 [17:18:46]line Версия ККМ: 001 [17:18:46]line ФМ: 0000000000871754 [17:18:46]line ФД: 191537 [17:18:46]line ФПД: 39538497509057 [17:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171854&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191537&fm=39538497509057&tin=02508201610067®Number=0000000000091776&sum=100000 [17:18:46]written 0, free lines is 4095 [17:18:46]OFD Sender: Processing packet 191537 [packets to send 75, broken 74] [17:18:46]ProducePacketName [17:18:46]name=ofd_packets/00191537 [17:18:46]OFD Sender: To server: pG, [17:18:46]CommunicateWithHost lk.salyk.kg:30040 [17:18:46]ConnectInit lk.salyk.kg [17:18:46]Connected sock=10 [17:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 29 07 01 3E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FE D2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EC 02 00 35 04 06 00 23 F5 C6 19 56 C1 F7 85 A4 DF E3 D3 AF B8 [17:18:46]Write to MH i2c: 01 00 00 B1 BD 6E [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 07 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 07 00 B1 BD 00 00 00 00 00 BF 0C 40 [17:18:46]RasterBufferAndPrint [17:18:46]line [17:18:46]line [17:18:46]line [17:18:46]line [17:18:46]line [17:18:46]written 0, free lines is 3270 [17:18:46]MH_Cut [17:18:46]Write to MH i2c: D1 01 00 B8 BD 01 47 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: D1 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: D1 01 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: D1 01 00 B8 BD 00 46 [17:18:46]Write to MH i2c: 01 00 00 B9 BD 76 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 7D 47 00 95 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 31 37 35 34 10 04 04 00 31 EC 02 00 F4 03 04 00 CC 77 1B 67 B6 04 01 00 00 AC FD 08 40 0F FC 09 88 [17:18:46]CommunicateWithHost err = 0 [17:18:46]CheckOFDResponse [17:18:46]1017 (14) - 77093643461234 [17:18:46]1041 (16) - 0000000000871754 [17:18:46]1040 (4) - 191537 [17:18:46]1012 (4) - 25.10.2024 10:49 [17:18:46]1206 (1) - 0 [17:18:46]OFD Sender: Remove packet 191537 [17:18:46]ProducePacketName [17:18:46]name=ofd_packets/00191537 [17:18:46]NVStorageDeleteData [17:18:47]OFD Sender: No OFD packet to send [17:18:47]*** Cut start [17:18:47]*** Partial cut [17:18:47]*** CUTSNS_PIN = 1 [17:18:47]*** CUTSNS_PIN = 0 [17:18:47]*** Brake cut motor [17:18:48]Read from MH i2c: 01 [17:18:48]MH_I2C_Read... [17:18:48]*** Stop cut motor [17:18:48]*** Cut end [17:18:48]Read from MH i2c: 01 07 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 B9 BD 00 00 00 00 00 FF 0F 8B [17:18:48]process_action close_receipt done [17:18:48]requested_data is exist [17:18:48]produce_requested_data [17:18:48]requested_item fm.sn is exist - process it [17:18:48]wFMCommunicate request_size=4 [17:18:48]MH_SAM_APDU [17:18:48]CAPDU: 80 11 00 00 [17:18:48]Write to MH i2c: E2 08 00 BA BD 80 11 00 00 00 00 00 00 F1 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:48]Read from MH i2c: E2 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 17 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 17 00 BA BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [17:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:18:48]wFMCommunicate OK [17:18:48]requested_item fd.num is exist - process it [17:18:48]SAM_PROTO_GetFieldsCounters [17:18:48]wFMCommunicate request_size=4 [17:18:48]MH_SAM_APDU [17:18:48]CAPDU: 80 13 00 00 [17:18:48]Write to MH i2c: E2 08 00 BB BD 80 13 00 00 00 00 00 00 F4 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:48]Read from MH i2c: E2 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 62 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 62 00 BB BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [17:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:48]wFMCommunicate OK [17:18:48]SAM_PROTO_GetFieldsCounters done [17:18:48]requested_item shift.num is exist - process it [17:18:48]requested_item shift.opened is exist - process it [17:18:48]req_shift_opened [17:18:48]FM_GetShiftState [17:18:48]SAM_PROTO_GetShiftState [17:18:48]wFMCommunicate request_size=4 [17:18:48]MH_SAM_APDU [17:18:48]CAPDU: 80 13 01 00 [17:18:48]Write to MH i2c: E2 08 00 BC BD 80 13 01 00 00 00 00 00 F6 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:48]Read from MH i2c: E2 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 BC BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B9 [17:18:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:18:48]wFMCommunicate OK [17:18:48]SAM_PROTO_GetShiftState done [17:18:48]FM_GetShiftState done [17:18:48]req_shift_opened done [17:18:48]requested_item shift.open_date is exist - process it [17:18:48]req_shift_open_date [17:18:48]req_shift_open_date done [17:18:48]produce_requested_data done [17:18:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191537,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:18:48]process_action_free close_receipt [17:18:48]json_value_free [17:18:48]json_value_free done [17:18:48]process_json_proto returns [17:18:48]Send response to host [17:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191537,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:18:48]free response buf [17:18:48]execute_script done [17:18:48]execute_script returns [17:18:48]free content buf [17:18:48]Sock 9.Close socket [17:18:48]Sock 9.Thread stoped [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:28]accept exits with 8 [17:19:28]New connection [17:19:28]New thread 3066961252 created [17:19:28]Thread 3066817892 joined [17:19:28]Waiting for new connection... [17:19:28] Sock 8.Parse request [17:19:28]Sock 8.Check first char [17:19:28]Sock 8.First char is OK [17:19:28]request: POST /json_proto HTTP/1.0 [17:19:28]Method: POST [17:19:28]URL: /json_proto [17:19:28]Method is POST - this is cgi request [17:19:28]url: /json_proto [17:19:28]query_string will be loaded in cgi processing [17:19:28]execute_cgi json_proto POST (null) [17:19:28]execute_cgi path=json_proto method=POST [17:19:28]POST find Content-Length [17:19:28]Host: 172.17.63.131:8080 [17:19:28]Content-Length: 681 [17:19:28]Content-Type: application/json [17:19:28] [17:19:28]POST finish read [17:19:28]Found Content-Length = 681 [17:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:28]execute_script... [17:19: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)30836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:28]POST & json_proto [17:19:28]process_json_proto [17:19:28]json parsed OK: [17:19:28]protocol is kg_v1.0 [17:19:28]action value=close_receipt [17:19:28]process_action close_receipt [17:19:28]cmd_close_receipt [17:19:28]MH_GetDate [17:19:28]Write to MH i2c: F0 00 00 BD BD 69 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: F0 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: F0 09 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: F0 09 00 BD BD 00 2A D3 1B 67 22 05 6E 64 EA [17:19:28]GetLastDocTimeStamp 1729876734 [17:19:28]current date 1729876778 [17:19:28]FM_GetShiftState [17:19:28]SAM_PROTO_GetShiftState [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 13 01 00 [17:19:28]Write to MH i2c: E2 08 00 BE BD 80 13 01 00 00 00 00 00 F8 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0E 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0E 00 BE BD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BB [17:19:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:19:28]wFMCommunicate OK [17:19:28]SAM_PROTO_GetShiftState done [17:19:28]FM_GetShiftState done [17:19:28]opened in 1729816399 [17:19:28]opened+sec_in_day 1729902799 [17:19:28]quantity*price = 100015 [17:19:28]sum+1 = 100017 [17:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 277 25.10.2024 17:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191538 ФПД: 123604179001304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191538&fm=123604179001304&tin=02508201610067®Number=0000000000091776&sum=100000 [17:19:29]StoreToDocumentArchive [17:19:29]shift 540 fd 191538 [17:19:29]save to /storage/0540/doc_00191538 [17:19:29]save last doc name /storage/0540/doc_00191538 to /storage/kkm_last_doc_name [17:19:29]save OK [17:19:29]Clear old archive folders... [17:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:29]tlvbuf is 0183C520 [17:19:29]SAM_PROTO_ClearQueue [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 09 00 00 [17:19:29]Write to MH i2c: E2 08 00 CB BD 80 09 00 00 00 00 00 00 FA [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 03 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 03 00 CB BD 00 90 00 FC [17:19:29]RAPDU: 90 00 [17:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_ClearQueue done [17:19:29]KKMCreateOFDPacket [17:19:29]OFDProtocolAddRootSTLVToBuf [17:19:29]FM_MakeSignedData [17:19:29]FM_MakeSignedData [17:19:29]SAM_PROTO_SignData [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 0D 01 02 [17:19:29]Write to MH i2c: E2 08 00 CC BD 80 0D 01 02 00 00 00 00 02 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 03 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 03 00 CC BD 00 90 00 FD [17:19:29]RAPDU: 90 00 [17:19:29]wFMCommunicate OK [17:19:29]wFMCommunicate request_size=255 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2A D3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EC 02 00 35 04 06 00 70 [17:19:29]Write to MH i2c: E2 02 01 CD BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2A D3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EC 02 00 35 04 06 00 70 00 00 D3 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 CD BD 00 90 00 FE [17:19:30]RAPDU: 90 00 [17:19:30]wFMCommunicate OK [17:19:30]wFMCommunicate request_size=10 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 0D 02 02 05 6A D7 2E 9F D8 [17:19:30]Write to MH i2c: E2 0D 00 CE BD 80 0D 02 02 05 00 6A D7 2E 9F D8 00 00 F5 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 CE BD 00 90 00 FF [17:19:30]RAPDU: 90 00 [17:19:30]wFMCommunicate OK [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 0D 03 02 [17:19:30]Write to MH i2c: E2 08 00 CF BD 80 0D 03 02 00 00 00 00 07 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 0B 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 0B 00 CF BD 00 2E 20 82 EE CB AF DF E5 90 00 04 [17:19:30]RAPDU: 2E 20 82 EE CB AF DF E5 90 00 [17:19:30]wFMCommunicate OK [17:19:30]SAM_PROTO_SignData done [17:19:30]FM_MakeSignedData done [17:19:30]CreateOFDProtocolMessage [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 11 00 00 [17:19:30]Write to MH i2c: E2 08 00 D0 BD 80 11 00 00 00 00 00 00 07 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 17 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 17 00 D0 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [17:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:19:30]wFMCommunicate OK [17:19:30]CreateOFDProtocolMessage done [17:19:30]OFDSenderStorePacket 191538 [17:19:30]StoreOFDPacket docnum=191538 [17:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 C9 07 01 5F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2A D3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EC 02 00 35 04 06 00 70 6A D7 2E 9F D8 2E 20 82 EE CB AF DF E5 [17:19:30]CheckFolder [17:19:30]dirname=/storage/ofd_packets [17:19:30]CheckFolder done [17:19:30]ProducePacketName [17:19:30]name=ofd_packets/00191538 [17:19:30]NVStorageSaveData ofd_packets/00191538 [17:19:30]File name is /storage/ofd_packets/00191538 [17:19:30]Write 301 bytes [17:19:30]NVStorageSaveData done [17:19:30]OFDSenderStorePacket done [17:19:30]KKMCreateOFDPacket done [17:19:30]NVStorageSaveData kkm_last_timestamp [17:19:30]File name is /storage/kkm_last_timestamp [17:19:30]Write 4 bytes [17:19:30]NVStorageSaveData done [17:19:30]ExternCall_PrintAddStr [17:19:30]wPrintStart [17:19:30]Write to MH i2c: 01 00 00 D1 BD 8E [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: 01 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: 01 07 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: 01 07 00 D1 BD 00 00 00 00 00 FF 0F A3 [17:19:30]RasterBufferAndPrint [17:19:30]line Счет N : (1)30836 [17:19:30]line ИНН: 02508201610067 [17:19:30]line Контрольно-Кассовый Чек [17:19:30]line ПРОДАЖА [17:19:30]line ТРК (МРК, ГНК) : 21 [17:19:30]line Товар: 2710124130 [17:19:30]line Аи-92-К-5 [17:19:30]line 14.950 * 66.90 [17:19:30]line = 1000.16 [17:19:30]line НДС 12% НСП 1% [17:19:30]line > о реализуемом товаре [17:19:30]line ОКРУГЛЕНИЕ: -0.16 [17:19:30]line ИТОГО: 1000.00 [17:19:30]line Внесено: 1000.00 [17:19:30]line СДАЧА: 0.00 [17:19:30]line НСП 1% : 8.85 [17:19:30]line НДС 12% : 106.21 [17:19:30]line Наличными: 1000.00 [17:19:30]line Безнал.: 0.00 [17:19:30]line Место: АЗС № 170 "Партнер Нефть" [17:19:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:19:30]line СНО: Общий режим [17:19:30]line Чек 277 25.10.2024 17:19 [17:19:30]line Смена: 540 ФФД: 1.0 [17:19:30]line ЗНМ: 0300000110 [17:19:30]line РНМ: 0000000000091776 [17:19:30]line Версия ККМ: 001 [17:19:30]line ФМ: 0000000000871754 [17:19:30]line ФД: 191538 [17:19:30]line ФПД: 123604179001304 [17:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191538&fm=123604179001304&tin=02508201610067®Number=0000000000091776&sum=100000 [17:19:30]OFD Sender: Processing packet 191538 [packets to send 75, broken 74] [17:19:30]ProducePacketName [17:19:30]name=ofd_packets/00191538 [17:19:30]OFD Sender: To server: pG, [17:19:30]CommunicateWithHost lk.salyk.kg:30040 [17:19:30]ConnectInit lk.salyk.kg [17:19:30]written 0, free lines is 4095 [17:19:30]Connected sock=10 [17:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 C9 07 01 5F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2A D3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EC 02 00 35 04 06 00 70 6A D7 2E 9F D8 2E 20 82 EE CB AF DF E5 [17:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 16 47 00 12 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EC 02 00 F4 03 04 00 F8 77 1B 67 B6 04 01 00 00 1A 2E 51 92 B3 B6 17 0E [17:19:30]CommunicateWithHost err = 0 [17:19:30]CheckOFDResponse [17:19:30]1017 (14) - 77093643461234 [17:19:30]1041 (16) - 0000000000871754 [17:19:30]1040 (4) - 191538 [17:19:30]1012 (4) - 25.10.2024 10:50 [17:19:30]1206 (1) - 0 [17:19:30]OFD Sender: Remove packet 191538 [17:19:30]ProducePacketName [17:19:30]name=ofd_packets/00191538 [17:19:30]NVStorageDeleteData [17:19:31]Write to MH i2c: 01 00 00 FC BD B9 [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 07 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 07 00 FC BD 00 00 00 00 00 B8 0C 84 [17:19:31]RasterBufferAndPrint [17:19:31]line [17:19:31]line [17:19:31]line [17:19:31]line [17:19:31]line [17:19:31]written 0, free lines is 3260 [17:19:31]MH_Cut [17:19:31]Write to MH i2c: D1 01 00 03 BE 01 93 [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: D1 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: D1 01 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: D1 01 00 03 BE 00 92 [17:19:31]Write to MH i2c: 01 00 00 04 BE C2 [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]OFD Sender: No OFD packet to send [17:19:31]*** Cut start [17:19:31]*** Partial cut [17:19:31]*** CUTSNS_PIN = 1 [17:19:31]*** CUTSNS_PIN = 0 [17:19:32]*** Brake cut motor [17:19:32]Read from MH i2c: 01 [17:19:32]MH_I2C_Read... [17:19:32]*** Stop cut motor [17:19:32]*** Cut end [17:19:32]Read from MH i2c: 01 07 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 07 00 04 BE 00 00 00 00 00 FF 0F D7 [17:19:32]process_action close_receipt done [17:19:32]requested_data is exist [17:19:32]produce_requested_data [17:19:32]requested_item fm.sn is exist - process it [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 11 00 00 [17:19:32]Write to MH i2c: E2 08 00 05 BE 80 11 00 00 00 00 00 00 3D [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 17 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 17 00 05 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [17:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:19:32]wFMCommunicate OK [17:19:32]requested_item fd.num is exist - process it [17:19:32]SAM_PROTO_GetFieldsCounters [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 13 00 00 [17:19:32]Write to MH i2c: E2 08 00 06 BE 80 13 00 00 00 00 00 00 40 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 62 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 62 00 06 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:32]wFMCommunicate OK [17:19:32]SAM_PROTO_GetFieldsCounters done [17:19:32]requested_item shift.num is exist - process it [17:19:32]requested_item shift.opened is exist - process it [17:19:32]req_shift_opened [17:19:32]FM_GetShiftState [17:19:32]SAM_PROTO_GetShiftState [17:19:32]wFMCommunicate request_size=4 [17:19:32]MH_SAM_APDU [17:19:32]CAPDU: 80 13 01 00 [17:19:32]Write to MH i2c: E2 08 00 07 BE 80 13 01 00 00 00 00 00 42 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:32]Read from MH i2c: E2 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 0E 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: E2 0E 00 07 BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [17:19:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:19:32]wFMCommunicate OK [17:19:32]SAM_PROTO_GetShiftState done [17:19:32]FM_GetShiftState done [17:19:32]req_shift_opened done [17:19:32]requested_item shift.open_date is exist - process it [17:19:32]req_shift_open_date [17:19:32]req_shift_open_date done [17:19:32]produce_requested_data done [17:19:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191538,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:19:32]process_action_free close_receipt [17:19:32]json_value_free [17:19:32]json_value_free done [17:19:32]process_json_proto returns [17:19:32]Send response to host [17:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191538,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:19:32]free response buf [17:19:32]execute_script done [17:19:32]execute_script returns [17:19:32]free content buf [17:19:32]Sock 8.Close socket [17:19:32]Sock 8.Thread stoped [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:04]accept exits with 9 [17:24:04]New connection [17:24:04]New thread 3066817892 created [17:24:04]Thread 3066961252 joined [17:24:04]Waiting for new connection... [17:24:04] Sock 9.Parse request [17:24:04]Sock 9.Check first char [17:24:04]Sock 9.First char is OK [17:24:04]request: POST /json_proto HTTP/1.0 [17:24:04]Method: POST [17:24:04]URL: /json_proto [17:24:04]Method is POST - this is cgi request [17:24:04]url: /json_proto [17:24:04]query_string will be loaded in cgi processing [17:24:04]execute_cgi json_proto POST (null) [17:24:04]execute_cgi path=json_proto method=POST [17:24:04]POST find Content-Length [17:24:04]Host: 172.17.63.131:8080 [17:24:04]Content-Length: 676 [17:24:04]Content-Type: application/json [17:24:04] [17:24:04]POST finish read [17:24:04]Found Content-Length = 676 [17:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:04]execute_script... [17:24: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)30837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:04]POST & json_proto [17:24:04]process_json_proto [17:24:04]json parsed OK: [17:24:04]protocol is kg_v1.0 [17:24:04]action value=close_receipt [17:24:04]process_action close_receipt [17:24:04]cmd_close_receipt [17:24:04]MH_GetDate [17:24:04]Write to MH i2c: F0 00 00 08 BE B5 [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: F0 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: F0 09 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: F0 09 00 08 BE 00 3E D4 1B 67 22 05 6E 64 4B [17:24:04]GetLastDocTimeStamp 1729876778 [17:24:04]current date 1729877054 [17:24:04]FM_GetShiftState [17:24:04]SAM_PROTO_GetShiftState [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 13 01 00 [17:24:04]Write to MH i2c: E2 08 00 09 BE 80 13 01 00 00 00 00 00 44 [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 09 BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [17:24:04]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:24:04]wFMCommunicate OK [17:24:04]SAM_PROTO_GetShiftState done [17:24:04]FM_GetShiftState done [17:24:04]opened in 1729816399 [17:24:04]opened+sec_in_day 1729902799 [17:24:04]quantity*price = 50041 [17:24:04]sum+1 = 50042 [17:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 278 25.10.2024 17:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191539 ФПД: 152607966055157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172414&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191539&fm=152607966055157&tin=02508201610067®Number=0000000000091776&sum=50000 [17:24:05]StoreToDocumentArchive [17:24:05]shift 540 fd 191539 [17:24:05]save to /storage/0540/doc_00191539 [17:24:05]save last doc name /storage/0540/doc_00191539 to /storage/kkm_last_doc_name [17:24:05]save OK [17:24:05]Clear old archive folders... [17:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:05]tlvbuf is 016EB300 [17:24:05]SAM_PROTO_ClearQueue [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 09 00 00 [17:24:05]Write to MH i2c: E2 08 00 16 BE 80 09 00 00 00 00 00 00 46 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 16 BE 00 90 00 48 [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_ClearQueue done [17:24:05]KKMCreateOFDPacket [17:24:05]OFDProtocolAddRootSTLVToBuf [17:24:05]FM_MakeSignedData [17:24:05]FM_MakeSignedData [17:24:05]SAM_PROTO_SignData [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 01 02 [17:24:05]Write to MH i2c: E2 08 00 17 BE 80 0D 01 02 00 00 00 00 4E [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 17 BE 00 90 00 49 [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=255 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 3E D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EC 02 00 35 04 06 00 8A [17:24:05]Write to MH i2c: E2 02 01 18 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 3E D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EC 02 00 35 04 06 00 8A 00 00 56 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 18 BE 00 90 00 4A [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=10 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 02 02 05 CB CF 9B 4A F5 [17:24:05]Write to MH i2c: E2 0D 00 19 BE 80 0D 02 02 05 00 CB CF 9B 4A F5 00 00 CF [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 19 BE 00 90 00 4B [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 03 02 [17:24:05]Write to MH i2c: E2 08 00 1A BE 80 0D 03 02 00 00 00 00 53 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0B 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0B 00 1A BE 00 07 2A 67 94 1E 62 CF DF 90 00 AE [17:24:05]RAPDU: 07 2A 67 94 1E 62 CF DF 90 00 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_SignData done [17:24:05]FM_MakeSignedData done [17:24:05]CreateOFDProtocolMessage [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 11 00 00 [17:24:05]Write to MH i2c: E2 08 00 1B BE 80 11 00 00 00 00 00 00 53 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:06]Read from MH i2c: E2 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 17 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 17 00 1B BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [17:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:24:06]wFMCommunicate OK [17:24:06]CreateOFDProtocolMessage done [17:24:06]OFDSenderStorePacket 191539 [17:24:06]StoreOFDPacket docnum=191539 [17:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA A7 07 01 86 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 3E D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EC 02 00 35 04 06 00 8A CB CF 9B 4A F5 07 2A 67 94 1E 62 CF DF [17:24:06]CheckFolder [17:24:06]dirname=/storage/ofd_packets [17:24:06]CheckFolder done [17:24:06]ProducePacketName [17:24:06]name=ofd_packets/00191539 [17:24:06]NVStorageSaveData ofd_packets/00191539 [17:24:06]File name is /storage/ofd_packets/00191539 [17:24:06]Write 301 bytes [17:24:06]NVStorageSaveData done [17:24:06]OFDSenderStorePacket done [17:24:06]KKMCreateOFDPacket done [17:24:06]NVStorageSaveData kkm_last_timestamp [17:24:06]File name is /storage/kkm_last_timestamp [17:24:06]Write 4 bytes [17:24:06]NVStorageSaveData done [17:24:06]ExternCall_PrintAddStr [17:24:06]wPrintStart [17:24:06]Write to MH i2c: 01 00 00 1C BE DA [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 1C BE 00 00 00 00 00 FF 0F EF [17:24:06]RasterBufferAndPrint [17:24:06]line Счет N : (1)30837 [17:24:06]line ИНН: 02508201610067 [17:24:06]line Контрольно-Кассовый Чек [17:24:06]line ПРОДАЖА [17:24:06]line ТРК (МРК, ГНК) : 21 [17:24:06]line Товар: 2710124130 [17:24:06]line Аи-92-К-5 [17:24:06]line 7.480 * 66.90 [17:24:06]line = 500.41 [17:24:06]line НДС 12% НСП 1% [17:24:06]line > о реализуемом товаре [17:24:06]line ОКРУГЛЕНИЕ: -0.41 [17:24:06]line ИТОГО: 500.00 [17:24:06]line Внесено: 500.00 [17:24:06]line СДАЧА: 0.00 [17:24:06]line НСП 1% : 4.43 [17:24:06]line НДС 12% : 53.14 [17:24:06]line Наличными: 500.00 [17:24:06]line Безнал.: 0.00 [17:24:06]line Место: АЗС № 170 "Партнер Нефть" [17:24:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:24:06]line СНО: Общий режим [17:24:06]line Чек 278 25.10.2024 17:24 [17:24:06]line Смена: 540 ФФД: 1.0 [17:24:06]line ЗНМ: 0300000110 [17:24:06]line РНМ: 0000000000091776 [17:24:06]line Версия ККМ: 001 [17:24:06]line ФМ: 0000000000871754 [17:24:06]line ФД: 191539 [17:24:06]line ФПД: 152607966055157 [17:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172414&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191539&fm=152607966055157&tin=02508201610067®Number=0000000000091776&sum=50000 [17:24:06]OFD Sender: Processing packet 191539 [packets to send 75, broken 74] [17:24:06]ProducePacketName [17:24:06]name=ofd_packets/00191539 [17:24:06]OFD Sender: To server: pG, [17:24:06]CommunicateWithHost lk.salyk.kg:30040 [17:24:06]ConnectInit lk.salyk.kg [17:24:06]written 0, free lines is 4095 [17:24:06]Connected sock=10 [17:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA A7 07 01 86 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 3E D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EC 02 00 35 04 06 00 8A CB CF 9B 4A F5 07 2A 67 94 1E 62 CF DF [17:24:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 E6 47 00 FC 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EC 02 00 F4 03 04 00 0C 79 1B 67 B6 04 01 00 00 16 7E 03 EF 29 B8 1F 90 [17:24:06]CommunicateWithHost err = 0 [17:24:06]CheckOFDResponse [17:24:06]1017 (14) - 77093643461234 [17:24:06]1041 (16) - 0000000000871754 [17:24:06]1040 (4) - 191539 [17:24:06]1012 (4) - 25.10.2024 10:55 [17:24:06]1206 (1) - 0 [17:24:06]OFD Sender: Remove packet 191539 [17:24:06]ProducePacketName [17:24:06]name=ofd_packets/00191539 [17:24:06]NVStorageDeleteData [17:24:06]Write to MH i2c: 01 00 00 47 BE 05 [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 47 BE 00 00 00 00 00 B6 0C CE [17:24:06]RasterBufferAndPrint [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]written 0, free lines is 3260 [17:24:06]MH_Cut [17:24:06]Write to MH i2c: D1 01 00 4E BE 01 DE [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 01 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 01 00 4E BE 00 DD [17:24:06]Write to MH i2c: 01 00 00 4F BE 0D [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:07]OFD Sender: No OFD packet to send [17:24:07]*** Cut start [17:24:07]*** Partial cut [17:24:07]*** CUTSNS_PIN = 1 [17:24:07]*** CUTSNS_PIN = 0 [17:24:07]*** Brake cut motor [17:24:08]Read from MH i2c: 01 [17:24:08]MH_I2C_Read... [17:24:08]*** Stop cut motor [17:24:08]*** Cut end [17:24:08]Read from MH i2c: 01 07 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 07 00 4F BE 00 00 00 00 00 FF 0F 22 [17:24:08]process_action close_receipt done [17:24:08]requested_data is exist [17:24:08]produce_requested_data [17:24:08]requested_item fm.sn is exist - process it [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 11 00 00 [17:24:08]Write to MH i2c: E2 08 00 50 BE 80 11 00 00 00 00 00 00 88 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 17 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 17 00 50 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [17:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:24:08]wFMCommunicate OK [17:24:08]requested_item fd.num is exist - process it [17:24:08]SAM_PROTO_GetFieldsCounters [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 13 00 00 [17:24:08]Write to MH i2c: E2 08 00 51 BE 80 13 00 00 00 00 00 00 8B [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 62 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 62 00 51 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_GetFieldsCounters done [17:24:08]requested_item shift.num is exist - process it [17:24:08]requested_item shift.opened is exist - process it [17:24:08]req_shift_opened [17:24:08]FM_GetShiftState [17:24:08]SAM_PROTO_GetShiftState [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 13 01 00 [17:24:08]Write to MH i2c: E2 08 00 52 BE 80 13 01 00 00 00 00 00 8D [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0E 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0E 00 52 BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 50 [17:24:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_GetShiftState done [17:24:08]FM_GetShiftState done [17:24:08]req_shift_opened done [17:24:08]requested_item shift.open_date is exist - process it [17:24:08]req_shift_open_date [17:24:08]req_shift_open_date done [17:24:08]produce_requested_data done [17:24:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191539,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:24:08]process_action_free close_receipt [17:24:08]json_value_free [17:24:08]json_value_free done [17:24:08]process_json_proto returns [17:24:08]Send response to host [17:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191539,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:24:08]free response buf [17:24:08]execute_script done [17:24:08]execute_script returns [17:24:08]free content buf [17:24:08]Sock 9.Close socket [17:24:08]Sock 9.Thread stoped [17:24:09]accept exits with 8 [17:24:09]New connection [17:24:09]New thread 3066961252 created [17:24:09]Thread 3066817892 joined [17:24:09]Waiting for new connection... [17:24:09] Sock 8.Parse request [17:24:09]Sock 8.Check first char [17:24:09]Sock 8.First char is OK [17:24:09]request: POST /json_proto HTTP/1.0 [17:24:09]Method: POST [17:24:09]URL: /json_proto [17:24:09]Method is POST - this is cgi request [17:24:09]url: /json_proto [17:24:09]query_string will be loaded in cgi processing [17:24:09]execute_cgi json_proto POST (null) [17:24:09]execute_cgi path=json_proto method=POST [17:24:09]POST find Content-Length [17:24:09]Host: 172.17.63.131:8080 [17:24:09]Content-Length: 676 [17:24:09]Content-Type: application/json [17:24:09] [17:24:09]POST finish read [17:24:09]Found Content-Length = 676 [17:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]execute_script... [17:24:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]POST & json_proto [17:24:09]process_json_proto [17:24:09]json parsed OK: [17:24:09]protocol is kg_v1.0 [17:24:09]action value=close_receipt [17:24:09]process_action close_receipt [17:24:09]cmd_close_receipt [17:24:09]MH_GetDate [17:24:09]Write to MH i2c: F0 00 00 53 BE 00 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 53 BE 00 43 D4 1B 67 22 05 6E 64 9B [17:24:09]GetLastDocTimeStamp 1729877054 [17:24:09]current date 1729877059 [17:24:09]FM_GetShiftState [17:24:09]SAM_PROTO_GetShiftState [17:24:09]wFMCommunicate request_size=4 [17:24:09]MH_SAM_APDU [17:24:09]CAPDU: 80 13 01 00 [17:24:09]Write to MH i2c: E2 08 00 54 BE 80 13 01 00 00 00 00 00 8F [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:09]Read from MH i2c: E2 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 54 BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 52 [17:24:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:24:09]wFMCommunicate OK [17:24:09]SAM_PROTO_GetShiftState done [17:24:09]FM_GetShiftState done [17:24:09]opened in 1729816399 [17:24:09]opened+sec_in_day 1729902799 [17:24:09]quantity*price = 60009 [17:24:09]sum+1 = 60010 [17:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 279 25.10.2024 17:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191540 ФПД: 188196693998023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191540&fm=188196693998023&tin=02508201610067®Number=0000000000091776&sum=60000 [17:24:09]StoreToDocumentArchive [17:24:09]shift 540 fd 191540 [17:24:09]save to /storage/0540/doc_00191540 [17:24:09]save last doc name /storage/0540/doc_00191540 to /storage/kkm_last_doc_name [17:24:09]save OK [17:24:09]Clear old archive folders... [17:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:09]tlvbuf is 019D4E90 [17:24:09]SAM_PROTO_ClearQueue [17:24:09]wFMCommunicate request_size=4 [17:24:09]MH_SAM_APDU [17:24:09]CAPDU: 80 09 00 00 [17:24:09]Write to MH i2c: E2 08 00 61 BE 80 09 00 00 00 00 00 00 91 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 61 BE 00 90 00 93 [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]SAM_PROTO_ClearQueue done [17:24:10]KKMCreateOFDPacket [17:24:10]OFDProtocolAddRootSTLVToBuf [17:24:10]FM_MakeSignedData [17:24:10]FM_MakeSignedData [17:24:10]SAM_PROTO_SignData [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 01 02 [17:24:10]Write to MH i2c: E2 08 00 62 BE 80 0D 01 02 00 00 00 00 99 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 62 BE 00 90 00 94 [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]wFMCommunicate request_size=255 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 43 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EC 02 00 35 04 06 00 AB [17:24:10]Write to MH i2c: E2 02 01 63 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 43 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EC 02 00 35 04 06 00 AB 00 00 A6 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 63 BE 00 90 00 95 [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]wFMCommunicate request_size=10 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 02 02 05 29 F5 17 F9 C7 [17:24:10]Write to MH i2c: E2 0D 00 64 BE 80 0D 02 02 05 00 29 F5 17 F9 C7 00 00 9B [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 64 BE 00 90 00 96 [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 03 02 [17:24:10]Write to MH i2c: E2 08 00 65 BE 80 0D 03 02 00 00 00 00 9E [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0B 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0B 00 65 BE 00 23 D3 B5 27 EB 6E 17 7F 90 00 60 [17:24:10]RAPDU: 23 D3 B5 27 EB 6E 17 7F 90 00 [17:24:10]wFMCommunicate OK [17:24:10]SAM_PROTO_SignData done [17:24:10]FM_MakeSignedData done [17:24:10]CreateOFDProtocolMessage [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 11 00 00 [17:24:10]Write to MH i2c: E2 08 00 66 BE 80 11 00 00 00 00 00 00 9E [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 17 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 17 00 66 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [17:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:24:10]wFMCommunicate OK [17:24:10]CreateOFDProtocolMessage done [17:24:10]OFDSenderStorePacket 191540 [17:24:10]StoreOFDPacket docnum=191540 [17:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 9B 07 01 45 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 43 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EC 02 00 35 04 06 00 AB 29 F5 17 F9 C7 23 D3 B5 27 EB 6E 17 7F [17:24:10]CheckFolder [17:24:10]dirname=/storage/ofd_packets [17:24:10]CheckFolder done [17:24:10]ProducePacketName [17:24:10]name=ofd_packets/00191540 [17:24:10]NVStorageSaveData ofd_packets/00191540 [17:24:10]File name is /storage/ofd_packets/00191540 [17:24:10]Write 301 bytes [17:24:10]NVStorageSaveData done [17:24:10]OFDSenderStorePacket done [17:24:10]KKMCreateOFDPacket done [17:24:10]NVStorageSaveData kkm_last_timestamp [17:24:10]File name is /storage/kkm_last_timestamp [17:24:10]Write 4 bytes [17:24:10]NVStorageSaveData done [17:24:10]ExternCall_PrintAddStr [17:24:10]wPrintStart [17:24:10]Write to MH i2c: 01 00 00 67 BE 25 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: 01 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: 01 07 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: 01 07 00 67 BE 00 00 00 00 00 FF 0F 3A [17:24:10]RasterBufferAndPrint [17:24:10]line Счет N : (1)30838 [17:24:10]line ИНН: 02508201610067 [17:24:10]line Контрольно-Кассовый Чек [17:24:10]line ПРОДАЖА [17:24:10]line ТРК (МРК, ГНК) : 12 [17:24:10]line Товар: 2710124130 [17:24:10]line Аи-92-К-5 [17:24:10]line 8.970 * 66.90 [17:24:10]line = 600.09 [17:24:10]line НДС 12% НСП 1% [17:24:10]line > о реализуемом товаре [17:24:10]line ОКРУГЛЕНИЕ: -0.09 [17:24:10]line ИТОГО: 600.00 [17:24:10]line Внесено: 600.00 [17:24:10]line СДАЧА: 0.00 [17:24:10]line НСП 1% : 5.31 [17:24:10]line НДС 12% : 63.73 [17:24:10]line Наличными: 600.00 [17:24:10]line Безнал.: 0.00 [17:24:10]line Место: АЗС № 170 "Партнер Нефть" [17:24:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:24:10]line СНО: Общий режим [17:24:10]line Чек 279 25.10.2024 17:24 [17:24:10]line Смена: 540 ФФД: 1.0 [17:24:10]line ЗНМ: 0300000110 [17:24:10]line РНМ: 0000000000091776 [17:24:10]line Версия ККМ: 001 [17:24:11]line ФМ: 0000000000871754 [17:24:11]line ФД: 191540 [17:24:11]line ФПД: 188196693998023 [17:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191540&fm=188196693998023&tin=02508201610067®Number=0000000000091776&sum=60000 [17:24:11]OFD Sender: Processing packet 191540 [packets to send 75, broken 74] [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00191540 [17:24:11]OFD Sender: To server: pG, [17:24:11]CommunicateWithHost lk.salyk.kg:30040 [17:24:11]ConnectInit lk.salyk.kg [17:24:11]written 0, free lines is 4095 [17:24:11]Connected sock=10 [17:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 9B 07 01 45 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 43 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EC 02 00 35 04 06 00 AB 29 F5 17 F9 C7 23 D3 B5 27 EB 6E 17 7F [17:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 27 AE 47 00 76 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EC 02 00 F4 03 04 00 11 79 1B 67 B6 04 01 00 00 C2 C4 3E AC 4F DD C2 2B [17:24:11]CommunicateWithHost err = 0 [17:24:11]CheckOFDResponse [17:24:11]1017 (14) - 77093643461234 [17:24:11]1041 (16) - 0000000000871754 [17:24:11]1040 (4) - 191540 [17:24:11]1012 (4) - 25.10.2024 10:55 [17:24:11]1206 (1) - 0 [17:24:11]OFD Sender: Remove packet 191540 [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00191540 [17:24:11]NVStorageDeleteData [17:24:11]Write to MH i2c: 01 00 00 92 BE 50 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 92 BE 00 00 00 00 00 D0 0C 33 [17:24:11]RasterBufferAndPrint [17:24:11]line [17:24:11]line [17:24:11]line [17:24:11]line [17:24:11]line [17:24:11]written 0, free lines is 3296 [17:24:11]MH_Cut [17:24:11]Write to MH i2c: D1 01 00 99 BE 01 29 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: D1 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: D1 01 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: D1 01 00 99 BE 00 28 [17:24:11]Write to MH i2c: 01 00 00 9A BE 58 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:12]OFD Sender: No OFD packet to send [17:24:12]*** Cut start [17:24:12]*** Partial cut [17:24:12]*** CUTSNS_PIN = 1 [17:24:12]*** CUTSNS_PIN = 0 [17:24:12]*** Brake cut motor [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]*** Stop cut motor [17:24:13]*** Cut end [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 9A BE 00 00 00 00 00 FF 0F 6D [17:24:13]process_action close_receipt done [17:24:13]requested_data is exist [17:24:13]produce_requested_data [17:24:13]requested_item fm.sn is exist - process it [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 11 00 00 [17:24:13]Write to MH i2c: E2 08 00 9B BE 80 11 00 00 00 00 00 00 D3 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 9B BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [17:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:24:13]wFMCommunicate OK [17:24:13]requested_item fd.num is exist - process it [17:24:13]SAM_PROTO_GetFieldsCounters [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 00 00 [17:24:13]Write to MH i2c: E2 08 00 9C BE 80 13 00 00 00 00 00 00 D6 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 62 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 62 00 9C BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetFieldsCounters done [17:24:13]requested_item shift.num is exist - process it [17:24:13]requested_item shift.opened is exist - process it [17:24:13]req_shift_opened [17:24:13]FM_GetShiftState [17:24:13]SAM_PROTO_GetShiftState [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 01 00 [17:24:13]Write to MH i2c: E2 08 00 9D BE 80 13 01 00 00 00 00 00 D8 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 9D BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9B [17:24:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetShiftState done [17:24:13]FM_GetShiftState done [17:24:13]req_shift_opened done [17:24:13]requested_item shift.open_date is exist - process it [17:24:13]req_shift_open_date [17:24:13]req_shift_open_date done [17:24:13]produce_requested_data done [17:24:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191540,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:24:13]process_action_free close_receipt [17:24:13]json_value_free [17:24:13]json_value_free done [17:24:13]process_json_proto returns [17:24:13]Send response to host [17:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191540,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:24:13]free response buf [17:24:13]execute_script done [17:24:13]execute_script returns [17:24:13]free content buf [17:24:13]Sock 8.Close socket [17:24:13]Sock 8.Thread stoped [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]accept exits with 9 [17:25:27]New connection [17:25:27]New thread 3066817892 created [17:25:27]Thread 3066961252 joined [17:25:27]Waiting for new connection... [17:25:27] Sock 9.Parse request [17:25:27]Sock 9.Check first char [17:25:27]Sock 9.First char is OK [17:25:27]request: POST /json_proto HTTP/1.0 [17:25:27]Method: POST [17:25:27]URL: /json_proto [17:25:27]Method is POST - this is cgi request [17:25:27]url: /json_proto [17:25:27]query_string will be loaded in cgi processing [17:25:27]execute_cgi json_proto POST (null) [17:25:27]execute_cgi path=json_proto method=POST [17:25:27]POST find Content-Length [17:25:27]Host: 172.17.63.131:8080 [17:25:27]Content-Length: 676 [17:25:27]Content-Type: application/json [17:25:27] [17:25:27]POST finish read [17:25:27]Found Content-Length = 676 [17:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:27]execute_script... [17:25:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:27]POST & json_proto [17:25:27]process_json_proto [17:25:27]json parsed OK: [17:25:27]protocol is kg_v1.0 [17:25:27]action value=close_receipt [17:25:27]process_action close_receipt [17:25:27]cmd_close_receipt [17:25:27]MH_GetDate [17:25:27]Write to MH i2c: F0 00 00 9E BE 4B [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 09 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 09 00 9E BE 00 91 D4 1B 67 22 05 6E 64 34 [17:25:27]GetLastDocTimeStamp 1729877059 [17:25:27]current date 1729877137 [17:25:27]FM_GetShiftState [17:25:27]SAM_PROTO_GetShiftState [17:25:27]wFMCommunicate request_size=4 [17:25:27]MH_SAM_APDU [17:25:27]CAPDU: 80 13 01 00 [17:25:27]Write to MH i2c: E2 08 00 9F BE 80 13 01 00 00 00 00 00 DA [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:27]Read from MH i2c: E2 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: E2 0E 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: E2 0E 00 9F BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9D [17:25:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:25:27]wFMCommunicate OK [17:25:27]SAM_PROTO_GetShiftState done [17:25:27]FM_GetShiftState done [17:25:27]opened in 1729816399 [17:25:27]opened+sec_in_day 1729902799 [17:25:27]quantity*price = 30038 [17:25:27]sum+1 = 30039 [17:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 280 25.10.2024 17:25 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191541 ФПД: 207167099148472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172537&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191541&fm=207167099148472&tin=02508201610067®Number=0000000000091776&sum=30000 [17:25:28]StoreToDocumentArchive [17:25:28]shift 540 fd 191541 [17:25:28]save to /storage/0540/doc_00191541 [17:25:28]save last doc name /storage/0540/doc_00191541 to /storage/kkm_last_doc_name [17:25:28]save OK [17:25:28]Clear old archive folders... [17:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:28]tlvbuf is 01777480 [17:25:28]SAM_PROTO_ClearQueue [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 09 00 00 [17:25:28]Write to MH i2c: E2 08 00 AC BE 80 09 00 00 00 00 00 00 DC [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 AC BE 00 90 00 DE [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_ClearQueue done [17:25:28]KKMCreateOFDPacket [17:25:28]OFDProtocolAddRootSTLVToBuf [17:25:28]FM_MakeSignedData [17:25:28]FM_MakeSignedData [17:25:28]SAM_PROTO_SignData [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 01 02 [17:25:28]Write to MH i2c: E2 08 00 AD BE 80 0D 01 02 00 00 00 00 E4 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 AD BE 00 90 00 DF [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]wFMCommunicate request_size=255 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 91 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EC 02 00 35 04 06 00 BC [17:25:28]Write to MH i2c: E2 02 01 AE BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 91 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EC 02 00 35 04 06 00 BC 00 00 69 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 AE BE 00 90 00 E0 [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]wFMCommunicate request_size=10 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 02 02 05 6A D9 5A 98 B8 [17:25:28]Write to MH i2c: E2 0D 00 AF BE 80 0D 02 02 05 00 6A D9 5A 98 B8 00 00 DE [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 AF BE 00 90 00 E1 [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 03 02 [17:25:28]Write to MH i2c: E2 08 00 B0 BE 80 0D 03 02 00 00 00 00 E9 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0B 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0B 00 B0 BE 00 0C 12 CA 2D 48 62 8F AB 90 00 E3 [17:25:28]RAPDU: 0C 12 CA 2D 48 62 8F AB 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_SignData done [17:25:28]FM_MakeSignedData done [17:25:28]CreateOFDProtocolMessage [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 11 00 00 [17:25:28]Write to MH i2c: E2 08 00 B1 BE 80 11 00 00 00 00 00 00 E9 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 B1 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [17:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:28]wFMCommunicate OK [17:25:28]CreateOFDProtocolMessage done [17:25:28]OFDSenderStorePacket 191541 [17:25:28]StoreOFDPacket docnum=191541 [17:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 7D 07 01 58 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 91 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EC 02 00 35 04 06 00 BC 6A D9 5A 98 B8 0C 12 CA 2D 48 62 8F AB [17:25:28]CheckFolder [17:25:28]dirname=/storage/ofd_packets [17:25:28]CheckFolder done [17:25:28]ProducePacketName [17:25:28]name=ofd_packets/00191541 [17:25:28]NVStorageSaveData ofd_packets/00191541 [17:25:28]File name is /storage/ofd_packets/00191541 [17:25:28]Write 301 bytes [17:25:28]NVStorageSaveData done [17:25:28]OFDSenderStorePacket done [17:25:28]KKMCreateOFDPacket done [17:25:28]NVStorageSaveData kkm_last_timestamp [17:25:28]File name is /storage/kkm_last_timestamp [17:25:28]Write 4 bytes [17:25:28]NVStorageSaveData done [17:25:28]ExternCall_PrintAddStr [17:25:28]wPrintStart [17:25:28]Write to MH i2c: 01 00 00 B2 BE 70 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: 01 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: 01 07 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: 01 07 00 B2 BE 00 00 00 00 00 FF 0F 85 [17:25:28]RasterBufferAndPrint [17:25:28]line Счет N : (1)30840 [17:25:28]line ИНН: 02508201610067 [17:25:28]line Контрольно-Кассовый Чек [17:25:28]line ПРОДАЖА [17:25:28]line ТРК (МРК, ГНК) : 21 [17:25:28]line Товар: 2710124130 [17:25:28]line Аи-92-К-5 [17:25:28]line 4.490 * 66.90 [17:25:28]line = 300.38 [17:25:28]line НДС 12% НСП 1% [17:25:28]line > о реализуемом товаре [17:25:28]line ОКРУГЛЕНИЕ: -0.38 [17:25:28]line ИТОГО: 300.00 [17:25:28]line Внесено: 300.00 [17:25:28]line СДАЧА: 0.00 [17:25:28]line НСП 1% : 2.66 [17:25:28]line НДС 12% : 31.90 [17:25:28]line Наличными: 300.00 [17:25:28]line Безнал.: 0.00 [17:25:28]line Место: АЗС № 170 "Партнер Нефть" [17:25:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:25:28]line СНО: Общий режим [17:25:28]line Чек 280 25.10.2024 17:25 [17:25:28]line Смена: 540 ФФД: 1.0 [17:25:28]line ЗНМ: 0300000110 [17:25:28]line РНМ: 0000000000091776 [17:25:28]line Версия ККМ: 001 [17:25:28]line ФМ: 0000000000871754 [17:25:28]line ФД: 191541 [17:25:28]line ФПД: 207167099148472 [17:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172537&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191541&fm=207167099148472&tin=02508201610067®Number=0000000000091776&sum=30000 [17:25:29]OFD Sender: Processing packet 191541 [packets to send 75, broken 74] [17:25:29]ProducePacketName [17:25:29]name=ofd_packets/00191541 [17:25:29]OFD Sender: To server: pG, [17:25:29]CommunicateWithHost lk.salyk.kg:30040 [17:25:29]ConnectInit lk.salyk.kg [17:25:29]written 0, free lines is 4095 [17:25:29]Connected sock=10 [17:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 7D 07 01 58 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 91 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EC 02 00 35 04 06 00 BC 6A D9 5A 98 B8 0C 12 CA 2D 48 62 8F AB [17:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 3D 47 00 0A 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EC 02 00 F4 03 04 00 5F 79 1B 67 B6 04 01 00 00 1B C0 93 4D 6E 01 BD 49 [17:25:29]CommunicateWithHost err = 0 [17:25:29]CheckOFDResponse [17:25:29]1017 (14) - 77093643461234 [17:25:29]1041 (16) - 0000000000871754 [17:25:29]1040 (4) - 191541 [17:25:29]1012 (4) - 25.10.2024 10:56 [17:25:29]1206 (1) - 0 [17:25:29]OFD Sender: Remove packet 191541 [17:25:29]ProducePacketName [17:25:29]name=ofd_packets/00191541 [17:25:29]NVStorageDeleteData [17:25:29]Write to MH i2c: 01 00 00 DD BE 9B [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 DD BE 00 00 00 00 00 B1 0C 5F [17:25:29]RasterBufferAndPrint [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]written 0, free lines is 3256 [17:25:29]MH_Cut [17:25:29]Write to MH i2c: D1 01 00 E4 BE 01 74 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 01 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 01 00 E4 BE 00 73 [17:25:29]Write to MH i2c: 01 00 00 E5 BE A3 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]OFD Sender: No OFD packet to send [17:25:30]*** Cut start [17:25:30]*** Partial cut [17:25:30]*** CUTSNS_PIN = 1 [17:25:30]*** CUTSNS_PIN = 0 [17:25:30]*** Brake cut motor [17:25:30]Read from MH i2c: 01 [17:25:30]MH_I2C_Read... [17:25:30]*** Stop cut motor [17:25:30]*** Cut end [17:25:30]Read from MH i2c: 01 07 00 [17:25:30]MH_I2C_Read... [17:25:30]Read from MH i2c: 01 07 00 E5 BE 00 00 00 00 00 FF 0F B8 [17:25:30]process_action close_receipt done [17:25:30]requested_data is exist [17:25:30]produce_requested_data [17:25:30]requested_item fm.sn is exist - process it [17:25:30]wFMCommunicate request_size=4 [17:25:30]MH_SAM_APDU [17:25:30]CAPDU: 80 11 00 00 [17:25:30]Write to MH i2c: E2 08 00 E6 BE 80 11 00 00 00 00 00 00 1E [17:25:30]Write i2c OK [17:25:30]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 E6 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [17:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:31]wFMCommunicate OK [17:25:31]requested_item fd.num is exist - process it [17:25:31]SAM_PROTO_GetFieldsCounters [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 13 00 00 [17:25:31]Write to MH i2c: E2 08 00 E7 BE 80 13 00 00 00 00 00 00 21 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 62 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 62 00 E7 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_GetFieldsCounters done [17:25:31]requested_item shift.num is exist - process it [17:25:31]requested_item shift.opened is exist - process it [17:25:31]req_shift_opened [17:25:31]FM_GetShiftState [17:25:31]SAM_PROTO_GetShiftState [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 13 01 00 [17:25:31]Write to MH i2c: E2 08 00 E8 BE 80 13 01 00 00 00 00 00 23 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 E8 BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E6 [17:25:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_GetShiftState done [17:25:31]FM_GetShiftState done [17:25:31]req_shift_opened done [17:25:31]requested_item shift.open_date is exist - process it [17:25:31]req_shift_open_date [17:25:31]req_shift_open_date done [17:25:31]produce_requested_data done [17:25:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191541,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:25:31]process_action_free close_receipt [17:25:31]json_value_free [17:25:31]json_value_free done [17:25:31]process_json_proto returns [17:25:31]Send response to host [17:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191541,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:25:31]free response buf [17:25:31]execute_script done [17:25:31]execute_script returns [17:25:31]free content buf [17:25:31]Sock 9.Close socket [17:25:31]Sock 9.Thread stoped [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:37]accept exits with 8 [17:26:37]New connection [17:26:37]New thread 3066961252 created [17:26:37]Thread 3066817892 joined [17:26:37]Waiting for new connection... [17:26:37] Sock 8.Parse request [17:26:37]Sock 8.Check first char [17:26:37]Sock 8.First char is OK [17:26:37]request: POST /json_proto HTTP/1.0 [17:26:37]Method: POST [17:26:37]URL: /json_proto [17:26:37]Method is POST - this is cgi request [17:26:37]url: /json_proto [17:26:37]query_string will be loaded in cgi processing [17:26:37]execute_cgi json_proto POST (null) [17:26:37]execute_cgi path=json_proto method=POST [17:26:37]POST find Content-Length [17:26:37]Host: 172.17.63.131:8080 [17:26:37]Content-Length: 676 [17:26:37]Content-Type: application/json [17:26:37] [17:26:37]POST finish read [17:26:37]Found Content-Length = 676 [17:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:37]execute_script... [17:26: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)30841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:37]POST & json_proto [17:26:37]process_json_proto [17:26:37]json parsed OK: [17:26:37]protocol is kg_v1.0 [17:26:37]action value=close_receipt [17:26:37]process_action close_receipt [17:26:37]cmd_close_receipt [17:26:37]MH_GetDate [17:26:37]Write to MH i2c: F0 00 00 E9 BE 96 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 09 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 09 00 E9 BE 00 D7 D4 1B 67 22 05 6E 64 C5 [17:26:37]GetLastDocTimeStamp 1729877137 [17:26:37]current date 1729877207 [17:26:37]FM_GetShiftState [17:26:37]SAM_PROTO_GetShiftState [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 01 00 [17:26:37]Write to MH i2c: E2 08 00 EA BE 80 13 01 00 00 00 00 00 25 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 EA BE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E8 [17:26:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetShiftState done [17:26:37]FM_GetShiftState done [17:26:37]opened in 1729816399 [17:26:37]opened+sec_in_day 1729902799 [17:26:37]quantity*price = 40006 [17:26:37]sum+1 = 40007 [17:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 281 25.10.2024 17:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191542 ФПД: 231200456784651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191542&fm=231200456784651&tin=02508201610067®Number=0000000000091776&sum=40000 [17:26:38]StoreToDocumentArchive [17:26:38]shift 540 fd 191542 [17:26:38]save to /storage/0540/doc_00191542 [17:26:38]save last doc name /storage/0540/doc_00191542 to /storage/kkm_last_doc_name [17:26:38]save OK [17:26:38]Clear old archive folders... [17:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:38]tlvbuf is 015D8F70 [17:26:38]SAM_PROTO_ClearQueue [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 09 00 00 [17:26:38]Write to MH i2c: E2 08 00 F7 BE 80 09 00 00 00 00 00 00 27 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 F7 BE 00 90 00 29 [17:26:38]RAPDU: 90 00 [17:26:38]wFMCommunicate OK [17:26:38]SAM_PROTO_ClearQueue done [17:26:38]KKMCreateOFDPacket [17:26:38]OFDProtocolAddRootSTLVToBuf [17:26:38]FM_MakeSignedData [17:26:38]FM_MakeSignedData [17:26:38]SAM_PROTO_SignData [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 0D 01 02 [17:26:38]Write to MH i2c: E2 08 00 F8 BE 80 0D 01 02 00 00 00 00 2F [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 F8 BE 00 90 00 2A [17:26:38]RAPDU: 90 00 [17:26:38]wFMCommunicate OK [17:26:38]wFMCommunicate request_size=255 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D7 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EC 02 00 35 04 06 00 D2 [17:26:38]Write to MH i2c: E2 02 01 F9 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D7 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EC 02 00 35 04 06 00 D2 00 00 ED [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 F9 BE 00 90 00 2B [17:26:39]RAPDU: 90 00 [17:26:39]wFMCommunicate OK [17:26:39]wFMCommunicate request_size=10 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 0D 02 02 05 46 8D 19 3B 0B [17:26:39]Write to MH i2c: E2 0D 00 FA BE 80 0D 02 02 05 00 46 8D 19 3B 0B 00 00 6E [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 FA BE 00 90 00 2C [17:26:39]RAPDU: 90 00 [17:26:39]wFMCommunicate OK [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 0D 03 02 [17:26:39]Write to MH i2c: E2 08 00 FB BE 80 0D 03 02 00 00 00 00 34 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0B 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0B 00 FB BE 00 0C 7B B7 D3 0C B3 D5 98 90 00 72 [17:26:39]RAPDU: 0C 7B B7 D3 0C B3 D5 98 90 00 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_SignData done [17:26:39]FM_MakeSignedData done [17:26:39]CreateOFDProtocolMessage [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 11 00 00 [17:26:39]Write to MH i2c: E2 08 00 FC BE 80 11 00 00 00 00 00 00 34 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 FC BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [17:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:26:39]wFMCommunicate OK [17:26:39]CreateOFDProtocolMessage done [17:26:39]OFDSenderStorePacket 191542 [17:26:39]StoreOFDPacket docnum=191542 [17:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 18 07 01 AE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D7 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EC 02 00 35 04 06 00 D2 46 8D 19 3B 0B 0C 7B B7 D3 0C B3 D5 98 [17:26:39]CheckFolder [17:26:39]dirname=/storage/ofd_packets [17:26:39]CheckFolder done [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00191542 [17:26:39]NVStorageSaveData ofd_packets/00191542 [17:26:39]File name is /storage/ofd_packets/00191542 [17:26:39]Write 301 bytes [17:26:39]NVStorageSaveData done [17:26:39]OFDSenderStorePacket done [17:26:39]KKMCreateOFDPacket done [17:26:39]NVStorageSaveData kkm_last_timestamp [17:26:39]File name is /storage/kkm_last_timestamp [17:26:39]Write 4 bytes [17:26:39]NVStorageSaveData done [17:26:39]ExternCall_PrintAddStr [17:26:39]wPrintStart [17:26:39]Write to MH i2c: 01 00 00 FD BE BB [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 FD BE 00 00 00 00 00 FF 0F D0 [17:26:39]RasterBufferAndPrint [17:26:39]line Счет N : (1)30841 [17:26:39]line ИНН: 02508201610067 [17:26:39]line Контрольно-Кассовый Чек [17:26:39]line ПРОДАЖА [17:26:39]line ТРК (МРК, ГНК) : 12 [17:26:39]line Товар: 2710124130 [17:26:39]line Аи-92-К-5 [17:26:39]line 5.980 * 66.90 [17:26:39]line = 400.06 [17:26:39]line НДС 12% НСП 1% [17:26:39]line > о реализуемом товаре [17:26:39]line ОКРУГЛЕНИЕ: -0.06 [17:26:39]line ИТОГО: 400.00 [17:26:39]line Внесено: 400.00 [17:26:39]line СДАЧА: 0.00 [17:26:39]line НСП 1% : 3.54 [17:26:39]line НДС 12% : 42.48 [17:26:39]line Наличными: 400.00 [17:26:39]line Безнал.: 0.00 [17:26:39]line Место: АЗС № 170 "Партнер Нефть" [17:26:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:26:39]line СНО: Общий режим [17:26:39]line Чек 281 25.10.2024 17:26 [17:26:39]line Смена: 540 ФФД: 1.0 [17:26:39]line ЗНМ: 0300000110 [17:26:39]line РНМ: 0000000000091776 [17:26:39]line Версия ККМ: 001 [17:26:39]line ФМ: 0000000000871754 [17:26:39]line ФД: 191542 [17:26:39]line ФПД: 231200456784651 [17:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191542&fm=231200456784651&tin=02508201610067®Number=0000000000091776&sum=40000 [17:26:39]OFD Sender: Processing packet 191542 [packets to send 75, broken 74] [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00191542 [17:26:39]OFD Sender: To server: pG, [17:26:39]CommunicateWithHost lk.salyk.kg:30040 [17:26:39]ConnectInit lk.salyk.kg [17:26:39]written 0, free lines is 4095 [17:26:39]Connected sock=10 [17:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 18 07 01 AE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D7 D4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EC 02 00 35 04 06 00 D2 46 8D 19 3B 0B 0C 7B B7 D3 0C B3 D5 98 [17:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 BB 47 00 93 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EC 02 00 F4 03 04 00 A5 79 1B 67 B6 04 01 00 00 29 1A 19 DB D3 35 7B 40 [17:26:39]CommunicateWithHost err = 0 [17:26:39]CheckOFDResponse [17:26:39]1017 (14) - 77093643461234 [17:26:39]1041 (16) - 0000000000871754 [17:26:39]1040 (4) - 191542 [17:26:39]1012 (4) - 25.10.2024 10:57 [17:26:39]1206 (1) - 0 [17:26:39]OFD Sender: Remove packet 191542 [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00191542 [17:26:39]NVStorageDeleteData [17:26:40]Write to MH i2c: 01 00 00 28 BF E7 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: 01 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: 01 07 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: 01 07 00 28 BF 00 00 00 00 00 AF 0C A9 [17:26:40]RasterBufferAndPrint [17:26:40]line [17:26:40]line [17:26:40]line [17:26:40]line [17:26:40]line [17:26:40]written 0, free lines is 3253 [17:26:40]MH_Cut [17:26:40]Write to MH i2c: D1 01 00 2F BF 01 C0 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: D1 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: D1 01 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: D1 01 00 2F BF 00 BF [17:26:40]Write to MH i2c: 01 00 00 30 BF EF [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]OFD Sender: No OFD packet to send [17:26:40]*** Cut start [17:26:40]*** Partial cut [17:26:40]*** CUTSNS_PIN = 1 [17:26:40]*** CUTSNS_PIN = 0 [17:26:41]*** Brake cut motor [17:26:41]Read from MH i2c: 01 [17:26:41]MH_I2C_Read... [17:26:41]*** Stop cut motor [17:26:41]*** Cut end [17:26:41]Read from MH i2c: 01 07 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: 01 07 00 30 BF 00 00 00 00 00 FF 0F 04 [17:26:41]process_action close_receipt done [17:26:41]requested_data is exist [17:26:41]produce_requested_data [17:26:41]requested_item fm.sn is exist - process it [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 11 00 00 [17:26:41]Write to MH i2c: E2 08 00 31 BF 80 11 00 00 00 00 00 00 6A [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 17 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 17 00 31 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [17:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:26:41]wFMCommunicate OK [17:26:41]requested_item fd.num is exist - process it [17:26:41]SAM_PROTO_GetFieldsCounters [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 00 00 [17:26:41]Write to MH i2c: E2 08 00 32 BF 80 13 00 00 00 00 00 00 6D [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 62 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 62 00 32 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetFieldsCounters done [17:26:41]requested_item shift.num is exist - process it [17:26:41]requested_item shift.opened is exist - process it [17:26:41]req_shift_opened [17:26:41]FM_GetShiftState [17:26:41]SAM_PROTO_GetShiftState [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 01 00 [17:26:41]Write to MH i2c: E2 08 00 33 BF 80 13 01 00 00 00 00 00 6F [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 33 BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 32 [17:26:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetShiftState done [17:26:41]FM_GetShiftState done [17:26:41]req_shift_opened done [17:26:41]requested_item shift.open_date is exist - process it [17:26:41]req_shift_open_date [17:26:41]req_shift_open_date done [17:26:41]produce_requested_data done [17:26:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191542,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:26:41]process_action_free close_receipt [17:26:41]json_value_free [17:26:41]json_value_free done [17:26:41]process_json_proto returns [17:26:41]Send response to host [17:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191542,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:26:41]free response buf [17:26:41]execute_script done [17:26:41]execute_script returns [17:26:41]free content buf [17:26:41]Sock 8.Close socket [17:26:41]Sock 8.Thread stoped [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:46]accept exits with 9 [17:27:46]New connection [17:27:46]New thread 3066817892 created [17:27:46]Thread 3066961252 joined [17:27:46]Waiting for new connection... [17:27:46] Sock 9.Parse request [17:27:46]Sock 9.Check first char [17:27:46]Sock 9.First char is OK [17:27:46]request: POST /json_proto HTTP/1.0 [17:27:46]Method: POST [17:27:46]URL: /json_proto [17:27:46]Method is POST - this is cgi request [17:27:46]url: /json_proto [17:27:46]query_string will be loaded in cgi processing [17:27:46]execute_cgi json_proto POST (null) [17:27:46]execute_cgi path=json_proto method=POST [17:27:46]POST find Content-Length [17:27:46]Host: 172.17.63.131:8080 [17:27:46]Content-Length: 676 [17:27:46]Content-Type: application/json [17:27:46] [17:27:46]POST finish read [17:27:46]Found Content-Length = 676 [17:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:46]execute_script... [17:27: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)30842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:46]POST & json_proto [17:27:46]process_json_proto [17:27:46]json parsed OK: [17:27:46]protocol is kg_v1.0 [17:27:46]action value=close_receipt [17:27:46]process_action close_receipt [17:27:46]cmd_close_receipt [17:27:46]MH_GetDate [17:27:46]Write to MH i2c: F0 00 00 34 BF E2 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: F0 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: F0 09 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: F0 09 00 34 BF 00 1C D5 1B 67 22 05 6E 64 57 [17:27:46]GetLastDocTimeStamp 1729877207 [17:27:46]current date 1729877276 [17:27:46]FM_GetShiftState [17:27:46]SAM_PROTO_GetShiftState [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 13 01 00 [17:27:46]Write to MH i2c: E2 08 00 35 BF 80 13 01 00 00 00 00 00 71 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0E 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0E 00 35 BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 34 [17:27:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_GetShiftState done [17:27:46]FM_GetShiftState done [17:27:46]opened in 1729816399 [17:27:46]opened+sec_in_day 1729902799 [17:27:46]quantity*price = 20003 [17:27:46]sum+1 = 20004 [17:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 282 25.10.2024 17:27 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191543 ФПД: 8706259425652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191543&fm=8706259425652&tin=02508201610067®Number=0000000000091776&sum=20000 [17:27:47]StoreToDocumentArchive [17:27:47]shift 540 fd 191543 [17:27:47]save to /storage/0540/doc_00191543 [17:27:47]save last doc name /storage/0540/doc_00191543 to /storage/kkm_last_doc_name [17:27:47]save OK [17:27:47]Clear old archive folders... [17:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:47]tlvbuf is 01625020 [17:27:47]SAM_PROTO_ClearQueue [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 09 00 00 [17:27:47]Write to MH i2c: E2 08 00 42 BF 80 09 00 00 00 00 00 00 73 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 42 BF 00 90 00 75 [17:27:47]RAPDU: 90 00 [17:27:47]wFMCommunicate OK [17:27:47]SAM_PROTO_ClearQueue done [17:27:47]KKMCreateOFDPacket [17:27:47]OFDProtocolAddRootSTLVToBuf [17:27:47]FM_MakeSignedData [17:27:47]FM_MakeSignedData [17:27:47]SAM_PROTO_SignData [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 0D 01 02 [17:27:47]Write to MH i2c: E2 08 00 43 BF 80 0D 01 02 00 00 00 00 7B [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 43 BF 00 90 00 76 [17:27:47]RAPDU: 90 00 [17:27:47]wFMCommunicate OK [17:27:47]wFMCommunicate request_size=255 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 1C D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EC 02 00 35 04 06 00 07 [17:27:47]Write to MH i2c: E2 02 01 44 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 1C D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EC 02 00 35 04 06 00 07 00 00 A9 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 44 BF 00 90 00 77 [17:27:47]RAPDU: 90 00 [17:27:47]wFMCommunicate OK [17:27:47]wFMCommunicate request_size=10 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 0D 02 02 05 EB 15 80 19 74 [17:27:47]Write to MH i2c: E2 0D 00 45 BF 80 0D 02 02 05 00 EB 15 80 19 74 00 00 95 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 03 00 45 BF 00 90 00 78 [17:27:47]RAPDU: 90 00 [17:27:47]wFMCommunicate OK [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 0D 03 02 [17:27:47]Write to MH i2c: E2 08 00 46 BF 80 0D 03 02 00 00 00 00 80 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 0B 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 0B 00 46 BF 00 01 0A 13 B7 33 8D 39 E5 90 00 34 [17:27:47]RAPDU: 01 0A 13 B7 33 8D 39 E5 90 00 [17:27:47]wFMCommunicate OK [17:27:47]SAM_PROTO_SignData done [17:27:47]FM_MakeSignedData done [17:27:47]CreateOFDProtocolMessage [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 11 00 00 [17:27:47]Write to MH i2c: E2 08 00 47 BF 80 11 00 00 00 00 00 00 80 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 17 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 17 00 47 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [17:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:47]wFMCommunicate OK [17:27:47]CreateOFDProtocolMessage done [17:27:47]OFDSenderStorePacket 191543 [17:27:47]StoreOFDPacket docnum=191543 [17:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F6 5B 07 01 03 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 1C D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EC 02 00 35 04 06 00 07 EB 15 80 19 74 01 0A 13 B7 33 8D 39 E5 [17:27:47]CheckFolder [17:27:47]dirname=/storage/ofd_packets [17:27:47]CheckFolder done [17:27:47]ProducePacketName [17:27:47]name=ofd_packets/00191543 [17:27:47]NVStorageSaveData ofd_packets/00191543 [17:27:47]File name is /storage/ofd_packets/00191543 [17:27:47]Write 301 bytes [17:27:47]NVStorageSaveData done [17:27:47]OFDSenderStorePacket done [17:27:47]KKMCreateOFDPacket done [17:27:47]NVStorageSaveData kkm_last_timestamp [17:27:47]File name is /storage/kkm_last_timestamp [17:27:47]Write 4 bytes [17:27:47]NVStorageSaveData done [17:27:47]ExternCall_PrintAddStr [17:27:47]wPrintStart [17:27:47]Write to MH i2c: 01 00 00 48 BF 07 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 07 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 07 00 48 BF 00 00 00 00 00 FF 0F 1C [17:27:47]RasterBufferAndPrint [17:27:47]line Счет N : (1)30842 [17:27:47]line ИНН: 02508201610067 [17:27:47]line Контрольно-Кассовый Чек [17:27:47]line ПРОДАЖА [17:27:47]line ТРК (МРК, ГНК) : 12 [17:27:47]line Товар: 2710124130 [17:27:47]line Аи-92-К-5 [17:27:47]line 2.990 * 66.90 [17:27:47]line = 200.03 [17:27:47]line НДС 12% НСП 1% [17:27:47]line > о реализуемом товаре [17:27:47]line ОКРУГЛЕНИЕ: -0.03 [17:27:47]line ИТОГО: 200.00 [17:27:47]line Внесено: 200.00 [17:27:47]line СДАЧА: 0.00 [17:27:47]line НСП 1% : 1.77 [17:27:47]line НДС 12% : 21.24 [17:27:47]line Наличными: 200.00 [17:27:47]line Безнал.: 0.00 [17:27:47]line Место: АЗС № 170 "Партнер Нефть" [17:27:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:27:47]line СНО: Общий режим [17:27:47]line Чек 282 25.10.2024 17:27 [17:27:47]line Смена: 540 ФФД: 1.0 [17:27:47]line ЗНМ: 0300000110 [17:27:47]line РНМ: 0000000000091776 [17:27:47]line Версия ККМ: 001 [17:27:47]line ФМ: 0000000000871754 [17:27:47]line ФД: 191543 [17:27:47]line ФПД: 8706259425652 [17:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191543&fm=8706259425652&tin=02508201610067®Number=0000000000091776&sum=20000 [17:27:48]OFD Sender: Processing packet 191543 [packets to send 75, broken 74] [17:27:48]ProducePacketName [17:27:48]name=ofd_packets/00191543 [17:27:48]OFD Sender: To server: pG, [17:27:48]CommunicateWithHost lk.salyk.kg:30040 [17:27:48]ConnectInit lk.salyk.kg [17:27:48]written 0, free lines is 4095 [17:27:48]Connected sock=10 [17:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F6 5B 07 01 03 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 1C D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EC 02 00 35 04 06 00 07 EB 15 80 19 74 01 0A 13 B7 33 8D 39 E5 [17:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D4 75 47 00 A6 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 31 37 35 34 10 04 04 00 37 EC 02 00 F4 03 04 00 EA 79 1B 67 B6 04 01 00 00 80 14 53 9E 47 D7 EE F4 [17:27:48]CommunicateWithHost err = 0 [17:27:48]CheckOFDResponse [17:27:48]1017 (14) - 77093643461234 [17:27:48]1041 (16) - 0000000000871754 [17:27:48]1040 (4) - 191543 [17:27:48]1012 (4) - 25.10.2024 10:58 [17:27:48]1206 (1) - 0 [17:27:48]OFD Sender: Remove packet 191543 [17:27:48]ProducePacketName [17:27:48]name=ofd_packets/00191543 [17:27:48]NVStorageDeleteData [17:27:48]Write to MH i2c: 01 00 00 73 BF 32 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 07 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 07 00 73 BF 00 00 00 00 00 B6 0C FB [17:27:48]RasterBufferAndPrint [17:27:48]line [17:27:48]line [17:27:48]line [17:27:48]line [17:27:48]line [17:27:48]written 0, free lines is 3260 [17:27:48]MH_Cut [17:27:48]Write to MH i2c: D1 01 00 7A BF 01 0B [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: D1 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: D1 01 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: D1 01 00 7A BF 00 0A [17:27:48]Write to MH i2c: 01 00 00 7B BF 3A [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]OFD Sender: No OFD packet to send [17:27:49]*** Cut start [17:27:49]*** Partial cut [17:27:49]*** CUTSNS_PIN = 1 [17:27:49]*** CUTSNS_PIN = 0 [17:27:49]*** Brake cut motor [17:27:49]Read from MH i2c: 01 [17:27:49]MH_I2C_Read... [17:27:49]*** Stop cut motor [17:27:49]*** Cut end [17:27:49]Read from MH i2c: 01 07 00 [17:27:49]MH_I2C_Read... [17:27:49]Read from MH i2c: 01 07 00 7B BF 00 00 00 00 00 FF 0F 4F [17:27:49]process_action close_receipt done [17:27:49]requested_data is exist [17:27:49]produce_requested_data [17:27:49]requested_item fm.sn is exist - process it [17:27:49]wFMCommunicate request_size=4 [17:27:49]MH_SAM_APDU [17:27:49]CAPDU: 80 11 00 00 [17:27:49]Write to MH i2c: E2 08 00 7C BF 80 11 00 00 00 00 00 00 B5 [17:27:49]Write i2c OK [17:27:49]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 17 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 17 00 7C BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [17:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:50]wFMCommunicate OK [17:27:50]requested_item fd.num is exist - process it [17:27:50]SAM_PROTO_GetFieldsCounters [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 13 00 00 [17:27:50]Write to MH i2c: E2 08 00 7D BF 80 13 00 00 00 00 00 00 B8 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 62 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 62 00 7D BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:50]wFMCommunicate OK [17:27:50]SAM_PROTO_GetFieldsCounters done [17:27:50]requested_item shift.num is exist - process it [17:27:50]requested_item shift.opened is exist - process it [17:27:50]req_shift_opened [17:27:50]FM_GetShiftState [17:27:50]SAM_PROTO_GetShiftState [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 13 01 00 [17:27:50]Write to MH i2c: E2 08 00 7E BF 80 13 01 00 00 00 00 00 BA [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0E 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0E 00 7E BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7D [17:27:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:27:50]wFMCommunicate OK [17:27:50]SAM_PROTO_GetShiftState done [17:27:50]FM_GetShiftState done [17:27:50]req_shift_opened done [17:27:50]requested_item shift.open_date is exist - process it [17:27:50]req_shift_open_date [17:27:50]req_shift_open_date done [17:27:50]produce_requested_data done [17:27:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191543,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:27:50]process_action_free close_receipt [17:27:50]json_value_free [17:27:50]json_value_free done [17:27:50]process_json_proto returns [17:27:50]Send response to host [17:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191543,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:27:50]free response buf [17:27:50]execute_script done [17:27:50]execute_script returns [17:27:50]free content buf [17:27:50]Sock 9.Close socket [17:27:50]Sock 9.Thread stoped [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:37]accept exits with 8 [17:29:37]New connection [17:29:37]New thread 3066961252 created [17:29:37]Thread 3066817892 joined [17:29:37]Waiting for new connection... [17:29:37] Sock 8.Parse request [17:29:37]Sock 8.Check first char [17:29:37]Sock 8.First char is OK [17:29:37]request: POST /json_proto HTTP/1.0 [17:29:37]Method: POST [17:29:37]URL: /json_proto [17:29:37]Method is POST - this is cgi request [17:29:37]url: /json_proto [17:29:37]query_string will be loaded in cgi processing [17:29:37]execute_cgi json_proto POST (null) [17:29:37]execute_cgi path=json_proto method=POST [17:29:37]POST find Content-Length [17:29:37]Host: 172.17.63.131:8080 [17:29:37]Content-Length: 676 [17:29:37]Content-Type: application/json [17:29:37] [17:29:37]POST finish read [17:29:37]Found Content-Length = 676 [17:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:37]execute_script... [17:29: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)30843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:37]POST & json_proto [17:29:37]process_json_proto [17:29:37]json parsed OK: [17:29:37]protocol is kg_v1.0 [17:29:37]action value=close_receipt [17:29:37]process_action close_receipt [17:29:37]cmd_close_receipt [17:29:37]MH_GetDate [17:29:37]Write to MH i2c: F0 00 00 7F BF 2D [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 09 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 09 00 7F BF 00 8B D5 1B 67 22 05 6E 64 11 [17:29:37]GetLastDocTimeStamp 1729877276 [17:29:37]current date 1729877387 [17:29:37]FM_GetShiftState [17:29:37]SAM_PROTO_GetShiftState [17:29:37]wFMCommunicate request_size=4 [17:29:37]MH_SAM_APDU [17:29:37]CAPDU: 80 13 01 00 [17:29:37]Write to MH i2c: E2 08 00 80 BF 80 13 01 00 00 00 00 00 BC [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:37]Read from MH i2c: E2 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 0E 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 0E 00 80 BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7F [17:29:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:29:37]wFMCommunicate OK [17:29:37]SAM_PROTO_GetShiftState done [17:29:37]FM_GetShiftState done [17:29:37]opened in 1729816399 [17:29:37]opened+sec_in_day 1729902799 [17:29:37]quantity*price = 65026 [17:29:37]sum+1 = 65028 [17:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 283 25.10.2024 17:29 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191544 ФПД: 196500406804480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191544&fm=196500406804480&tin=02508201610067®Number=0000000000091776&sum=65000 [17:29:38]StoreToDocumentArchive [17:29:38]shift 540 fd 191544 [17:29:38]save to /storage/0540/doc_00191544 [17:29:38]save last doc name /storage/0540/doc_00191544 to /storage/kkm_last_doc_name [17:29:38]save OK [17:29:38]Clear old archive folders... [17:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:38]tlvbuf is 015B0ED0 [17:29:38]SAM_PROTO_ClearQueue [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 09 00 00 [17:29:38]Write to MH i2c: E2 08 00 8D BF 80 09 00 00 00 00 00 00 BE [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 8D BF 00 90 00 C0 [17:29:38]RAPDU: 90 00 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_ClearQueue done [17:29:38]KKMCreateOFDPacket [17:29:38]OFDProtocolAddRootSTLVToBuf [17:29:38]FM_MakeSignedData [17:29:38]FM_MakeSignedData [17:29:38]SAM_PROTO_SignData [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 0D 01 02 [17:29:38]Write to MH i2c: E2 08 00 8E BF 80 0D 01 02 00 00 00 00 C6 [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 8E BF 00 90 00 C1 [17:29:39]RAPDU: 90 00 [17:29:39]wFMCommunicate OK [17:29:39]wFMCommunicate request_size=255 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8B D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EC 02 00 35 04 06 00 B2 [17:29:39]Write to MH i2c: E2 02 01 8F BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8B D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EC 02 00 35 04 06 00 B2 00 00 41 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]OFD Sender: No OFD packet to send [17:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 8F BF 00 90 00 C2 [17:29:39]RAPDU: 90 00 [17:29:39]wFMCommunicate OK [17:29:39]wFMCommunicate request_size=10 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 0D 02 02 05 B7 50 F2 20 00 [17:29:39]Write to MH i2c: E2 0D 00 90 BF 80 0D 02 02 05 00 B7 50 F2 20 00 00 00 EC [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 90 BF 00 90 00 C3 [17:29:39]RAPDU: 90 00 [17:29:39]wFMCommunicate OK [17:29:39]wFMCommunicate request_size=4 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 0D 03 02 [17:29:39]Write to MH i2c: E2 08 00 91 BF 80 0D 03 02 00 00 00 00 CB [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 0B 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 0B 00 91 BF 00 97 39 BC 39 E3 18 AC F6 90 00 2E [17:29:39]RAPDU: 97 39 BC 39 E3 18 AC F6 90 00 [17:29:39]wFMCommunicate OK [17:29:39]SAM_PROTO_SignData done [17:29:39]FM_MakeSignedData done [17:29:39]CreateOFDProtocolMessage [17:29:39]wFMCommunicate request_size=4 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 11 00 00 [17:29:39]Write to MH i2c: E2 08 00 92 BF 80 11 00 00 00 00 00 00 CB [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 17 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 17 00 92 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [17:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:39]wFMCommunicate OK [17:29:39]CreateOFDProtocolMessage done [17:29:39]OFDSenderStorePacket 191544 [17:29:39]StoreOFDPacket docnum=191544 [17:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 87 07 01 42 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8B D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EC 02 00 35 04 06 00 B2 B7 50 F2 20 00 97 39 BC 39 E3 18 AC F6 [17:29:39]CheckFolder [17:29:39]dirname=/storage/ofd_packets [17:29:39]CheckFolder done [17:29:39]ProducePacketName [17:29:39]name=ofd_packets/00191544 [17:29:39]NVStorageSaveData ofd_packets/00191544 [17:29:39]File name is /storage/ofd_packets/00191544 [17:29:39]Write 301 bytes [17:29:39]NVStorageSaveData done [17:29:39]OFDSenderStorePacket done [17:29:39]KKMCreateOFDPacket done [17:29:39]NVStorageSaveData kkm_last_timestamp [17:29:39]File name is /storage/kkm_last_timestamp [17:29:39]Write 4 bytes [17:29:39]NVStorageSaveData done [17:29:39]ExternCall_PrintAddStr [17:29:39]wPrintStart [17:29:39]Write to MH i2c: 01 00 00 93 BF 52 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 93 BF 00 00 00 00 00 FF 0F 67 [17:29:39]RasterBufferAndPrint [17:29:39]line Счет N : (1)30843 [17:29:39]line ИНН: 02508201610067 [17:29:39]line Контрольно-Кассовый Чек [17:29:39]line ПРОДАЖА [17:29:39]line ТРК (МРК, ГНК) : 21 [17:29:39]line Товар: 2710124130 [17:29:39]line Аи-92-К-5 [17:29:39]line 9.720 * 66.90 [17:29:39]line = 650.27 [17:29:39]line НДС 12% НСП 1% [17:29:39]line > о реализуемом товаре [17:29:39]line ОКРУГЛЕНИЕ: -0.27 [17:29:39]line ИТОГО: 650.00 [17:29:39]line Внесено: 650.00 [17:29:39]line СДАЧА: 0.00 [17:29:39]line НСП 1% : 5.75 [17:29:39]line НДС 12% : 69.05 [17:29:39]line Наличными: 650.00 [17:29:39]line Безнал.: 0.00 [17:29:39]line Место: АЗС № 170 "Партнер Нефть" [17:29:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:29:39]line СНО: Общий режим [17:29:39]line Чек 283 25.10.2024 17:29 [17:29:39]line Смена: 540 ФФД: 1.0 [17:29:39]line ЗНМ: 0300000110 [17:29:39]line РНМ: 0000000000091776 [17:29:39]line Версия ККМ: 001 [17:29:39]line ФМ: 0000000000871754 [17:29:39]line ФД: 191544 [17:29:39]line ФПД: 196500406804480 [17:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191544&fm=196500406804480&tin=02508201610067®Number=0000000000091776&sum=65000 [17:29:39]OFD Sender: Processing packet 191544 [packets to send 75, broken 74] [17:29:39]ProducePacketName [17:29:39]name=ofd_packets/00191544 [17:29:39]OFD Sender: To server: pG, [17:29:39]CommunicateWithHost lk.salyk.kg:30040 [17:29:39]ConnectInit lk.salyk.kg [17:29:39]written 0, free lines is 4095 [17:29:39]Connected sock=10 [17:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 87 07 01 42 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 8B D5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EC 02 00 35 04 06 00 B2 B7 50 F2 20 00 97 39 BC 39 E3 18 AC F6 [17:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 A2 47 00 A8 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EC 02 00 F4 03 04 00 59 7A 1B 67 B6 04 01 00 00 3F 22 6B 8B AA FE F6 C3 [17:29:40]CommunicateWithHost err = 0 [17:29:40]CheckOFDResponse [17:29:40]1017 (14) - 77093643461234 [17:29:40]1041 (16) - 0000000000871754 [17:29:40]1040 (4) - 191544 [17:29:40]1012 (4) - 25.10.2024 11:00 [17:29:40]1206 (1) - 0 [17:29:40]OFD Sender: Remove packet 191544 [17:29:40]ProducePacketName [17:29:40]name=ofd_packets/00191544 [17:29:40]NVStorageDeleteData [17:29:40]Write to MH i2c: 01 00 00 BE BF 7D [17:29:40]Write i2c OK [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: 01 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: 01 07 00 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: 01 07 00 BE BF 00 00 00 00 00 BB 0C 4B [17:29:40]RasterBufferAndPrint [17:29:40]line [17:29:40]line [17:29:40]line [17:29:40]line [17:29:40]line [17:29:40]written 0, free lines is 3266 [17:29:40]MH_Cut [17:29:40]Write to MH i2c: D1 01 00 C5 BF 01 56 [17:29:40]Write i2c OK [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: D1 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: D1 01 00 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: D1 01 00 C5 BF 00 55 [17:29:40]Write to MH i2c: 01 00 00 C6 BF 85 [17:29:40]Write i2c OK [17:29:40]MH_I2C_Read... [17:29:40]OFD Sender: No OFD packet to send [17:29:41]*** Cut start [17:29:41]*** Partial cut [17:29:41]*** CUTSNS_PIN = 1 [17:29:41]*** CUTSNS_PIN = 0 [17:29:41]*** Brake cut motor [17:29:41]Read from MH i2c: 01 [17:29:41]MH_I2C_Read... [17:29:41]*** Stop cut motor [17:29:41]*** Cut end [17:29:41]Read from MH i2c: 01 07 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: 01 07 00 C6 BF 00 00 00 00 00 FF 0F 9A [17:29:41]process_action close_receipt done [17:29:41]requested_data is exist [17:29:41]produce_requested_data [17:29:41]requested_item fm.sn is exist - process it [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 11 00 00 [17:29:41]Write to MH i2c: E2 08 00 C7 BF 80 11 00 00 00 00 00 00 00 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 17 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 17 00 C7 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [17:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:41]wFMCommunicate OK [17:29:41]requested_item fd.num is exist - process it [17:29:41]SAM_PROTO_GetFieldsCounters [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 13 00 00 [17:29:41]Write to MH i2c: E2 08 00 C8 BF 80 13 00 00 00 00 00 00 03 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 62 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 62 00 C8 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [17:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:41]wFMCommunicate OK [17:29:41]SAM_PROTO_GetFieldsCounters done [17:29:41]requested_item shift.num is exist - process it [17:29:41]requested_item shift.opened is exist - process it [17:29:41]req_shift_opened [17:29:41]FM_GetShiftState [17:29:41]SAM_PROTO_GetShiftState [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 13 01 00 [17:29:41]Write to MH i2c: E2 08 00 C9 BF 80 13 01 00 00 00 00 00 05 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 0E 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 0E 00 C9 BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C8 [17:29:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:29:41]wFMCommunicate OK [17:29:41]SAM_PROTO_GetShiftState done [17:29:41]FM_GetShiftState done [17:29:41]req_shift_opened done [17:29:41]requested_item shift.open_date is exist - process it [17:29:41]req_shift_open_date [17:29:41]req_shift_open_date done [17:29:41]produce_requested_data done [17:29:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191544,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:29:41]process_action_free close_receipt [17:29:41]json_value_free [17:29:41]json_value_free done [17:29:41]process_json_proto returns [17:29:41]Send response to host [17:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191544,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:29:41]free response buf [17:29:41]execute_script done [17:29:41]execute_script returns [17:29:41]free content buf [17:29:41]Sock 8.Close socket [17:29:41]Sock 8.Thread stoped [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:36]accept exits with 9 [17:31:36]New connection [17:31:36]New thread 3066817892 created [17:31:36]Thread 3066961252 joined [17:31:36]Waiting for new connection... [17:31:36] Sock 9.Parse request [17:31:36]Sock 9.Check first char [17:31:36]Sock 9.First char is OK [17:31:36]request: POST /json_proto HTTP/1.0 [17:31:36]Method: POST [17:31:36]URL: /json_proto [17:31:36]Method is POST - this is cgi request [17:31:36]url: /json_proto [17:31:36]query_string will be loaded in cgi processing [17:31:36]execute_cgi json_proto POST (null) [17:31:36]execute_cgi path=json_proto method=POST [17:31:36]POST find Content-Length [17:31:36]Host: 172.17.63.131:8080 [17:31:36]Content-Length: 677 [17:31:36]Content-Type: application/json [17:31:36] [17:31:36]POST finish read [17:31:36]Found Content-Length = 677 [17:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:36]execute_script... [17:31: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)30844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:36]POST & json_proto [17:31:36]process_json_proto [17:31:36]json parsed OK: [17:31:36]protocol is kg_v1.0 [17:31:36]action value=close_receipt [17:31:36]process_action close_receipt [17:31:36]cmd_close_receipt [17:31:36]MH_GetDate [17:31:36]Write to MH i2c: F0 00 00 CA BF 78 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 09 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: F0 09 00 CA BF 00 02 D6 1B 67 22 05 6E 64 D4 [17:31:36]GetLastDocTimeStamp 1729877387 [17:31:36]current date 1729877506 [17:31:36]FM_GetShiftState [17:31:36]SAM_PROTO_GetShiftState [17:31:36]wFMCommunicate request_size=4 [17:31:36]MH_SAM_APDU [17:31:36]CAPDU: 80 13 01 00 [17:31:36]Write to MH i2c: E2 08 00 CB BF 80 13 01 00 00 00 00 00 07 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:36]Read from MH i2c: E2 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 0E 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 0E 00 CB BF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CA [17:31:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:31:36]wFMCommunicate OK [17:31:36]SAM_PROTO_GetShiftState done [17:31:36]FM_GetShiftState done [17:31:36]opened in 1729816399 [17:31:36]opened+sec_in_day 1729902799 [17:31:36]quantity*price = 70044 [17:31:36]sum+1 = 70045 [17:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 284 25.10.2024 17:31 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191545 ФПД: 158422645431544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191545&fm=158422645431544&tin=02508201610067®Number=0000000000091776&sum=70000 [17:31:37]StoreToDocumentArchive [17:31:37]shift 540 fd 191545 [17:31:37]save to /storage/0540/doc_00191545 [17:31:37]save last doc name /storage/0540/doc_00191545 to /storage/kkm_last_doc_name [17:31:37]save OK [17:31:37]Clear old archive folders... [17:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:37]tlvbuf is 016AFE90 [17:31:37]SAM_PROTO_ClearQueue [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 09 00 00 [17:31:37]Write to MH i2c: E2 08 00 D8 BF 80 09 00 00 00 00 00 00 09 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 D8 BF 00 90 00 0B [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]SAM_PROTO_ClearQueue done [17:31:37]KKMCreateOFDPacket [17:31:37]OFDProtocolAddRootSTLVToBuf [17:31:37]FM_MakeSignedData [17:31:37]FM_MakeSignedData [17:31:37]SAM_PROTO_SignData [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 01 02 [17:31:37]Write to MH i2c: E2 08 00 D9 BF 80 0D 01 02 00 00 00 00 11 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 D9 BF 00 90 00 0C [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]wFMCommunicate request_size=255 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 02 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EC 02 00 35 04 06 00 90 [17:31:37]Write to MH i2c: E2 02 01 DA BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 02 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EC 02 00 35 04 06 00 90 00 00 01 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 DA BF 00 90 00 0D [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=10 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 02 02 05 15 A5 81 5C F8 [17:31:38]Write to MH i2c: E2 0D 00 DB BF 80 0D 02 02 05 00 15 A5 81 5C F8 00 00 AD [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 03 00 DB BF 00 90 00 0E [17:31:38]RAPDU: 90 00 [17:31:38]wFMCommunicate OK [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 0D 03 02 [17:31:38]Write to MH i2c: E2 08 00 DC BF 80 0D 03 02 00 00 00 00 16 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 0B 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 0B 00 DC BF 00 94 B2 09 D3 04 A9 F9 74 90 00 53 [17:31:38]RAPDU: 94 B2 09 D3 04 A9 F9 74 90 00 [17:31:38]wFMCommunicate OK [17:31:38]SAM_PROTO_SignData done [17:31:38]FM_MakeSignedData done [17:31:38]CreateOFDProtocolMessage [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 11 00 00 [17:31:38]Write to MH i2c: E2 08 00 DD BF 80 11 00 00 00 00 00 00 16 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 DD BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [17:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:38]wFMCommunicate OK [17:31:38]CreateOFDProtocolMessage done [17:31:38]OFDSenderStorePacket 191545 [17:31:38]StoreOFDPacket docnum=191545 [17:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 9F 07 01 CA 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 02 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EC 02 00 35 04 06 00 90 15 A5 81 5C F8 94 B2 09 D3 04 A9 F9 74 [17:31:38]CheckFolder [17:31:38]dirname=/storage/ofd_packets [17:31:38]CheckFolder done [17:31:38]ProducePacketName [17:31:38]name=ofd_packets/00191545 [17:31:38]NVStorageSaveData ofd_packets/00191545 [17:31:38]File name is /storage/ofd_packets/00191545 [17:31:38]Write 301 bytes [17:31:38]NVStorageSaveData done [17:31:38]OFDSenderStorePacket done [17:31:38]KKMCreateOFDPacket done [17:31:38]NVStorageSaveData kkm_last_timestamp [17:31:38]File name is /storage/kkm_last_timestamp [17:31:38]Write 4 bytes [17:31:38]NVStorageSaveData done [17:31:38]ExternCall_PrintAddStr [17:31:38]wPrintStart [17:31:38]Write to MH i2c: 01 00 00 DE BF 9D [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 DE BF 00 00 00 00 00 FF 0F B2 [17:31:38]RasterBufferAndPrint [17:31:38]line Счет N : (1)30844 [17:31:38]line ИНН: 02508201610067 [17:31:38]line Контрольно-Кассовый Чек [17:31:38]line ПРОДАЖА [17:31:38]line ТРК (МРК, ГНК) : 12 [17:31:38]line Товар: 2710124130 [17:31:38]line Аи-92-К-5 [17:31:38]line 10.470 * 66.90 [17:31:38]line = 700.44 [17:31:38]line НДС 12% НСП 1% [17:31:38]line > о реализуемом товаре [17:31:38]line ОКРУГЛЕНИЕ: -0.44 [17:31:38]line ИТОГО: 700.00 [17:31:38]line Внесено: 700.00 [17:31:38]line СДАЧА: 0.00 [17:31:38]line НСП 1% : 6.20 [17:31:38]line НДС 12% : 74.38 [17:31:38]line Наличными: 700.00 [17:31:38]line Безнал.: 0.00 [17:31:38]line Место: АЗС № 170 "Партнер Нефть" [17:31:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:31:38]line СНО: Общий режим [17:31:38]line Чек 284 25.10.2024 17:31 [17:31:38]line Смена: 540 ФФД: 1.0 [17:31:38]line ЗНМ: 0300000110 [17:31:38]line РНМ: 0000000000091776 [17:31:38]line Версия ККМ: 001 [17:31:38]line ФМ: 0000000000871754 [17:31:38]line ФД: 191545 [17:31:38]line ФПД: 158422645431544 [17:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191545&fm=158422645431544&tin=02508201610067®Number=0000000000091776&sum=70000 [17:31:38]OFD Sender: Processing packet 191545 [packets to send 75, broken 74] [17:31:38]ProducePacketName [17:31:38]name=ofd_packets/00191545 [17:31:38]OFD Sender: To server: pG, [17:31:38]CommunicateWithHost lk.salyk.kg:30040 [17:31:38]ConnectInit lk.salyk.kg [17:31:38]written 0, free lines is 4095 [17:31:38]Connected sock=10 [17:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 9F 07 01 CA 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 02 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EC 02 00 35 04 06 00 90 15 A5 81 5C F8 94 B2 09 D3 04 A9 F9 74 [17:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 27 47 00 26 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EC 02 00 F4 03 04 00 D0 7A 1B 67 B6 04 01 00 00 E6 54 42 3D A1 57 E3 CE [17:31:39]CommunicateWithHost err = 0 [17:31:39]CheckOFDResponse [17:31:39]1017 (14) - 77093643461234 [17:31:39]1041 (16) - 0000000000871754 [17:31:39]1040 (4) - 191545 [17:31:39]1012 (4) - 25.10.2024 11:02 [17:31:39]1206 (1) - 0 [17:31:39]OFD Sender: Remove packet 191545 [17:31:39]ProducePacketName [17:31:39]name=ofd_packets/00191545 [17:31:39]NVStorageDeleteData [17:31:39]Write to MH i2c: 01 00 00 09 C0 C9 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: 01 07 00 09 C0 00 00 00 00 00 B6 0C 92 [17:31:39]RasterBufferAndPrint [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]line [17:31:39]written 0, free lines is 3260 [17:31:39]MH_Cut [17:31:39]Write to MH i2c: D1 01 00 10 C0 01 A2 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: D1 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: D1 01 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: D1 01 00 10 C0 00 A1 [17:31:39]Write to MH i2c: 01 00 00 11 C0 D1 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]OFD Sender: No OFD packet to send [17:31:39]*** Cut start [17:31:39]*** Partial cut [17:31:39]*** CUTSNS_PIN = 1 [17:31:39]*** CUTSNS_PIN = 0 [17:31:40]*** Brake cut motor [17:31:40]Read from MH i2c: 01 [17:31:40]MH_I2C_Read... [17:31:40]*** Stop cut motor [17:31:40]*** Cut end [17:31:40]Read from MH i2c: 01 07 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: 01 07 00 11 C0 00 00 00 00 00 FF 0F E6 [17:31:40]process_action close_receipt done [17:31:40]requested_data is exist [17:31:40]produce_requested_data [17:31:40]requested_item fm.sn is exist - process it [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 11 00 00 [17:31:40]Write to MH i2c: E2 08 00 12 C0 80 11 00 00 00 00 00 00 4C [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 17 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 17 00 12 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [17:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:40]wFMCommunicate OK [17:31:40]requested_item fd.num is exist - process it [17:31:40]SAM_PROTO_GetFieldsCounters [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 13 00 00 [17:31:40]Write to MH i2c: E2 08 00 13 C0 80 13 00 00 00 00 00 00 4F [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 62 00 13 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetFieldsCounters done [17:31:40]requested_item shift.num is exist - process it [17:31:40]requested_item shift.opened is exist - process it [17:31:40]req_shift_opened [17:31:40]FM_GetShiftState [17:31:40]SAM_PROTO_GetShiftState [17:31:40]wFMCommunicate request_size=4 [17:31:40]MH_SAM_APDU [17:31:40]CAPDU: 80 13 01 00 [17:31:40]Write to MH i2c: E2 08 00 14 C0 80 13 01 00 00 00 00 00 51 [17:31:40]Write i2c OK [17:31:40]MH_I2C_Read... [17:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:40]Read from MH i2c: E2 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 [17:31:40]MH_I2C_Read... [17:31:40]Read from MH i2c: E2 0E 00 14 C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 14 [17:31:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:31:40]wFMCommunicate OK [17:31:40]SAM_PROTO_GetShiftState done [17:31:40]FM_GetShiftState done [17:31:40]req_shift_opened done [17:31:40]requested_item shift.open_date is exist - process it [17:31:40]req_shift_open_date [17:31:40]req_shift_open_date done [17:31:40]produce_requested_data done [17:31:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191545,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:31:40]process_action_free close_receipt [17:31:40]json_value_free [17:31:40]json_value_free done [17:31:40]process_json_proto returns [17:31:40]Send response to host [17:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191545,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:31:40]free response buf [17:31:40]execute_script done [17:31:40]execute_script returns [17:31:40]free content buf [17:31:40]Sock 9.Close socket [17:31:40]Sock 9.Thread stoped [17:31:41]accept exits with 8 [17:31:41]New connection [17:31:41]New thread 3066961252 created [17:31:41]Thread 3066817892 joined [17:31:41]Waiting for new connection... [17:31:41] Sock 8.Parse request [17:31:41]Sock 8.Check first char [17:31:41]Sock 8.First char is OK [17:31:41]request: POST /json_proto HTTP/1.0 [17:31:41]Method: POST [17:31:41]URL: /json_proto [17:31:41]Method is POST - this is cgi request [17:31:41]url: /json_proto [17:31:41]query_string will be loaded in cgi processing [17:31:41]execute_cgi json_proto POST (null) [17:31:41]execute_cgi path=json_proto method=POST [17:31:41]POST find Content-Length [17:31:41]Host: 172.17.63.131:8080 [17:31:41]Content-Length: 676 [17:31:41]Content-Type: application/json [17:31:41] [17:31:41]POST finish read [17:31:41]Found Content-Length = 676 [17:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:41]execute_script... [17:31: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)30845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:41]POST & json_proto [17:31:41]process_json_proto [17:31:41]json parsed OK: [17:31:41]protocol is kg_v1.0 [17:31:41]action value=close_receipt [17:31:41]process_action close_receipt [17:31:41]cmd_close_receipt [17:31:41]MH_GetDate [17:31:41]Write to MH i2c: F0 00 00 15 C0 C4 [17:31:41]Write i2c OK [17:31:41]MH_I2C_Read... [17:31:41]Read from MH i2c: F0 [17:31:41]MH_I2C_Read... [17:31:41]Read from MH i2c: F0 09 00 [17:31:41]MH_I2C_Read... [17:31:41]Read from MH i2c: F0 09 00 15 C0 00 07 D6 1B 67 22 05 6E 64 25 [17:31:41]GetLastDocTimeStamp 1729877506 [17:31:41]current date 1729877511 [17:31:41]FM_GetShiftState [17:31:41]SAM_PROTO_GetShiftState [17:31:41]wFMCommunicate request_size=4 [17:31:41]MH_SAM_APDU [17:31:41]CAPDU: 80 13 01 00 [17:31:41]Write to MH i2c: E2 08 00 16 C0 80 13 01 00 00 00 00 00 53 [17:31:41]Write i2c OK [17:31:41]MH_I2C_Read... [17:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:41]Read from MH i2c: E2 [17:31:41]MH_I2C_Read... [17:31:41]Read from MH i2c: E2 0E 00 [17:31:41]MH_I2C_Read... [17:31:41]Read from MH i2c: E2 0E 00 16 C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 16 [17:31:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:31:41]wFMCommunicate OK [17:31:41]SAM_PROTO_GetShiftState done [17:31:41]FM_GetShiftState done [17:31:41]opened in 1729816399 [17:31:41]opened+sec_in_day 1729902799 [17:31:41]quantity*price = 20003 [17:31:41]sum+1 = 20004 [17:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 285 25.10.2024 17:31 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191546 ФПД: 174806363193847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191546&fm=174806363193847&tin=02508201610067®Number=0000000000091776&sum=20000 [17:31:42]StoreToDocumentArchive [17:31:42]shift 540 fd 191546 [17:31:42]save to /storage/0540/doc_00191546 [17:31:42]save last doc name /storage/0540/doc_00191546 to /storage/kkm_last_doc_name [17:31:42]save OK [17:31:42]Clear old archive folders... [17:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:42]tlvbuf is 019CEA10 [17:31:42]SAM_PROTO_ClearQueue [17:31:42]wFMCommunicate request_size=4 [17:31:42]MH_SAM_APDU [17:31:42]CAPDU: 80 09 00 00 [17:31:42]Write to MH i2c: E2 08 00 23 C0 80 09 00 00 00 00 00 00 55 [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:42]Read from MH i2c: E2 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 03 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 03 00 23 C0 00 90 00 57 [17:31:42]RAPDU: 90 00 [17:31:42]wFMCommunicate OK [17:31:42]SAM_PROTO_ClearQueue done [17:31:42]KKMCreateOFDPacket [17:31:42]OFDProtocolAddRootSTLVToBuf [17:31:42]FM_MakeSignedData [17:31:42]FM_MakeSignedData [17:31:42]SAM_PROTO_SignData [17:31:42]wFMCommunicate request_size=4 [17:31:42]MH_SAM_APDU [17:31:42]CAPDU: 80 0D 01 02 [17:31:42]Write to MH i2c: E2 08 00 24 C0 80 0D 01 02 00 00 00 00 5D [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:42]Read from MH i2c: E2 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 03 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 03 00 24 C0 00 90 00 58 [17:31:42]RAPDU: 90 00 [17:31:42]wFMCommunicate OK [17:31:42]wFMCommunicate request_size=255 [17:31:42]MH_SAM_APDU [17:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 07 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EC 02 00 35 04 06 00 9E [17:31:42]Write to MH i2c: E2 02 01 25 C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 07 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EC 02 00 35 04 06 00 9E 00 00 14 [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 25 C0 00 90 00 59 [17:31:43]RAPDU: 90 00 [17:31:43]wFMCommunicate OK [17:31:43]wFMCommunicate request_size=10 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 0D 02 02 05 FC 47 2E C1 F7 [17:31:43]Write to MH i2c: E2 0D 00 26 C0 80 0D 02 02 05 00 FC 47 2E C1 F7 00 00 93 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 26 C0 00 90 00 5A [17:31:43]RAPDU: 90 00 [17:31:43]wFMCommunicate OK [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 0D 03 02 [17:31:43]Write to MH i2c: E2 08 00 27 C0 80 0D 03 02 00 00 00 00 62 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 0B 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 0B 00 27 C0 00 A0 C4 D1 F0 AA C7 C2 BE 90 00 79 [17:31:43]RAPDU: A0 C4 D1 F0 AA C7 C2 BE 90 00 [17:31:43]wFMCommunicate OK [17:31:43]SAM_PROTO_SignData done [17:31:43]FM_MakeSignedData done [17:31:43]CreateOFDProtocolMessage [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 11 00 00 [17:31:43]Write to MH i2c: E2 08 00 28 C0 80 11 00 00 00 00 00 00 62 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 17 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 17 00 28 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [17:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:43]wFMCommunicate OK [17:31:43]CreateOFDProtocolMessage done [17:31:43]OFDSenderStorePacket 191546 [17:31:43]StoreOFDPacket docnum=191546 [17:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 66 07 01 57 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 07 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EC 02 00 35 04 06 00 9E FC 47 2E C1 F7 A0 C4 D1 F0 AA C7 C2 BE [17:31:43]CheckFolder [17:31:43]dirname=/storage/ofd_packets [17:31:43]CheckFolder done [17:31:43]ProducePacketName [17:31:43]name=ofd_packets/00191546 [17:31:43]NVStorageSaveData ofd_packets/00191546 [17:31:43]File name is /storage/ofd_packets/00191546 [17:31:43]Write 301 bytes [17:31:43]NVStorageSaveData done [17:31:43]OFDSenderStorePacket done [17:31:43]KKMCreateOFDPacket done [17:31:43]NVStorageSaveData kkm_last_timestamp [17:31:43]File name is /storage/kkm_last_timestamp [17:31:43]Write 4 bytes [17:31:43]NVStorageSaveData done [17:31:43]ExternCall_PrintAddStr [17:31:43]wPrintStart [17:31:43]Write to MH i2c: 01 00 00 29 C0 E9 [17:31:43]OFD Sender: Processing packet 191546 [packets to send 75, broken 74] [17:31:43]ProducePacketName [17:31:43]name=ofd_packets/00191546 [17:31:43]OFD Sender: To server: pG, [17:31:43]CommunicateWithHost lk.salyk.kg:30040 [17:31:43]ConnectInit lk.salyk.kg [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 07 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 07 00 29 C0 00 00 00 00 00 FF 0F FE [17:31:43]RasterBufferAndPrint [17:31:43]line Счет N : (1)30845 [17:31:43]line ИНН: 02508201610067 [17:31:43]line Контрольно-Кассовый Чек [17:31:43]line ПРОДАЖА [17:31:43]line ТРК (МРК, ГНК) : 21 [17:31:43]line Товар: 2710124130 [17:31:43]line Аи-92-К-5 [17:31:43]line 2.990 * 66.90 [17:31:43]line = 200.03 [17:31:43]line НДС 12% НСП 1% [17:31:43]line > о реализуемом товаре [17:31:43]line ОКРУГЛЕНИЕ: -0.03 [17:31:43]line ИТОГО: 200.00 [17:31:43]line Внесено: 200.00 [17:31:43]line СДАЧА: 0.00 [17:31:43]line НСП 1% : 1.77 [17:31:43]line НДС 12% : 21.24 [17:31:43]line Наличными: 200.00 [17:31:43]line Безнал.: 0.00 [17:31:43]line Место: АЗС № 170 "Партнер Нефть" [17:31:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:31:43]line СНО: Общий режим [17:31:43]line Чек 285 25.10.2024 17:31 [17:31:43]line Смена: 540 ФФД: 1.0 [17:31:43]line ЗНМ: 0300000110 [17:31:43]line РНМ: 0000000000091776 [17:31:43]line Версия ККМ: 001 [17:31:43]line ФМ: 0000000000871754 [17:31:43]line ФД: 191546 [17:31:43]line ФПД: 174806363193847 [17:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191546&fm=174806363193847&tin=02508201610067®Number=0000000000091776&sum=20000 [17:31:43]written 0, free lines is 4095 [17:31:43]Connected sock=11 [17:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 66 07 01 57 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 07 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EC 02 00 35 04 06 00 9E FC 47 2E C1 F7 A0 C4 D1 F0 AA C7 C2 BE [17:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 13 47 00 68 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 31 37 35 34 10 04 04 00 3A EC 02 00 F4 03 04 00 D5 7A 1B 67 B6 04 01 00 00 2B E5 4D F2 39 E3 F4 78 [17:31:43]CommunicateWithHost err = 0 [17:31:43]CheckOFDResponse [17:31:43]1017 (14) - 77093643461234 [17:31:43]1041 (16) - 0000000000871754 [17:31:43]1040 (4) - 191546 [17:31:43]1012 (4) - 25.10.2024 11:02 [17:31:43]1206 (1) - 0 [17:31:43]OFD Sender: Remove packet 191546 [17:31:43]ProducePacketName [17:31:43]name=ofd_packets/00191546 [17:31:43]NVStorageDeleteData [17:31:43]Write to MH i2c: 01 00 00 54 C0 14 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 07 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: 01 07 00 54 C0 00 00 00 00 00 C4 0C EB [17:31:43]RasterBufferAndPrint [17:31:43]line [17:31:43]line [17:31:43]line [17:31:43]line [17:31:43]line [17:31:43]written 0, free lines is 3277 [17:31:43]MH_Cut [17:31:43]Write to MH i2c: D1 01 00 5B C0 01 ED [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: D1 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: D1 01 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: D1 01 00 5B C0 00 EC [17:31:43]Write to MH i2c: 01 00 00 5C C0 1C [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:44]OFD Sender: No OFD packet to send [17:31:44]*** Cut start [17:31:44]*** Partial cut [17:31:44]*** CUTSNS_PIN = 1 [17:31:44]*** CUTSNS_PIN = 0 [17:31:44]*** Brake cut motor [17:31:45]Read from MH i2c: 01 [17:31:45]MH_I2C_Read... [17:31:45]*** Stop cut motor [17:31:45]*** Cut end [17:31:45]Read from MH i2c: 01 07 00 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: 01 07 00 5C C0 00 00 00 00 00 FF 0F 31 [17:31:45]process_action close_receipt done [17:31:45]requested_data is exist [17:31:45]produce_requested_data [17:31:45]requested_item fm.sn is exist - process it [17:31:45]wFMCommunicate request_size=4 [17:31:45]MH_SAM_APDU [17:31:45]CAPDU: 80 11 00 00 [17:31:45]Write to MH i2c: E2 08 00 5D C0 80 11 00 00 00 00 00 00 97 [17:31:45]Write i2c OK [17:31:45]MH_I2C_Read... [17:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:45]Read from MH i2c: E2 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 17 00 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 17 00 5D C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [17:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:45]wFMCommunicate OK [17:31:45]requested_item fd.num is exist - process it [17:31:45]SAM_PROTO_GetFieldsCounters [17:31:45]wFMCommunicate request_size=4 [17:31:45]MH_SAM_APDU [17:31:45]CAPDU: 80 13 00 00 [17:31:45]Write to MH i2c: E2 08 00 5E C0 80 13 00 00 00 00 00 00 9A [17:31:45]Write i2c OK [17:31:45]MH_I2C_Read... [17:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:45]Read from MH i2c: E2 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 62 00 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 62 00 5E C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:45]wFMCommunicate OK [17:31:45]SAM_PROTO_GetFieldsCounters done [17:31:45]requested_item shift.num is exist - process it [17:31:45]requested_item shift.opened is exist - process it [17:31:45]req_shift_opened [17:31:45]FM_GetShiftState [17:31:45]SAM_PROTO_GetShiftState [17:31:45]wFMCommunicate request_size=4 [17:31:45]MH_SAM_APDU [17:31:45]CAPDU: 80 13 01 00 [17:31:45]Write to MH i2c: E2 08 00 5F C0 80 13 01 00 00 00 00 00 9C [17:31:45]Write i2c OK [17:31:45]MH_I2C_Read... [17:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:45]Read from MH i2c: E2 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 0E 00 [17:31:45]MH_I2C_Read... [17:31:45]Read from MH i2c: E2 0E 00 5F C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5F [17:31:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:31:45]wFMCommunicate OK [17:31:45]SAM_PROTO_GetShiftState done [17:31:45]FM_GetShiftState done [17:31:45]req_shift_opened done [17:31:45]requested_item shift.open_date is exist - process it [17:31:45]req_shift_open_date [17:31:45]req_shift_open_date done [17:31:45]produce_requested_data done [17:31:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191546,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:31:45]process_action_free close_receipt [17:31:45]json_value_free [17:31:45]json_value_free done [17:31:45]process_json_proto returns [17:31:45]Send response to host [17:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191546,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:31:45]free response buf [17:31:45]execute_script done [17:31:45]execute_script returns [17:31:45]free content buf [17:31:45]Sock 8.Close socket [17:31:45]Sock 8.Thread stoped [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:22]accept exits with 9 [17:33:22]New connection [17:33:22]New thread 3066817892 created [17:33:22]Thread 3066961252 joined [17:33:22]Waiting for new connection... [17:33:22] Sock 9.Parse request [17:33:22]Sock 9.Check first char [17:33:22]Sock 9.First char is OK [17:33:22]request: POST /json_proto HTTP/1.0 [17:33:22]Method: POST [17:33:22]URL: /json_proto [17:33:22]Method is POST - this is cgi request [17:33:22]url: /json_proto [17:33:22]query_string will be loaded in cgi processing [17:33:22]execute_cgi json_proto POST (null) [17:33:22]execute_cgi path=json_proto method=POST [17:33:22]POST find Content-Length [17:33:22]Host: 172.17.63.131:8080 [17:33:22]Content-Length: 678 [17:33:22]Content-Type: application/json [17:33:22] [17:33:22]POST finish read [17:33:22]Found Content-Length = 678 [17:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:33:22]execute_script... [17:33:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:33:22]POST & json_proto [17:33:22]process_json_proto [17:33:22]json parsed OK: [17:33:22]protocol is kg_v1.0 [17:33:22]action value=close_receipt [17:33:22]process_action close_receipt [17:33:22]cmd_close_receipt [17:33:22]MH_GetDate [17:33:22]Write to MH i2c: F0 00 00 60 C0 0F [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 09 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 09 00 60 C0 00 6C D6 1B 67 22 05 6E 64 D5 [17:33:22]GetLastDocTimeStamp 1729877511 [17:33:22]current date 1729877612 [17:33:22]FM_GetShiftState [17:33:22]SAM_PROTO_GetShiftState [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 13 01 00 [17:33:22]Write to MH i2c: E2 08 00 61 C0 80 13 01 00 00 00 00 00 9E [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 61 C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 61 [17:33:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:33:22]wFMCommunicate OK [17:33:22]SAM_PROTO_GetShiftState done [17:33:22]FM_GetShiftState done [17:33:22]opened in 1729816399 [17:33:22]opened+sec_in_day 1729902799 [17:33:22]quantity*price = 120015 [17:33:22]sum+1 = 120016 [17:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 286 25.10.2024 17:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191547 ФПД: 238362103612134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191547&fm=238362103612134&tin=02508201610067®Number=0000000000091776&sum=120000 [17:33:23]StoreToDocumentArchive [17:33:23]shift 540 fd 191547 [17:33:23]save to /storage/0540/doc_00191547 [17:33:23]save last doc name /storage/0540/doc_00191547 to /storage/kkm_last_doc_name [17:33:23]save OK [17:33:23]Clear old archive folders... [17:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:33:23]tlvbuf is 0178A3C0 [17:33:23]SAM_PROTO_ClearQueue [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 09 00 00 [17:33:23]Write to MH i2c: E2 08 00 6E C0 80 09 00 00 00 00 00 00 A0 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 6E C0 00 90 00 A2 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_ClearQueue done [17:33:23]KKMCreateOFDPacket [17:33:23]OFDProtocolAddRootSTLVToBuf [17:33:23]FM_MakeSignedData [17:33:23]FM_MakeSignedData [17:33:23]SAM_PROTO_SignData [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 01 02 [17:33:23]Write to MH i2c: E2 08 00 6F C0 80 0D 01 02 00 00 00 00 A8 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 6F C0 00 90 00 A3 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=255 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 01 00 00 F4 03 04 00 6C D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EC 02 00 35 04 06 00 D8 CA 00 83 [17:33:23]Write to MH i2c: E2 02 01 70 C0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 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 1E 01 00 00 F4 03 04 00 6C D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EC 02 00 35 04 06 00 D8 CA 00 83 00 00 EF [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 70 C0 00 90 00 A4 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=7 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 02 82 E6 [17:33:23]Write to MH i2c: E2 0A 00 71 C0 80 0D 02 02 02 00 82 E6 00 00 17 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 71 C0 00 90 00 A5 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 03 02 [17:33:23]Write to MH i2c: E2 08 00 72 C0 80 0D 03 02 00 00 00 00 AD [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 72 C0 00 E7 9B 68 F9 C8 59 0C 67 90 00 25 [17:33:23]RAPDU: E7 9B 68 F9 C8 59 0C 67 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_SignData done [17:33:23]FM_MakeSignedData done [17:33:23]CreateOFDProtocolMessage [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 11 00 00 [17:33:23]Write to MH i2c: E2 08 00 73 C0 80 11 00 00 00 00 00 00 AD [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 73 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [17:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:33:23]wFMCommunicate OK [17:33:23]CreateOFDProtocolMessage done [17:33:23]OFDSenderStorePacket 191547 [17:33:23]StoreOFDPacket docnum=191547 [17:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1B A7 04 01 B8 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 01 00 00 F4 03 04 00 6C D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EC 02 00 35 04 06 00 D8 CA 00 83 82 E6 E7 9B 68 F9 C8 59 0C 67 [17:33:23]CheckFolder [17:33:23]dirname=/storage/ofd_packets [17:33:23]CheckFolder done [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00191547 [17:33:23]NVStorageSaveData ofd_packets/00191547 [17:33:23]File name is /storage/ofd_packets/00191547 [17:33:23]Write 298 bytes [17:33:23]NVStorageSaveData done [17:33:23]OFDSenderStorePacket done [17:33:23]KKMCreateOFDPacket done [17:33:23]NVStorageSaveData kkm_last_timestamp [17:33:23]File name is /storage/kkm_last_timestamp [17:33:23]Write 4 bytes [17:33:23]NVStorageSaveData done [17:33:23]ExternCall_PrintAddStr [17:33:23]wPrintStart [17:33:23]Write to MH i2c: 01 00 00 74 C0 34 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 74 C0 00 00 00 00 00 FF 0F 49 [17:33:23]RasterBufferAndPrint [17:33:23]line Счет N : (1)30846 [17:33:23]line ИНН: 02508201610067 [17:33:23]line Контрольно-Кассовый Чек [17:33:23]line ПРОДАЖА [17:33:23]line ТРК (МРК, ГНК) : 22 [17:33:23]line Товар: 2710194210 [17:33:23]line ДТ-К-5 [17:33:23]line 15.750 * 76.20 [17:33:23]line = 1200.15 [17:33:23]line НДС 12% НСП 1% [17:33:23]line > о реализуемом товаре [17:33:23]line ОКРУГЛЕНИЕ: -0.15 [17:33:23]line ИТОГО: 1200.00 [17:33:23]line Внесено: 1200.00 [17:33:23]line СДАЧА: 0.00 [17:33:23]line НСП 1% : 10.62 [17:33:23]line НДС 12% : 127.45 [17:33:23]line Наличными: 1200.00 [17:33:23]line Безнал.: 0.00 [17:33:23]line Место: АЗС № 170 "Партнер Нефть" [17:33:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:33:23]line СНО: Общий режим [17:33:23]line Чек 286 25.10.2024 17:33 [17:33:23]line Смена: 540 ФФД: 1.0 [17:33:23]line ЗНМ: 0300000110 [17:33:23]line РНМ: 0000000000091776 [17:33:23]line Версия ККМ: 001 [17:33:23]line ФМ: 0000000000871754 [17:33:23]line ФД: 191547 [17:33:23]line ФПД: 238362103612134 [17:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191547&fm=238362103612134&tin=02508201610067®Number=0000000000091776&sum=120000 [17:33:24]OFD Sender: Processing packet 191547 [packets to send 75, broken 74] [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00191547 [17:33:24]OFD Sender: To server: pG, [17:33:24]CommunicateWithHost lk.salyk.kg:30040 [17:33:24]ConnectInit lk.salyk.kg [17:33:24]written 0, free lines is 4095 [17:33:24]Connected sock=10 [17:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1B A7 04 01 B8 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 01 00 00 F4 03 04 00 6C D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EC 02 00 35 04 06 00 D8 CA 00 83 82 E6 E7 9B 68 F9 C8 59 0C 67 [17:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F0 15 47 00 3D C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EC 02 00 F4 03 04 00 3A 7B 1B 67 B6 04 01 00 00 A4 04 42 A5 EE C6 83 19 [17:33:24]CommunicateWithHost err = 0 [17:33:24]CheckOFDResponse [17:33:24]1017 (14) - 77093643461234 [17:33:24]1041 (16) - 0000000000871754 [17:33:24]1040 (4) - 191547 [17:33:24]1012 (4) - 25.10.2024 11:04 [17:33:24]1206 (1) - 0 [17:33:24]OFD Sender: Remove packet 191547 [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00191547 [17:33:24]NVStorageDeleteData [17:33:24]Write to MH i2c: 01 00 00 9F C0 5F [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 9F C0 00 00 00 00 00 B8 0C 2A [17:33:24]RasterBufferAndPrint [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]written 0, free lines is 3260 [17:33:24]MH_Cut [17:33:24]Write to MH i2c: D1 01 00 A6 C0 01 38 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 A6 C0 00 37 [17:33:24]Write to MH i2c: 01 00 00 A7 C0 67 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]OFD Sender: No OFD packet to send [17:33:25]*** Cut start [17:33:25]*** Partial cut [17:33:25]*** CUTSNS_PIN = 1 [17:33:25]*** CUTSNS_PIN = 0 [17:33:25]*** Brake cut motor [17:33:25]Read from MH i2c: 01 [17:33:25]MH_I2C_Read... [17:33:25]*** Stop cut motor [17:33:25]*** Cut end [17:33:25]Read from MH i2c: 01 07 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: 01 07 00 A7 C0 00 00 00 00 00 FF 0F 7C [17:33:25]process_action close_receipt done [17:33:25]requested_data is exist [17:33:25]produce_requested_data [17:33:25]requested_item fm.sn is exist - process it [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 11 00 00 [17:33:25]Write to MH i2c: E2 08 00 A8 C0 80 11 00 00 00 00 00 00 E2 [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 17 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 17 00 A8 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [17:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:33:25]wFMCommunicate OK [17:33:25]requested_item fd.num is exist - process it [17:33:25]SAM_PROTO_GetFieldsCounters [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 13 00 00 [17:33:25]Write to MH i2c: E2 08 00 A9 C0 80 13 00 00 00 00 00 00 E5 [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 A9 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetFieldsCounters done [17:33:26]requested_item shift.num is exist - process it [17:33:26]requested_item shift.opened is exist - process it [17:33:26]req_shift_opened [17:33:26]FM_GetShiftState [17:33:26]SAM_PROTO_GetShiftState [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 13 01 00 [17:33:26]Write to MH i2c: E2 08 00 AA C0 80 13 01 00 00 00 00 00 E7 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 AA C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AA [17:33:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetShiftState done [17:33:26]FM_GetShiftState done [17:33:26]req_shift_opened done [17:33:26]requested_item shift.open_date is exist - process it [17:33:26]req_shift_open_date [17:33:26]req_shift_open_date done [17:33:26]produce_requested_data done [17:33:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191547,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:33:26]process_action_free close_receipt [17:33:26]json_value_free [17:33:26]json_value_free done [17:33:26]process_json_proto returns [17:33:26]Send response to host [17:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191547,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:33:26]free response buf [17:33:26]execute_script done [17:33:26]execute_script returns [17:33:26]free content buf [17:33:26]Sock 9.Close socket [17:33:26]Sock 9.Thread stoped [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]accept exits with 8 [17:33:39]New connection [17:33:39]New thread 3066961252 created [17:33:39]Thread 3066817892 joined [17:33:39]Waiting for new connection... [17:33:39] Sock 8.Parse request [17:33:39]Sock 8.Check first char [17:33:39]Sock 8.First char is OK [17:33:39]request: POST /json_proto HTTP/1.0 [17:33:39]Method: POST [17:33:39]URL: /json_proto [17:33:39]Method is POST - this is cgi request [17:33:39]url: /json_proto [17:33:39]query_string will be loaded in cgi processing [17:33:39]execute_cgi json_proto POST (null) [17:33:39]execute_cgi path=json_proto method=POST [17:33:39]POST find Content-Length [17:33:39]Host: 172.17.63.131:8080 [17:33:39]Content-Length: 676 [17:33:39]Content-Type: application/json [17:33:39] [17:33:39]POST finish read [17:33:39]Found Content-Length = 676 [17:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:39]execute_script... [17: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)30847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:39]POST & json_proto [17:33:39]process_json_proto [17:33:39]json parsed OK: [17:33:39]protocol is kg_v1.0 [17:33:39]action value=close_receipt [17:33:39]process_action close_receipt [17:33:39]cmd_close_receipt [17:33:39]MH_GetDate [17:33:39]Write to MH i2c: F0 00 00 AB C0 5A [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: F0 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: F0 09 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: F0 09 00 AB C0 00 7D D6 1B 67 22 05 6E 64 31 [17:33:39]GetLastDocTimeStamp 1729877612 [17:33:39]current date 1729877629 [17:33:39]FM_GetShiftState [17:33:39]SAM_PROTO_GetShiftState [17:33:39]wFMCommunicate request_size=4 [17:33:39]MH_SAM_APDU [17:33:39]CAPDU: 80 13 01 00 [17:33:39]Write to MH i2c: E2 08 00 AC C0 80 13 01 00 00 00 00 00 E9 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:39]Read from MH i2c: E2 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: E2 0E 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: E2 0E 00 AC C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AC [17:33:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:33:39]wFMCommunicate OK [17:33:39]SAM_PROTO_GetShiftState done [17:33:39]FM_GetShiftState done [17:33:39]opened in 1729816399 [17:33:39]opened+sec_in_day 1729902799 [17:33:39]quantity*price = 50041 [17:33:39]sum+1 = 50042 [17:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 287 25.10.2024 17:33 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191548 ФПД: 136182611216703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191548&fm=136182611216703&tin=02508201610067®Number=0000000000091776&sum=50000 [17:33:40]StoreToDocumentArchive [17:33:40]shift 540 fd 191548 [17:33:40]save to /storage/0540/doc_00191548 [17:33:40]save last doc name /storage/0540/doc_00191548 to /storage/kkm_last_doc_name [17:33:40]save OK [17:33:40]Clear old archive folders... [17:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:40]tlvbuf is 01831150 [17:33:40]SAM_PROTO_ClearQueue [17:33:40]wFMCommunicate request_size=4 [17:33:40]MH_SAM_APDU [17:33:40]CAPDU: 80 09 00 00 [17:33:40]Write to MH i2c: E2 08 00 B9 C0 80 09 00 00 00 00 00 00 EB [17:33:40]Write i2c OK [17:33:40]MH_I2C_Read... [17:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:40]Read from MH i2c: E2 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 B9 C0 00 90 00 ED [17:33:40]RAPDU: 90 00 [17:33:40]wFMCommunicate OK [17:33:40]SAM_PROTO_ClearQueue done [17:33:40]KKMCreateOFDPacket [17:33:40]OFDProtocolAddRootSTLVToBuf [17:33:40]FM_MakeSignedData [17:33:40]FM_MakeSignedData [17:33:40]SAM_PROTO_SignData [17:33:40]wFMCommunicate request_size=4 [17:33:40]MH_SAM_APDU [17:33:40]CAPDU: 80 0D 01 02 [17:33:40]Write to MH i2c: E2 08 00 BA C0 80 0D 01 02 00 00 00 00 F3 [17:33:40]Write i2c OK [17:33:40]MH_I2C_Read... [17:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:40]Read from MH i2c: E2 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 BA C0 00 90 00 EE [17:33:40]RAPDU: 90 00 [17:33:40]wFMCommunicate OK [17:33:40]wFMCommunicate request_size=255 [17:33:40]MH_SAM_APDU [17:33:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EC 02 00 35 04 06 00 7B [17:33:40]Write to MH i2c: E2 02 01 BB C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EC 02 00 35 04 06 00 7B 00 00 3F [17:33:40]Write i2c OK [17:33:40]MH_I2C_Read... [17:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:40]Read from MH i2c: E2 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: E2 03 00 BB C0 00 90 00 EF [17:33:40]RAPDU: 90 00 [17:33:40]wFMCommunicate OK [17:33:40]wFMCommunicate request_size=10 [17:33:40]MH_SAM_APDU [17:33:40]CAPDU: 80 0D 02 02 05 DB 7C 2A 89 3F [17:33:40]Write to MH i2c: E2 0D 00 BC C0 80 0D 02 02 05 00 DB 7C 2A 89 3F 00 00 49 [17:33:40]Write i2c OK [17:33:40]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 03 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 03 00 BC C0 00 90 00 F0 [17:33:41]RAPDU: 90 00 [17:33:41]wFMCommunicate OK [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 0D 03 02 [17:33:41]Write to MH i2c: E2 08 00 BD C0 80 0D 03 02 00 00 00 00 F8 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 0B 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 0B 00 BD C0 00 FF 7B 1D 07 FC 64 38 43 90 00 72 [17:33:41]RAPDU: FF 7B 1D 07 FC 64 38 43 90 00 [17:33:41]wFMCommunicate OK [17:33:41]SAM_PROTO_SignData done [17:33:41]FM_MakeSignedData done [17:33:41]CreateOFDProtocolMessage [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 11 00 00 [17:33:41]Write to MH i2c: E2 08 00 BE C0 80 11 00 00 00 00 00 00 F8 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 BE C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [17:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:33:41]wFMCommunicate OK [17:33:41]CreateOFDProtocolMessage done [17:33:41]OFDSenderStorePacket 191548 [17:33:41]StoreOFDPacket docnum=191548 [17:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F 0F 07 01 01 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EC 02 00 35 04 06 00 7B DB 7C 2A 89 3F FF 7B 1D 07 FC 64 38 43 [17:33:41]CheckFolder [17:33:41]dirname=/storage/ofd_packets [17:33:41]CheckFolder done [17:33:41]ProducePacketName [17:33:41]name=ofd_packets/00191548 [17:33:41]NVStorageSaveData ofd_packets/00191548 [17:33:41]File name is /storage/ofd_packets/00191548 [17:33:41]Write 301 bytes [17:33:41]NVStorageSaveData done [17:33:41]OFDSenderStorePacket done [17:33:41]KKMCreateOFDPacket done [17:33:41]NVStorageSaveData kkm_last_timestamp [17:33:41]File name is /storage/kkm_last_timestamp [17:33:41]Write 4 bytes [17:33:41]NVStorageSaveData done [17:33:41]ExternCall_PrintAddStr [17:33:41]wPrintStart [17:33:41]Write to MH i2c: 01 00 00 BF C0 7F [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 07 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 07 00 BF C0 00 00 00 00 00 FF 0F 94 [17:33:41]RasterBufferAndPrint [17:33:41]line Счет N : (1)30847 [17:33:41]line ИНН: 02508201610067 [17:33:41]line Контрольно-Кассовый Чек [17:33:41]line ПРОДАЖА [17:33:41]line ТРК (МРК, ГНК) : 12 [17:33:41]line Товар: 2710124130 [17:33:41]line Аи-92-К-5 [17:33:41]line 7.480 * 66.90 [17:33:41]line = 500.41 [17:33:41]line НДС 12% НСП 1% [17:33:41]line > о реализуемом товаре [17:33:41]line ОКРУГЛЕНИЕ: -0.41 [17:33:41]line ИТОГО: 500.00 [17:33:41]line Внесено: 500.00 [17:33:41]line СДАЧА: 0.00 [17:33:41]line НСП 1% : 4.43 [17:33:41]line НДС 12% : 53.14 [17:33:41]line Наличными: 500.00 [17:33:41]line Безнал.: 0.00 [17:33:41]line Место: АЗС № 170 "Партнер Нефть" [17:33:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:33:41]line СНО: Общий режим [17:33:41]line Чек 287 25.10.2024 17:33 [17:33:41]line Смена: 540 ФФД: 1.0 [17:33:41]line ЗНМ: 0300000110 [17:33:41]line РНМ: 0000000000091776 [17:33:41]line Версия ККМ: 001 [17:33:41]line ФМ: 0000000000871754 [17:33:41]line ФД: 191548 [17:33:41]line ФПД: 136182611216703 [17:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191548&fm=136182611216703&tin=02508201610067®Number=0000000000091776&sum=50000 [17:33:41]OFD Sender: Processing packet 191548 [packets to send 75, broken 74] [17:33:41]ProducePacketName [17:33:41]name=ofd_packets/00191548 [17:33:41]OFD Sender: To server: pG, [17:33:41]CommunicateWithHost lk.salyk.kg:30040 [17:33:41]ConnectInit lk.salyk.kg [17:33:41]written 0, free lines is 4095 [17:33:41]Connected sock=10 [17:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F 0F 07 01 01 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EC 02 00 35 04 06 00 7B DB 7C 2A 89 3F FF 7B 1D 07 FC 64 38 43 [17:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7A 6F 47 00 A7 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EC 02 00 F4 03 04 00 4B 7B 1B 67 B6 04 01 00 00 3F E9 F3 D4 76 07 07 8D [17:33:41]CommunicateWithHost err = 0 [17:33:41]CheckOFDResponse [17:33:41]1017 (14) - 77093643461234 [17:33:41]1041 (16) - 0000000000871754 [17:33:41]1040 (4) - 191548 [17:33:41]1012 (4) - 25.10.2024 11:04 [17:33:41]1206 (1) - 0 [17:33:41]OFD Sender: Remove packet 191548 [17:33:41]ProducePacketName [17:33:41]name=ofd_packets/00191548 [17:33:41]NVStorageDeleteData [17:33:41]Write to MH i2c: 01 00 00 EA C0 AA [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 07 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 07 00 EA C0 00 00 00 00 00 B4 0C 71 [17:33:41]RasterBufferAndPrint [17:33:41]line [17:33:41]line [17:33:41]line [17:33:41]line [17:33:41]line [17:33:41]written 0, free lines is 3258 [17:33:41]MH_Cut [17:33:41]Write to MH i2c: D1 01 00 F1 C0 01 83 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: D1 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: D1 01 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: D1 01 00 F1 C0 00 82 [17:33:41]Write to MH i2c: 01 00 00 F2 C0 B2 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:42]OFD Sender: No OFD packet to send [17:33:42]*** Cut start [17:33:42]*** Partial cut [17:33:42]*** CUTSNS_PIN = 1 [17:33:42]*** CUTSNS_PIN = 0 [17:33:43]*** Brake cut motor [17:33:43]Read from MH i2c: 01 [17:33:43]MH_I2C_Read... [17:33:43]*** Stop cut motor [17:33:43]*** Cut end [17:33:43]Read from MH i2c: 01 07 00 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: 01 07 00 F2 C0 00 00 00 00 00 FF 0F C7 [17:33:43]process_action close_receipt done [17:33:43]requested_data is exist [17:33:43]produce_requested_data [17:33:43]requested_item fm.sn is exist - process it [17:33:43]wFMCommunicate request_size=4 [17:33:43]MH_SAM_APDU [17:33:43]CAPDU: 80 11 00 00 [17:33:43]Write to MH i2c: E2 08 00 F3 C0 80 11 00 00 00 00 00 00 2D [17:33:43]Write i2c OK [17:33:43]MH_I2C_Read... [17:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:43]Read from MH i2c: E2 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 17 00 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 17 00 F3 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [17:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:33:43]wFMCommunicate OK [17:33:43]requested_item fd.num is exist - process it [17:33:43]SAM_PROTO_GetFieldsCounters [17:33:43]wFMCommunicate request_size=4 [17:33:43]MH_SAM_APDU [17:33:43]CAPDU: 80 13 00 00 [17:33:43]Write to MH i2c: E2 08 00 F4 C0 80 13 00 00 00 00 00 00 30 [17:33:43]Write i2c OK [17:33:43]MH_I2C_Read... [17:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:43]Read from MH i2c: E2 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 62 00 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 62 00 F4 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [17: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:43]wFMCommunicate OK [17:33:43]SAM_PROTO_GetFieldsCounters done [17:33:43]requested_item shift.num is exist - process it [17:33:43]requested_item shift.opened is exist - process it [17:33:43]req_shift_opened [17:33:43]FM_GetShiftState [17:33:43]SAM_PROTO_GetShiftState [17:33:43]wFMCommunicate request_size=4 [17:33:43]MH_SAM_APDU [17:33:43]CAPDU: 80 13 01 00 [17:33:43]Write to MH i2c: E2 08 00 F5 C0 80 13 01 00 00 00 00 00 32 [17:33:43]Write i2c OK [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 [17:33:43]MH_I2C_Read... [17:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:43]Read from MH i2c: E2 0E 00 [17:33:43]MH_I2C_Read... [17:33:43]Read from MH i2c: E2 0E 00 F5 C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F5 [17:33:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:33:43]wFMCommunicate OK [17:33:43]SAM_PROTO_GetShiftState done [17:33:43]FM_GetShiftState done [17:33:43]req_shift_opened done [17:33:43]requested_item shift.open_date is exist - process it [17:33:43]req_shift_open_date [17:33:43]req_shift_open_date done [17:33:43]produce_requested_data done [17:33:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191548,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:33:43]process_action_free close_receipt [17:33:43]json_value_free [17:33:43]json_value_free done [17:33:43]process_json_proto returns [17:33:43]Send response to host [17:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191548,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:33:43]free response buf [17:33:43]execute_script done [17:33:43]execute_script returns [17:33:43]free content buf [17:33:43]Sock 8.Close socket [17:33:43]Sock 8.Thread stoped [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:28]accept exits with 9 [17:35:28]New connection [17:35:28]New thread 3066817892 created [17:35:28]Thread 3066961252 joined [17:35:28]Waiting for new connection... [17:35:28] Sock 9.Parse request [17:35:28]Sock 9.Check first char [17:35:28]Sock 9.First char is OK [17:35:28]request: POST /json_proto HTTP/1.0 [17:35:28]Method: POST [17:35:28]URL: /json_proto [17:35:28]Method is POST - this is cgi request [17:35:28]url: /json_proto [17:35:28]query_string will be loaded in cgi processing [17:35:28]execute_cgi json_proto POST (null) [17:35:28]execute_cgi path=json_proto method=POST [17:35:28]POST find Content-Length [17:35:28]Host: 172.17.63.131:8080 [17:35:28]Content-Length: 676 [17:35:28]Content-Type: application/json [17:35:28] [17:35:28]POST finish read [17:35:28]Found Content-Length = 676 [17:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:28]execute_script... [17:35: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)30849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:28]POST & json_proto [17:35:28]process_json_proto [17:35:28]json parsed OK: [17:35:28]protocol is kg_v1.0 [17:35:28]action value=close_receipt [17:35:28]process_action close_receipt [17:35:28]cmd_close_receipt [17:35:28]MH_GetDate [17:35:28]Write to MH i2c: F0 00 00 F6 C0 A5 [17:35:28]Write i2c OK [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: F0 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: F0 09 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: F0 09 00 F6 C0 00 EA D6 1B 67 22 05 6E 64 E9 [17:35:28]GetLastDocTimeStamp 1729877629 [17:35:28]current date 1729877738 [17:35:28]FM_GetShiftState [17:35:28]SAM_PROTO_GetShiftState [17:35:28]wFMCommunicate request_size=4 [17:35:28]MH_SAM_APDU [17:35:28]CAPDU: 80 13 01 00 [17:35:28]Write to MH i2c: E2 08 00 F7 C0 80 13 01 00 00 00 00 00 34 [17:35:28]Write i2c OK [17:35:28]MH_I2C_Read... [17:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:28]Read from MH i2c: E2 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 0E 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 0E 00 F7 C0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F7 [17:35:28]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:35:28]wFMCommunicate OK [17:35:28]SAM_PROTO_GetShiftState done [17:35:28]FM_GetShiftState done [17:35:28]opened in 1729816399 [17:35:28]opened+sec_in_day 1729902799 [17:35:28]quantity*price = 50041 [17:35:28]sum+1 = 50042 [17:35:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 288 25.10.2024 17:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191549 ФПД: 7180580971551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191549&fm=7180580971551&tin=02508201610067®Number=0000000000091776&sum=50000 [17:35:29]StoreToDocumentArchive [17:35:29]shift 540 fd 191549 [17:35:29]save to /storage/0540/doc_00191549 [17:35:29]save last doc name /storage/0540/doc_00191549 to /storage/kkm_last_doc_name [17:35:29]save OK [17:35:29]Clear old archive folders... [17:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:29]tlvbuf is 019D2540 [17:35:29]SAM_PROTO_ClearQueue [17:35:29]wFMCommunicate request_size=4 [17:35:29]MH_SAM_APDU [17:35:29]CAPDU: 80 09 00 00 [17:35:29]Write to MH i2c: E2 08 00 04 C1 80 09 00 00 00 00 00 00 37 [17:35:29]Write i2c OK [17:35:29]MH_I2C_Read... [17:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:29]Read from MH i2c: E2 [17:35:29]MH_I2C_Read... [17:35:29]Read from MH i2c: E2 03 00 [17:35:29]MH_I2C_Read... [17:35:29]Read from MH i2c: E2 03 00 04 C1 00 90 00 39 [17:35:29]RAPDU: 90 00 [17:35:29]wFMCommunicate OK [17:35:29]SAM_PROTO_ClearQueue done [17:35:29]KKMCreateOFDPacket [17:35:29]OFDProtocolAddRootSTLVToBuf [17:35:29]FM_MakeSignedData [17:35:29]FM_MakeSignedData [17:35:29]SAM_PROTO_SignData [17:35:29]wFMCommunicate request_size=4 [17:35:29]MH_SAM_APDU [17:35:29]CAPDU: 80 0D 01 02 [17:35:29]Write to MH i2c: E2 08 00 05 C1 80 0D 01 02 00 00 00 00 3F [17:35:29]Write i2c OK [17:35:29]MH_I2C_Read... [17:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:29]Read from MH i2c: E2 [17:35:29]MH_I2C_Read... [17:35:29]Read from MH i2c: E2 03 00 [17:35:29]MH_I2C_Read... [17:35:29]Read from MH i2c: E2 03 00 05 C1 00 90 00 3A [17:35:29]RAPDU: 90 00 [17:35:29]wFMCommunicate OK [17:35:29]wFMCommunicate request_size=255 [17:35:29]MH_SAM_APDU [17:35:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 EA D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EC 02 00 35 04 06 00 06 [17:35:29]Write to MH i2c: E2 02 01 06 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 EA D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EC 02 00 35 04 06 00 06 00 00 85 [17:35:29]Write i2c OK [17:35:29]MH_I2C_Read... [17:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:30]Read from MH i2c: E2 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 03 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 03 00 06 C1 00 90 00 3B [17:35:30]RAPDU: 90 00 [17:35:30]wFMCommunicate OK [17:35:30]wFMCommunicate request_size=10 [17:35:30]MH_SAM_APDU [17:35:30]CAPDU: 80 0D 02 02 05 87 DB FA 64 1F [17:35:30]Write to MH i2c: E2 0D 00 07 C1 80 0D 02 02 05 00 87 DB FA 64 1F 00 00 2B [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:30]Read from MH i2c: E2 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 03 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 03 00 07 C1 00 90 00 3C [17:35:30]RAPDU: 90 00 [17:35:30]wFMCommunicate OK [17:35:30]wFMCommunicate request_size=4 [17:35:30]MH_SAM_APDU [17:35:30]CAPDU: 80 0D 03 02 [17:35:30]Write to MH i2c: E2 08 00 08 C1 80 0D 03 02 00 00 00 00 44 [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:30]Read from MH i2c: E2 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 0B 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 0B 00 08 C1 00 30 32 10 A6 90 2D 7D BB 90 00 52 [17:35:30]RAPDU: 30 32 10 A6 90 2D 7D BB 90 00 [17:35:30]wFMCommunicate OK [17:35:30]SAM_PROTO_SignData done [17:35:30]FM_MakeSignedData done [17:35:30]CreateOFDProtocolMessage [17:35:30]wFMCommunicate request_size=4 [17:35:30]MH_SAM_APDU [17:35:30]CAPDU: 80 11 00 00 [17:35:30]Write to MH i2c: E2 08 00 09 C1 80 11 00 00 00 00 00 00 44 [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:30]Read from MH i2c: E2 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 17 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 17 00 09 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [17:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:30]wFMCommunicate OK [17:35:30]CreateOFDProtocolMessage done [17:35:30]OFDSenderStorePacket 191549 [17:35:30]StoreOFDPacket docnum=191549 [17:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA A4 07 01 36 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 EA D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EC 02 00 35 04 06 00 06 87 DB FA 64 1F 30 32 10 A6 90 2D 7D BB [17:35:30]CheckFolder [17:35:30]dirname=/storage/ofd_packets [17:35:30]CheckFolder done [17:35:30]ProducePacketName [17:35:30]name=ofd_packets/00191549 [17:35:30]NVStorageSaveData ofd_packets/00191549 [17:35:30]File name is /storage/ofd_packets/00191549 [17:35:30]Write 301 bytes [17:35:30]NVStorageSaveData done [17:35:30]OFDSenderStorePacket done [17:35:30]KKMCreateOFDPacket done [17:35:30]NVStorageSaveData kkm_last_timestamp [17:35:30]File name is /storage/kkm_last_timestamp [17:35:30]Write 4 bytes [17:35:30]NVStorageSaveData done [17:35:30]ExternCall_PrintAddStr [17:35:30]wPrintStart [17:35:30]Write to MH i2c: 01 00 00 0A C1 CB [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: 01 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: 01 07 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: 01 07 00 0A C1 00 00 00 00 00 FF 0F E0 [17:35:30]RasterBufferAndPrint [17:35:30]line Счет N : (1)30849 [17:35:30]line ИНН: 02508201610067 [17:35:30]line Контрольно-Кассовый Чек [17:35:30]line ПРОДАЖА [17:35:30]line ТРК (МРК, ГНК) : 12 [17:35:30]line Товар: 2710124130 [17:35:30]line Аи-92-К-5 [17:35:30]line 7.480 * 66.90 [17:35:30]line = 500.41 [17:35:30]line НДС 12% НСП 1% [17:35:30]line > о реализуемом товаре [17:35:30]line ОКРУГЛЕНИЕ: -0.41 [17:35:30]line ИТОГО: 500.00 [17:35:30]line Внесено: 500.00 [17:35:30]line СДАЧА: 0.00 [17:35:30]line НСП 1% : 4.43 [17:35:30]line НДС 12% : 53.14 [17:35:30]line Наличными: 500.00 [17:35:30]line Безнал.: 0.00 [17:35:30]line Место: АЗС № 170 "Партнер Нефть" [17:35:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:35:30]line СНО: Общий режим [17:35:30]line Чек 288 25.10.2024 17:35 [17:35:30]line Смена: 540 ФФД: 1.0 [17:35:30]line ЗНМ: 0300000110 [17:35:30]line РНМ: 0000000000091776 [17:35:30]line Версия ККМ: 001 [17:35:30]line ФМ: 0000000000871754 [17:35:30]line ФД: 191549 [17:35:30]line ФПД: 7180580971551 [17:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191549&fm=7180580971551&tin=02508201610067®Number=0000000000091776&sum=50000 [17:35:30]OFD Sender: Processing packet 191549 [packets to send 75, broken 74] [17:35:30]ProducePacketName [17:35:30]name=ofd_packets/00191549 [17:35:30]OFD Sender: To server: pG, [17:35:30]CommunicateWithHost lk.salyk.kg:30040 [17:35:30]ConnectInit lk.salyk.kg [17:35:30]written 0, free lines is 4095 [17:35:30]Connected sock=10 [17:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA A4 07 01 36 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 EA D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EC 02 00 35 04 06 00 06 87 DB FA 64 1F 30 32 10 A6 90 2D 7D BB [17:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 EF 47 00 DA 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EC 02 00 F4 03 04 00 B8 7B 1B 67 B6 04 01 00 00 48 7E B2 71 F7 01 A8 F7 [17:35:31]CommunicateWithHost err = 0 [17:35:31]CheckOFDResponse [17:35:31]1017 (14) - 77093643461234 [17:35:31]1041 (16) - 0000000000871754 [17:35:31]1040 (4) - 191549 [17:35:31]1012 (4) - 25.10.2024 11:06 [17:35:31]1206 (1) - 0 [17:35:31]OFD Sender: Remove packet 191549 [17:35:31]ProducePacketName [17:35:31]name=ofd_packets/00191549 [17:35:31]NVStorageDeleteData [17:35:31]Write to MH i2c: 01 00 00 35 C1 F6 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 07 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 07 00 35 C1 00 00 00 00 00 BC 0C C5 [17:35:31]RasterBufferAndPrint [17:35:31]line [17:35:31]line [17:35:31]line [17:35:31]line [17:35:31]line [17:35:31]written 0, free lines is 3267 [17:35:31]MH_Cut [17:35:31]Write to MH i2c: D1 01 00 3C C1 01 CF [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: D1 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: D1 01 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: D1 01 00 3C C1 00 CE [17:35:31]Write to MH i2c: 01 00 00 3D C1 FE [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]OFD Sender: No OFD packet to send [17:35:31]*** Cut start [17:35:31]*** Partial cut [17:35:31]*** CUTSNS_PIN = 1 [17:35:31]*** CUTSNS_PIN = 0 [17:35:32]*** Brake cut motor [17:35:32]Read from MH i2c: 01 [17:35:32]MH_I2C_Read... [17:35:32]*** Stop cut motor [17:35:32]*** Cut end [17:35:32]Read from MH i2c: 01 07 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: 01 07 00 3D C1 00 00 00 00 00 FF 0F 13 [17:35:32]process_action close_receipt done [17:35:32]requested_data is exist [17:35:32]produce_requested_data [17:35:32]requested_item fm.sn is exist - process it [17:35:32]wFMCommunicate request_size=4 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 11 00 00 [17:35:32]Write to MH i2c: E2 08 00 3E C1 80 11 00 00 00 00 00 00 79 [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 17 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 17 00 3E C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [17:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:32]wFMCommunicate OK [17:35:32]requested_item fd.num is exist - process it [17:35:32]SAM_PROTO_GetFieldsCounters [17:35:32]wFMCommunicate request_size=4 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 13 00 00 [17:35:32]Write to MH i2c: E2 08 00 3F C1 80 13 00 00 00 00 00 00 7C [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 62 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 62 00 3F C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [17:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:32]wFMCommunicate OK [17:35:32]SAM_PROTO_GetFieldsCounters done [17:35:32]requested_item shift.num is exist - process it [17:35:32]requested_item shift.opened is exist - process it [17:35:32]req_shift_opened [17:35:32]FM_GetShiftState [17:35:32]SAM_PROTO_GetShiftState [17:35:32]wFMCommunicate request_size=4 [17:35:32]MH_SAM_APDU [17:35:32]CAPDU: 80 13 01 00 [17:35:32]Write to MH i2c: E2 08 00 40 C1 80 13 01 00 00 00 00 00 7E [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 0E 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 0E 00 40 C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 41 [17:35:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:35:32]wFMCommunicate OK [17:35:32]SAM_PROTO_GetShiftState done [17:35:32]FM_GetShiftState done [17:35:32]req_shift_opened done [17:35:32]requested_item shift.open_date is exist - process it [17:35:32]req_shift_open_date [17:35:32]req_shift_open_date done [17:35:32]produce_requested_data done [17:35:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191549,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:35:32]process_action_free close_receipt [17:35:32]json_value_free [17:35:32]json_value_free done [17:35:32]process_json_proto returns [17:35:32]Send response to host [17:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191549,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:35:32]free response buf [17:35:32]execute_script done [17:35:32]execute_script returns [17:35:32]free content buf [17:35:32]Sock 9.Close socket [17:35:32]Sock 9.Thread stoped [17:35:36]OFD Sender: No OFD packet to send [17:35:38]accept exits with 8 [17:35:38]New connection [17:35:38]New thread 3066961252 created [17:35:38]Thread 3066817892 joined [17:35:38]Waiting for new connection... [17:35:38] Sock 8.Parse request [17:35:38]Sock 8.Check first char [17:35:38]Sock 8.First char is OK [17:35:38]request: POST /json_proto HTTP/1.0 [17:35:38]Method: POST [17:35:38]URL: /json_proto [17:35:38]Method is POST - this is cgi request [17:35:38]url: /json_proto [17:35:38]query_string will be loaded in cgi processing [17:35:38]execute_cgi json_proto POST (null) [17:35:38]execute_cgi path=json_proto method=POST [17:35:38]POST find Content-Length [17:35:38]Host: 172.17.63.131:8080 [17:35:38]Content-Length: 681 [17:35:38]Content-Type: application/json [17:35:38] [17:35:38]POST finish read [17:35:38]Found Content-Length = 681 [17:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:38]execute_script... [17:35: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)30848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:38]POST & json_proto [17:35:38]process_json_proto [17:35:38]json parsed OK: [17:35:38]protocol is kg_v1.0 [17:35:38]action value=close_receipt [17:35:38]process_action close_receipt [17:35:38]cmd_close_receipt [17:35:38]MH_GetDate [17:35:38]Write to MH i2c: F0 00 00 41 C1 F1 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: F0 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: F0 09 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: F0 09 00 41 C1 00 F4 D6 1B 67 22 05 6E 64 3F [17:35:38]GetLastDocTimeStamp 1729877738 [17:35:38]current date 1729877748 [17:35:38]FM_GetShiftState [17:35:38]SAM_PROTO_GetShiftState [17:35:38]wFMCommunicate request_size=4 [17:35:38]MH_SAM_APDU [17:35:38]CAPDU: 80 13 01 00 [17:35:38]Write to MH i2c: E2 08 00 42 C1 80 13 01 00 00 00 00 00 80 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 0E 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 0E 00 42 C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 43 [17:35:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:35:38]wFMCommunicate OK [17:35:38]SAM_PROTO_GetShiftState done [17:35:38]FM_GetShiftState done [17:35:38]opened in 1729816399 [17:35:38]opened+sec_in_day 1729902799 [17:35:38]quantity*price = 100015 [17:35:38]sum+1 = 100017 [17:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 289 25.10.2024 17:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191550 ФПД: 26940023587656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191550&fm=26940023587656&tin=02508201610067®Number=0000000000091776&sum=100000 [17:35:39]StoreToDocumentArchive [17:35:39]shift 540 fd 191550 [17:35:39]save to /storage/0540/doc_00191550 [17:35:39]save last doc name /storage/0540/doc_00191550 to /storage/kkm_last_doc_name [17:35:39]save OK [17:35:39]Clear old archive folders... [17:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:39]tlvbuf is 018313A0 [17:35:39]SAM_PROTO_ClearQueue [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 09 00 00 [17:35:39]Write to MH i2c: E2 08 00 4F C1 80 09 00 00 00 00 00 00 82 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 4F C1 00 90 00 84 [17:35:39]RAPDU: 90 00 [17:35:39]wFMCommunicate OK [17:35:39]SAM_PROTO_ClearQueue done [17:35:39]KKMCreateOFDPacket [17:35:39]OFDProtocolAddRootSTLVToBuf [17:35:39]FM_MakeSignedData [17:35:39]FM_MakeSignedData [17:35:39]SAM_PROTO_SignData [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 0D 01 02 [17:35:39]Write to MH i2c: E2 08 00 50 C1 80 0D 01 02 00 00 00 00 8A [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 50 C1 00 90 00 85 [17:35:39]RAPDU: 90 00 [17:35:39]wFMCommunicate OK [17:35:39]wFMCommunicate request_size=255 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EC 02 00 35 04 06 00 18 [17:35:39]Write to MH i2c: E2 02 01 51 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EC 02 00 35 04 06 00 18 00 00 E8 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 51 C1 00 90 00 86 [17:35:39]RAPDU: 90 00 [17:35:39]wFMCommunicate OK [17:35:39]wFMCommunicate request_size=10 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 0D 02 02 05 80 76 89 43 48 [17:35:39]Write to MH i2c: E2 0D 00 52 C1 80 0D 02 02 05 00 80 76 89 43 48 00 00 A1 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 03 00 52 C1 00 90 00 87 [17:35:39]RAPDU: 90 00 [17:35:39]wFMCommunicate OK [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 0D 03 02 [17:35:39]Write to MH i2c: E2 08 00 53 C1 80 0D 03 02 00 00 00 00 8F [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 0B 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 0B 00 53 C1 00 70 8A 88 62 8F B9 0C FE 90 00 C6 [17:35:39]RAPDU: 70 8A 88 62 8F B9 0C FE 90 00 [17:35:39]wFMCommunicate OK [17:35:39]SAM_PROTO_SignData done [17:35:39]FM_MakeSignedData done [17:35:39]CreateOFDProtocolMessage [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 11 00 00 [17:35:39]Write to MH i2c: E2 08 00 54 C1 80 11 00 00 00 00 00 00 8F [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:40]Read from MH i2c: E2 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: E2 17 00 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: E2 17 00 54 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [17:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:40]wFMCommunicate OK [17:35:40]CreateOFDProtocolMessage done [17:35:40]OFDSenderStorePacket 191550 [17:35:40]StoreOFDPacket docnum=191550 [17:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 EF 07 01 06 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EC 02 00 35 04 06 00 18 80 76 89 43 48 70 8A 88 62 8F B9 0C FE [17:35:40]CheckFolder [17:35:40]dirname=/storage/ofd_packets [17:35:40]CheckFolder done [17:35:40]ProducePacketName [17:35:40]name=ofd_packets/00191550 [17:35:40]NVStorageSaveData ofd_packets/00191550 [17:35:40]File name is /storage/ofd_packets/00191550 [17:35:40]Write 301 bytes [17:35:40]NVStorageSaveData done [17:35:40]OFDSenderStorePacket done [17:35:40]KKMCreateOFDPacket done [17:35:40]NVStorageSaveData kkm_last_timestamp [17:35:40]File name is /storage/kkm_last_timestamp [17:35:40]Write 4 bytes [17:35:40]NVStorageSaveData done [17:35:40]ExternCall_PrintAddStr [17:35:40]wPrintStart [17:35:40]Write to MH i2c: 01 00 00 55 C1 16 [17:35:40]Write i2c OK [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 07 00 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 07 00 55 C1 00 00 00 00 00 FF 0F 2B [17:35:40]RasterBufferAndPrint [17:35:40]line Счет N : (1)30848 [17:35:40]line ИНН: 02508201610067 [17:35:40]line Контрольно-Кассовый Чек [17:35:40]line ПРОДАЖА [17:35:40]line ТРК (МРК, ГНК) : 21 [17:35:40]line Товар: 2710124130 [17:35:40]line Аи-92-К-5 [17:35:40]line 14.950 * 66.90 [17:35:40]line = 1000.16 [17:35:40]line НДС 12% НСП 1% [17:35:40]line > о реализуемом товаре [17:35:40]line ОКРУГЛЕНИЕ: -0.16 [17:35:40]line ИТОГО: 1000.00 [17:35:40]line Внесено: 1000.00 [17:35:40]line СДАЧА: 0.00 [17:35:40]line НСП 1% : 8.85 [17:35:40]line НДС 12% : 106.21 [17:35:40]line Наличными: 1000.00 [17:35:40]line Безнал.: 0.00 [17:35:40]line Место: АЗС № 170 "Партнер Нефть" [17:35:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:35:40]line СНО: Общий режим [17:35:40]line Чек 289 25.10.2024 17:35 [17:35:40]line Смена: 540 ФФД: 1.0 [17:35:40]line ЗНМ: 0300000110 [17:35:40]line РНМ: 0000000000091776 [17:35:40]line Версия ККМ: 001 [17:35:40]line ФМ: 0000000000871754 [17:35:40]line ФД: 191550 [17:35:40]line ФПД: 26940023587656 [17:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191550&fm=26940023587656&tin=02508201610067®Number=0000000000091776&sum=100000 [17:35:40]written 0, free lines is 4095 [17:35:40]OFD Sender: Processing packet 191550 [packets to send 75, broken 74] [17:35:40]ProducePacketName [17:35:40]name=ofd_packets/00191550 [17:35:40]OFD Sender: To server: pG, [17:35:40]CommunicateWithHost lk.salyk.kg:30040 [17:35:40]ConnectInit lk.salyk.kg [17:35:40]Connected sock=10 [17:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 EF 07 01 06 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 D6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EC 02 00 35 04 06 00 18 80 76 89 43 48 70 8A 88 62 8F B9 0C FE [17:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 47 94 47 00 12 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EC 02 00 F4 03 04 00 C2 7B 1B 67 B6 04 01 00 00 56 00 2F 71 BB 83 78 CB [17:35:40]CommunicateWithHost err = 0 [17:35:40]CheckOFDResponse [17:35:40]1017 (14) - 77093643461234 [17:35:40]1041 (16) - 0000000000871754 [17:35:40]1040 (4) - 191550 [17:35:40]1012 (4) - 25.10.2024 11:06 [17:35:40]1206 (1) - 0 [17:35:40]OFD Sender: Remove packet 191550 [17:35:40]ProducePacketName [17:35:40]name=ofd_packets/00191550 [17:35:40]NVStorageDeleteData [17:35:40]Write to MH i2c: 01 00 00 80 C1 41 [17:35:40]Write i2c OK [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 07 00 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: 01 07 00 80 C1 00 00 00 00 00 C3 0C 17 [17:35:40]RasterBufferAndPrint [17:35:40]line [17:35:40]line [17:35:40]line [17:35:40]line [17:35:40]line [17:35:40]written 0, free lines is 3277 [17:35:40]MH_Cut [17:35:40]Write to MH i2c: D1 01 00 87 C1 01 1A [17:35:40]Write i2c OK [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: D1 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: D1 01 00 [17:35:40]MH_I2C_Read... [17:35:40]Read from MH i2c: D1 01 00 87 C1 00 19 [17:35:40]Write to MH i2c: 01 00 00 88 C1 49 [17:35:40]Write i2c OK [17:35:40]MH_I2C_Read... [17:35:40]OFD Sender: No OFD packet to send [17:35:41]*** Cut start [17:35:41]*** Partial cut [17:35:41]*** CUTSNS_PIN = 1 [17:35:41]*** CUTSNS_PIN = 0 [17:35:41]*** Brake cut motor [17:35:41]Read from MH i2c: 01 [17:35:41]MH_I2C_Read... [17:35:41]*** Stop cut motor [17:35:41]*** Cut end [17:35:41]Read from MH i2c: 01 07 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: 01 07 00 88 C1 00 00 00 00 00 FF 0F 5E [17:35:41]process_action close_receipt done [17:35:41]requested_data is exist [17:35:41]produce_requested_data [17:35:41]requested_item fm.sn is exist - process it [17:35:41]wFMCommunicate request_size=4 [17:35:41]MH_SAM_APDU [17:35:41]CAPDU: 80 11 00 00 [17:35:41]Write to MH i2c: E2 08 00 89 C1 80 11 00 00 00 00 00 00 C4 [17:35:41]Write i2c OK [17:35:41]MH_I2C_Read... [17:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:41]Read from MH i2c: E2 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 17 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 17 00 89 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [17:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:41]wFMCommunicate OK [17:35:41]requested_item fd.num is exist - process it [17:35:41]SAM_PROTO_GetFieldsCounters [17:35:42]wFMCommunicate request_size=4 [17:35:42]MH_SAM_APDU [17:35:42]CAPDU: 80 13 00 00 [17:35:42]Write to MH i2c: E2 08 00 8A C1 80 13 00 00 00 00 00 00 C7 [17:35:42]Write i2c OK [17:35:42]MH_I2C_Read... [17:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:42]Read from MH i2c: E2 [17:35:42]MH_I2C_Read... [17:35:42]Read from MH i2c: E2 62 00 [17:35:42]MH_I2C_Read... [17:35:42]Read from MH i2c: E2 62 00 8A C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [17:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:42]wFMCommunicate OK [17:35:42]SAM_PROTO_GetFieldsCounters done [17:35:42]requested_item shift.num is exist - process it [17:35:42]requested_item shift.opened is exist - process it [17:35:42]req_shift_opened [17:35:42]FM_GetShiftState [17:35:42]SAM_PROTO_GetShiftState [17:35:42]wFMCommunicate request_size=4 [17:35:42]MH_SAM_APDU [17:35:42]CAPDU: 80 13 01 00 [17:35:42]Write to MH i2c: E2 08 00 8B C1 80 13 01 00 00 00 00 00 C9 [17:35:42]Write i2c OK [17:35:42]MH_I2C_Read... [17:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:42]Read from MH i2c: E2 [17:35:42]MH_I2C_Read... [17:35:42]Read from MH i2c: E2 0E 00 [17:35:42]MH_I2C_Read... [17:35:42]Read from MH i2c: E2 0E 00 8B C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8C [17:35:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:35:42]wFMCommunicate OK [17:35:42]SAM_PROTO_GetShiftState done [17:35:42]FM_GetShiftState done [17:35:42]req_shift_opened done [17:35:42]requested_item shift.open_date is exist - process it [17:35:42]req_shift_open_date [17:35:42]req_shift_open_date done [17:35:42]produce_requested_data done [17:35:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191550,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:35:42]process_action_free close_receipt [17:35:42]json_value_free [17:35:42]json_value_free done [17:35:42]process_json_proto returns [17:35:42]Send response to host [17:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191550,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:35:42]free response buf [17:35:42]execute_script done [17:35:42]execute_script returns [17:35:42]free content buf [17:35:42]Sock 8.Close socket [17:35:42]Sock 8.Thread stoped [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:38:59]accept exits with 9 [17:38:59]New connection [17:38:59]New thread 3066817892 created [17:38:59]Thread 3066961252 joined [17:38:59]Waiting for new connection... [17:38:59] Sock 9.Parse request [17:38:59]Sock 9.Check first char [17:38:59]Sock 9.First char is OK [17:38:59]request: POST /json_proto HTTP/1.0 [17:38:59]Method: POST [17:38:59]URL: /json_proto [17:38:59]Method is POST - this is cgi request [17:38:59]url: /json_proto [17:38:59]query_string will be loaded in cgi processing [17:38:59]execute_cgi json_proto POST (null) [17:38:59]execute_cgi path=json_proto method=POST [17:38:59]POST find Content-Length [17:38:59]Host: 172.17.63.131:8080 [17:38:59]Content-Length: 677 [17:38:59]Content-Type: application/json [17:38:59] [17:38:59]POST finish read [17:38:59]Found Content-Length = 677 [17:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:59]execute_script... [17: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)30850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:59]POST & json_proto [17:38:59]process_json_proto [17:38:59]json parsed OK: [17:38:59]protocol is kg_v1.0 [17:38:59]action value=close_receipt [17:38:59]process_action close_receipt [17:38:59]cmd_close_receipt [17:38:59]MH_GetDate [17:38:59]Write to MH i2c: F0 00 00 8C C1 3C [17:38:59]Write i2c OK [17:38:59]MH_I2C_Read... [17:38:59]Read from MH i2c: F0 [17:38:59]MH_I2C_Read... [17:38:59]Read from MH i2c: F0 09 00 [17:38:59]MH_I2C_Read... [17:38:59]Read from MH i2c: F0 09 00 8C C1 00 BD D7 1B 67 22 05 6E 64 54 [17:38:59]GetLastDocTimeStamp 1729877748 [17:38:59]current date 1729877949 [17:38:59]FM_GetShiftState [17:38:59]SAM_PROTO_GetShiftState [17:38:59]wFMCommunicate request_size=4 [17:38:59]MH_SAM_APDU [17:38:59]CAPDU: 80 13 01 00 [17:38:59]Write to MH i2c: E2 08 00 8D C1 80 13 01 00 00 00 00 00 CB [17:38:59]Write i2c OK [17:38:59]MH_I2C_Read... [17:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:59]Read from MH i2c: E2 [17:38:59]MH_I2C_Read... [17:38:59]Read from MH i2c: E2 0E 00 [17:38:59]MH_I2C_Read... [17:38:59]Read from MH i2c: E2 0E 00 8D C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8E [17:38:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:38:59]wFMCommunicate OK [17:38:59]SAM_PROTO_GetShiftState done [17:38:59]FM_GetShiftState done [17:38:59]opened in 1729816399 [17:38:59]opened+sec_in_day 1729902799 [17:38:59]quantity*price = 70044 [17:38:59]sum+1 = 70045 [17:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 290 25.10.2024 17:39 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191551 ФПД: 277845194707163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191551&fm=277845194707163&tin=02508201610067®Number=0000000000091776&sum=70000 [17:39:00]StoreToDocumentArchive [17:39:00]shift 540 fd 191551 [17:39:00]save to /storage/0540/doc_00191551 [17:39:00]save last doc name /storage/0540/doc_00191551 to /storage/kkm_last_doc_name [17:39:00]save OK [17:39:00]Clear old archive folders... [17:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:00]tlvbuf is 018CD120 [17:39:00]SAM_PROTO_ClearQueue [17:39:00]wFMCommunicate request_size=4 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 09 00 00 [17:39:00]Write to MH i2c: E2 08 00 9A C1 80 09 00 00 00 00 00 00 CD [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:00]Read from MH i2c: E2 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 9A C1 00 90 00 CF [17:39:00]RAPDU: 90 00 [17:39:00]wFMCommunicate OK [17:39:00]SAM_PROTO_ClearQueue done [17:39:00]KKMCreateOFDPacket [17:39:00]OFDProtocolAddRootSTLVToBuf [17:39:00]FM_MakeSignedData [17:39:00]FM_MakeSignedData [17:39:00]SAM_PROTO_SignData [17:39:00]wFMCommunicate request_size=4 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 0D 01 02 [17:39:00]Write to MH i2c: E2 08 00 9B C1 80 0D 01 02 00 00 00 00 D5 [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:00]Read from MH i2c: E2 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 9B C1 00 90 00 D0 [17:39:00]RAPDU: 90 00 [17:39:00]wFMCommunicate OK [17:39:00]wFMCommunicate request_size=255 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 BD D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EC 02 00 35 04 06 00 FC [17:39:00]Write to MH i2c: E2 02 01 9C C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 BD D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EC 02 00 35 04 06 00 FC 00 00 F9 [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:01]OFD Sender: No OFD packet to send [17:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 9C C1 00 90 00 D1 [17:39:01]RAPDU: 90 00 [17:39:01]wFMCommunicate OK [17:39:01]wFMCommunicate request_size=10 [17:39:01]MH_SAM_APDU [17:39:01]CAPDU: 80 0D 02 02 05 B2 E0 22 10 DB [17:39:01]Write to MH i2c: E2 0D 00 9D C1 80 0D 02 02 05 00 B2 E0 22 10 DB 00 00 81 [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 9D C1 00 90 00 D2 [17:39:01]RAPDU: 90 00 [17:39:01]wFMCommunicate OK [17:39:01]wFMCommunicate request_size=4 [17:39:01]MH_SAM_APDU [17:39:01]CAPDU: 80 0D 03 02 [17:39:01]Write to MH i2c: E2 08 00 9E C1 80 0D 03 02 00 00 00 00 DA [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 0B 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 0B 00 9E C1 00 A5 A3 06 8B 09 CB 9A 60 90 00 82 [17:39:01]RAPDU: A5 A3 06 8B 09 CB 9A 60 90 00 [17:39:01]wFMCommunicate OK [17:39:01]SAM_PROTO_SignData done [17:39:01]FM_MakeSignedData done [17:39:01]CreateOFDProtocolMessage [17:39:01]wFMCommunicate request_size=4 [17:39:01]MH_SAM_APDU [17:39:01]CAPDU: 80 11 00 00 [17:39:01]Write to MH i2c: E2 08 00 9F C1 80 11 00 00 00 00 00 00 DA [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 17 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 17 00 9F C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [17:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:39:01]wFMCommunicate OK [17:39:01]CreateOFDProtocolMessage done [17:39:01]OFDSenderStorePacket 191551 [17:39:01]StoreOFDPacket docnum=191551 [17:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 63 45 07 01 29 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 BD D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EC 02 00 35 04 06 00 FC B2 E0 22 10 DB A5 A3 06 8B 09 CB 9A 60 [17:39:01]CheckFolder [17:39:01]dirname=/storage/ofd_packets [17:39:01]CheckFolder done [17:39:01]ProducePacketName [17:39:01]name=ofd_packets/00191551 [17:39:01]NVStorageSaveData ofd_packets/00191551 [17:39:01]File name is /storage/ofd_packets/00191551 [17:39:01]Write 301 bytes [17:39:01]NVStorageSaveData done [17:39:01]OFDSenderStorePacket done [17:39:01]KKMCreateOFDPacket done [17:39:01]NVStorageSaveData kkm_last_timestamp [17:39:01]File name is /storage/kkm_last_timestamp [17:39:01]Write 4 bytes [17:39:01]NVStorageSaveData done [17:39:01]ExternCall_PrintAddStr [17:39:01]wPrintStart [17:39:01]Write to MH i2c: 01 00 00 A0 C1 61 [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 A0 C1 00 00 00 00 00 FF 0F 76 [17:39:01]RasterBufferAndPrint [17:39:01]line Счет N : (1)30850 [17:39:01]line ИНН: 02508201610067 [17:39:01]line Контрольно-Кассовый Чек [17:39:01]line ПРОДАЖА [17:39:01]line ТРК (МРК, ГНК) : 12 [17:39:01]line Товар: 2710124130 [17:39:01]line Аи-92-К-5 [17:39:01]line 10.470 * 66.90 [17:39:01]line = 700.44 [17:39:01]line НДС 12% НСП 1% [17:39:01]line > о реализуемом товаре [17:39:01]line ОКРУГЛЕНИЕ: -0.44 [17:39:01]line ИТОГО: 700.00 [17:39:01]line Внесено: 700.00 [17:39:01]line СДАЧА: 0.00 [17:39:01]line НСП 1% : 6.20 [17:39:01]line НДС 12% : 74.38 [17:39:01]line Наличными: 700.00 [17:39:01]line Безнал.: 0.00 [17:39:01]line Место: АЗС № 170 "Партнер Нефть" [17:39:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:39:01]line СНО: Общий режим [17:39:01]line Чек 290 25.10.2024 17:39 [17:39:01]line Смена: 540 ФФД: 1.0 [17:39:01]line ЗНМ: 0300000110 [17:39:01]line РНМ: 0000000000091776 [17:39:01]line Версия ККМ: 001 [17:39:01]line ФМ: 0000000000871754 [17:39:01]line ФД: 191551 [17:39:01]line ФПД: 277845194707163 [17:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191551&fm=277845194707163&tin=02508201610067®Number=0000000000091776&sum=70000 [17:39:01]OFD Sender: Processing packet 191551 [packets to send 75, broken 74] [17:39:01]ProducePacketName [17:39:01]name=ofd_packets/00191551 [17:39:01]OFD Sender: To server: pG, [17:39:01]CommunicateWithHost lk.salyk.kg:30040 [17:39:01]ConnectInit lk.salyk.kg [17:39:01]written 0, free lines is 4095 [17:39:01]Connected sock=10 [17: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 31 37 35 34 0F 01 00 00 63 45 07 01 29 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 BD D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EC 02 00 35 04 06 00 FC B2 E0 22 10 DB A5 A3 06 8B 09 CB 9A 60 [17:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 D9 47 00 E1 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EC 02 00 F4 03 04 00 8B 7C 1B 67 B6 04 01 00 00 2E 98 72 5F 16 23 65 7F [17:39:02]CommunicateWithHost err = 0 [17:39:02]CheckOFDResponse [17:39:02]1017 (14) - 77093643461234 [17:39:02]1041 (16) - 0000000000871754 [17:39:02]1040 (4) - 191551 [17:39:02]1012 (4) - 25.10.2024 11:10 [17:39:02]1206 (1) - 0 [17:39:02]OFD Sender: Remove packet 191551 [17:39:02]ProducePacketName [17:39:02]name=ofd_packets/00191551 [17:39:02]NVStorageDeleteData [17:39:02]Write to MH i2c: 01 00 00 CB C1 8C [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: 01 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: 01 07 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: 01 07 00 CB C1 00 00 00 00 00 BB 0C 5A [17:39:02]RasterBufferAndPrint [17:39:02]line [17:39:02]line [17:39:02]line [17:39:02]line [17:39:02]line [17:39:02]written 0, free lines is 3266 [17:39:02]MH_Cut [17:39:02]Write to MH i2c: D1 01 00 D2 C1 01 65 [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: D1 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: D1 01 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: D1 01 00 D2 C1 00 64 [17:39:02]Write to MH i2c: 01 00 00 D3 C1 94 [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]OFD Sender: No OFD packet to send [17:39:02]*** Cut start [17:39:02]*** Partial cut [17:39:02]*** CUTSNS_PIN = 1 [17:39:03]*** CUTSNS_PIN = 0 [17:39:03]*** Brake cut motor [17:39:03]Read from MH i2c: 01 [17:39:03]MH_I2C_Read... [17:39:03]*** Stop cut motor [17:39:03]*** Cut end [17:39:03]Read from MH i2c: 01 07 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: 01 07 00 D3 C1 00 00 00 00 00 FF 0F A9 [17:39:03]process_action close_receipt done [17:39:03]requested_data is exist [17:39:03]produce_requested_data [17:39:03]requested_item fm.sn is exist - process it [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 11 00 00 [17:39:03]Write to MH i2c: E2 08 00 D4 C1 80 11 00 00 00 00 00 00 0F [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 D4 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [17:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:39:03]wFMCommunicate OK [17:39:03]requested_item fd.num is exist - process it [17:39:03]SAM_PROTO_GetFieldsCounters [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 13 00 00 [17:39:03]Write to MH i2c: E2 08 00 D5 C1 80 13 00 00 00 00 00 00 12 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 62 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 62 00 D5 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [17: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_GetFieldsCounters done [17:39:03]requested_item shift.num is exist - process it [17:39:03]requested_item shift.opened is exist - process it [17:39:03]req_shift_opened [17:39:03]FM_GetShiftState [17:39:03]SAM_PROTO_GetShiftState [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 13 01 00 [17:39:03]Write to MH i2c: E2 08 00 D6 C1 80 13 01 00 00 00 00 00 14 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0E 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0E 00 D6 C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D7 [17:39:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_GetShiftState done [17:39:03]FM_GetShiftState done [17:39:03]req_shift_opened done [17:39:03]requested_item shift.open_date is exist - process it [17:39:03]req_shift_open_date [17:39:03]req_shift_open_date done [17:39:03]produce_requested_data done [17:39:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191551,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:39:03]process_action_free close_receipt [17:39:03]json_value_free [17:39:03]json_value_free done [17:39:03]process_json_proto returns [17:39:03]Send response to host [17:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191551,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:39:03]free response buf [17:39:03]execute_script done [17:39:03]execute_script returns [17:39:03]free content buf [17:39:03]Sock 9.Close socket [17:39:03]Sock 9.Thread stoped [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:39]accept exits with 8 [17:39:39]New connection [17:39:39]New thread 3066961252 created [17:39:39]Thread 3066817892 joined [17:39:39]Waiting for new connection... [17:39:39] Sock 8.Parse request [17:39:39]Sock 8.Check first char [17:39:39]Sock 8.First char is OK [17:39:39]request: POST /json_proto HTTP/1.0 [17:39:39]Method: POST [17:39:39]URL: /json_proto [17:39:39]Method is POST - this is cgi request [17:39:39]url: /json_proto [17:39:39]query_string will be loaded in cgi processing [17:39:39]execute_cgi json_proto POST (null) [17:39:39]execute_cgi path=json_proto method=POST [17:39:39]POST find Content-Length [17:39:39]Host: 172.17.63.131:8080 [17:39:39]Content-Length: 681 [17:39:39]Content-Type: application/json [17:39:39] [17:39:39]POST finish read [17:39:39]Found Content-Length = 681 [17:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:39]execute_script... [17:39: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)30851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:39]POST & json_proto [17:39:39]process_json_proto [17:39:39]json parsed OK: [17:39:39]protocol is kg_v1.0 [17:39:39]action value=close_receipt [17:39:39]process_action close_receipt [17:39:39]cmd_close_receipt [17:39:39]MH_GetDate [17:39:39]Write to MH i2c: F0 00 00 D7 C1 87 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 09 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: F0 09 00 D7 C1 00 E5 D7 1B 67 22 05 6E 64 C7 [17:39:39]GetLastDocTimeStamp 1729877949 [17:39:39]current date 1729877989 [17:39:39]FM_GetShiftState [17:39:39]SAM_PROTO_GetShiftState [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 13 01 00 [17:39:39]Write to MH i2c: E2 08 00 D8 C1 80 13 01 00 00 00 00 00 16 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0E 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0E 00 D8 C1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D9 [17:39:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_GetShiftState done [17:39:39]FM_GetShiftState done [17:39:39]opened in 1729816399 [17:39:39]opened+sec_in_day 1729902799 [17:39:39]quantity*price = 100015 [17:39:39]sum+1 = 100017 [17:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 291 25.10.2024 17:39 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191552 ФПД: 96439741878465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191552&fm=96439741878465&tin=02508201610067®Number=0000000000091776&sum=100000 [17:39:40]StoreToDocumentArchive [17:39:40]shift 540 fd 191552 [17:39:40]save to /storage/0540/doc_00191552 [17:39:40]save last doc name /storage/0540/doc_00191552 to /storage/kkm_last_doc_name [17:39:40]save OK [17:39:40]Clear old archive folders... [17:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:40]tlvbuf is 015CCB40 [17:39:40]SAM_PROTO_ClearQueue [17:39:40]wFMCommunicate request_size=4 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 09 00 00 [17:39:40]Write to MH i2c: E2 08 00 E5 C1 80 09 00 00 00 00 00 00 18 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 E5 C1 00 90 00 1A [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_ClearQueue done [17:39:41]KKMCreateOFDPacket [17:39:41]OFDProtocolAddRootSTLVToBuf [17:39:41]FM_MakeSignedData [17:39:41]FM_MakeSignedData [17:39:41]SAM_PROTO_SignData [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 01 02 [17:39:41]Write to MH i2c: E2 08 00 E6 C1 80 0D 01 02 00 00 00 00 20 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 E6 C1 00 90 00 1B [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]wFMCommunicate request_size=255 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EC 02 00 35 04 06 00 57 [17:39:41]Write to MH i2c: E2 02 01 E7 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EC 02 00 35 04 06 00 57 00 00 B3 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 E7 C1 00 90 00 1C [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]wFMCommunicate request_size=10 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 02 02 05 B6 20 8E 90 C1 [17:39:41]Write to MH i2c: E2 0D 00 E8 C1 80 0D 02 02 05 00 B6 20 8E 90 C1 00 00 E2 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 03 00 E8 C1 00 90 00 1D [17:39:41]RAPDU: 90 00 [17:39:41]wFMCommunicate OK [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 0D 03 02 [17:39:41]Write to MH i2c: E2 08 00 E9 C1 80 0D 03 02 00 00 00 00 25 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0B 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0B 00 E9 C1 00 AC 22 34 29 FB 91 50 FF 90 00 2C [17:39:41]RAPDU: AC 22 34 29 FB 91 50 FF 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_SignData done [17:39:41]FM_MakeSignedData done [17:39:41]CreateOFDProtocolMessage [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 EA C1 80 11 00 00 00 00 00 00 25 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 EA C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:39:41]wFMCommunicate OK [17:39:41]CreateOFDProtocolMessage done [17:39:41]OFDSenderStorePacket 191552 [17:39:41]StoreOFDPacket docnum=191552 [17:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F 5D 07 01 90 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EC 02 00 35 04 06 00 57 B6 20 8E 90 C1 AC 22 34 29 FB 91 50 FF [17:39:41]CheckFolder [17:39:41]dirname=/storage/ofd_packets [17:39:41]CheckFolder done [17:39:41]ProducePacketName [17:39:41]name=ofd_packets/00191552 [17:39:41]NVStorageSaveData ofd_packets/00191552 [17:39:41]File name is /storage/ofd_packets/00191552 [17:39:41]Write 301 bytes [17:39:41]NVStorageSaveData done [17:39:41]OFDSenderStorePacket done [17:39:41]KKMCreateOFDPacket done [17:39:41]NVStorageSaveData kkm_last_timestamp [17:39:41]File name is /storage/kkm_last_timestamp [17:39:41]Write 4 bytes [17:39:41]NVStorageSaveData done [17:39:41]ExternCall_PrintAddStr [17:39:41]wPrintStart [17:39:41]Write to MH i2c: 01 00 00 EB C1 AC [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 EB C1 00 00 00 00 00 FF 0F C1 [17:39:41]RasterBufferAndPrint [17:39:41]line Счет N : (1)30851 [17:39:41]line ИНН: 02508201610067 [17:39:41]line Контрольно-Кассовый Чек [17:39:41]line ПРОДАЖА [17:39:41]line ТРК (МРК, ГНК) : 21 [17:39:41]line Товар: 2710124130 [17:39:41]line Аи-92-К-5 [17:39:41]line 14.950 * 66.90 [17:39:41]line = 1000.16 [17:39:41]line НДС 12% НСП 1% [17:39:41]line > о реализуемом товаре [17:39:41]line ОКРУГЛЕНИЕ: -0.16 [17:39:41]line ИТОГО: 1000.00 [17:39:41]line Внесено: 1000.00 [17:39:41]line СДАЧА: 0.00 [17:39:41]line НСП 1% : 8.85 [17:39:41]line НДС 12% : 106.21 [17:39:41]line Наличными: 1000.00 [17:39:41]line Безнал.: 0.00 [17:39:41]line Место: АЗС № 170 "Партнер Нефть" [17:39:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:39:41]line СНО: Общий режим [17:39:41]line Чек 291 25.10.2024 17:39 [17:39:41]line Смена: 540 ФФД: 1.0 [17:39:41]line ЗНМ: 0300000110 [17:39:41]line РНМ: 0000000000091776 [17:39:41]line Версия ККМ: 001 [17:39:41]line ФМ: 0000000000871754 [17:39:41]line ФД: 191552 [17:39:41]line ФПД: 96439741878465 [17:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191552&fm=96439741878465&tin=02508201610067®Number=0000000000091776&sum=100000 [17:39:41]OFD Sender: Processing packet 191552 [packets to send 75, broken 74] [17:39:41]ProducePacketName [17:39:41]name=ofd_packets/00191552 [17:39:41]OFD Sender: To server: pG, [17:39:41]CommunicateWithHost lk.salyk.kg:30040 [17:39:41]ConnectInit lk.salyk.kg [17:39:41]written 0, free lines is 4095 [17:39:41]Connected sock=10 [17:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F 5D 07 01 90 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 D7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EC 02 00 35 04 06 00 57 B6 20 8E 90 C1 AC 22 34 29 FB 91 50 FF [17:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5B A3 47 00 C6 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EC 02 00 F4 03 04 00 B3 7C 1B 67 B6 04 01 00 00 40 4D B7 BE 88 58 8C 63 [17:39:42]CommunicateWithHost err = 0 [17:39:42]CheckOFDResponse [17:39:42]1017 (14) - 77093643461234 [17:39:42]1041 (16) - 0000000000871754 [17:39:42]1040 (4) - 191552 [17:39:42]1012 (4) - 25.10.2024 11:10 [17:39:42]1206 (1) - 0 [17:39:42]OFD Sender: Remove packet 191552 [17:39:42]ProducePacketName [17:39:42]name=ofd_packets/00191552 [17:39:42]NVStorageDeleteData [17:39:42]Write to MH i2c: 01 00 00 16 C2 D8 [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 07 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: 01 07 00 16 C2 00 00 00 00 00 BF 0C AA [17:39:42]RasterBufferAndPrint [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]line [17:39:42]written 0, free lines is 3268 [17:39:42]MH_Cut [17:39:42]Write to MH i2c: D1 01 00 1D C2 01 B1 [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 01 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: D1 01 00 1D C2 00 B0 [17:39:42]Write to MH i2c: 01 00 00 1E C2 E0 [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]OFD Sender: No OFD packet to send [17:39:43]*** Cut start [17:39:43]*** Partial cut [17:39:43]*** CUTSNS_PIN = 1 [17:39:43]*** CUTSNS_PIN = 0 [17:39:43]*** Brake cut motor [17:39:43]Read from MH i2c: 01 [17:39:43]MH_I2C_Read... [17:39:43]*** Stop cut motor [17:39:43]*** Cut end [17:39:43]Read from MH i2c: 01 07 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: 01 07 00 1E C2 00 00 00 00 00 FF 0F F5 [17:39:43]process_action close_receipt done [17:39:43]requested_data is exist [17:39:43]produce_requested_data [17:39:43]requested_item fm.sn is exist - process it [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 11 00 00 [17:39:43]Write to MH i2c: E2 08 00 1F C2 80 11 00 00 00 00 00 00 5B [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 1F C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [17:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:39:43]wFMCommunicate OK [17:39:43]requested_item fd.num is exist - process it [17:39:43]SAM_PROTO_GetFieldsCounters [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 00 00 [17:39:43]Write to MH i2c: E2 08 00 20 C2 80 13 00 00 00 00 00 00 5E [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 20 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [17:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetFieldsCounters done [17:39:43]requested_item shift.num is exist - process it [17:39:43]requested_item shift.opened is exist - process it [17:39:43]req_shift_opened [17:39:43]FM_GetShiftState [17:39:43]SAM_PROTO_GetShiftState [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 01 00 [17:39:43]Write to MH i2c: E2 08 00 21 C2 80 13 01 00 00 00 00 00 60 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0E 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0E 00 21 C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 23 [17:39:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetShiftState done [17:39:43]FM_GetShiftState done [17:39:43]req_shift_opened done [17:39:43]requested_item shift.open_date is exist - process it [17:39:43]req_shift_open_date [17:39:43]req_shift_open_date done [17:39:43]produce_requested_data done [17:39:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191552,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:39:43]process_action_free close_receipt [17:39:43]json_value_free [17:39:43]json_value_free done [17:39:43]process_json_proto returns [17:39:43]Send response to host [17:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191552,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:39:43]free response buf [17:39:43]execute_script done [17:39:43]execute_script returns [17:39:43]free content buf [17:39:43]Sock 8.Close socket [17:39:43]Sock 8.Thread stoped [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:24]accept exits with 9 [17:44:24]New connection [17:44:24]New thread 3066817892 created [17:44:24]Thread 3066961252 joined [17:44:24]Waiting for new connection... [17:44:24] Sock 9.Parse request [17:44:24]Sock 9.Check first char [17:44:24]Sock 9.First char is OK [17:44:24]request: POST /json_proto HTTP/1.0 [17:44:24]Method: POST [17:44:24]URL: /json_proto [17:44:24]Method is POST - this is cgi request [17:44:24]url: /json_proto [17:44:24]query_string will be loaded in cgi processing [17:44:24]execute_cgi json_proto POST (null) [17:44:24]execute_cgi path=json_proto method=POST [17:44:24]POST find Content-Length [17:44:24]Host: 172.17.63.131:8080 [17:44:24]Content-Length: 678 [17:44:24]Content-Type: application/json [17:44:24] [17:44:24]POST finish read [17:44:24]Found Content-Length = 678 [17:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:24]execute_script... [17:44: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)30852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:24]POST & json_proto [17:44:24]process_json_proto [17:44:24]json parsed OK: [17:44:24]protocol is kg_v1.0 [17:44:24]action value=close_receipt [17:44:24]process_action close_receipt [17:44:24]cmd_close_receipt [17:44:24]MH_GetDate [17:44:24]Write to MH i2c: F0 00 00 22 C2 D3 [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: F0 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: F0 09 00 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: F0 09 00 22 C2 00 03 D9 1B 67 22 05 6E 64 33 [17:44:24]GetLastDocTimeStamp 1729877989 [17:44:24]current date 1729878275 [17:44:24]FM_GetShiftState [17:44:24]SAM_PROTO_GetShiftState [17:44:24]wFMCommunicate request_size=4 [17:44:24]MH_SAM_APDU [17:44:24]CAPDU: 80 13 01 00 [17:44:24]Write to MH i2c: E2 08 00 23 C2 80 13 01 00 00 00 00 00 62 [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:24]Read from MH i2c: E2 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 0E 00 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 0E 00 23 C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 25 [17:44:24]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:44:24]wFMCommunicate OK [17:44:24]SAM_PROTO_GetShiftState done [17:44:24]FM_GetShiftState done [17:44:24]opened in 1729816399 [17:44:24]opened+sec_in_day 1729902799 [17:44:24]quantity*price = 82019 [17:44:24]sum+1 = 82020 [17:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 820.00 Внесено: 1000.00 СДАЧА: 180.00 НСП 1% : 7.26 НДС 12% : 87.10 Наличными: 820.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 292 25.10.2024 17:44 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191553 ФПД: 111311539937695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191553&fm=111311539937695&tin=02508201610067®Number=0000000000091776&sum=82000 [17:44:26]StoreToDocumentArchive [17:44:26]shift 540 fd 191553 [17:44:26]save to /storage/0540/doc_00191553 [17:44:26]save last doc name /storage/0540/doc_00191553 to /storage/kkm_last_doc_name [17:44:26]save OK [17:44:26]Clear old archive folders... [17:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:26]tlvbuf is 016251A0 [17:44:26]SAM_PROTO_ClearQueue [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 09 00 00 [17:44:26]Write to MH i2c: E2 08 00 30 C2 80 09 00 00 00 00 00 00 64 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 30 C2 00 90 00 66 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_ClearQueue done [17:44:26]KKMCreateOFDPacket [17:44:26]OFDProtocolAddRootSTLVToBuf [17:44:26]FM_MakeSignedData [17:44:26]FM_MakeSignedData [17:44:26]SAM_PROTO_SignData [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 01 02 [17:44:26]Write to MH i2c: E2 08 00 31 C2 80 0D 01 02 00 00 00 00 6C [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 31 C2 00 90 00 67 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=255 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 03 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EC 02 00 35 04 06 00 65 [17:44:26]Write to MH i2c: E2 02 01 32 C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 03 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EC 02 00 35 04 06 00 65 00 00 C5 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 32 C2 00 90 00 68 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=10 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 02 02 05 3C BC CC 21 9F [17:44:26]Write to MH i2c: E2 0D 00 33 C2 80 0D 02 02 05 00 3C BC CC 21 9F 00 00 FD [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 33 C2 00 90 00 69 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 03 02 [17:44:26]Write to MH i2c: E2 08 00 34 C2 80 0D 03 02 00 00 00 00 71 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0B 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0B 00 34 C2 00 6D 76 A9 CA 0D F7 93 86 90 00 E5 [17:44:26]RAPDU: 6D 76 A9 CA 0D F7 93 86 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_SignData done [17:44:26]FM_MakeSignedData done [17:44:26]CreateOFDProtocolMessage [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 11 00 00 [17:44:26]Write to MH i2c: E2 08 00 35 C2 80 11 00 00 00 00 00 00 71 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 35 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [17:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:44:26]wFMCommunicate OK [17:44:26]CreateOFDProtocolMessage done [17:44:26]OFDSenderStorePacket 191553 [17:44:26]StoreOFDPacket docnum=191553 [17:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 78 07 01 68 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 03 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EC 02 00 35 04 06 00 65 3C BC CC 21 9F 6D 76 A9 CA 0D F7 93 86 [17:44:26]CheckFolder [17:44:26]dirname=/storage/ofd_packets [17:44:26]CheckFolder done [17:44:26]ProducePacketName [17:44:26]name=ofd_packets/00191553 [17:44:26]NVStorageSaveData ofd_packets/00191553 [17:44:26]File name is /storage/ofd_packets/00191553 [17:44:26]Write 301 bytes [17:44:26]NVStorageSaveData done [17:44:26]OFDSenderStorePacket done [17:44:26]KKMCreateOFDPacket done [17:44:26]NVStorageSaveData kkm_last_timestamp [17:44:26]File name is /storage/kkm_last_timestamp [17:44:26]Write 4 bytes [17:44:26]NVStorageSaveData done [17:44:26]ExternCall_PrintAddStr [17:44:26]wPrintStart [17:44:26]Write to MH i2c: 01 00 00 36 C2 F8 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 36 C2 00 00 00 00 00 FF 0F 0D [17:44:26]RasterBufferAndPrint [17:44:26]line Счет N : (1)30852 [17:44:26]line ИНН: 02508201610067 [17:44:26]line Контрольно-Кассовый Чек [17:44:26]line ПРОДАЖА [17:44:26]line ТРК (МРК, ГНК) : 21 [17:44:26]line Товар: 2710124130 [17:44:26]line Аи-92-К-5 [17:44:26]line 12.260 * 66.90 [17:44:26]line = 820.19 [17:44:26]line НДС 12% НСП 1% [17:44:26]line > о реализуемом товаре [17:44:26]line ОКРУГЛЕНИЕ: -0.19 [17:44:26]line ИТОГО: 820.00 [17:44:26]line Внесено: 1000.00 [17:44:26]line СДАЧА: 180.00 [17:44:26]line НСП 1% : 7.26 [17:44:26]line НДС 12% : 87.10 [17:44:26]line Наличными: 820.00 [17:44:26]line Безнал.: 0.00 [17:44:26]line Место: АЗС № 170 "Партнер Нефть" [17:44:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:44:26]line СНО: Общий режим [17:44:26]line Чек 292 25.10.2024 17:44 [17:44:26]line Смена: 540 ФФД: 1.0 [17:44:26]line ЗНМ: 0300000110 [17:44:26]line РНМ: 0000000000091776 [17:44:26]line Версия ККМ: 001 [17:44:26]line ФМ: 0000000000871754 [17:44:26]line ФД: 191553 [17:44:26]line ФПД: 111311539937695 [17:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191553&fm=111311539937695&tin=02508201610067®Number=0000000000091776&sum=82000 [17:44:26]OFD Sender: Processing packet 191553 [packets to send 75, broken 74] [17:44:26]ProducePacketName [17:44:26]name=ofd_packets/00191553 [17:44:26]OFD Sender: To server: pG, [17:44:26]CommunicateWithHost lk.salyk.kg:30040 [17:44:26]ConnectInit lk.salyk.kg [17:44:26]written 0, free lines is 4095 [17:44:27]Connected sock=10 [17:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 78 07 01 68 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 03 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EC 02 00 35 04 06 00 65 3C BC CC 21 9F 6D 76 A9 CA 0D F7 93 86 [17:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A4 F0 47 00 96 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EC 02 00 F4 03 04 00 D0 7D 1B 67 B6 04 01 00 00 47 0B D7 5E 65 CD 5F 10 [17:44:27]CommunicateWithHost err = 0 [17:44:27]CheckOFDResponse [17:44:27]1017 (14) - 77093643461234 [17:44:27]1041 (16) - 0000000000871754 [17:44:27]1040 (4) - 191553 [17:44:27]1012 (4) - 25.10.2024 11:15 [17:44:27]1206 (1) - 0 [17:44:27]OFD Sender: Remove packet 191553 [17:44:27]ProducePacketName [17:44:27]name=ofd_packets/00191553 [17:44:27]NVStorageDeleteData [17:44:27]Write to MH i2c: 01 00 00 61 C2 23 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 61 C2 00 00 00 00 00 B8 0C EE [17:44:27]RasterBufferAndPrint [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]written 0, free lines is 3260 [17:44:27]MH_Cut [17:44:27]Write to MH i2c: D1 01 00 68 C2 01 FC [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 01 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 01 00 68 C2 00 FB [17:44:27]Write to MH i2c: 01 00 00 69 C2 2B [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]OFD Sender: No OFD packet to send [17:44:28]*** Cut start [17:44:28]*** Partial cut [17:44:28]*** CUTSNS_PIN = 1 [17:44:28]*** CUTSNS_PIN = 0 [17:44:28]*** Brake cut motor [17:44:28]Read from MH i2c: 01 [17:44:28]MH_I2C_Read... [17:44:28]*** Stop cut motor [17:44:28]*** Cut end [17:44:28]Read from MH i2c: 01 07 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: 01 07 00 69 C2 00 00 00 00 00 FF 0F 40 [17:44:28]process_action close_receipt done [17:44:28]requested_data is exist [17:44:28]produce_requested_data [17:44:28]requested_item fm.sn is exist - process it [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 11 00 00 [17:44:28]Write to MH i2c: E2 08 00 6A C2 80 11 00 00 00 00 00 00 A6 [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:28]Read from MH i2c: E2 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 6A C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [17:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:44:28]wFMCommunicate OK [17:44:28]requested_item fd.num is exist - process it [17:44:28]SAM_PROTO_GetFieldsCounters [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 13 00 00 [17:44:28]Write to MH i2c: E2 08 00 6B C2 80 13 00 00 00 00 00 00 A9 [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 6B C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetFieldsCounters done [17:44:29]requested_item shift.num is exist - process it [17:44:29]requested_item shift.opened is exist - process it [17:44:29]req_shift_opened [17:44:29]FM_GetShiftState [17:44:29]SAM_PROTO_GetShiftState [17:44:29]wFMCommunicate request_size=4 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 13 01 00 [17:44:29]Write to MH i2c: E2 08 00 6C C2 80 13 01 00 00 00 00 00 AB [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 6C C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6E [17:44:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetShiftState done [17:44:29]FM_GetShiftState done [17:44:29]req_shift_opened done [17:44:29]requested_item shift.open_date is exist - process it [17:44:29]req_shift_open_date [17:44:29]req_shift_open_date done [17:44:29]produce_requested_data done [17:44:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191553,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:44:29]process_action_free close_receipt [17:44:29]json_value_free [17:44:29]json_value_free done [17:44:29]process_json_proto returns [17:44:29]Send response to host [17:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191553,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:44:29]free response buf [17:44:29]execute_script done [17:44:29]execute_script returns [17:44:29]free content buf [17:44:29]Sock 9.Close socket [17:44:29]Sock 9.Thread stoped [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]accept exits with 8 [17:46:27]New connection [17:46:27]New thread 3066961252 created [17:46:27]Thread 3066817892 joined [17:46:27]Waiting for new connection... [17:46:27] Sock 8.Parse request [17:46:27]Sock 8.Check first char [17:46:27]Sock 8.First char is OK [17:46:27]request: POST /json_proto HTTP/1.0 [17:46:27]Method: POST [17:46:27]URL: /json_proto [17:46:27]Method is POST - this is cgi request [17:46:27]url: /json_proto [17:46:27]query_string will be loaded in cgi processing [17:46:27]execute_cgi json_proto POST (null) [17:46:27]execute_cgi path=json_proto method=POST [17:46:27]POST find Content-Length [17:46:27]Host: 172.17.63.131:8080 [17:46:27]Content-Length: 677 [17:46:27]Content-Type: application/json [17:46:27] [17:46:27]POST finish read [17:46:27]Found Content-Length = 677 [17:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:27]execute_script... [17:46: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)30853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:27]POST & json_proto [17:46:27]process_json_proto [17:46:27]json parsed OK: [17:46:27]protocol is kg_v1.0 [17:46:27]action value=close_receipt [17:46:27]process_action close_receipt [17:46:27]cmd_close_receipt [17:46:27]MH_GetDate [17:46:27]Write to MH i2c: F0 00 00 6D C2 1E [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 09 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 09 00 6D C2 00 7D D9 1B 67 22 05 6E 64 F8 [17:46:27]GetLastDocTimeStamp 1729878275 [17:46:27]current date 1729878397 [17:46:27]FM_GetShiftState [17:46:27]SAM_PROTO_GetShiftState [17:46:27]wFMCommunicate request_size=4 [17:46:27]MH_SAM_APDU [17:46:27]CAPDU: 80 13 01 00 [17:46:27]Write to MH i2c: E2 08 00 6E C2 80 13 01 00 00 00 00 00 AD [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:27]Read from MH i2c: E2 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 0E 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 0E 00 6E C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 70 [17:46:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:46:27]wFMCommunicate OK [17:46:27]SAM_PROTO_GetShiftState done [17:46:27]FM_GetShiftState done [17:46:27]opened in 1729816399 [17:46:27]opened+sec_in_day 1729902799 [17:46:27]quantity*price = 80012 [17:46:27]sum+1 = 80013 [17:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 293 25.10.2024 17:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191554 ФПД: 17895974451481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174637&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191554&fm=17895974451481&tin=02508201610067®Number=0000000000091776&sum=80000 [17:46:28]StoreToDocumentArchive [17:46:28]shift 540 fd 191554 [17:46:28]save to /storage/0540/doc_00191554 [17:46:28]save last doc name /storage/0540/doc_00191554 to /storage/kkm_last_doc_name [17:46:28]save OK [17:46:28]Clear old archive folders... [17:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:28]tlvbuf is 019D2830 [17:46:28]SAM_PROTO_ClearQueue [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 09 00 00 [17:46:28]Write to MH i2c: E2 08 00 7B C2 80 09 00 00 00 00 00 00 AF [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 7B C2 00 90 00 B1 [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_ClearQueue done [17:46:28]KKMCreateOFDPacket [17:46:28]OFDProtocolAddRootSTLVToBuf [17:46:28]FM_MakeSignedData [17:46:28]FM_MakeSignedData [17:46:28]SAM_PROTO_SignData [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 01 02 [17:46:28]Write to MH i2c: E2 08 00 7C C2 80 0D 01 02 00 00 00 00 B7 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 7C C2 00 90 00 B2 [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]wFMCommunicate request_size=255 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7D D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EC 02 00 35 04 06 00 10 [17:46:28]Write to MH i2c: E2 02 01 7D C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7D D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EC 02 00 35 04 06 00 10 00 00 93 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 7D C2 00 90 00 B3 [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]wFMCommunicate request_size=10 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 02 02 05 46 BB 33 39 19 [17:46:28]Write to MH i2c: E2 0D 00 7E C2 80 0D 02 02 05 00 46 BB 33 39 19 00 00 4A [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 7E C2 00 90 00 B4 [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 03 02 [17:46:28]Write to MH i2c: E2 08 00 7F C2 80 0D 03 02 00 00 00 00 BC [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0B 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0B 00 7F C2 00 84 30 6D 03 7F 21 F8 E1 90 00 5A [17:46:28]RAPDU: 84 30 6D 03 7F 21 F8 E1 90 00 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_SignData done [17:46:28]FM_MakeSignedData done [17:46:28]CreateOFDProtocolMessage [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 11 00 00 [17:46:28]Write to MH i2c: E2 08 00 80 C2 80 11 00 00 00 00 00 00 BC [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 17 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 17 00 80 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [17:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:28]wFMCommunicate OK [17:46:28]CreateOFDProtocolMessage done [17:46:28]OFDSenderStorePacket 191554 [17:46:28]StoreOFDPacket docnum=191554 [17:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 42 07 01 76 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7D D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EC 02 00 35 04 06 00 10 46 BB 33 39 19 84 30 6D 03 7F 21 F8 E1 [17:46:28]CheckFolder [17:46:28]dirname=/storage/ofd_packets [17:46:28]CheckFolder done [17:46:28]ProducePacketName [17:46:28]name=ofd_packets/00191554 [17:46:28]NVStorageSaveData ofd_packets/00191554 [17:46:28]File name is /storage/ofd_packets/00191554 [17:46:28]Write 301 bytes [17:46:28]NVStorageSaveData done [17:46:28]OFDSenderStorePacket done [17:46:28]KKMCreateOFDPacket done [17:46:28]NVStorageSaveData kkm_last_timestamp [17:46:28]File name is /storage/kkm_last_timestamp [17:46:28]Write 4 bytes [17:46:28]NVStorageSaveData done [17:46:28]ExternCall_PrintAddStr [17:46:28]wPrintStart [17:46:28]Write to MH i2c: 01 00 00 81 C2 43 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 81 C2 00 00 00 00 00 FF 0F 58 [17:46:28]RasterBufferAndPrint [17:46:28]line Счет N : (1)30853 [17:46:28]line ИНН: 02508201610067 [17:46:28]line Контрольно-Кассовый Чек [17:46:28]line ПРОДАЖА [17:46:28]line ТРК (МРК, ГНК) : 12 [17:46:28]line Товар: 2710124130 [17:46:28]line Аи-92-К-5 [17:46:28]line 11.960 * 66.90 [17:46:28]line = 800.12 [17:46:28]line НДС 12% НСП 1% [17:46:28]line > о реализуемом товаре [17:46:28]line ОКРУГЛЕНИЕ: -0.12 [17:46:28]line ИТОГО: 800.00 [17:46:28]line Внесено: 800.00 [17:46:28]line СДАЧА: 0.00 [17:46:28]line НСП 1% : 7.08 [17:46:28]line НДС 12% : 84.97 [17:46:28]line Наличными: 800.00 [17:46:28]line Безнал.: 0.00 [17:46:28]line Место: АЗС № 170 "Партнер Нефть" [17:46:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:46:28]line СНО: Общий режим [17:46:28]line Чек 293 25.10.2024 17:46 [17:46:28]line Смена: 540 ФФД: 1.0 [17:46:28]line ЗНМ: 0300000110 [17:46:28]line РНМ: 0000000000091776 [17:46:28]line Версия ККМ: 001 [17:46:28]line ФМ: 0000000000871754 [17:46:28]line ФД: 191554 [17:46:28]line ФПД: 17895974451481 [17:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174637&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191554&fm=17895974451481&tin=02508201610067®Number=0000000000091776&sum=80000 [17:46:29]OFD Sender: Processing packet 191554 [packets to send 75, broken 74] [17:46:29]ProducePacketName [17:46:29]name=ofd_packets/00191554 [17:46:29]OFD Sender: To server: pG, [17:46:29]CommunicateWithHost lk.salyk.kg:30040 [17:46:29]ConnectInit lk.salyk.kg [17:46:29]written 0, free lines is 4095 [17:46:29]Connected sock=11 [17:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 42 07 01 76 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7D D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EC 02 00 35 04 06 00 10 46 BB 33 39 19 84 30 6D 03 7F 21 F8 E1 [17:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 A9 47 00 DF D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EC 02 00 F4 03 04 00 4B 7E 1B 67 B6 04 01 00 00 8B DE 76 A8 1F 6A A3 59 [17:46:29]CommunicateWithHost err = 0 [17:46:29]CheckOFDResponse [17:46:29]1017 (14) - 77093643461234 [17:46:29]1041 (16) - 0000000000871754 [17:46:29]1040 (4) - 191554 [17:46:29]1012 (4) - 25.10.2024 11:17 [17:46:29]1206 (1) - 0 [17:46:29]OFD Sender: Remove packet 191554 [17:46:29]ProducePacketName [17:46:29]name=ofd_packets/00191554 [17:46:29]NVStorageDeleteData [17:46:29]Write to MH i2c: 01 00 00 AC C2 6E [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 07 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 07 00 AC C2 00 00 00 00 00 B6 0C 37 [17:46:29]RasterBufferAndPrint [17:46:29]line [17:46:29]line [17:46:29]line [17:46:29]line [17:46:29]line [17:46:29]written 0, free lines is 3258 [17:46:29]MH_Cut [17:46:29]Write to MH i2c: D1 01 00 B3 C2 01 47 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: D1 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: D1 01 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: D1 01 00 B3 C2 00 46 [17:46:29]Write to MH i2c: 01 00 00 B4 C2 76 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:30]OFD Sender: No OFD packet to send [17:46:30]*** Cut start [17:46:30]*** Partial cut [17:46:30]*** CUTSNS_PIN = 1 [17:46:30]*** CUTSNS_PIN = 0 [17:46:30]*** Brake cut motor [17:46:31]Read from MH i2c: 01 [17:46:31]*** Stop cut motor [17:46:31]*** Cut end [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 07 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 07 00 B4 C2 00 00 00 00 00 FF 0F 8B [17:46:31]process_action close_receipt done [17:46:31]requested_data is exist [17:46:31]produce_requested_data [17:46:31]requested_item fm.sn is exist - process it [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 11 00 00 [17:46:31]Write to MH i2c: E2 08 00 B5 C2 80 11 00 00 00 00 00 00 F1 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 17 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 17 00 B5 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [17:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:31]wFMCommunicate OK [17:46:31]requested_item fd.num is exist - process it [17:46:31]SAM_PROTO_GetFieldsCounters [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 13 00 00 [17:46:31]Write to MH i2c: E2 08 00 B6 C2 80 13 00 00 00 00 00 00 F4 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 62 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 62 00 B6 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:31]wFMCommunicate OK [17:46:31]SAM_PROTO_GetFieldsCounters done [17:46:31]requested_item shift.num is exist - process it [17:46:31]requested_item shift.opened is exist - process it [17:46:31]req_shift_opened [17:46:31]FM_GetShiftState [17:46:31]SAM_PROTO_GetShiftState [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 13 01 00 [17:46:31]Write to MH i2c: E2 08 00 B7 C2 80 13 01 00 00 00 00 00 F6 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 0E 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 0E 00 B7 C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B9 [17:46:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:46:31]wFMCommunicate OK [17:46:31]SAM_PROTO_GetShiftState done [17:46:31]FM_GetShiftState done [17:46:31]req_shift_opened done [17:46:31]requested_item shift.open_date is exist - process it [17:46:31]req_shift_open_date [17:46:31]req_shift_open_date done [17:46:31]produce_requested_data done [17:46:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191554,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:46:31]process_action_free close_receipt [17:46:31]json_value_free [17:46:31]json_value_free done [17:46:31]process_json_proto returns [17:46:31]Send response to host [17:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191554,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:46:31]free response buf [17:46:31]execute_script done [17:46:31]execute_script returns [17:46:31]free content buf [17:46:31]Sock 8.Close socket [17:46:31]Sock 8.Thread stoped [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:14]accept exits with 9 [17:48:14]New connection [17:48:14]New thread 3066817892 created [17:48:14]Thread 3066961252 joined [17:48:14]Waiting for new connection... [17:48:14] Sock 9.Parse request [17:48:14]Sock 9.Check first char [17:48:14]Sock 9.First char is OK [17:48:14]request: POST /json_proto HTTP/1.0 [17:48:14]Method: POST [17:48:14]URL: /json_proto [17:48:14]Method is POST - this is cgi request [17:48:14]url: /json_proto [17:48:14]query_string will be loaded in cgi processing [17:48:14]execute_cgi json_proto POST (null) [17:48:14]execute_cgi path=json_proto method=POST [17:48:14]POST find Content-Length [17:48:14]Host: 172.17.63.131:8080 [17:48:14]Content-Length: 676 [17:48:14]Content-Type: application/json [17:48:14] [17:48:14]POST finish read [17:48:14]Found Content-Length = 676 [17:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [17:48:14]execute_script... [17:48: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)30854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [17:48:14]POST & json_proto [17:48:14]process_json_proto [17:48:14]json parsed OK: [17:48:14]protocol is kg_v1.0 [17:48:14]action value=close_receipt [17:48:14]process_action close_receipt [17:48:14]cmd_close_receipt [17:48:14]MH_GetDate [17:48:14]Write to MH i2c: F0 00 00 B8 C2 69 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: F0 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: F0 09 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: F0 09 00 B8 C2 00 E8 D9 1B 67 22 05 6E 64 AE [17:48:14]GetLastDocTimeStamp 1729878397 [17:48:14]current date 1729878504 [17:48:14]FM_GetShiftState [17:48:14]SAM_PROTO_GetShiftState [17:48:14]wFMCommunicate request_size=4 [17:48:14]MH_SAM_APDU [17:48:14]CAPDU: 80 13 01 00 [17:48:14]Write to MH i2c: E2 08 00 B9 C2 80 13 01 00 00 00 00 00 F8 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:14]Read from MH i2c: E2 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 0E 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: E2 0E 00 B9 C2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BB [17:48:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:48:14]wFMCommunicate OK [17:48:14]SAM_PROTO_GetShiftState done [17:48:14]FM_GetShiftState done [17:48:14]opened in 1729816399 [17:48:14]opened+sec_in_day 1729902799 [17:48:14]quantity*price = 35055 [17:48:14]sum+1 = 35057 [17:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 294 25.10.2024 17:48 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191555 ФПД: 163810596646097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191555&fm=163810596646097&tin=02508201610067®Number=0000000000091776&sum=35000 [17:48:15]StoreToDocumentArchive [17:48:15]shift 540 fd 191555 [17:48:15]save to /storage/0540/doc_00191555 [17:48:15]save last doc name /storage/0540/doc_00191555 to /storage/kkm_last_doc_name [17:48:15]save OK [17:48:15]Clear old archive folders... [17:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:15]tlvbuf is 015C8860 [17:48:15]SAM_PROTO_ClearQueue [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 09 00 00 [17:48:15]Write to MH i2c: E2 08 00 C6 C2 80 09 00 00 00 00 00 00 FA [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 C6 C2 00 90 00 FC [17:48:15]RAPDU: 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_ClearQueue done [17:48:15]KKMCreateOFDPacket [17:48:15]OFDProtocolAddRootSTLVToBuf [17:48:15]FM_MakeSignedData [17:48:15]FM_MakeSignedData [17:48:15]SAM_PROTO_SignData [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 0D 01 02 [17:48:15]Write to MH i2c: E2 08 00 C7 C2 80 0D 01 02 00 00 00 00 02 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 C7 C2 00 90 00 FD [17:48:15]RAPDU: 90 00 [17:48:15]wFMCommunicate OK [17:48:15]wFMCommunicate request_size=255 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 E8 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EC 02 00 35 04 06 00 94 [17:48:15]Write to MH i2c: E2 02 01 C8 C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 E8 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EC 02 00 35 04 06 00 94 00 00 EE [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 03 00 C8 C2 00 90 00 FE [17:48:15]RAPDU: 90 00 [17:48:15]wFMCommunicate OK [17:48:15]wFMCommunicate request_size=10 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 0D 02 02 05 FC 20 6C 6C D1 [17:48:15]Write to MH i2c: E2 0D 00 C9 C2 80 0D 02 02 05 00 FC 20 6C 6C D1 00 00 D4 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 03 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 03 00 C9 C2 00 90 00 FF [17:48:16]RAPDU: 90 00 [17:48:16]wFMCommunicate OK [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 0D 03 02 [17:48:16]Write to MH i2c: E2 08 00 CA C2 80 0D 03 02 00 00 00 00 07 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0B 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0B 00 CA C2 00 AA F6 9D B3 F8 5B 4C 65 90 00 FC [17:48:16]RAPDU: AA F6 9D B3 F8 5B 4C 65 90 00 [17:48:16]wFMCommunicate OK [17:48:16]SAM_PROTO_SignData done [17:48:16]FM_MakeSignedData done [17:48:16]CreateOFDProtocolMessage [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 11 00 00 [17:48:16]Write to MH i2c: E2 08 00 CB C2 80 11 00 00 00 00 00 00 07 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 CB C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [17:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:16]wFMCommunicate OK [17:48:16]CreateOFDProtocolMessage done [17:48:16]OFDSenderStorePacket 191555 [17:48:16]StoreOFDPacket docnum=191555 [17:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 98 07 01 03 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 E8 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EC 02 00 35 04 06 00 94 FC 20 6C 6C D1 AA F6 9D B3 F8 5B 4C 65 [17:48:16]CheckFolder [17:48:16]dirname=/storage/ofd_packets [17:48:16]CheckFolder done [17:48:16]ProducePacketName [17:48:16]name=ofd_packets/00191555 [17:48:16]NVStorageSaveData ofd_packets/00191555 [17:48:16]File name is /storage/ofd_packets/00191555 [17:48:16]Write 301 bytes [17:48:16]NVStorageSaveData done [17:48:16]OFDSenderStorePacket done [17:48:16]KKMCreateOFDPacket done [17:48:16]NVStorageSaveData kkm_last_timestamp [17:48:16]File name is /storage/kkm_last_timestamp [17:48:16]Write 4 bytes [17:48:16]NVStorageSaveData done [17:48:16]ExternCall_PrintAddStr [17:48:16]wPrintStart [17:48:16]Write to MH i2c: 01 00 00 CC C2 8E [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 07 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 07 00 CC C2 00 00 00 00 00 FF 0F A3 [17:48:16]RasterBufferAndPrint [17:48:16]line Счет N : (1)30854 [17:48:16]line ИНН: 02508201610067 [17:48:16]line Контрольно-Кассовый Чек [17:48:16]line ПРОДАЖА [17:48:16]line ТРК (МРК, ГНК) : 12 [17:48:16]line Товар: 2710124130 [17:48:16]line Аи-92-К-5 [17:48:16]line 5.240 * 66.90 [17:48:16]line = 350.56 [17:48:16]line НДС 12% НСП 1% [17:48:16]line > о реализуемом товаре [17:48:16]line ОКРУГЛЕНИЕ: -0.56 [17:48:16]line ИТОГО: 350.00 [17:48:16]line Внесено: 350.00 [17:48:16]line СДАЧА: 0.00 [17:48:16]line НСП 1% : 3.10 [17:48:16]line НДС 12% : 37.23 [17:48:16]line Наличными: 350.00 [17:48:16]line Безнал.: 0.00 [17:48:16]line Место: АЗС № 170 "Партнер Нефть" [17:48:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:48:16]line СНО: Общий режим [17:48:16]line Чек 294 25.10.2024 17:48 [17:48:16]line Смена: 540 ФФД: 1.0 [17:48:16]line ЗНМ: 0300000110 [17:48:16]line РНМ: 0000000000091776 [17:48:16]line Версия ККМ: 001 [17:48:16]line ФМ: 0000000000871754 [17:48:16]line ФД: 191555 [17:48:16]line ФПД: 163810596646097 [17:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191555&fm=163810596646097&tin=02508201610067®Number=0000000000091776&sum=35000 [17:48:16]OFD Sender: Processing packet 191555 [packets to send 75, broken 74] [17:48:16]ProducePacketName [17:48:16]name=ofd_packets/00191555 [17:48:16]OFD Sender: To server: pG, [17:48:16]CommunicateWithHost lk.salyk.kg:30040 [17:48:16]ConnectInit lk.salyk.kg [17:48:16]written 0, free lines is 4095 [17:48:16]Connected sock=10 [17:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 98 07 01 03 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 E8 D9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EC 02 00 35 04 06 00 94 FC 20 6C 6C D1 AA F6 9D B3 F8 5B 4C 65 [17:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 A4 47 00 4E 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EC 02 00 F4 03 04 00 B6 7E 1B 67 B6 04 01 00 00 E5 21 23 98 B1 70 A1 A9 [17:48:16]CommunicateWithHost err = 0 [17:48:16]CheckOFDResponse [17:48:16]1017 (14) - 77093643461234 [17:48:16]1041 (16) - 0000000000871754 [17:48:16]1040 (4) - 191555 [17:48:16]1012 (4) - 25.10.2024 11:19 [17:48:16]1206 (1) - 0 [17:48:16]OFD Sender: Remove packet 191555 [17:48:16]ProducePacketName [17:48:16]name=ofd_packets/00191555 [17:48:16]NVStorageDeleteData [17:48:16]Write to MH i2c: 01 00 00 F7 C2 B9 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 07 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 07 00 F7 C2 00 00 00 00 00 BE 0C 8A [17:48:16]RasterBufferAndPrint [17:48:16]line [17:48:16]line [17:48:16]line [17:48:16]line [17:48:16]line [17:48:16]written 0, free lines is 3268 [17:48:16]MH_Cut [17:48:16]Write to MH i2c: D1 01 00 FE C2 01 92 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: D1 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: D1 01 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: D1 01 00 FE C2 00 91 [17:48:16]Write to MH i2c: 01 00 00 FF C2 C1 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:17]OFD Sender: No OFD packet to send [17:48:17]*** Cut start [17:48:17]*** Partial cut [17:48:17]*** CUTSNS_PIN = 1 [17:48:17]*** CUTSNS_PIN = 0 [17:48:18]*** Brake cut motor [17:48:18]Read from MH i2c: 01 [17:48:18]MH_I2C_Read... [17:48:18]*** Stop cut motor [17:48:18]*** Cut end [17:48:18]Read from MH i2c: 01 07 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 07 00 FF C2 00 00 00 00 00 FF 0F D6 [17:48:18]process_action close_receipt done [17:48:18]requested_data is exist [17:48:18]produce_requested_data [17:48:18]requested_item fm.sn is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 00 C3 80 11 00 00 00 00 00 00 3D [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 00 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:18]wFMCommunicate OK [17:48:18]requested_item fd.num is exist - process it [17:48:18]SAM_PROTO_GetFieldsCounters [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 13 00 00 [17:48:18]Write to MH i2c: E2 08 00 01 C3 80 13 00 00 00 00 00 00 40 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 62 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 62 00 01 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:18]wFMCommunicate OK [17:48:18]SAM_PROTO_GetFieldsCounters done [17:48:18]requested_item shift.num is exist - process it [17:48:18]requested_item shift.opened is exist - process it [17:48:18]req_shift_opened [17:48:18]FM_GetShiftState [17:48:18]SAM_PROTO_GetShiftState [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 13 01 00 [17:48:18]Write to MH i2c: E2 08 00 02 C3 80 13 01 00 00 00 00 00 42 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:18]Read from MH i2c: E2 0E 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 0E 00 02 C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [17:48:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:48:18]wFMCommunicate OK [17:48:18]SAM_PROTO_GetShiftState done [17:48:18]FM_GetShiftState done [17:48:18]req_shift_opened done [17:48:18]requested_item shift.open_date is exist - process it [17:48:18]req_shift_open_date [17:48:18]req_shift_open_date done [17:48:18]produce_requested_data done [17:48:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191555,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:48:18]process_action_free close_receipt [17:48:18]json_value_free [17:48:18]json_value_free done [17:48:18]process_json_proto returns [17:48:18]Send response to host [17:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191555,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:48:18]free response buf [17:48:18]execute_script done [17:48:18]execute_script returns [17:48:18]free content buf [17:48:18]Sock 9.Close socket [17:48:18]Sock 9.Thread stoped [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:10]accept exits with 8 [17:49:10]New connection [17:49:10]New thread 3066961252 created [17:49:10]Thread 3066817892 joined [17:49:10]Waiting for new connection... [17:49:10] Sock 8.Parse request [17:49:10]Sock 8.Check first char [17:49:10]Sock 8.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.63.131:8080 [17:49:10]Content-Length: 678 [17:49:10]Content-Type: application/json [17:49:10] [17:49:10]POST finish read [17:49:10]Found Content-Length = 678 [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)30855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17: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)30855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17: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 03 C3 B5 [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 03 C3 00 20 DA 1B 67 22 05 6E 64 33 [17:49:10]GetLastDocTimeStamp 1729878504 [17:49:10]current date 1729878560 [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 04 C3 80 13 01 00 00 00 00 00 44 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0E 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0E 00 04 C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [17:49:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:49:10]wFMCommunicate OK [17:49:10]SAM_PROTO_GetShiftState done [17:49:10]FM_GetShiftState done [17:49:10]opened in 1729816399 [17:49:10]opened+sec_in_day 1729902799 [17:49:10]quantity*price = 130073 [17:49:10]sum+1 = 130074 [17:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 295 25.10.2024 17:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191556 ФПД: 130904272308300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191556&fm=130904272308300&tin=02508201610067®Number=0000000000091776&sum=130000 [17:49:11]StoreToDocumentArchive [17:49:11]shift 540 fd 191556 [17:49:11]save to /storage/0540/doc_00191556 [17:49:11]save last doc name /storage/0540/doc_00191556 to /storage/kkm_last_doc_name [17:49:11]save OK [17:49:11]Clear old archive folders... [17:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:49:11]tlvbuf is 01709030 [17:49:11]SAM_PROTO_ClearQueue [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 09 00 00 [17:49:11]Write to MH i2c: E2 08 00 11 C3 80 09 00 00 00 00 00 00 46 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 11 C3 00 90 00 48 [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]SAM_PROTO_ClearQueue done [17:49:11]KKMCreateOFDPacket [17:49:11]OFDProtocolAddRootSTLVToBuf [17:49:11]FM_MakeSignedData [17:49:11]FM_MakeSignedData [17:49:11]SAM_PROTO_SignData [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 01 02 [17:49:11]Write to MH i2c: E2 08 00 12 C3 80 0D 01 02 00 00 00 00 4E [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 12 C3 00 90 00 49 [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]wFMCommunicate request_size=255 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 20 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EC 02 00 35 04 06 00 77 0E 86 A6 [17:49:11]Write to MH i2c: E2 02 01 13 C3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 20 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EC 02 00 35 04 06 00 77 0E 86 A6 00 00 81 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 13 C3 00 90 00 4A [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]wFMCommunicate request_size=7 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 02 02 02 88 4C [17:49:11]Write to MH i2c: E2 0A 00 14 C3 80 0D 02 02 02 00 88 4C 00 00 29 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 03 00 14 C3 00 90 00 4B [17:49:11]RAPDU: 90 00 [17:49:11]wFMCommunicate OK [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 0D 03 02 [17:49:11]Write to MH i2c: E2 08 00 15 C3 80 0D 03 02 00 00 00 00 53 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0B 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0B 00 15 C3 00 83 63 62 21 6A 3C 47 22 90 00 CC [17:49:11]RAPDU: 83 63 62 21 6A 3C 47 22 90 00 [17:49:11]wFMCommunicate OK [17:49:11]SAM_PROTO_SignData done [17:49:11]FM_MakeSignedData done [17:49:11]CreateOFDProtocolMessage [17:49:11]wFMCommunicate request_size=4 [17:49:11]MH_SAM_APDU [17:49:11]CAPDU: 80 11 00 00 [17:49:11]Write to MH i2c: E2 08 00 16 C3 80 11 00 00 00 00 00 00 53 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 17 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 17 00 16 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [17:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:49:11]wFMCommunicate OK [17:49:11]CreateOFDProtocolMessage done [17:49:11]OFDSenderStorePacket 191556 [17:49:11]StoreOFDPacket docnum=191556 [17:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EC 06 04 01 54 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 20 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EC 02 00 35 04 06 00 77 0E 86 A6 88 4C 83 63 62 21 6A 3C 47 22 [17:49:11]CheckFolder [17:49:11]dirname=/storage/ofd_packets [17:49:11]CheckFolder done [17:49:11]ProducePacketName [17:49:11]name=ofd_packets/00191556 [17:49:11]NVStorageSaveData ofd_packets/00191556 [17:49:11]File name is /storage/ofd_packets/00191556 [17:49:11]Write 298 bytes [17:49:11]NVStorageSaveData done [17:49:11]OFDSenderStorePacket done [17:49:11]KKMCreateOFDPacket done [17:49:11]NVStorageSaveData kkm_last_timestamp [17:49:11]File name is /storage/kkm_last_timestamp [17:49:11]Write 4 bytes [17:49:11]NVStorageSaveData done [17:49:11]ExternCall_PrintAddStr [17:49:11]wPrintStart [17:49:11]Write to MH i2c: 01 00 00 17 C3 DA [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 17 C3 00 00 00 00 00 FF 0F EF [17:49:11]RasterBufferAndPrint [17:49:11]line Счет N : (1)30855 [17:49:11]line ИНН: 02508201610067 [17:49:11]line Контрольно-Кассовый Чек [17:49:11]line ПРОДАЖА [17:49:11]line ТРК (МРК, ГНК) : 22 [17:49:11]line Товар: 2710194210 [17:49:11]line ДТ-К-5 [17:49:11]line 17.070 * 76.20 [17:49:11]line = 1300.73 [17:49:11]line НДС 12% НСП 1% [17:49:11]line > о реализуемом товаре [17:49:11]line ОКРУГЛЕНИЕ: -0.73 [17:49:11]line ИТОГО: 1300.00 [17:49:11]line Внесено: 1300.00 [17:49:11]line СДАЧА: 0.00 [17:49:11]line НСП 1% : 11.51 [17:49:11]line НДС 12% : 138.13 [17:49:11]line Наличными: 1300.00 [17:49:11]line Безнал.: 0.00 [17:49:11]line Место: АЗС № 170 "Партнер Нефть" [17:49:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:49:11]line СНО: Общий режим [17:49:11]line Чек 295 25.10.2024 17:49 [17:49:11]line Смена: 540 ФФД: 1.0 [17:49:11]line ЗНМ: 0300000110 [17:49:11]line РНМ: 0000000000091776 [17:49:11]line Версия ККМ: 001 [17:49:11]line ФМ: 0000000000871754 [17:49:11]line ФД: 191556 [17:49:11]line ФПД: 130904272308300 [17:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191556&fm=130904272308300&tin=02508201610067®Number=0000000000091776&sum=130000 [17:49:12]OFD Sender: Processing packet 191556 [packets to send 75, broken 74] [17:49:12]ProducePacketName [17:49:12]name=ofd_packets/00191556 [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:12]Connected sock=10 [17:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EC 06 04 01 54 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 20 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EC 02 00 35 04 06 00 77 0E 86 A6 88 4C 83 63 62 21 6A 3C 47 22 [17:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A 13 47 00 92 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EC 02 00 F4 03 04 00 EE 7E 1B 67 B6 04 01 00 00 68 11 0F EE 80 B4 FE C0 [17:49:12]CommunicateWithHost err = 0 [17:49:12]CheckOFDResponse [17:49:12]1017 (14) - 77093643461234 [17:49:12]1041 (16) - 0000000000871754 [17:49:12]1040 (4) - 191556 [17:49:12]1012 (4) - 25.10.2024 11:20 [17:49:12]1206 (1) - 0 [17:49:12]OFD Sender: Remove packet 191556 [17:49:12]ProducePacketName [17:49:12]name=ofd_packets/00191556 [17:49:12]NVStorageDeleteData [17:49:12]Write to MH i2c: 01 00 00 42 C3 05 [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 42 C3 00 00 00 00 00 BB 0C D3 [17:49:12]RasterBufferAndPrint [17:49:12]line [17:49:12]line [17:49:12]line [17:49:12]line [17:49:12]line [17:49:12]written 0, free lines is 3267 [17:49:12]MH_Cut [17:49:12]Write to MH i2c: D1 01 00 49 C3 01 DE [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: D1 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: D1 01 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: D1 01 00 49 C3 00 DD [17:49:12]Write to MH i2c: 01 00 00 4A C3 0D [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]OFD Sender: No OFD packet to send [17:49:13]*** Cut start [17:49:13]*** Partial cut [17:49:13]*** CUTSNS_PIN = 1 [17:49:13]*** CUTSNS_PIN = 0 [17:49:13]*** Brake cut motor [17:49: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 4A C3 00 00 00 00 00 FF 0F 22 [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 4B C3 80 11 00 00 00 00 00 00 88 [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 4B C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [17:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 4C C3 80 13 00 00 00 00 00 00 8B [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 4C C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:14]wFMCommunicate OK [17:49:14]SAM_PROTO_GetFieldsCounters done [17:49:14]requested_item shift.num is exist - process it [17:49:14]requested_item shift.opened is exist - process it [17:49:14]req_shift_opened [17:49:14]FM_GetShiftState [17:49:14]SAM_PROTO_GetShiftState [17:49:14]wFMCommunicate request_size=4 [17:49:14]MH_SAM_APDU [17:49:14]CAPDU: 80 13 01 00 [17:49:14]Write to MH i2c: E2 08 00 4D C3 80 13 01 00 00 00 00 00 8D [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:14]Read from MH i2c: E2 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 4D C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 50 [17:49:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:49:14]wFMCommunicate OK [17:49:14]SAM_PROTO_GetShiftState done [17:49:14]FM_GetShiftState done [17:49:14]req_shift_opened done [17:49:14]requested_item shift.open_date is exist - process it [17:49:14]req_shift_open_date [17:49:14]req_shift_open_date done [17:49:14]produce_requested_data done [17:49:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191556,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:49:14]process_action_free close_receipt [17:49:14]json_value_free [17:49:14]json_value_free done [17:49:14]process_json_proto returns [17:49:14]Send response to host [17:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191556,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:49:14]free response buf [17:49:14]execute_script done [17:49:14]execute_script returns [17:49:14]free content buf [17:49:14]Sock 8.Close socket [17:49:14]Sock 8.Thread stoped [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49: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:15]accept exits with 9 [17:50:15]New connection [17:50:15]New thread 3066817892 created [17:50:15]Thread 3066961252 joined [17:50:15]Waiting for new connection... [17:50:15] Sock 9.Parse request [17:50:15]Sock 9.Check first char [17:50:15]Sock 9.First char is OK [17:50:15]request: POST /json_proto HTTP/1.0 [17:50:15]Method: POST [17:50:15]URL: /json_proto [17:50:15]Method is POST - this is cgi request [17:50:15]url: /json_proto [17:50:15]query_string will be loaded in cgi processing [17:50:15]execute_cgi json_proto POST (null) [17:50:15]execute_cgi path=json_proto method=POST [17:50:15]POST find Content-Length [17:50:15]Host: 172.17.63.131:8080 [17:50:15]Content-Length: 677 [17:50:15]Content-Type: application/json [17:50:15] [17:50:15]POST finish read [17:50:15]Found Content-Length = 677 [17:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:15]execute_script... [17:50: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)30856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:15]POST & json_proto [17:50:15]process_json_proto [17:50:15]json parsed OK: [17:50:15]protocol is kg_v1.0 [17:50:15]action value=close_receipt [17:50:15]process_action close_receipt [17:50:15]cmd_close_receipt [17:50:15]MH_GetDate [17:50:15]Write to MH i2c: F0 00 00 4E C3 00 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: F0 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: F0 09 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: F0 09 00 4E C3 00 61 DA 1B 67 22 05 6E 64 BF [17:50:15]GetLastDocTimeStamp 1729878560 [17:50:15]current date 1729878625 [17:50:15]FM_GetShiftState [17:50:15]SAM_PROTO_GetShiftState [17:50:15]wFMCommunicate request_size=4 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 13 01 00 [17:50:15]Write to MH i2c: E2 08 00 4F C3 80 13 01 00 00 00 00 00 8F [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 0E 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 0E 00 4F C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 52 [17:50:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:50:15]wFMCommunicate OK [17:50:15]SAM_PROTO_GetShiftState done [17:50:15]FM_GetShiftState done [17:50:15]opened in 1729816399 [17:50:15]opened+sec_in_day 1729902799 [17:50:15]quantity*price = 70044 [17:50:15]sum+1 = 70045 [17:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 296 25.10.2024 17:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191557 ФПД: 163033139800568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191557&fm=163033139800568&tin=02508201610067®Number=0000000000091776&sum=70000 [17:50:16]StoreToDocumentArchive [17:50:16]shift 540 fd 191557 [17:50:16]save to /storage/0540/doc_00191557 [17:50:16]save last doc name /storage/0540/doc_00191557 to /storage/kkm_last_doc_name [17:50:16]save OK [17:50:16]Clear old archive folders... [17:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:16]tlvbuf is 016009B0 [17:50:16]SAM_PROTO_ClearQueue [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 09 00 00 [17:50:16]Write to MH i2c: E2 08 00 5C C3 80 09 00 00 00 00 00 00 91 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 5C C3 00 90 00 93 [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_ClearQueue done [17:50:16]KKMCreateOFDPacket [17:50:16]OFDProtocolAddRootSTLVToBuf [17:50:16]FM_MakeSignedData [17:50:16]FM_MakeSignedData [17:50:16]SAM_PROTO_SignData [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 01 02 [17:50:16]Write to MH i2c: E2 08 00 5D C3 80 0D 01 02 00 00 00 00 99 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 5D C3 00 90 00 94 [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]wFMCommunicate request_size=255 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 61 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EC 02 00 35 04 06 00 94 [17:50:16]Write to MH i2c: E2 02 01 5E C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 61 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EC 02 00 35 04 06 00 94 00 00 08 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 03 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 03 00 5E C3 00 90 00 95 [17:50:17]RAPDU: 90 00 [17:50:17]wFMCommunicate OK [17:50:17]wFMCommunicate request_size=10 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 0D 02 02 05 47 1C 62 69 F8 [17:50:17]Write to MH i2c: E2 0D 00 5F C3 80 0D 02 02 05 00 47 1C 62 69 F8 00 00 CC [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 03 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 03 00 5F C3 00 90 00 96 [17:50:17]RAPDU: 90 00 [17:50:17]wFMCommunicate OK [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 0D 03 02 [17:50:17]Write to MH i2c: E2 08 00 60 C3 80 0D 03 02 00 00 00 00 9E [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0B 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0B 00 60 C3 00 A8 F9 5A 37 0D C3 F5 22 90 00 B8 [17:50:17]RAPDU: A8 F9 5A 37 0D C3 F5 22 90 00 [17:50:17]wFMCommunicate OK [17:50:17]SAM_PROTO_SignData done [17:50:17]FM_MakeSignedData done [17:50:17]CreateOFDProtocolMessage [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 11 00 00 [17:50:17]Write to MH i2c: E2 08 00 61 C3 80 11 00 00 00 00 00 00 9E [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 17 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 17 00 61 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [17:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:17]wFMCommunicate OK [17:50:17]CreateOFDProtocolMessage done [17:50:17]OFDSenderStorePacket 191557 [17:50:17]StoreOFDPacket docnum=191557 [17:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 06 07 01 C1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 61 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EC 02 00 35 04 06 00 94 47 1C 62 69 F8 A8 F9 5A 37 0D C3 F5 22 [17:50:17]CheckFolder [17:50:17]dirname=/storage/ofd_packets [17:50:17]CheckFolder done [17:50:17]ProducePacketName [17:50:17]name=ofd_packets/00191557 [17:50:17]NVStorageSaveData ofd_packets/00191557 [17:50:17]File name is /storage/ofd_packets/00191557 [17:50:17]Write 301 bytes [17:50:17]NVStorageSaveData done [17:50:17]OFDSenderStorePacket done [17:50:17]KKMCreateOFDPacket done [17:50:17]NVStorageSaveData kkm_last_timestamp [17:50:17]File name is /storage/kkm_last_timestamp [17:50:17]Write 4 bytes [17:50:17]NVStorageSaveData done [17:50:17]ExternCall_PrintAddStr [17:50:17]wPrintStart [17:50:17]Write to MH i2c: 01 00 00 62 C3 25 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 62 C3 00 00 00 00 00 FF 0F 3A [17:50:17]RasterBufferAndPrint [17:50:17]line Счет N : (1)30856 [17:50:17]line ИНН: 02508201610067 [17:50:17]line Контрольно-Кассовый Чек [17:50:17]line ПРОДАЖА [17:50:17]line ТРК (МРК, ГНК) : 12 [17:50:17]line Товар: 2710124130 [17:50:17]line Аи-92-К-5 [17:50:17]line 10.470 * 66.90 [17:50:17]line = 700.44 [17:50:17]line НДС 12% НСП 1% [17:50:17]line > о реализуемом товаре [17:50:17]line ОКРУГЛЕНИЕ: -0.44 [17:50:17]line ИТОГО: 700.00 [17:50:17]line Внесено: 700.00 [17:50:17]line СДАЧА: 0.00 [17:50:17]line НСП 1% : 6.20 [17:50:17]line НДС 12% : 74.38 [17:50:17]line Наличными: 700.00 [17:50:17]line Безнал.: 0.00 [17:50:17]line Место: АЗС № 170 "Партнер Нефть" [17:50:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:50:17]line СНО: Общий режим [17:50:17]line Чек 296 25.10.2024 17:50 [17:50:17]line Смена: 540 ФФД: 1.0 [17:50:17]line ЗНМ: 0300000110 [17:50:17]line РНМ: 0000000000091776 [17:50:17]line Версия ККМ: 001 [17:50:17]line ФМ: 0000000000871754 [17:50:17]line ФД: 191557 [17:50:17]line ФПД: 163033139800568 [17:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191557&fm=163033139800568&tin=02508201610067®Number=0000000000091776&sum=70000 [17:50:17]OFD Sender: Processing packet 191557 [packets to send 75, broken 74] [17:50:17]ProducePacketName [17:50:17]name=ofd_packets/00191557 [17:50:17]OFD Sender: To server: pG, [17:50:17]CommunicateWithHost lk.salyk.kg:30040 [17:50:17]ConnectInit lk.salyk.kg [17:50:17]written 0, free lines is 4095 [17:50:17]Connected sock=10 [17:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 06 07 01 C1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 61 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EC 02 00 35 04 06 00 94 47 1C 62 69 F8 A8 F9 5A 37 0D C3 F5 22 [17:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 18 47 00 D7 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EC 02 00 F4 03 04 00 2F 7F 1B 67 B6 04 01 00 00 C9 7E 7A B4 92 D6 93 A7 [17:50:17]CommunicateWithHost err = 0 [17:50:17]CheckOFDResponse [17:50:17]1017 (14) - 77093643461234 [17:50:17]1041 (16) - 0000000000871754 [17:50:17]1040 (4) - 191557 [17:50:17]1012 (4) - 25.10.2024 11:21 [17:50:17]1206 (1) - 0 [17:50:17]OFD Sender: Remove packet 191557 [17:50:17]ProducePacketName [17:50:17]name=ofd_packets/00191557 [17:50:17]NVStorageDeleteData [17:50:18]Write to MH i2c: 01 00 00 8D C3 50 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: 01 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: 01 07 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: 01 07 00 8D C3 00 00 00 00 00 BF 0C 22 [17:50:18]RasterBufferAndPrint [17:50:18]line [17:50:18]line [17:50:18]line [17:50:18]line [17:50:18]line [17:50:18]written 0, free lines is 3269 [17:50:18]MH_Cut [17:50:18]Write to MH i2c: D1 01 00 94 C3 01 29 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: D1 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: D1 01 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: D1 01 00 94 C3 00 28 [17:50:18]Write to MH i2c: 01 00 00 95 C3 58 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]OFD Sender: No OFD packet to send [17:50:18]*** Cut start [17:50:18]*** Partial cut [17:50:18]*** CUTSNS_PIN = 1 [17:50:18]*** CUTSNS_PIN = 0 [17:50:19]*** Brake cut motor [17:50:19]Read from MH i2c: 01 [17:50:19]MH_I2C_Read... [17:50:19]*** Stop cut motor [17:50:19]*** Cut end [17:50:19]Read from MH i2c: 01 07 00 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: 01 07 00 95 C3 00 00 00 00 00 FF 0F 6D [17:50:19]process_action close_receipt done [17:50:19]requested_data is exist [17:50:19]produce_requested_data [17:50:19]requested_item fm.sn is exist - process it [17:50:19]wFMCommunicate request_size=4 [17:50:19]MH_SAM_APDU [17:50:19]CAPDU: 80 11 00 00 [17:50:19]Write to MH i2c: E2 08 00 96 C3 80 11 00 00 00 00 00 00 D3 [17:50:19]Write i2c OK [17:50:19]MH_I2C_Read... [17:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:19]Read from MH i2c: E2 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 17 00 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 17 00 96 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [17:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:19]wFMCommunicate OK [17:50:19]requested_item fd.num is exist - process it [17:50:19]SAM_PROTO_GetFieldsCounters [17:50:19]wFMCommunicate request_size=4 [17:50:19]MH_SAM_APDU [17:50:19]CAPDU: 80 13 00 00 [17:50:19]Write to MH i2c: E2 08 00 97 C3 80 13 00 00 00 00 00 00 D6 [17:50:19]Write i2c OK [17:50:19]MH_I2C_Read... [17:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:19]Read from MH i2c: E2 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 62 00 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 62 00 97 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:19]wFMCommunicate OK [17:50:19]SAM_PROTO_GetFieldsCounters done [17:50:19]requested_item shift.num is exist - process it [17:50:19]requested_item shift.opened is exist - process it [17:50:19]req_shift_opened [17:50:19]FM_GetShiftState [17:50:19]SAM_PROTO_GetShiftState [17:50:19]wFMCommunicate request_size=4 [17:50:19]MH_SAM_APDU [17:50:19]CAPDU: 80 13 01 00 [17:50:19]Write to MH i2c: E2 08 00 98 C3 80 13 01 00 00 00 00 00 D8 [17:50:19]Write i2c OK [17:50:19]MH_I2C_Read... [17:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:19]Read from MH i2c: E2 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 0E 00 [17:50:19]MH_I2C_Read... [17:50:19]Read from MH i2c: E2 0E 00 98 C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9B [17:50:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:50:19]wFMCommunicate OK [17:50:19]SAM_PROTO_GetShiftState done [17:50:19]FM_GetShiftState done [17:50:19]req_shift_opened done [17:50:19]requested_item shift.open_date is exist - process it [17:50:19]req_shift_open_date [17:50:19]req_shift_open_date done [17:50:19]produce_requested_data done [17:50:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191557,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:50:19]process_action_free close_receipt [17:50:19]json_value_free [17:50:19]json_value_free done [17:50:19]process_json_proto returns [17:50:19]Send response to host [17:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191557,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:50:19]free response buf [17:50:19]execute_script done [17:50:19]execute_script returns [17:50:19]free content buf [17:50:19]Sock 9.Close socket [17:50:19]Sock 9.Thread stoped [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:04]accept exits with 8 [17:51:04]New connection [17:51:04]New thread 3066961252 created [17:51:04]Thread 3066817892 joined [17:51:04]Waiting for new connection... [17:51:04] Sock 8.Parse request [17:51:04]Sock 8.Check first char [17:51:04]Sock 8.First char is OK [17:51:04]request: POST /json_proto HTTP/1.0 [17:51:04]Method: POST [17:51:04]URL: /json_proto [17:51:04]Method is POST - this is cgi request [17:51:04]url: /json_proto [17:51:04]query_string will be loaded in cgi processing [17:51:04]execute_cgi json_proto POST (null) [17:51:04]execute_cgi path=json_proto method=POST [17:51:04]POST find Content-Length [17:51:04]Host: 172.17.63.131:8080 [17:51:04]Content-Length: 681 [17:51:04]Content-Type: application/json [17:51:04] [17:51:04]POST finish read [17:51:04]Found Content-Length = 681 [17:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:04]execute_script... [17:51: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)30857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:04]POST & json_proto [17:51:04]process_json_proto [17:51:04]json parsed OK: [17:51:04]protocol is kg_v1.0 [17:51:04]action value=close_receipt [17:51:04]process_action close_receipt [17:51:04]cmd_close_receipt [17:51:04]MH_GetDate [17:51:04]Write to MH i2c: F0 00 00 99 C3 4B [17:51:04]Write i2c OK [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 09 00 [17:51:04]MH_I2C_Read... [17:51:04]Read from MH i2c: F0 09 00 99 C3 00 93 DA 1B 67 22 05 6E 64 3C [17:51:04]GetLastDocTimeStamp 1729878625 [17:51:04]current date 1729878675 [17:51:04]FM_GetShiftState [17:51:04]SAM_PROTO_GetShiftState [17:51:04]wFMCommunicate request_size=4 [17:51:04]MH_SAM_APDU [17:51:04]CAPDU: 80 13 01 00 [17:51:04]Write to MH i2c: E2 08 00 9A C3 80 13 01 00 00 00 00 00 DA [17:51:04]Write i2c OK [17:51:04]MH_I2C_Read... [17:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 0E 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 0E 00 9A C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9D [17:51:05]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:51:05]wFMCommunicate OK [17:51:05]SAM_PROTO_GetShiftState done [17:51:05]FM_GetShiftState done [17:51:05]opened in 1729816399 [17:51:05]opened+sec_in_day 1729902799 [17:51:05]quantity*price = 100015 [17:51:05]sum+1 = 100017 [17:51:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 297 25.10.2024 17:51 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191558 ФПД: 95194720982762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175115&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191558&fm=95194720982762&tin=02508201610067®Number=0000000000091776&sum=100000 [17:51:06]StoreToDocumentArchive [17:51:06]shift 540 fd 191558 [17:51:06]save to /storage/0540/doc_00191558 [17:51:06]save last doc name /storage/0540/doc_00191558 to /storage/kkm_last_doc_name [17:51:06]save OK [17:51:06]Clear old archive folders... [17:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:06]tlvbuf is 0183C0B0 [17:51:06]SAM_PROTO_ClearQueue [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 09 00 00 [17:51:06]Write to MH i2c: E2 08 00 A7 C3 80 09 00 00 00 00 00 00 DC [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 A7 C3 00 90 00 DE [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_ClearQueue done [17:51:06]KKMCreateOFDPacket [17:51:06]OFDProtocolAddRootSTLVToBuf [17:51:06]FM_MakeSignedData [17:51:06]FM_MakeSignedData [17:51:06]SAM_PROTO_SignData [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 01 02 [17:51:06]Write to MH i2c: E2 08 00 A8 C3 80 0D 01 02 00 00 00 00 E4 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 A8 C3 00 90 00 DF [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=255 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 93 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EC 02 00 35 04 06 00 56 [17:51:06]Write to MH i2c: E2 02 01 A9 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 93 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EC 02 00 35 04 06 00 56 00 00 33 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 A9 C3 00 90 00 E0 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=10 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 02 02 05 94 3F 87 56 EA [17:51:06]Write to MH i2c: E2 0D 00 AA C3 80 0D 02 02 05 00 94 3F 87 56 EA 00 00 8B [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 AA C3 00 90 00 E1 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 03 02 [17:51:06]Write to MH i2c: E2 08 00 AB C3 80 0D 03 02 00 00 00 00 E9 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0B 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0B 00 AB C3 00 86 D0 15 E7 3C B6 B4 54 90 00 36 [17:51:06]RAPDU: 86 D0 15 E7 3C B6 B4 54 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_SignData done [17:51:06]FM_MakeSignedData done [17:51:06]CreateOFDProtocolMessage [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 11 00 00 [17:51:06]Write to MH i2c: E2 08 00 AC C3 80 11 00 00 00 00 00 00 E9 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 17 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 17 00 AC C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [17:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:06]wFMCommunicate OK [17:51:06]CreateOFDProtocolMessage done [17:51:06]OFDSenderStorePacket 191558 [17:51:06]StoreOFDPacket docnum=191558 [17:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D D8 07 01 4A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 93 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EC 02 00 35 04 06 00 56 94 3F 87 56 EA 86 D0 15 E7 3C B6 B4 54 [17:51:06]CheckFolder [17:51:06]dirname=/storage/ofd_packets [17:51:06]CheckFolder done [17:51:06]ProducePacketName [17:51:06]name=ofd_packets/00191558 [17:51:06]NVStorageSaveData ofd_packets/00191558 [17:51:06]File name is /storage/ofd_packets/00191558 [17:51:06]Write 301 bytes [17:51:06]NVStorageSaveData done [17:51:06]OFDSenderStorePacket done [17:51:06]KKMCreateOFDPacket done [17:51:06]NVStorageSaveData kkm_last_timestamp [17:51:06]File name is /storage/kkm_last_timestamp [17:51:06]Write 4 bytes [17:51:06]NVStorageSaveData done [17:51:06]ExternCall_PrintAddStr [17:51:06]wPrintStart [17:51:06]Write to MH i2c: 01 00 00 AD C3 70 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 07 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: 01 07 00 AD C3 00 00 00 00 00 FF 0F 85 [17:51:06]RasterBufferAndPrint [17:51:06]line Счет N : (1)30857 [17:51:06]line ИНН: 02508201610067 [17:51:06]line Контрольно-Кассовый Чек [17:51:06]line ПРОДАЖА [17:51:06]line ТРК (МРК, ГНК) : 12 [17:51:06]line Товар: 2710124130 [17:51:06]line Аи-92-К-5 [17:51:06]line 14.950 * 66.90 [17:51:06]line = 1000.16 [17:51:06]line НДС 12% НСП 1% [17:51:06]line > о реализуемом товаре [17:51:06]line ОКРУГЛЕНИЕ: -0.16 [17:51:06]line ИТОГО: 1000.00 [17:51:06]line Внесено: 1000.00 [17:51:06]line СДАЧА: 0.00 [17:51:06]line НСП 1% : 8.85 [17:51:06]line НДС 12% : 106.21 [17:51:06]line Наличными: 1000.00 [17:51:06]line Безнал.: 0.00 [17:51:06]line Место: АЗС № 170 "Партнер Нефть" [17:51:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:51:06]line СНО: Общий режим [17:51:06]line Чек 297 25.10.2024 17:51 [17:51:06]line Смена: 540 ФФД: 1.0 [17:51:06]line ЗНМ: 0300000110 [17:51:06]line РНМ: 0000000000091776 [17:51:06]line Версия ККМ: 001 [17:51:06]line ФМ: 0000000000871754 [17:51:06]line ФД: 191558 [17:51:06]line ФПД: 95194720982762 [17:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175115&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191558&fm=95194720982762&tin=02508201610067®Number=0000000000091776&sum=100000 [17:51:07]OFD Sender: Processing packet 191558 [packets to send 75, broken 74] [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00191558 [17:51:07]OFD Sender: To server: pG, [17:51:07]CommunicateWithHost lk.salyk.kg:30040 [17:51:07]ConnectInit lk.salyk.kg [17:51:07]written 0, free lines is 4095 [17:51:07]Connected sock=10 [17:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D D8 07 01 4A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 93 DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EC 02 00 35 04 06 00 56 94 3F 87 56 EA 86 D0 15 E7 3C B6 B4 54 [17:51:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D F7 47 00 42 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EC 02 00 F4 03 04 00 61 7F 1B 67 B6 04 01 00 00 7C 69 FA AB A0 9D 1A 5B [17:51:07]CommunicateWithHost err = 0 [17:51:07]CheckOFDResponse [17:51:07]1017 (14) - 77093643461234 [17:51:07]1041 (16) - 0000000000871754 [17:51:07]1040 (4) - 191558 [17:51:07]1012 (4) - 25.10.2024 11:22 [17:51:07]1206 (1) - 0 [17:51:07]OFD Sender: Remove packet 191558 [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00191558 [17:51:07]NVStorageDeleteData [17:51:07]Write to MH i2c: 01 00 00 D8 C3 9B [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 D8 C3 00 00 00 00 00 B6 0C 64 [17:51:07]RasterBufferAndPrint [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]written 0, free lines is 3260 [17:51:07]MH_Cut [17:51:07]Write to MH i2c: D1 01 00 DF C3 01 74 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 DF C3 00 73 [17:51:07]Write to MH i2c: 01 00 00 E0 C3 A3 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]OFD Sender: No OFD packet to send [17:51:08]*** Cut start [17:51:08]*** Partial cut [17:51:08]*** CUTSNS_PIN = 1 [17:51:08]*** CUTSNS_PIN = 0 [17:51:08]*** Brake cut motor [17:51:08]Read from MH i2c: 01 [17:51:08]MH_I2C_Read... [17:51:08]*** Stop cut motor [17:51:08]*** Cut end [17:51:08]Read from MH i2c: 01 07 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: 01 07 00 E0 C3 00 00 00 00 00 FF 0F B8 [17:51:08]process_action close_receipt done [17:51:08]requested_data is exist [17:51:08]produce_requested_data [17:51:08]requested_item fm.sn is exist - process it [17:51:08]wFMCommunicate request_size=4 [17:51:08]MH_SAM_APDU [17:51:08]CAPDU: 80 11 00 00 [17:51:08]Write to MH i2c: E2 08 00 E1 C3 80 11 00 00 00 00 00 00 1E [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:08]Read from MH i2c: E2 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: E2 17 00 [17:51:08]MH_I2C_Read... [17:51:08]Read from MH i2c: E2 17 00 E1 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [17:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:08]wFMCommunicate OK [17:51:08]requested_item fd.num is exist - process it [17:51:08]SAM_PROTO_GetFieldsCounters [17:51:08]wFMCommunicate request_size=4 [17:51:08]MH_SAM_APDU [17:51:08]CAPDU: 80 13 00 00 [17:51:08]Write to MH i2c: E2 08 00 E2 C3 80 13 00 00 00 00 00 00 21 [17:51:08]Write i2c OK [17:51:08]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 E2 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [17:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetFieldsCounters done [17:51:09]requested_item shift.num is exist - process it [17:51:09]requested_item shift.opened is exist - process it [17:51:09]req_shift_opened [17:51:09]FM_GetShiftState [17:51:09]SAM_PROTO_GetShiftState [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 01 00 [17:51:09]Write to MH i2c: E2 08 00 E3 C3 80 13 01 00 00 00 00 00 23 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 E3 C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E6 [17:51:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetShiftState done [17:51:09]FM_GetShiftState done [17:51:09]req_shift_opened done [17:51:09]requested_item shift.open_date is exist - process it [17:51:09]req_shift_open_date [17:51:09]req_shift_open_date done [17:51:09]produce_requested_data done [17:51:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191558,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:51:09]process_action_free close_receipt [17:51:09]json_value_free [17:51:09]json_value_free done [17:51:09]process_json_proto returns [17:51:09]Send response to host [17:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191558,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:51:09]free response buf [17:51:09]execute_script done [17:51:09]execute_script returns [17:51:09]free content buf [17:51:09]Sock 8.Close socket [17:51:09]Sock 8.Thread stoped [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]accept exits with 9 [17:51:47]New connection [17:51:47]New thread 3066817892 created [17:51:47]Thread 3066961252 joined [17:51:47]Waiting for new connection... [17:51:47] Sock 9.Parse request [17:51:47]Sock 9.Check first char [17:51:47]Sock 9.First char is OK [17:51:47]request: POST /json_proto HTTP/1.0 [17:51:47]Method: POST [17:51:47]URL: /json_proto [17:51:47]Method is POST - this is cgi request [17:51:47]url: /json_proto [17:51:47]query_string will be loaded in cgi processing [17:51:47]execute_cgi json_proto POST (null) [17:51:47]execute_cgi path=json_proto method=POST [17:51:47]POST find Content-Length [17:51:47]Host: 172.17.63.131:8080 [17:51:47]Content-Length: 673 [17:51:47]Content-Type: application/json [17:51:47] [17:51:47]POST finish read [17:51:47]Found Content-Length = 673 [17:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.330, "sum" : 88.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 88.00, "payments": [ { "type": 0, "sum" : 88.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:47]execute_script... [17:51: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)30858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.330, "sum" : 88.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 88.00, "payments": [ { "type": 0, "sum" : 88.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:47]POST & json_proto [17:51:47]process_json_proto [17:51:47]json parsed OK: [17:51:47]protocol is kg_v1.0 [17:51:47]action value=close_receipt [17:51:47]process_action close_receipt [17:51:47]cmd_close_receipt [17:51:47]MH_GetDate [17:51:47]Write to MH i2c: F0 00 00 E4 C3 96 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: F0 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: F0 09 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: F0 09 00 E4 C3 00 BD DA 1B 67 22 05 6E 64 B1 [17:51:47]GetLastDocTimeStamp 1729878675 [17:51:47]current date 1729878717 [17:51:47]FM_GetShiftState [17:51:47]SAM_PROTO_GetShiftState [17:51:47]wFMCommunicate request_size=4 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 13 01 00 [17:51:47]Write to MH i2c: E2 08 00 E5 C3 80 13 01 00 00 00 00 00 25 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 0E 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 0E 00 E5 C3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E8 [17:51:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:51:47]wFMCommunicate OK [17:51:47]SAM_PROTO_GetShiftState done [17:51:47]FM_GetShiftState done [17:51:47]opened in 1729816399 [17:51:47]opened+sec_in_day 1729902799 [17:51:47]quantity*price = 8897 [17:51:47]sum+1 = 8899 [17:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 88.00 Внесено: 500.00 СДАЧА: 412.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 88.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 298 25.10.2024 17:51 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191559 ФПД: 243110994724541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191559&fm=243110994724541&tin=02508201610067®Number=0000000000091776&sum=8800 [17:51:48]StoreToDocumentArchive [17:51:48]shift 540 fd 191559 [17:51:48]save to /storage/0540/doc_00191559 [17:51:48]save last doc name /storage/0540/doc_00191559 to /storage/kkm_last_doc_name [17:51:48]save OK [17:51:48]Clear old archive folders... [17:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:48]tlvbuf is 019D28D0 [17:51:48]SAM_PROTO_ClearQueue [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 09 00 00 [17:51:48]Write to MH i2c: E2 08 00 F2 C3 80 09 00 00 00 00 00 00 27 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 F2 C3 00 90 00 29 [17:51:48]RAPDU: 90 00 [17:51:48]wFMCommunicate OK [17:51:48]SAM_PROTO_ClearQueue done [17:51:48]KKMCreateOFDPacket [17:51:48]OFDProtocolAddRootSTLVToBuf [17:51:48]FM_MakeSignedData [17:51:48]FM_MakeSignedData [17:51:48]SAM_PROTO_SignData [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 0D 01 02 [17:51:48]Write to MH i2c: E2 08 00 F3 C3 80 0D 01 02 00 00 00 00 2F [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 F3 C3 00 90 00 2A [17:51:48]RAPDU: 90 00 [17:51:48]wFMCommunicate OK [17:51:48]wFMCommunicate request_size=255 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 60 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 BD DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EC 02 00 35 04 06 00 DD [17:51:48]Write to MH i2c: E2 02 01 F4 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 60 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 BD DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EC 02 00 35 04 06 00 DD 00 00 10 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 F4 C3 00 90 00 2B [17:51:48]RAPDU: 90 00 [17:51:48]wFMCommunicate OK [17:51:48]wFMCommunicate request_size=10 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 0D 02 02 05 1B B0 7B 46 BD [17:51:48]Write to MH i2c: E2 0D 00 F5 C3 80 0D 02 02 05 00 1B B0 7B 46 BD 00 00 85 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 03 00 F5 C3 00 90 00 2C [17:51:48]RAPDU: 90 00 [17:51:48]wFMCommunicate OK [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 0D 03 02 [17:51:48]Write to MH i2c: E2 08 00 F6 C3 80 0D 03 02 00 00 00 00 34 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0B 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0B 00 F6 C3 00 B7 32 F0 6D C7 7F 46 52 90 00 59 [17:51:49]RAPDU: B7 32 F0 6D C7 7F 46 52 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_SignData done [17:51:49]FM_MakeSignedData done [17:51:49]CreateOFDProtocolMessage [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 11 00 00 [17:51:49]Write to MH i2c: E2 08 00 F7 C3 80 11 00 00 00 00 00 00 34 [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 17 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 17 00 F7 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [17:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:49]wFMCommunicate OK [17:51:49]CreateOFDProtocolMessage done [17:51:49]OFDSenderStorePacket 191559 [17:51:49]StoreOFDPacket docnum=191559 [17:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 86 07 01 2C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 60 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 BD DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EC 02 00 35 04 06 00 DD 1B B0 7B 46 BD B7 32 F0 6D C7 7F 46 52 [17:51:49]CheckFolder [17:51:49]dirname=/storage/ofd_packets [17:51:49]CheckFolder done [17:51:49]ProducePacketName [17:51:49]name=ofd_packets/00191559 [17:51:49]NVStorageSaveData ofd_packets/00191559 [17:51:49]File name is /storage/ofd_packets/00191559 [17:51:49]Write 301 bytes [17:51:49]NVStorageSaveData done [17:51:49]OFDSenderStorePacket done [17:51:49]KKMCreateOFDPacket done [17:51:49]NVStorageSaveData kkm_last_timestamp [17:51:49]File name is /storage/kkm_last_timestamp [17:51:49]Write 4 bytes [17:51:49]NVStorageSaveData done [17:51:49]ExternCall_PrintAddStr [17:51:49]wPrintStart [17:51:49]Write to MH i2c: 01 00 00 F8 C3 BB [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 07 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 07 00 F8 C3 00 00 00 00 00 FF 0F D0 [17:51:49]RasterBufferAndPrint [17:51:49]line Счет N : (1)30858 [17:51:49]line ИНН: 02508201610067 [17:51:49]line Контрольно-Кассовый Чек [17:51:49]line ПРОДАЖА [17:51:49]line ТРК (МРК, ГНК) : 12 [17:51:49]line Товар: 2710124130 [17:51:49]line Аи-92-К-5 [17:51:49]line 1.330 * 66.90 [17:51:49]line = 88.98 [17:51:49]line НДС 12% НСП 1% [17:51:49]line > о реализуемом товаре [17:51:49]line ОКРУГЛЕНИЕ: -0.98 [17:51:49]line ИТОГО: 88.00 [17:51:49]line Внесено: 500.00 [17:51:49]line СДАЧА: 412.00 [17:51:49]line НСП 1% : 0.79 [17:51:49]line НДС 12% : 9.45 [17:51:49]line Наличными: 88.00 [17:51:49]line Безнал.: 0.00 [17:51:49]line Место: АЗС № 170 "Партнер Нефть" [17:51:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:51:49]line СНО: Общий режим [17:51:49]line Чек 298 25.10.2024 17:51 [17:51:49]line Смена: 540 ФФД: 1.0 [17:51:49]line ЗНМ: 0300000110 [17:51:49]line РНМ: 0000000000091776 [17:51:49]line Версия ККМ: 001 [17:51:49]line ФМ: 0000000000871754 [17:51:49]line ФД: 191559 [17:51:49]line ФПД: 243110994724541 [17:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191559&fm=243110994724541&tin=02508201610067®Number=0000000000091776&sum=8800 [17:51:49]OFD Sender: Processing packet 191559 [packets to send 75, broken 74] [17:51:49]ProducePacketName [17:51:49]name=ofd_packets/00191559 [17:51:49]OFD Sender: To server: pG, [17:51:49]CommunicateWithHost lk.salyk.kg:30040 [17:51:49]ConnectInit lk.salyk.kg [17:51:49]written 0, free lines is 4095 [17:51:49]Connected sock=8 [17:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 86 07 01 2C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C2 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 60 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 BD DA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EC 02 00 35 04 06 00 DD 1B B0 7B 46 BD B7 32 F0 6D C7 7F 46 52 [17:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB 63 47 00 53 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EC 02 00 F4 03 04 00 8B 7F 1B 67 B6 04 01 00 00 88 C0 28 64 57 5A 6A 09 [17:51:49]CommunicateWithHost err = 0 [17:51:49]CheckOFDResponse [17:51:49]1017 (14) - 77093643461234 [17:51:49]1041 (16) - 0000000000871754 [17:51:49]1040 (4) - 191559 [17:51:49]1012 (4) - 25.10.2024 11:22 [17:51:49]1206 (1) - 0 [17:51:49]OFD Sender: Remove packet 191559 [17:51:49]ProducePacketName [17:51:49]name=ofd_packets/00191559 [17:51:49]NVStorageDeleteData [17:51:49]Write to MH i2c: 01 00 00 23 C4 E7 [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 07 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 07 00 23 C4 00 00 00 00 00 B2 0C AC [17:51:49]RasterBufferAndPrint [17:51:49]line [17:51:49]line [17:51:49]line [17:51:49]line [17:51:49]line [17:51:49]written 0, free lines is 3259 [17:51:49]MH_Cut [17:51:49]Write to MH i2c: D1 01 00 2A C4 01 C0 [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: D1 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: D1 01 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: D1 01 00 2A C4 00 BF [17:51:49]Write to MH i2c: 01 00 00 2B C4 EF [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:50]OFD Sender: No OFD packet to send [17:51:50]*** Cut start [17:51:50]*** Partial cut [17:51:50]*** CUTSNS_PIN = 1 [17:51:50]*** CUTSNS_PIN = 0 [17:51:50]*** Brake cut motor [17:51:51]Read from MH i2c: 01 [17:51:51]MH_I2C_Read... [17:51:51]*** Stop cut motor [17:51:51]*** Cut end [17:51:51]Read from MH i2c: 01 07 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 2B C4 00 00 00 00 00 FF 0F 04 [17:51:51]process_action close_receipt done [17:51:51]requested_data is exist [17:51:51]produce_requested_data [17:51:51]requested_item fm.sn is exist - process it [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 11 00 00 [17:51:51]Write to MH i2c: E2 08 00 2C C4 80 11 00 00 00 00 00 00 6A [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 2C C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [17:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:51]wFMCommunicate OK [17:51:51]requested_item fd.num is exist - process it [17:51:51]SAM_PROTO_GetFieldsCounters [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 13 00 00 [17:51:51]Write to MH i2c: E2 08 00 2D C4 80 13 00 00 00 00 00 00 6D [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 62 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 62 00 2D C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [17:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_GetFieldsCounters done [17:51:51]requested_item shift.num is exist - process it [17:51:51]requested_item shift.opened is exist - process it [17:51:51]req_shift_opened [17:51:51]FM_GetShiftState [17:51:51]SAM_PROTO_GetShiftState [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 13 01 00 [17:51:51]Write to MH i2c: E2 08 00 2E C4 80 13 01 00 00 00 00 00 6F [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0E 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0E 00 2E C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 32 [17:51:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_GetShiftState done [17:51:51]FM_GetShiftState done [17:51:51]req_shift_opened done [17:51:51]requested_item shift.open_date is exist - process it [17:51:51]req_shift_open_date [17:51:51]req_shift_open_date done [17:51:51]produce_requested_data done [17:51:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191559,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:51:51]process_action_free close_receipt [17:51:51]json_value_free [17:51:51]json_value_free done [17:51:51]process_json_proto returns [17:51:51]Send response to host [17:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191559,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:51:51]free response buf [17:51:51]execute_script done [17:51:51]execute_script returns [17:51:51]free content buf [17:51:51]Sock 9.Close socket [17:51:51]Sock 9.Thread stoped [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:54]accept exits with 10 [17:52:54]New connection [17:52:54]New thread 3066961252 created [17:52:54]Thread 3066817892 joined [17:52:54]Waiting for new connection... [17:52:54] Sock 10.Parse request [17:52:54]Sock 10.Check first char [17:52:54]Sock 10.First char is OK [17:52:54]request: POST /json_proto HTTP/1.0 [17:52:54]Method: POST [17:52:54]URL: /json_proto [17:52:54]Method is POST - this is cgi request [17:52:54]url: /json_proto [17:52:54]query_string will be loaded in cgi processing [17:52:54]execute_cgi json_proto POST (null) [17:52:54]execute_cgi path=json_proto method=POST [17:52:54]POST find Content-Length [17:52:54]Host: 172.17.63.131:8080 [17:52:54]Content-Length: 676 [17:52:54]Content-Type: application/json [17:52:54] [17:52:54]POST finish read [17:52:54]Found Content-Length = 676 [17:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:54]execute_script... [17:52: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)30859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:54]POST & json_proto [17:52:54]process_json_proto [17:52:54]json parsed OK: [17:52:54]protocol is kg_v1.0 [17:52:54]action value=close_receipt [17:52:54]process_action close_receipt [17:52:54]cmd_close_receipt [17:52:54]MH_GetDate [17:52:54]Write to MH i2c: F0 00 00 2F C4 E2 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 09 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 09 00 2F C4 00 00 DB 1B 67 22 05 6E 64 41 [17:52:54]GetLastDocTimeStamp 1729878717 [17:52:54]current date 1729878784 [17:52:54]FM_GetShiftState [17:52:54]SAM_PROTO_GetShiftState [17:52:54]wFMCommunicate request_size=4 [17:52:54]MH_SAM_APDU [17:52:54]CAPDU: 80 13 01 00 [17:52:54]Write to MH i2c: E2 08 00 30 C4 80 13 01 00 00 00 00 00 71 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:54]Read from MH i2c: E2 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: E2 0E 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: E2 0E 00 30 C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 34 [17:52:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:52:54]wFMCommunicate OK [17:52:54]SAM_PROTO_GetShiftState done [17:52:54]FM_GetShiftState done [17:52:54]opened in 1729816399 [17:52:54]opened+sec_in_day 1729902799 [17:52:54]quantity*price = 42013 [17:52:54]sum+1 = 42014 [17:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 299 25.10.2024 17:53 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191560 ФПД: 79817986995713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191560&fm=79817986995713&tin=02508201610067®Number=0000000000091776&sum=42000 [17:52:55]StoreToDocumentArchive [17:52:55]shift 540 fd 191560 [17:52:55]save to /storage/0540/doc_00191560 [17:52:55]save last doc name /storage/0540/doc_00191560 to /storage/kkm_last_doc_name [17:52:55]save OK [17:52:55]Clear old archive folders... [17:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:55]tlvbuf is 0183C3E0 [17:52:55]SAM_PROTO_ClearQueue [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 09 00 00 [17:52:55]Write to MH i2c: E2 08 00 3D C4 80 09 00 00 00 00 00 00 73 [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]OFD Sender: No OFD packet to send [17:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 3D C4 00 90 00 75 [17:52:55]RAPDU: 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_ClearQueue done [17:52:55]KKMCreateOFDPacket [17:52:55]OFDProtocolAddRootSTLVToBuf [17:52:55]FM_MakeSignedData [17:52:55]FM_MakeSignedData [17:52:55]SAM_PROTO_SignData [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 0D 01 02 [17:52:55]Write to MH i2c: E2 08 00 3E C4 80 0D 01 02 00 00 00 00 7B [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 3E C4 00 90 00 76 [17:52:55]RAPDU: 90 00 [17:52:55]wFMCommunicate OK [17:52:55]wFMCommunicate request_size=255 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 00 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EC 02 00 35 04 06 00 48 [17:52:55]Write to MH i2c: E2 02 01 3F C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 00 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EC 02 00 35 04 06 00 48 00 00 A8 [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 3F C4 00 90 00 77 [17:52:55]RAPDU: 90 00 [17:52:55]wFMCommunicate OK [17:52:55]wFMCommunicate request_size=10 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 0D 02 02 05 98 12 C2 F6 01 [17:52:55]Write to MH i2c: E2 0D 00 40 C4 80 0D 02 02 05 00 98 12 C2 F6 01 00 00 EB [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 03 00 40 C4 00 90 00 78 [17:52:55]RAPDU: 90 00 [17:52:55]wFMCommunicate OK [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 0D 03 02 [17:52:55]Write to MH i2c: E2 08 00 41 C4 80 0D 03 02 00 00 00 00 80 [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0B 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0B 00 41 C4 00 65 23 ED 35 D8 C6 24 5A 90 00 47 [17:52:55]RAPDU: 65 23 ED 35 D8 C6 24 5A 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_SignData done [17:52:55]FM_MakeSignedData done [17:52:55]CreateOFDProtocolMessage [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 11 00 00 [17:52:55]Write to MH i2c: E2 08 00 42 C4 80 11 00 00 00 00 00 00 80 [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 17 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 17 00 42 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [17:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:52:55]wFMCommunicate OK [17:52:55]CreateOFDProtocolMessage done [17:52:55]OFDSenderStorePacket 191560 [17:52:55]StoreOFDPacket docnum=191560 [17:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 58 07 01 2E 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 00 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EC 02 00 35 04 06 00 48 98 12 C2 F6 01 65 23 ED 35 D8 C6 24 5A [17:52:55]CheckFolder [17:52:55]dirname=/storage/ofd_packets [17:52:55]CheckFolder done [17:52:55]ProducePacketName [17:52:55]name=ofd_packets/00191560 [17:52:55]NVStorageSaveData ofd_packets/00191560 [17:52:55]File name is /storage/ofd_packets/00191560 [17:52:55]Write 301 bytes [17:52:55]NVStorageSaveData done [17:52:55]OFDSenderStorePacket done [17:52:55]KKMCreateOFDPacket done [17:52:55]NVStorageSaveData kkm_last_timestamp [17:52:55]File name is /storage/kkm_last_timestamp [17:52:55]Write 4 bytes [17:52:55]NVStorageSaveData done [17:52:55]ExternCall_PrintAddStr [17:52:55]wPrintStart [17:52:55]Write to MH i2c: 01 00 00 43 C4 07 [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: 01 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: 01 07 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: 01 07 00 43 C4 00 00 00 00 00 FF 0F 1C [17:52:55]RasterBufferAndPrint [17:52:55]line Счет N : (1)30859 [17:52:55]line ИНН: 02508201610067 [17:52:55]line Контрольно-Кассовый Чек [17:52:55]line ПРОДАЖА [17:52:55]line ТРК (МРК, ГНК) : 12 [17:52:55]line Товар: 2710124130 [17:52:55]line Аи-92-К-5 [17:52:55]line 6.280 * 66.90 [17:52:55]line = 420.13 [17:52:55]line НДС 12% НСП 1% [17:52:55]line > о реализуемом товаре [17:52:55]line ОКРУГЛЕНИЕ: -0.13 [17:52:55]line ИТОГО: 420.00 [17:52:55]line Внесено: 420.00 [17:52:55]line СДАЧА: 0.00 [17:52:55]line НСП 1% : 3.72 [17:52:55]line НДС 12% : 44.62 [17:52:55]line Наличными: 420.00 [17:52:55]line Безнал.: 0.00 [17:52:55]line Место: АЗС № 170 "Партнер Нефть" [17:52:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:52:55]line СНО: Общий режим [17:52:55]line Чек 299 25.10.2024 17:53 [17:52:55]line Смена: 540 ФФД: 1.0 [17:52:55]line ЗНМ: 0300000110 [17:52:55]line РНМ: 0000000000091776 [17:52:55]line Версия ККМ: 001 [17:52:55]line ФМ: 0000000000871754 [17:52:55]line ФД: 191560 [17:52:55]line ФПД: 79817986995713 [17:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191560&fm=79817986995713&tin=02508201610067®Number=0000000000091776&sum=42000 [17:52:55]written 0, free lines is 4095 [17:52:55]OFD Sender: Processing packet 191560 [packets to send 75, broken 74] [17:52:55]ProducePacketName [17:52:55]name=ofd_packets/00191560 [17:52:55]OFD Sender: To server: pG, [17:52:55]CommunicateWithHost lk.salyk.kg:30040 [17:52:55]ConnectInit lk.salyk.kg [17:52:56]Connected sock=9 [17:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 58 07 01 2E 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 00 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EC 02 00 35 04 06 00 48 98 12 C2 F6 01 65 23 ED 35 D8 C6 24 5A [17:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D6 AA 47 00 5C 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EC 02 00 F4 03 04 00 CD 7F 1B 67 B6 04 01 00 00 E1 DA 12 B7 E1 30 B7 46 [17:52:56]CommunicateWithHost err = 0 [17:52:56]CheckOFDResponse [17:52:56]1017 (14) - 77093643461234 [17:52:56]1041 (16) - 0000000000871754 [17:52:56]1040 (4) - 191560 [17:52:56]1012 (4) - 25.10.2024 11:23 [17:52:56]1206 (1) - 0 [17:52:56]OFD Sender: Remove packet 191560 [17:52:56]ProducePacketName [17:52:56]name=ofd_packets/00191560 [17:52:56]NVStorageDeleteData [17:52:56]Write to MH i2c: 01 00 00 6E C4 32 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 07 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 07 00 6E C4 00 00 00 00 00 BC 0C 01 [17:52:56]RasterBufferAndPrint [17:52:56]line [17:52:56]line [17:52:56]line [17:52:56]line [17:52:56]line [17:52:56]written 0, free lines is 3265 [17:52:56]MH_Cut [17:52:56]Write to MH i2c: D1 01 00 75 C4 01 0B [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: D1 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: D1 01 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: D1 01 00 75 C4 00 0A [17:52:56]Write to MH i2c: 01 00 00 76 C4 3A [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]OFD Sender: No OFD packet to send [17:52:57]*** Cut start [17:52:57]*** Partial cut [17:52:57]*** CUTSNS_PIN = 1 [17:52:57]*** CUTSNS_PIN = 0 [17:52:57]*** Brake cut motor [17:52:57]Read from MH i2c: 01 [17:52:57]MH_I2C_Read... [17:52:57]*** Stop cut motor [17:52:57]*** Cut end [17:52:57]Read from MH i2c: 01 07 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 07 00 76 C4 00 00 00 00 00 FF 0F 4F [17:52:57]process_action close_receipt done [17:52:57]requested_data is exist [17:52:57]produce_requested_data [17:52:57]requested_item fm.sn is exist - process it [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 11 00 00 [17:52:57]Write to MH i2c: E2 08 00 77 C4 80 11 00 00 00 00 00 00 B5 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 17 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 17 00 77 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [17:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:52:57]wFMCommunicate OK [17:52:57]requested_item fd.num is exist - process it [17:52:57]SAM_PROTO_GetFieldsCounters [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 13 00 00 [17:52:57]Write to MH i2c: E2 08 00 78 C4 80 13 00 00 00 00 00 00 B8 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 62 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 62 00 78 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:57]wFMCommunicate OK [17:52:57]SAM_PROTO_GetFieldsCounters done [17:52:57]requested_item shift.num is exist - process it [17:52:57]requested_item shift.opened is exist - process it [17:52:57]req_shift_opened [17:52:57]FM_GetShiftState [17:52:57]SAM_PROTO_GetShiftState [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 13 01 00 [17:52:57]Write to MH i2c: E2 08 00 79 C4 80 13 01 00 00 00 00 00 BA [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:58]Read from MH i2c: E2 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: E2 0E 00 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: E2 0E 00 79 C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7D [17:52:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:52:58]wFMCommunicate OK [17:52:58]SAM_PROTO_GetShiftState done [17:52:58]FM_GetShiftState done [17:52:58]req_shift_opened done [17:52:58]requested_item shift.open_date is exist - process it [17:52:58]req_shift_open_date [17:52:58]req_shift_open_date done [17:52:58]produce_requested_data done [17:52:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191560,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:52:58]process_action_free close_receipt [17:52:58]json_value_free [17:52:58]json_value_free done [17:52:58]process_json_proto returns [17:52:58]Send response to host [17:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191560,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:52:58]free response buf [17:52:58]execute_script done [17:52:58]execute_script returns [17:52:58]free content buf [17:52:58]Sock 10.Close socket [17:52:58]Sock 10.Thread stoped [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:30]accept exits with 8 [17:53:30]New connection [17:53:30]New thread 3066817892 created [17:53:30]Thread 3066961252 joined [17:53:30]Waiting for new connection... [17:53:30] Sock 8.Parse request [17:53:30]Sock 8.Check first char [17:53:30]Sock 8.First char is OK [17:53:30]request: POST /json_proto HTTP/1.0 [17:53:30]Method: POST [17:53:30]URL: /json_proto [17:53:30]Method is POST - this is cgi request [17:53:30]url: /json_proto [17:53:30]query_string will be loaded in cgi processing [17:53:30]execute_cgi json_proto POST (null) [17:53:30]execute_cgi path=json_proto method=POST [17:53:30]POST find Content-Length [17:53:30]Host: 172.17.63.131:8080 [17:53:30]Content-Length: 674 [17:53:30]Content-Type: application/json [17:53:30] [17:53:30]POST finish read [17:53:30]Found Content-Length = 674 [17:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:53:30]execute_script... [17:53: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)30860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [17:53:30]POST & json_proto [17:53:30]process_json_proto [17:53:30]json parsed OK: [17:53:30]protocol is kg_v1.0 [17:53:30]action value=close_receipt [17:53:30]process_action close_receipt [17:53:30]cmd_close_receipt [17:53:30]MH_GetDate [17:53:30]Write to MH i2c: F0 00 00 7A C4 2D [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 09 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: F0 09 00 7A C4 00 24 DB 1B 67 22 05 6E 64 B0 [17:53:30]GetLastDocTimeStamp 1729878784 [17:53:30]current date 1729878820 [17:53:30]FM_GetShiftState [17:53:30]SAM_PROTO_GetShiftState [17:53:30]wFMCommunicate request_size=4 [17:53:30]MH_SAM_APDU [17:53:30]CAPDU: 80 13 01 00 [17:53:30]Write to MH i2c: E2 08 00 7B C4 80 13 01 00 00 00 00 00 BC [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:30]Read from MH i2c: E2 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 7B C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7F [17:53:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:53:30]wFMCommunicate OK [17:53:30]SAM_PROTO_GetShiftState done [17:53:30]FM_GetShiftState done [17:53:30]opened in 1729816399 [17:53:30]opened+sec_in_day 1729902799 [17:53:30]quantity*price = 80010 [17:53:30]sum+1 = 80011 [17:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 300 25.10.2024 17:53 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191561 ФПД: 206282257795207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191561&fm=206282257795207&tin=02508201610067®Number=0000000000091776&sum=80000 [17:53:31]StoreToDocumentArchive [17:53:31]shift 540 fd 191561 [17:53:31]save to /storage/0540/doc_00191561 [17:53:31]save last doc name /storage/0540/doc_00191561 to /storage/kkm_last_doc_name [17:53:31]save OK [17:53:31]Clear old archive folders... [17:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:31]tlvbuf is 01709080 [17:53:31]SAM_PROTO_ClearQueue [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 09 00 00 [17:53:31]Write to MH i2c: E2 08 00 88 C4 80 09 00 00 00 00 00 00 BE [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 88 C4 00 90 00 C0 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]SAM_PROTO_ClearQueue done [17:53:31]KKMCreateOFDPacket [17:53:31]OFDProtocolAddRootSTLVToBuf [17:53:31]FM_MakeSignedData [17:53:31]FM_MakeSignedData [17:53:31]SAM_PROTO_SignData [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 0D 01 02 [17:53:31]Write to MH i2c: E2 08 00 89 C4 80 0D 01 02 00 00 00 00 C6 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 03 00 89 C4 00 90 00 C1 [17:53:31]RAPDU: 90 00 [17:53:31]wFMCommunicate OK [17:53:31]wFMCommunicate request_size=255 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 01 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EC 02 00 35 04 06 00 BB 9C D4 B3 [17:53:31]Write to MH i2c: E2 02 01 8A C4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EC 02 00 35 04 06 00 BB 9C D4 B3 00 00 64 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]OFD Sender: No OFD packet to send [17:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 8A C4 00 90 00 C2 [17:53:32]RAPDU: 90 00 [17:53:32]wFMCommunicate OK [17:53:32]wFMCommunicate request_size=7 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 0D 02 02 02 08 87 [17:53:32]Write to MH i2c: E2 0A 00 8B C4 80 0D 02 02 02 00 08 87 00 00 5C [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 8B C4 00 90 00 C3 [17:53:32]RAPDU: 90 00 [17:53:32]wFMCommunicate OK [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 0D 03 02 [17:53:32]Write to MH i2c: E2 08 00 8C C4 80 0D 03 02 00 00 00 00 CB [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 0B 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 0B 00 8C C4 00 50 EF 72 A1 16 33 6A 23 90 00 F4 [17:53:32]RAPDU: 50 EF 72 A1 16 33 6A 23 90 00 [17:53:32]wFMCommunicate OK [17:53:32]SAM_PROTO_SignData done [17:53:32]FM_MakeSignedData done [17:53:32]CreateOFDProtocolMessage [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 11 00 00 [17:53:32]Write to MH i2c: E2 08 00 8D C4 80 11 00 00 00 00 00 00 CB [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 17 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 17 00 8D C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [17:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:32]wFMCommunicate OK [17:53:32]CreateOFDProtocolMessage done [17:53:32]OFDSenderStorePacket 191561 [17:53:32]StoreOFDPacket docnum=191561 [17:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DB E5 04 01 D5 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 01 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EC 02 00 35 04 06 00 BB 9C D4 B3 08 87 50 EF 72 A1 16 33 6A 23 [17:53:32]CheckFolder [17:53:32]dirname=/storage/ofd_packets [17:53:32]CheckFolder done [17:53:32]ProducePacketName [17:53:32]name=ofd_packets/00191561 [17:53:32]NVStorageSaveData ofd_packets/00191561 [17:53:32]File name is /storage/ofd_packets/00191561 [17:53:32]Write 298 bytes [17:53:32]NVStorageSaveData done [17:53:32]OFDSenderStorePacket done [17:53:32]KKMCreateOFDPacket done [17:53:32]NVStorageSaveData kkm_last_timestamp [17:53:32]File name is /storage/kkm_last_timestamp [17:53:32]Write 4 bytes [17:53:32]NVStorageSaveData done [17:53:32]ExternCall_PrintAddStr [17:53:32]wPrintStart [17:53:32]Write to MH i2c: 01 00 00 8E C4 52 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 8E C4 00 00 00 00 00 FF 0F 67 [17:53:32]RasterBufferAndPrint [17:53:32]line Счет N : (1)30860 [17:53:32]line ИНН: 02508201610067 [17:53:32]line Контрольно-Кассовый Чек [17:53:32]line ПРОДАЖА [17:53:32]line ТРК (МРК, ГНК) : 22 [17:53:32]line Товар: 2710194210 [17:53:32]line ДТ-К-5 [17:53:32]line 10.500 * 76.20 [17:53:32]line = 800.10 [17:53:32]line НДС 12% НСП 1% [17:53:32]line > о реализуемом товаре [17:53:32]line ОКРУГЛЕНИЕ: -0.10 [17:53:32]line ИТОГО: 800.00 [17:53:32]line Внесено: 800.00 [17:53:32]line СДАЧА: 0.00 [17:53:32]line НСП 1% : 7.08 [17:53:32]line НДС 12% : 84.97 [17:53:32]line Наличными: 800.00 [17:53:32]line Безнал.: 0.00 [17:53:32]line Место: АЗС № 170 "Партнер Нефть" [17:53:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:53:32]line СНО: Общий режим [17:53:32]line Чек 300 25.10.2024 17:53 [17:53:32]line Смена: 540 ФФД: 1.0 [17:53:32]line ЗНМ: 0300000110 [17:53:32]line РНМ: 0000000000091776 [17:53:32]line Версия ККМ: 001 [17:53:32]line ФМ: 0000000000871754 [17:53:32]line ФД: 191561 [17:53:32]line ФПД: 206282257795207 [17:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191561&fm=206282257795207&tin=02508201610067®Number=0000000000091776&sum=80000 [17:53:32]OFD Sender: Processing packet 191561 [packets to send 75, broken 74] [17:53:32]ProducePacketName [17:53:32]name=ofd_packets/00191561 [17:53:32]OFD Sender: To server: pG, [17:53:32]CommunicateWithHost lk.salyk.kg:30040 [17:53:32]ConnectInit lk.salyk.kg [17:53:32]written 0, free lines is 4095 [17:53:32]Connected sock=10 [17:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DB E5 04 01 D5 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 01 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EC 02 00 35 04 06 00 BB 9C D4 B3 08 87 50 EF 72 A1 16 33 6A 23 [17:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DB 04 47 00 3C B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EC 02 00 F4 03 04 00 F2 7F 1B 67 B6 04 01 00 00 9C EC 9F 4F AD 5F F3 A5 [17:53:32]CommunicateWithHost err = 0 [17:53:32]CheckOFDResponse [17:53:32]1017 (14) - 77093643461234 [17:53:32]1041 (16) - 0000000000871754 [17:53:32]1040 (4) - 191561 [17:53:32]1012 (4) - 25.10.2024 11:24 [17:53:32]1206 (1) - 0 [17:53:32]OFD Sender: Remove packet 191561 [17:53:32]ProducePacketName [17:53:32]name=ofd_packets/00191561 [17:53:32]NVStorageDeleteData [17:53:32]Write to MH i2c: 01 00 00 B9 C4 7D [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: 01 07 00 B9 C4 00 00 00 00 00 BB 0C 4B [17:53:32]RasterBufferAndPrint [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]line [17:53:32]written 0, free lines is 3270 [17:53:32]MH_Cut [17:53:32]Write to MH i2c: D1 01 00 C0 C4 01 56 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 01 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: D1 01 00 C0 C4 00 55 [17:53:32]Write to MH i2c: 01 00 00 C1 C4 85 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:33]OFD Sender: No OFD packet to send [17:53:33]*** Cut start [17:53:33]*** Partial cut [17:53:33]*** CUTSNS_PIN = 1 [17:53:33]*** CUTSNS_PIN = 0 [17:53:34]*** Brake cut motor [17:53:34]Read from MH i2c: 01 [17:53:34]MH_I2C_Read... [17:53:34]*** Stop cut motor [17:53:34]*** Cut end [17:53:34]Read from MH i2c: 01 07 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 C1 C4 00 00 00 00 00 FF 0F 9A [17:53:34]process_action close_receipt done [17:53:34]requested_data is exist [17:53:34]produce_requested_data [17:53:34]requested_item fm.sn is exist - process it [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 11 00 00 [17:53:34]Write to MH i2c: E2 08 00 C2 C4 80 11 00 00 00 00 00 00 00 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 17 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 17 00 C2 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [17:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:34]wFMCommunicate OK [17:53:34]requested_item fd.num is exist - process it [17:53:34]SAM_PROTO_GetFieldsCounters [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 00 00 [17:53:34]Write to MH i2c: E2 08 00 C3 C4 80 13 00 00 00 00 00 00 03 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 62 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 62 00 C3 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [17:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetFieldsCounters done [17:53:34]requested_item shift.num is exist - process it [17:53:34]requested_item shift.opened is exist - process it [17:53:34]req_shift_opened [17:53:34]FM_GetShiftState [17:53:34]SAM_PROTO_GetShiftState [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 01 00 [17:53:34]Write to MH i2c: E2 08 00 C4 C4 80 13 01 00 00 00 00 00 05 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 C4 C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C8 [17:53:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetShiftState done [17:53:34]FM_GetShiftState done [17:53:34]req_shift_opened done [17:53:34]requested_item shift.open_date is exist - process it [17:53:34]req_shift_open_date [17:53:34]req_shift_open_date done [17:53:34]produce_requested_data done [17:53:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191561,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:53:34]process_action_free close_receipt [17:53:34]json_value_free [17:53:34]json_value_free done [17:53:34]process_json_proto returns [17:53:34]Send response to host [17:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191561,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:53:34]free response buf [17:53:34]execute_script done [17:53:34]execute_script returns [17:53:34]free content buf [17:53:34]Sock 8.Close socket [17:53:34]Sock 8.Thread stoped [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [17:58:46]New connection [17:58:46]New thread 3066961252 created [17:58:46]Thread 3066817892 joined [17:58:46]Waiting for new connection... [17:58:46] Sock 9.Parse request [17:58:46]Sock 9.Check first char [17:58:46]Sock 9.First char is OK [17:58:46]request: POST /json_proto HTTP/1.0 [17:58:46]Method: POST [17:58:46]URL: /json_proto [17:58:46]Method is POST - this is cgi request [17:58:46]url: /json_proto [17:58:46]query_string will be loaded in cgi processing [17:58:46]execute_cgi json_proto POST (null) [17:58:46]execute_cgi path=json_proto method=POST [17:58:46]POST find Content-Length [17:58:46]Host: 172.17.63.131:8080 [17:58:46]Content-Length: 676 [17:58:46]Content-Type: application/json [17:58:46] [17:58:46]POST finish read [17:58:46]Found Content-Length = 676 [17:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.980, "sum" : 600.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:46]execute_script... [17:58: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)30861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.980, "sum" : 600.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:46]POST & json_proto [17:58:46]process_json_proto [17:58:46]json parsed OK: [17:58:46]protocol is kg_v1.0 [17:58:46]action value=close_receipt [17:58:46]process_action close_receipt [17:58:46]cmd_close_receipt [17:58:46]MH_GetDate [17:58:46]Write to MH i2c: F0 00 00 C5 C4 78 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: F0 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: F0 09 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: F0 09 00 C5 C4 00 61 DC 1B 67 22 05 6E 64 39 [17:58:46]GetLastDocTimeStamp 1729878820 [17:58:46]current date 1729879137 [17:58:46]FM_GetShiftState [17:58:46]SAM_PROTO_GetShiftState [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 13 01 00 [17:58:46]Write to MH i2c: E2 08 00 C6 C4 80 13 01 00 00 00 00 00 07 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0E 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0E 00 C6 C4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CA [17:58:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:58:46]wFMCommunicate OK [17:58:46]SAM_PROTO_GetShiftState done [17:58:46]FM_GetShiftState done [17:58:46]opened in 1729816399 [17:58:46]opened+sec_in_day 1729902799 [17:58:46]quantity*price = 60076 [17:58:46]sum+1 = 60077 [17:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 600.00 Внесено: 700.00 СДАЧА: 100.00 НСП 1% : 5.32 НДС 12% : 63.80 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 301 25.10.2024 17:58 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191562 ФПД: 50600400257791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191562&fm=50600400257791&tin=02508201610067®Number=0000000000091776&sum=60000 [17:58:48]StoreToDocumentArchive [17:58:48]shift 540 fd 191562 [17:58:48]save to /storage/0540/doc_00191562 [17:58:48]save last doc name /storage/0540/doc_00191562 to /storage/kkm_last_doc_name [17:58:48]save OK [17:58:48]Clear old archive folders... [17:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:48]tlvbuf is 016EB440 [17:58:48]SAM_PROTO_ClearQueue [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 09 00 00 [17:58:48]Write to MH i2c: E2 08 00 D3 C4 80 09 00 00 00 00 00 00 09 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 D3 C4 00 90 00 0B [17:58:48]RAPDU: 90 00 [17:58:48]wFMCommunicate OK [17:58:48]SAM_PROTO_ClearQueue done [17:58:48]KKMCreateOFDPacket [17:58:48]OFDProtocolAddRootSTLVToBuf [17:58:48]FM_MakeSignedData [17:58:48]FM_MakeSignedData [17:58:48]SAM_PROTO_SignData [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 0D 01 02 [17:58:48]Write to MH i2c: E2 08 00 D4 C4 80 0D 01 02 00 00 00 00 11 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 D4 C4 00 90 00 0C [17:58:48]RAPDU: 90 00 [17:58:48]wFMCommunicate OK [17:58:48]wFMCommunicate request_size=255 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 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 2D 01 00 00 F4 03 04 00 61 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EC 02 00 35 04 06 00 2E [17:58:48]Write to MH i2c: E2 02 01 D5 C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 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 2D 01 00 00 F4 03 04 00 61 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EC 02 00 35 04 06 00 2E 00 00 48 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 D5 C4 00 90 00 0D [17:58:48]RAPDU: 90 00 [17:58:48]wFMCommunicate OK [17:58:48]wFMCommunicate request_size=10 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 0D 02 02 05 05 52 E2 02 FF [17:58:48]Write to MH i2c: E2 0D 00 D6 C4 80 0D 02 02 05 00 05 52 E2 02 FF 00 00 58 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 03 00 D6 C4 00 90 00 0E [17:58:48]RAPDU: 90 00 [17:58:48]wFMCommunicate OK [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 0D 03 02 [17:58:48]Write to MH i2c: E2 08 00 D7 C4 80 0D 03 02 00 00 00 00 16 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0B 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 0B 00 D7 C4 00 8B 0F D5 70 0E 0F E6 D1 90 00 CA [17:58:48]RAPDU: 8B 0F D5 70 0E 0F E6 D1 90 00 [17:58:48]wFMCommunicate OK [17:58:48]SAM_PROTO_SignData done [17:58:48]FM_MakeSignedData done [17:58:48]CreateOFDProtocolMessage [17:58:48]wFMCommunicate request_size=4 [17:58:48]MH_SAM_APDU [17:58:48]CAPDU: 80 11 00 00 [17:58:48]Write to MH i2c: E2 08 00 D8 C4 80 11 00 00 00 00 00 00 16 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:48]Read from MH i2c: E2 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 17 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: E2 17 00 D8 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [17:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:48]wFMCommunicate OK [17:58:48]CreateOFDProtocolMessage done [17:58:48]OFDSenderStorePacket 191562 [17:58:48]StoreOFDPacket docnum=191562 [17:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 2B 07 01 9A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 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 2D 01 00 00 F4 03 04 00 61 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EC 02 00 35 04 06 00 2E 05 52 E2 02 FF 8B 0F D5 70 0E 0F E6 D1 [17:58:48]CheckFolder [17:58:48]dirname=/storage/ofd_packets [17:58:48]CheckFolder done [17:58:48]ProducePacketName [17:58:48]name=ofd_packets/00191562 [17:58:48]NVStorageSaveData ofd_packets/00191562 [17:58:48]File name is /storage/ofd_packets/00191562 [17:58:48]Write 301 bytes [17:58:48]NVStorageSaveData done [17:58:48]OFDSenderStorePacket done [17:58:48]KKMCreateOFDPacket done [17:58:48]NVStorageSaveData kkm_last_timestamp [17:58:48]File name is /storage/kkm_last_timestamp [17:58:48]Write 4 bytes [17:58:48]NVStorageSaveData done [17:58:48]ExternCall_PrintAddStr [17:58:48]wPrintStart [17:58:48]Write to MH i2c: 01 00 00 D9 C4 9D [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 07 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 07 00 D9 C4 00 00 00 00 00 FF 0F B2 [17:58:48]RasterBufferAndPrint [17:58:48]line Счет N : (1)30861 [17:58:48]line ИНН: 02508201610067 [17:58:48]line Контрольно-Кассовый Чек [17:58:48]line ПРОДАЖА [17:58:48]line ТРК (МРК, ГНК) : 21 [17:58:48]line Товар: 2710124130 [17:58:48]line Аи-92-К-5 [17:58:48]line 8.980 * 66.90 [17:58:48]line = 600.76 [17:58:48]line НДС 12% НСП 1% [17:58:48]line > о реализуемом товаре [17:58:48]line ОКРУГЛЕНИЕ: -0.76 [17:58:48]line ИТОГО: 600.00 [17:58:48]line Внесено: 700.00 [17:58:48]line СДАЧА: 100.00 [17:58:48]line НСП 1% : 5.32 [17:58:48]line НДС 12% : 63.80 [17:58:48]line Наличными: 600.00 [17:58:48]line Безнал.: 0.00 [17:58:48]line Место: АЗС № 170 "Партнер Нефть" [17:58:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:58:48]line СНО: Общий режим [17:58:48]line Чек 301 25.10.2024 17:58 [17:58:48]line Смена: 540 ФФД: 1.0 [17:58:48]line ЗНМ: 0300000110 [17:58:48]line РНМ: 0000000000091776 [17:58:48]line Версия ККМ: 001 [17:58:48]line ФМ: 0000000000871754 [17:58:48]line ФД: 191562 [17:58:48]line ФПД: 50600400257791 [17:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191562&fm=50600400257791&tin=02508201610067®Number=0000000000091776&sum=60000 [17:58:48]OFD Sender: Processing packet 191562 [packets to send 75, broken 74] [17:58:48]ProducePacketName [17:58:48]name=ofd_packets/00191562 [17:58:48]OFD Sender: To server: pG, [17:58:48]CommunicateWithHost lk.salyk.kg:30040 [17:58:48]ConnectInit lk.salyk.kg [17:58:48]written 0, free lines is 4095 [17:58:49]Connected sock=10 [17:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 2B 07 01 9A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AC 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 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 2D 01 00 00 F4 03 04 00 61 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EC 02 00 35 04 06 00 2E 05 52 E2 02 FF 8B 0F D5 70 0E 0F E6 D1 [17:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 21 47 00 D3 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EC 02 00 F4 03 04 00 2F 81 1B 67 B6 04 01 00 00 03 2D 49 C6 1A 1A B1 E9 [17:58:49]CommunicateWithHost err = 0 [17:58:49]CheckOFDResponse [17:58:49]1017 (14) - 77093643461234 [17:58:49]1041 (16) - 0000000000871754 [17:58:49]1040 (4) - 191562 [17:58:49]1012 (4) - 25.10.2024 11:29 [17:58:49]1206 (1) - 0 [17:58:49]OFD Sender: Remove packet 191562 [17:58:49]ProducePacketName [17:58:49]name=ofd_packets/00191562 [17:58:49]NVStorageDeleteData [17:58:49]Write to MH i2c: 01 00 00 04 C5 C9 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 04 C5 00 00 00 00 00 B3 0C 8F [17:58:49]RasterBufferAndPrint [17:58:49]line [17:58:49]line [17:58:49]line [17:58:49]line [17:58:49]line [17:58:49]written 0, free lines is 3257 [17:58:49]MH_Cut [17:58:49]Write to MH i2c: D1 01 00 0B C5 01 A2 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: D1 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: D1 01 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: D1 01 00 0B C5 00 A1 [17:58:49]Write to MH i2c: 01 00 00 0C C5 D1 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]OFD Sender: No OFD packet to send [17:58:50]*** Cut start [17:58:50]*** Partial cut [17:58:50]*** CUTSNS_PIN = 1 [17:58:50]*** CUTSNS_PIN = 0 [17:58:50]*** Brake cut motor [17:58:50]Read from MH i2c: 01 [17:58:50]MH_I2C_Read... [17:58:50]*** Stop cut motor [17:58:50]*** Cut end [17:58:50]Read from MH i2c: 01 07 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 0C C5 00 00 00 00 00 FF 0F E6 [17:58:50]process_action close_receipt done [17:58:50]requested_data is exist [17:58:50]produce_requested_data [17:58:50]requested_item fm.sn is exist - process it [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 11 00 00 [17:58:50]Write to MH i2c: E2 08 00 0D C5 80 11 00 00 00 00 00 00 4C [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 0D C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [17:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:50]wFMCommunicate OK [17:58:50]requested_item fd.num is exist - process it [17:58:50]SAM_PROTO_GetFieldsCounters [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 00 00 [17:58:50]Write to MH i2c: E2 08 00 0E C5 80 13 00 00 00 00 00 00 4F [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 62 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 62 00 0E C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:58:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_GetFieldsCounters done [17:58:51]requested_item shift.num is exist - process it [17:58:51]requested_item shift.opened is exist - process it [17:58:51]req_shift_opened [17:58:51]FM_GetShiftState [17:58:51]SAM_PROTO_GetShiftState [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 13 01 00 [17:58:51]Write to MH i2c: E2 08 00 0F C5 80 13 01 00 00 00 00 00 51 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0E 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0E 00 0F C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 14 [17:58:51]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_GetShiftState done [17:58:51]FM_GetShiftState done [17:58:51]req_shift_opened done [17:58:51]requested_item shift.open_date is exist - process it [17:58:51]req_shift_open_date [17:58:51]req_shift_open_date done [17:58:51]produce_requested_data done [17:58:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191562,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [17:58:51]process_action_free close_receipt [17:58:51]json_value_free [17:58:51]json_value_free done [17:58:51]process_json_proto returns [17:58:51]Send response to host [17:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191562,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [17:58:51]free response buf [17:58:51]execute_script done [17:58:51]execute_script returns [17:58:51]free content buf [17:58:51]Sock 9.Close socket [17:58:51]Sock 9.Thread stoped [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:02]accept exits with 8 [18:00:02]New connection [18:00:02]New thread 3066817892 created [18:00:02]Thread 3066961252 joined [18:00:02]Waiting for new connection... [18:00:02] Sock 8.Parse request [18:00:02]Sock 8.Check first char [18:00:02]Sock 8.First char is OK [18:00:02]request: POST /json_proto HTTP/1.0 [18:00:02]Method: POST [18:00:02]URL: /json_proto [18:00:02]Method is POST - this is cgi request [18:00:02]url: /json_proto [18:00:02]query_string will be loaded in cgi processing [18:00:02]execute_cgi json_proto POST (null) [18:00:02]execute_cgi path=json_proto method=POST [18:00:02]POST find Content-Length [18:00:02]Host: 172.17.63.131:8080 [18:00:02]Content-Length: 676 [18:00:02]Content-Type: application/json [18:00:02] [18:00:02]POST finish read [18:00:02]Found Content-Length = 676 [18:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:02]execute_script... [18:00: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)30863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:02]POST & json_proto [18:00:02]process_json_proto [18:00:02]json parsed OK: [18:00:02]protocol is kg_v1.0 [18:00:02]action value=close_receipt [18:00:02]process_action close_receipt [18:00:02]cmd_close_receipt [18:00:02]MH_GetDate [18:00:02]Write to MH i2c: F0 00 00 10 C5 C4 [18:00:02]Write i2c OK [18:00:02]MH_I2C_Read... [18:00:02]Read from MH i2c: F0 [18:00:02]MH_I2C_Read... [18:00:02]Read from MH i2c: F0 09 00 [18:00:02]MH_I2C_Read... [18:00:02]Read from MH i2c: F0 09 00 10 C5 00 AD DC 1B 67 22 05 6E 64 D1 [18:00:02]GetLastDocTimeStamp 1729879137 [18:00:02]current date 1729879213 [18:00:02]FM_GetShiftState [18:00:02]SAM_PROTO_GetShiftState [18:00:02]wFMCommunicate request_size=4 [18:00:02]MH_SAM_APDU [18:00:02]CAPDU: 80 13 01 00 [18:00:02]Write to MH i2c: E2 08 00 11 C5 80 13 01 00 00 00 00 00 53 [18:00:02]Write i2c OK [18:00:02]MH_I2C_Read... [18:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:02]Read from MH i2c: E2 [18:00:02]MH_I2C_Read... [18:00:02]Read from MH i2c: E2 0E 00 [18:00:02]MH_I2C_Read... [18:00:02]Read from MH i2c: E2 0E 00 11 C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 16 [18:00:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:00:02]wFMCommunicate OK [18:00:02]SAM_PROTO_GetShiftState done [18:00:02]FM_GetShiftState done [18:00:02]opened in 1729816399 [18:00:02]opened+sec_in_day 1729902799 [18:00:02]quantity*price = 30038 [18:00:02]sum+1 = 30039 [18:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 302 25.10.2024 18:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191563 ФПД: 171874202303992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191563&fm=171874202303992&tin=02508201610067®Number=0000000000091776&sum=30000 [18:00:04]StoreToDocumentArchive [18:00:04]shift 540 fd 191563 [18:00:04]save to /storage/0540/doc_00191563 [18:00:04]save last doc name /storage/0540/doc_00191563 to /storage/kkm_last_doc_name [18:00:04]save OK [18:00:04]Clear old archive folders... [18:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:04]tlvbuf is 017F13D0 [18:00:04]SAM_PROTO_ClearQueue [18:00:04]wFMCommunicate request_size=4 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 09 00 00 [18:00:04]Write to MH i2c: E2 08 00 1E C5 80 09 00 00 00 00 00 00 55 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 1E C5 00 90 00 57 [18:00:04]RAPDU: 90 00 [18:00:04]wFMCommunicate OK [18:00:04]SAM_PROTO_ClearQueue done [18:00:04]KKMCreateOFDPacket [18:00:04]OFDProtocolAddRootSTLVToBuf [18:00:04]FM_MakeSignedData [18:00:04]FM_MakeSignedData [18:00:04]SAM_PROTO_SignData [18:00:04]wFMCommunicate request_size=4 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 0D 01 02 [18:00:04]Write to MH i2c: E2 08 00 1F C5 80 0D 01 02 00 00 00 00 5D [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 1F C5 00 90 00 58 [18:00:04]RAPDU: 90 00 [18:00:04]wFMCommunicate OK [18:00:04]wFMCommunicate request_size=255 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AD DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EC 02 00 35 04 06 00 9C [18:00:04]Write to MH i2c: E2 02 01 20 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AD DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EC 02 00 35 04 06 00 9C 00 00 12 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 20 C5 00 90 00 59 [18:00:04]RAPDU: 90 00 [18:00:04]wFMCommunicate OK [18:00:04]wFMCommunicate request_size=10 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 0D 02 02 05 51 94 C6 3D F8 [18:00:04]Write to MH i2c: E2 0D 00 21 C5 80 0D 02 02 05 00 51 94 C6 3D F8 00 00 4A [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 03 00 21 C5 00 90 00 5A [18:00:04]RAPDU: 90 00 [18:00:04]wFMCommunicate OK [18:00:04]wFMCommunicate request_size=4 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 0D 03 02 [18:00:04]Write to MH i2c: E2 08 00 22 C5 80 0D 03 02 00 00 00 00 62 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 0B 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 0B 00 22 C5 00 AC D6 92 C6 E6 C2 6B 34 90 00 84 [18:00:04]RAPDU: AC D6 92 C6 E6 C2 6B 34 90 00 [18:00:04]wFMCommunicate OK [18:00:04]SAM_PROTO_SignData done [18:00:04]FM_MakeSignedData done [18:00:04]CreateOFDProtocolMessage [18:00:04]wFMCommunicate request_size=4 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 11 00 00 [18:00:04]Write to MH i2c: E2 08 00 23 C5 80 11 00 00 00 00 00 00 62 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 17 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 17 00 23 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [18:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:04]wFMCommunicate OK [18:00:04]CreateOFDProtocolMessage done [18:00:04]OFDSenderStorePacket 191563 [18:00:04]StoreOFDPacket docnum=191563 [18:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 1E 07 01 94 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AD DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EC 02 00 35 04 06 00 9C 51 94 C6 3D F8 AC D6 92 C6 E6 C2 6B 34 [18:00:04]CheckFolder [18:00:04]dirname=/storage/ofd_packets [18:00:04]CheckFolder done [18:00:04]ProducePacketName [18:00:04]name=ofd_packets/00191563 [18:00:04]NVStorageSaveData ofd_packets/00191563 [18:00:04]File name is /storage/ofd_packets/00191563 [18:00:04]Write 301 bytes [18:00:04]NVStorageSaveData done [18:00:04]OFDSenderStorePacket done [18:00:04]KKMCreateOFDPacket done [18:00:04]NVStorageSaveData kkm_last_timestamp [18:00:04]File name is /storage/kkm_last_timestamp [18:00:04]Write 4 bytes [18:00:04]NVStorageSaveData done [18:00:04]ExternCall_PrintAddStr [18:00:04]wPrintStart [18:00:04]Write to MH i2c: 01 00 00 24 C5 E9 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: 01 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: 01 07 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: 01 07 00 24 C5 00 00 00 00 00 FF 0F FE [18:00:04]RasterBufferAndPrint [18:00:04]line Счет N : (1)30863 [18:00:04]line ИНН: 02508201610067 [18:00:04]line Контрольно-Кассовый Чек [18:00:04]line ПРОДАЖА [18:00:04]line ТРК (МРК, ГНК) : 21 [18:00:04]line Товар: 2710124130 [18:00:04]line Аи-92-К-5 [18:00:04]line 4.490 * 66.90 [18:00:04]line = 300.38 [18:00:04]line НДС 12% НСП 1% [18:00:04]line > о реализуемом товаре [18:00:04]line ОКРУГЛЕНИЕ: -0.38 [18:00:04]line ИТОГО: 300.00 [18:00:04]line Внесено: 300.00 [18:00:04]line СДАЧА: 0.00 [18:00:04]line НСП 1% : 2.66 [18:00:04]line НДС 12% : 31.90 [18:00:04]line Наличными: 300.00 [18:00:04]line Безнал.: 0.00 [18:00:04]line Место: АЗС № 170 "Партнер Нефть" [18:00:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:00:04]line СНО: Общий режим [18:00:04]line Чек 302 25.10.2024 18:00 [18:00:04]line Смена: 540 ФФД: 1.0 [18:00:04]line ЗНМ: 0300000110 [18:00:04]line РНМ: 0000000000091776 [18:00:04]line Версия ККМ: 001 [18:00:04]line ФМ: 0000000000871754 [18:00:04]line ФД: 191563 [18:00:04]line ФПД: 171874202303992 [18:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191563&fm=171874202303992&tin=02508201610067®Number=0000000000091776&sum=30000 [18:00:04]OFD Sender: Processing packet 191563 [packets to send 75, broken 74] [18:00:04]ProducePacketName [18:00:04]name=ofd_packets/00191563 [18:00:04]OFD Sender: To server: pG, [18:00:04]CommunicateWithHost lk.salyk.kg:30040 [18:00:04]ConnectInit lk.salyk.kg [18:00:04]written 0, free lines is 4095 [18:00:05]Connected sock=10 [18:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 1E 07 01 94 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AD DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EC 02 00 35 04 06 00 9C 51 94 C6 3D F8 AC D6 92 C6 E6 C2 6B 34 [18:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 BA 47 00 62 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EC 02 00 F4 03 04 00 7B 81 1B 67 B6 04 01 00 00 9A 74 DA 20 60 C7 90 C5 [18:00:05]CommunicateWithHost err = 0 [18:00:05]CheckOFDResponse [18:00:05]1017 (14) - 77093643461234 [18:00:05]1041 (16) - 0000000000871754 [18:00:05]1040 (4) - 191563 [18:00:05]1012 (4) - 25.10.2024 11:31 [18:00:05]1206 (1) - 0 [18:00:05]OFD Sender: Remove packet 191563 [18:00:05]ProducePacketName [18:00:05]name=ofd_packets/00191563 [18:00:05]NVStorageDeleteData [18:00:05]Write to MH i2c: 01 00 00 4F C5 14 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 07 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 07 00 4F C5 00 00 00 00 00 B5 0C DC [18:00:05]RasterBufferAndPrint [18:00:05]line [18:00:05]line [18:00:05]line [18:00:05]line [18:00:05]line [18:00:05]written 0, free lines is 3259 [18:00:05]MH_Cut [18:00:05]Write to MH i2c: D1 01 00 56 C5 01 ED [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: D1 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: D1 01 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: D1 01 00 56 C5 00 EC [18:00:05]Write to MH i2c: 01 00 00 57 C5 1C [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]OFD Sender: No OFD packet to send [18:00:06]*** Cut start [18:00:06]*** Partial cut [18:00:06]*** CUTSNS_PIN = 1 [18:00:06]*** CUTSNS_PIN = 0 [18:00:06]*** Brake cut motor [18:00:06]Read from MH i2c: 01 [18:00:06]MH_I2C_Read... [18:00:06]*** Stop cut motor [18:00:06]*** Cut end [18:00:06]Read from MH i2c: 01 07 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 07 00 57 C5 00 00 00 00 00 FF 0F 31 [18:00:06]process_action close_receipt done [18:00:06]requested_data is exist [18:00:06]produce_requested_data [18:00:06]requested_item fm.sn is exist - process it [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 11 00 00 [18:00:06]Write to MH i2c: E2 08 00 58 C5 80 11 00 00 00 00 00 00 97 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 17 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 17 00 58 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [18:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:06]wFMCommunicate OK [18:00:06]requested_item fd.num is exist - process it [18:00:06]SAM_PROTO_GetFieldsCounters [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 13 00 00 [18:00:06]Write to MH i2c: E2 08 00 59 C5 80 13 00 00 00 00 00 00 9A [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:07]Read from MH i2c: E2 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 62 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 62 00 59 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [18:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:07]wFMCommunicate OK [18:00:07]SAM_PROTO_GetFieldsCounters done [18:00:07]requested_item shift.num is exist - process it [18:00:07]requested_item shift.opened is exist - process it [18:00:07]req_shift_opened [18:00:07]FM_GetShiftState [18:00:07]SAM_PROTO_GetShiftState [18:00:07]wFMCommunicate request_size=4 [18:00:07]MH_SAM_APDU [18:00:07]CAPDU: 80 13 01 00 [18:00:07]Write to MH i2c: E2 08 00 5A C5 80 13 01 00 00 00 00 00 9C [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:07]Read from MH i2c: E2 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 0E 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 0E 00 5A C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5F [18:00:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:00:07]wFMCommunicate OK [18:00:07]SAM_PROTO_GetShiftState done [18:00:07]FM_GetShiftState done [18:00:07]req_shift_opened done [18:00:07]requested_item shift.open_date is exist - process it [18:00:07]req_shift_open_date [18:00:07]req_shift_open_date done [18:00:07]produce_requested_data done [18:00:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191563,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:00:07]process_action_free close_receipt [18:00:07]json_value_free [18:00:07]json_value_free done [18:00:07]process_json_proto returns [18:00:07]Send response to host [18:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191563,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:00:07]free response buf [18:00:07]execute_script done [18:00:07]execute_script returns [18:00:07]free content buf [18:00:07]Sock 8.Close socket [18:00:07]Sock 8.Thread stoped [18:00:07]accept exits with 9 [18:00:07]New connection [18:00:07]New thread 3066961252 created [18:00:07]Thread 3066817892 joined [18:00:07]Waiting for new connection... [18:00:07] Sock 9.Parse request [18:00:07]Sock 9.Check first char [18:00:07]Sock 9.First char is OK [18:00:07]request: POST /json_proto HTTP/1.0 [18:00:07]Method: POST [18:00:07]URL: /json_proto [18:00:07]Method is POST - this is cgi request [18:00:07]url: /json_proto [18:00:07]query_string will be loaded in cgi processing [18:00:07]execute_cgi json_proto POST (null) [18:00:07]execute_cgi path=json_proto method=POST [18:00:07]POST find Content-Length [18:00:07]Host: 172.17.63.131:8080 [18:00:07]Content-Length: 678 [18:00:07]Content-Type: application/json [18:00:07] [18:00:07]POST finish read [18:00:07]Found Content-Length = 678 [18:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:07]execute_script... [18:00: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)30862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:07]POST & json_proto [18:00:07]process_json_proto [18:00:07]json parsed OK: [18:00:07]protocol is kg_v1.0 [18:00:07]action value=close_receipt [18:00:07]process_action close_receipt [18:00:07]cmd_close_receipt [18:00:07]MH_GetDate [18:00:07]Write to MH i2c: F0 00 00 5B C5 0F [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: F0 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: F0 09 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: F0 09 00 5B C5 00 B1 DC 1B 67 22 05 6E 64 20 [18:00:07]GetLastDocTimeStamp 1729879213 [18:00:07]current date 1729879217 [18:00:07]FM_GetShiftState [18:00:07]SAM_PROTO_GetShiftState [18:00:07]wFMCommunicate request_size=4 [18:00:07]MH_SAM_APDU [18:00:07]CAPDU: 80 13 01 00 [18:00:07]Write to MH i2c: E2 08 00 5C C5 80 13 01 00 00 00 00 00 9E [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 [18:00:07]MH_I2C_Read... [18:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:07]Read from MH i2c: E2 0E 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 0E 00 5C C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 61 [18:00:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:00:07]wFMCommunicate OK [18:00:07]SAM_PROTO_GetShiftState done [18:00:07]FM_GetShiftState done [18:00:07]opened in 1729816399 [18:00:07]opened+sec_in_day 1729902799 [18:00:07]quantity*price = 200025 [18:00:07]sum+1 = 200026 [18:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 303 25.10.2024 18:00 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191564 ФПД: 90713134484224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191564&fm=90713134484224&tin=02508201610067®Number=0000000000091776&sum=200000 [18:00:09]StoreToDocumentArchive [18:00:09]shift 540 fd 191564 [18:00:09]save to /storage/0540/doc_00191564 [18:00:09]save last doc name /storage/0540/doc_00191564 to /storage/kkm_last_doc_name [18:00:09]save OK [18:00:09]Clear old archive folders... [18:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:00:09]tlvbuf is 019553E0 [18:00:09]SAM_PROTO_ClearQueue [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 09 00 00 [18:00:09]Write to MH i2c: E2 08 00 69 C5 80 09 00 00 00 00 00 00 A0 [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 69 C5 00 90 00 A2 [18:00:09]RAPDU: 90 00 [18:00:09]wFMCommunicate OK [18:00:09]SAM_PROTO_ClearQueue done [18:00:09]KKMCreateOFDPacket [18:00:09]OFDProtocolAddRootSTLVToBuf [18:00:09]FM_MakeSignedData [18:00:09]FM_MakeSignedData [18:00:09]SAM_PROTO_SignData [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 0D 01 02 [18:00:09]Write to MH i2c: E2 08 00 6A C5 80 0D 01 02 00 00 00 00 A8 [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 6A C5 00 90 00 A3 [18:00:09]RAPDU: 90 00 [18:00:09]wFMCommunicate OK [18:00:09]wFMCommunicate request_size=255 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 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 2F 01 00 00 F4 03 04 00 B1 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EC 02 00 35 04 06 00 52 80 CC 28 [18:00:09]Write to MH i2c: E2 02 01 6B C5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 B1 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EC 02 00 35 04 06 00 52 80 CC 28 00 00 7D [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 6B C5 00 90 00 A4 [18:00:09]RAPDU: 90 00 [18:00:09]wFMCommunicate OK [18:00:09]wFMCommunicate request_size=7 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 0D 02 02 02 4B 00 [18:00:09]Write to MH i2c: E2 0A 00 6C C5 80 0D 02 02 02 00 4B 00 00 00 FA [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 03 00 6C C5 00 90 00 A5 [18:00:09]RAPDU: 90 00 [18:00:09]wFMCommunicate OK [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 0D 03 02 [18:00:09]Write to MH i2c: E2 08 00 6D C5 80 0D 03 02 00 00 00 00 AD [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 0B 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 0B 00 6D C5 00 78 A7 18 D7 04 4B D6 94 90 00 75 [18:00:09]RAPDU: 78 A7 18 D7 04 4B D6 94 90 00 [18:00:09]wFMCommunicate OK [18:00:09]SAM_PROTO_SignData done [18:00:09]FM_MakeSignedData done [18:00:09]CreateOFDProtocolMessage [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 11 00 00 [18:00:09]Write to MH i2c: E2 08 00 6E C5 80 11 00 00 00 00 00 00 AD [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 17 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 17 00 6E C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [18:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:09]wFMCommunicate OK [18:00:09]CreateOFDProtocolMessage done [18:00:09]OFDSenderStorePacket 191564 [18:00:09]StoreOFDPacket docnum=191564 [18:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 31 EE 04 01 42 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2F 01 00 00 F4 03 04 00 B1 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EC 02 00 35 04 06 00 52 80 CC 28 4B 00 78 A7 18 D7 04 4B D6 94 [18:00:09]CheckFolder [18:00:09]dirname=/storage/ofd_packets [18:00:09]CheckFolder done [18:00:09]ProducePacketName [18:00:09]name=ofd_packets/00191564 [18:00:09]NVStorageSaveData ofd_packets/00191564 [18:00:09]File name is /storage/ofd_packets/00191564 [18:00:09]Write 298 bytes [18:00:09]NVStorageSaveData done [18:00:09]OFDSenderStorePacket done [18:00:09]KKMCreateOFDPacket done [18:00:09]NVStorageSaveData kkm_last_timestamp [18:00:09]File name is /storage/kkm_last_timestamp [18:00:09]Write 4 bytes [18:00:09]NVStorageSaveData done [18:00:09]ExternCall_PrintAddStr [18:00:09]wPrintStart [18:00:09]Write to MH i2c: 01 00 00 6F C5 34 [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: 01 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: 01 07 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: 01 07 00 6F C5 00 00 00 00 00 FF 0F 49 [18:00:09]RasterBufferAndPrint [18:00:09]line Счет N : (1)30862 [18:00:09]line ИНН: 02508201610067 [18:00:09]line Контрольно-Кассовый Чек [18:00:09]line ПРОДАЖА [18:00:09]line ТРК (МРК, ГНК) : 11 [18:00:09]line Товар: 2710194210 [18:00:09]line ДТ-К-5 [18:00:09]line 26.250 * 76.20 [18:00:09]line = 2000.25 [18:00:09]line НДС 12% НСП 1% [18:00:09]line > о реализуемом товаре [18:00:09]line ОКРУГЛЕНИЕ: -0.25 [18:00:09]line ИТОГО: 2000.00 [18:00:09]line Внесено: 2000.00 [18:00:09]line СДАЧА: 0.00 [18:00:09]line НСП 1% : 17.70 [18:00:09]line НДС 12% : 212.42 [18:00:09]line Наличными: 2000.00 [18:00:09]line Безнал.: 0.00 [18:00:09]line Место: АЗС № 170 "Партнер Нефть" [18:00:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:00:09]line СНО: Общий режим [18:00:09]line Чек 303 25.10.2024 18:00 [18:00:09]line Смена: 540 ФФД: 1.0 [18:00:09]line ЗНМ: 0300000110 [18:00:09]line РНМ: 0000000000091776 [18:00:09]line Версия ККМ: 001 [18:00:09]line ФМ: 0000000000871754 [18:00:09]line ФД: 191564 [18:00:09]line ФПД: 90713134484224 [18:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191564&fm=90713134484224&tin=02508201610067®Number=0000000000091776&sum=200000 [18:00:09]written 0, free lines is 4095 [18:00:09]OFD Sender: Processing packet 191564 [packets to send 75, broken 74] [18:00:09]ProducePacketName [18:00:09]name=ofd_packets/00191564 [18:00:09]OFD Sender: To server: pG, [18:00:09]CommunicateWithHost lk.salyk.kg:30040 [18:00:09]ConnectInit lk.salyk.kg [18:00:09]Connected sock=10 [18:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 31 EE 04 01 42 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2F 01 00 00 F4 03 04 00 B1 DC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EC 02 00 35 04 06 00 52 80 CC 28 4B 00 78 A7 18 D7 04 4B D6 94 [18:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 D8 47 00 DD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EC 02 00 F4 03 04 00 7F 81 1B 67 B6 04 01 00 00 79 87 2A A6 F9 1F 54 23 [18:00:10]CommunicateWithHost err = 0 [18:00:10]CheckOFDResponse [18:00:10]1017 (14) - 77093643461234 [18:00:10]1041 (16) - 0000000000871754 [18:00:10]1040 (4) - 191564 [18:00:10]1012 (4) - 25.10.2024 11:31 [18:00:10]1206 (1) - 0 [18:00:10]OFD Sender: Remove packet 191564 [18:00:10]ProducePacketName [18:00:10]name=ofd_packets/00191564 [18:00:10]NVStorageDeleteData [18:00:10]Write to MH i2c: 01 00 00 9A C5 5F [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: 01 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: 01 07 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: 01 07 00 9A C5 00 00 00 00 00 CA 0C 3C [18:00:10]RasterBufferAndPrint [18:00:10]line [18:00:10]line [18:00:10]line [18:00:10]line [18:00:10]line [18:00:10]written 0, free lines is 3287 [18:00:10]MH_Cut [18:00:10]Write to MH i2c: D1 01 00 A1 C5 01 38 [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: D1 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: D1 01 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: D1 01 00 A1 C5 00 37 [18:00:10]Write to MH i2c: 01 00 00 A2 C5 67 [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]OFD Sender: No OFD packet to send [18:00:10]*** Cut start [18:00:10]*** Partial cut [18:00:10]*** CUTSNS_PIN = 1 [18:00:11]*** CUTSNS_PIN = 0 [18:00:11]*** Brake cut motor [18:00:11]Read from MH i2c: 01 [18:00:11]MH_I2C_Read... [18:00:11]*** Stop cut motor [18:00:11]*** Cut end [18:00:11]Read from MH i2c: 01 07 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: 01 07 00 A2 C5 00 00 00 00 00 FF 0F 7C [18:00:11]process_action close_receipt done [18:00:11]requested_data is exist [18:00:11]produce_requested_data [18:00:11]requested_item fm.sn is exist - process it [18:00:11]wFMCommunicate request_size=4 [18:00:11]MH_SAM_APDU [18:00:11]CAPDU: 80 11 00 00 [18:00:11]Write to MH i2c: E2 08 00 A3 C5 80 11 00 00 00 00 00 00 E2 [18:00:11]Write i2c OK [18:00:11]MH_I2C_Read... [18:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:11]Read from MH i2c: E2 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 17 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 17 00 A3 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [18:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:11]wFMCommunicate OK [18:00:11]requested_item fd.num is exist - process it [18:00:11]SAM_PROTO_GetFieldsCounters [18:00:11]wFMCommunicate request_size=4 [18:00:11]MH_SAM_APDU [18:00:11]CAPDU: 80 13 00 00 [18:00:11]Write to MH i2c: E2 08 00 A4 C5 80 13 00 00 00 00 00 00 E5 [18:00:11]Write i2c OK [18:00:11]MH_I2C_Read... [18:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:11]Read from MH i2c: E2 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 62 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 62 00 A4 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:11]wFMCommunicate OK [18:00:11]SAM_PROTO_GetFieldsCounters done [18:00:11]requested_item shift.num is exist - process it [18:00:11]requested_item shift.opened is exist - process it [18:00:11]req_shift_opened [18:00:11]FM_GetShiftState [18:00:11]SAM_PROTO_GetShiftState [18:00:11]wFMCommunicate request_size=4 [18:00:11]MH_SAM_APDU [18:00:11]CAPDU: 80 13 01 00 [18:00:11]Write to MH i2c: E2 08 00 A5 C5 80 13 01 00 00 00 00 00 E7 [18:00:11]Write i2c OK [18:00:11]MH_I2C_Read... [18:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:11]Read from MH i2c: E2 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 0E 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 0E 00 A5 C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AA [18:00:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:00:11]wFMCommunicate OK [18:00:11]SAM_PROTO_GetShiftState done [18:00:11]FM_GetShiftState done [18:00:11]req_shift_opened done [18:00:11]requested_item shift.open_date is exist - process it [18:00:11]req_shift_open_date [18:00:11]req_shift_open_date done [18:00:11]produce_requested_data done [18:00:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191564,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:00:11]process_action_free close_receipt [18:00:11]json_value_free [18:00:11]json_value_free done [18:00:11]process_json_proto returns [18:00:11]Send response to host [18:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191564,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:00:11]free response buf [18:00:11]execute_script done [18:00:11]execute_script returns [18:00:11]free content buf [18:00:11]Sock 9.Close socket [18:00:11]Sock 9.Thread stoped [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:52]accept exits with 8 [18:01:52]New connection [18:01:52]New thread 3066817892 created [18:01:52]Thread 3066961252 joined [18:01:52]Waiting for new connection... [18:01:52] Sock 8.Parse request [18:01:52]Sock 8.Check first char [18:01:52]Sock 8.First char is OK [18:01:52]request: POST /json_proto HTTP/1.0 [18:01:52]Method: POST [18:01:52]URL: /json_proto [18:01:52]Method is POST - this is cgi request [18:01:52]url: /json_proto [18:01:52]query_string will be loaded in cgi processing [18:01:52]execute_cgi json_proto POST (null) [18:01:52]execute_cgi path=json_proto method=POST [18:01:52]POST find Content-Length [18:01:52]Host: 172.17.63.131:8080 [18:01:52]Content-Length: 676 [18:01:52]Content-Type: application/json [18:01:52] [18:01:52]POST finish read [18:01:52]Found Content-Length = 676 [18:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:52]execute_script... [18:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:52]POST & json_proto [18:01:52]process_json_proto [18:01:52]json parsed OK: [18:01:52]protocol is kg_v1.0 [18:01:52]action value=close_receipt [18:01:52]process_action close_receipt [18:01:52]cmd_close_receipt [18:01:52]MH_GetDate [18:01:52]Write to MH i2c: F0 00 00 A6 C5 5A [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 A6 C5 00 1A DD 1B 67 22 05 6E 64 D5 [18:01:52]GetLastDocTimeStamp 1729879217 [18:01:52]current date 1729879322 [18:01:52]FM_GetShiftState [18:01:52]SAM_PROTO_GetShiftState [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 13 01 00 [18:01:52]Write to MH i2c: E2 08 00 A7 C5 80 13 01 00 00 00 00 00 E9 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 A7 C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AC [18:01:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_GetShiftState done [18:01:52]FM_GetShiftState done [18:01:52]opened in 1729816399 [18:01:52]opened+sec_in_day 1729902799 [18:01:52]quantity*price = 50041 [18:01:52]sum+1 = 50042 [18:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 304 25.10.2024 18:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191565 ФПД: 186266880880618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180202&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191565&fm=186266880880618&tin=02508201610067®Number=0000000000091776&sum=50000 [18:01:53]StoreToDocumentArchive [18:01:53]shift 540 fd 191565 [18:01:53]save to /storage/0540/doc_00191565 [18:01:53]save last doc name /storage/0540/doc_00191565 to /storage/kkm_last_doc_name [18:01:53]save OK [18:01:53]Clear old archive folders... [18:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:53]tlvbuf is 015D8740 [18:01:53]SAM_PROTO_ClearQueue [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 09 00 00 [18:01:53]Write to MH i2c: E2 08 00 B4 C5 80 09 00 00 00 00 00 00 EB [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 B4 C5 00 90 00 ED [18:01:53]RAPDU: 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_ClearQueue done [18:01:53]KKMCreateOFDPacket [18:01:53]OFDProtocolAddRootSTLVToBuf [18:01:53]FM_MakeSignedData [18:01:53]FM_MakeSignedData [18:01:53]SAM_PROTO_SignData [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 0D 01 02 [18:01:53]Write to MH i2c: E2 08 00 B5 C5 80 0D 01 02 00 00 00 00 F3 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 B5 C5 00 90 00 EE [18:01:53]RAPDU: 90 00 [18:01:53]wFMCommunicate OK [18:01:53]wFMCommunicate request_size=255 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 1A DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EC 02 00 35 04 06 00 A9 [18:01:53]Write to MH i2c: E2 02 01 B6 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 1A DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EC 02 00 35 04 06 00 A9 00 00 33 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 B6 C5 00 90 00 EF [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=10 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 05 68 A3 44 AF EA [18:01:54]Write to MH i2c: E2 0D 00 B7 C5 80 0D 02 02 05 00 68 A3 44 AF EA 00 00 E8 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 B7 C5 00 90 00 F0 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 03 02 [18:01:54]Write to MH i2c: E2 08 00 B8 C5 80 0D 03 02 00 00 00 00 F8 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 B8 C5 00 EB 27 83 6E FF FD B2 BC 90 00 66 [18:01:54]RAPDU: EB 27 83 6E FF FD B2 BC 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_SignData done [18:01:54]FM_MakeSignedData done [18:01:54]CreateOFDProtocolMessage [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 B9 C5 80 11 00 00 00 00 00 00 F8 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 B9 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [18:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:01:54]wFMCommunicate OK [18:01:54]CreateOFDProtocolMessage done [18:01:54]OFDSenderStorePacket 191565 [18:01:54]StoreOFDPacket docnum=191565 [18:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 71 07 01 0E B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 1A DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EC 02 00 35 04 06 00 A9 68 A3 44 AF EA EB 27 83 6E FF FD B2 BC [18:01:54]CheckFolder [18:01:54]dirname=/storage/ofd_packets [18:01:54]CheckFolder done [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00191565 [18:01:54]NVStorageSaveData ofd_packets/00191565 [18:01:54]File name is /storage/ofd_packets/00191565 [18:01:54]Write 301 bytes [18:01:54]NVStorageSaveData done [18:01:54]OFDSenderStorePacket done [18:01:54]KKMCreateOFDPacket done [18:01:54]NVStorageSaveData kkm_last_timestamp [18:01:54]File name is /storage/kkm_last_timestamp [18:01:54]Write 4 bytes [18:01:54]NVStorageSaveData done [18:01:54]ExternCall_PrintAddStr [18:01:54]wPrintStart [18:01:54]Write to MH i2c: 01 00 00 BA C5 7F [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 BA C5 00 00 00 00 00 FF 0F 94 [18:01:54]RasterBufferAndPrint [18:01:54]line Счет N : (1)30864 [18:01:54]line ИНН: 02508201610067 [18:01:54]line Контрольно-Кассовый Чек [18:01:54]line ПРОДАЖА [18:01:54]line ТРК (МРК, ГНК) : 12 [18:01:54]line Товар: 2710124130 [18:01:54]line Аи-92-К-5 [18:01:54]line 7.480 * 66.90 [18:01:54]line = 500.41 [18:01:54]line НДС 12% НСП 1% [18:01:54]line > о реализуемом товаре [18:01:54]line ОКРУГЛЕНИЕ: -0.41 [18:01:54]line ИТОГО: 500.00 [18:01:54]line Внесено: 500.00 [18:01:54]line СДАЧА: 0.00 [18:01:54]line НСП 1% : 4.43 [18:01:54]line НДС 12% : 53.14 [18:01:54]line Наличными: 500.00 [18:01:54]line Безнал.: 0.00 [18:01:54]line Место: АЗС № 170 "Партнер Нефть" [18:01:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:01:54]line СНО: Общий режим [18:01:54]line Чек 304 25.10.2024 18:02 [18:01:54]line Смена: 540 ФФД: 1.0 [18:01:54]line ЗНМ: 0300000110 [18:01:54]line РНМ: 0000000000091776 [18:01:54]line Версия ККМ: 001 [18:01:54]line ФМ: 0000000000871754 [18:01:54]line ФД: 191565 [18:01:54]line ФПД: 186266880880618 [18:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180202&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191565&fm=186266880880618&tin=02508201610067®Number=0000000000091776&sum=50000 [18:01:54]OFD Sender: Processing packet 191565 [packets to send 75, broken 74] [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00191565 [18:01:54]OFD Sender: To server: pG, [18:01:54]CommunicateWithHost lk.salyk.kg:30040 [18:01:54]ConnectInit lk.salyk.kg [18:01:54]written 0, free lines is 4095 [18:01:54]Connected sock=10 [18:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 71 07 01 0E B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 1A DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EC 02 00 35 04 06 00 A9 68 A3 44 AF EA EB 27 83 6E FF FD B2 BC [18:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 ED 47 00 E1 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EC 02 00 F4 03 04 00 E8 81 1B 67 B6 04 01 00 00 05 5D 4F 45 B9 65 9C 93 [18:01:54]CommunicateWithHost err = 0 [18:01:54]CheckOFDResponse [18:01:54]1017 (14) - 77093643461234 [18:01:54]1041 (16) - 0000000000871754 [18:01:54]1040 (4) - 191565 [18:01:54]1012 (4) - 25.10.2024 11:32 [18:01:54]1206 (1) - 0 [18:01:54]OFD Sender: Remove packet 191565 [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00191565 [18:01:54]NVStorageDeleteData [18:01:55]Write to MH i2c: 01 00 00 E5 C5 AA [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 E5 C5 00 00 00 00 00 BB 0C 78 [18:01:55]RasterBufferAndPrint [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]written 0, free lines is 3266 [18:01:55]MH_Cut [18:01:55]Write to MH i2c: D1 01 00 EC C5 01 83 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 EC C5 00 82 [18:01:55]Write to MH i2c: 01 00 00 ED C5 B2 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]OFD Sender: No OFD packet to send [18:01:55]*** Cut start [18:01:55]*** Partial cut [18:01:55]*** CUTSNS_PIN = 1 [18:01:55]*** CUTSNS_PIN = 0 [18:01:56]*** Brake cut motor [18:01:56]Read from MH i2c: 01 [18:01:56]MH_I2C_Read... [18:01:56]*** Stop cut motor [18:01:56]*** Cut end [18:01:56]Read from MH i2c: 01 07 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: 01 07 00 ED C5 00 00 00 00 00 FF 0F C7 [18:01:56]process_action close_receipt done [18:01:56]requested_data is exist [18:01:56]produce_requested_data [18:01:56]requested_item fm.sn is exist - process it [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 11 00 00 [18:01:56]Write to MH i2c: E2 08 00 EE C5 80 11 00 00 00 00 00 00 2D [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 EE C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [18:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:01:56]wFMCommunicate OK [18:01:56]requested_item fd.num is exist - process it [18:01:56]SAM_PROTO_GetFieldsCounters [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 00 00 [18:01:56]Write to MH i2c: E2 08 00 EF C5 80 13 00 00 00 00 00 00 30 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 EF C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [18:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetFieldsCounters done [18:01:56]requested_item shift.num is exist - process it [18:01:56]requested_item shift.opened is exist - process it [18:01:56]req_shift_opened [18:01:56]FM_GetShiftState [18:01:56]SAM_PROTO_GetShiftState [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 01 00 [18:01:56]Write to MH i2c: E2 08 00 F0 C5 80 13 01 00 00 00 00 00 32 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 F0 C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F5 [18:01:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetShiftState done [18:01:56]FM_GetShiftState done [18:01:56]req_shift_opened done [18:01:56]requested_item shift.open_date is exist - process it [18:01:56]req_shift_open_date [18:01:56]req_shift_open_date done [18:01:56]produce_requested_data done [18:01:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191565,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:01:56]process_action_free close_receipt [18:01:56]json_value_free [18:01:56]json_value_free done [18:01:56]process_json_proto returns [18:01:56]Send response to host [18:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191565,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:01:56]free response buf [18:01:56]execute_script done [18:01:56]execute_script returns [18:01:56]free content buf [18:01:56]Sock 8.Close socket [18:01:56]Sock 8.Thread stoped [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:02]accept exits with 9 [18:03:02]New connection [18:03:02]New thread 3066961252 created [18:03:02]Thread 3066817892 joined [18:03:02]Waiting for new connection... [18:03:02] Sock 9.Parse request [18:03:02]Sock 9.Check first char [18:03:02]Sock 9.First char is OK [18:03:02]request: POST /json_proto HTTP/1.0 [18:03:02]Method: POST [18:03:02]URL: /json_proto [18:03:02]Method is POST - this is cgi request [18:03:02]url: /json_proto [18:03:02]query_string will be loaded in cgi processing [18:03:02]execute_cgi json_proto POST (null) [18:03:02]execute_cgi path=json_proto method=POST [18:03:02]POST find Content-Length [18:03:02]Host: 172.17.63.131:8080 [18:03:02]Content-Length: 676 [18:03:02]Content-Type: application/json [18:03:02] [18:03:02]POST finish read [18:03:02]Found Content-Length = 676 [18:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:02]execute_script... [18:03: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)30865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:02]POST & json_proto [18:03:02]process_json_proto [18:03:02]json parsed OK: [18:03:02]protocol is kg_v1.0 [18:03:02]action value=close_receipt [18:03:02]process_action close_receipt [18:03:02]cmd_close_receipt [18:03:02]MH_GetDate [18:03:02]Write to MH i2c: F0 00 00 F1 C5 A5 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 F1 C5 00 60 DD 1B 67 22 05 6E 64 66 [18:03:02]GetLastDocTimeStamp 1729879322 [18:03:02]current date 1729879392 [18:03:02]FM_GetShiftState [18:03:02]SAM_PROTO_GetShiftState [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 01 00 [18:03:02]Write to MH i2c: E2 08 00 F2 C5 80 13 01 00 00 00 00 00 34 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 F2 C5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F7 [18:03:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_GetShiftState done [18:03:02]FM_GetShiftState done [18:03:02]opened in 1729816399 [18:03:02]opened+sec_in_day 1729902799 [18:03:02]quantity*price = 40006 [18:03:02]sum+1 = 40007 [18:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 305 25.10.2024 18:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191566 ФПД: 38743682950947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191566&fm=38743682950947&tin=02508201610067®Number=0000000000091776&sum=40000 [18:03:03]StoreToDocumentArchive [18:03:03]shift 540 fd 191566 [18:03:03]save to /storage/0540/doc_00191566 [18:03:03]save last doc name /storage/0540/doc_00191566 to /storage/kkm_last_doc_name [18:03:03]save OK [18:03:03]Clear old archive folders... [18:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:03]tlvbuf is 0183C470 [18:03:03]SAM_PROTO_ClearQueue [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 09 00 00 [18:03:03]Write to MH i2c: E2 08 00 FF C5 80 09 00 00 00 00 00 00 36 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 FF C5 00 90 00 38 [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_ClearQueue done [18:03:03]KKMCreateOFDPacket [18:03:03]OFDProtocolAddRootSTLVToBuf [18:03:03]FM_MakeSignedData [18:03:03]FM_MakeSignedData [18:03:03]SAM_PROTO_SignData [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 01 02 [18:03:03]Write to MH i2c: E2 08 00 00 C6 80 0D 01 02 00 00 00 00 3F [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 00 C6 00 90 00 3A [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]wFMCommunicate request_size=255 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 60 DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EC 02 00 35 04 06 00 23 [18:03:03]Write to MH i2c: E2 02 01 01 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 60 DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EC 02 00 35 04 06 00 23 00 00 10 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 01 C6 00 90 00 3B [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=10 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 02 02 05 3C B7 75 A7 23 [18:03:04]Write to MH i2c: E2 0D 00 02 C6 80 0D 02 02 05 00 3C B7 75 A7 23 00 00 7E [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 02 C6 00 90 00 3C [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 03 02 [18:03:04]Write to MH i2c: E2 08 00 03 C6 80 0D 03 02 00 00 00 00 44 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 03 C6 00 4C 5C 7E 98 ED 56 A5 57 90 00 42 [18:03:04]RAPDU: 4C 5C 7E 98 ED 56 A5 57 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_SignData done [18:03:04]FM_MakeSignedData done [18:03:04]CreateOFDProtocolMessage [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 11 00 00 [18:03:04]Write to MH i2c: E2 08 00 04 C6 80 11 00 00 00 00 00 00 44 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 04 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [18:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:04]wFMCommunicate OK [18:03:04]CreateOFDProtocolMessage done [18:03:04]OFDSenderStorePacket 191566 [18:03:04]StoreOFDPacket docnum=191566 [18:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 AD 07 01 55 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 60 DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EC 02 00 35 04 06 00 23 3C B7 75 A7 23 4C 5C 7E 98 ED 56 A5 57 [18:03:04]CheckFolder [18:03:04]dirname=/storage/ofd_packets [18:03:04]CheckFolder done [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00191566 [18:03:04]NVStorageSaveData ofd_packets/00191566 [18:03:04]File name is /storage/ofd_packets/00191566 [18:03:04]Write 301 bytes [18:03:04]NVStorageSaveData done [18:03:04]OFDSenderStorePacket done [18:03:04]KKMCreateOFDPacket done [18:03:04]NVStorageSaveData kkm_last_timestamp [18:03:04]File name is /storage/kkm_last_timestamp [18:03:04]Write 4 bytes [18:03:04]NVStorageSaveData done [18:03:04]ExternCall_PrintAddStr [18:03:04]wPrintStart [18:03:04]Write to MH i2c: 01 00 00 05 C6 CB [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 05 C6 00 00 00 00 00 FF 0F E0 [18:03:04]RasterBufferAndPrint [18:03:04]line Счет N : (1)30865 [18:03:04]line ИНН: 02508201610067 [18:03:04]line Контрольно-Кассовый Чек [18:03:04]line ПРОДАЖА [18:03:04]line ТРК (МРК, ГНК) : 12 [18:03:04]line Товар: 2710124130 [18:03:04]line Аи-92-К-5 [18:03:04]line 5.980 * 66.90 [18:03:04]line = 400.06 [18:03:04]line НДС 12% НСП 1% [18:03:04]line > о реализуемом товаре [18:03:04]line ОКРУГЛЕНИЕ: -0.06 [18:03:04]line ИТОГО: 400.00 [18:03:04]line Внесено: 400.00 [18:03:04]line СДАЧА: 0.00 [18:03:04]line НСП 1% : 3.54 [18:03:04]line НДС 12% : 42.48 [18:03:04]line Наличными: 400.00 [18:03:04]line Безнал.: 0.00 [18:03:04]line Место: АЗС № 170 "Партнер Нефть" [18:03:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:03:04]line СНО: Общий режим [18:03:04]line Чек 305 25.10.2024 18:03 [18:03:04]line Смена: 540 ФФД: 1.0 [18:03:04]line ЗНМ: 0300000110 [18:03:04]line РНМ: 0000000000091776 [18:03:04]line Версия ККМ: 001 [18:03:04]line ФМ: 0000000000871754 [18:03:04]line ФД: 191566 [18:03:04]line ФПД: 38743682950947 [18:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191566&fm=38743682950947&tin=02508201610067®Number=0000000000091776&sum=40000 [18:03:04]OFD Sender: Processing packet 191566 [packets to send 75, broken 74] [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00191566 [18:03:04]OFD Sender: To server: pG, [18:03:04]CommunicateWithHost lk.salyk.kg:30040 [18:03:04]ConnectInit lk.salyk.kg [18:03:04]written 0, free lines is 4095 [18:03:04]Connected sock=10 [18:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 AD 07 01 55 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 60 DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EC 02 00 35 04 06 00 23 3C B7 75 A7 23 4C 5C 7E 98 ED 56 A5 57 [18:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EF 87 47 00 7F 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 31 37 35 34 10 04 04 00 4E EC 02 00 F4 03 04 00 2E 82 1B 67 B6 04 01 00 00 CA 51 12 36 2C 95 CF C6 [18:03:05]CommunicateWithHost err = 0 [18:03:05]CheckOFDResponse [18:03:05]1017 (14) - 77093643461234 [18:03:05]1041 (16) - 0000000000871754 [18:03:05]1040 (4) - 191566 [18:03:05]1012 (4) - 25.10.2024 11:34 [18:03:05]1206 (1) - 0 [18:03:05]OFD Sender: Remove packet 191566 [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00191566 [18:03:05]NVStorageDeleteData [18:03:05]Write to MH i2c: 01 00 00 30 C6 F6 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 30 C6 00 00 00 00 00 BC 0C C5 [18:03:05]RasterBufferAndPrint [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]written 0, free lines is 3267 [18:03:05]MH_Cut [18:03:05]Write to MH i2c: D1 01 00 37 C6 01 CF [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 37 C6 00 CE [18:03:05]Write to MH i2c: 01 00 00 38 C6 FE [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]OFD Sender: No OFD packet to send [18:03:05]*** Cut start [18:03:05]*** Partial cut [18:03:05]*** CUTSNS_PIN = 1 [18:03:06]*** CUTSNS_PIN = 0 [18:03:06]*** Brake cut motor [18:03:06]Read from MH i2c: 01 [18:03:06]MH_I2C_Read... [18:03:06]*** Stop cut motor [18:03:06]*** Cut end [18:03:06]Read from MH i2c: 01 07 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 38 C6 00 00 00 00 00 FF 0F 13 [18:03:06]process_action close_receipt done [18:03:06]requested_data is exist [18:03:06]produce_requested_data [18:03:06]requested_item fm.sn is exist - process it [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 11 00 00 [18:03:06]Write to MH i2c: E2 08 00 39 C6 80 11 00 00 00 00 00 00 79 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 39 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [18:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:06]wFMCommunicate OK [18:03:06]requested_item fd.num is exist - process it [18:03:06]SAM_PROTO_GetFieldsCounters [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 00 00 [18:03:06]Write to MH i2c: E2 08 00 3A C6 80 13 00 00 00 00 00 00 7C [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 62 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 62 00 3A C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_GetFieldsCounters done [18:03:06]requested_item shift.num is exist - process it [18:03:06]requested_item shift.opened is exist - process it [18:03:06]req_shift_opened [18:03:06]FM_GetShiftState [18:03:06]SAM_PROTO_GetShiftState [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 01 00 [18:03:06]Write to MH i2c: E2 08 00 3B C6 80 13 01 00 00 00 00 00 7E [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 3B C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 41 [18:03:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_GetShiftState done [18:03:06]FM_GetShiftState done [18:03:06]req_shift_opened done [18:03:06]requested_item shift.open_date is exist - process it [18:03:06]req_shift_open_date [18:03:06]req_shift_open_date done [18:03:06]produce_requested_data done [18:03:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191566,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:03:06]process_action_free close_receipt [18:03:06]json_value_free [18:03:06]json_value_free done [18:03:06]process_json_proto returns [18:03:06]Send response to host [18:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191566,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:03:06]free response buf [18:03:06]execute_script done [18:03:06]execute_script returns [18:03:06]free content buf [18:03:06]Sock 9.Close socket [18:03:06]Sock 9.Thread stoped [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:46]accept exits with 8 [18:03:46]New connection [18:03:46]New thread 3066817892 created [18:03:46]Thread 3066961252 joined [18:03:46]Waiting for new connection... [18:03:46] Sock 8.Parse request [18:03:46]Sock 8.Check first char [18:03:46]Sock 8.First char is OK [18:03:46]request: POST /json_proto HTTP/1.0 [18:03:46]Method: POST [18:03:46]URL: /json_proto [18:03:46]Method is POST - this is cgi request [18:03:46]url: /json_proto [18:03:46]query_string will be loaded in cgi processing [18:03:46]execute_cgi json_proto POST (null) [18:03:46]execute_cgi path=json_proto method=POST [18:03:46]POST find Content-Length [18:03:46]Host: 172.17.63.131:8080 [18:03:46]Content-Length: 676 [18:03:46]Content-Type: application/json [18:03:46] [18:03:46]POST finish read [18:03:46]Found Content-Length = 676 [18:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:46]execute_script... [18:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:46]POST & json_proto [18:03:46]process_json_proto [18:03:46]json parsed OK: [18:03:46]protocol is kg_v1.0 [18:03:46]action value=close_receipt [18:03:46]process_action close_receipt [18:03:46]cmd_close_receipt [18:03:46]MH_GetDate [18:03:46]Write to MH i2c: F0 00 00 3C C6 F1 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 09 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 09 00 3C C6 00 8C DD 1B 67 22 05 6E 64 DE [18:03:46]GetLastDocTimeStamp 1729879392 [18:03:46]current date 1729879436 [18:03:46]FM_GetShiftState [18:03:46]SAM_PROTO_GetShiftState [18:03:46]wFMCommunicate request_size=4 [18:03:46]MH_SAM_APDU [18:03:46]CAPDU: 80 13 01 00 [18:03:46]Write to MH i2c: E2 08 00 3D C6 80 13 01 00 00 00 00 00 80 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:46]Read from MH i2c: E2 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0E 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0E 00 3D C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 43 [18:03:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:03:46]wFMCommunicate OK [18:03:46]SAM_PROTO_GetShiftState done [18:03:46]FM_GetShiftState done [18:03:46]opened in 1729816399 [18:03:46]opened+sec_in_day 1729902799 [18:03:46]quantity*price = 60009 [18:03:46]sum+1 = 60010 [18:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 306 25.10.2024 18:03 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191567 ФПД: 182409994557473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191567&fm=182409994557473&tin=02508201610067®Number=0000000000091776&sum=60000 [18:03:47]StoreToDocumentArchive [18:03:47]shift 540 fd 191567 [18:03:47]save to /storage/0540/doc_00191567 [18:03:47]save last doc name /storage/0540/doc_00191567 to /storage/kkm_last_doc_name [18:03:47]save OK [18:03:47]Clear old archive folders... [18:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:47]tlvbuf is 015D88E0 [18:03:47]SAM_PROTO_ClearQueue [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 09 00 00 [18:03:47]Write to MH i2c: E2 08 00 4A C6 80 09 00 00 00 00 00 00 82 [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 4A C6 00 90 00 84 [18:03:47]RAPDU: 90 00 [18:03:47]wFMCommunicate OK [18:03:47]SAM_PROTO_ClearQueue done [18:03:47]KKMCreateOFDPacket [18:03:47]OFDProtocolAddRootSTLVToBuf [18:03:47]FM_MakeSignedData [18:03:47]FM_MakeSignedData [18:03:47]SAM_PROTO_SignData [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 0D 01 02 [18:03:47]Write to MH i2c: E2 08 00 4B C6 80 0D 01 02 00 00 00 00 8A [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 4B C6 00 90 00 85 [18:03:47]RAPDU: 90 00 [18:03:47]wFMCommunicate OK [18:03:47]wFMCommunicate request_size=255 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8C DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EC 02 00 35 04 06 00 A5 [18:03:47]Write to MH i2c: E2 02 01 4C C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8C DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EC 02 00 35 04 06 00 A5 00 00 19 [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 4C C6 00 90 00 86 [18:03:47]RAPDU: 90 00 [18:03:47]wFMCommunicate OK [18:03:47]wFMCommunicate request_size=10 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 0D 02 02 05 E6 A2 ED D8 21 [18:03:47]Write to MH i2c: E2 0D 00 4D C6 80 0D 02 02 05 00 E6 A2 ED D8 21 00 00 05 [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 03 00 4D C6 00 90 00 87 [18:03:47]RAPDU: 90 00 [18:03:47]wFMCommunicate OK [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 0D 03 02 [18:03:47]Write to MH i2c: E2 08 00 4E C6 80 0D 03 02 00 00 00 00 8F [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0B 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0B 00 4E C6 00 3E E9 B6 64 58 ED 93 C6 90 00 6F [18:03:48]RAPDU: 3E E9 B6 64 58 ED 93 C6 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_SignData done [18:03:48]FM_MakeSignedData done [18:03:48]CreateOFDProtocolMessage [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 11 00 00 [18:03:48]Write to MH i2c: E2 08 00 4F C6 80 11 00 00 00 00 00 00 8F [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 4F C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [18:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:48]wFMCommunicate OK [18:03:48]CreateOFDProtocolMessage done [18:03:48]OFDSenderStorePacket 191567 [18:03:48]StoreOFDPacket docnum=191567 [18:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 88 07 01 A6 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8C DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EC 02 00 35 04 06 00 A5 E6 A2 ED D8 21 3E E9 B6 64 58 ED 93 C6 [18:03:48]CheckFolder [18:03:48]dirname=/storage/ofd_packets [18:03:48]CheckFolder done [18:03:48]ProducePacketName [18:03:48]name=ofd_packets/00191567 [18:03:48]NVStorageSaveData ofd_packets/00191567 [18:03:48]File name is /storage/ofd_packets/00191567 [18:03:48]Write 301 bytes [18:03:48]NVStorageSaveData done [18:03:48]OFDSenderStorePacket done [18:03:48]KKMCreateOFDPacket done [18:03:48]NVStorageSaveData kkm_last_timestamp [18:03:48]File name is /storage/kkm_last_timestamp [18:03:48]Write 4 bytes [18:03:48]NVStorageSaveData done [18:03:48]ExternCall_PrintAddStr [18:03:48]wPrintStart [18:03:48]Write to MH i2c: 01 00 00 50 C6 16 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 50 C6 00 00 00 00 00 FF 0F 2B [18:03:48]RasterBufferAndPrint [18:03:48]line Счет N : (1)30866 [18:03:48]line ИНН: 02508201610067 [18:03:48]line Контрольно-Кассовый Чек [18:03:48]line ПРОДАЖА [18:03:48]line ТРК (МРК, ГНК) : 21 [18:03:48]line Товар: 2710124130 [18:03:48]line Аи-92-К-5 [18:03:48]line 8.970 * 66.90 [18:03:48]line = 600.09 [18:03:48]line НДС 12% НСП 1% [18:03:48]line > о реализуемом товаре [18:03:48]line ОКРУГЛЕНИЕ: -0.09 [18:03:48]line ИТОГО: 600.00 [18:03:48]line Внесено: 600.00 [18:03:48]line СДАЧА: 0.00 [18:03:48]line НСП 1% : 5.31 [18:03:48]line НДС 12% : 63.73 [18:03:48]line Наличными: 600.00 [18:03:48]line Безнал.: 0.00 [18:03:48]line Место: АЗС № 170 "Партнер Нефть" [18:03:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:03:48]line СНО: Общий режим [18:03:48]line Чек 306 25.10.2024 18:03 [18:03:48]line Смена: 540 ФФД: 1.0 [18:03:48]line ЗНМ: 0300000110 [18:03:48]line РНМ: 0000000000091776 [18:03:48]line Версия ККМ: 001 [18:03:48]line ФМ: 0000000000871754 [18:03:48]line ФД: 191567 [18:03:48]line ФПД: 182409994557473 [18:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191567&fm=182409994557473&tin=02508201610067®Number=0000000000091776&sum=60000 [18:03:48]OFD Sender: Processing packet 191567 [packets to send 75, broken 74] [18:03:48]ProducePacketName [18:03:48]name=ofd_packets/00191567 [18:03:48]OFD Sender: To server: pG, [18:03:48]CommunicateWithHost lk.salyk.kg:30040 [18:03:48]ConnectInit lk.salyk.kg [18:03:48]written 0, free lines is 4095 [18:03:48]Connected sock=10 [18:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 88 07 01 A6 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8C DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EC 02 00 35 04 06 00 A5 E6 A2 ED D8 21 3E E9 B6 64 58 ED 93 C6 [18:03:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C F5 47 00 E3 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 31 37 35 34 10 04 04 00 4F EC 02 00 F4 03 04 00 5A 82 1B 67 B6 04 01 00 00 E9 18 96 38 0E E8 C7 0F [18:03:48]CommunicateWithHost err = 0 [18:03:48]CheckOFDResponse [18:03:48]1017 (14) - 77093643461234 [18:03:48]1041 (16) - 0000000000871754 [18:03:48]1040 (4) - 191567 [18:03:48]1012 (4) - 25.10.2024 11:34 [18:03:48]1206 (1) - 0 [18:03:48]OFD Sender: Remove packet 191567 [18:03:48]ProducePacketName [18:03:48]name=ofd_packets/00191567 [18:03:48]NVStorageDeleteData [18:03:48]Write to MH i2c: 01 00 00 7B C6 41 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 7B C6 00 00 00 00 00 B6 0C 0A [18:03:48]RasterBufferAndPrint [18:03:48]line [18:03:48]line [18:03:48]line [18:03:48]line [18:03:48]line [18:03:48]written 0, free lines is 3261 [18:03:48]MH_Cut [18:03:48]Write to MH i2c: D1 01 00 82 C6 01 1A [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: D1 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: D1 01 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: D1 01 00 82 C6 00 19 [18:03:48]Write to MH i2c: 01 00 00 83 C6 49 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:49]OFD Sender: No OFD packet to send [18:03:49]*** Cut start [18:03:49]*** Partial cut [18:03:49]*** CUTSNS_PIN = 1 [18:03:49]*** CUTSNS_PIN = 0 [18:03:49]*** Brake cut motor [18:03:50]Read from MH i2c: 01 [18:03:50]MH_I2C_Read... [18:03:50]*** Stop cut motor [18:03:50]*** Cut end [18:03:50]Read from MH i2c: 01 07 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 83 C6 00 00 00 00 00 FF 0F 5E [18:03:50]process_action close_receipt done [18:03:50]requested_data is exist [18:03:50]produce_requested_data [18:03:50]requested_item fm.sn is exist - process it [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 11 00 00 [18:03:50]Write to MH i2c: E2 08 00 84 C6 80 11 00 00 00 00 00 00 C4 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 84 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [18:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:50]wFMCommunicate OK [18:03:50]requested_item fd.num is exist - process it [18:03:50]SAM_PROTO_GetFieldsCounters [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 13 00 00 [18:03:50]Write to MH i2c: E2 08 00 85 C6 80 13 00 00 00 00 00 00 C7 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 62 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 62 00 85 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [18:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_GetFieldsCounters done [18:03:50]requested_item shift.num is exist - process it [18:03:50]requested_item shift.opened is exist - process it [18:03:50]req_shift_opened [18:03:50]FM_GetShiftState [18:03:50]SAM_PROTO_GetShiftState [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 13 01 00 [18:03:50]Write to MH i2c: E2 08 00 86 C6 80 13 01 00 00 00 00 00 C9 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0E 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0E 00 86 C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8C [18:03:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_GetShiftState done [18:03:50]FM_GetShiftState done [18:03:50]req_shift_opened done [18:03:50]requested_item shift.open_date is exist - process it [18:03:50]req_shift_open_date [18:03:50]req_shift_open_date done [18:03:50]produce_requested_data done [18:03:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191567,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:03:50]process_action_free close_receipt [18:03:50]json_value_free [18:03:50]json_value_free done [18:03:50]process_json_proto returns [18:03:50]Send response to host [18:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191567,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:03:50]free response buf [18:03:50]execute_script done [18:03:50]execute_script returns [18:03:50]free content buf [18:03:50]Sock 8.Close socket [18:03:50]Sock 8.Thread stoped [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:36]accept exits with 9 [18:04:36]New connection [18:04:36]New thread 3066961252 created [18:04:36]Thread 3066817892 joined [18:04:36]Waiting for new connection... [18:04:36] Sock 9.Parse request [18:04:36]Sock 9.Check first char [18:04:36]Sock 9.First char is OK [18:04:36]request: POST /json_proto HTTP/1.0 [18:04:36]Method: POST [18:04:36]URL: /json_proto [18:04:36]Method is POST - this is cgi request [18:04:36]url: /json_proto [18:04:36]query_string will be loaded in cgi processing [18:04:36]execute_cgi json_proto POST (null) [18:04:36]execute_cgi path=json_proto method=POST [18:04:36]POST find Content-Length [18:04:36]Host: 172.17.63.131:8080 [18:04:36]Content-Length: 865 [18:04:36]Content-Type: application/json [18:04:36] [18:04:36]POST finish read [18:04:36]Found Content-Length = 865 [18:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:36]execute_script... [18:04: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)30867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:36]POST & json_proto [18:04:36]process_json_proto [18:04:36]json parsed OK: [18:04:36]protocol is kg_v1.0 [18:04:36]action value=close_receipt [18:04:36]process_action close_receipt [18:04:36]cmd_close_receipt [18:04:36]MH_GetDate [18:04:36]Write to MH i2c: F0 00 00 87 C6 3C [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 09 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 09 00 87 C6 00 BE DD 1B 67 22 05 6E 64 5B [18:04:36]GetLastDocTimeStamp 1729879436 [18:04:36]current date 1729879486 [18:04:36]FM_GetShiftState [18:04:36]SAM_PROTO_GetShiftState [18:04:36]wFMCommunicate request_size=4 [18:04:36]MH_SAM_APDU [18:04:36]CAPDU: 80 13 01 00 [18:04:36]Write to MH i2c: E2 08 00 88 C6 80 13 01 00 00 00 00 00 CB [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:36]Read from MH i2c: E2 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: E2 0E 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: E2 0E 00 88 C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8E [18:04:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:04:36]wFMCommunicate OK [18:04:36]SAM_PROTO_GetShiftState done [18:04:36]FM_GetShiftState done [18:04:36]opened in 1729816399 [18:04:36]opened+sec_in_day 1729902799 [18:04:36]quantity*price = 100015 [18:04:36]sum+1 = 100017 [18:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 307 25.10.2024 18:04 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191568 ФПД: 245923879624281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180446&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191568&fm=245923879624281&tin=02508201610067®Number=0000000000091776&sum=100016 [18:04:37]StoreToDocumentArchive [18:04:37]shift 540 fd 191568 [18:04:37]save to /storage/0540/doc_00191568 [18:04:37]save last doc name /storage/0540/doc_00191568 to /storage/kkm_last_doc_name [18:04:37]save OK [18:04:37]Clear old archive folders... [18:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:37]tlvbuf is 016AFBC0 [18:04:37]SAM_PROTO_ClearQueue [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 09 00 00 [18:04:37]Write to MH i2c: E2 08 00 95 C6 80 09 00 00 00 00 00 00 CD [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 95 C6 00 90 00 CF [18:04:37]RAPDU: 90 00 [18:04:37]wFMCommunicate OK [18:04:37]SAM_PROTO_ClearQueue done [18:04:37]KKMCreateOFDPacket [18:04:37]OFDProtocolAddRootSTLVToBuf [18:04:37]FM_MakeSignedData [18:04:37]FM_MakeSignedData [18:04:37]SAM_PROTO_SignData [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 0D 01 02 [18:04:37]Write to MH i2c: E2 08 00 96 C6 80 0D 01 02 00 00 00 00 D5 [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 96 C6 00 90 00 D0 [18:04:37]RAPDU: 90 00 [18:04:37]wFMCommunicate OK [18:04:37]wFMCommunicate request_size=255 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BE DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EC 02 00 35 04 06 00 DF [18:04:37]Write to MH i2c: E2 02 01 97 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BE DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EC 02 00 35 04 06 00 DF 00 00 0F [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 97 C6 00 90 00 D1 [18:04:37]RAPDU: 90 00 [18:04:37]wFMCommunicate OK [18:04:37]wFMCommunicate request_size=10 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 0D 02 02 05 AA 9D 7C 9E 59 [18:04:37]Write to MH i2c: E2 0D 00 98 C6 80 0D 02 02 05 00 AA 9D 7C 9E 59 00 00 9C [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 98 C6 00 90 00 D2 [18:04:37]RAPDU: 90 00 [18:04:37]wFMCommunicate OK [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 0D 03 02 [18:04:37]Write to MH i2c: E2 08 00 99 C6 80 0D 03 02 00 00 00 00 DA [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 0B 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 0B 00 99 C6 00 86 63 B4 A1 31 AE 39 9C 90 00 CD [18:04:37]RAPDU: 86 63 B4 A1 31 AE 39 9C 90 00 [18:04:37]wFMCommunicate OK [18:04:37]SAM_PROTO_SignData done [18:04:37]FM_MakeSignedData done [18:04:37]CreateOFDProtocolMessage [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 11 00 00 [18:04:38]Write to MH i2c: E2 08 00 9A C6 80 11 00 00 00 00 00 00 DA [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 9A C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [18:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:04:38]wFMCommunicate OK [18:04:38]CreateOFDProtocolMessage done [18:04:38]OFDSenderStorePacket 191568 [18:04:38]StoreOFDPacket docnum=191568 [18:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 4A 07 01 BB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BE DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EC 02 00 35 04 06 00 DF AA 9D 7C 9E 59 86 63 B4 A1 31 AE 39 9C [18:04:38]CheckFolder [18:04:38]dirname=/storage/ofd_packets [18:04:38]CheckFolder done [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00191568 [18:04:38]NVStorageSaveData ofd_packets/00191568 [18:04:38]File name is /storage/ofd_packets/00191568 [18:04:38]Write 301 bytes [18:04:38]NVStorageSaveData done [18:04:38]OFDSenderStorePacket done [18:04:38]KKMCreateOFDPacket done [18:04:38]NVStorageSaveData kkm_last_timestamp [18:04:38]File name is /storage/kkm_last_timestamp [18:04:38]Write 4 bytes [18:04:38]NVStorageSaveData done [18:04:38]ExternCall_PrintAddStr [18:04:38]wPrintStart [18:04:38]Write to MH i2c: 01 00 00 9B C6 61 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 9B C6 00 00 00 00 00 FF 0F 76 [18:04:38]RasterBufferAndPrint [18:04:38]line Счет N : (1)30867 [18:04:38]line ИНН: 02508201610067 [18:04:38]line Контрольно-Кассовый Чек [18:04:38]line ПРОДАЖА [18:04:38]line ТРК (МРК, ГНК) : 12 [18:04:38]line Товар: 2710124130 [18:04:38]line Аи-92-К-5 [18:04:38]line 14.950 * 66.90 [18:04:38]line = 1000.16 [18:04:38]line НДС 12% НСП 1% [18:04:38]line > о реализуемом товаре [18:04:38]line ИТОГО: 1000.16 [18:04:38]line НСП 1% : 8.85 [18:04:38]line НДС 12% : 106.21 [18:04:38]line Наличными: 0.00 [18:04:38]line Безнал.: 1000.16 [18:04:38]line Место: АЗС № 170 "Партнер Нефть" [18:04:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:04:38]line СНО: Общий режим [18:04:38]line Чек 307 25.10.2024 18:04 [18:04:38]line Смена: 540 ФФД: 1.0 [18:04:38]line ЗНМ: 0300000110 [18:04:38]line РНМ: 0000000000091776 [18:04:38]line Версия ККМ: 001 [18:04:38]line Платежная система: Кыргызкоммерцбанк [18:04:38]line ФМ: 0000000000871754 [18:04:38]line ФД: 191568 [18:04:38]line ФПД: 245923879624281 [18:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T180446&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191568&fm=245923879624281&tin=02508201610067®Number=0000000000091776&sum=100016 [18:04:38]OFD Sender: Processing packet 191568 [packets to send 75, broken 74] [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00191568 [18:04:38]OFD Sender: To server: pG, [18:04:38]CommunicateWithHost lk.salyk.kg:30040 [18:04:38]ConnectInit lk.salyk.kg [18:04:38]written 0, free lines is 4095 [18:04:38]Connected sock=10 [18:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 4A 07 01 BB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BE DD 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EC 02 00 35 04 06 00 DF AA 9D 7C 9E 59 86 63 B4 A1 31 AE 39 9C [18:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 28 47 00 30 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EC 02 00 F4 03 04 00 8C 82 1B 67 B6 04 01 00 00 5A BB 4A 73 1A 26 3A E0 [18:04:38]CommunicateWithHost err = 0 [18:04:38]CheckOFDResponse [18:04:38]1017 (14) - 77093643461234 [18:04:38]1041 (16) - 0000000000871754 [18:04:38]1040 (4) - 191568 [18:04:38]1012 (4) - 25.10.2024 11:35 [18:04:38]1206 (1) - 0 [18:04:38]OFD Sender: Remove packet 191568 [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00191568 [18:04:38]NVStorageDeleteData [18:04:38]Write to MH i2c: 01 00 00 C5 C6 8B [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 C5 C6 00 00 00 00 00 DA 0C 78 [18:04:38]RasterBufferAndPrint [18:04:38]line [18:04:38]line [18:04:38]line [18:04:38]line [18:04:38]line [18:04:38]written 0, free lines is 3297 [18:04:38]MH_Cut [18:04:38]Write to MH i2c: D1 01 00 CC C6 01 64 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: D1 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: D1 01 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: D1 01 00 CC C6 00 63 [18:04:38]Write to MH i2c: 01 00 00 CD C6 93 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:39]OFD Sender: No OFD packet to send [18:04:39]*** Cut start [18:04:39]*** Partial cut [18:04:39]*** CUTSNS_PIN = 1 [18:04:39]*** CUTSNS_PIN = 0 [18:04:39]*** Brake cut motor [18:04:40]Read from MH i2c: 01 [18:04:40]MH_I2C_Read... [18:04:40]*** Stop cut motor [18:04:40]*** Cut end [18:04:40]Read from MH i2c: 01 07 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: 01 07 00 CD C6 00 00 00 00 00 FF 0F A8 [18:04:40]process_action close_receipt done [18:04:40]requested_data is exist [18:04:40]produce_requested_data [18:04:40]requested_item fm.sn is exist - process it [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 11 00 00 [18:04:40]Write to MH i2c: E2 08 00 CE C6 80 11 00 00 00 00 00 00 0E [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 17 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 17 00 CE C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [18:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:04:40]wFMCommunicate OK [18:04:40]requested_item fd.num is exist - process it [18:04:40]SAM_PROTO_GetFieldsCounters [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 13 00 00 [18:04:40]Write to MH i2c: E2 08 00 CF C6 80 13 00 00 00 00 00 00 11 [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 62 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 62 00 CF C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:04:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:40]wFMCommunicate OK [18:04:40]SAM_PROTO_GetFieldsCounters done [18:04:40]requested_item shift.num is exist - process it [18:04:40]requested_item shift.opened is exist - process it [18:04:40]req_shift_opened [18:04:40]FM_GetShiftState [18:04:40]SAM_PROTO_GetShiftState [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 13 01 00 [18:04:40]Write to MH i2c: E2 08 00 D0 C6 80 13 01 00 00 00 00 00 13 [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 0E 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 0E 00 D0 C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [18:04:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:04:40]wFMCommunicate OK [18:04:40]SAM_PROTO_GetShiftState done [18:04:40]FM_GetShiftState done [18:04:40]req_shift_opened done [18:04:40]requested_item shift.open_date is exist - process it [18:04:40]req_shift_open_date [18:04:40]req_shift_open_date done [18:04:40]produce_requested_data done [18:04:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191568,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:04:40]process_action_free close_receipt [18:04:40]json_value_free [18:04:40]json_value_free done [18:04:40]process_json_proto returns [18:04:40]Send response to host [18:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191568,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:04:40]free response buf [18:04:40]execute_script done [18:04:40]execute_script returns [18:04:40]free content buf [18:04:40]Sock 9.Close socket [18:04:40]Sock 9.Thread stoped [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:35]accept exits with 8 [18:13:35]New connection [18:13:35]New thread 3066817892 created [18:13:35]Thread 3066961252 joined [18:13:35]Waiting for new connection... [18:13:35] Sock 8.Parse request [18:13:35]Sock 8.Check first char [18:13:35]Sock 8.First char is OK [18:13:35]request: POST /json_proto HTTP/1.0 [18:13:35]Method: POST [18:13:35]URL: /json_proto [18:13:35]Method is POST - this is cgi request [18:13:35]url: /json_proto [18:13:35]query_string will be loaded in cgi processing [18:13:35]execute_cgi json_proto POST (null) [18:13:35]execute_cgi path=json_proto method=POST [18:13:35]POST find Content-Length [18:13:35]Host: 172.17.63.131:8080 [18:13:35]Content-Length: 676 [18:13:35]Content-Type: application/json [18:13:35] [18:13:35]POST finish read [18:13:35]Found Content-Length = 676 [18:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:35]execute_script... [18:13: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)30868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:35]POST & json_proto [18:13:35]process_json_proto [18:13:35]json parsed OK: [18:13:35]protocol is kg_v1.0 [18:13:35]action value=close_receipt [18:13:35]process_action close_receipt [18:13:35]cmd_close_receipt [18:13:35]MH_GetDate [18:13:35]Write to MH i2c: F0 00 00 D1 C6 86 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: F0 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: F0 09 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: F0 09 00 D1 C6 00 DA DF 1B 67 22 05 6E 64 C3 [18:13:35]GetLastDocTimeStamp 1729879486 [18:13:35]current date 1729880026 [18:13:35]FM_GetShiftState [18:13:35]SAM_PROTO_GetShiftState [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 01 00 [18:13:35]Write to MH i2c: E2 08 00 D2 C6 80 13 01 00 00 00 00 00 15 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 D2 C6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [18:13:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetShiftState done [18:13:35]FM_GetShiftState done [18:13:35]opened in 1729816399 [18:13:35]opened+sec_in_day 1729902799 [18:13:35]quantity*price = 30038 [18:13:35]sum+1 = 30039 [18:13:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 308 25.10.2024 18:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191569 ФПД: 102288929476818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191569&fm=102288929476818&tin=02508201610067®Number=0000000000091776&sum=30000 [18:13:36]StoreToDocumentArchive [18:13:36]shift 540 fd 191569 [18:13:36]save to /storage/0540/doc_00191569 [18:13:36]save last doc name /storage/0540/doc_00191569 to /storage/kkm_last_doc_name [18:13:36]save OK [18:13:36]Clear old archive folders... [18:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:36]tlvbuf is 019D27C0 [18:13:36]SAM_PROTO_ClearQueue [18:13:36]wFMCommunicate request_size=4 [18:13:36]MH_SAM_APDU [18:13:36]CAPDU: 80 09 00 00 [18:13:36]Write to MH i2c: E2 08 00 DF C6 80 09 00 00 00 00 00 00 17 [18:13:36]Write i2c OK [18:13:36]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 DF C6 00 90 00 19 [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 E0 C6 80 0D 01 02 00 00 00 00 1F [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 E0 C6 00 90 00 1A [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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 DA DF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EC 02 00 35 04 06 00 5D [18:13:37]Write to MH i2c: E2 02 01 E1 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 DA DF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EC 02 00 35 04 06 00 5D 00 00 D1 [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 E1 C6 00 90 00 1B [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 07 FF 4E 50 D2 [18:13:37]Write to MH i2c: E2 0D 00 E2 C6 80 0D 02 02 05 00 07 FF 4E 50 D2 00 00 A2 [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 E2 C6 00 90 00 1C [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 E3 C6 80 0D 03 02 00 00 00 00 24 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0B 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0B 00 E3 C6 00 55 95 FB 78 E6 14 28 FD 90 00 A1 [18:13:37]RAPDU: 55 95 FB 78 E6 14 28 FD 90 00 [18:13:37]wFMCommunicate OK [18:13:37]SAM_PROTO_SignData done [18:13:37]FM_MakeSignedData done [18:13:37]CreateOFDProtocolMessage [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 11 00 00 [18:13:37]Write to MH i2c: E2 08 00 E4 C6 80 11 00 00 00 00 00 00 24 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 17 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 17 00 E4 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [18:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:13:37]wFMCommunicate OK [18:13:37]CreateOFDProtocolMessage done [18:13:37]OFDSenderStorePacket 191569 [18:13:37]StoreOFDPacket docnum=191569 [18:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 DA 07 01 4E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 DA DF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EC 02 00 35 04 06 00 5D 07 FF 4E 50 D2 55 95 FB 78 E6 14 28 FD [18:13:37]CheckFolder [18:13:37]dirname=/storage/ofd_packets [18:13:37]CheckFolder done [18:13:37]ProducePacketName [18:13:37]name=ofd_packets/00191569 [18:13:37]NVStorageSaveData ofd_packets/00191569 [18:13:37]File name is /storage/ofd_packets/00191569 [18:13:37]Write 301 bytes [18:13:37]NVStorageSaveData done [18:13:37]OFDSenderStorePacket done [18:13:37]KKMCreateOFDPacket done [18:13:37]NVStorageSaveData kkm_last_timestamp [18:13:37]File name is /storage/kkm_last_timestamp [18:13:37]Write 4 bytes [18:13:37]NVStorageSaveData done [18:13:37]ExternCall_PrintAddStr [18:13:37]wPrintStart [18:13:37]Write to MH i2c: 01 00 00 E5 C6 AB [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: 01 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: 01 07 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: 01 07 00 E5 C6 00 00 00 00 00 FF 0F C0 [18:13:37]RasterBufferAndPrint [18:13:37]line Счет N : (1)30868 [18:13:37]line ИНН: 02508201610067 [18:13:37]line Контрольно-Кассовый Чек [18:13:37]line ПРОДАЖА [18:13:37]line ТРК (МРК, ГНК) : 21 [18:13:37]line Товар: 2710124130 [18:13:37]line Аи-92-К-5 [18:13:37]line 4.490 * 66.90 [18:13:37]line = 300.38 [18:13:37]line НДС 12% НСП 1% [18:13:37]line > о реализуемом товаре [18:13:37]line ОКРУГЛЕНИЕ: -0.38 [18:13:37]line ИТОГО: 300.00 [18:13:37]line Внесено: 300.00 [18:13:37]line СДАЧА: 0.00 [18:13:37]line НСП 1% : 2.66 [18:13:37]line НДС 12% : 31.90 [18:13:37]line Наличными: 300.00 [18:13:37]line Безнал.: 0.00 [18:13:37]line Место: АЗС № 170 "Партнер Нефть" [18:13:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:13:37]line СНО: Общий режим [18:13:37]line Чек 308 25.10.2024 18:13 [18:13:37]line Смена: 540 ФФД: 1.0 [18:13:37]line ЗНМ: 0300000110 [18:13:37]line РНМ: 0000000000091776 [18:13:37]line Версия ККМ: 001 [18:13:37]line ФМ: 0000000000871754 [18:13:37]line ФД: 191569 [18:13:37]line ФПД: 102288929476818 [18:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191569&fm=102288929476818&tin=02508201610067®Number=0000000000091776&sum=30000 [18:13:37]OFD Sender: Processing packet 191569 [packets to send 75, broken 74] [18:13:37]ProducePacketName [18:13:37]name=ofd_packets/00191569 [18:13:37]OFD Sender: To server: pG, [18:13:37]CommunicateWithHost lk.salyk.kg:30040 [18:13:37]ConnectInit lk.salyk.kg [18:13:37]written 0, free lines is 4095 [18:13:37]Connected sock=11 [18:13:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 DA 07 01 4E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 DA DF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EC 02 00 35 04 06 00 5D 07 FF 4E 50 D2 55 95 FB 78 E6 14 28 FD [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 31 37 35 34 4F 00 00 00 C3 07 47 00 44 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EC 02 00 F4 03 04 00 A7 84 1B 67 B6 04 01 00 00 2A 03 7C F3 28 CD 69 26 [18:13:38]CommunicateWithHost err = 0 [18:13:38]CheckOFDResponse [18:13:38]1017 (14) - 77093643461234 [18:13:38]1041 (16) - 0000000000871754 [18:13:38]1040 (4) - 191569 [18:13:38]1012 (4) - 25.10.2024 11:44 [18:13:38]1206 (1) - 0 [18:13:38]OFD Sender: Remove packet 191569 [18:13:38]ProducePacketName [18:13:38]name=ofd_packets/00191569 [18:13:38]NVStorageDeleteData [18:13:38]Write to MH i2c: 01 00 00 10 C7 D7 [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 10 C7 00 00 00 00 00 BB 0C A5 [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 3268 [18:13:38]MH_Cut [18:13:38]Write to MH i2c: D1 01 00 17 C7 01 B0 [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 17 C7 00 AF [18:13:38]Write to MH i2c: 01 00 00 18 C7 DF [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]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:39]Read from MH i2c: 01 [18:13:39]MH_I2C_Read... [18:13:39]*** Stop cut motor [18:13:39]*** Cut end [18:13:39]Read from MH i2c: 01 07 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: 01 07 00 18 C7 00 00 00 00 00 FF 0F F4 [18:13:39]process_action close_receipt done [18:13:39]requested_data is exist [18:13:39]produce_requested_data [18:13:39]requested_item fm.sn is exist - process it [18:13:39]wFMCommunicate request_size=4 [18:13:39]MH_SAM_APDU [18:13:39]CAPDU: 80 11 00 00 [18:13:39]Write to MH i2c: E2 08 00 19 C7 80 11 00 00 00 00 00 00 5A [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 [18:13:39]MH_I2C_Read... [18:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:39]Read from MH i2c: E2 17 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 17 00 19 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [18:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:13:39]wFMCommunicate OK [18:13:39]requested_item fd.num is exist - process it [18:13:39]SAM_PROTO_GetFieldsCounters [18:13:39]wFMCommunicate request_size=4 [18:13:39]MH_SAM_APDU [18:13:39]CAPDU: 80 13 00 00 [18:13:39]Write to MH i2c: E2 08 00 1A C7 80 13 00 00 00 00 00 00 5D [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:39]Read from MH i2c: E2 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 62 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 62 00 1A C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:39]wFMCommunicate OK [18:13:39]SAM_PROTO_GetFieldsCounters done [18:13:39]requested_item shift.num is exist - process it [18:13:39]requested_item shift.opened is exist - process it [18:13:39]req_shift_opened [18:13:39]FM_GetShiftState [18:13:39]SAM_PROTO_GetShiftState [18:13:39]wFMCommunicate request_size=4 [18:13:39]MH_SAM_APDU [18:13:39]CAPDU: 80 13 01 00 [18:13:39]Write to MH i2c: E2 08 00 1B C7 80 13 01 00 00 00 00 00 5F [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:39]Read from MH i2c: E2 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 0E 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 0E 00 1B C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 22 [18:13:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:13:39]wFMCommunicate OK [18:13:39]SAM_PROTO_GetShiftState done [18:13:39]FM_GetShiftState done [18:13:39]req_shift_opened done [18:13:39]requested_item shift.open_date is exist - process it [18:13:39]req_shift_open_date [18:13:39]req_shift_open_date done [18:13:39]produce_requested_data done [18:13:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191569,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:13:39]process_action_free close_receipt [18:13:39]json_value_free [18:13:39]json_value_free done [18:13:39]process_json_proto returns [18:13:39]Send response to host [18:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191569,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:13:39]free response buf [18:13:39]execute_script done [18:13:39]execute_script returns [18:13:39]free content buf [18:13:39]Sock 8.Close socket [18:13:39]Sock 8.Thread stoped [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:54]accept exits with 9 [18:14:54]New connection [18:14:54]New thread 3066961252 created [18:14:54]Thread 3066817892 joined [18:14:54]Waiting for new connection... [18:14:54] Sock 9.Parse request [18:14:54]Sock 9.Check first char [18:14:54]Sock 9.First char is OK [18:14:54]request: POST /json_proto HTTP/1.0 [18:14:54]Method: POST [18:14:54]URL: /json_proto [18:14:54]Method is POST - this is cgi request [18:14:54]url: /json_proto [18:14:54]query_string will be loaded in cgi processing [18:14:54]execute_cgi json_proto POST (null) [18:14:54]execute_cgi path=json_proto method=POST [18:14:54]POST find Content-Length [18:14:54]Host: 172.17.63.131:8080 [18:14:54]Content-Length: 676 [18:14:54]Content-Type: application/json [18:14:54] [18:14:54]POST finish read [18:14:54]Found Content-Length = 676 [18:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:54]execute_script... [18:14: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)30870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:54]POST & json_proto [18:14:54]process_json_proto [18:14:54]json parsed OK: [18:14:54]protocol is kg_v1.0 [18:14:54]action value=close_receipt [18:14:54]process_action close_receipt [18:14:54]cmd_close_receipt [18:14:54]MH_GetDate [18:14:54]Write to MH i2c: F0 00 00 1C C7 D2 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: F0 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: F0 09 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: F0 09 00 1C C7 00 28 E0 1B 67 22 05 6E 64 5E [18:14:54]GetLastDocTimeStamp 1729880026 [18:14:54]current date 1729880104 [18:14:54]FM_GetShiftState [18:14:54]SAM_PROTO_GetShiftState [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 13 01 00 [18:14:54]Write to MH i2c: E2 08 00 1D C7 80 13 01 00 00 00 00 00 61 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 1D C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 24 [18:14:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:14:54]wFMCommunicate OK [18:14:54]SAM_PROTO_GetShiftState done [18:14:54]FM_GetShiftState done [18:14:54]opened in 1729816399 [18:14:54]opened+sec_in_day 1729902799 [18:14:54]quantity*price = 40006 [18:14:54]sum+1 = 40007 [18:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 309 25.10.2024 18:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191570 ФПД: 44052938648320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181504&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191570&fm=44052938648320&tin=02508201610067®Number=0000000000091776&sum=40000 [18:14:55]StoreToDocumentArchive [18:14:55]shift 540 fd 191570 [18:14:55]save to /storage/0540/doc_00191570 [18:14:55]save last doc name /storage/0540/doc_00191570 to /storage/kkm_last_doc_name [18:14:55]save OK [18:14:55]Clear old archive folders... [18:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:55]tlvbuf is 01789E70 [18:14:55]SAM_PROTO_ClearQueue [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 09 00 00 [18:14:55]Write to MH i2c: E2 08 00 2A C7 80 09 00 00 00 00 00 00 63 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 2A C7 00 90 00 65 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_ClearQueue done [18:14:55]KKMCreateOFDPacket [18:14:55]OFDProtocolAddRootSTLVToBuf [18:14:55]FM_MakeSignedData [18:14:55]FM_MakeSignedData [18:14:55]SAM_PROTO_SignData [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 01 02 [18:14:55]Write to MH i2c: E2 08 00 2B C7 80 0D 01 02 00 00 00 00 6B [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 2B C7 00 90 00 66 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=255 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 28 E0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EC 02 00 35 04 06 00 28 [18:14:55]Write to MH i2c: E2 02 01 2C C7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 28 E0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EC 02 00 35 04 06 00 28 00 00 14 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 2C C7 00 90 00 67 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=10 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 02 02 05 10 DF C2 6B 00 [18:14:55]Write to MH i2c: E2 0D 00 2D C7 80 0D 02 02 05 00 10 DF C2 6B 00 00 00 94 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 2D C7 00 90 00 68 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 03 02 [18:14:55]Write to MH i2c: E2 08 00 2E C7 80 0D 03 02 00 00 00 00 70 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0B 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0B 00 2E C7 00 40 1B FD 05 5F 58 9F 19 90 00 3D [18:14:55]RAPDU: 40 1B FD 05 5F 58 9F 19 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_SignData done [18:14:55]FM_MakeSignedData done [18:14:55]CreateOFDProtocolMessage [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 11 00 00 [18:14:55]Write to MH i2c: E2 08 00 2F C7 80 11 00 00 00 00 00 00 70 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:56]Read from MH i2c: E2 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 17 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 17 00 2F C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [18:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:14:56]wFMCommunicate OK [18:14:56]CreateOFDProtocolMessage done [18:14:56]OFDSenderStorePacket 191570 [18:14:56]StoreOFDPacket docnum=191570 [18:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 FA 07 01 1E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 28 E0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EC 02 00 35 04 06 00 28 10 DF C2 6B 00 40 1B FD 05 5F 58 9F 19 [18:14:56]CheckFolder [18:14:56]dirname=/storage/ofd_packets [18:14:56]CheckFolder done [18:14:56]ProducePacketName [18:14:56]name=ofd_packets/00191570 [18:14:56]NVStorageSaveData ofd_packets/00191570 [18:14:56]File name is /storage/ofd_packets/00191570 [18:14:56]Write 301 bytes [18:14:56]NVStorageSaveData done [18:14:56]OFDSenderStorePacket done [18:14:56]KKMCreateOFDPacket done [18:14:56]NVStorageSaveData kkm_last_timestamp [18:14:56]File name is /storage/kkm_last_timestamp [18:14:56]Write 4 bytes [18:14:56]NVStorageSaveData done [18:14:56]ExternCall_PrintAddStr [18:14:56]wPrintStart [18:14:56]Write to MH i2c: 01 00 00 30 C7 F7 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 30 C7 00 00 00 00 00 FF 0F 0C [18:14:56]RasterBufferAndPrint [18:14:56]line Счет N : (1)30870 [18:14:56]line ИНН: 02508201610067 [18:14:56]line Контрольно-Кассовый Чек [18:14:56]line ПРОДАЖА [18:14:56]line ТРК (МРК, ГНК) : 12 [18:14:56]line Товар: 2710124130 [18:14:56]line Аи-92-К-5 [18:14:56]line 5.980 * 66.90 [18:14:56]line = 400.06 [18:14:56]line НДС 12% НСП 1% [18:14:56]line > о реализуемом товаре [18:14:56]line ОКРУГЛЕНИЕ: -0.06 [18:14:56]line ИТОГО: 400.00 [18:14:56]line Внесено: 400.00 [18:14:56]line СДАЧА: 0.00 [18:14:56]line НСП 1% : 3.54 [18:14:56]line НДС 12% : 42.48 [18:14:56]line Наличными: 400.00 [18:14:56]line Безнал.: 0.00 [18:14:56]line Место: АЗС № 170 "Партнер Нефть" [18:14:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:14:56]line СНО: Общий режим [18:14:56]line Чек 309 25.10.2024 18:15 [18:14:56]line Смена: 540 ФФД: 1.0 [18:14:56]line ЗНМ: 0300000110 [18:14:56]line РНМ: 0000000000091776 [18:14:56]line Версия ККМ: 001 [18:14:56]line ФМ: 0000000000871754 [18:14:56]line ФД: 191570 [18:14:56]line ФПД: 44052938648320 [18:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181504&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191570&fm=44052938648320&tin=02508201610067®Number=0000000000091776&sum=40000 [18:14:56]OFD Sender: Processing packet 191570 [packets to send 75, broken 74] [18:14:56]ProducePacketName [18:14:56]name=ofd_packets/00191570 [18:14:56]OFD Sender: To server: pG, [18:14:56]CommunicateWithHost lk.salyk.kg:30040 [18:14:56]ConnectInit lk.salyk.kg [18:14:56]written 0, free lines is 4095 [18:14:56]Connected sock=10 [18:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 FA 07 01 1E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 28 E0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EC 02 00 35 04 06 00 28 10 DF C2 6B 00 40 1B FD 05 5F 58 9F 19 [18:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D7 79 47 00 7C F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EC 02 00 F4 03 04 00 F6 84 1B 67 B6 04 01 00 00 91 A6 1B 7B E8 D4 C6 A5 [18:14:56]CommunicateWithHost err = 0 [18:14:56]CheckOFDResponse [18:14:56]1017 (14) - 77093643461234 [18:14:56]1041 (16) - 0000000000871754 [18:14:56]1040 (4) - 191570 [18:14:56]1012 (4) - 25.10.2024 11:45 [18:14:56]1206 (1) - 0 [18:14:56]OFD Sender: Remove packet 191570 [18:14:56]ProducePacketName [18:14:56]name=ofd_packets/00191570 [18:14:56]NVStorageDeleteData [18:14:56]Write to MH i2c: 01 00 00 5B C7 22 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 5B C7 00 00 00 00 00 B2 0C E7 [18:14:56]RasterBufferAndPrint [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]written 0, free lines is 3257 [18:14:56]MH_Cut [18:14:56]Write to MH i2c: D1 01 00 62 C7 01 FB [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 01 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 01 00 62 C7 00 FA [18:14:56]Write to MH i2c: 01 00 00 63 C7 2A [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:57]OFD Sender: No OFD packet to send [18:14:57]*** Cut start [18:14:57]*** Partial cut [18:14:57]*** CUTSNS_PIN = 1 [18:14:57]*** CUTSNS_PIN = 0 [18:14:57]*** Brake cut motor [18:14:58]Read from MH i2c: 01 [18:14:58]MH_I2C_Read... [18:14:58]*** Stop cut motor [18:14:58]*** Cut end [18:14:58]Read from MH i2c: 01 07 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: 01 07 00 63 C7 00 00 00 00 00 FF 0F 3F [18:14:58]process_action close_receipt done [18:14:58]requested_data is exist [18:14:58]produce_requested_data [18:14:58]requested_item fm.sn is exist - process it [18:14:58]wFMCommunicate request_size=4 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 11 00 00 [18:14:58]Write to MH i2c: E2 08 00 64 C7 80 11 00 00 00 00 00 00 A5 [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:58]Read from MH i2c: E2 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 17 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 17 00 64 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [18:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:14:58]wFMCommunicate OK [18:14:58]requested_item fd.num is exist - process it [18:14:58]SAM_PROTO_GetFieldsCounters [18:14:58]wFMCommunicate request_size=4 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 13 00 00 [18:14:58]Write to MH i2c: E2 08 00 65 C7 80 13 00 00 00 00 00 00 A8 [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:58]Read from MH i2c: E2 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 62 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 62 00 65 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:58]wFMCommunicate OK [18:14:58]SAM_PROTO_GetFieldsCounters done [18:14:58]requested_item shift.num is exist - process it [18:14:58]requested_item shift.opened is exist - process it [18:14:58]req_shift_opened [18:14:58]FM_GetShiftState [18:14:58]SAM_PROTO_GetShiftState [18:14:58]wFMCommunicate request_size=4 [18:14:58]MH_SAM_APDU [18:14:58]CAPDU: 80 13 01 00 [18:14:58]Write to MH i2c: E2 08 00 66 C7 80 13 01 00 00 00 00 00 AA [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:58]Read from MH i2c: E2 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 0E 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: E2 0E 00 66 C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6D [18:14:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:14:58]wFMCommunicate OK [18:14:58]SAM_PROTO_GetShiftState done [18:14:58]FM_GetShiftState done [18:14:58]req_shift_opened done [18:14:58]requested_item shift.open_date is exist - process it [18:14:58]req_shift_open_date [18:14:58]req_shift_open_date done [18:14:58]produce_requested_data done [18:14:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191570,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:14:58]process_action_free close_receipt [18:14:58]json_value_free [18:14:58]json_value_free done [18:14:58]process_json_proto returns [18:14:58]Send response to host [18:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191570,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:14:58]free response buf [18:14:58]execute_script done [18:14:58]execute_script returns [18:14:58]free content buf [18:14:58]Sock 9.Close socket [18:14:58]Sock 9.Thread stoped [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:44]accept exits with 8 [18:23:44]New connection [18:23:44]New thread 3066817892 created [18:23:44]Thread 3066961252 joined [18:23:44]Waiting for new connection... [18:23:44] Sock 8.Parse request [18:23:44]Sock 8.Check first char [18:23:44]Sock 8.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.63.131:8080 [18:23:44]Content-Length: 678 [18:23:44]Content-Type: application/json [18:23:44] [18:23:44]POST finish read [18:23:44]Found Content-Length = 678 [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)30871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18: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)30871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18: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 67 C7 1D [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 67 C7 00 3B E2 1B 67 22 05 6E 64 BE [18:23:44]GetLastDocTimeStamp 1729880104 [18:23:44]current date 1729880635 [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 68 C7 80 13 01 00 00 00 00 00 AC [18:23:44]Write i2c OK [18:23:44]MH_I2C_Read... [18:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:45]Read from MH i2c: E2 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 0E 00 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 0E 00 68 C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6F [18:23:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:23:45]wFMCommunicate OK [18:23:45]SAM_PROTO_GetShiftState done [18:23:45]FM_GetShiftState done [18:23:45]opened in 1729816399 [18:23:45]opened+sec_in_day 1729902799 [18:23:45]quantity*price = 200025 [18:23:45]sum+1 = 200026 [18:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 310 25.10.2024 18:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191571 ФПД: 94421190965634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182355&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191571&fm=94421190965634&tin=02508201610067®Number=0000000000091776&sum=200000 [18:23:46]StoreToDocumentArchive [18:23:46]shift 540 fd 191571 [18:23:46]save to /storage/0540/doc_00191571 [18:23:46]save last doc name /storage/0540/doc_00191571 to /storage/kkm_last_doc_name [18:23:46]save OK [18:23:46]Clear old archive folders... [18:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:23:46]tlvbuf is 0178A1C0 [18:23:46]SAM_PROTO_ClearQueue [18:23:46]wFMCommunicate request_size=4 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 09 00 00 [18:23:46]Write to MH i2c: E2 08 00 75 C7 80 09 00 00 00 00 00 00 AE [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 09 00 00... 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 75 C7 00 90 00 B0 [18:23:46]RAPDU: 90 00 [18:23:46]wFMCommunicate OK [18:23:46]SAM_PROTO_ClearQueue done [18:23:46]KKMCreateOFDPacket [18:23:46]OFDProtocolAddRootSTLVToBuf [18:23:46]FM_MakeSignedData [18:23:46]FM_MakeSignedData [18:23:46]SAM_PROTO_SignData [18:23:46]wFMCommunicate request_size=4 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 0D 01 02 [18:23:46]Write to MH i2c: E2 08 00 76 C7 80 0D 01 02 00 00 00 00 B6 [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 0D 01 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 76 C7 00 90 00 B1 [18:23:46]RAPDU: 90 00 [18:23:46]wFMCommunicate OK [18:23:46]wFMCommunicate request_size=255 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 01 00 00 F4 03 04 00 3B E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EC 02 00 35 04 06 00 55 E0 25 8B [18:23:46]Write to MH i2c: E2 02 01 77 C7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 3B E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EC 02 00 35 04 06 00 55 E0 25 8B 00 00 48 [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 77 C7 00 90 00 B2 [18:23:46]RAPDU: 90 00 [18:23:46]wFMCommunicate OK [18:23:46]wFMCommunicate request_size=7 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 0D 02 02 02 F9 82 [18:23:46]Write to MH i2c: E2 0A 00 78 C7 80 0D 02 02 02 00 F9 82 00 00 38 [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 78 C7 00 90 00 B3 [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 79 C7 80 0D 03 02 00 00 00 00 BB [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 79 C7 00 A8 13 17 9D 6B B7 44 72 90 00 03 [18:23:46]RAPDU: A8 13 17 9D 6B B7 44 72 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 7A C7 80 11 00 00 00 00 00 00 BB [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 7A C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [18:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:23:46]wFMCommunicate OK [18:23:46]CreateOFDProtocolMessage done [18:23:46]OFDSenderStorePacket 191571 [18:23:46]StoreOFDPacket docnum=191571 [18:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7F 8D 04 01 4C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 3B E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EC 02 00 35 04 06 00 55 E0 25 8B F9 82 A8 13 17 9D 6B B7 44 72 [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/00191571 [18:23:46]NVStorageSaveData ofd_packets/00191571 [18:23:46]File name is /storage/ofd_packets/00191571 [18:23:46]Write 298 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]ExternCall_PrintAddStr [18:23:46]wPrintStart [18:23:46]Write to MH i2c: 01 00 00 7B C7 42 [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 7B C7 00 00 00 00 00 FF 0F 57 [18:23:46]RasterBufferAndPrint [18:23:46]line Счет N : (1)30871 [18:23:46]line ИНН: 02508201610067 [18:23:46]line Контрольно-Кассовый Чек [18:23:46]line ПРОДАЖА [18:23:46]line ТРК (МРК, ГНК) : 11 [18:23:46]line Товар: 2710194210 [18:23:46]line ДТ-К-5 [18:23:46]line 26.250 * 76.20 [18:23:46]line = 2000.25 [18:23:46]line НДС 12% НСП 1% [18:23:46]line > о реализуемом товаре [18:23:46]line ОКРУГЛЕНИЕ: -0.25 [18:23:46]line ИТОГО: 2000.00 [18:23:46]line Внесено: 2000.00 [18:23:46]line СДАЧА: 0.00 [18:23:46]line НСП 1% : 17.70 [18:23:46]line НДС 12% : 212.42 [18:23:46]line Наличными: 2000.00 [18:23:46]line Безнал.: 0.00 [18:23:46]line Место: АЗС № 170 "Партнер Нефть" [18:23:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:23:46]line СНО: Общий режим [18:23:46]line Чек 310 25.10.2024 18:23 [18:23:46]line Смена: 540 ФФД: 1.0 [18:23:46]line ЗНМ: 0300000110 [18:23:46]line РНМ: 0000000000091776 [18:23:46]line Версия ККМ: 001 [18:23:46]line ФМ: 0000000000871754 [18:23:46]line ФД: 191571 [18:23:46]line ФПД: 94421190965634 [18:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182355&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191571&fm=94421190965634&tin=02508201610067®Number=0000000000091776&sum=200000 [18:23:47]OFD Sender: Processing packet 191571 [packets to send 75, broken 74] [18:23:47]ProducePacketName [18:23:47]name=ofd_packets/00191571 [18:23:47]OFD Sender: To server: pG, [18:23:47]CommunicateWithHost lk.salyk.kg:30040 [18:23:47]ConnectInit lk.salyk.kg [18:23:47]written 0, free lines is 4095 [18:23:47]Connected sock=10 [18:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7F 8D 04 01 4C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 3B E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EC 02 00 35 04 06 00 55 E0 25 8B F9 82 A8 13 17 9D 6B B7 44 72 [18:23:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 36 47 00 97 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 31 37 35 34 10 04 04 00 53 EC 02 00 F4 03 04 00 09 87 1B 67 B6 04 01 00 00 EB 2D 72 87 F2 2E E8 D6 [18:23:47]CommunicateWithHost err = 0 [18:23:47]CheckOFDResponse [18:23:47]1017 (14) - 77093643461234 [18:23:47]1041 (16) - 0000000000871754 [18:23:47]1040 (4) - 191571 [18:23:47]1012 (4) - 25.10.2024 11:54 [18:23:47]1206 (1) - 0 [18:23:47]OFD Sender: Remove packet 191571 [18:23:47]ProducePacketName [18:23:47]name=ofd_packets/00191571 [18:23:47]NVStorageDeleteData [18:23:47]Write to MH i2c: 01 00 00 A6 C7 6D [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 07 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 07 00 A6 C7 00 00 00 00 00 C0 0C 40 [18:23:47]RasterBufferAndPrint [18:23:47]line [18:23:47]line [18:23:47]line [18:23:47]line [18:23:47]line [18:23:47]written 0, free lines is 3270 [18:23:47]MH_Cut [18:23:47]Write to MH i2c: D1 01 00 AD C7 01 46 [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 AD C7 00 45 [18:23:47]Write to MH i2c: 01 00 00 AE C7 75 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]OFD Sender: No OFD packet to send [18:23:48]*** Cut start [18:23:48]*** Partial cut [18:23:48]*** CUTSNS_PIN = 1 [18:23:48]*** CUTSNS_PIN = 0 [18:23:48]*** 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 AE C7 00 00 00 00 00 FF 0F 8A [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 AF C7 80 11 00 00 00 00 00 00 F0 [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 AF C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [18:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 B0 C7 80 13 00 00 00 00 00 00 F3 [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:49]Read from MH i2c: E2 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 62 00 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 62 00 B0 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:23:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:49]wFMCommunicate OK [18:23:49]SAM_PROTO_GetFieldsCounters done [18:23:49]requested_item shift.num is exist - process it [18:23:49]requested_item shift.opened is exist - process it [18:23:49]req_shift_opened [18:23:49]FM_GetShiftState [18:23:49]SAM_PROTO_GetShiftState [18:23:49]wFMCommunicate request_size=4 [18:23:49]MH_SAM_APDU [18:23:49]CAPDU: 80 13 01 00 [18:23:49]Write to MH i2c: E2 08 00 B1 C7 80 13 01 00 00 00 00 00 F5 [18:23:49]Write i2c OK [18:23:49]MH_I2C_Read... [18:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:49]Read from MH i2c: E2 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 0E 00 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 0E 00 B1 C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B8 [18:23:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:23:49]wFMCommunicate OK [18:23:49]SAM_PROTO_GetShiftState done [18:23:49]FM_GetShiftState done [18:23:49]req_shift_opened done [18:23:49]requested_item shift.open_date is exist - process it [18:23:49]req_shift_open_date [18:23:49]req_shift_open_date done [18:23:49]produce_requested_data done [18:23:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191571,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:23:49]process_action_free close_receipt [18:23:49]json_value_free [18:23:49]json_value_free done [18:23:49]process_json_proto returns [18:23:49]Send response to host [18:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191571,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:23:49]free response buf [18:23:49]execute_script done [18:23:49]execute_script returns [18:23:49]free content buf [18:23:49]Sock 8.Close socket [18:23:49]Sock 8.Thread stoped [18:23:49]accept exits with 9 [18:23:49]New connection [18:23:49]New thread 3066961252 created [18:23:49]Thread 3066817892 joined [18:23:49]Waiting for new connection... [18:23:49] Sock 9.Parse request [18:23:49]Sock 9.Check first char [18:23:49]Sock 9.First char is OK [18:23:49]request: POST /json_proto HTTP/1.0 [18:23:49]Method: POST [18:23:49]URL: /json_proto [18:23:49]Method is POST - this is cgi request [18:23:49]url: /json_proto [18:23:49]query_string will be loaded in cgi processing [18:23:49]execute_cgi json_proto POST (null) [18:23:49]execute_cgi path=json_proto method=POST [18:23:49]POST find Content-Length [18:23:49]Host: 172.17.63.131:8080 [18:23:49]Content-Length: 676 [18:23:49]Content-Type: application/json [18:23:49] [18:23:49]POST finish read [18:23:49]Found Content-Length = 676 [18:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:49]execute_script... [18:23:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:49]POST & json_proto [18:23:49]process_json_proto [18:23:49]json parsed OK: [18:23:49]protocol is kg_v1.0 [18:23:49]action value=close_receipt [18:23:49]process_action close_receipt [18:23:49]cmd_close_receipt [18:23:49]MH_GetDate [18:23:49]Write to MH i2c: F0 00 00 B2 C7 68 [18:23:49]Write i2c OK [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: F0 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: F0 09 00 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: F0 09 00 B2 C7 00 3F E2 1B 67 22 05 6E 64 0D [18:23:49]GetLastDocTimeStamp 1729880635 [18:23:49]current date 1729880639 [18:23:49]FM_GetShiftState [18:23:49]SAM_PROTO_GetShiftState [18:23:49]wFMCommunicate request_size=4 [18:23:49]MH_SAM_APDU [18:23:49]CAPDU: 80 13 01 00 [18:23:49]Write to MH i2c: E2 08 00 B3 C7 80 13 01 00 00 00 00 00 F7 [18:23:49]Write i2c OK [18:23:49]MH_I2C_Read... [18:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:49]Read from MH i2c: E2 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 0E 00 [18:23:49]MH_I2C_Read... [18:23:49]Read from MH i2c: E2 0E 00 B3 C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BA [18:23:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:23:49]wFMCommunicate OK [18:23:49]SAM_PROTO_GetShiftState done [18:23:49]FM_GetShiftState done [18:23:49]opened in 1729816399 [18:23:49]opened+sec_in_day 1729902799 [18:23:49]quantity*price = 40006 [18:23:49]sum+1 = 40007 [18:23:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 311 25.10.2024 18:23 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191572 ФПД: 180393780173259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191572&fm=180393780173259&tin=02508201610067®Number=0000000000091776&sum=40000 [18:23:50]StoreToDocumentArchive [18:23:50]shift 540 fd 191572 [18:23:50]save to /storage/0540/doc_00191572 [18:23:50]save last doc name /storage/0540/doc_00191572 to /storage/kkm_last_doc_name [18:23:50]save OK [18:23:50]Clear old archive folders... [18:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:50]tlvbuf is 01744E70 [18:23:50]SAM_PROTO_ClearQueue [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 09 00 00 [18:23:50]Write to MH i2c: E2 08 00 C0 C7 80 09 00 00 00 00 00 00 F9 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:50]Read from MH i2c: E2 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 03 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 03 00 C0 C7 00 90 00 FB [18:23:50]RAPDU: 90 00 [18:23:50]wFMCommunicate OK [18:23:50]SAM_PROTO_ClearQueue done [18:23:50]KKMCreateOFDPacket [18:23:50]OFDProtocolAddRootSTLVToBuf [18:23:50]FM_MakeSignedData [18:23:50]FM_MakeSignedData [18:23:50]SAM_PROTO_SignData [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 0D 01 02 [18:23:50]Write to MH i2c: E2 08 00 C1 C7 80 0D 01 02 00 00 00 00 01 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 C1 C7 00 90 00 FC [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=255 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 3F E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EC 02 00 35 04 06 00 A4 [18:23:51]Write to MH i2c: E2 02 01 C2 C7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 3F E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EC 02 00 35 04 06 00 A4 00 00 43 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 C2 C7 00 90 00 FD [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=10 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 02 02 05 11 33 2F D9 CB [18:23:51]Write to MH i2c: E2 0D 00 C3 C7 80 0D 02 02 05 00 11 33 2F D9 CB 00 00 25 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 C3 C7 00 90 00 FE [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 03 02 [18:23:51]Write to MH i2c: E2 08 00 C4 C7 80 0D 03 02 00 00 00 00 06 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0B 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0B 00 C4 C7 00 FB 89 5E DA 4B F3 04 D9 90 00 DE [18:23:51]RAPDU: FB 89 5E DA 4B F3 04 D9 90 00 [18:23:51]wFMCommunicate OK [18:23:51]SAM_PROTO_SignData done [18:23:51]FM_MakeSignedData done [18:23:51]CreateOFDProtocolMessage [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 11 00 00 [18:23:51]Write to MH i2c: E2 08 00 C5 C7 80 11 00 00 00 00 00 00 06 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 17 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 17 00 C5 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [18:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:23:51]wFMCommunicate OK [18:23:51]CreateOFDProtocolMessage done [18:23:51]OFDSenderStorePacket 191572 [18:23:51]StoreOFDPacket docnum=191572 [18:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F B6 07 01 E6 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 3F E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EC 02 00 35 04 06 00 A4 11 33 2F D9 CB FB 89 5E DA 4B F3 04 D9 [18:23:51]CheckFolder [18:23:51]dirname=/storage/ofd_packets [18:23:51]CheckFolder done [18:23:51]ProducePacketName [18:23:51]name=ofd_packets/00191572 [18:23:51]NVStorageSaveData ofd_packets/00191572 [18:23:51]File name is /storage/ofd_packets/00191572 [18:23:51]Write 301 bytes [18:23:51]NVStorageSaveData done [18:23:51]OFDSenderStorePacket done [18:23:51]KKMCreateOFDPacket done [18:23:51]NVStorageSaveData kkm_last_timestamp [18:23:51]File name is /storage/kkm_last_timestamp [18:23:51]Write 4 bytes [18:23:51]NVStorageSaveData done [18:23:51]ExternCall_PrintAddStr [18:23:51]wPrintStart [18:23:51]Write to MH i2c: 01 00 00 C6 C7 8D [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 07 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 07 00 C6 C7 00 00 00 00 00 FF 0F A2 [18:23:51]RasterBufferAndPrint [18:23:51]line Счет N : (1)30872 [18:23:51]line ИНН: 02508201610067 [18:23:51]line Контрольно-Кассовый Чек [18:23:51]line ПРОДАЖА [18:23:51]line ТРК (МРК, ГНК) : 21 [18:23:51]line Товар: 2710124130 [18:23:51]line Аи-92-К-5 [18:23:51]line 5.980 * 66.90 [18:23:51]line = 400.06 [18:23:51]line НДС 12% НСП 1% [18:23:51]line > о реализуемом товаре [18:23:51]line ОКРУГЛЕНИЕ: -0.06 [18:23:51]line ИТОГО: 400.00 [18:23:51]line Внесено: 400.00 [18:23:51]line СДАЧА: 0.00 [18:23:51]line НСП 1% : 3.54 [18:23:51]line НДС 12% : 42.48 [18:23:51]line Наличными: 400.00 [18:23:51]line Безнал.: 0.00 [18:23:51]line Место: АЗС № 170 "Партнер Нефть" [18:23:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:23:51]line СНО: Общий режим [18:23:51]line Чек 311 25.10.2024 18:23 [18:23:52]line Смена: 540 ФФД: 1.0 [18:23:52]line ЗНМ: 0300000110 [18:23:52]line РНМ: 0000000000091776 [18:23:52]line Версия ККМ: 001 [18:23:52]line ФМ: 0000000000871754 [18:23:52]line ФД: 191572 [18:23:52]line ФПД: 180393780173259 [18:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191572&fm=180393780173259&tin=02508201610067®Number=0000000000091776&sum=40000 [18:23:52]OFD Sender: Processing packet 191572 [packets to send 75, broken 74] [18:23:52]ProducePacketName [18:23:52]name=ofd_packets/00191572 [18:23:52]OFD Sender: To server: pG, [18:23:52]CommunicateWithHost lk.salyk.kg:30040 [18:23:52]ConnectInit lk.salyk.kg [18:23:52]written 0, free lines is 4095 [18:23:52]Connected sock=10 [18:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F B6 07 01 E6 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 3F E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EC 02 00 35 04 06 00 A4 11 33 2F D9 CB FB 89 5E DA 4B F3 04 D9 [18:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 A3 47 00 7A AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EC 02 00 F4 03 04 00 0E 87 1B 67 B6 04 01 00 00 B6 1A D8 A6 4C 00 2C E1 [18:23:52]CommunicateWithHost err = 0 [18:23:52]CheckOFDResponse [18:23:52]1017 (14) - 77093643461234 [18:23:52]1041 (16) - 0000000000871754 [18:23:52]1040 (4) - 191572 [18:23:52]1012 (4) - 25.10.2024 11:54 [18:23:52]1206 (1) - 0 [18:23:52]OFD Sender: Remove packet 191572 [18:23:52]ProducePacketName [18:23:52]name=ofd_packets/00191572 [18:23:52]NVStorageDeleteData [18:23:52]Write to MH i2c: 01 00 00 F1 C7 B8 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 07 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 07 00 F1 C7 00 00 00 00 00 D6 0C A1 [18:23:52]RasterBufferAndPrint [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]written 0, free lines is 3302 [18:23:52]MH_Cut [18:23:52]Write to MH i2c: D1 01 00 F8 C7 01 91 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 01 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 01 00 F8 C7 00 90 [18:23:52]Write to MH i2c: 01 00 00 F9 C7 C0 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]OFD Sender: No OFD packet to send [18:23:53]*** Cut start [18:23:53]*** Partial cut [18:23:53]*** CUTSNS_PIN = 1 [18:23:53]*** CUTSNS_PIN = 0 [18:23:53]*** Brake cut motor [18:23:53]Read from MH i2c: 01 [18:23:53]MH_I2C_Read... [18:23:53]*** Stop cut motor [18:23:53]*** Cut end [18:23:53]Read from MH i2c: 01 07 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 F9 C7 00 00 00 00 00 FF 0F D5 [18:23:53]process_action close_receipt done [18:23:53]requested_data is exist [18:23:53]produce_requested_data [18:23:53]requested_item fm.sn is exist - process it [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 11 00 00 [18:23:53]Write to MH i2c: E2 08 00 FA C7 80 11 00 00 00 00 00 00 3B [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:54]Read from MH i2c: E2 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 17 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 17 00 FA C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [18:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:23:54]wFMCommunicate OK [18:23:54]requested_item fd.num is exist - process it [18:23:54]SAM_PROTO_GetFieldsCounters [18:23:54]wFMCommunicate request_size=4 [18:23:54]MH_SAM_APDU [18:23:54]CAPDU: 80 13 00 00 [18:23:54]Write to MH i2c: E2 08 00 FB C7 80 13 00 00 00 00 00 00 3E [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:54]Read from MH i2c: E2 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 62 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 62 00 FB C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:54]wFMCommunicate OK [18:23:54]SAM_PROTO_GetFieldsCounters done [18:23:54]requested_item shift.num is exist - process it [18:23:54]requested_item shift.opened is exist - process it [18:23:54]req_shift_opened [18:23:54]FM_GetShiftState [18:23:54]SAM_PROTO_GetShiftState [18:23:54]wFMCommunicate request_size=4 [18:23:54]MH_SAM_APDU [18:23:54]CAPDU: 80 13 01 00 [18:23:54]Write to MH i2c: E2 08 00 FC C7 80 13 01 00 00 00 00 00 40 [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:54]Read from MH i2c: E2 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 0E 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 0E 00 FC C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 03 [18:23:54]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:23:54]wFMCommunicate OK [18:23:54]SAM_PROTO_GetShiftState done [18:23:54]FM_GetShiftState done [18:23:54]req_shift_opened done [18:23:54]requested_item shift.open_date is exist - process it [18:23:54]req_shift_open_date [18:23:54]req_shift_open_date done [18:23:54]produce_requested_data done [18:23:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191572,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:23:54]process_action_free close_receipt [18:23:54]json_value_free [18:23:54]json_value_free done [18:23:54]process_json_proto returns [18:23:54]Send response to host [18:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191572,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:23:54]free response buf [18:23:54]execute_script done [18:23:54]execute_script returns [18:23:54]free content buf [18:23:54]Sock 9.Close socket [18:23:54]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:25:58]accept exits with 8 [18:25:58]New connection [18:25:58]New thread 3066817892 created [18:25:58]Thread 3066961252 joined [18:25:58]Waiting for new connection... [18:25:58] Sock 8.Parse request [18:25:58]Sock 8.Check first char [18:25:58]Sock 8.First char is OK [18:25:58]request: POST /json_proto HTTP/1.0 [18:25:58]Method: POST [18:25:58]URL: /json_proto [18:25:58]Method is POST - this is cgi request [18:25:58]url: /json_proto [18:25:58]query_string will be loaded in cgi processing [18:25:58]execute_cgi json_proto POST (null) [18:25:58]execute_cgi path=json_proto method=POST [18:25:58]POST find Content-Length [18:25:58]Host: 172.17.63.131:8080 [18:25:58]Content-Length: 681 [18:25:58]Content-Type: application/json [18:25:58] [18:25:58]POST finish read [18:25:58]Found Content-Length = 681 [18:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.120, "sum" : 1680.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1680.00, "total" : 1680.00, "payments": [ { "type": 0, "sum" : 1680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]execute_script... [18:25: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)30873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.120, "sum" : 1680.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1680.00, "total" : 1680.00, "payments": [ { "type": 0, "sum" : 1680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]POST & json_proto [18:25:58]process_json_proto [18:25:58]json parsed OK: [18:25:58]protocol is kg_v1.0 [18:25:58]action value=close_receipt [18:25:58]process_action close_receipt [18:25:58]cmd_close_receipt [18:25:58]MH_GetDate [18:25:58]Write to MH i2c: F0 00 00 FD C7 B3 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 09 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 09 00 FD C7 00 C1 E2 1B 67 22 05 6E 64 DA [18:25:58]GetLastDocTimeStamp 1729880639 [18:25:58]current date 1729880769 [18:25:58]FM_GetShiftState [18:25:58]SAM_PROTO_GetShiftState [18:25:58]wFMCommunicate request_size=4 [18:25:58]MH_SAM_APDU [18:25:58]CAPDU: 80 13 01 00 [18:25:58]Write to MH i2c: E2 08 00 FE C7 80 13 01 00 00 00 00 00 42 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:58]Read from MH i2c: E2 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 FE C7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [18:25:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:25:58]wFMCommunicate OK [18:25:58]SAM_PROTO_GetShiftState done [18:25:58]FM_GetShiftState done [18:25:58]opened in 1729816399 [18:25:58]opened+sec_in_day 1729902799 [18:25:58]quantity*price = 168052 [18:25:58]sum+1 = 168054 [18:25:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1680.00 Внесено: 1680.00 СДАЧА: 0.00 НСП 1% : 14.87 НДС 12% : 178.46 Наличными: 1680.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 312 25.10.2024 18:26 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191573 ФПД: 61268534840924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191573&fm=61268534840924&tin=02508201610067®Number=0000000000091776&sum=168000 [18:26:00]StoreToDocumentArchive [18:26:00]shift 540 fd 191573 [18:26:00]save to /storage/0540/doc_00191573 [18:26:00]save last doc name /storage/0540/doc_00191573 to /storage/kkm_last_doc_name [18:26:00]save OK [18:26:00]Clear old archive folders... [18:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:00]tlvbuf is 016D3DA0 [18:26:00]SAM_PROTO_ClearQueue [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 09 00 00 [18:26:00]Write to MH i2c: E2 08 00 0B C8 80 09 00 00 00 00 00 00 45 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 0B C8 00 90 00 47 [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]SAM_PROTO_ClearQueue done [18:26:00]KKMCreateOFDPacket [18:26:00]OFDProtocolAddRootSTLVToBuf [18:26:00]FM_MakeSignedData [18:26:00]FM_MakeSignedData [18:26:00]SAM_PROTO_SignData [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 01 02 [18:26:00]Write to MH i2c: E2 08 00 0C C8 80 0D 01 02 00 00 00 00 4D [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 0C C8 00 90 00 48 [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=255 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 75 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 C1 E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EC 02 00 35 04 06 00 37 [18:26:00]Write to MH i2c: E2 02 01 0D C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 75 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 C1 E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EC 02 00 35 04 06 00 37 00 00 8A [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 0D C8 00 90 00 49 [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=10 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 02 02 05 B9 31 41 4E 5C [18:26:00]Write to MH i2c: E2 0D 00 0E C8 80 0D 02 02 05 00 B9 31 41 4E 5C 00 00 2F [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 0E C8 00 90 00 4A [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 03 02 [18:26:00]Write to MH i2c: E2 08 00 0F C8 80 0D 03 02 00 00 00 00 52 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 0F C8 00 9D 3A 45 6F 2A E5 54 0E 90 00 4F [18:26:00]RAPDU: 9D 3A 45 6F 2A E5 54 0E 90 00 [18:26:00]wFMCommunicate OK [18:26:00]SAM_PROTO_SignData done [18:26:00]FM_MakeSignedData done [18:26:00]CreateOFDProtocolMessage [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 11 00 00 [18:26:00]Write to MH i2c: E2 08 00 10 C8 80 11 00 00 00 00 00 00 52 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 10 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [18:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:00]wFMCommunicate OK [18:26:00]CreateOFDProtocolMessage done [18:26:00]OFDSenderStorePacket 191573 [18:26:00]StoreOFDPacket docnum=191573 [18:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 9D 07 01 7F 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 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 75 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 C1 E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EC 02 00 35 04 06 00 37 B9 31 41 4E 5C 9D 3A 45 6F 2A E5 54 0E [18:26:00]CheckFolder [18:26:00]dirname=/storage/ofd_packets [18:26:00]CheckFolder done [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00191573 [18:26:00]NVStorageSaveData ofd_packets/00191573 [18:26:00]File name is /storage/ofd_packets/00191573 [18:26:00]Write 301 bytes [18:26:00]NVStorageSaveData done [18:26:00]OFDSenderStorePacket done [18:26:00]KKMCreateOFDPacket done [18:26:00]NVStorageSaveData kkm_last_timestamp [18:26:00]File name is /storage/kkm_last_timestamp [18:26:00]Write 4 bytes [18:26:00]NVStorageSaveData done [18:26:00]ExternCall_PrintAddStr [18:26:00]wPrintStart [18:26:00]Write to MH i2c: 01 00 00 11 C8 D9 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 11 C8 00 00 00 00 00 FF 0F EE [18:26:00]RasterBufferAndPrint [18:26:00]line Счет N : (1)30873 [18:26:00]line ИНН: 02508201610067 [18:26:00]line Контрольно-Кассовый Чек [18:26:00]line ПРОДАЖА [18:26:00]line ТРК (МРК, ГНК) : 12 [18:26:00]line Товар: 2710124130 [18:26:00]line Аи-92-К-5 [18:26:00]line 25.120 * 66.90 [18:26:00]line = 1680.53 [18:26:00]line НДС 12% НСП 1% [18:26:00]line > о реализуемом товаре [18:26:00]line ОКРУГЛЕНИЕ: -0.53 [18:26:00]line ИТОГО: 1680.00 [18:26:00]line Внесено: 1680.00 [18:26:00]line СДАЧА: 0.00 [18:26:00]line НСП 1% : 14.87 [18:26:00]line НДС 12% : 178.46 [18:26:00]line Наличными: 1680.00 [18:26:00]line Безнал.: 0.00 [18:26:00]line Место: АЗС № 170 "Партнер Нефть" [18:26:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:26:00]line СНО: Общий режим [18:26:00]line Чек 312 25.10.2024 18:26 [18:26:00]line Смена: 540 ФФД: 1.0 [18:26:00]line ЗНМ: 0300000110 [18:26:00]line РНМ: 0000000000091776 [18:26:00]line Версия ККМ: 001 [18:26:00]line ФМ: 0000000000871754 [18:26:00]line ФД: 191573 [18:26:00]line ФПД: 61268534840924 [18:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191573&fm=61268534840924&tin=02508201610067®Number=0000000000091776&sum=168000 [18:26:00]OFD Sender: Processing packet 191573 [packets to send 75, broken 74] [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00191573 [18:26:00]OFD Sender: To server: pG, [18:26:00]CommunicateWithHost lk.salyk.kg:30040 [18:26:00]ConnectInit lk.salyk.kg [18:26:00]written 0, free lines is 4095 [18:26:01]Connected sock=10 [18:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 9D 07 01 7F 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 35 FF 03 08 00 03 20 62 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 75 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 C1 E2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EC 02 00 35 04 06 00 37 B9 31 41 4E 5C 9D 3A 45 6F 2A E5 54 0E [18:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 CB 47 00 AE 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EC 02 00 F4 03 04 00 8F 87 1B 67 B6 04 01 00 00 11 AE E7 0D 7C 23 3B 6F [18:26:01]CommunicateWithHost err = 0 [18:26:01]CheckOFDResponse [18:26:01]1017 (14) - 77093643461234 [18:26:01]1041 (16) - 0000000000871754 [18:26:01]1040 (4) - 191573 [18:26:01]1012 (4) - 25.10.2024 11:57 [18:26:01]1206 (1) - 0 [18:26:01]OFD Sender: Remove packet 191573 [18:26:01]ProducePacketName [18:26:01]name=ofd_packets/00191573 [18:26:01]NVStorageDeleteData [18:26:01]Write to MH i2c: 01 00 00 3C C8 04 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 3C C8 00 00 00 00 00 B7 0C CE [18:26:01]RasterBufferAndPrint [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]written 0, free lines is 3264 [18:26:01]MH_Cut [18:26:01]Write to MH i2c: D1 01 00 43 C8 01 DD [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 01 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 01 00 43 C8 00 DC [18:26:01]Write to MH i2c: 01 00 00 44 C8 0C [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]OFD Sender: No OFD packet to send [18:26:02]*** Cut start [18:26:02]*** Partial cut [18:26:02]*** CUTSNS_PIN = 1 [18:26:02]*** CUTSNS_PIN = 0 [18:26:02]*** Brake cut motor [18:26:02]Read from MH i2c: 01 [18:26:02]MH_I2C_Read... [18:26:02]*** Stop cut motor [18:26:02]*** Cut end [18:26:02]Read from MH i2c: 01 07 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: 01 07 00 44 C8 00 00 00 00 00 FF 0F 21 [18:26:02]process_action close_receipt done [18:26:02]requested_data is exist [18:26:02]produce_requested_data [18:26:02]requested_item fm.sn is exist - process it [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 11 00 00 [18:26:02]Write to MH i2c: E2 08 00 45 C8 80 11 00 00 00 00 00 00 87 [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 17 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 17 00 45 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [18:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:02]wFMCommunicate OK [18:26:02]requested_item fd.num is exist - process it [18:26:02]SAM_PROTO_GetFieldsCounters [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 13 00 00 [18:26:02]Write to MH i2c: E2 08 00 46 C8 80 13 00 00 00 00 00 00 8A [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:03]Read from MH i2c: E2 [18:26:03]MH_I2C_Read... [18:26:03]Read from MH i2c: E2 62 00 [18:26:03]MH_I2C_Read... [18:26:03]Read from MH i2c: E2 62 00 46 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [18:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:03]wFMCommunicate OK [18:26:03]SAM_PROTO_GetFieldsCounters done [18:26:03]requested_item shift.num is exist - process it [18:26:03]requested_item shift.opened is exist - process it [18:26:03]req_shift_opened [18:26:03]FM_GetShiftState [18:26:03]SAM_PROTO_GetShiftState [18:26:03]wFMCommunicate request_size=4 [18:26:03]MH_SAM_APDU [18:26:03]CAPDU: 80 13 01 00 [18:26:03]Write to MH i2c: E2 08 00 47 C8 80 13 01 00 00 00 00 00 8C [18:26:03]Write i2c OK [18:26:03]MH_I2C_Read... [18:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:03]Read from MH i2c: E2 [18:26:03]MH_I2C_Read... [18:26:03]Read from MH i2c: E2 0E 00 [18:26:03]MH_I2C_Read... [18:26:03]Read from MH i2c: E2 0E 00 47 C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4F [18:26:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:26:03]wFMCommunicate OK [18:26:03]SAM_PROTO_GetShiftState done [18:26:03]FM_GetShiftState done [18:26:03]req_shift_opened done [18:26:03]requested_item shift.open_date is exist - process it [18:26:03]req_shift_open_date [18:26:03]req_shift_open_date done [18:26:03]produce_requested_data done [18:26:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191573,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:26:03]process_action_free close_receipt [18:26:03]json_value_free [18:26:03]json_value_free done [18:26:03]process_json_proto returns [18:26:03]Send response to host [18:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191573,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:26:03]free response buf [18:26:03]execute_script done [18:26:03]execute_script returns [18:26:03]free content buf [18:26:03]Sock 8.Close socket [18:26:03]Sock 8.Thread stoped [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29: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:29]accept exits with 9 [18:31:29]New connection [18:31:29]New thread 3066961252 created [18:31:29]Thread 3066817892 joined [18:31:29]Waiting for new connection... [18:31:29] Sock 9.Parse request [18:31:29]Sock 9.Check first char [18:31:29]Sock 9.First char is OK [18:31:29]request: POST /json_proto HTTP/1.0 [18:31:29]Method: POST [18:31:29]URL: /json_proto [18:31:29]Method is POST - this is cgi request [18:31:29]url: /json_proto [18:31:29]query_string will be loaded in cgi processing [18:31:29]execute_cgi json_proto POST (null) [18:31:29]execute_cgi path=json_proto method=POST [18:31:29]POST find Content-Length [18:31:29]Host: 172.17.63.131:8080 [18:31:29]Content-Length: 678 [18:31:29]Content-Type: application/json [18:31:29] [18:31:29]POST finish read [18:31:29]Found Content-Length = 678 [18:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:29]execute_script... [18:31:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:29]POST & json_proto [18:31:29]process_json_proto [18:31:29]json parsed OK: [18:31:29]protocol is kg_v1.0 [18:31:29]action value=close_receipt [18:31:29]process_action close_receipt [18:31:29]cmd_close_receipt [18:31:29]MH_GetDate [18:31:29]Write to MH i2c: F0 00 00 48 C8 FF [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 09 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: F0 09 00 48 C8 00 0C E4 1B 67 22 05 6E 64 73 [18:31:29]GetLastDocTimeStamp 1729880769 [18:31:29]current date 1729881100 [18:31:29]FM_GetShiftState [18:31:29]SAM_PROTO_GetShiftState [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 01 00 [18:31:29]Write to MH i2c: E2 08 00 49 C8 80 13 01 00 00 00 00 00 8E [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 49 C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 51 [18:31:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetShiftState done [18:31:29]FM_GetShiftState done [18:31:29]opened in 1729816399 [18:31:29]opened+sec_in_day 1729902799 [18:31:29]quantity*price = 200025 [18:31:29]sum+1 = 200026 [18:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 313 25.10.2024 18:31 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191574 ФПД: 677119794394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183140&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191574&fm=677119794394&tin=02508201610067®Number=0000000000091776&sum=200000 [18:31:31]StoreToDocumentArchive [18:31:31]shift 540 fd 191574 [18:31:31]save to /storage/0540/doc_00191574 [18:31:31]save last doc name /storage/0540/doc_00191574 to /storage/kkm_last_doc_name [18:31:31]save OK [18:31:31]Clear old archive folders... [18:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:31:31]tlvbuf is 019D48F0 [18:31:31]SAM_PROTO_ClearQueue [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 09 00 00 [18:31:31]Write to MH i2c: E2 08 00 56 C8 80 09 00 00 00 00 00 00 90 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 56 C8 00 90 00 92 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]SAM_PROTO_ClearQueue done [18:31:31]KKMCreateOFDPacket [18:31:31]OFDProtocolAddRootSTLVToBuf [18:31:31]FM_MakeSignedData [18:31:31]FM_MakeSignedData [18:31:31]SAM_PROTO_SignData [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 01 02 [18:31:31]Write to MH i2c: E2 08 00 57 C8 80 0D 01 02 00 00 00 00 98 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 57 C8 00 90 00 93 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]wFMCommunicate request_size=255 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 0C E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EC 02 00 35 04 06 00 00 9D A7 7C [18:31:31]Write to MH i2c: E2 02 01 58 C8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0C E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EC 02 00 35 04 06 00 00 9D A7 7C 00 00 DE [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 58 C8 00 90 00 94 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]wFMCommunicate request_size=7 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 02 02 02 1C DA [18:31:31]Write to MH i2c: E2 0A 00 59 C8 80 0D 02 02 02 00 1C DA 00 00 95 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 03 00 59 C8 00 90 00 95 [18:31:31]RAPDU: 90 00 [18:31:31]wFMCommunicate OK [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 0D 03 02 [18:31:31]Write to MH i2c: E2 08 00 5A C8 80 0D 03 02 00 00 00 00 9D [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 0B 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 0B 00 5A C8 00 83 67 AB 68 75 3F 69 64 90 00 1C [18:31:31]RAPDU: 83 67 AB 68 75 3F 69 64 90 00 [18:31:31]wFMCommunicate OK [18:31:31]SAM_PROTO_SignData done [18:31:31]FM_MakeSignedData done [18:31:31]CreateOFDProtocolMessage [18:31:31]wFMCommunicate request_size=4 [18:31:31]MH_SAM_APDU [18:31:31]CAPDU: 80 11 00 00 [18:31:31]Write to MH i2c: E2 08 00 5B C8 80 11 00 00 00 00 00 00 9D [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:31]Read from MH i2c: E2 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 17 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: E2 17 00 5B C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [18:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:31]wFMCommunicate OK [18:31:31]CreateOFDProtocolMessage done [18:31:31]OFDSenderStorePacket 191574 [18:31:31]StoreOFDPacket docnum=191574 [18:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 22 CE 04 01 3A 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 0C E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EC 02 00 35 04 06 00 00 9D A7 7C 1C DA 83 67 AB 68 75 3F 69 64 [18:31:31]CheckFolder [18:31:31]dirname=/storage/ofd_packets [18:31:31]CheckFolder done [18:31:31]ProducePacketName [18:31:31]name=ofd_packets/00191574 [18:31:31]NVStorageSaveData ofd_packets/00191574 [18:31:31]File name is /storage/ofd_packets/00191574 [18:31:31]Write 298 bytes [18:31:31]NVStorageSaveData done [18:31:31]OFDSenderStorePacket done [18:31:31]KKMCreateOFDPacket done [18:31:31]NVStorageSaveData kkm_last_timestamp [18:31:31]File name is /storage/kkm_last_timestamp [18:31:31]Write 4 bytes [18:31:31]NVStorageSaveData done [18:31:31]ExternCall_PrintAddStr [18:31:31]wPrintStart [18:31:31]Write to MH i2c: 01 00 00 5C C8 24 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 5C C8 00 00 00 00 00 FF 0F 39 [18:31:31]RasterBufferAndPrint [18:31:31]line Счет N : (1)30874 [18:31:31]line ИНН: 02508201610067 [18:31:31]line Контрольно-Кассовый Чек [18:31:31]line ПРОДАЖА [18:31:31]line ТРК (МРК, ГНК) : 22 [18:31:31]line Товар: 2710194210 [18:31:31]line ДТ-К-5 [18:31:31]line 26.250 * 76.20 [18:31:31]line = 2000.25 [18:31:31]line НДС 12% НСП 1% [18:31:31]line > о реализуемом товаре [18:31:31]line ОКРУГЛЕНИЕ: -0.25 [18:31:31]line ИТОГО: 2000.00 [18:31:31]line Внесено: 2000.00 [18:31:31]line СДАЧА: 0.00 [18:31:31]line НСП 1% : 17.70 [18:31:31]line НДС 12% : 212.42 [18:31:31]line Наличными: 2000.00 [18:31:31]line Безнал.: 0.00 [18:31:31]line Место: АЗС № 170 "Партнер Нефть" [18:31:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:31:31]line СНО: Общий режим [18:31:31]line Чек 313 25.10.2024 18:31 [18:31:31]line Смена: 540 ФФД: 1.0 [18:31:31]line ЗНМ: 0300000110 [18:31:31]line РНМ: 0000000000091776 [18:31:31]line Версия ККМ: 001 [18:31:31]line ФМ: 0000000000871754 [18:31:31]line ФД: 191574 [18:31:31]line ФПД: 677119794394 [18:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183140&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191574&fm=677119794394&tin=02508201610067®Number=0000000000091776&sum=200000 [18:31:31]OFD Sender: Processing packet 191574 [packets to send 75, broken 74] [18:31:31]ProducePacketName [18:31:31]name=ofd_packets/00191574 [18:31:31]OFD Sender: To server: pG, [18:31:31]CommunicateWithHost lk.salyk.kg:30040 [18:31:31]ConnectInit lk.salyk.kg [18:31:31]written 0, free lines is 4095 [18:31:31]Connected sock=10 [18:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 22 CE 04 01 3A 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 0C E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EC 02 00 35 04 06 00 00 9D A7 7C 1C DA 83 67 AB 68 75 3F 69 64 [18:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 91 84 47 00 97 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EC 02 00 F4 03 04 00 D9 88 1B 67 B6 04 01 00 00 EE BD 43 1E F1 2E 47 FC [18:31:32]CommunicateWithHost err = 0 [18:31:32]CheckOFDResponse [18:31:32]1017 (14) - 77093643461234 [18:31:32]1041 (16) - 0000000000871754 [18:31:32]1040 (4) - 191574 [18:31:32]1012 (4) - 25.10.2024 12:02 [18:31:32]1206 (1) - 0 [18:31:32]OFD Sender: Remove packet 191574 [18:31:32]ProducePacketName [18:31:32]name=ofd_packets/00191574 [18:31:32]NVStorageDeleteData [18:31:32]Write to MH i2c: 01 00 00 87 C8 4F [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 87 C8 00 00 00 00 00 B5 0C 17 [18:31:32]RasterBufferAndPrint [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]line [18:31:32]written 0, free lines is 3258 [18:31:32]MH_Cut [18:31:32]Write to MH i2c: D1 01 00 8E C8 01 28 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 01 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: D1 01 00 8E C8 00 27 [18:31:32]Write to MH i2c: 01 00 00 8F C8 57 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]OFD Sender: No OFD packet to send [18:31:33]*** Cut start [18:31:33]*** Partial cut [18:31:33]*** CUTSNS_PIN = 1 [18:31:33]*** CUTSNS_PIN = 0 [18:31:33]*** Brake cut motor [18:31:33]Read from MH i2c: 01 [18:31:33]MH_I2C_Read... [18:31:33]*** Stop cut motor [18:31:33]*** Cut end [18:31:33]Read from MH i2c: 01 07 00 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: 01 07 00 8F C8 00 00 00 00 00 FF 0F 6C [18:31:33]process_action close_receipt done [18:31:33]requested_data is exist [18:31:33]produce_requested_data [18:31:33]requested_item fm.sn is exist - process it [18:31:33]wFMCommunicate request_size=4 [18:31:33]MH_SAM_APDU [18:31:33]CAPDU: 80 11 00 00 [18:31:33]Write to MH i2c: E2 08 00 90 C8 80 11 00 00 00 00 00 00 D2 [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:33]Read from MH i2c: E2 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: E2 17 00 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: E2 17 00 90 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [18:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:33]wFMCommunicate OK [18:31:33]requested_item fd.num is exist - process it [18:31:33]SAM_PROTO_GetFieldsCounters [18:31:33]wFMCommunicate request_size=4 [18:31:33]MH_SAM_APDU [18:31:33]CAPDU: 80 13 00 00 [18:31:33]Write to MH i2c: E2 08 00 91 C8 80 13 00 00 00 00 00 00 D5 [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:33]Read from MH i2c: E2 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: E2 62 00 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: E2 62 00 91 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:31:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:33]wFMCommunicate OK [18:31:33]SAM_PROTO_GetFieldsCounters done [18:31:33]requested_item shift.num is exist - process it [18:31:33]requested_item shift.opened is exist - process it [18:31:33]req_shift_opened [18:31:33]FM_GetShiftState [18:31:33]SAM_PROTO_GetShiftState [18:31:33]wFMCommunicate request_size=4 [18:31:33]MH_SAM_APDU [18:31:33]CAPDU: 80 13 01 00 [18:31:33]Write to MH i2c: E2 08 00 92 C8 80 13 01 00 00 00 00 00 D7 [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0E 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0E 00 92 C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9A [18:31:34]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_GetShiftState done [18:31:34]FM_GetShiftState done [18:31:34]req_shift_opened done [18:31:34]requested_item shift.open_date is exist - process it [18:31:34]req_shift_open_date [18:31:34]req_shift_open_date done [18:31:34]produce_requested_data done [18:31:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191574,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:31:34]process_action_free close_receipt [18:31:34]json_value_free [18:31:34]json_value_free done [18:31:34]process_json_proto returns [18:31:34]Send response to host [18:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191574,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:31:34]free response buf [18:31:34]execute_script done [18:31:34]execute_script returns [18:31:34]free content buf [18:31:34]Sock 9.Close socket [18:31:34]Sock 9.Thread stoped [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:25]accept exits with 8 [18:32:25]New connection [18:32:25]New thread 3066817892 created [18:32:25]Thread 3066961252 joined [18:32:25]Waiting for new connection... [18:32:25] Sock 8.Parse request [18:32:25]Sock 8.Check first char [18:32:25]Sock 8.First char is OK [18:32:25]request: POST /json_proto HTTP/1.0 [18:32:25]Method: POST [18:32:25]URL: /json_proto [18:32:25]Method is POST - this is cgi request [18:32:25]url: /json_proto [18:32:25]query_string will be loaded in cgi processing [18:32:25]execute_cgi json_proto POST (null) [18:32:25]execute_cgi path=json_proto method=POST [18:32:25]POST find Content-Length [18:32:25]Host: 172.17.63.131:8080 [18:32:25]Content-Length: 676 [18:32:25]Content-Type: application/json [18:32:25] [18:32:25]POST finish read [18:32:25]Found Content-Length = 676 [18:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:25]execute_script... [18:32:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:25]POST & json_proto [18:32:25]process_json_proto [18:32:25]json parsed OK: [18:32:25]protocol is kg_v1.0 [18:32:25]action value=close_receipt [18:32:25]process_action close_receipt [18:32:25]cmd_close_receipt [18:32:25]MH_GetDate [18:32:25]Write to MH i2c: F0 00 00 93 C8 4A [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 93 C8 00 43 E4 1B 67 22 05 6E 64 F5 [18:32:25]GetLastDocTimeStamp 1729881100 [18:32:25]current date 1729881155 [18:32:25]FM_GetShiftState [18:32:25]SAM_PROTO_GetShiftState [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 13 01 00 [18:32:25]Write to MH i2c: E2 08 00 94 C8 80 13 01 00 00 00 00 00 D9 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 94 C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9C [18:32:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetShiftState done [18:32:25]FM_GetShiftState done [18:32:25]opened in 1729816399 [18:32:25]opened+sec_in_day 1729902799 [18:32:25]quantity*price = 21006 [18:32:25]sum+1 = 21008 [18:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 314 25.10.2024 18:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191575 ФПД: 193429426977599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183235&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191575&fm=193429426977599&tin=02508201610067®Number=0000000000091776&sum=21000 [18:32:26]StoreToDocumentArchive [18:32:26]shift 540 fd 191575 [18:32:26]save to /storage/0540/doc_00191575 [18:32:26]save last doc name /storage/0540/doc_00191575 to /storage/kkm_last_doc_name [18:32:26]save OK [18:32:26]Clear old archive folders... [18:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:26]tlvbuf is 015D8970 [18:32:26]SAM_PROTO_ClearQueue [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 09 00 00 [18:32:26]Write to MH i2c: E2 08 00 A1 C8 80 09 00 00 00 00 00 00 DB [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 A1 C8 00 90 00 DD [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]SAM_PROTO_ClearQueue done [18:32:26]KKMCreateOFDPacket [18:32:26]OFDProtocolAddRootSTLVToBuf [18:32:26]FM_MakeSignedData [18:32:26]FM_MakeSignedData [18:32:26]SAM_PROTO_SignData [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 01 02 [18:32:26]Write to MH i2c: E2 08 00 A2 C8 80 0D 01 02 00 00 00 00 E3 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 A2 C8 00 90 00 DE [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=255 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 43 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EC 02 00 35 04 06 00 AF [18:32:26]Write to MH i2c: E2 02 01 A3 C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 43 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EC 02 00 35 04 06 00 AF 00 00 02 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 A3 C8 00 90 00 DF [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=10 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 02 02 05 EC 4C 48 BB 3F [18:32:26]Write to MH i2c: E2 0D 00 A4 C8 80 0D 02 02 05 00 EC 4C 48 BB 3F 00 00 6A [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 03 00 A4 C8 00 90 00 E0 [18:32:26]RAPDU: 90 00 [18:32:26]wFMCommunicate OK [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 0D 03 02 [18:32:26]Write to MH i2c: E2 08 00 A5 C8 80 0D 03 02 00 00 00 00 E8 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:26]Read from MH i2c: E2 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 0B 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: E2 0B 00 A5 C8 00 72 91 0E 0D 74 11 6F 17 90 00 12 [18:32:26]RAPDU: 72 91 0E 0D 74 11 6F 17 90 00 [18:32:26]wFMCommunicate OK [18:32:26]SAM_PROTO_SignData done [18:32:26]FM_MakeSignedData done [18:32:26]CreateOFDProtocolMessage [18:32:26]wFMCommunicate request_size=4 [18:32:26]MH_SAM_APDU [18:32:26]CAPDU: 80 11 00 00 [18:32:26]Write to MH i2c: E2 08 00 A6 C8 80 11 00 00 00 00 00 00 E8 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 A6 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [18:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:32:27]wFMCommunicate OK [18:32:27]CreateOFDProtocolMessage done [18:32:27]OFDSenderStorePacket 191575 [18:32:27]StoreOFDPacket docnum=191575 [18:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 A9 07 01 E3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 43 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EC 02 00 35 04 06 00 AF EC 4C 48 BB 3F 72 91 0E 0D 74 11 6F 17 [18:32:27]CheckFolder [18:32:27]dirname=/storage/ofd_packets [18:32:27]CheckFolder done [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00191575 [18:32:27]NVStorageSaveData ofd_packets/00191575 [18:32:27]File name is /storage/ofd_packets/00191575 [18:32:27]Write 301 bytes [18:32:27]NVStorageSaveData done [18:32:27]OFDSenderStorePacket done [18:32:27]KKMCreateOFDPacket done [18:32:27]NVStorageSaveData kkm_last_timestamp [18:32:27]File name is /storage/kkm_last_timestamp [18:32:27]Write 4 bytes [18:32:27]NVStorageSaveData done [18:32:27]ExternCall_PrintAddStr [18:32:27]wPrintStart [18:32:27]Write to MH i2c: 01 00 00 A7 C8 6F [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 A7 C8 00 00 00 00 00 FF 0F 84 [18:32:27]RasterBufferAndPrint [18:32:27]line Счет N : (1)30875 [18:32:27]line ИНН: 02508201610067 [18:32:27]line Контрольно-Кассовый Чек [18:32:27]line ПРОДАЖА [18:32:27]line ТРК (МРК, ГНК) : 21 [18:32:27]line Товар: 2710124130 [18:32:27]line Аи-92-К-5 [18:32:27]line 3.140 * 66.90 [18:32:27]line = 210.07 [18:32:27]line НДС 12% НСП 1% [18:32:27]line > о реализуемом товаре [18:32:27]line ОКРУГЛЕНИЕ: -0.07 [18:32:27]line ИТОГО: 210.00 [18:32:27]line Внесено: 210.00 [18:32:27]line СДАЧА: 0.00 [18:32:27]line НСП 1% : 1.86 [18:32:27]line НДС 12% : 22.31 [18:32:27]line Наличными: 210.00 [18:32:27]line Безнал.: 0.00 [18:32:27]line Место: АЗС № 170 "Партнер Нефть" [18:32:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:32:27]line СНО: Общий режим [18:32:27]line Чек 314 25.10.2024 18:32 [18:32:27]line Смена: 540 ФФД: 1.0 [18:32:27]line ЗНМ: 0300000110 [18:32:27]line РНМ: 0000000000091776 [18:32:27]line Версия ККМ: 001 [18:32:27]line ФМ: 0000000000871754 [18:32:27]line ФД: 191575 [18:32:27]line ФПД: 193429426977599 [18:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183235&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191575&fm=193429426977599&tin=02508201610067®Number=0000000000091776&sum=21000 [18:32:27]OFD Sender: Processing packet 191575 [packets to send 75, broken 74] [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00191575 [18:32:27]OFD Sender: To server: pG, [18:32:27]CommunicateWithHost lk.salyk.kg:30040 [18:32:27]ConnectInit lk.salyk.kg [18:32:27]written 0, free lines is 4095 [18:32:27]Connected sock=10 [18:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 A9 07 01 E3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 43 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EC 02 00 35 04 06 00 AF EC 4C 48 BB 3F 72 91 0E 0D 74 11 6F 17 [18:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 3A 47 00 FA C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EC 02 00 F4 03 04 00 11 89 1B 67 B6 04 01 00 00 F6 4B AE 03 60 DD F4 2F [18:32:27]CommunicateWithHost err = 0 [18:32:27]CheckOFDResponse [18:32:27]1017 (14) - 77093643461234 [18:32:27]1041 (16) - 0000000000871754 [18:32:27]1040 (4) - 191575 [18:32:27]1012 (4) - 25.10.2024 12:03 [18:32:27]1206 (1) - 0 [18:32:27]OFD Sender: Remove packet 191575 [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00191575 [18:32:27]NVStorageDeleteData [18:32:27]Write to MH i2c: 01 00 00 D2 C8 9A [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 D2 C8 00 00 00 00 00 AD 0C 5A [18:32:27]RasterBufferAndPrint [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]line [18:32:27]written 0, free lines is 3252 [18:32:27]MH_Cut [18:32:27]Write to MH i2c: D1 01 00 D9 C8 01 73 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: D1 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: D1 01 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: D1 01 00 D9 C8 00 72 [18:32:27]Write to MH i2c: 01 00 00 DA C8 A2 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:28]OFD Sender: No OFD packet to send [18:32:28]*** Cut start [18:32:28]*** Partial cut [18:32:28]*** CUTSNS_PIN = 1 [18:32:28]*** CUTSNS_PIN = 0 [18:32:28]*** Brake cut motor [18:32:29]Read from MH i2c: 01 [18:32:29]MH_I2C_Read... [18:32:29]*** Stop cut motor [18:32:29]*** Cut end [18:32:29]Read from MH i2c: 01 07 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: 01 07 00 DA C8 00 00 00 00 00 FF 0F B7 [18:32:29]process_action close_receipt done [18:32:29]requested_data is exist [18:32:29]produce_requested_data [18:32:29]requested_item fm.sn is exist - process it [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 11 00 00 [18:32:29]Write to MH i2c: E2 08 00 DB C8 80 11 00 00 00 00 00 00 1D [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:29]Read from MH i2c: E2 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 17 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 17 00 DB C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [18:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:32:29]wFMCommunicate OK [18:32:29]requested_item fd.num is exist - process it [18:32:29]SAM_PROTO_GetFieldsCounters [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 13 00 00 [18:32:29]Write to MH i2c: E2 08 00 DC C8 80 13 00 00 00 00 00 00 20 [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:29]Read from MH i2c: E2 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 62 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 62 00 DC C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:29]wFMCommunicate OK [18:32:29]SAM_PROTO_GetFieldsCounters done [18:32:29]requested_item shift.num is exist - process it [18:32:29]requested_item shift.opened is exist - process it [18:32:29]req_shift_opened [18:32:29]FM_GetShiftState [18:32:29]SAM_PROTO_GetShiftState [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 13 01 00 [18:32:29]Write to MH i2c: E2 08 00 DD C8 80 13 01 00 00 00 00 00 22 [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:29]Read from MH i2c: E2 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 0E 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 0E 00 DD C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E5 [18:32:29]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:32:29]wFMCommunicate OK [18:32:29]SAM_PROTO_GetShiftState done [18:32:29]FM_GetShiftState done [18:32:29]req_shift_opened done [18:32:29]requested_item shift.open_date is exist - process it [18:32:29]req_shift_open_date [18:32:29]req_shift_open_date done [18:32:29]produce_requested_data done [18:32:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191575,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:32:29]process_action_free close_receipt [18:32:29]json_value_free [18:32:29]json_value_free done [18:32:29]process_json_proto returns [18:32:29]Send response to host [18:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191575,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:32:29]free response buf [18:32:29]execute_script done [18:32:29]execute_script returns [18:32:29]free content buf [18:32:29]Sock 8.Close socket [18:32:29]Sock 8.Thread stoped [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]accept exits with 9 [18:34:33]New connection [18:34:33]New thread 3066961252 created [18:34:33]Thread 3066817892 joined [18:34:33]Waiting for new connection... [18:34:33] Sock 9.Parse request [18:34:33]Sock 9.Check first char [18:34:33]Sock 9.First char is OK [18:34:33]request: POST /json_proto HTTP/1.0 [18:34:33]Method: POST [18:34:33]URL: /json_proto [18:34:33]Method is POST - this is cgi request [18:34:33]url: /json_proto [18:34:33]query_string will be loaded in cgi processing [18:34:33]execute_cgi json_proto POST (null) [18:34:33]execute_cgi path=json_proto method=POST [18:34:33]POST find Content-Length [18:34:33]Host: 172.17.63.131:8080 [18:34:33]Content-Length: 675 [18:34:33]Content-Type: application/json [18:34:33] [18:34:33]POST finish read [18:34:33]Found Content-Length = 675 [18:34:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:33]execute_script... [18:34: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)30876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:33]POST & json_proto [18:34:33]process_json_proto [18:34:33]json parsed OK: [18:34:33]protocol is kg_v1.0 [18:34:33]action value=close_receipt [18:34:33]process_action close_receipt [18:34:33]cmd_close_receipt [18:34:33]MH_GetDate [18:34:33]Write to MH i2c: F0 00 00 DE C8 95 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 09 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 09 00 DE C8 00 C3 E4 1B 67 22 05 6E 64 C0 [18:34:33]GetLastDocTimeStamp 1729881155 [18:34:33]current date 1729881283 [18:34:33]FM_GetShiftState [18:34:33]SAM_PROTO_GetShiftState [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 13 01 00 [18:34:33]Write to MH i2c: E2 08 00 DF C8 80 13 01 00 00 00 00 00 24 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 DF C8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E7 [18:34:33]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:34:33]wFMCommunicate OK [18:34:33]SAM_PROTO_GetShiftState done [18:34:33]FM_GetShiftState done [18:34:33]opened in 1729816399 [18:34:33]opened+sec_in_day 1729902799 [18:34:33]quantity*price = 99974 [18:34:33]sum+1 = 99975 [18:34:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 315 25.10.2024 18:34 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191576 ФПД: 42472802308390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191576&fm=42472802308390&tin=02508201610067®Number=0000000000091776&sum=99900 [18:34:34]StoreToDocumentArchive [18:34:34]shift 540 fd 191576 [18:34:34]save to /storage/0540/doc_00191576 [18:34:34]save last doc name /storage/0540/doc_00191576 to /storage/kkm_last_doc_name [18:34:34]save OK [18:34:34]Clear old archive folders... [18:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:34:34]tlvbuf is 015B0F90 [18:34:34]SAM_PROTO_ClearQueue [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 09 00 00 [18:34:34]Write to MH i2c: E2 08 00 EC C8 80 09 00 00 00 00 00 00 26 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 EC C8 00 90 00 28 [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_ClearQueue done [18:34:34]KKMCreateOFDPacket [18:34:34]OFDProtocolAddRootSTLVToBuf [18:34:34]FM_MakeSignedData [18:34:34]FM_MakeSignedData [18:34:34]SAM_PROTO_SignData [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 01 02 [18:34:34]Write to MH i2c: E2 08 00 ED C8 80 0D 01 02 00 00 00 00 2E [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 ED C8 00 90 00 29 [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=255 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EC 02 00 35 04 06 00 26 A0 F8 4B [18:34:34]Write to MH i2c: E2 02 01 EE C8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EC 02 00 35 04 06 00 26 A0 F8 4B 00 00 63 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 EE C8 00 90 00 2A [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=7 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 02 02 02 51 26 [18:34:34]Write to MH i2c: E2 0A 00 EF C8 80 0D 02 02 02 00 51 26 00 00 AC [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 EF C8 00 90 00 2B [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 03 02 [18:34:34]Write to MH i2c: E2 08 00 F0 C8 80 0D 03 02 00 00 00 00 33 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 F0 C8 00 B8 26 C8 82 80 AA CF CC 90 00 21 [18:34:34]RAPDU: B8 26 C8 82 80 AA CF CC 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_SignData done [18:34:34]FM_MakeSignedData done [18:34:34]CreateOFDProtocolMessage [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 11 00 00 [18:34:34]Write to MH i2c: E2 08 00 F1 C8 80 11 00 00 00 00 00 00 33 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 F1 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [18:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:34:34]wFMCommunicate OK [18:34:34]CreateOFDProtocolMessage done [18:34:34]OFDSenderStorePacket 191576 [18:34:34]StoreOFDPacket docnum=191576 [18:34:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FF E3 04 01 A7 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EC 02 00 35 04 06 00 26 A0 F8 4B 51 26 B8 26 C8 82 80 AA CF CC [18:34:34]CheckFolder [18:34:34]dirname=/storage/ofd_packets [18:34:34]CheckFolder done [18:34:34]ProducePacketName [18:34:34]name=ofd_packets/00191576 [18:34:34]NVStorageSaveData ofd_packets/00191576 [18:34:34]File name is /storage/ofd_packets/00191576 [18:34:34]Write 298 bytes [18:34:34]NVStorageSaveData done [18:34:34]OFDSenderStorePacket done [18:34:34]KKMCreateOFDPacket done [18:34:34]NVStorageSaveData kkm_last_timestamp [18:34:34]File name is /storage/kkm_last_timestamp [18:34:34]Write 4 bytes [18:34:34]NVStorageSaveData done [18:34:34]ExternCall_PrintAddStr [18:34:34]wPrintStart [18:34:34]Write to MH i2c: 01 00 00 F2 C8 BA [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 F2 C8 00 00 00 00 00 FF 0F CF [18:34:34]RasterBufferAndPrint [18:34:34]line Счет N : (1)30876 [18:34:34]line ИНН: 02508201610067 [18:34:34]line Контрольно-Кассовый Чек [18:34:34]line ПРОДАЖА [18:34:34]line ТРК (МРК, ГНК) : 11 [18:34:34]line Товар: 2710194210 [18:34:34]line ДТ-К-5 [18:34:34]line 13.120 * 76.20 [18:34:34]line = 999.74 [18:34:34]line НДС 12% НСП 1% [18:34:34]line > о реализуемом товаре [18:34:34]line ОКРУГЛЕНИЕ: -0.74 [18:34:34]line ИТОГО: 999.00 [18:34:34]line Внесено: 1000.00 [18:34:34]line СДАЧА: 1.00 [18:34:34]line НСП 1% : 8.85 [18:34:34]line НДС 12% : 106.17 [18:34:34]line Наличными: 999.00 [18:34:34]line Безнал.: 0.00 [18:34:34]line Место: АЗС № 170 "Партнер Нефть" [18:34:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:34:34]line СНО: Общий режим [18:34:34]line Чек 315 25.10.2024 18:34 [18:34:34]line Смена: 540 ФФД: 1.0 [18:34:34]line ЗНМ: 0300000110 [18:34:34]line РНМ: 0000000000091776 [18:34:34]line Версия ККМ: 001 [18:34:34]line ФМ: 0000000000871754 [18:34:34]line ФД: 191576 [18:34:34]line ФПД: 42472802308390 [18:34:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191576&fm=42472802308390&tin=02508201610067®Number=0000000000091776&sum=99900 [18:34:35]OFD Sender: Processing packet 191576 [packets to send 75, broken 74] [18:34:35]ProducePacketName [18:34:35]name=ofd_packets/00191576 [18:34:35]OFD Sender: To server: pG, [18:34:35]CommunicateWithHost lk.salyk.kg:30040 [18:34:35]ConnectInit lk.salyk.kg [18:34:35]written 0, free lines is 4095 [18:34:35]Connected sock=10 [18:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FF E3 04 01 A7 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EC 02 00 35 04 06 00 26 A0 F8 4B 51 26 B8 26 C8 82 80 AA CF CC [18:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 59 9D 47 00 97 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EC 02 00 F4 03 04 00 91 89 1B 67 B6 04 01 00 00 A6 A1 B6 6A 01 53 DC B1 [18:34:35]CommunicateWithHost err = 0 [18:34:35]CheckOFDResponse [18:34:35]1017 (14) - 77093643461234 [18:34:35]1041 (16) - 0000000000871754 [18:34:35]1040 (4) - 191576 [18:34:35]1012 (4) - 25.10.2024 12:05 [18:34:35]1206 (1) - 0 [18:34:35]OFD Sender: Remove packet 191576 [18:34:35]ProducePacketName [18:34:35]name=ofd_packets/00191576 [18:34:35]NVStorageDeleteData [18:34:35]Write to MH i2c: 01 00 00 1D C9 E6 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 1D C9 00 00 00 00 00 BB 0C B4 [18:34:35]RasterBufferAndPrint [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]written 0, free lines is 3267 [18:34:35]MH_Cut [18:34:35]Write to MH i2c: D1 01 00 24 C9 01 BF [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 01 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 01 00 24 C9 00 BE [18:34:35]Write to MH i2c: 01 00 00 25 C9 EE [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:36]OFD Sender: No OFD packet to send [18:34:36]*** Cut start [18:34:36]*** Partial cut [18:34:36]*** CUTSNS_PIN = 1 [18:34:36]*** CUTSNS_PIN = 0 [18:34:36]*** Brake cut motor [18:34:37]Read from MH i2c: 01 [18:34:37]MH_I2C_Read... [18:34:37]*** Stop cut motor [18:34:37]*** Cut end [18:34:37]Read from MH i2c: 01 07 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: 01 07 00 25 C9 00 00 00 00 00 FF 0F 03 [18:34:37]process_action close_receipt done [18:34:37]requested_data is exist [18:34:37]produce_requested_data [18:34:37]requested_item fm.sn is exist - process it [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 11 00 00 [18:34:37]Write to MH i2c: E2 08 00 26 C9 80 11 00 00 00 00 00 00 69 [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 26 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [18:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:34:37]wFMCommunicate OK [18:34:37]requested_item fd.num is exist - process it [18:34:37]SAM_PROTO_GetFieldsCounters [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 00 00 [18:34:37]Write to MH i2c: E2 08 00 27 C9 80 13 00 00 00 00 00 00 6C [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 62 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 62 00 27 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [18:34:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:37]wFMCommunicate OK [18:34:37]SAM_PROTO_GetFieldsCounters done [18:34:37]requested_item shift.num is exist - process it [18:34:37]requested_item shift.opened is exist - process it [18:34:37]req_shift_opened [18:34:37]FM_GetShiftState [18:34:37]SAM_PROTO_GetShiftState [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 01 00 [18:34:37]Write to MH i2c: E2 08 00 28 C9 80 13 01 00 00 00 00 00 6E [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 28 C9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 31 [18:34:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:34:37]wFMCommunicate OK [18:34:37]SAM_PROTO_GetShiftState done [18:34:37]FM_GetShiftState done [18:34:37]req_shift_opened done [18:34:37]requested_item shift.open_date is exist - process it [18:34:37]req_shift_open_date [18:34:37]req_shift_open_date done [18:34:37]produce_requested_data done [18:34:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191576,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:34:37]process_action_free close_receipt [18:34:37]json_value_free [18:34:37]json_value_free done [18:34:37]process_json_proto returns [18:34:37]Send response to host [18:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191576,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:34:37]free response buf [18:34:37]execute_script done [18:34:37]execute_script returns [18:34:37]free content buf [18:34:37]Sock 9.Close socket [18:34:37]Sock 9.Thread stoped [18:34:41]OFD Sender: No OFD packet to send [18:34:42]accept exits with 8 [18:34:42]New connection [18:34:42]New thread 3066817892 created [18:34:42]Thread 3066961252 joined [18:34:42]Waiting for new connection... [18:34:42] Sock 8.Parse request [18:34:42]Sock 8.Check first char [18:34:42]Sock 8.First char is OK [18:34:42]request: POST /json_proto HTTP/1.0 [18:34:42]Method: POST [18:34:42]URL: /json_proto [18:34:42]Method is POST - this is cgi request [18:34:42]url: /json_proto [18:34:42]query_string will be loaded in cgi processing [18:34:42]execute_cgi json_proto POST (null) [18:34:42]execute_cgi path=json_proto method=POST [18:34:42]POST find Content-Length [18:34:42]Host: 172.17.63.131:8080 [18:34:42]Content-Length: 677 [18:34:42]Content-Type: application/json [18:34:42] [18:34:42]POST finish read [18:34:42]Found Content-Length = 677 [18:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:42]execute_script... [18:34: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)30877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:42]POST & json_proto [18:34:42]process_json_proto [18:34:42]json parsed OK: [18:34:42]protocol is kg_v1.0 [18:34:42]action value=close_receipt [18:34:42]process_action close_receipt [18:34:42]cmd_close_receipt [18:34:42]MH_GetDate [18:34:42]Write to MH i2c: F0 00 00 29 C9 E1 [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: F0 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: F0 09 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: F0 09 00 29 C9 00 CD E4 1B 67 22 05 6E 64 16 [18:34:42]GetLastDocTimeStamp 1729881283 [18:34:42]current date 1729881293 [18:34:42]FM_GetShiftState [18:34:42]SAM_PROTO_GetShiftState [18:34:42]wFMCommunicate request_size=4 [18:34:42]MH_SAM_APDU [18:34:42]CAPDU: 80 13 01 00 [18:34:42]Write to MH i2c: E2 08 00 2A C9 80 13 01 00 00 00 00 00 70 [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 0E 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 0E 00 2A C9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 33 [18:34:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:34:42]wFMCommunicate OK [18:34:42]SAM_PROTO_GetShiftState done [18:34:42]FM_GetShiftState done [18:34:42]opened in 1729816399 [18:34:42]opened+sec_in_day 1729902799 [18:34:42]quantity*price = 80012 [18:34:42]sum+1 = 80013 [18:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 316 25.10.2024 18:34 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191577 ФПД: 135983761446009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183453&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191577&fm=135983761446009&tin=02508201610067®Number=0000000000091776&sum=80000 [18:34:44]StoreToDocumentArchive [18:34:44]shift 540 fd 191577 [18:34:44]save to /storage/0540/doc_00191577 [18:34:44]save last doc name /storage/0540/doc_00191577 to /storage/kkm_last_doc_name [18:34:44]save OK [18:34:44]Clear old archive folders... [18:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:44]tlvbuf is B6EDCB60 [18:34:44]SAM_PROTO_ClearQueue [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 09 00 00 [18:34:44]Write to MH i2c: E2 08 00 37 C9 80 09 00 00 00 00 00 00 72 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 37 C9 00 90 00 74 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]SAM_PROTO_ClearQueue done [18:34:44]KKMCreateOFDPacket [18:34:44]OFDProtocolAddRootSTLVToBuf [18:34:44]FM_MakeSignedData [18:34:44]FM_MakeSignedData [18:34:44]SAM_PROTO_SignData [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 01 02 [18:34:44]Write to MH i2c: E2 08 00 38 C9 80 0D 01 02 00 00 00 00 7A [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 38 C9 00 90 00 75 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=255 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 CD E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EC 02 00 35 04 06 00 7B [18:34:44]Write to MH i2c: E2 02 01 39 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 CD E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EC 02 00 35 04 06 00 7B 00 00 4A [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 39 C9 00 90 00 76 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=10 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 02 02 05 AD 2F CB D4 79 [18:34:44]Write to MH i2c: E2 0D 00 3A C9 80 0D 02 02 05 00 AD 2F CB D4 79 00 00 7B [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 3A C9 00 90 00 77 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 03 02 [18:34:44]Write to MH i2c: E2 08 00 3B C9 80 0D 03 02 00 00 00 00 7F [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 0B 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 0B 00 3B C9 00 01 D6 D0 3C 62 4F E5 44 90 00 3D [18:34:44]RAPDU: 01 D6 D0 3C 62 4F E5 44 90 00 [18:34:44]wFMCommunicate OK [18:34:44]SAM_PROTO_SignData done [18:34:44]FM_MakeSignedData done [18:34:44]CreateOFDProtocolMessage [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 11 00 00 [18:34:44]Write to MH i2c: E2 08 00 3C C9 80 11 00 00 00 00 00 00 7F [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 17 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 17 00 3C C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [18:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:34:44]wFMCommunicate OK [18:34:44]CreateOFDProtocolMessage done [18:34:44]OFDSenderStorePacket 191577 [18:34:44]StoreOFDPacket docnum=191577 [18:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 02 07 01 4F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 CD E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EC 02 00 35 04 06 00 7B AD 2F CB D4 79 01 D6 D0 3C 62 4F E5 44 [18:34:44]CheckFolder [18:34:44]dirname=/storage/ofd_packets [18:34:44]CheckFolder done [18:34:44]ProducePacketName [18:34:44]name=ofd_packets/00191577 [18:34:44]NVStorageSaveData ofd_packets/00191577 [18:34:44]File name is /storage/ofd_packets/00191577 [18:34:44]Write 301 bytes [18:34:44]NVStorageSaveData done [18:34:44]OFDSenderStorePacket done [18:34:44]KKMCreateOFDPacket done [18:34:44]NVStorageSaveData kkm_last_timestamp [18:34:44]File name is /storage/kkm_last_timestamp [18:34:44]Write 4 bytes [18:34:44]NVStorageSaveData done [18:34:44]ExternCall_PrintAddStr [18:34:44]wPrintStart [18:34:44]Write to MH i2c: 01 00 00 3D C9 06 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 3D C9 00 00 00 00 00 FF 0F 1B [18:34:44]RasterBufferAndPrint [18:34:44]line Счет N : (1)30877 [18:34:44]line ИНН: 02508201610067 [18:34:44]line Контрольно-Кассовый Чек [18:34:44]line ПРОДАЖА [18:34:44]line ТРК (МРК, ГНК) : 12 [18:34:44]line Товар: 2710124130 [18:34:44]line Аи-92-К-5 [18:34:44]line 11.960 * 66.90 [18:34:44]line = 800.12 [18:34:44]line НДС 12% НСП 1% [18:34:44]line > о реализуемом товаре [18:34:44]line ОКРУГЛЕНИЕ: -0.12 [18:34:44]line ИТОГО: 800.00 [18:34:44]line Внесено: 800.00 [18:34:44]line СДАЧА: 0.00 [18:34:44]line НСП 1% : 7.08 [18:34:44]line НДС 12% : 84.97 [18:34:44]line Наличными: 800.00 [18:34:44]line Безнал.: 0.00 [18:34:44]line Место: АЗС № 170 "Партнер Нефть" [18:34:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:34:44]line СНО: Общий режим [18:34:44]line Чек 316 25.10.2024 18:34 [18:34:44]line Смена: 540 ФФД: 1.0 [18:34:44]line ЗНМ: 0300000110 [18:34:44]line РНМ: 0000000000091776 [18:34:44]line Версия ККМ: 001 [18:34:44]line ФМ: 0000000000871754 [18:34:44]line ФД: 191577 [18:34:44]line ФПД: 135983761446009 [18:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183453&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191577&fm=135983761446009&tin=02508201610067®Number=0000000000091776&sum=80000 [18:34:44]written 0, free lines is 4095 [18:34:44]OFD Sender: Processing packet 191577 [packets to send 75, broken 74] [18:34:44]ProducePacketName [18:34:44]name=ofd_packets/00191577 [18:34:44]OFD Sender: To server: pG, [18:34:44]CommunicateWithHost lk.salyk.kg:30040 [18:34:44]ConnectInit lk.salyk.kg [18:34:44]Connected sock=10 [18:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 02 07 01 4F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 CD E4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EC 02 00 35 04 06 00 7B AD 2F CB D4 79 01 D6 D0 3C 62 4F E5 44 [18:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 B1 47 00 32 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EC 02 00 F4 03 04 00 9A 89 1B 67 B6 04 01 00 00 76 AB 1C B5 4C 8C 7E 62 [18:34:44]CommunicateWithHost err = 0 [18:34:44]CheckOFDResponse [18:34:44]1017 (14) - 77093643461234 [18:34:44]1041 (16) - 0000000000871754 [18:34:44]1040 (4) - 191577 [18:34:44]1012 (4) - 25.10.2024 12:05 [18:34:44]1206 (1) - 0 [18:34:44]OFD Sender: Remove packet 191577 [18:34:44]ProducePacketName [18:34:44]name=ofd_packets/00191577 [18:34:44]NVStorageDeleteData [18:34:45]Write to MH i2c: 01 00 00 68 C9 31 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 68 C9 00 00 00 00 00 C9 0C 0D [18:34:45]RasterBufferAndPrint [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]written 0, free lines is 3282 [18:34:45]MH_Cut [18:34:45]Write to MH i2c: D1 01 00 6F C9 01 0A [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 6F C9 00 09 [18:34:45]Write to MH i2c: 01 00 00 70 C9 39 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]OFD Sender: No OFD packet to send [18:34:45]*** Cut start [18:34:45]*** Partial cut [18:34:45]*** CUTSNS_PIN = 1 [18:34:45]*** CUTSNS_PIN = 0 [18:34:46]*** Brake cut motor [18:34:46]Read from MH i2c: 01 [18:34:46]MH_I2C_Read... [18:34:46]*** Stop cut motor [18:34:46]*** Cut end [18:34:46]Read from MH i2c: 01 07 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: 01 07 00 70 C9 00 00 00 00 00 FF 0F 4E [18:34:46]process_action close_receipt done [18:34:46]requested_data is exist [18:34:46]produce_requested_data [18:34:46]requested_item fm.sn is exist - process it [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 11 00 00 [18:34:46]Write to MH i2c: E2 08 00 71 C9 80 11 00 00 00 00 00 00 B4 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 17 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 17 00 71 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [18:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:34:46]wFMCommunicate OK [18:34:46]requested_item fd.num is exist - process it [18:34:46]SAM_PROTO_GetFieldsCounters [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 13 00 00 [18:34:46]Write to MH i2c: E2 08 00 72 C9 80 13 00 00 00 00 00 00 B7 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 62 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 62 00 72 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:46]wFMCommunicate OK [18:34:46]SAM_PROTO_GetFieldsCounters done [18:34:46]requested_item shift.num is exist - process it [18:34:46]requested_item shift.opened is exist - process it [18:34:46]req_shift_opened [18:34:46]FM_GetShiftState [18:34:46]SAM_PROTO_GetShiftState [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 13 01 00 [18:34:46]Write to MH i2c: E2 08 00 73 C9 80 13 01 00 00 00 00 00 B9 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 0E 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 0E 00 73 C9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7C [18:34:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:34:46]wFMCommunicate OK [18:34:46]SAM_PROTO_GetShiftState done [18:34:46]FM_GetShiftState done [18:34:46]req_shift_opened done [18:34:46]requested_item shift.open_date is exist - process it [18:34:46]req_shift_open_date [18:34:46]req_shift_open_date done [18:34:46]produce_requested_data done [18:34:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191577,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:34:46]process_action_free close_receipt [18:34:46]json_value_free [18:34:46]json_value_free done [18:34:46]process_json_proto returns [18:34:46]Send response to host [18:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191577,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:34:46]free response buf [18:34:46]execute_script done [18:34:46]execute_script returns [18:34:46]free content buf [18:34:46]Sock 8.Close socket [18:34:46]Sock 8.Thread stoped [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42: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]accept exits with 9 [18:43:30]New connection [18:43:30]New thread 3066961252 created [18:43:30]Thread 3066817892 joined [18:43:30]Waiting for new connection... [18:43:30] Sock 9.Parse request [18:43:30]Sock 9.Check first char [18:43:30]Sock 9.First char is OK [18:43:30]request: POST /json_proto HTTP/1.0 [18:43:30]Method: POST [18:43:30]URL: /json_proto [18:43:30]Method is POST - this is cgi request [18:43:30]url: /json_proto [18:43:30]query_string will be loaded in cgi processing [18:43:30]execute_cgi json_proto POST (null) [18:43:30]execute_cgi path=json_proto method=POST [18:43:30]POST find Content-Length [18:43:30]Host: 172.17.63.131:8080 [18:43:30]Content-Length: 681 [18:43:30]Content-Type: application/json [18:43:30] [18:43:30]POST finish read [18:43:30]Found Content-Length = 681 [18:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:30]execute_script... [18:43: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)30878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:30]POST & json_proto [18:43:30]process_json_proto [18:43:30]json parsed OK: [18:43:30]protocol is kg_v1.0 [18:43:30]action value=close_receipt [18:43:30]process_action close_receipt [18:43:30]cmd_close_receipt [18:43:30]MH_GetDate [18:43:30]Write to MH i2c: F0 00 00 74 C9 2C [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 09 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: F0 09 00 74 C9 00 DC E6 1B 67 22 05 6E 64 72 [18:43:30]GetLastDocTimeStamp 1729881293 [18:43:30]current date 1729881820 [18:43:30]FM_GetShiftState [18:43:30]SAM_PROTO_GetShiftState [18:43:30]wFMCommunicate request_size=4 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 13 01 00 [18:43:30]Write to MH i2c: E2 08 00 75 C9 80 13 01 00 00 00 00 00 BB [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 0E 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 0E 00 75 C9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7E [18:43:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:43:30]wFMCommunicate OK [18:43:30]SAM_PROTO_GetShiftState done [18:43:30]FM_GetShiftState done [18:43:30]opened in 1729816399 [18:43:30]opened+sec_in_day 1729902799 [18:43:30]quantity*price = 100015 [18:43:30]sum+1 = 100017 [18:43:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 318 25.10.2024 18:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191579 ФПД: 106165534611201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191579&fm=106165534611201&tin=02508201610067®Number=0000000000091776&sum=50000 [18:43:40]StoreToDocumentArchive [18:43:40]shift 540 fd 191579 [18:43:40]save to /storage/0540/doc_00191579 [18:43:40]save last doc name /storage/0540/doc_00191579 to /storage/kkm_last_doc_name [18:43:40]save OK [18:43:40]Clear old archive folders... [18:43:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:43:40]tlvbuf is 016935B0 [18:43:40]SAM_PROTO_ClearQueue [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 09 00 00 [18:43:40]Write to MH i2c: E2 08 00 CD C9 80 09 00 00 00 00 00 00 08 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 CD C9 00 90 00 0A [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_ClearQueue done [18:43:40]KKMCreateOFDPacket [18:43:40]OFDProtocolAddRootSTLVToBuf [18:43:40]FM_MakeSignedData [18:43:40]FM_MakeSignedData [18:43:40]SAM_PROTO_SignData [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 01 02 [18:43:40]Write to MH i2c: E2 08 00 CE C9 80 0D 01 02 00 00 00 00 10 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 CE C9 00 90 00 0B [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]wFMCommunicate request_size=255 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 01 00 00 F4 03 04 00 E6 E6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EC 02 00 35 04 06 00 60 8E 96 FA [18:43:40]Write to MH i2c: E2 02 01 CF C9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 3E 01 00 00 F4 03 04 00 E6 E6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EC 02 00 35 04 06 00 60 8E 96 FA 00 00 94 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 CF C9 00 90 00 0C [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]wFMCommunicate request_size=7 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 02 02 02 57 01 [18:43:41]Write to MH i2c: E2 0A 00 D0 C9 80 0D 02 02 02 00 57 01 00 00 6F [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 D0 C9 00 90 00 0D [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 03 02 [18:43:41]Write to MH i2c: E2 08 00 D1 C9 80 0D 03 02 00 00 00 00 15 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0B 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0B 00 D1 C9 00 25 9D 5C 0C 76 AD AE 9D 90 00 AE [18:43:41]RAPDU: 25 9D 5C 0C 76 AD AE 9D 90 00 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_SignData done [18:43:41]FM_MakeSignedData done [18:43:41]CreateOFDProtocolMessage [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 11 00 00 [18:43:41]Write to MH i2c: E2 08 00 D2 C9 80 11 00 00 00 00 00 00 15 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 17 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 17 00 D2 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [18:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:43:41]wFMCommunicate OK [18:43:41]CreateOFDProtocolMessage done [18:43:41]OFDSenderStorePacket 191579 [18:43:41]StoreOFDPacket docnum=191579 [18:43:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E1 D3 04 01 35 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 32 31 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 3E 01 00 00 F4 03 04 00 E6 E6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EC 02 00 35 04 06 00 60 8E 96 FA 57 01 25 9D 5C 0C 76 AD AE 9D [18:43:41]CheckFolder [18:43:41]dirname=/storage/ofd_packets [18:43:41]CheckFolder done [18:43:41]ProducePacketName [18:43:41]name=ofd_packets/00191579 [18:43:41]NVStorageSaveData ofd_packets/00191579 [18:43:41]File name is /storage/ofd_packets/00191579 [18:43:41]Write 298 bytes [18:43:41]NVStorageSaveData done [18:43:41]OFDSenderStorePacket done [18:43:41]KKMCreateOFDPacket done [18:43:41]NVStorageSaveData kkm_last_timestamp [18:43:41]File name is /storage/kkm_last_timestamp [18:43:41]Write 4 bytes [18:43:41]NVStorageSaveData done [18:43:41]ExternCall_PrintAddStr [18:43:41]wPrintStart [18:43:41]Write to MH i2c: 01 00 00 D3 C9 9C [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 07 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 07 00 D3 C9 00 00 00 00 00 FF 0F B1 [18:43:41]RasterBufferAndPrint [18:43:41]line Счет N : (1)30879 [18:43:41]line ИНН: 02508201610067 [18:43:41]line Контрольно-Кассовый Чек [18:43:41]line ПРОДАЖА [18:43:41]line ТРК (МРК, ГНК) : 22 [18:43:41]line Товар: 2710194210 [18:43:41]line ДТ-К-5 [18:43:41]line 6.570 * 76.20 [18:43:41]line = 500.63 [18:43:41]line НДС 12% НСП 1% [18:43:41]line > о реализуемом товаре [18:43:41]line ОКРУГЛЕНИЕ: -0.63 [18:43:41]line ИТОГО: 500.00 [18:43:41]line Внесено: 500.00 [18:43:41]line СДАЧА: 0.00 [18:43:41]line НСП 1% : 4.43 [18:43:41]line НДС 12% : 53.16 [18:43:41]line Наличными: 500.00 [18:43:41]line Безнал.: 0.00 [18:43:41]line Место: АЗС № 170 "Партнер Нефть" [18:43:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:43:41]line СНО: Общий режим [18:43:41]line Чек 318 25.10.2024 18:43 [18:43:41]line Смена: 540 ФФД: 1.0 [18:43:41]line ЗНМ: 0300000110 [18:43:41]line РНМ: 0000000000091776 [18:43:41]line Версия ККМ: 001 [18:43:41]line ФМ: 0000000000871754 [18:43:41]line ФД: 191579 [18:43:41]line ФПД: 106165534611201 [18:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191579&fm=106165534611201&tin=02508201610067®Number=0000000000091776&sum=50000 [18:43:41]OFD Sender: Processing packet 191579 [packets to send 75, broken 74] [18:43:41]ProducePacketName [18:43:41]name=ofd_packets/00191579 [18:43:41]OFD Sender: To server: pG, [18:43:41]CommunicateWithHost lk.salyk.kg:30040 [18:43:41]ConnectInit lk.salyk.kg [18:43:41]written 0, free lines is 4095 [18:43:41]Connected sock=9 [18:43:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E1 D3 04 01 35 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 32 31 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 3E 01 00 00 F4 03 04 00 E6 E6 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EC 02 00 35 04 06 00 60 8E 96 FA 57 01 25 9D 5C 0C 76 AD AE 9D [18:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 E9 47 00 17 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EC 02 00 F4 03 04 00 B3 8B 1B 67 B6 04 01 00 00 79 A6 61 8B 79 6A 39 E9 [18:43:42]CommunicateWithHost err = 0 [18:43:42]CheckOFDResponse [18:43:42]1017 (14) - 77093643461234 [18:43:42]1041 (16) - 0000000000871754 [18:43:42]1040 (4) - 191579 [18:43:42]1012 (4) - 25.10.2024 12:14 [18:43:42]1206 (1) - 0 [18:43:42]OFD Sender: Remove packet 191579 [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00191579 [18:43:42]NVStorageDeleteData [18:43:42]Write to MH i2c: 01 00 00 FE C9 C7 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 FE C9 00 00 00 00 00 BE 0C 98 [18:43:42]RasterBufferAndPrint [18:43:42]line [18:43:42]line [18:43:42]line [18:43:42]line [18:43:42]line [18:43:42]written 0, free lines is 3280 [18:43:42]MH_Cut [18:43:42]Write to MH i2c: D1 01 00 05 CA 01 A1 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: D1 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: D1 01 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: D1 01 00 05 CA 00 A0 [18:43:42]Write to MH i2c: 01 00 00 06 CA D0 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]OFD Sender: No OFD packet to send [18:43:42]*** Cut start [18:43:42]*** Partial cut [18:43:42]*** CUTSNS_PIN = 1 [18:43:43]*** CUTSNS_PIN = 0 [18:43:43]*** Brake cut motor [18:43:43]Read from MH i2c: 01 [18:43:43]MH_I2C_Read... [18:43:43]*** Stop cut motor [18:43:43]*** Cut end [18:43:43]Read from MH i2c: 01 07 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 06 CA 00 00 00 00 00 FF 0F E5 [18:43:43]process_action close_receipt done [18:43:43]requested_data is exist [18:43:43]produce_requested_data [18:43:43]requested_item fm.sn is exist - process it [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 11 00 00 [18:43:43]Write to MH i2c: E2 08 00 07 CA 80 11 00 00 00 00 00 00 4B [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 17 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 17 00 07 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [18:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:43:43]wFMCommunicate OK [18:43:43]requested_item fd.num is exist - process it [18:43:43]SAM_PROTO_GetFieldsCounters [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 13 00 00 [18:43:43]Write to MH i2c: E2 08 00 08 CA 80 13 00 00 00 00 00 00 4E [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 62 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 62 00 08 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [18:43:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:43]wFMCommunicate OK [18:43:43]SAM_PROTO_GetFieldsCounters done [18:43:43]requested_item shift.num is exist - process it [18:43:43]requested_item shift.opened is exist - process it [18:43:43]req_shift_opened [18:43:43]FM_GetShiftState [18:43:43]SAM_PROTO_GetShiftState [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 13 01 00 [18:43:43]Write to MH i2c: E2 08 00 09 CA 80 13 01 00 00 00 00 00 50 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:43]Read from MH i2c: E2 0E 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 0E 00 09 CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 13 [18:43:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:43:43]wFMCommunicate OK [18:43:43]SAM_PROTO_GetShiftState done [18:43:43]FM_GetShiftState done [18:43:43]req_shift_opened done [18:43:43]requested_item shift.open_date is exist - process it [18:43:43]req_shift_open_date [18:43:43]req_shift_open_date done [18:43:43]produce_requested_data done [18:43:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191579,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:43:43]process_action_free close_receipt [18:43:43]json_value_free [18:43:43]json_value_free done [18:43:43]process_json_proto returns [18:43:43]Send response to host [18:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191579,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:43:43]free response buf [18:43:43]execute_script done [18:43:43]execute_script returns [18:43:43]free content buf [18:43:43]Sock 10.Close socket [18:43:43]Sock 10.Thread stoped [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:56]ConnectInit Can't connect to host [18:45:57]OFD Sender: No OFD packet to send [18:45:57]accept exits with 8 [18:45:57]New connection [18:45:57]New thread 3066961252 created [18:45:57]Thread 3066817892 joined [18:45:57]Waiting for new connection... [18:45:57] Sock 8.Parse request [18:45:57]Sock 8.Check first char [18:45:57]Sock 8.First char is OK [18:45:57]request: POST /json_proto HTTP/1.0 [18:45:57]Method: POST [18:45:57]URL: /json_proto [18:45:57]Method is POST - this is cgi request [18:45:57]url: /json_proto [18:45:57]query_string will be loaded in cgi processing [18:45:57]execute_cgi json_proto POST (null) [18:45:57]execute_cgi path=json_proto method=POST [18:45:57]POST find Content-Length [18:45:57]Host: 172.17.63.131:8080 [18:45:57]Content-Length: 676 [18:45:57]Content-Type: application/json [18:45:57] [18:45:57]POST finish read [18:45:57]Found Content-Length = 676 [18:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:57]execute_script... [18:45:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:57]POST & json_proto [18:45:57]process_json_proto [18:45:57]json parsed OK: [18:45:57]protocol is kg_v1.0 [18:45:57]action value=close_receipt [18:45:57]process_action close_receipt [18:45:57]cmd_close_receipt [18:45:57]MH_GetDate [18:45:57]Write to MH i2c: F0 00 00 0A CA C3 [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: F0 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: F0 09 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: F0 09 00 0A CA 00 70 E7 1B 67 22 05 6E 64 9E [18:45:57]GetLastDocTimeStamp 1729881830 [18:45:57]current date 1729881968 [18:45:57]FM_GetShiftState [18:45:57]SAM_PROTO_GetShiftState [18:45:57]wFMCommunicate request_size=4 [18:45:57]MH_SAM_APDU [18:45:57]CAPDU: 80 13 01 00 [18:45:57]Write to MH i2c: E2 08 00 0B CA 80 13 01 00 00 00 00 00 52 [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:58]Read from MH i2c: E2 [18:45:58]MH_I2C_Read... [18:45:58]Read from MH i2c: E2 0E 00 [18:45:58]MH_I2C_Read... [18:45:58]Read from MH i2c: E2 0E 00 0B CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 15 [18:45:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:45:58]wFMCommunicate OK [18:45:58]SAM_PROTO_GetShiftState done [18:45:58]FM_GetShiftState done [18:45:58]opened in 1729816399 [18:45:58]opened+sec_in_day 1729902799 [18:45:58]quantity*price = 20003 [18:45:58]sum+1 = 20004 [18:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре [18:45:59]line ОКРУГЛЕНИЕ: -0.03 [18:45:59]line ИТОГО: 200.00 [18:45:59]line Внесено: 200.00 [18:45:59]line СДАЧА: 0.00 [18:45:59]line НСП 1% : 1.77 [18:45:59]line НДС 12% : 21.24 [18:45:59]line Наличными: 200.00 [18:45:59]line Безнал.: 0.00 [18:45:59]line Место: АЗС № 170 "Партнер Нефть" [18:45:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:45:59]line СНО: Общий режим [18:45:59]line Чек 319 25.10.2024 18:46 [18:45:59]line Смена: 540 ФФД: 1.0 [18:45:59]line ЗНМ: 0300000110 [18:45:59]line РНМ: 0000000000091776 [18:45:59]line Версия ККМ: 001 [18:45:59]line ФМ: 0000000000871754 [18:45:59]line ФД: 191580 [18:45:59]line ФПД: 198169116029071 [18:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191580&fm=198169116029071&tin=02508201610067®Number=0000000000091776&sum=20000 [18:45:59]written 0, free lines is 4095 [18:45:59]OFD Sender: Processing packet 191580 [packets to send 75, broken 74] [18:45:59]ProducePacketName [18:45:59]name=ofd_packets/00191580 [18:45:59]OFD Sender: To server: pG, [18:45:59]CommunicateWithHost lk.salyk.kg:30040 [18:45:59]ConnectInit lk.salyk.kg [18:45:59]Connected sock=10 [18:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 B1 07 01 A8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 70 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EC 02 00 35 04 06 00 B4 3B D7 C4 30 8F D9 DE 29 85 12 3E BA AA [18:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FA 45 47 00 50 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 31 37 35 34 10 04 04 00 5C EC 02 00 F4 03 04 00 3D 8C 1B 67 B6 04 01 00 00 B3 4C 17 7B 9A CA F2 2B [18:46:00]CommunicateWithHost err = 0 [18:46:00]CheckOFDResponse [18:46:00]1017 (14) - 77093643461234 [18:46:00]1041 (16) - 0000000000871754 [18:46:00]1040 (4) - 191580 [18:46:00]1012 (4) - 25.10.2024 12:17 [18:46:00]1206 (1) - 0 [18:46:00]OFD Sender: Remove packet 191580 [18:46:00]ProducePacketName [18:46:00]name=ofd_packets/00191580 [18:46:00]NVStorageDeleteData [18:46:00]Write to MH i2c: 01 00 00 49 CA 13 [18:46:00]Write i2c OK [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: 01 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: 01 07 00 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: 01 07 00 49 CA 00 00 00 00 00 F3 0C 19 [18:46:00]RasterBufferAndPrint [18:46:00]line [18:46:00]line [18:46:00]line [18:46:00]line [18:46:00]line [18:46:00]written 0, free lines is 3337 [18:46:00]MH_Cut [18:46:00]Write to MH i2c: D1 01 00 50 CA 01 EC [18:46:00]Write i2c OK [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: D1 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: D1 01 00 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: D1 01 00 50 CA 00 EB [18:46:00]Write to MH i2c: 01 00 00 51 CA 1B [18:46:00]Write i2c OK [18:46:00]MH_I2C_Read... [18:46:00]OFD Sender: No OFD packet to send [18:46:01]*** Cut start [18:46:01]*** Partial cut [18:46:01]*** CUTSNS_PIN = 1 [18:46:01]*** CUTSNS_PIN = 0 [18:46:01]*** Brake cut motor [18:46:01]Read from MH i2c: 01 [18:46:01]MH_I2C_Read... [18:46:01]*** Stop cut motor [18:46:01]*** Cut end [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 51 CA 00 00 00 00 00 FF 0F 30 [18:46:01]process_action close_receipt done [18:46:01]requested_data is exist [18:46:01]produce_requested_data [18:46:01]requested_item fm.sn is exist - process it [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 52 CA 80 11 00 00 00 00 00 00 96 [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 52 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [18:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:01]wFMCommunicate OK [18:46:01]requested_item fd.num is exist - process it [18:46:01]SAM_PROTO_GetFieldsCounters [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 13 00 00 [18:46:01]Write to MH i2c: E2 08 00 53 CA 80 13 00 00 00 00 00 00 99 [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 62 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 62 00 53 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:46:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:01]wFMCommunicate OK [18:46:01]SAM_PROTO_GetFieldsCounters done [18:46:01]requested_item shift.num is exist - process it [18:46:01]requested_item shift.opened is exist - process it [18:46:01]req_shift_opened [18:46:01]FM_GetShiftState [18:46:01]SAM_PROTO_GetShiftState [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 13 01 00 [18:46:01]Write to MH i2c: E2 08 00 54 CA 80 13 01 00 00 00 00 00 9B [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:02]Read from MH i2c: E2 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: E2 0E 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: E2 0E 00 54 CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5E [18:46:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:46:02]wFMCommunicate OK [18:46:02]SAM_PROTO_GetShiftState done [18:46:02]FM_GetShiftState done [18:46:02]req_shift_opened done [18:46:02]requested_item shift.open_date is exist - process it [18:46:02]req_shift_open_date [18:46:02]req_shift_open_date done [18:46:02]produce_requested_data done [18:46:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191580,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:46:02]process_action_free close_receipt [18:46:02]json_value_free [18:46:02]json_value_free done [18:46:02]process_json_proto returns [18:46:02]Send response to host [18:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191580,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:46:02]free response buf [18:46:02]execute_script done [18:46:02]execute_script returns [18:46:02]free content buf [18:46:02]Sock 8.Close socket [18:46:02]Sock 8.Thread stoped [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:14]accept exits with 9 [18:46:14]New connection [18:46:14]New thread 3066817892 created [18:46:14]Thread 3066961252 joined [18:46:14]Waiting for new connection... [18:46:14] Sock 9.Parse request [18:46:14]Sock 9.Check first char [18:46:14]Sock 9.First char is OK [18:46:14]request: POST /json_proto HTTP/1.0 [18:46:14]Method: POST [18:46:14]URL: /json_proto [18:46:14]Method is POST - this is cgi request [18:46:14]url: /json_proto [18:46:14]query_string will be loaded in cgi processing [18:46:14]execute_cgi json_proto POST (null) [18:46:14]execute_cgi path=json_proto method=POST [18:46:14]POST find Content-Length [18:46:14]Host: 172.17.63.131:8080 [18:46:14]Content-Length: 678 [18:46:14]Content-Type: application/json [18:46:14] [18:46:14]POST finish read [18:46:14]Found Content-Length = 678 [18:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:46:14]execute_script... [18:46: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)30880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:46:14]POST & json_proto [18:46:14]process_json_proto [18:46:14]json parsed OK: [18:46:14]protocol is kg_v1.0 [18:46:14]action value=close_receipt [18:46:14]process_action close_receipt [18:46:14]cmd_close_receipt [18:46:14]MH_GetDate [18:46:14]Write to MH i2c: F0 00 00 55 CA 0E [18:46:14]Write i2c OK [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: F0 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: F0 09 00 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: F0 09 00 55 CA 00 80 E7 1B 67 22 05 6E 64 F9 [18:46:14]GetLastDocTimeStamp 1729881968 [18:46:14]current date 1729881984 [18:46:14]FM_GetShiftState [18:46:14]SAM_PROTO_GetShiftState [18:46:14]wFMCommunicate request_size=4 [18:46:14]MH_SAM_APDU [18:46:14]CAPDU: 80 13 01 00 [18:46:14]Write to MH i2c: E2 08 00 56 CA 80 13 01 00 00 00 00 00 9D [18:46:14]Write i2c OK [18:46:14]MH_I2C_Read... [18:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:14]Read from MH i2c: E2 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: E2 0E 00 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: E2 0E 00 56 CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 60 [18:46:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:46:14]wFMCommunicate OK [18:46:14]SAM_PROTO_GetShiftState done [18:46:14]FM_GetShiftState done [18:46:14]opened in 1729816399 [18:46:14]opened+sec_in_day 1729902799 [18:46:14]quantity*price = 120015 [18:46:14]sum+1 = 120016 [18:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 320 25.10.2024 18:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191581 ФПД: 234732855143670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191581&fm=234732855143670&tin=02508201610067®Number=0000000000091776&sum=120000 [18:46:15]StoreToDocumentArchive [18:46:15]shift 540 fd 191581 [18:46:15]save to /storage/0540/doc_00191581 [18:46:15]save last doc name /storage/0540/doc_00191581 to /storage/kkm_last_doc_name [18:46:15]save OK [18:46:15]Clear old archive folders... [18:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:46:15]tlvbuf is 019E7670 [18:46:15]SAM_PROTO_ClearQueue [18:46:15]wFMCommunicate request_size=4 [18:46:15]MH_SAM_APDU [18:46:15]CAPDU: 80 09 00 00 [18:46:15]Write to MH i2c: E2 08 00 63 CA 80 09 00 00 00 00 00 00 9F [18:46:15]Write i2c OK [18:46:15]MH_I2C_Read... [18:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:15]Read from MH i2c: E2 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 03 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 03 00 63 CA 00 90 00 A1 [18:46:15]RAPDU: 90 00 [18:46:15]wFMCommunicate OK [18:46:15]SAM_PROTO_ClearQueue done [18:46:15]KKMCreateOFDPacket [18:46:15]OFDProtocolAddRootSTLVToBuf [18:46:15]FM_MakeSignedData [18:46:15]FM_MakeSignedData [18:46:15]SAM_PROTO_SignData [18:46:15]wFMCommunicate request_size=4 [18:46:15]MH_SAM_APDU [18:46:15]CAPDU: 80 0D 01 02 [18:46:15]Write to MH i2c: E2 08 00 64 CA 80 0D 01 02 00 00 00 00 A7 [18:46:15]Write i2c OK [18:46:15]MH_I2C_Read... [18:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:15]Read from MH i2c: E2 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 03 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 03 00 64 CA 00 90 00 A2 [18:46:15]RAPDU: 90 00 [18:46:15]wFMCommunicate OK [18:46:15]wFMCommunicate request_size=255 [18:46:15]MH_SAM_APDU [18:46:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 80 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EC 02 00 35 04 06 00 D5 7D 00 72 [18:46:15]Write to MH i2c: E2 02 01 65 CA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 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 40 01 00 00 F4 03 04 00 80 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 OFD Sender: No OFD packet to send [18:46:16]30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EC 02 00 35 04 06 00 D5 7D 00 72 00 00 F6 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 65 CA 00 90 00 A3 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]wFMCommunicate request_size=7 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 02 02 02 AC F6 [18:46:16]Write to MH i2c: E2 0A 00 66 CA 80 0D 02 02 02 00 AC F6 00 00 50 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 66 CA 00 90 00 A4 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 03 02 [18:46:16]Write to MH i2c: E2 08 00 67 CA 80 0D 03 02 00 00 00 00 AC [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0B 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0B 00 67 CA 00 EC 3E F9 4B 0F 15 2C 9D 90 00 08 [18:46:16]RAPDU: EC 3E F9 4B 0F 15 2C 9D 90 00 [18:46:16]wFMCommunicate OK [18:46:16]SAM_PROTO_SignData done [18:46:16]FM_MakeSignedData done [18:46:16]CreateOFDProtocolMessage [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 11 00 00 [18:46:16]Write to MH i2c: E2 08 00 68 CA 80 11 00 00 00 00 00 00 AC [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:16]Read from MH i2c: E2 17 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 17 00 68 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [18:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:16]wFMCommunicate OK [18:46:16]CreateOFDProtocolMessage done [18:46:16]OFDSenderStorePacket 191581 [18:46:16]StoreOFDPacket docnum=191581 [18:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CF FB 04 01 39 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 80 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EC 02 00 35 04 06 00 D5 7D 00 72 AC F6 EC 3E F9 4B 0F 15 2C 9D [18:46:16]CheckFolder [18:46:16]dirname=/storage/ofd_packets [18:46:16]CheckFolder done [18:46:16]ProducePacketName [18:46:16]name=ofd_packets/00191581 [18:46:16]NVStorageSaveData ofd_packets/00191581 [18:46:16]File name is /storage/ofd_packets/00191581 [18:46:16]Write 298 bytes [18:46:16]NVStorageSaveData done [18:46:16]OFDSenderStorePacket done [18:46:16]KKMCreateOFDPacket done [18:46:16]NVStorageSaveData kkm_last_timestamp [18:46:16]File name is /storage/kkm_last_timestamp [18:46:16]Write 4 bytes [18:46:16]NVStorageSaveData done [18:46:16]ExternCall_PrintAddStr [18:46:16]wPrintStart [18:46:16]Write to MH i2c: 01 00 00 69 CA 33 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 07 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 07 00 69 CA 00 00 00 00 00 FF 0F 48 [18:46:16]RasterBufferAndPrint [18:46:16]line Счет N : (1)30880 [18:46:16]line ИНН: 02508201610067 [18:46:16]line Контрольно-Кассовый Чек [18:46:16]line ПРОДАЖА [18:46:16]line ТРК (МРК, ГНК) : 22 [18:46:16]line Товар: 2710194210 [18:46:16]line ДТ-К-5 [18:46:16]line 15.750 * 76.20 [18:46:16]line = 1200.15 [18:46:16]line НДС 12% НСП 1% [18:46:16]line > о реализуемом товаре [18:46:16]line ОКРУГЛЕНИЕ: -0.15 [18:46:16]line ИТОГО: 1200.00 [18:46:16]line Внесено: 1200.00 [18:46:16]line СДАЧА: 0.00 [18:46:16]line НСП 1% : 10.62 [18:46:16]line НДС 12% : 127.45 [18:46:16]line Наличными: 1200.00 [18:46:16]line Безнал.: 0.00 [18:46:16]line Место: АЗС № 170 "Партнер Нефть" [18:46:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:46:16]line СНО: Общий режим [18:46:16]line Чек 320 25.10.2024 18:46 [18:46:16]line Смена: 540 ФФД: 1.0 [18:46:16]line ЗНМ: 0300000110 [18:46:16]line РНМ: 0000000000091776 [18:46:16]line Версия ККМ: 001 [18:46:16]line ФМ: 0000000000871754 [18:46:16]line ФД: 191581 [18:46:16]line ФПД: 234732855143670 [18:46:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191581&fm=234732855143670&tin=02508201610067®Number=0000000000091776&sum=120000 [18:46:16]written 0, free lines is 4095 [18:46:16]OFD Sender: Processing packet 191581 [packets to send 75, broken 74] [18:46:16]ProducePacketName [18:46:16]name=ofd_packets/00191581 [18:46:16]OFD Sender: To server: pG, [18:46:16]CommunicateWithHost lk.salyk.kg:30040 [18:46:16]ConnectInit lk.salyk.kg [18:46:16]Connected sock=11 [18:46:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CF FB 04 01 39 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 80 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EC 02 00 35 04 06 00 D5 7D 00 72 AC F6 EC 3E F9 4B 0F 15 2C 9D [18:46:17]Write to MH i2c: 01 00 00 94 CA 5E [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 94 CA 00 00 00 00 00 D1 0C 42 [18:46:17]RasterBufferAndPrint [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C 33 47 00 23 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EC 02 00 F4 03 04 00 4E 8C 1B 67 B6 04 01 00 00 48 C1 29 E5 68 E8 A3 F1 [18:46:17]CommunicateWithHost err = 0 [18:46:17]CheckOFDResponse [18:46:17]1017 (14) - 77093643461234 [18:46:17]1041 (16) - 0000000000871754 [18:46:17]1040 (4) - 191581 [18:46:17]1012 (4) - 25.10.2024 12:17 [18:46:17]1206 (1) - 0 [18:46:17]OFD Sender: Remove packet 191581 [18:46:17]ProducePacketName [18:46:17]name=ofd_packets/00191581 [18:46:17]NVStorageDeleteData [18:46:17]written 0, free lines is 3324 [18:46:17]MH_Cut [18:46:17]Write to MH i2c: D1 01 00 9B CA 01 37 [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 01 00 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 01 00 9B CA 00 36 [18:46:17]Write to MH i2c: 01 00 00 9C CA 66 [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]OFD Sender: No OFD packet to send [18:46:17]*** Cut start [18:46:17]*** Partial cut [18:46:17]*** CUTSNS_PIN = 1 [18:46:17]*** CUTSNS_PIN = 0 [18:46:18]*** Brake cut motor [18:46:18]Read from MH i2c: 01 [18:46:18]MH_I2C_Read... [18:46:18]*** Stop cut motor [18:46:18]*** Cut end [18:46:18]Read from MH i2c: 01 07 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: 01 07 00 9C CA 00 00 00 00 00 FF 0F 7B [18:46:18]process_action close_receipt done [18:46:18]requested_data is exist [18:46:18]produce_requested_data [18:46:18]requested_item fm.sn is exist - process it [18:46:18]wFMCommunicate request_size=4 [18:46:18]MH_SAM_APDU [18:46:18]CAPDU: 80 11 00 00 [18:46:18]Write to MH i2c: E2 08 00 9D CA 80 11 00 00 00 00 00 00 E1 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:18]Read from MH i2c: E2 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 17 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 17 00 9D CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [18:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:18]wFMCommunicate OK [18:46:18]requested_item fd.num is exist - process it [18:46:18]SAM_PROTO_GetFieldsCounters [18:46:18]wFMCommunicate request_size=4 [18:46:18]MH_SAM_APDU [18:46:18]CAPDU: 80 13 00 00 [18:46:18]Write to MH i2c: E2 08 00 9E CA 80 13 00 00 00 00 00 00 E4 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:18]Read from MH i2c: E2 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 62 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 62 00 9E CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [18:46:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:18]wFMCommunicate OK [18:46:18]SAM_PROTO_GetFieldsCounters done [18:46:18]requested_item shift.num is exist - process it [18:46:18]requested_item shift.opened is exist - process it [18:46:18]req_shift_opened [18:46:18]FM_GetShiftState [18:46:18]SAM_PROTO_GetShiftState [18:46:18]wFMCommunicate request_size=4 [18:46:18]MH_SAM_APDU [18:46:18]CAPDU: 80 13 01 00 [18:46:18]Write to MH i2c: E2 08 00 9F CA 80 13 01 00 00 00 00 00 E6 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:18]Read from MH i2c: E2 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 0E 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: E2 0E 00 9F CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A9 [18:46:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:46:18]wFMCommunicate OK [18:46:18]SAM_PROTO_GetShiftState done [18:46:18]FM_GetShiftState done [18:46:18]req_shift_opened done [18:46:18]requested_item shift.open_date is exist - process it [18:46:19]req_shift_open_date [18:46:19]req_shift_open_date done [18:46:19]produce_requested_data done [18:46:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191581,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:46:19]process_action_free close_receipt [18:46:19]json_value_free [18:46:19]json_value_free done [18:46:19]process_json_proto returns [18:46:19]Send response to host [18:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191581,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:46:19]free response buf [18:46:19]execute_script done [18:46:19]execute_script returns [18:46:19]free content buf [18:46:19]Sock 9.Close socket [18:46:19]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]accept exits with 8 [18:47:37]New connection [18:47:37]New thread 3066961252 created [18:47:37]Thread 3066817892 joined [18:47:37]Waiting for new connection... [18:47:37] Sock 8.Parse request [18:47:37]Sock 8.Check first char [18:47:37]Sock 8.First char is OK [18:47:37]request: POST /json_proto HTTP/1.0 [18:47:37]Method: POST [18:47:37]URL: /json_proto [18:47:37]Method is POST - this is cgi request [18:47:37]url: /json_proto [18:47:37]query_string will be loaded in cgi processing [18:47:37]execute_cgi json_proto POST (null) [18:47:37]execute_cgi path=json_proto method=POST [18:47:37]POST find Content-Length [18:47:37]Host: 172.17.63.131:8080 [18:47:37]Content-Length: 676 [18:47:37]Content-Type: application/json [18:47:37] [18:47:37]POST finish read [18:47:37]Found Content-Length = 676 [18:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:37]execute_script... [18:47: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)30882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:37]POST & json_proto [18:47:37]process_json_proto [18:47:37]json parsed OK: [18:47:37]protocol is kg_v1.0 [18:47:37]action value=close_receipt [18:47:37]process_action close_receipt [18:47:37]cmd_close_receipt [18:47:37]MH_GetDate [18:47:37]Write to MH i2c: F0 00 00 A0 CA 59 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: F0 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: F0 09 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: F0 09 00 A0 CA 00 D4 E7 1B 67 22 05 6E 64 98 [18:47:37]GetLastDocTimeStamp 1729881984 [18:47:37]current date 1729882068 [18:47:37]FM_GetShiftState [18:47:37]SAM_PROTO_GetShiftState [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 13 01 00 [18:47:37]Write to MH i2c: E2 08 00 A1 CA 80 13 01 00 00 00 00 00 E8 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 A1 CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AB [18:47:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_GetShiftState done [18:47:37]FM_GetShiftState done [18:47:37]opened in 1729816399 [18:47:37]opened+sec_in_day 1729902799 [18:47:37]quantity*price = 55058 [18:47:37]sum+1 = 55060 [18:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 321 25.10.2024 18:47 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191582 ФПД: 228037438193366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191582&fm=228037438193366&tin=02508201610067®Number=0000000000091776&sum=55000 [18:47:39]StoreToDocumentArchive [18:47:39]shift 540 fd 191582 [18:47:39]save to /storage/0540/doc_00191582 [18:47:39]save last doc name /storage/0540/doc_00191582 to /storage/kkm_last_doc_name [18:47:39]save OK [18:47:39]Clear old archive folders... [18:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:39]tlvbuf is 01A82D90 [18:47:39]SAM_PROTO_ClearQueue [18:47:39]wFMCommunicate request_size=4 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 09 00 00 [18:47:39]Write to MH i2c: E2 08 00 AE CA 80 09 00 00 00 00 00 00 EA [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:39]Read from MH i2c: E2 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 AE CA 00 90 00 EC [18:47:39]RAPDU: 90 00 [18:47:39]wFMCommunicate OK [18:47:39]SAM_PROTO_ClearQueue done [18:47:39]KKMCreateOFDPacket [18:47:39]OFDProtocolAddRootSTLVToBuf [18:47:39]FM_MakeSignedData [18:47:39]FM_MakeSignedData [18:47:39]SAM_PROTO_SignData [18:47:39]wFMCommunicate request_size=4 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 0D 01 02 [18:47:39]Write to MH i2c: E2 08 00 AF CA 80 0D 01 02 00 00 00 00 F2 [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:39]Read from MH i2c: E2 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 AF CA 00 90 00 ED [18:47:39]RAPDU: 90 00 [18:47:39]wFMCommunicate OK [18:47:39]wFMCommunicate request_size=255 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EC 02 00 35 04 06 00 CF [18:47:39]Write to MH i2c: E2 02 01 B0 CA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EC 02 00 35 04 06 00 CF 00 00 56 [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:39]Read from MH i2c: E2 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 B0 CA 00 90 00 EE [18:47:39]RAPDU: 90 00 [18:47:39]wFMCommunicate OK [18:47:39]wFMCommunicate request_size=10 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 0D 02 02 05 66 1A 7F BE D6 [18:47:39]Write to MH i2c: E2 0D 00 B1 CA 80 0D 02 02 05 00 66 1A 7F BE D6 00 00 92 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 B1 CA 00 90 00 EF [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 03 02 [18:47:40]Write to MH i2c: E2 08 00 B2 CA 80 0D 03 02 00 00 00 00 F7 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 B2 CA 00 CE C1 F2 87 C6 E2 AD 88 90 00 DD [18:47:40]RAPDU: CE C1 F2 87 C6 E2 AD 88 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_SignData done [18:47:40]FM_MakeSignedData done [18:47:40]CreateOFDProtocolMessage [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 11 00 00 [18:47:40]Write to MH i2c: E2 08 00 B3 CA 80 11 00 00 00 00 00 00 F7 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 B3 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [18:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:47:40]wFMCommunicate OK [18:47:40]CreateOFDProtocolMessage done [18:47:40]OFDSenderStorePacket 191582 [18:47:40]StoreOFDPacket docnum=191582 [18:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 63 07 01 A7 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EC 02 00 35 04 06 00 CF 66 1A 7F BE D6 CE C1 F2 87 C6 E2 AD 88 [18:47:40]CheckFolder [18:47:40]dirname=/storage/ofd_packets [18:47:40]CheckFolder done [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00191582 [18:47:40]NVStorageSaveData ofd_packets/00191582 [18:47:40]File name is /storage/ofd_packets/00191582 [18:47:40]Write 301 bytes [18:47:40]NVStorageSaveData done [18:47:40]OFDSenderStorePacket done [18:47:40]KKMCreateOFDPacket done [18:47:40]NVStorageSaveData kkm_last_timestamp [18:47:40]File name is /storage/kkm_last_timestamp [18:47:40]Write 4 bytes [18:47:40]NVStorageSaveData done [18:47:40]ExternCall_PrintAddStr [18:47:40]wPrintStart [18:47:40]Write to MH i2c: 01 00 00 B4 CA 7E [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]OFD Sender: Processing packet 191582 [packets to send 75, broken 74] [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00191582 [18:47:40]OFD Sender: To server: pG, [18:47:40]CommunicateWithHost lk.salyk.kg:30040 [18:47:40]ConnectInit lk.salyk.kg [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 B4 CA 00 00 00 00 00 FF 0F 93 [18:47:40]RasterBufferAndPrint [18:47:40]line Счет N : (1)30882 [18:47:40]line ИНН: 02508201610067 [18:47:40]line Контрольно-Кассовый Чек [18:47:40]line ПРОДАЖА [18:47:40]line ТРК (МРК, ГНК) : 12 [18:47:40]line Товар: 2710124130 [18:47:40]line Аи-92-К-5 [18:47:40]line 8.230 * 66.90 [18:47:40]line = 550.59 [18:47:40]line НДС 12% НСП 1% [18:47:40]line > о реализуемом товаре [18:47:40]line ОКРУГЛЕНИЕ: -0.59 [18:47:40]line ИТОГО: 550.00 [18:47:40]line Внесено: 550.00 [18:47:40]line СДАЧА: 0.00 [18:47:40]line НСП 1% : 4.87 [18:47:40]line НДС 12% : 58.47 [18:47:40]line Наличными: 550.00 [18:47:40]line Безнал.: 0.00 [18:47:40]line Место: АЗС № 170 "Партнер Нефть" [18:47:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:47:40]line СНО: Общий режим [18:47:40]line Чек 321 25.10.2024 18:47 [18:47:40]line Смена: 540 ФФД: 1.0 [18:47:40]line ЗНМ: 0300000110 [18:47:40]line РНМ: 0000000000091776 [18:47:40]line Версия ККМ: 001 [18:47:40]line ФМ: 0000000000871754 [18:47:40]line ФД: 191582 [18:47:40]line ФПД: 228037438193366 [18:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191582&fm=228037438193366&tin=02508201610067®Number=0000000000091776&sum=55000 [18:47:40]written 0, free lines is 4095 [18:47:40]Connected sock=11 [18:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 63 07 01 A7 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 E7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EC 02 00 35 04 06 00 CF 66 1A 7F BE D6 CE C1 F2 87 C6 E2 AD 88 [18:47:40]Write to MH i2c: 01 00 00 DF CA A9 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 DF CA 00 00 00 00 00 D3 0C 8F [18:47:40]RasterBufferAndPrint [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 CB 47 00 79 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EC 02 00 F4 03 04 00 A2 8C 1B 67 B6 04 01 00 00 12 41 45 74 E5 D3 DB 50 [18:47:40]CommunicateWithHost err = 0 [18:47:40]CheckOFDResponse [18:47:40]1017 (14) - 77093643461234 [18:47:40]1041 (16) - 0000000000871754 [18:47:40]1040 (4) - 191582 [18:47:40]1012 (4) - 25.10.2024 12:18 [18:47:40]1206 (1) - 0 [18:47:40]OFD Sender: Remove packet 191582 [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00191582 [18:47:40]NVStorageDeleteData [18:47:40]written 0, free lines is 3340 [18:47:41]MH_Cut [18:47:41]Write to MH i2c: D1 01 00 E6 CA 01 82 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 01 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 01 00 E6 CA 00 81 [18:47:41]Write to MH i2c: 01 00 00 E7 CA B1 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]OFD Sender: No OFD packet to send [18:47:41]*** Cut start [18:47:41]*** Partial cut [18:47:41]*** CUTSNS_PIN = 1 [18:47:41]*** CUTSNS_PIN = 0 [18:47:41]*** Brake cut motor [18:47:42]Read from MH i2c: 01 [18:47:42]MH_I2C_Read... [18:47:42]*** Stop cut motor [18:47:42]*** Cut end [18:47:42]Read from MH i2c: 01 07 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: 01 07 00 E7 CA 00 00 00 00 00 FF 0F C6 [18:47:42]process_action close_receipt done [18:47:42]requested_data is exist [18:47:42]produce_requested_data [18:47:42]requested_item fm.sn is exist - process it [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 11 00 00 [18:47:42]Write to MH i2c: E2 08 00 E8 CA 80 11 00 00 00 00 00 00 2C [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 E8 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [18:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:47:42]wFMCommunicate OK [18:47:42]requested_item fd.num is exist - process it [18:47:42]SAM_PROTO_GetFieldsCounters [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 13 00 00 [18:47:42]Write to MH i2c: E2 08 00 E9 CA 80 13 00 00 00 00 00 00 2F [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 62 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 62 00 E9 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [18:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_GetFieldsCounters done [18:47:42]requested_item shift.num is exist - process it [18:47:42]requested_item shift.opened is exist - process it [18:47:42]req_shift_opened [18:47:42]FM_GetShiftState [18:47:42]SAM_PROTO_GetShiftState [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 13 01 00 [18:47:42]Write to MH i2c: E2 08 00 EA CA 80 13 01 00 00 00 00 00 31 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0E 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0E 00 EA CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F4 [18:47:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_GetShiftState done [18:47:42]FM_GetShiftState done [18:47:42]req_shift_opened done [18:47:42]requested_item shift.open_date is exist - process it [18:47:42]req_shift_open_date [18:47:42]req_shift_open_date done [18:47:42]produce_requested_data done [18:47:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191582,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:47:42]process_action_free close_receipt [18:47:42]json_value_free [18:47:42]json_value_free done [18:47:42]process_json_proto returns [18:47:42]Send response to host [18:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191582,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:47:42]free response buf [18:47:42]execute_script done [18:47:42]execute_script returns [18:47:42]free content buf [18:47:42]Sock 8.Close socket [18:47:42]Sock 8.Thread stoped [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:15]ConnectInit Can't connect to host [18:48:16]OFD Sender: No OFD packet to send [18:48:21]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:17]accept exits with 9 [18:50:17]New connection [18:50:17]New thread 3066817892 created [18:50:17]Thread 3066961252 joined [18:50:17]Waiting for new connection... [18:50:17] Sock 9.Parse request [18:50:17]Sock 9.Check first char [18:50:17]Sock 9.First char is OK [18:50:17]request: POST /json_proto HTTP/1.0 [18:50:17]Method: POST [18:50:17]URL: /json_proto [18:50:17]Method is POST - this is cgi request [18:50:17]url: /json_proto [18:50:17]query_string will be loaded in cgi processing [18:50:17]execute_cgi json_proto POST (null) [18:50:17]execute_cgi path=json_proto method=POST [18:50:17]POST find Content-Length [18:50:17]Host: 172.17.63.131:8080 [18:50:17]Content-Length: 674 [18:50:17]Content-Type: application/json [18:50:17] [18:50:17]POST finish read [18:50:17]Found Content-Length = 674 [18:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:17]execute_script... [18: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)30883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:17]POST & json_proto [18:50:17]process_json_proto [18:50:17]json parsed OK: [18:50:17]protocol is kg_v1.0 [18:50:17]action value=close_receipt [18:50:17]process_action close_receipt [18:50:17]cmd_close_receipt [18:50:17]MH_GetDate [18:50:17]Write to MH i2c: F0 00 00 EB CA A4 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: F0 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: F0 09 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: F0 09 00 EB CA 00 73 E8 1B 67 22 05 6E 64 83 [18:50:17]GetLastDocTimeStamp 1729882068 [18:50:17]current date 1729882227 [18:50:17]FM_GetShiftState [18:50:17]SAM_PROTO_GetShiftState [18:50:17]wFMCommunicate request_size=4 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 13 01 00 [18:50:17]Write to MH i2c: E2 08 00 EC CA 80 13 01 00 00 00 00 00 33 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 0E 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 0E 00 EC CA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F6 [18:50:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:50:17]wFMCommunicate OK [18:50:17]SAM_PROTO_GetShiftState done [18:50:17]FM_GetShiftState done [18:50:17]opened in 1729816399 [18:50:17]opened+sec_in_day 1729902799 [18:50:17]quantity*price = 90068 [18:50:17]sum+1 = 90069 [18:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 322 25.10.2024 18:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191583 ФПД: 233500849386550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191583&fm=233500849386550&tin=02508201610067®Number=0000000000091776&sum=90000 [18:50:18]StoreToDocumentArchive [18:50:18]shift 540 fd 191583 [18:50:18]save to /storage/0540/doc_00191583 [18:50:18]save last doc name /storage/0540/doc_00191583 to /storage/kkm_last_doc_name [18:50:18]save OK [18:50:18]Clear old archive folders... [18:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:18]tlvbuf is 01600C60 [18:50:18]SAM_PROTO_ClearQueue [18:50:18]wFMCommunicate request_size=4 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 09 00 00 [18:50:18]Write to MH i2c: E2 08 00 F9 CA 80 09 00 00 00 00 00 00 35 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 F9 CA 00 90 00 37 [18:50:18]RAPDU: 90 00 [18:50:18]wFMCommunicate OK [18:50:18]SAM_PROTO_ClearQueue done [18:50:18]KKMCreateOFDPacket [18:50:18]OFDProtocolAddRootSTLVToBuf [18:50:18]FM_MakeSignedData [18:50:18]FM_MakeSignedData [18:50:18]SAM_PROTO_SignData [18:50:18]wFMCommunicate request_size=4 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 0D 01 02 [18:50:18]Write to MH i2c: E2 08 00 FA CA 80 0D 01 02 00 00 00 00 3D [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 FA CA 00 90 00 38 [18:50:18]RAPDU: 90 00 [18:50:18]wFMCommunicate OK [18:50:18]wFMCommunicate request_size=255 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 73 E8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EC 02 00 35 04 06 00 D4 5E 27 2E [18:50:18]Write to MH i2c: E2 02 01 FB CA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 73 E8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EC 02 00 35 04 06 00 D4 5E 27 2E 00 00 A2 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 03 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 03 00 FB CA 00 90 00 39 [18:50:19]RAPDU: 90 00 [18:50:19]wFMCommunicate OK [18:50:19]wFMCommunicate request_size=7 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 0D 02 02 02 B4 36 [18:50:19]Write to MH i2c: E2 0A 00 FC CA 80 0D 02 02 02 00 B4 36 00 00 2E [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 03 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 03 00 FC CA 00 90 00 3A [18:50:19]RAPDU: 90 00 [18:50:19]wFMCommunicate OK [18:50:19]wFMCommunicate request_size=4 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 0D 03 02 [18:50:19]Write to MH i2c: E2 08 00 FD CA 80 0D 03 02 00 00 00 00 42 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 0B 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 0B 00 FD CA 00 40 35 23 4F A1 65 7C BF 90 00 6B [18:50:19]RAPDU: 40 35 23 4F A1 65 7C BF 90 00 [18:50:19]wFMCommunicate OK [18:50:19]SAM_PROTO_SignData done [18:50:19]FM_MakeSignedData done [18:50:19]CreateOFDProtocolMessage [18:50:19]wFMCommunicate request_size=4 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 11 00 00 [18:50:19]Write to MH i2c: E2 08 00 FE CA 80 11 00 00 00 00 00 00 42 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 17 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 17 00 FE CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [18:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:50:19]wFMCommunicate OK [18:50:19]CreateOFDProtocolMessage done [18:50:19]OFDSenderStorePacket 191583 [18:50:19]StoreOFDPacket docnum=191583 [18:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C5 EA 04 01 DA 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 73 E8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EC 02 00 35 04 06 00 D4 5E 27 2E B4 36 40 35 23 4F A1 65 7C BF [18:50:19]CheckFolder [18:50:19]dirname=/storage/ofd_packets [18:50:19]CheckFolder done [18:50:19]ProducePacketName [18:50:19]name=ofd_packets/00191583 [18:50:19]NVStorageSaveData ofd_packets/00191583 [18:50:19]File name is /storage/ofd_packets/00191583 [18:50:19]Write 298 bytes [18:50:19]NVStorageSaveData done [18:50:19]OFDSenderStorePacket done [18:50:19]KKMCreateOFDPacket done [18:50:19]NVStorageSaveData kkm_last_timestamp [18:50:19]File name is /storage/kkm_last_timestamp [18:50:19]Write 4 bytes [18:50:19]NVStorageSaveData done [18:50:19]ExternCall_PrintAddStr [18:50:19]wPrintStart [18:50:19]Write to MH i2c: 01 00 00 FF CA C9 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 07 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 07 00 FF CA 00 00 00 00 00 FF 0F DE [18:50:19]RasterBufferAndPrint [18:50:19]line Счет N : (1)30883 [18:50:19]line ИНН: 02508201610067 [18:50:19]line Контрольно-Кассовый Чек [18:50:19]line ПРОДАЖА [18:50:19]line ТРК (МРК, ГНК) : 11 [18:50:19]line Товар: 2710194210 [18:50:19]line ДТ-К-5 [18:50:19]line 11.820 * 76.20 [18:50:19]line = 900.68 [18:50:19]line НДС 12% НСП 1% [18:50:19]line > о реализуемом товаре [18:50:19]line ОКРУГЛЕНИЕ: -0.68 [18:50:19]line ИТОГО: 900.00 [18:50:19]line Внесено: 900.00 [18:50:19]line СДАЧА: 0.00 [18:50:19]line НСП 1% : 7.97 [18:50:19]line НДС 12% : 95.65 [18:50:19]line Наличными: 900.00 [18:50:19]line Безнал.: 0.00 [18:50:19]line Место: АЗС № 170 "Партнер Нефть" [18:50:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:50:19]line СНО: Общий режим [18:50:19]line Чек 322 25.10.2024 18:50 [18:50:19]line Смена: 540 ФФД: 1.0 [18:50:19]line ЗНМ: 0300000110 [18:50:19]line РНМ: 0000000000091776 [18:50:19]line Версия ККМ: 001 [18:50:19]line ФМ: 0000000000871754 [18:50:19]line ФД: 191583 [18:50:19]line ФПД: 233500849386550 [18:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191583&fm=233500849386550&tin=02508201610067®Number=0000000000091776&sum=90000 [18:50:19]OFD Sender: Processing packet 191583 [packets to send 75, broken 74] [18:50:19]ProducePacketName [18:50:19]name=ofd_packets/00191583 [18:50:19]OFD Sender: To server: pG, [18:50:19]CommunicateWithHost lk.salyk.kg:30040 [18:50:19]ConnectInit lk.salyk.kg [18:50:19]written 0, free lines is 4095 [18:50:19]Connected sock=11 [18: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 31 37 35 34 0C 01 00 00 C5 EA 04 01 DA 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 73 E8 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EC 02 00 35 04 06 00 D4 5E 27 2E B4 36 40 35 23 4F A1 65 7C BF [18:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 BC 47 00 45 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EC 02 00 F4 03 04 00 41 8D 1B 67 B6 04 01 00 00 C5 5C 76 5C 15 6C 5E 24 [18:50:20]CommunicateWithHost err = 0 [18:50:20]CheckOFDResponse [18:50:20]1017 (14) - 77093643461234 [18:50:20]1041 (16) - 0000000000871754 [18:50:20]1040 (4) - 191583 [18:50:20]1012 (4) - 25.10.2024 12:21 [18:50:20]1206 (1) - 0 [18:50:20]OFD Sender: Remove packet 191583 [18:50:20]ProducePacketName [18:50:20]name=ofd_packets/00191583 [18:50:20]NVStorageDeleteData [18:50:20]Write to MH i2c: 01 00 00 2A CB F5 [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: 01 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: 01 07 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: 01 07 00 2A CB 00 00 00 00 00 77 0D 80 [18:50:20]RasterBufferAndPrint [18:50:20]line [18:50:20]line [18:50:20]line [18:50:20]line [18:50:20]line [18:50:20]written 0, free lines is 3472 [18:50:20]MH_Cut [18:50:20]Write to MH i2c: D1 01 00 31 CB 01 CE [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: D1 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: D1 01 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: D1 01 00 31 CB 00 CD [18:50:20]Write to MH i2c: 01 00 00 32 CB FD [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]OFD Sender: No OFD packet to send [18:50:20]*** Cut start [18:50:20]*** Partial cut [18:50:20]*** CUTSNS_PIN = 1 [18:50:20]*** CUTSNS_PIN = 0 [18:50:21]*** Brake cut motor [18:50:21]Read from MH i2c: 01 [18:50:21]MH_I2C_Read... [18:50:21]*** Stop cut motor [18:50:21]*** Cut end [18:50:21]Read from MH i2c: 01 07 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: 01 07 00 32 CB 00 00 00 00 00 FF 0F 12 [18:50:21]process_action close_receipt done [18:50:21]requested_data is exist [18:50:21]produce_requested_data [18:50:21]requested_item fm.sn is exist - process it [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 11 00 00 [18:50:21]Write to MH i2c: E2 08 00 33 CB 80 11 00 00 00 00 00 00 78 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 17 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 17 00 33 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [18:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:50:21]wFMCommunicate OK [18:50:21]requested_item fd.num is exist - process it [18:50:21]SAM_PROTO_GetFieldsCounters [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 13 00 00 [18:50:21]Write to MH i2c: E2 08 00 34 CB 80 13 00 00 00 00 00 00 7B [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 62 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 62 00 34 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [18: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:21]wFMCommunicate OK [18:50:21]SAM_PROTO_GetFieldsCounters done [18:50:21]requested_item shift.num is exist - process it [18:50:21]requested_item shift.opened is exist - process it [18:50:21]req_shift_opened [18:50:21]FM_GetShiftState [18:50:21]SAM_PROTO_GetShiftState [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 13 01 00 [18:50:21]Write to MH i2c: E2 08 00 35 CB 80 13 01 00 00 00 00 00 7D [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:22]Read from MH i2c: E2 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: E2 0E 00 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: E2 0E 00 35 CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 40 [18:50:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:50:22]wFMCommunicate OK [18:50:22]SAM_PROTO_GetShiftState done [18:50:22]FM_GetShiftState done [18:50:22]req_shift_opened done [18:50:22]requested_item shift.open_date is exist - process it [18:50:22]req_shift_open_date [18:50:22]req_shift_open_date done [18:50:22]produce_requested_data done [18:50:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191583,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:50:22]process_action_free close_receipt [18:50:22]json_value_free [18:50:22]json_value_free done [18:50:22]process_json_proto returns [18:50:22]Send response to host [18:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191583,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:50:22]free response buf [18:50:22]execute_script done [18:50:22]execute_script returns [18:50:22]free content buf [18:50:22]Sock 9.Close socket [18:50:22]Sock 9.Thread stoped [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:53]ConnectInit Can't connect to host [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:17]accept exits with 10 [18:56:17]New connection [18:56:17]New thread 3066961252 created [18:56:17]Thread 3066817892 joined [18:56:17]Waiting for new connection... [18:56:17] Sock 10.Parse request [18:56:17]Sock 10.Check first char [18:56:17]Sock 10.First char is OK [18:56:17]request: POST /json_proto HTTP/1.0 [18:56:17]Method: POST [18:56:17]URL: /json_proto [18:56:17]Method is POST - this is cgi request [18:56:17]url: /json_proto [18:56:17]query_string will be loaded in cgi processing [18:56:17]execute_cgi json_proto POST (null) [18:56:17]execute_cgi path=json_proto method=POST [18:56:17]POST find Content-Length [18:56:17]Host: 172.17.63.131:8080 [18:56:17]Content-Length: 676 [18:56:17]Content-Type: application/json [18:56:17] [18:56:17]POST finish read [18:56:17]Found Content-Length = 676 [18:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:17]execute_script... [18:56: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)30886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:17]POST & json_proto [18:56:17]process_json_proto [18:56:17]json parsed OK: [18:56:17]protocol is kg_v1.0 [18:56:17]action value=close_receipt [18:56:17]process_action close_receipt [18:56:17]cmd_close_receipt [18:56:17]MH_GetDate [18:56:17]Write to MH i2c: F0 00 00 36 CB F0 [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 09 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: F0 09 00 36 CB 00 DC E9 1B 67 22 05 6E 64 39 [18:56:17]GetLastDocTimeStamp 1729882227 [18:56:17]current date 1729882588 [18:56:17]FM_GetShiftState [18:56:17]SAM_PROTO_GetShiftState [18:56:17]wFMCommunicate request_size=4 [18:56:17]MH_SAM_APDU [18:56:17]CAPDU: 80 13 01 00 [18:56:17]Write to MH i2c: E2 08 00 37 CB 80 13 01 00 00 00 00 00 7F [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:17]Read from MH i2c: E2 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0E 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0E 00 37 CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 42 [18:56:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:56:17]wFMCommunicate OK [18:56:17]SAM_PROTO_GetShiftState done [18:56:17]FM_GetShiftState done [18:56:17]opened in 1729816399 [18:56:17]opened+sec_in_day 1729902799 [18:56:17]quantity*price = 20003 [18:56:17]sum+1 = 20004 [18:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 323 25.10.2024 18:56 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191584 ФПД: 151924997481849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191584&fm=151924997481849&tin=02508201610067®Number=0000000000091776&sum=20000 [18:56:19]StoreToDocumentArchive [18:56:19]shift 540 fd 191584 [18:56:19]save to /storage/0540/doc_00191584 [18:56:19]save last doc name /storage/0540/doc_00191584 to /storage/kkm_last_doc_name [18:56:19]save OK [18:56:19]Clear old archive folders... [18:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:19]tlvbuf is 017F16A0 [18:56:19]SAM_PROTO_ClearQueue [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 09 00 00 [18:56:19]Write to MH i2c: E2 08 00 44 CB 80 09 00 00 00 00 00 00 81 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 44 CB 00 90 00 83 [18:56:19]RAPDU: 90 00 [18:56:19]wFMCommunicate OK [18:56:19]SAM_PROTO_ClearQueue done [18:56:19]KKMCreateOFDPacket [18:56:19]OFDProtocolAddRootSTLVToBuf [18:56:19]FM_MakeSignedData [18:56:19]FM_MakeSignedData [18:56:19]SAM_PROTO_SignData [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 0D 01 02 [18:56:19]Write to MH i2c: E2 08 00 45 CB 80 0D 01 02 00 00 00 00 89 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 45 CB 00 90 00 84 [18:56:19]RAPDU: 90 00 [18:56:19]wFMCommunicate OK [18:56:19]wFMCommunicate request_size=255 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 DC E9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EC 02 00 35 04 06 00 8A [18:56:19]Write to MH i2c: E2 02 01 46 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 DC E9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EC 02 00 35 04 06 00 8A 00 00 60 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 46 CB 00 90 00 85 [18:56:19]RAPDU: 90 00 [18:56:19]wFMCommunicate OK [18:56:19]wFMCommunicate request_size=10 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 0D 02 02 05 2C CB 81 E5 79 [18:56:19]Write to MH i2c: E2 0D 00 47 CB 80 0D 02 02 05 00 2C CB 81 E5 79 00 00 6C [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 03 00 47 CB 00 90 00 86 [18:56:19]RAPDU: 90 00 [18:56:19]wFMCommunicate OK [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 0D 03 02 [18:56:19]Write to MH i2c: E2 08 00 48 CB 80 0D 03 02 00 00 00 00 8E [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0B 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0B 00 48 CB 00 3A 37 99 38 00 1B 70 AD 90 00 09 [18:56:19]RAPDU: 3A 37 99 38 00 1B 70 AD 90 00 [18:56:19]wFMCommunicate OK [18:56:19]SAM_PROTO_SignData done [18:56:19]FM_MakeSignedData done [18:56:19]CreateOFDProtocolMessage [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 11 00 00 [18:56:19]Write to MH i2c: E2 08 00 49 CB 80 11 00 00 00 00 00 00 8E [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 17 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 17 00 49 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [18:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:56:19]wFMCommunicate OK [18:56:19]CreateOFDProtocolMessage done [18:56:19]OFDSenderStorePacket 191584 [18:56:19]StoreOFDPacket docnum=191584 [18:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 B3 07 01 08 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 DC E9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EC 02 00 35 04 06 00 8A 2C CB 81 E5 79 3A 37 99 38 00 1B 70 AD [18:56:19]CheckFolder [18:56:19]dirname=/storage/ofd_packets [18:56:19]CheckFolder done [18:56:19]ProducePacketName [18:56:19]name=ofd_packets/00191584 [18:56:19]NVStorageSaveData ofd_packets/00191584 [18:56:19]File name is /storage/ofd_packets/00191584 [18:56:19]Write 301 bytes [18:56:19]NVStorageSaveData done [18:56:19]OFDSenderStorePacket done [18:56:19]KKMCreateOFDPacket done [18:56:19]NVStorageSaveData kkm_last_timestamp [18:56:19]File name is /storage/kkm_last_timestamp [18:56:19]Write 4 bytes [18:56:19]NVStorageSaveData done [18:56:19]ExternCall_PrintAddStr [18:56:19]wPrintStart [18:56:19]Write to MH i2c: 01 00 00 4A CB 15 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 07 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: 01 07 00 4A CB 00 00 00 00 00 FF 0F 2A [18:56:19]RasterBufferAndPrint [18:56:19]line Счет N : (1)30886 [18:56:19]line ИНН: 02508201610067 [18:56:19]line Контрольно-Кассовый Чек [18:56:19]line ПРОДАЖА [18:56:19]line ТРК (МРК, ГНК) : 21 [18:56:19]line Товар: 2710124130 [18:56:19]line Аи-92-К-5 [18:56:19]line 2.990 * 66.90 [18:56:19]line = 200.03 [18:56:19]line НДС 12% НСП 1% [18:56:19]line > о реализуемом товаре [18:56:19]line ОКРУГЛЕНИЕ: -0.03 [18:56:19]line ИТОГО: 200.00 [18:56:19]line Внесено: 200.00 [18:56:19]line СДАЧА: 0.00 [18:56:19]line НСП 1% : 1.77 [18:56:19]line НДС 12% : 21.24 [18:56:19]line Наличными: 200.00 [18:56:19]line Безнал.: 0.00 [18:56:19]line Место: АЗС № 170 "Партнер Нефть" [18:56:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:56:19]line СНО: Общий режим [18:56:19]line Чек 323 25.10.2024 18:56 [18:56:19]line Смена: 540 ФФД: 1.0 [18:56:19]line ЗНМ: 0300000110 [18:56:19]line РНМ: 0000000000091776 [18:56:19]line Версия ККМ: 001 [18:56:19]line ФМ: 0000000000871754 [18:56:19]line ФД: 191584 [18:56:19]line ФПД: 151924997481849 [18:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191584&fm=151924997481849&tin=02508201610067®Number=0000000000091776&sum=20000 [18:56:19]OFD Sender: Processing packet 191584 [packets to send 75, broken 74] [18:56:19]ProducePacketName [18:56:19]name=ofd_packets/00191584 [18:56:19]OFD Sender: To server: pG, [18:56:19]CommunicateWithHost lk.salyk.kg:30040 [18:56:19]ConnectInit lk.salyk.kg [18:56:19]written 0, free lines is 4095 [18:56:20]Connected sock=11 [18:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 B3 07 01 08 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 DC E9 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EC 02 00 35 04 06 00 8A 2C CB 81 E5 79 3A 37 99 38 00 1B 70 AD [18:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 82 47 00 F7 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EC 02 00 F4 03 04 00 AA 8E 1B 67 B6 04 01 00 00 81 42 F2 BC E0 54 6B A7 [18:56:20]CommunicateWithHost err = 0 [18:56:20]CheckOFDResponse [18:56:20]1017 (14) - 77093643461234 [18:56:20]1041 (16) - 0000000000871754 [18:56:20]1040 (4) - 191584 [18:56:20]1012 (4) - 25.10.2024 12:27 [18:56:20]1206 (1) - 0 [18:56:20]OFD Sender: Remove packet 191584 [18:56:20]ProducePacketName [18:56:20]name=ofd_packets/00191584 [18:56:20]NVStorageDeleteData [18:56:20]Write to MH i2c: 01 00 00 75 CB 40 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 75 CB 00 00 00 00 00 BB 0C 0E [18:56:20]RasterBufferAndPrint [18:56:20]line [18:56:20]line [18:56:20]line [18:56:20]line [18:56:20]line [18:56:20]written 0, free lines is 3269 [18:56:20]MH_Cut [18:56:20]Write to MH i2c: D1 01 00 7C CB 01 19 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: D1 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: D1 01 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: D1 01 00 7C CB 00 18 [18:56:20]Write to MH i2c: 01 00 00 7D CB 48 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]OFD Sender: No OFD packet to send [18:56:21]*** Cut start [18:56:21]*** Partial cut [18:56:21]*** CUTSNS_PIN = 1 [18:56:21]*** CUTSNS_PIN = 0 [18:56:21]*** Brake cut motor [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]*** Stop cut motor [18:56:21]*** Cut end [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 7D CB 00 00 00 00 00 FF 0F 5D [18:56:21]process_action close_receipt done [18:56:21]requested_data is exist [18:56:21]produce_requested_data [18:56:21]requested_item fm.sn is exist - process it [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 11 00 00 [18:56:21]Write to MH i2c: E2 08 00 7E CB 80 11 00 00 00 00 00 00 C3 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 7E CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [18:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:56:21]wFMCommunicate OK [18:56:21]requested_item fd.num is exist - process it [18:56:21]SAM_PROTO_GetFieldsCounters [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 13 00 00 [18:56:21]Write to MH i2c: E2 08 00 7F CB 80 13 00 00 00 00 00 00 C6 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 62 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 62 00 7F CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [18:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:22]wFMCommunicate OK [18:56:22]SAM_PROTO_GetFieldsCounters done [18:56:22]requested_item shift.num is exist - process it [18:56:22]requested_item shift.opened is exist - process it [18:56:22]req_shift_opened [18:56:22]FM_GetShiftState [18:56:22]SAM_PROTO_GetShiftState [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 13 01 00 [18:56:22]Write to MH i2c: E2 08 00 80 CB 80 13 01 00 00 00 00 00 C8 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:22]Read from MH i2c: E2 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 0E 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 0E 00 80 CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8B [18:56:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [18:56:22]wFMCommunicate OK [18:56:22]SAM_PROTO_GetShiftState done [18:56:22]FM_GetShiftState done [18:56:22]req_shift_opened done [18:56:22]requested_item shift.open_date is exist - process it [18:56:22]req_shift_open_date [18:56:22]req_shift_open_date done [18:56:22]produce_requested_data done [18:56:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191584,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [18:56:22]process_action_free close_receipt [18:56:22]json_value_free [18:56:22]json_value_free done [18:56:22]process_json_proto returns [18:56:22]Send response to host [18:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191584,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [18:56:22]free response buf [18:56:22]execute_script done [18:56:22]execute_script returns [18:56:22]free content buf [18:56:22]Sock 10.Close socket [18:56:22]Sock 10.Thread stoped [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:48]accept exits with 9 [19:06:48]New connection [19:06:48]New thread 3066817892 created [19:06:48]Thread 3066961252 joined [19:06:48]Waiting for new connection... [19:06:48] Sock 9.Parse request [19:06:48]Sock 9.Check first char [19:06:48]Sock 9.First char is OK [19:06:48]request: POST /json_proto HTTP/1.0 [19:06:48]Method: POST [19:06:48]URL: /json_proto [19:06:48]Method is POST - this is cgi request [19:06:48]url: /json_proto [19:06:48]query_string will be loaded in cgi processing [19:06:48]execute_cgi json_proto POST (null) [19:06:48]execute_cgi path=json_proto method=POST [19:06:48]POST find Content-Length [19:06:48]Host: 172.17.63.131:8080 [19:06:48]Content-Length: 676 [19:06:48]Content-Type: application/json [19:06:48] [19:06:48]POST finish read [19:06:48]Found Content-Length = 676 [19:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:48]execute_script... [19:06:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:48]POST & json_proto [19:06:48]process_json_proto [19:06:48]json parsed OK: [19:06:48]protocol is kg_v1.0 [19:06:48]action value=close_receipt [19:06:48]process_action close_receipt [19:06:48]cmd_close_receipt [19:06:48]MH_GetDate [19:06:48]Write to MH i2c: F0 00 00 81 CB 3B [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: F0 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: F0 09 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: F0 09 00 81 CB 00 52 EC 1B 67 22 05 6E 64 FD [19:06:48]GetLastDocTimeStamp 1729882588 [19:06:48]current date 1729883218 [19:06:48]FM_GetShiftState [19:06:48]SAM_PROTO_GetShiftState [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 13 01 00 [19:06:48]Write to MH i2c: E2 08 00 82 CB 80 13 01 00 00 00 00 00 CA [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0E 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0E 00 82 CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8D [19:06:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:06:48]wFMCommunicate OK [19:06:48]SAM_PROTO_GetShiftState done [19:06:48]FM_GetShiftState done [19:06:48]opened in 1729816399 [19:06:48]opened+sec_in_day 1729902799 [19:06:48]quantity*price = 50041 [19:06:48]sum+1 = 50042 [19:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 324 25.10.2024 19:06 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191585 ФПД: 74655824071646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190658&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191585&fm=74655824071646&tin=02508201610067®Number=0000000000091776&sum=50000 [19:06:49]StoreToDocumentArchive [19:06:49]shift 540 fd 191585 [19:06:49]save to /storage/0540/doc_00191585 [19:06:49]save last doc name /storage/0540/doc_00191585 to /storage/kkm_last_doc_name [19:06:49]save OK [19:06:49]Clear old archive folders... [19:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:49]tlvbuf is 019D4C20 [19:06:49]SAM_PROTO_ClearQueue [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 09 00 00 [19:06:49]Write to MH i2c: E2 08 00 8F CB 80 09 00 00 00 00 00 00 CC [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 8F CB 00 90 00 CE [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_ClearQueue done [19:06:49]KKMCreateOFDPacket [19:06:49]OFDProtocolAddRootSTLVToBuf [19:06:49]FM_MakeSignedData [19:06:49]FM_MakeSignedData [19:06:49]SAM_PROTO_SignData [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 01 02 [19:06:49]Write to MH i2c: E2 08 00 90 CB 80 0D 01 02 00 00 00 00 D4 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 90 CB 00 90 00 CF [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]wFMCommunicate request_size=255 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 52 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EC 02 00 35 04 06 00 43 [19:06:49]Write to MH i2c: E2 02 01 91 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 52 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EC 02 00 35 04 06 00 43 00 00 1D [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 91 CB 00 90 00 D0 [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]wFMCommunicate request_size=10 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 02 02 05 E6 29 DF CB DE [19:06:49]Write to MH i2c: E2 0D 00 92 CB 80 0D 02 02 05 00 E6 29 DF CB DE 00 00 78 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 92 CB 00 90 00 D1 [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 03 02 [19:06:49]Write to MH i2c: E2 08 00 93 CB 80 0D 03 02 00 00 00 00 D9 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0B 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0B 00 93 CB 00 EB 2F 01 7C 41 51 75 43 90 00 BB [19:06:49]RAPDU: EB 2F 01 7C 41 51 75 43 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_SignData done [19:06:49]FM_MakeSignedData done [19:06:49]CreateOFDProtocolMessage [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 11 00 00 [19:06:49]Write to MH i2c: E2 08 00 94 CB 80 11 00 00 00 00 00 00 D9 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 94 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [19:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:49]wFMCommunicate OK [19:06:49]CreateOFDProtocolMessage done [19:06:49]OFDSenderStorePacket 191585 [19:06:49]StoreOFDPacket docnum=191585 [19:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C E8 07 01 B0 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 52 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EC 02 00 35 04 06 00 43 E6 29 DF CB DE EB 2F 01 7C 41 51 75 43 [19:06:49]CheckFolder [19:06:49]dirname=/storage/ofd_packets [19:06:49]CheckFolder done [19:06:49]ProducePacketName [19:06:49]name=ofd_packets/00191585 [19:06:49]NVStorageSaveData ofd_packets/00191585 [19:06:49]File name is /storage/ofd_packets/00191585 [19:06:49]Write 301 bytes [19:06:49]NVStorageSaveData done [19:06:49]OFDSenderStorePacket done [19:06:49]KKMCreateOFDPacket done [19:06:49]NVStorageSaveData kkm_last_timestamp [19:06:49]File name is /storage/kkm_last_timestamp [19:06:49]Write 4 bytes [19:06:49]NVStorageSaveData done [19:06:49]ExternCall_PrintAddStr [19:06:49]wPrintStart [19:06:49]Write to MH i2c: 01 00 00 95 CB 60 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 95 CB 00 00 00 00 00 FF 0F 75 [19:06:49]RasterBufferAndPrint [19:06:49]line Счет N : (1)30887 [19:06:49]line ИНН: 02508201610067 [19:06:49]line Контрольно-Кассовый Чек [19:06:49]line ПРОДАЖА [19:06:49]line ТРК (МРК, ГНК) : 12 [19:06:49]line Товар: 2710124130 [19:06:49]line Аи-92-К-5 [19:06:49]line 7.480 * 66.90 [19:06:49]line = 500.41 [19:06:49]line НДС 12% НСП 1% [19:06:49]line > о реализуемом товаре [19:06:49]line ОКРУГЛЕНИЕ: -0.41 [19:06:49]line ИТОГО: 500.00 [19:06:49]line Внесено: 500.00 [19:06:49]line СДАЧА: 0.00 [19:06:49]line НСП 1% : 4.43 [19:06:49]line НДС 12% : 53.14 [19:06:49]line Наличными: 500.00 [19:06:49]line Безнал.: 0.00 [19:06:49]line Место: АЗС № 170 "Партнер Нефть" [19:06:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:06:49]line СНО: Общий режим [19:06:49]line Чек 324 25.10.2024 19:06 [19:06:49]line Смена: 540 ФФД: 1.0 [19:06:49]line ЗНМ: 0300000110 [19:06:49]line РНМ: 0000000000091776 [19:06:49]line Версия ККМ: 001 [19:06:49]line ФМ: 0000000000871754 [19:06:49]line ФД: 191585 [19:06:49]line ФПД: 74655824071646 [19:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190658&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191585&fm=74655824071646&tin=02508201610067®Number=0000000000091776&sum=50000 [19:06:50]OFD Sender: Processing packet 191585 [packets to send 75, broken 74] [19:06:50]ProducePacketName [19:06:50]name=ofd_packets/00191585 [19:06:50]OFD Sender: To server: pG, [19:06:50]CommunicateWithHost lk.salyk.kg:30040 [19:06:50]written 0, free lines is 4095 [19:06:50]ConnectInit lk.salyk.kg [19:06:50]Connected sock=10 [19:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C E8 07 01 B0 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 52 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EC 02 00 35 04 06 00 43 E6 29 DF CB DE EB 2F 01 7C 41 51 75 43 [19:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F 1A 47 00 79 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EC 02 00 F4 03 04 00 20 91 1B 67 B6 04 01 00 00 27 26 DD BA 57 8D BF BA [19:06:50]CommunicateWithHost err = 0 [19:06:50]CheckOFDResponse [19:06:50]1017 (14) - 77093643461234 [19:06:50]1041 (16) - 0000000000871754 [19:06:50]1040 (4) - 191585 [19:06:50]1012 (4) - 25.10.2024 12:37 [19:06:50]1206 (1) - 0 [19:06:50]OFD Sender: Remove packet 191585 [19:06:50]ProducePacketName [19:06:50]name=ofd_packets/00191585 [19:06:50]NVStorageDeleteData [19:06:50]Write to MH i2c: 01 00 00 C0 CB 8B [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 07 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 07 00 C0 CB 00 00 00 00 00 B8 0C 56 [19:06:50]RasterBufferAndPrint [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]written 0, free lines is 3263 [19:06:50]MH_Cut [19:06:50]Write to MH i2c: D1 01 00 C7 CB 01 64 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: D1 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: D1 01 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: D1 01 00 C7 CB 00 63 [19:06:50]Write to MH i2c: 01 00 00 C8 CB 93 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]OFD Sender: No OFD packet to send [19:06:51]*** Cut start [19:06:51]*** Partial cut [19:06:51]*** CUTSNS_PIN = 1 [19:06:51]*** CUTSNS_PIN = 0 [19:06:51]*** Brake cut motor [19:06:51]Read from MH i2c: 01 [19:06:51]MH_I2C_Read... [19:06:51]*** Stop cut motor [19:06:51]*** Cut end [19:06:51]Read from MH i2c: 01 07 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: 01 07 00 C8 CB 00 00 00 00 00 FF 0F A8 [19:06:51]process_action close_receipt done [19:06:51]requested_data is exist [19:06:51]produce_requested_data [19:06:51]requested_item fm.sn is exist - process it [19:06:51]wFMCommunicate request_size=4 [19:06:51]MH_SAM_APDU [19:06:51]CAPDU: 80 11 00 00 [19:06:51]Write to MH i2c: E2 08 00 C9 CB 80 11 00 00 00 00 00 00 0E [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:51]Read from MH i2c: E2 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 17 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 17 00 C9 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [19:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:51]wFMCommunicate OK [19:06:51]requested_item fd.num is exist - process it [19:06:51]SAM_PROTO_GetFieldsCounters [19:06:51]wFMCommunicate request_size=4 [19:06:51]MH_SAM_APDU [19:06:51]CAPDU: 80 13 00 00 [19:06:51]Write to MH i2c: E2 08 00 CA CB 80 13 00 00 00 00 00 00 11 [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 62 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 62 00 CA CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_GetFieldsCounters done [19:06:52]requested_item shift.num is exist - process it [19:06:52]requested_item shift.opened is exist - process it [19:06:52]req_shift_opened [19:06:52]FM_GetShiftState [19:06:52]SAM_PROTO_GetShiftState [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 13 01 00 [19:06:52]Write to MH i2c: E2 08 00 CB CB 80 13 01 00 00 00 00 00 13 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 CB CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [19:06:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_GetShiftState done [19:06:52]FM_GetShiftState done [19:06:52]req_shift_opened done [19:06:52]requested_item shift.open_date is exist - process it [19:06:52]req_shift_open_date [19:06:52]req_shift_open_date done [19:06:52]produce_requested_data done [19:06:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191585,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:06:52]process_action_free close_receipt [19:06:52]json_value_free [19:06:52]json_value_free done [19:06:52]process_json_proto returns [19:06:52]Send response to host [19:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191585,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:06:52]free response buf [19:06:52]execute_script done [19:06:52]execute_script returns [19:06:52]free content buf [19:06:52]Sock 9.Close socket [19:06:52]Sock 9.Thread stoped [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:01]accept exits with 8 [19:09:01]New connection [19:09:01]New thread 3066961252 created [19:09:01]Thread 3066817892 joined [19:09:01]Waiting for new connection... [19:09:01] Sock 8.Parse request [19:09:01]Sock 8.Check first char [19:09:01]Sock 8.First char is OK [19:09:01]request: POST /json_proto HTTP/1.0 [19:09:01]Method: POST [19:09:01]URL: /json_proto [19:09:01]Method is POST - this is cgi request [19:09:01]url: /json_proto [19:09:01]query_string will be loaded in cgi processing [19:09:01]execute_cgi json_proto POST (null) [19:09:01]execute_cgi path=json_proto method=POST [19:09:01]POST find Content-Length [19:09:01]Host: 172.17.63.131:8080 [19:09:01]Content-Length: 983 [19:09:01]Content-Type: application/json [19:09:01] [19:09:01]POST finish read [19:09:01]Found Content-Length = 983 [19:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:01]execute_script... [19:09:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:01]POST & json_proto [19:09:01]process_json_proto [19:09:01]json parsed OK: [19:09:01]protocol is kg_v1.0 [19:09:01]action value=close_receipt [19:09:01]process_action close_receipt [19:09:01]cmd_close_receipt [19:09:01]MH_GetDate [19:09:01]Write to MH i2c: F0 00 00 CC CB 86 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 09 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 09 00 CC CB 00 D8 EC 1B 67 22 05 6E 64 CE [19:09:01]GetLastDocTimeStamp 1729883218 [19:09:01]current date 1729883352 [19:09:01]FM_GetShiftState [19:09:01]SAM_PROTO_GetShiftState [19:09:01]wFMCommunicate request_size=4 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 13 01 00 [19:09:01]Write to MH i2c: E2 08 00 CD CB 80 13 01 00 00 00 00 00 15 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0E 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0E 00 CD CB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [19:09:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:09:02]wFMCommunicate OK [19:09:02]SAM_PROTO_GetShiftState done [19:09:02]FM_GetShiftState done [19:09:02]opened in 1729816399 [19:09:02]opened+sec_in_day 1729902799 [19:09:02]quantity*price = 200006 [19:09:02]sum+1 = 200008 [19:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 325 25.10.2024 19:09 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 191586 ФПД: 7114659620872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191586&fm=7114659620872&tin=02508201610067®Number=0000000000091776&sum=200000 [19:09:03]StoreToDocumentArchive [19:09:03]shift 540 fd 191586 [19:09:03]save to /storage/0540/doc_00191586 [19:09:03]save last doc name /storage/0540/doc_00191586 to /storage/kkm_last_doc_name [19:09:03]save OK [19:09:03]Clear old archive folders... [19:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:03]tlvbuf is 01789B20 [19:09:03]SAM_PROTO_ClearQueue [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 09 00 00 [19:09:03]Write to MH i2c: E2 08 00 DA CB 80 09 00 00 00 00 00 00 17 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 DA CB 00 90 00 19 [19:09:03]RAPDU: 90 00 [19:09:03]wFMCommunicate OK [19:09:03]SAM_PROTO_ClearQueue done [19:09:03]KKMCreateOFDPacket [19:09:03]OFDProtocolAddRootSTLVToBuf [19:09:03]FM_MakeSignedData [19:09:03]FM_MakeSignedData [19:09:03]SAM_PROTO_SignData [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 0D 01 02 [19:09:03]Write to MH i2c: E2 08 00 DB CB 80 0D 01 02 00 00 00 00 1F [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 DB CB 00 90 00 1A [19:09:03]RAPDU: 90 00 [19:09:03]wFMCommunicate OK [19:09:03]wFMCommunicate request_size=255 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EC 02 00 35 04 06 00 06 [19:09:03]Write to MH i2c: E2 02 01 DC CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EC 02 00 35 04 06 00 06 00 00 3A [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 DC CB 00 90 00 1B [19:09:03]RAPDU: 90 00 [19:09:03]wFMCommunicate OK [19:09:03]wFMCommunicate request_size=10 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 0D 02 02 05 78 82 C2 68 08 [19:09:03]Write to MH i2c: E2 0D 00 DD CB 80 0D 02 02 05 00 78 82 C2 68 08 00 00 58 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 03 00 DD CB 00 90 00 1C [19:09:03]RAPDU: 90 00 [19:09:03]wFMCommunicate OK [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 0D 03 02 [19:09:03]Write to MH i2c: E2 08 00 DE CB 80 0D 03 02 00 00 00 00 24 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 0B 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 0B 00 DE CB 00 AB 33 B2 CF 84 CC B4 CF 90 00 57 [19:09:03]RAPDU: AB 33 B2 CF 84 CC B4 CF 90 00 [19:09:03]wFMCommunicate OK [19:09:03]SAM_PROTO_SignData done [19:09:03]FM_MakeSignedData done [19:09:03]CreateOFDProtocolMessage [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 11 00 00 [19:09:03]Write to MH i2c: E2 08 00 DF CB 80 11 00 00 00 00 00 00 24 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 17 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 17 00 DF CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [19:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:09:03]wFMCommunicate OK [19:09:03]CreateOFDProtocolMessage done [19:09:03]OFDSenderStorePacket 191586 [19:09:03]StoreOFDPacket docnum=191586 [19:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A5 D0 07 01 2E E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EC 02 00 35 04 06 00 06 78 82 C2 68 08 AB 33 B2 CF 84 CC B4 CF [19:09:03]CheckFolder [19:09:03]dirname=/storage/ofd_packets [19:09:03]CheckFolder done [19:09:03]ProducePacketName [19:09:03]name=ofd_packets/00191586 [19:09:03]NVStorageSaveData ofd_packets/00191586 [19:09:03]File name is /storage/ofd_packets/00191586 [19:09:03]Write 301 bytes [19:09:03]NVStorageSaveData done [19:09:03]OFDSenderStorePacket done [19:09:03]KKMCreateOFDPacket done [19:09:03]NVStorageSaveData kkm_last_timestamp [19:09:03]File name is /storage/kkm_last_timestamp [19:09:03]Write 4 bytes [19:09:03]NVStorageSaveData done [19:09:03]ExternCall_PrintAddStr [19:09:03]wPrintStart [19:09:03]Write to MH i2c: 01 00 00 E0 CB AB [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 07 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 07 00 E0 CB 00 00 00 00 00 FF 0F C0 [19:09:03]RasterBufferAndPrint [19:09:03]line Счет N : (1)30888 [19:09:03]line ИНН: 02508201610067 [19:09:03]line Контрольно-Кассовый Чек [19:09:03]line ПРОДАЖА [19:09:03]line ТРК (МРК, ГНК) : 21 [19:09:03]line Товар: 2710124130 [19:09:03]line Аи-92-К-5 [19:09:03]line 30.350 * 65.90 [19:09:03]line = 2000.07 [19:09:03]line НДС 12% НСП 1% [19:09:03]line > о реализуемом товаре [19:09:03]line ОКРУГЛЕНИЕ: -0.07 [19:09:03]line ИТОГО: 2000.00 [19:09:03]line Внесено: 2000.00 [19:09:03]line СДАЧА: 0.00 [19:09:03]line НСП 1% : 17.70 [19:09:03]line НДС 12% : 212.40 [19:09:03]line Наличными: 2000.00 [19:09:03]line Безнал.: 0.00 [19:09:03]line Место: АЗС № 170 "Партнер Нефть" [19:09:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:09:03]line СНО: Общий режим [19:09:03]line Чек 325 25.10.2024 19:09 [19:09:03]line Смена: 540 ФФД: 1.0 [19:09:03]line ЗНМ: 0300000110 [19:09:03]line РНМ: 0000000000091776 [19:09:03]line Версия ККМ: 001 [19:09:03]line [19:09:03]line Дисконтная программа [19:09:03]line АИ-92 [19:09:03]line номер 170 [19:09:03]line сэкономлено 30.35 сом [19:09:03]line ФМ: 0000000000871754 [19:09:03]line ФД: 191586 [19:09:03]line ФПД: 7114659620872 [19:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191586&fm=7114659620872&tin=02508201610067®Number=0000000000091776&sum=200000 [19:09:04]OFD Sender: Processing packet 191586 [packets to send 75, broken 74] [19:09:04]ProducePacketName [19:09:04]name=ofd_packets/00191586 [19:09:04]OFD Sender: To server: pG, [19:09:04]CommunicateWithHost lk.salyk.kg:30040 [19:09:04]ConnectInit lk.salyk.kg [19:09:04]written 0, free lines is 4095 [19:09:04]Connected sock=11 [19: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 31 37 35 34 0F 01 00 00 A5 D0 07 01 2E E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 EC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EC 02 00 35 04 06 00 06 78 82 C2 68 08 AB 33 B2 CF 84 CC B4 CF [19:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A 4A 47 00 42 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EC 02 00 F4 03 04 00 A6 91 1B 67 B6 04 01 00 00 D0 34 82 FD 1F 75 96 06 [19:09:04]CommunicateWithHost err = 0 [19:09:04]CheckOFDResponse [19:09:04]1017 (14) - 77093643461234 [19:09:04]1041 (16) - 0000000000871754 [19:09:04]1040 (4) - 191586 [19:09:04]1012 (4) - 25.10.2024 12:40 [19:09:04]1206 (1) - 0 [19:09:04]OFD Sender: Remove packet 191586 [19:09:04]ProducePacketName [19:09:04]name=ofd_packets/00191586 [19:09:04]NVStorageDeleteData [19:09:04]Write to MH i2c: 01 00 00 10 CC DC [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: 01 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: 01 07 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: 01 07 00 10 CC 00 00 00 00 00 68 0C 57 [19:09:04]RasterBufferAndPrint [19:09:04]line [19:09:04]line [19:09:04]line [19:09:04]line [19:09:04]line [19:09:04]written 0, free lines is 3182 [19:09:04]MH_Cut [19:09:04]Write to MH i2c: D1 01 00 17 CC 01 B5 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: D1 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: D1 01 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: D1 01 00 17 CC 00 B4 [19:09:04]Write to MH i2c: 01 00 00 18 CC E4 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]OFD Sender: No OFD packet to send [19:09:05]*** Cut start [19:09:05]*** Partial cut [19:09:05]*** CUTSNS_PIN = 1 [19:09:05]*** CUTSNS_PIN = 0 [19:09:05]*** Brake cut motor [19:09:06]Read from MH i2c: 01 [19:09:06]MH_I2C_Read... [19:09:06]*** Stop cut motor [19:09:06]*** Cut end [19:09:06]Read from MH i2c: 01 07 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 18 CC 00 00 00 00 00 FF 0F F9 [19:09:06]process_action close_receipt done [19:09:06]requested_data is exist [19:09:06]produce_requested_data [19:09:06]requested_item fm.sn is exist - process it [19:09:06]wFMCommunicate request_size=4 [19:09:06]MH_SAM_APDU [19:09:06]CAPDU: 80 11 00 00 [19:09:06]Write to MH i2c: E2 08 00 19 CC 80 11 00 00 00 00 00 00 5F [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 19 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [19:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:09:06]wFMCommunicate OK [19:09:06]requested_item fd.num is exist - process it [19:09:06]SAM_PROTO_GetFieldsCounters [19:09:06]wFMCommunicate request_size=4 [19:09:06]MH_SAM_APDU [19:09:06]CAPDU: 80 13 00 00 [19:09:06]Write to MH i2c: E2 08 00 1A CC 80 13 00 00 00 00 00 00 62 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 62 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 62 00 1A CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:06]wFMCommunicate OK [19:09:06]SAM_PROTO_GetFieldsCounters done [19:09:06]requested_item shift.num is exist - process it [19:09:06]requested_item shift.opened is exist - process it [19:09:06]req_shift_opened [19:09:06]FM_GetShiftState [19:09:06]SAM_PROTO_GetShiftState [19:09:06]wFMCommunicate request_size=4 [19:09:06]MH_SAM_APDU [19:09:06]CAPDU: 80 13 01 00 [19:09:06]Write to MH i2c: E2 08 00 1B CC 80 13 01 00 00 00 00 00 64 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:06]Read from MH i2c: E2 0E 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 0E 00 1B CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 27 [19:09:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:09:06]wFMCommunicate OK [19:09:06]SAM_PROTO_GetShiftState done [19:09:06]FM_GetShiftState done [19:09:06]req_shift_opened done [19:09:06]requested_item shift.open_date is exist - process it [19:09:06]req_shift_open_date [19:09:06]req_shift_open_date done [19:09:06]produce_requested_data done [19:09:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191586,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:09:06]process_action_free close_receipt [19:09:06]json_value_free [19:09:06]json_value_free done [19:09:06]process_json_proto returns [19:09:06]Send response to host [19:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191586,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:09:06]free response buf [19:09:06]execute_script done [19:09:06]execute_script returns [19:09:06]free content buf [19:09:06]Sock 8.Close socket [19:09:06]Sock 8.Thread stoped [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:11]accept exits with 9 [19:10:11]New connection [19:10:11]New thread 3066817892 created [19:10:11]Thread 3066961252 joined [19:10:11]Waiting for new connection... [19:10:11] Sock 9.Parse request [19:10:11]Sock 9.Check first char [19:10:11]Sock 9.First char is OK [19:10:11]request: POST /json_proto HTTP/1.0 [19:10:11]Method: POST [19:10:11]URL: /json_proto [19:10:11]Method is POST - this is cgi request [19:10:11]url: /json_proto [19:10:11]query_string will be loaded in cgi processing [19:10:11]execute_cgi json_proto POST (null) [19:10:11]execute_cgi path=json_proto method=POST [19:10:11]POST find Content-Length [19:10:11]Host: 172.17.63.131:8080 [19:10:11]Content-Length: 676 [19:10:11]Content-Type: application/json [19:10:11] [19:10:11]POST finish read [19:10:11]Found Content-Length = 676 [19:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]execute_script... [19:10:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]POST & json_proto [19:10:11]process_json_proto [19:10:11]json parsed OK: [19:10:11]protocol is kg_v1.0 [19:10:11]action value=close_receipt [19:10:11]process_action close_receipt [19:10:11]cmd_close_receipt [19:10:11]MH_GetDate [19:10:11]Write to MH i2c: F0 00 00 1C CC D7 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 1C CC 00 1D ED 1B 67 22 05 6E 64 65 [19:10:11]GetLastDocTimeStamp 1729883352 [19:10:11]current date 1729883421 [19:10:11]FM_GetShiftState [19:10:11]SAM_PROTO_GetShiftState [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 13 01 00 [19:10:11]Write to MH i2c: E2 08 00 1D CC 80 13 01 00 00 00 00 00 66 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 1D CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 29 [19:10:11]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_GetShiftState done [19:10:11]FM_GetShiftState done [19:10:11]opened in 1729816399 [19:10:11]opened+sec_in_day 1729902799 [19:10:11]quantity*price = 40006 [19:10:11]sum+1 = 40007 [19:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 326 25.10.2024 19:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191587 ФПД: 183362141489601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191021&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191587&fm=183362141489601&tin=02508201610067®Number=0000000000091776&sum=40000 [19:10:12]StoreToDocumentArchive [19:10:12]shift 540 fd 191587 [19:10:12]save to /storage/0540/doc_00191587 [19:10:12]save last doc name /storage/0540/doc_00191587 to /storage/kkm_last_doc_name [19:10:12]save OK [19:10:12]Clear old archive folders... [19:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:12]tlvbuf is 015B0F30 [19:10:12]SAM_PROTO_ClearQueue [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 09 00 00 [19:10:12]Write to MH i2c: E2 08 00 2A CC 80 09 00 00 00 00 00 00 68 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 2A CC 00 90 00 6A [19:10:12]RAPDU: 90 00 [19:10:12]wFMCommunicate OK [19:10:12]SAM_PROTO_ClearQueue done [19:10:12]KKMCreateOFDPacket [19:10:12]OFDProtocolAddRootSTLVToBuf [19:10:12]FM_MakeSignedData [19:10:12]FM_MakeSignedData [19:10:12]SAM_PROTO_SignData [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 0D 01 02 [19:10:12]Write to MH i2c: E2 08 00 2B CC 80 0D 01 02 00 00 00 00 70 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 2B CC 00 90 00 6B [19:10:12]RAPDU: 90 00 [19:10:12]wFMCommunicate OK [19:10:12]wFMCommunicate request_size=255 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EC 02 00 35 04 06 00 A6 [19:10:12]Write to MH i2c: E2 02 01 2C CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EC 02 00 35 04 06 00 A6 00 00 BB [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 2C CC 00 90 00 6C [19:10:12]RAPDU: 90 00 [19:10:12]wFMCommunicate OK [19:10:12]wFMCommunicate request_size=10 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 0D 02 02 05 C4 53 4F 09 C1 [19:10:12]Write to MH i2c: E2 0D 00 2D CC 80 0D 02 02 05 00 C4 53 4F 09 C1 00 00 AD [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:12]Read from MH i2c: E2 03 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 2D CC 00 90 00 6D [19:10:12]RAPDU: 90 00 [19:10:12]wFMCommunicate OK [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 0D 03 02 [19:10:12]Write to MH i2c: E2 08 00 2E CC 80 0D 03 02 00 00 00 00 75 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 0B 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 0B 00 2E CC 00 A2 0D F0 78 34 4E EF 84 90 00 82 [19:10:12]RAPDU: A2 0D F0 78 34 4E EF 84 90 00 [19:10:12]wFMCommunicate OK [19:10:12]SAM_PROTO_SignData done [19:10:12]FM_MakeSignedData done [19:10:12]CreateOFDProtocolMessage [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 11 00 00 [19:10:12]Write to MH i2c: E2 08 00 2F CC 80 11 00 00 00 00 00 00 75 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 2F CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [19:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:10:12]wFMCommunicate OK [19:10:12]CreateOFDProtocolMessage done [19:10:12]OFDSenderStorePacket 191587 [19:10:12]StoreOFDPacket docnum=191587 [19:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 98 07 01 48 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EC 02 00 35 04 06 00 A6 C4 53 4F 09 C1 A2 0D F0 78 34 4E EF 84 [19:10:12]CheckFolder [19:10:12]dirname=/storage/ofd_packets [19:10:12]CheckFolder done [19:10:12]ProducePacketName [19:10:12]name=ofd_packets/00191587 [19:10:12]NVStorageSaveData ofd_packets/00191587 [19:10:12]File name is /storage/ofd_packets/00191587 [19:10:12]Write 301 bytes [19:10:12]NVStorageSaveData done [19:10:12]OFDSenderStorePacket done [19:10:12]KKMCreateOFDPacket done [19:10:12]NVStorageSaveData kkm_last_timestamp [19:10:12]File name is /storage/kkm_last_timestamp [19:10:12]Write 4 bytes [19:10:12]NVStorageSaveData done [19:10:12]ExternCall_PrintAddStr [19:10:12]wPrintStart [19:10:12]Write to MH i2c: 01 00 00 30 CC FC [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 30 CC 00 00 00 00 00 FF 0F 11 [19:10:12]RasterBufferAndPrint [19:10:12]line Счет N : (1)30889 [19:10:12]line ИНН: 02508201610067 [19:10:12]line Контрольно-Кассовый Чек [19:10:12]line ПРОДАЖА [19:10:12]line ТРК (МРК, ГНК) : 12 [19:10:12]line Товар: 2710124130 [19:10:12]line Аи-92-К-5 [19:10:12]line 5.980 * 66.90 [19:10:12]line = 400.06 [19:10:12]line НДС 12% НСП 1% [19:10:12]line > о реализуемом товаре [19:10:12]line ОКРУГЛЕНИЕ: -0.06 [19:10:12]line ИТОГО: 400.00 [19:10:12]line Внесено: 400.00 [19:10:12]line СДАЧА: 0.00 [19:10:12]line НСП 1% : 3.54 [19:10:12]line НДС 12% : 42.48 [19:10:12]line Наличными: 400.00 [19:10:12]line Безнал.: 0.00 [19:10:12]line Место: АЗС № 170 "Партнер Нефть" [19:10:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:10:12]line СНО: Общий режим [19:10:12]line Чек 326 25.10.2024 19:10 [19:10:12]line Смена: 540 ФФД: 1.0 [19:10:12]line ЗНМ: 0300000110 [19:10:12]line РНМ: 0000000000091776 [19:10:12]line Версия ККМ: 001 [19:10:12]line ФМ: 0000000000871754 [19:10:12]line ФД: 191587 [19:10:12]line ФПД: 183362141489601 [19:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191021&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191587&fm=183362141489601&tin=02508201610067®Number=0000000000091776&sum=40000 [19:10:13]OFD Sender: Processing packet 191587 [packets to send 75, broken 74] [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00191587 [19:10:13]OFD Sender: To server: pG, [19:10:13]CommunicateWithHost lk.salyk.kg:30040 [19:10:13]ConnectInit lk.salyk.kg [19:10:13]written 0, free lines is 4095 [19:10:13]Connected sock=10 [19:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 98 07 01 48 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EC 02 00 35 04 06 00 A6 C4 53 4F 09 C1 A2 0D F0 78 34 4E EF 84 [19:10:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9C 1A 47 00 DD DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EC 02 00 F4 03 04 00 EB 91 1B 67 B6 04 01 00 00 0F 90 13 E8 4A C2 E7 A7 [19:10:13]CommunicateWithHost err = 0 [19:10:13]CheckOFDResponse [19:10:13]1017 (14) - 77093643461234 [19:10:13]1041 (16) - 0000000000871754 [19:10:13]1040 (4) - 191587 [19:10:13]1012 (4) - 25.10.2024 12:41 [19:10:13]1206 (1) - 0 [19:10:13]OFD Sender: Remove packet 191587 [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00191587 [19:10:13]NVStorageDeleteData [19:10:13]Write to MH i2c: 01 00 00 5B CC 27 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 5B CC 00 00 00 00 00 C0 0C FA [19:10:13]RasterBufferAndPrint [19:10:13]line [19:10:13]line [19:10:13]line [19:10:13]line [19:10:13]line [19:10:13]written 0, free lines is 3270 [19:10:13]MH_Cut [19:10:13]Write to MH i2c: D1 01 00 62 CC 01 00 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: D1 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: D1 01 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: D1 01 00 62 CC 00 FF [19:10:13]Write to MH i2c: 01 00 00 63 CC 2F [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:14]OFD Sender: No OFD packet to send [19:10:14]*** Cut start [19:10:14]*** Partial cut [19:10:14]*** CUTSNS_PIN = 1 [19:10:14]*** CUTSNS_PIN = 0 [19:10:14]*** Brake cut motor [19:10:15]Read from MH i2c: 01 [19:10:15]MH_I2C_Read... [19:10:15]*** Stop cut motor [19:10:15]*** Cut end [19:10:15]Read from MH i2c: 01 07 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 63 CC 00 00 00 00 00 FF 0F 44 [19:10:15]process_action close_receipt done [19:10:15]requested_data is exist [19:10:15]produce_requested_data [19:10:15]requested_item fm.sn is exist - process it [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 11 00 00 [19:10:15]Write to MH i2c: E2 08 00 64 CC 80 11 00 00 00 00 00 00 AA [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 64 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [19:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:10:15]wFMCommunicate OK [19:10:15]requested_item fd.num is exist - process it [19:10:15]SAM_PROTO_GetFieldsCounters [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 13 00 00 [19:10:15]Write to MH i2c: E2 08 00 65 CC 80 13 00 00 00 00 00 00 AD [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 62 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 62 00 65 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [19:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_GetFieldsCounters done [19:10:15]requested_item shift.num is exist - process it [19:10:15]requested_item shift.opened is exist - process it [19:10:15]req_shift_opened [19:10:15]FM_GetShiftState [19:10:15]SAM_PROTO_GetShiftState [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 13 01 00 [19:10:15]Write to MH i2c: E2 08 00 66 CC 80 13 01 00 00 00 00 00 AF [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0E 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0E 00 66 CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 72 [19:10:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_GetShiftState done [19:10:15]FM_GetShiftState done [19:10:15]req_shift_opened done [19:10:15]requested_item shift.open_date is exist - process it [19:10:15]req_shift_open_date [19:10:15]req_shift_open_date done [19:10:15]produce_requested_data done [19:10:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191587,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:10:15]process_action_free close_receipt [19:10:15]json_value_free [19:10:15]json_value_free done [19:10:15]process_json_proto returns [19:10:15]Send response to host [19:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191587,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:10:15]free response buf [19:10:15]execute_script done [19:10:15]execute_script returns [19:10:15]free content buf [19:10:15]Sock 9.Close socket [19:10:15]Sock 9.Thread stoped [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:44]accept exits with 8 [19:11:44]New connection [19:11:44]New thread 3066961252 created [19:11:44]Thread 3066817892 joined [19:11:44]Waiting for new connection... [19:11:44] Sock 8.Parse request [19:11:44]Sock 8.Check first char [19:11:44]Sock 8.First char is OK [19:11:44]request: POST /json_proto HTTP/1.0 [19:11:44]Method: POST [19:11:44]URL: /json_proto [19:11:44]Method is POST - this is cgi request [19:11:44]url: /json_proto [19:11:44]query_string will be loaded in cgi processing [19:11:44]execute_cgi json_proto POST (null) [19:11:44]execute_cgi path=json_proto method=POST [19:11:44]POST find Content-Length [19:11:44]Host: 172.17.63.131:8080 [19:11:44]Content-Length: 678 [19:11:44]Content-Type: application/json [19:11:44] [19:11:44]POST finish read [19:11:44]Found Content-Length = 678 [19:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:44]execute_script... [19:11: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)30890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:44]POST & json_proto [19:11:44]process_json_proto [19:11:44]json parsed OK: [19:11:44]protocol is kg_v1.0 [19:11:44]action value=close_receipt [19:11:44]process_action close_receipt [19:11:44]cmd_close_receipt [19:11:44]MH_GetDate [19:11:44]Write to MH i2c: F0 00 00 67 CC 22 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: F0 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: F0 09 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: F0 09 00 67 CC 00 7B ED 1B 67 22 05 6E 64 0E [19:11:44]GetLastDocTimeStamp 1729883421 [19:11:44]current date 1729883515 [19:11:44]FM_GetShiftState [19:11:44]SAM_PROTO_GetShiftState [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 13 01 00 [19:11:44]Write to MH i2c: E2 08 00 68 CC 80 13 01 00 00 00 00 00 B1 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0E 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0E 00 68 CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 74 [19:11:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:11:44]wFMCommunicate OK [19:11:44]SAM_PROTO_GetShiftState done [19:11:44]FM_GetShiftState done [19:11:44]opened in 1729816399 [19:11:44]opened+sec_in_day 1729902799 [19:11:44]quantity*price = 340004 [19:11:44]sum+1 = 340005 [19:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 3400.00 Внесено: 3400.00 СДАЧА: 0.00 НСП 1% : 30.09 НДС 12% : 361.07 Наличными: 3400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 327 25.10.2024 19:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191588 ФПД: 233112891704829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191588&fm=233112891704829&tin=02508201610067®Number=0000000000091776&sum=340000 [19:11:45]StoreToDocumentArchive [19:11:45]shift 540 fd 191588 [19:11:45]save to /storage/0540/doc_00191588 [19:11:45]save last doc name /storage/0540/doc_00191588 to /storage/kkm_last_doc_name [19:11:45]save OK [19:11:45]Clear old archive folders... [19:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:45]tlvbuf is 019D5050 [19:11:45]SAM_PROTO_ClearQueue [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 09 00 00 [19:11:45]Write to MH i2c: E2 08 00 75 CC 80 09 00 00 00 00 00 00 B3 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 75 CC 00 90 00 B5 [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]SAM_PROTO_ClearQueue done [19:11:45]KKMCreateOFDPacket [19:11:45]OFDProtocolAddRootSTLVToBuf [19:11:45]FM_MakeSignedData [19:11:45]FM_MakeSignedData [19:11:45]SAM_PROTO_SignData [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 0D 01 02 [19:11:45]Write to MH i2c: E2 08 00 76 CC 80 0D 01 02 00 00 00 00 BB [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 76 CC 00 90 00 B6 [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]wFMCommunicate request_size=255 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7B ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EC 02 00 35 04 06 00 D4 03 D3 1A [19:11:45]Write to MH i2c: E2 02 01 77 CC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7B ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EC 02 00 35 04 06 00 D4 03 D3 1A 00 00 C5 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 03 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 03 00 77 CC 00 90 00 B7 [19:11:46]RAPDU: 90 00 [19:11:46]wFMCommunicate OK [19:11:46]wFMCommunicate request_size=7 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 0D 02 02 02 45 FD [19:11:46]Write to MH i2c: E2 0A 00 78 CC 80 0D 02 02 02 00 45 FD 00 00 04 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 03 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 03 00 78 CC 00 90 00 B8 [19:11:46]RAPDU: 90 00 [19:11:46]wFMCommunicate OK [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 0D 03 02 [19:11:46]Write to MH i2c: E2 08 00 79 CC 80 0D 03 02 00 00 00 00 C0 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0B 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 0B 00 79 CC 00 C0 1D 53 F8 F1 70 2D 9D 90 00 14 [19:11:46]RAPDU: C0 1D 53 F8 F1 70 2D 9D 90 00 [19:11:46]wFMCommunicate OK [19:11:46]SAM_PROTO_SignData done [19:11:46]FM_MakeSignedData done [19:11:46]CreateOFDProtocolMessage [19:11:46]wFMCommunicate request_size=4 [19:11:46]MH_SAM_APDU [19:11:46]CAPDU: 80 11 00 00 [19:11:46]Write to MH i2c: E2 08 00 7A CC 80 11 00 00 00 00 00 00 C0 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:46]Read from MH i2c: E2 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: E2 17 00 7A CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [19:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:11:46]wFMCommunicate OK [19:11:46]CreateOFDProtocolMessage done [19:11:46]OFDSenderStorePacket 191588 [19:11:46]StoreOFDPacket docnum=191588 [19:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 A8 04 01 92 B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7B ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EC 02 00 35 04 06 00 D4 03 D3 1A 45 FD C0 1D 53 F8 F1 70 2D 9D [19:11:46]CheckFolder [19:11:46]dirname=/storage/ofd_packets [19:11:46]CheckFolder done [19:11:46]ProducePacketName [19:11:46]name=ofd_packets/00191588 [19:11:46]NVStorageSaveData ofd_packets/00191588 [19:11:46]File name is /storage/ofd_packets/00191588 [19:11:46]Write 298 bytes [19:11:46]NVStorageSaveData done [19:11:46]OFDSenderStorePacket done [19:11:46]KKMCreateOFDPacket done [19:11:46]NVStorageSaveData kkm_last_timestamp [19:11:46]File name is /storage/kkm_last_timestamp [19:11:46]Write 4 bytes [19:11:46]NVStorageSaveData done [19:11:46]ExternCall_PrintAddStr [19:11:46]wPrintStart [19:11:46]Write to MH i2c: 01 00 00 7B CC 47 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 7B CC 00 00 00 00 00 FF 0F 5C [19:11:46]RasterBufferAndPrint [19:11:46]line Счет N : (1)30890 [19:11:46]line ИНН: 02508201610067 [19:11:46]line Контрольно-Кассовый Чек [19:11:46]line ПРОДАЖА [19:11:46]line ТРК (МРК, ГНК) : 22 [19:11:46]line Товар: 2710194210 [19:11:46]line ДТ-К-5 [19:11:46]line 44.620 * 76.20 [19:11:46]line = 3400.04 [19:11:46]line НДС 12% НСП 1% [19:11:46]line > о реализуемом товаре [19:11:46]line ОКРУГЛЕНИЕ: -0.04 [19:11:46]line ИТОГО: 3400.00 [19:11:46]line Внесено: 3400.00 [19:11:46]line СДАЧА: 0.00 [19:11:46]line НСП 1% : 30.09 [19:11:46]line НДС 12% : 361.07 [19:11:46]line Наличными: 3400.00 [19:11:46]line Безнал.: 0.00 [19:11:46]line Место: АЗС № 170 "Партнер Нефть" [19:11:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:11:46]line СНО: Общий режим [19:11:46]line Чек 327 25.10.2024 19:11 [19:11:46]line Смена: 540 ФФД: 1.0 [19:11:46]line ЗНМ: 0300000110 [19:11:46]line РНМ: 0000000000091776 [19:11:46]line Версия ККМ: 001 [19:11:46]line ФМ: 0000000000871754 [19:11:46]line ФД: 191588 [19:11:46]line ФПД: 233112891704829 [19:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191588&fm=233112891704829&tin=02508201610067®Number=0000000000091776&sum=340000 [19:11:46]OFD Sender: Processing packet 191588 [packets to send 75, broken 74] [19:11:46]ProducePacketName [19:11:46]name=ofd_packets/00191588 [19:11:46]OFD Sender: To server: pG, [19:11:46]CommunicateWithHost lk.salyk.kg:30040 [19:11:46]ConnectInit lk.salyk.kg [19:11:46]written 0, free lines is 4095 [19:11:46]Connected sock=10 [19:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 A8 04 01 92 B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 7B ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EC 02 00 35 04 06 00 D4 03 D3 1A 45 FD C0 1D 53 F8 F1 70 2D 9D [19:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5B 42 47 00 2B B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EC 02 00 F4 03 04 00 48 92 1B 67 B6 04 01 00 00 A5 8A C2 D5 75 81 59 87 [19:11:46]CommunicateWithHost err = 0 [19:11:46]CheckOFDResponse [19:11:46]1017 (14) - 77093643461234 [19:11:46]1041 (16) - 0000000000871754 [19:11:46]1040 (4) - 191588 [19:11:46]1012 (4) - 25.10.2024 12:42 [19:11:46]1206 (1) - 0 [19:11:46]OFD Sender: Remove packet 191588 [19:11:46]ProducePacketName [19:11:46]name=ofd_packets/00191588 [19:11:46]NVStorageDeleteData [19:11:47]Write to MH i2c: 01 00 00 A6 CC 72 [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: 01 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: 01 07 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: 01 07 00 A6 CC 00 00 00 00 00 CC 0C 51 [19:11:47]RasterBufferAndPrint [19:11:47]line [19:11:47]line [19:11:47]line [19:11:47]line [19:11:47]line [19:11:47]written 0, free lines is 3282 [19:11:47]MH_Cut [19:11:47]Write to MH i2c: D1 01 00 AD CC 01 4B [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: D1 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: D1 01 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: D1 01 00 AD CC 00 4A [19:11:47]Write to MH i2c: 01 00 00 AE CC 7A [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]OFD Sender: No OFD packet to send [19:11:47]*** Cut start [19:11:47]*** Partial cut [19:11:47]*** CUTSNS_PIN = 1 [19:11:47]*** CUTSNS_PIN = 0 [19:11:48]*** Brake cut motor [19:11:48]Read from MH i2c: 01 [19:11:48]MH_I2C_Read... [19:11:48]*** Stop cut motor [19:11:48]*** Cut end [19:11:48]Read from MH i2c: 01 07 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: 01 07 00 AE CC 00 00 00 00 00 FF 0F 8F [19:11:48]process_action close_receipt done [19:11:48]requested_data is exist [19:11:48]produce_requested_data [19:11:48]requested_item fm.sn is exist - process it [19:11:48]wFMCommunicate request_size=4 [19:11:48]MH_SAM_APDU [19:11:48]CAPDU: 80 11 00 00 [19:11:48]Write to MH i2c: E2 08 00 AF CC 80 11 00 00 00 00 00 00 F5 [19:11:48]Write i2c OK [19:11:48]MH_I2C_Read... [19:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:48]Read from MH i2c: E2 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 17 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 17 00 AF CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [19:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:11:48]wFMCommunicate OK [19:11:48]requested_item fd.num is exist - process it [19:11:48]SAM_PROTO_GetFieldsCounters [19:11:48]wFMCommunicate request_size=4 [19:11:48]MH_SAM_APDU [19:11:48]CAPDU: 80 13 00 00 [19:11:48]Write to MH i2c: E2 08 00 B0 CC 80 13 00 00 00 00 00 00 F8 [19:11:48]Write i2c OK [19:11:48]MH_I2C_Read... [19:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:48]Read from MH i2c: E2 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 62 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 62 00 B0 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [19:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:48]wFMCommunicate OK [19:11:48]SAM_PROTO_GetFieldsCounters done [19:11:48]requested_item shift.num is exist - process it [19:11:48]requested_item shift.opened is exist - process it [19:11:48]req_shift_opened [19:11:48]FM_GetShiftState [19:11:48]SAM_PROTO_GetShiftState [19:11:48]wFMCommunicate request_size=4 [19:11:48]MH_SAM_APDU [19:11:48]CAPDU: 80 13 01 00 [19:11:48]Write to MH i2c: E2 08 00 B1 CC 80 13 01 00 00 00 00 00 FA [19:11:48]Write i2c OK [19:11:48]MH_I2C_Read... [19:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:48]Read from MH i2c: E2 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 0E 00 [19:11:48]MH_I2C_Read... [19:11:48]Read from MH i2c: E2 0E 00 B1 CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BD [19:11:48]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:11:48]wFMCommunicate OK [19:11:48]SAM_PROTO_GetShiftState done [19:11:48]FM_GetShiftState done [19:11:48]req_shift_opened done [19:11:48]requested_item shift.open_date is exist - process it [19:11:48]req_shift_open_date [19:11:48]req_shift_open_date done [19:11:48]produce_requested_data done [19:11:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191588,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:11:48]process_action_free close_receipt [19:11:48]json_value_free [19:11:48]json_value_free done [19:11:48]process_json_proto returns [19:11:48]Send response to host [19:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191588,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:11:48]free response buf [19:11:48]execute_script done [19:11:48]execute_script returns [19:11:48]free content buf [19:11:48]Sock 8.Close socket [19:11:48]Sock 8.Thread stoped [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:38]accept exits with 9 [19:12:38]New connection [19:12:38]New thread 3066817892 created [19:12:38]Thread 3066961252 joined [19:12:38]Waiting for new connection... [19:12:38] Sock 9.Parse request [19:12:38]Sock 9.Check first char [19:12:38]Sock 9.First char is OK [19:12:38]request: POST /json_proto HTTP/1.0 [19:12:38]Method: POST [19:12:38]URL: /json_proto [19:12:38]Method is POST - this is cgi request [19:12:38]url: /json_proto [19:12:38]query_string will be loaded in cgi processing [19:12:38]execute_cgi json_proto POST (null) [19:12:38]execute_cgi path=json_proto method=POST [19:12:38]POST find Content-Length [19:12:38]Host: 172.17.63.131:8080 [19:12:38]Content-Length: 781 [19:12:38]Content-Type: application/json [19:12:38] [19:12:38]POST finish read [19:12:38]Found Content-Length = 781 [19:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220332", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:38]execute_script... [19:12: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)30891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220332", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:38]POST & json_proto [19:12:38]process_json_proto [19:12:38]json parsed OK: [19:12:38]protocol is kg_v1.0 [19:12:38]action value=close_receipt [19:12:38]process_action close_receipt [19:12:38]cmd_close_receipt [19:12:38]MH_GetDate [19:12:38]Write to MH i2c: F0 00 00 B2 CC 6D [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: F0 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: F0 09 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: F0 09 00 B2 CC 00 B1 ED 1B 67 22 05 6E 64 8F [19:12:38]GetLastDocTimeStamp 1729883515 [19:12:38]current date 1729883569 [19:12:38]FM_GetShiftState [19:12:38]SAM_PROTO_GetShiftState [19:12:38]wFMCommunicate request_size=4 [19:12:38]MH_SAM_APDU [19:12:38]CAPDU: 80 13 01 00 [19:12:38]Write to MH i2c: E2 08 00 B3 CC 80 13 01 00 00 00 00 00 FC [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:38]Read from MH i2c: E2 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0E 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0E 00 B3 CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BF [19:12:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:12:38]wFMCommunicate OK [19:12:38]SAM_PROTO_GetShiftState done [19:12:38]FM_GetShiftState done [19:12:38]opened in 1729816399 [19:12:38]opened+sec_in_day 1729902799 [19:12:38]quantity*price = 0 [19:12:38]sum+1 = 1 [19:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 328 25.10.2024 19:12 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 4220332 ФМ: 0000000000871754 ФД: 191589 ФПД: 160390049354848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191589&fm=160390049354848&tin=02508201610067®Number=0000000000091776&sum=0 [19:12:39]StoreToDocumentArchive [19:12:39]shift 540 fd 191589 [19:12:39]save to /storage/0540/doc_00191589 [19:12:39]save last doc name /storage/0540/doc_00191589 to /storage/kkm_last_doc_name [19:12:39]save OK [19:12:39]Clear old archive folders... [19:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:39]tlvbuf is 015B10C0 [19:12:39]SAM_PROTO_ClearQueue [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 09 00 00 [19:12:39]Write to MH i2c: E2 08 00 C0 CC 80 09 00 00 00 00 00 00 FE [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 C0 CC 00 90 00 00 [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_ClearQueue done [19:12:39]KKMCreateOFDPacket [19:12:39]OFDProtocolAddRootSTLVToBuf [19:12:39]FM_MakeSignedData [19:12:39]FM_MakeSignedData [19:12:39]SAM_PROTO_SignData [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 0D 01 02 [19:12:39]Write to MH i2c: E2 08 00 C1 CC 80 0D 01 02 00 00 00 00 06 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 C1 CC 00 90 00 01 [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]wFMCommunicate request_size=255 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 B1 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EC 02 00 35 04 06 00 91 [19:12:39]Write to MH i2c: E2 02 01 C2 CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 B1 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EC 02 00 35 04 06 00 91 00 00 B7 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:40]Read from MH i2c: E2 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 03 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 03 00 C2 CC 00 90 00 02 [19:12:40]RAPDU: 90 00 [19:12:40]wFMCommunicate OK [19:12:40]wFMCommunicate request_size=10 [19:12:40]MH_SAM_APDU [19:12:40]CAPDU: 80 0D 02 02 05 DF B7 EA D4 60 [19:12:40]Write to MH i2c: E2 0D 00 C3 CC 80 0D 02 02 05 00 DF B7 EA D4 60 00 00 C7 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:40]Read from MH i2c: E2 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 03 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 03 00 C3 CC 00 90 00 03 [19:12:40]RAPDU: 90 00 [19:12:40]wFMCommunicate OK [19:12:40]wFMCommunicate request_size=4 [19:12:40]MH_SAM_APDU [19:12:40]CAPDU: 80 0D 03 02 [19:12:40]Write to MH i2c: E2 08 00 C4 CC 80 0D 03 02 00 00 00 00 0B [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:40]Read from MH i2c: E2 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 0B 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 0B 00 C4 CC 00 D5 27 09 B2 45 C0 60 7C 90 00 A4 [19:12:40]RAPDU: D5 27 09 B2 45 C0 60 7C 90 00 [19:12:40]wFMCommunicate OK [19:12:40]SAM_PROTO_SignData done [19:12:40]FM_MakeSignedData done [19:12:40]CreateOFDProtocolMessage [19:12:40]wFMCommunicate request_size=4 [19:12:40]MH_SAM_APDU [19:12:40]CAPDU: 80 11 00 00 [19:12:40]Write to MH i2c: E2 08 00 C5 CC 80 11 00 00 00 00 00 00 0B [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:40]Read from MH i2c: E2 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 17 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: E2 17 00 C5 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [19:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:40]wFMCommunicate OK [19:12:40]CreateOFDProtocolMessage done [19:12:40]OFDSenderStorePacket 191589 [19:12:40]StoreOFDPacket docnum=191589 [19:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 19 E2 07 01 75 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 B1 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EC 02 00 35 04 06 00 91 DF B7 EA D4 60 D5 27 09 B2 45 C0 60 7C [19:12:40]CheckFolder [19:12:40]dirname=/storage/ofd_packets [19:12:40]CheckFolder done [19:12:40]ProducePacketName [19:12:40]name=ofd_packets/00191589 [19:12:40]NVStorageSaveData ofd_packets/00191589 [19:12:40]File name is /storage/ofd_packets/00191589 [19:12:40]Write 301 bytes [19:12:40]NVStorageSaveData done [19:12:40]OFDSenderStorePacket done [19:12:40]KKMCreateOFDPacket done [19:12:40]NVStorageSaveData kkm_last_timestamp [19:12:40]File name is /storage/kkm_last_timestamp [19:12:40]Write 4 bytes [19:12:40]NVStorageSaveData done [19:12:40]ExternCall_PrintAddStr [19:12:40]wPrintStart [19:12:40]Write to MH i2c: 01 00 00 C6 CC 92 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 07 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 07 00 C6 CC 00 00 00 00 00 FF 0F A7 [19:12:40]RasterBufferAndPrint [19:12:40]line Счет N : (1)30891 [19:12:40]line ИНН: 02508201610067 [19:12:40]line Контрольно-Кассовый Чек [19:12:40]line ПРОДАЖА [19:12:40]line ТРК (МРК, ГНК) : 12 [19:12:40]line Товар: 2710124130 [19:12:40]line Аи-92-К-5 [19:12:40]line 10.000 * 0.00 [19:12:40]line = 0.00 [19:12:40]line НДС 12% НСП 1% [19:12:40]line > о реализуемом товаре [19:12:40]line ИТОГО: 0.00 [19:12:40]line НСП 1% : 0.00 [19:12:40]line НДС 12% : 0.00 [19:12:40]line Наличными: 0.00 [19:12:40]line Безнал.: 0.00 [19:12:40]line Место: АЗС № 170 "Партнер Нефть" [19:12:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:12:40]line СНО: Общий режим [19:12:40]line Чек 328 25.10.2024 19:12 [19:12:40]line Смена: 540 ФФД: 1.0 [19:12:40]line ЗНМ: 0300000110 [19:12:40]line РНМ: 0000000000091776 [19:12:40]line Версия ККМ: 001 [19:12:40]line Талоны: Партнер нефть [19:12:40]line 4220332 [19:12:40]line ФМ: 0000000000871754 [19:12:40]line ФД: 191589 [19:12:40]line ФПД: 160390049354848 [19:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191589&fm=160390049354848&tin=02508201610067®Number=0000000000091776&sum=0 [19:12:40]written 0, free lines is 4095 [19:12:40]OFD Sender: Processing packet 191589 [packets to send 75, broken 74] [19:12:40]ProducePacketName [19:12:40]name=ofd_packets/00191589 [19:12:40]OFD Sender: To server: pG, [19:12:40]CommunicateWithHost lk.salyk.kg:30040 [19:12:40]ConnectInit lk.salyk.kg [19:12:40]Connected sock=10 [19:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 19 E2 07 01 75 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 B1 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EC 02 00 35 04 06 00 91 DF B7 EA D4 60 D5 27 09 B2 45 C0 60 7C [19:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FA 79 47 00 27 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EC 02 00 F4 03 04 00 7E 92 1B 67 B6 04 01 00 00 4E C5 55 6E 49 67 1F E1 [19:12:41]CommunicateWithHost err = 0 [19:12:41]CheckOFDResponse [19:12:41]1017 (14) - 77093643461234 [19:12:41]1041 (16) - 0000000000871754 [19:12:41]1040 (4) - 191589 [19:12:41]1012 (4) - 25.10.2024 12:43 [19:12:41]1206 (1) - 0 [19:12:41]OFD Sender: Remove packet 191589 [19:12:41]ProducePacketName [19:12:41]name=ofd_packets/00191589 [19:12:41]NVStorageDeleteData [19:12:41]Write to MH i2c: 01 00 00 F0 CC BC [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 F0 CC 00 00 00 00 00 DC 0C AB [19:12:41]RasterBufferAndPrint [19:12:41]line [19:12:41]line [19:12:41]line [19:12:41]line [19:12:41]line [19:12:41]written 0, free lines is 3300 [19:12:41]MH_Cut [19:12:41]Write to MH i2c: D1 01 00 F7 CC 01 95 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: D1 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: D1 01 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: D1 01 00 F7 CC 00 94 [19:12:41]Write to MH i2c: 01 00 00 F8 CC C4 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]OFD Sender: No OFD packet to send [19:12:41]*** Cut start [19:12:41]*** Partial cut [19:12:41]*** CUTSNS_PIN = 1 [19:12:42]*** CUTSNS_PIN = 0 [19:12:42]*** Brake cut motor [19:12:42]Read from MH i2c: 01 [19:12:42]MH_I2C_Read... [19:12:42]*** Stop cut motor [19:12:42]*** Cut end [19:12:42]Read from MH i2c: 01 07 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 07 00 F8 CC 00 00 00 00 00 FF 0F D9 [19:12:42]process_action close_receipt done [19:12:42]requested_data is exist [19:12:42]produce_requested_data [19:12:42]requested_item fm.sn is exist - process it [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 11 00 00 [19:12:42]Write to MH i2c: E2 08 00 F9 CC 80 11 00 00 00 00 00 00 3F [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 17 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 17 00 F9 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [19:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:42]wFMCommunicate OK [19:12:42]requested_item fd.num is exist - process it [19:12:42]SAM_PROTO_GetFieldsCounters [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 13 00 00 [19:12:42]Write to MH i2c: E2 08 00 FA CC 80 13 00 00 00 00 00 00 42 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 FA CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [19:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetFieldsCounters done [19:12:42]requested_item shift.num is exist - process it [19:12:42]requested_item shift.opened is exist - process it [19:12:42]req_shift_opened [19:12:42]FM_GetShiftState [19:12:42]SAM_PROTO_GetShiftState [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 13 01 00 [19:12:42]Write to MH i2c: E2 08 00 FB CC 80 13 01 00 00 00 00 00 44 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 FB CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [19:12:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetShiftState done [19:12:42]FM_GetShiftState done [19:12:42]req_shift_opened done [19:12:42]requested_item shift.open_date is exist - process it [19:12:42]req_shift_open_date [19:12:42]req_shift_open_date done [19:12:42]produce_requested_data done [19:12:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191589,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:12:42]process_action_free close_receipt [19:12:42]json_value_free [19:12:42]json_value_free done [19:12:42]process_json_proto returns [19:12:42]Send response to host [19:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191589,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:12:42]free response buf [19:12:42]execute_script done [19:12:42]execute_script returns [19:12:42]free content buf [19:12:42]Sock 9.Close socket [19:12:42]Sock 9.Thread stoped [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:09]accept exits with 8 [19:13:09]New connection [19:13:09]New thread 3066961252 created [19:13:09]Thread 3066817892 joined [19:13:09]Waiting for new connection... [19:13:09] Sock 8.Parse request [19:13:09]Sock 8.Check first char [19:13:09]Sock 8.First char is OK [19:13:09]request: POST /json_proto HTTP/1.0 [19:13:09]Method: POST [19:13:09]URL: /json_proto [19:13:09]Method is POST - this is cgi request [19:13:09]url: /json_proto [19:13:09]query_string will be loaded in cgi processing [19:13:09]execute_cgi json_proto POST (null) [19:13:09]execute_cgi path=json_proto method=POST [19:13:09]POST find Content-Length [19:13:09]Host: 172.17.63.131:8080 [19:13:09]Content-Length: 676 [19:13:09]Content-Type: application/json [19:13:09] [19:13:09]POST finish read [19:13:09]Found Content-Length = 676 [19:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:09]execute_script... [19:13: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)30892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:09]POST & json_proto [19:13:09]process_json_proto [19:13:09]json parsed OK: [19:13:09]protocol is kg_v1.0 [19:13:09]action value=close_receipt [19:13:09]process_action close_receipt [19:13:09]cmd_close_receipt [19:13:09]MH_GetDate [19:13:09]Write to MH i2c: F0 00 00 FC CC B7 [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: F0 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: F0 09 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: F0 09 00 FC CC 00 D0 ED 1B 67 22 05 6E 64 F8 [19:13:09]GetLastDocTimeStamp 1729883569 [19:13:09]current date 1729883600 [19:13:09]FM_GetShiftState [19:13:09]SAM_PROTO_GetShiftState [19:13:09]wFMCommunicate request_size=4 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 13 01 00 [19:13:09]Write to MH i2c: E2 08 00 FD CC 80 13 01 00 00 00 00 00 46 [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 0E 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 0E 00 FD CC 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 09 [19:13:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:13:09]wFMCommunicate OK [19:13:09]SAM_PROTO_GetShiftState done [19:13:09]FM_GetShiftState done [19:13:09]opened in 1729816399 [19:13:09]opened+sec_in_day 1729902799 [19:13:09]quantity*price = 52048 [19:13:09]sum+1 = 52049 [19:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 329 25.10.2024 19:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191590 ФПД: 154402944190700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191590&fm=154402944190700&tin=02508201610067®Number=0000000000091776&sum=52000 [19:13:10]StoreToDocumentArchive [19:13:10]shift 540 fd 191590 [19:13:10]save to /storage/0540/doc_00191590 [19:13:10]save last doc name /storage/0540/doc_00191590 to /storage/kkm_last_doc_name [19:13:10]save OK [19:13:10]Clear old archive folders... [19:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:10]tlvbuf is 016CE3A0 [19:13:10]SAM_PROTO_ClearQueue [19:13:10]wFMCommunicate request_size=4 [19:13:10]MH_SAM_APDU [19:13:10]CAPDU: 80 09 00 00 [19:13:10]Write to MH i2c: E2 08 00 0A CD 80 09 00 00 00 00 00 00 49 [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:10]Read from MH i2c: E2 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: E2 03 00 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: E2 03 00 0A CD 00 90 00 4B [19:13:10]RAPDU: 90 00 [19:13:10]wFMCommunicate OK [19:13:10]SAM_PROTO_ClearQueue done [19:13:10]KKMCreateOFDPacket [19:13:10]OFDProtocolAddRootSTLVToBuf [19:13:10]FM_MakeSignedData [19:13:10]FM_MakeSignedData [19:13:10]SAM_PROTO_SignData [19:13:10]wFMCommunicate request_size=4 [19:13:10]MH_SAM_APDU [19:13:10]CAPDU: 80 0D 01 02 [19:13:10]Write to MH i2c: E2 08 00 0B CD 80 0D 01 02 00 00 00 00 51 [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:10]Read from MH i2c: E2 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: E2 03 00 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: E2 03 00 0B CD 00 90 00 4C [19:13:10]RAPDU: 90 00 [19:13:10]wFMCommunicate OK [19:13:10]wFMCommunicate request_size=255 [19:13:10]MH_SAM_APDU [19:13:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D0 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EC 02 00 35 04 06 00 8C [19:13:10]Write to MH i2c: E2 02 01 0C CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D0 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EC 02 00 35 04 06 00 8C 00 00 10 [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:11]Read from MH i2c: E2 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 03 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 03 00 0C CD 00 90 00 4D [19:13:11]RAPDU: 90 00 [19:13:11]wFMCommunicate OK [19:13:11]wFMCommunicate request_size=10 [19:13:11]MH_SAM_APDU [19:13:11]CAPDU: 80 0D 02 02 05 6D BC A4 08 EC [19:13:11]Write to MH i2c: E2 0D 00 0D CD 80 0D 02 02 05 00 6D BC A4 08 EC 00 00 1F [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:11]Read from MH i2c: E2 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 03 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 03 00 0D CD 00 90 00 4E [19:13:11]RAPDU: 90 00 [19:13:11]wFMCommunicate OK [19:13:11]wFMCommunicate request_size=4 [19:13:11]MH_SAM_APDU [19:13:11]CAPDU: 80 0D 03 02 [19:13:11]Write to MH i2c: E2 08 00 0E CD 80 0D 03 02 00 00 00 00 56 [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:11]Read from MH i2c: E2 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 0B 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 0B 00 0E CD 00 B8 EA 46 27 02 28 08 56 90 00 EE [19:13:11]RAPDU: B8 EA 46 27 02 28 08 56 90 00 [19:13:11]wFMCommunicate OK [19:13:11]SAM_PROTO_SignData done [19:13:11]FM_MakeSignedData done [19:13:11]CreateOFDProtocolMessage [19:13:11]wFMCommunicate request_size=4 [19:13:11]MH_SAM_APDU [19:13:11]CAPDU: 80 11 00 00 [19:13:11]Write to MH i2c: E2 08 00 0F CD 80 11 00 00 00 00 00 00 56 [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:11]Read from MH i2c: E2 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 17 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 17 00 0F CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [19:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:13:11]wFMCommunicate OK [19:13:11]CreateOFDProtocolMessage done [19:13:11]OFDSenderStorePacket 191590 [19:13:11]StoreOFDPacket docnum=191590 [19:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 5C 07 01 EC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D0 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EC 02 00 35 04 06 00 8C 6D BC A4 08 EC B8 EA 46 27 02 28 08 56 [19:13:11]CheckFolder [19:13:11]dirname=/storage/ofd_packets [19:13:11]CheckFolder done [19:13:11]ProducePacketName [19:13:11]name=ofd_packets/00191590 [19:13:11]NVStorageSaveData ofd_packets/00191590 [19:13:11]File name is /storage/ofd_packets/00191590 [19:13:11]Write 301 bytes [19:13:11]NVStorageSaveData done [19:13:11]OFDSenderStorePacket done [19:13:11]KKMCreateOFDPacket done [19:13:11]NVStorageSaveData kkm_last_timestamp [19:13:11]File name is /storage/kkm_last_timestamp [19:13:11]Write 4 bytes [19:13:11]NVStorageSaveData done [19:13:11]ExternCall_PrintAddStr [19:13:11]wPrintStart [19:13:11]Write to MH i2c: 01 00 00 10 CD DD [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: 01 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: 01 07 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: 01 07 00 10 CD 00 00 00 00 00 FF 0F F2 [19:13:11]RasterBufferAndPrint [19:13:11]line Счет N : (1)30892 [19:13:11]line ИНН: 02508201610067 [19:13:11]line Контрольно-Кассовый Чек [19:13:11]line ПРОДАЖА [19:13:11]line ТРК (МРК, ГНК) : 21 [19:13:11]line Товар: 2710124130 [19:13:11]line Аи-92-К-5 [19:13:11]line 7.780 * 66.90 [19:13:11]line = 520.48 [19:13:11]line НДС 12% НСП 1% [19:13:11]line > о реализуемом товаре [19:13:11]line ОКРУГЛЕНИЕ: -0.48 [19:13:11]line ИТОГО: 520.00 [19:13:11]line Внесено: 520.00 [19:13:11]line СДАЧА: 0.00 [19:13:11]line НСП 1% : 4.61 [19:13:11]line НДС 12% : 55.27 [19:13:11]line Наличными: 520.00 [19:13:11]line Безнал.: 0.00 [19:13:11]line Место: АЗС № 170 "Партнер Нефть" [19:13:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:13:11]line СНО: Общий режим [19:13:11]line Чек 329 25.10.2024 19:13 [19:13:11]line Смена: 540 ФФД: 1.0 [19:13:11]line ЗНМ: 0300000110 [19:13:11]line РНМ: 0000000000091776 [19:13:11]line Версия ККМ: 001 [19:13:11]line ФМ: 0000000000871754 [19:13:11]line ФД: 191590 [19:13:11]line ФПД: 154402944190700 [19:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191590&fm=154402944190700&tin=02508201610067®Number=0000000000091776&sum=52000 [19:13:11]OFD Sender: Processing packet 191590 [packets to send 75, broken 74] [19:13:11]ProducePacketName [19:13:11]name=ofd_packets/00191590 [19:13:11]OFD Sender: To server: pG, [19:13:11]CommunicateWithHost lk.salyk.kg:30040 [19:13:11]ConnectInit lk.salyk.kg [19:13:11]written 0, free lines is 4095 [19:13:11]Connected sock=10 [19:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 5C 07 01 EC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 D0 ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EC 02 00 35 04 06 00 8C 6D BC A4 08 EC B8 EA 46 27 02 28 08 56 [19:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 8C 47 00 EA AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EC 02 00 F4 03 04 00 9D 92 1B 67 B6 04 01 00 00 DE 67 BB F4 2A 8B 66 2D [19:13:11]CommunicateWithHost err = 0 [19:13:11]CheckOFDResponse [19:13:11]1017 (14) - 77093643461234 [19:13:11]1041 (16) - 0000000000871754 [19:13:11]1040 (4) - 191590 [19:13:11]1012 (4) - 25.10.2024 12:44 [19:13:11]1206 (1) - 0 [19:13:11]OFD Sender: Remove packet 191590 [19:13:11]ProducePacketName [19:13:11]name=ofd_packets/00191590 [19:13:11]NVStorageDeleteData [19:13:12]Write to MH i2c: 01 00 00 3B CD 08 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 07 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 07 00 3B CD 00 00 00 00 00 E4 0C FF [19:13:12]RasterBufferAndPrint [19:13:12]line [19:13:12]line [19:13:12]line [19:13:12]line [19:13:12]line [19:13:12]written 0, free lines is 3309 [19:13:12]MH_Cut [19:13:12]Write to MH i2c: D1 01 00 42 CD 01 E1 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: D1 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: D1 01 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: D1 01 00 42 CD 00 E0 [19:13:12]Write to MH i2c: 01 00 00 43 CD 10 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]OFD Sender: No OFD packet to send [19:13:12]*** Cut start [19:13:12]*** Partial cut [19:13:12]*** CUTSNS_PIN = 1 [19:13:12]*** CUTSNS_PIN = 0 [19:13:13]*** Brake cut motor [19:13:13]Read from MH i2c: 01 [19:13:13]MH_I2C_Read... [19:13:13]*** Stop cut motor [19:13:13]*** Cut end [19:13:13]Read from MH i2c: 01 07 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 07 00 43 CD 00 00 00 00 00 FF 0F 25 [19:13:13]process_action close_receipt done [19:13:13]requested_data is exist [19:13:13]produce_requested_data [19:13:13]requested_item fm.sn is exist - process it [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 11 00 00 [19:13:13]Write to MH i2c: E2 08 00 44 CD 80 11 00 00 00 00 00 00 8B [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 17 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 17 00 44 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [19:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:13:13]wFMCommunicate OK [19:13:13]requested_item fd.num is exist - process it [19:13:13]SAM_PROTO_GetFieldsCounters [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 13 00 00 [19:13:13]Write to MH i2c: E2 08 00 45 CD 80 13 00 00 00 00 00 00 8E [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 62 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 62 00 45 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [19:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:13]wFMCommunicate OK [19:13:13]SAM_PROTO_GetFieldsCounters done [19:13:13]requested_item shift.num is exist - process it [19:13:13]requested_item shift.opened is exist - process it [19:13:13]req_shift_opened [19:13:13]FM_GetShiftState [19:13:13]SAM_PROTO_GetShiftState [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 13 01 00 [19:13:13]Write to MH i2c: E2 08 00 46 CD 80 13 01 00 00 00 00 00 90 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 0E 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 0E 00 46 CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 53 [19:13:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:13:13]wFMCommunicate OK [19:13:13]SAM_PROTO_GetShiftState done [19:13:13]FM_GetShiftState done [19:13:13]req_shift_opened done [19:13:13]requested_item shift.open_date is exist - process it [19:13:13]req_shift_open_date [19:13:13]req_shift_open_date done [19:13:13]produce_requested_data done [19:13:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191590,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:13:13]process_action_free close_receipt [19:13:13]json_value_free [19:13:13]json_value_free done [19:13:13]process_json_proto returns [19:13:13]Send response to host [19:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191590,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:13:13]free response buf [19:13:13]execute_script done [19:13:13]execute_script returns [19:13:13]free content buf [19:13:13]Sock 8.Close socket [19:13:13]Sock 8.Thread stoped [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:39]accept exits with 9 [19:13:39]New connection [19:13:39]New thread 3066817892 created [19:13:39]Thread 3066961252 joined [19:13:39]Waiting for new connection... [19:13:39] Sock 9.Parse request [19:13:39]Sock 9.Check first char [19:13:39]Sock 9.First char is OK [19:13:39]request: POST /json_proto HTTP/1.0 [19:13:39]Method: POST [19:13:39]URL: /json_proto [19:13:39]Method is POST - this is cgi request [19:13:39]url: /json_proto [19:13:39]query_string will be loaded in cgi processing [19:13:39]execute_cgi json_proto POST (null) [19:13:39]execute_cgi path=json_proto method=POST [19:13:39]POST find Content-Length [19:13:39]Host: 172.17.63.131:8080 [19:13:39]Content-Length: 676 [19:13:39]Content-Type: application/json [19:13:39] [19:13:39]POST finish read [19:13:39]Found Content-Length = 676 [19:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:39]execute_script... [19:13:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:39]POST & json_proto [19:13:39]process_json_proto [19:13:39]json parsed OK: [19:13:39]protocol is kg_v1.0 [19:13:39]action value=close_receipt [19:13:39]process_action close_receipt [19:13:39]cmd_close_receipt [19:13:39]MH_GetDate [19:13:39]Write to MH i2c: F0 00 00 47 CD 03 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: F0 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: F0 09 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: F0 09 00 47 CD 00 ED ED 1B 67 22 05 6E 64 61 [19:13:39]GetLastDocTimeStamp 1729883600 [19:13:39]current date 1729883629 [19:13:39]FM_GetShiftState [19:13:39]SAM_PROTO_GetShiftState [19:13:39]wFMCommunicate request_size=4 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 13 01 00 [19:13:39]Write to MH i2c: E2 08 00 48 CD 80 13 01 00 00 00 00 00 92 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 0E 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 0E 00 48 CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 55 [19:13:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:13:39]wFMCommunicate OK [19:13:39]SAM_PROTO_GetShiftState done [19:13:39]FM_GetShiftState done [19:13:39]opened in 1729816399 [19:13:39]opened+sec_in_day 1729902799 [19:13:39]quantity*price = 50041 [19:13:39]sum+1 = 50042 [19:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 330 25.10.2024 19:13 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191591 ФПД: 44639149792623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191591&fm=44639149792623&tin=02508201610067®Number=0000000000091776&sum=50000 [19:13:40]StoreToDocumentArchive [19:13:40]shift 540 fd 191591 [19:13:40]save to /storage/0540/doc_00191591 [19:13:40]save last doc name /storage/0540/doc_00191591 to /storage/kkm_last_doc_name [19:13:40]save OK [19:13:40]Clear old archive folders... [19:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:40]tlvbuf is 015C8B70 [19:13:40]SAM_PROTO_ClearQueue [19:13:40]wFMCommunicate request_size=4 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 09 00 00 [19:13:40]Write to MH i2c: E2 08 00 55 CD 80 09 00 00 00 00 00 00 94 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 55 CD 00 90 00 96 [19:13:40]RAPDU: 90 00 [19:13:40]wFMCommunicate OK [19:13:40]SAM_PROTO_ClearQueue done [19:13:40]KKMCreateOFDPacket [19:13:40]OFDProtocolAddRootSTLVToBuf [19:13:40]FM_MakeSignedData [19:13:40]FM_MakeSignedData [19:13:40]SAM_PROTO_SignData [19:13:40]wFMCommunicate request_size=4 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 0D 01 02 [19:13:40]Write to MH i2c: E2 08 00 56 CD 80 0D 01 02 00 00 00 00 9C [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 56 CD 00 90 00 97 [19:13:40]RAPDU: 90 00 [19:13:40]wFMCommunicate OK [19:13:40]wFMCommunicate request_size=255 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 ED ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EC 02 00 35 04 06 00 28 [19:13:40]Write to MH i2c: E2 02 01 57 CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 ED ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EC 02 00 35 04 06 00 28 00 00 72 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 57 CD 00 90 00 98 [19:13:40]RAPDU: 90 00 [19:13:40]wFMCommunicate OK [19:13:40]wFMCommunicate request_size=10 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 0D 02 02 05 99 5C AA 9D 6F [19:13:40]Write to MH i2c: E2 0D 00 58 CD 80 0D 02 02 05 00 99 5C AA 9D 6F 00 00 54 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 03 00 58 CD 00 90 00 99 [19:13:40]RAPDU: 90 00 [19:13:40]wFMCommunicate OK [19:13:40]wFMCommunicate request_size=4 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 0D 03 02 [19:13:40]Write to MH i2c: E2 08 00 59 CD 80 0D 03 02 00 00 00 00 A1 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 0B 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 0B 00 59 CD 00 95 B5 4C EC C1 4C 13 15 90 00 59 [19:13:40]RAPDU: 95 B5 4C EC C1 4C 13 15 90 00 [19:13:40]wFMCommunicate OK [19:13:40]SAM_PROTO_SignData done [19:13:40]FM_MakeSignedData done [19:13:40]CreateOFDProtocolMessage [19:13:40]wFMCommunicate request_size=4 [19:13:40]MH_SAM_APDU [19:13:40]CAPDU: 80 11 00 00 [19:13:40]Write to MH i2c: E2 08 00 5A CD 80 11 00 00 00 00 00 00 A1 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:40]Read from MH i2c: E2 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 17 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: E2 17 00 5A CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [19:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:13:40]wFMCommunicate OK [19:13:40]CreateOFDProtocolMessage done [19:13:40]OFDSenderStorePacket 191591 [19:13:40]StoreOFDPacket docnum=191591 [19:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 49 07 01 03 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 ED ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EC 02 00 35 04 06 00 28 99 5C AA 9D 6F 95 B5 4C EC C1 4C 13 15 [19:13:40]CheckFolder [19:13:40]dirname=/storage/ofd_packets [19:13:40]CheckFolder done [19:13:40]ProducePacketName [19:13:40]name=ofd_packets/00191591 [19:13:40]NVStorageSaveData ofd_packets/00191591 [19:13:40]File name is /storage/ofd_packets/00191591 [19:13:40]Write 301 bytes [19:13:40]NVStorageSaveData done [19:13:40]OFDSenderStorePacket done [19:13:40]KKMCreateOFDPacket done [19:13:40]NVStorageSaveData kkm_last_timestamp [19:13:40]File name is /storage/kkm_last_timestamp [19:13:40]Write 4 bytes [19:13:40]NVStorageSaveData done [19:13:40]ExternCall_PrintAddStr [19:13:40]wPrintStart [19:13:40]Write to MH i2c: 01 00 00 5B CD 28 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 07 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 07 00 5B CD 00 00 00 00 00 FF 0F 3D [19:13:40]RasterBufferAndPrint [19:13:40]line Счет N : (1)30893 [19:13:40]line ИНН: 02508201610067 [19:13:40]line Контрольно-Кассовый Чек [19:13:40]line ПРОДАЖА [19:13:40]line ТРК (МРК, ГНК) : 12 [19:13:40]line Товар: 2710124130 [19:13:40]line Аи-92-К-5 [19:13:40]line 7.480 * 66.90 [19:13:40]line = 500.41 [19:13:40]line НДС 12% НСП 1% [19:13:40]line > о реализуемом товаре [19:13:40]line ОКРУГЛЕНИЕ: -0.41 [19:13:40]line ИТОГО: 500.00 [19:13:40]line Внесено: 500.00 [19:13:40]line СДАЧА: 0.00 [19:13:40]line НСП 1% : 4.43 [19:13:40]line НДС 12% : 53.14 [19:13:40]line Наличными: 500.00 [19:13:40]line Безнал.: 0.00 [19:13:40]line Место: АЗС № 170 "Партнер Нефть" [19:13:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:13:40]line СНО: Общий режим [19:13:40]line Чек 330 25.10.2024 19:13 [19:13:40]line Смена: 540 ФФД: 1.0 [19:13:40]line ЗНМ: 0300000110 [19:13:40]line РНМ: 0000000000091776 [19:13:40]line Версия ККМ: 001 [19:13:40]line ФМ: 0000000000871754 [19:13:40]line ФД: 191591 [19:13:40]line ФПД: 44639149792623 [19:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191591&fm=44639149792623&tin=02508201610067®Number=0000000000091776&sum=50000 [19:13:41]OFD Sender: Processing packet 191591 [packets to send 75, broken 74] [19:13:41]ProducePacketName [19:13:41]name=ofd_packets/00191591 [19:13:41]OFD Sender: To server: pG, [19:13:41]CommunicateWithHost lk.salyk.kg:30040 [19:13:41]ConnectInit lk.salyk.kg [19:13:41]written 0, free lines is 4095 [19:13:41]Connected sock=10 [19:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 49 07 01 03 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 ED ED 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EC 02 00 35 04 06 00 28 99 5C AA 9D 6F 95 B5 4C EC C1 4C 13 15 [19:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A D6 47 00 1D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EC 02 00 F4 03 04 00 BB 92 1B 67 B6 04 01 00 00 9C 88 91 79 DB CD 4C 25 [19:13:41]CommunicateWithHost err = 0 [19:13:41]CheckOFDResponse [19:13:41]1017 (14) - 77093643461234 [19:13:41]1041 (16) - 0000000000871754 [19:13:41]1040 (4) - 191591 [19:13:41]1012 (4) - 25.10.2024 12:44 [19:13:41]1206 (1) - 0 [19:13:41]OFD Sender: Remove packet 191591 [19:13:41]ProducePacketName [19:13:41]name=ofd_packets/00191591 [19:13:41]NVStorageDeleteData [19:13:41]Write to MH i2c: 01 00 00 86 CD 53 [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 07 00 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: 01 07 00 86 CD 00 00 00 00 00 CB 0C 31 [19:13:41]RasterBufferAndPrint [19:13:41]line [19:13:41]line [19:13:41]line [19:13:41]line [19:13:41]line [19:13:41]written 0, free lines is 3281 [19:13:41]MH_Cut [19:13:41]Write to MH i2c: D1 01 00 8D CD 01 2C [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: D1 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: D1 01 00 [19:13:41]MH_I2C_Read... [19:13:41]Read from MH i2c: D1 01 00 8D CD 00 2B [19:13:41]Write to MH i2c: 01 00 00 8E CD 5B [19:13:41]Write i2c OK [19:13:41]MH_I2C_Read... [19:13:42]OFD Sender: No OFD packet to send [19:13:42]*** Cut start [19:13:42]*** Partial cut [19:13:42]*** CUTSNS_PIN = 1 [19:13:42]*** CUTSNS_PIN = 0 [19:13:42]*** Brake cut motor [19:13:43]Read from MH i2c: 01 [19:13:43]MH_I2C_Read... [19:13:43]*** Stop cut motor [19:13:43]*** Cut end [19:13:43]Read from MH i2c: 01 07 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: 01 07 00 8E CD 00 00 00 00 00 FF 0F 70 [19:13:43]process_action close_receipt done [19:13:43]requested_data is exist [19:13:43]produce_requested_data [19:13:43]requested_item fm.sn is exist - process it [19:13:43]wFMCommunicate request_size=4 [19:13:43]MH_SAM_APDU [19:13:43]CAPDU: 80 11 00 00 [19:13:43]Write to MH i2c: E2 08 00 8F CD 80 11 00 00 00 00 00 00 D6 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:43]Read from MH i2c: E2 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 17 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 17 00 8F CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [19:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:13:43]wFMCommunicate OK [19:13:43]requested_item fd.num is exist - process it [19:13:43]SAM_PROTO_GetFieldsCounters [19:13:43]wFMCommunicate request_size=4 [19:13:43]MH_SAM_APDU [19:13:43]CAPDU: 80 13 00 00 [19:13:43]Write to MH i2c: E2 08 00 90 CD 80 13 00 00 00 00 00 00 D9 [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:43]Read from MH i2c: E2 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 62 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 62 00 90 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [19:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:43]wFMCommunicate OK [19:13:43]SAM_PROTO_GetFieldsCounters done [19:13:43]requested_item shift.num is exist - process it [19:13:43]requested_item shift.opened is exist - process it [19:13:43]req_shift_opened [19:13:43]FM_GetShiftState [19:13:43]SAM_PROTO_GetShiftState [19:13:43]wFMCommunicate request_size=4 [19:13:43]MH_SAM_APDU [19:13:43]CAPDU: 80 13 01 00 [19:13:43]Write to MH i2c: E2 08 00 91 CD 80 13 01 00 00 00 00 00 DB [19:13:43]Write i2c OK [19:13:43]MH_I2C_Read... [19:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:43]Read from MH i2c: E2 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 0E 00 [19:13:43]MH_I2C_Read... [19:13:43]Read from MH i2c: E2 0E 00 91 CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9E [19:13:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:13:43]wFMCommunicate OK [19:13:43]SAM_PROTO_GetShiftState done [19:13:43]FM_GetShiftState done [19:13:43]req_shift_opened done [19:13:43]requested_item shift.open_date is exist - process it [19:13:43]req_shift_open_date [19:13:43]req_shift_open_date done [19:13:43]produce_requested_data done [19:13:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191591,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:13:43]process_action_free close_receipt [19:13:43]json_value_free [19:13:43]json_value_free done [19:13:43]process_json_proto returns [19:13:43]Send response to host [19:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191591,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:13:43]free response buf [19:13:43]execute_script done [19:13:43]execute_script returns [19:13:43]free content buf [19:13:43]Sock 9.Close socket [19:13:43]Sock 9.Thread stoped [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:02]accept exits with 8 [19:15:02]New connection [19:15:02]New thread 3066961252 created [19:15:02]Thread 3066817892 joined [19:15:02]Waiting for new connection... [19:15:02] Sock 8.Parse request [19:15:02]Sock 8.Check first char [19:15:02]Sock 8.First char is OK [19:15:02]request: POST /json_proto HTTP/1.0 [19:15:02]Method: POST [19:15:02]URL: /json_proto [19:15:02]Method is POST - this is cgi request [19:15:02]url: /json_proto [19:15:02]query_string will be loaded in cgi processing [19:15:02]execute_cgi json_proto POST (null) [19:15:02]execute_cgi path=json_proto method=POST [19:15:02]POST find Content-Length [19:15:02]Host: 172.17.63.131:8080 [19:15:02]Content-Length: 865 [19:15:02]Content-Type: application/json [19:15:02] [19:15:02]POST finish read [19:15:02]Found Content-Length = 865 [19:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:02]execute_script... [19:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:02]POST & json_proto [19:15:02]process_json_proto [19:15:02]json parsed OK: [19:15:02]protocol is kg_v1.0 [19:15:02]action value=close_receipt [19:15:02]process_action close_receipt [19:15:02]cmd_close_receipt [19:15:02]MH_GetDate [19:15:02]Write to MH i2c: F0 00 00 92 CD 4E [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 92 CD 00 41 EE 1B 67 22 05 6E 64 01 [19:15:02]GetLastDocTimeStamp 1729883629 [19:15:02]current date 1729883713 [19:15:02]FM_GetShiftState [19:15:02]SAM_PROTO_GetShiftState [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 13 01 00 [19:15:02]Write to MH i2c: E2 08 00 93 CD 80 13 01 00 00 00 00 00 DD [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 93 CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A0 [19:15:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_GetShiftState done [19:15:02]FM_GetShiftState done [19:15:02]opened in 1729816399 [19:15:02]opened+sec_in_day 1729902799 [19:15:02]quantity*price = 100015 [19:15:02]sum+1 = 100017 [19:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 331 25.10.2024 19:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191592 ФПД: 27551729220235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191592&fm=27551729220235&tin=02508201610067®Number=0000000000091776&sum=100016 [19:15:04]StoreToDocumentArchive [19:15:04]shift 540 fd 191592 [19:15:04]save to /storage/0540/doc_00191592 [19:15:04]save last doc name /storage/0540/doc_00191592 to /storage/kkm_last_doc_name [19:15:04]save OK [19:15:04]Clear old archive folders... [19:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:04]tlvbuf is 016BBF70 [19:15:04]SAM_PROTO_ClearQueue [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 09 00 00 [19:15:04]Write to MH i2c: E2 08 00 A0 CD 80 09 00 00 00 00 00 00 DF [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 A0 CD 00 90 00 E1 [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]SAM_PROTO_ClearQueue done [19:15:04]KKMCreateOFDPacket [19:15:04]OFDProtocolAddRootSTLVToBuf [19:15:04]FM_MakeSignedData [19:15:04]FM_MakeSignedData [19:15:04]SAM_PROTO_SignData [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 01 02 [19:15:04]Write to MH i2c: E2 08 00 A1 CD 80 0D 01 02 00 00 00 00 E7 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 A1 CD 00 90 00 E2 [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]wFMCommunicate request_size=255 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 41 EE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EC 02 00 35 04 06 00 19 [19:15:04]Write to MH i2c: E2 02 01 A2 CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 41 EE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EC 02 00 35 04 06 00 19 00 00 1F [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 A2 CD 00 90 00 E3 [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]wFMCommunicate request_size=10 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 02 02 05 0E E3 08 7A 8B [19:15:04]Write to MH i2c: E2 0D 00 A3 CD 80 0D 02 02 05 00 0E E3 08 7A 8B 00 00 F2 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 03 00 A3 CD 00 90 00 E4 [19:15:04]RAPDU: 90 00 [19:15:04]wFMCommunicate OK [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 0D 03 02 [19:15:04]Write to MH i2c: E2 08 00 A4 CD 80 0D 03 02 00 00 00 00 EC [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 0B 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 0B 00 A4 CD 00 57 D8 C0 1D 70 9D 3A 0D 90 00 4D [19:15:04]RAPDU: 57 D8 C0 1D 70 9D 3A 0D 90 00 [19:15:04]wFMCommunicate OK [19:15:04]SAM_PROTO_SignData done [19:15:04]FM_MakeSignedData done [19:15:04]CreateOFDProtocolMessage [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 11 00 00 [19:15:04]Write to MH i2c: E2 08 00 A5 CD 80 11 00 00 00 00 00 00 EC [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 A5 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [19:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:04]wFMCommunicate OK [19:15:04]CreateOFDProtocolMessage done [19:15:04]OFDSenderStorePacket 191592 [19:15:04]StoreOFDPacket docnum=191592 [19:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA 49 07 01 3D 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 41 EE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EC 02 00 35 04 06 00 19 0E E3 08 7A 8B 57 D8 C0 1D 70 9D 3A 0D [19:15:04]CheckFolder [19:15:04]dirname=/storage/ofd_packets [19:15:04]CheckFolder done [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00191592 [19:15:04]NVStorageSaveData ofd_packets/00191592 [19:15:04]File name is /storage/ofd_packets/00191592 [19:15:04]Write 301 bytes [19:15:04]NVStorageSaveData done [19:15:04]OFDSenderStorePacket done [19:15:04]KKMCreateOFDPacket done [19:15:04]NVStorageSaveData kkm_last_timestamp [19:15:04]File name is /storage/kkm_last_timestamp [19:15:04]Write 4 bytes [19:15:04]NVStorageSaveData done [19:15:04]ExternCall_PrintAddStr [19:15:04]wPrintStart [19:15:04]Write to MH i2c: 01 00 00 A6 CD 73 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 A6 CD 00 00 00 00 00 FF 0F 88 [19:15:04]RasterBufferAndPrint [19:15:04]line Счет N : (1)30894 [19:15:04]line ИНН: 02508201610067 [19:15:04]line Контрольно-Кассовый Чек [19:15:04]line ПРОДАЖА [19:15:04]line ТРК (МРК, ГНК) : 12 [19:15:04]line Товар: 2710124130 [19:15:04]line Аи-92-К-5 [19:15:04]line 14.950 * 66.90 [19:15:04]line = 1000.16 [19:15:04]line НДС 12% НСП 1% [19:15:04]line > о реализуемом товаре [19:15:04]line ИТОГО: 1000.16 [19:15:04]line НСП 1% : 8.85 [19:15:04]line НДС 12% : 106.21 [19:15:04]line Наличными: 0.00 [19:15:04]line Безнал.: 1000.16 [19:15:04]line Место: АЗС № 170 "Партнер Нефть" [19:15:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:15:04]line СНО: Общий режим [19:15:04]line Чек 331 25.10.2024 19:15 [19:15:04]line Смена: 540 ФФД: 1.0 [19:15:04]line ЗНМ: 0300000110 [19:15:04]line РНМ: 0000000000091776 [19:15:04]line Версия ККМ: 001 [19:15:04]line Платежная система: Кыргызкоммерцбанк [19:15:04]line ФМ: 0000000000871754 [19:15:04]line ФД: 191592 [19:15:04]line ФПД: 27551729220235 [19:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191592&fm=27551729220235&tin=02508201610067®Number=0000000000091776&sum=100016 [19:15:04]OFD Sender: Processing packet 191592 [packets to send 75, broken 74] [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00191592 [19:15:04]OFD Sender: To server: pG, [19:15:04]CommunicateWithHost lk.salyk.kg:30040 [19:15:04]ConnectInit lk.salyk.kg [19:15:04]written 0, free lines is 4095 [19:15:05]Connected sock=11 [19:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA 49 07 01 3D 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 41 EE 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EC 02 00 35 04 06 00 19 0E E3 08 7A 8B 57 D8 C0 1D 70 9D 3A 0D [19:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 0E 47 00 AF D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EC 02 00 F4 03 04 00 0F 93 1B 67 B6 04 01 00 00 FB 95 96 C2 99 74 0E 7F [19:15:05]CommunicateWithHost err = 0 [19:15:05]CheckOFDResponse [19:15:05]1017 (14) - 77093643461234 [19:15:05]1041 (16) - 0000000000871754 [19:15:05]1040 (4) - 191592 [19:15:05]1012 (4) - 25.10.2024 12:46 [19:15:05]1206 (1) - 0 [19:15:05]OFD Sender: Remove packet 191592 [19:15:05]ProducePacketName [19:15:05]name=ofd_packets/00191592 [19:15:05]NVStorageDeleteData [19:15:05]Write to MH i2c: 01 00 00 D0 CD 9D [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 D0 CD 00 00 00 00 00 E3 0C 93 [19:15:05]RasterBufferAndPrint [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]written 0, free lines is 3304 [19:15:05]MH_Cut [19:15:05]Write to MH i2c: D1 01 00 D7 CD 01 76 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 01 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 01 00 D7 CD 00 75 [19:15:05]Write to MH i2c: 01 00 00 D8 CD A5 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]OFD Sender: No OFD packet to send [19:15:06]*** Cut start [19:15:06]*** Partial cut [19:15:06]*** CUTSNS_PIN = 1 [19:15:06]*** CUTSNS_PIN = 0 [19:15:06]*** Brake cut motor [19:15:06]Read from MH i2c: 01 [19:15:06]MH_I2C_Read... [19:15:06]*** Stop cut motor [19:15:06]*** Cut end [19:15:06]Read from MH i2c: 01 07 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: 01 07 00 D8 CD 00 00 00 00 00 FF 0F BA [19:15:06]process_action close_receipt done [19:15:06]requested_data is exist [19:15:06]produce_requested_data [19:15:06]requested_item fm.sn is exist - process it [19:15:06]wFMCommunicate request_size=4 [19:15:06]MH_SAM_APDU [19:15:06]CAPDU: 80 11 00 00 [19:15:06]Write to MH i2c: E2 08 00 D9 CD 80 11 00 00 00 00 00 00 20 [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:06]Read from MH i2c: E2 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 17 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 17 00 D9 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [19:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:06]wFMCommunicate OK [19:15:06]requested_item fd.num is exist - process it [19:15:06]SAM_PROTO_GetFieldsCounters [19:15:06]wFMCommunicate request_size=4 [19:15:06]MH_SAM_APDU [19:15:06]CAPDU: 80 13 00 00 [19:15:06]Write to MH i2c: E2 08 00 DA CD 80 13 00 00 00 00 00 00 23 [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:07]Read from MH i2c: E2 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 62 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 62 00 DA CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [19:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:07]wFMCommunicate OK [19:15:07]SAM_PROTO_GetFieldsCounters done [19:15:07]requested_item shift.num is exist - process it [19:15:07]requested_item shift.opened is exist - process it [19:15:07]req_shift_opened [19:15:07]FM_GetShiftState [19:15:07]SAM_PROTO_GetShiftState [19:15:07]wFMCommunicate request_size=4 [19:15:07]MH_SAM_APDU [19:15:07]CAPDU: 80 13 01 00 [19:15:07]Write to MH i2c: E2 08 00 DB CD 80 13 01 00 00 00 00 00 25 [19:15:07]Write i2c OK [19:15:07]MH_I2C_Read... [19:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:07]Read from MH i2c: E2 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 0E 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 0E 00 DB CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E8 [19:15:07]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:15:07]wFMCommunicate OK [19:15:07]SAM_PROTO_GetShiftState done [19:15:07]FM_GetShiftState done [19:15:07]req_shift_opened done [19:15:07]requested_item shift.open_date is exist - process it [19:15:07]req_shift_open_date [19:15:07]req_shift_open_date done [19:15:07]produce_requested_data done [19:15:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191592,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:15:07]process_action_free close_receipt [19:15:07]json_value_free [19:15:07]json_value_free done [19:15:07]process_json_proto returns [19:15:07]Send response to host [19:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191592,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:15:07]free response buf [19:15:07]execute_script done [19:15:07]execute_script returns [19:15:07]free content buf [19:15:07]Sock 8.Close socket [19:15:07]Sock 8.Thread stoped [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:17]accept exits with 9 [19:18:17]New connection [19:18:17]New thread 3066817892 created [19:18:17]Thread 3066961252 joined [19:18:17]Waiting for new connection... [19:18:17] Sock 9.Parse request [19:18:17]Sock 9.Check first char [19:18:17]Sock 9.First char is OK [19:18:17]request: POST /json_proto HTTP/1.0 [19:18:17]Method: POST [19:18:17]URL: /json_proto [19:18:17]Method is POST - this is cgi request [19:18:17]url: /json_proto [19:18:17]query_string will be loaded in cgi processing [19:18:17]execute_cgi json_proto POST (null) [19:18:17]execute_cgi path=json_proto method=POST [19:18:17]POST find Content-Length [19:18:17]Host: 172.17.63.131:8080 [19:18:17]Content-Length: 676 [19:18:17]Content-Type: application/json [19:18:17] [19:18:17]POST finish read [19:18:17]Found Content-Length = 676 [19:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:17]execute_script... [19: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)30895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:17]POST & json_proto [19:18:17]process_json_proto [19:18:17]json parsed OK: [19:18:17]protocol is kg_v1.0 [19:18:17]action value=close_receipt [19:18:17]process_action close_receipt [19:18:17]cmd_close_receipt [19:18:17]MH_GetDate [19:18:17]Write to MH i2c: F0 00 00 DC CD 98 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 09 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 09 00 DC CD 00 04 EF 1B 67 22 05 6E 64 0F [19:18:17]GetLastDocTimeStamp 1729883713 [19:18:17]current date 1729883908 [19:18:17]FM_GetShiftState [19:18:17]SAM_PROTO_GetShiftState [19:18:17]wFMCommunicate request_size=4 [19:18:17]MH_SAM_APDU [19:18:17]CAPDU: 80 13 01 00 [19:18:17]Write to MH i2c: E2 08 00 DD CD 80 13 01 00 00 00 00 00 27 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:17]Read from MH i2c: E2 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: E2 0E 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: E2 0E 00 DD CD 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EA [19:18:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:18:17]wFMCommunicate OK [19:18:17]SAM_PROTO_GetShiftState done [19:18:17]FM_GetShiftState done [19:18:17]opened in 1729816399 [19:18:17]opened+sec_in_day 1729902799 [19:18:17]quantity*price = 40006 [19:18:17]sum+1 = 40007 [19:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 332 25.10.2024 19:18 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191593 ФПД: 160235565161002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191593&fm=160235565161002&tin=02508201610067®Number=0000000000091776&sum=40000 [19:18:18]StoreToDocumentArchive [19:18:18]shift 540 fd 191593 [19:18:18]save to /storage/0540/doc_00191593 [19:18:18]save last doc name /storage/0540/doc_00191593 to /storage/kkm_last_doc_name [19:18:18]save OK [19:18:18]Clear old archive folders... [19:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:18]tlvbuf is 0183C4A0 [19:18:18]SAM_PROTO_ClearQueue [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 09 00 00 [19:18:18]Write to MH i2c: E2 08 00 EA CD 80 09 00 00 00 00 00 00 29 [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 EA CD 00 90 00 2B [19:18:19]RAPDU: 90 00 [19:18:19]wFMCommunicate OK [19:18:19]SAM_PROTO_ClearQueue done [19:18:19]KKMCreateOFDPacket [19:18:19]OFDProtocolAddRootSTLVToBuf [19:18:19]FM_MakeSignedData [19:18:19]FM_MakeSignedData [19:18:19]SAM_PROTO_SignData [19:18:19]wFMCommunicate request_size=4 [19:18:19]MH_SAM_APDU [19:18:19]CAPDU: 80 0D 01 02 [19:18:19]Write to MH i2c: E2 08 00 EB CD 80 0D 01 02 00 00 00 00 31 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 EB CD 00 90 00 2C [19:18:19]RAPDU: 90 00 [19:18:19]wFMCommunicate OK [19:18:19]wFMCommunicate request_size=255 [19:18:19]MH_SAM_APDU [19:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 04 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EC 02 00 35 04 06 00 91 [19:18:19]Write to MH i2c: E2 02 01 EC CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 04 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EC 02 00 35 04 06 00 91 00 00 5C [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 EC CD 00 90 00 2D [19:18:19]RAPDU: 90 00 [19:18:19]wFMCommunicate OK [19:18:19]wFMCommunicate request_size=10 [19:18:19]MH_SAM_APDU [19:18:19]CAPDU: 80 0D 02 02 05 BB BF F1 1A 2A [19:18:19]Write to MH i2c: E2 0D 00 ED CD 80 0D 02 02 05 00 BB BF F1 1A 2A 00 00 ED [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 03 00 ED CD 00 90 00 2E [19:18:19]RAPDU: 90 00 [19:18:19]wFMCommunicate OK [19:18:19]wFMCommunicate request_size=4 [19:18:19]MH_SAM_APDU [19:18:19]CAPDU: 80 0D 03 02 [19:18:19]Write to MH i2c: E2 08 00 EE CD 80 0D 03 02 00 00 00 00 36 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 0B 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 0B 00 EE CD 00 D6 60 AD 0F F5 8B 14 E2 90 00 9F [19:18:19]RAPDU: D6 60 AD 0F F5 8B 14 E2 90 00 [19:18:19]wFMCommunicate OK [19:18:19]SAM_PROTO_SignData done [19:18:19]FM_MakeSignedData done [19:18:19]CreateOFDProtocolMessage [19:18:19]wFMCommunicate request_size=4 [19:18:19]MH_SAM_APDU [19:18:19]CAPDU: 80 11 00 00 [19:18:19]Write to MH i2c: E2 08 00 EF CD 80 11 00 00 00 00 00 00 36 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 17 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 17 00 EF CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [19:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:18:19]wFMCommunicate OK [19:18:19]CreateOFDProtocolMessage done [19:18:19]OFDSenderStorePacket 191593 [19:18:19]StoreOFDPacket docnum=191593 [19:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E 6C 07 01 5F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 04 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EC 02 00 35 04 06 00 91 BB BF F1 1A 2A D6 60 AD 0F F5 8B 14 E2 [19:18:19]CheckFolder [19:18:19]dirname=/storage/ofd_packets [19:18:19]CheckFolder done [19:18:19]ProducePacketName [19:18:19]name=ofd_packets/00191593 [19:18:19]NVStorageSaveData ofd_packets/00191593 [19:18:19]File name is /storage/ofd_packets/00191593 [19:18:19]Write 301 bytes [19:18:19]NVStorageSaveData done [19:18:19]OFDSenderStorePacket done [19:18:19]KKMCreateOFDPacket done [19:18:19]NVStorageSaveData kkm_last_timestamp [19:18:19]File name is /storage/kkm_last_timestamp [19:18:19]Write 4 bytes [19:18:19]NVStorageSaveData done [19:18:19]ExternCall_PrintAddStr [19:18:19]wPrintStart [19:18:19]Write to MH i2c: 01 00 00 F0 CD BD [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 F0 CD 00 00 00 00 00 FF 0F D2 [19:18:19]RasterBufferAndPrint [19:18:19]line Счет N : (1)30895 [19:18:19]line ИНН: 02508201610067 [19:18:19]line Контрольно-Кассовый Чек [19:18:19]line ПРОДАЖА [19:18:19]line ТРК (МРК, ГНК) : 21 [19:18:19]line Товар: 2710124130 [19:18:19]line Аи-92-К-5 [19:18:19]line 5.980 * 66.90 [19:18:19]line = 400.06 [19:18:19]line НДС 12% НСП 1% [19:18:19]line > о реализуемом товаре [19:18:19]line ОКРУГЛЕНИЕ: -0.06 [19:18:19]line ИТОГО: 400.00 [19:18:19]line Внесено: 400.00 [19:18:19]line СДАЧА: 0.00 [19:18:19]line НСП 1% : 3.54 [19:18:19]line НДС 12% : 42.48 [19:18:19]line Наличными: 400.00 [19:18:19]line Безнал.: 0.00 [19:18:19]line Место: АЗС № 170 "Партнер Нефть" [19:18:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:18:19]line СНО: Общий режим [19:18:19]line Чек 332 25.10.2024 19:18 [19:18:19]line Смена: 540 ФФД: 1.0 [19:18:19]line ЗНМ: 0300000110 [19:18:19]line РНМ: 0000000000091776 [19:18:19]line Версия ККМ: 001 [19:18:19]line ФМ: 0000000000871754 [19:18:19]line ФД: 191593 [19:18:19]line ФПД: 160235565161002 [19:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191593&fm=160235565161002&tin=02508201610067®Number=0000000000091776&sum=40000 [19:18:19]OFD Sender: Processing packet 191593 [packets to send 75, broken 74] [19:18:19]ProducePacketName [19:18:19]name=ofd_packets/00191593 [19:18:19]OFD Sender: To server: pG, [19:18:19]CommunicateWithHost lk.salyk.kg:30040 [19:18:19]ConnectInit lk.salyk.kg [19:18:19]written 0, free lines is 4095 [19:18:19]Connected sock=10 [19:18:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E 6C 07 01 5F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 04 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EC 02 00 35 04 06 00 91 BB BF F1 1A 2A D6 60 AD 0F F5 8B 14 E2 [19:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 0B 47 00 10 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EC 02 00 F4 03 04 00 D2 93 1B 67 B6 04 01 00 00 09 54 E5 4C 32 81 AB F0 [19:18:20]CommunicateWithHost err = 0 [19:18:20]CheckOFDResponse [19:18:20]1017 (14) - 77093643461234 [19:18:20]1041 (16) - 0000000000871754 [19:18:20]1040 (4) - 191593 [19:18:20]1012 (4) - 25.10.2024 12:49 [19:18:20]1206 (1) - 0 [19:18:20]OFD Sender: Remove packet 191593 [19:18:20]ProducePacketName [19:18:20]name=ofd_packets/00191593 [19:18:20]NVStorageDeleteData [19:18:20]Write to MH i2c: 01 00 00 1B CE E9 [19:18:20]Write i2c OK [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: 01 [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: 01 07 00 [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: 01 07 00 1B CE 00 00 00 00 00 CA 0C C6 [19:18:20]RasterBufferAndPrint [19:18:20]line [19:18:20]line [19:18:20]line [19:18:20]line [19:18:20]line [19:18:20]written 0, free lines is 3280 [19:18:20]MH_Cut [19:18:20]Write to MH i2c: D1 01 00 22 CE 01 C2 [19:18:20]Write i2c OK [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: D1 [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: D1 01 00 [19:18:20]MH_I2C_Read... [19:18:20]Read from MH i2c: D1 01 00 22 CE 00 C1 [19:18:20]Write to MH i2c: 01 00 00 23 CE F1 [19:18:20]Write i2c OK [19:18:20]MH_I2C_Read... [19:18:20]OFD Sender: No OFD packet to send [19:18:21]*** Cut start [19:18:21]*** Partial cut [19:18:21]*** CUTSNS_PIN = 1 [19:18:21]*** CUTSNS_PIN = 0 [19:18:21]*** Brake cut motor [19:18:21]Read from MH i2c: 01 [19:18:21]MH_I2C_Read... [19:18:21]*** Stop cut motor [19:18:21]*** Cut end [19:18:21]Read from MH i2c: 01 07 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: 01 07 00 23 CE 00 00 00 00 00 FF 0F 06 [19:18:21]process_action close_receipt done [19:18:21]requested_data is exist [19:18:21]produce_requested_data [19:18:21]requested_item fm.sn is exist - process it [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 11 00 00 [19:18:21]Write to MH i2c: E2 08 00 24 CE 80 11 00 00 00 00 00 00 6C [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:21]Read from MH i2c: E2 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 17 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 17 00 24 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [19:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:18:21]wFMCommunicate OK [19:18:21]requested_item fd.num is exist - process it [19:18:21]SAM_PROTO_GetFieldsCounters [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 13 00 00 [19:18:21]Write to MH i2c: E2 08 00 25 CE 80 13 00 00 00 00 00 00 6F [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:21]Read from MH i2c: E2 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 62 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 62 00 25 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [19: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:21]wFMCommunicate OK [19:18:21]SAM_PROTO_GetFieldsCounters done [19:18:21]requested_item shift.num is exist - process it [19:18:21]requested_item shift.opened is exist - process it [19:18:21]req_shift_opened [19:18:21]FM_GetShiftState [19:18:21]SAM_PROTO_GetShiftState [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 13 01 00 [19:18:21]Write to MH i2c: E2 08 00 26 CE 80 13 01 00 00 00 00 00 71 [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:22]Read from MH i2c: E2 [19:18:22]MH_I2C_Read... [19:18:22]Read from MH i2c: E2 0E 00 [19:18:22]MH_I2C_Read... [19:18:22]Read from MH i2c: E2 0E 00 26 CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 34 [19:18:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:18:22]wFMCommunicate OK [19:18:22]SAM_PROTO_GetShiftState done [19:18:22]FM_GetShiftState done [19:18:22]req_shift_opened done [19:18:22]requested_item shift.open_date is exist - process it [19:18:22]req_shift_open_date [19:18:22]req_shift_open_date done [19:18:22]produce_requested_data done [19:18:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191593,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:18:22]process_action_free close_receipt [19:18:22]json_value_free [19:18:22]json_value_free done [19:18:22]process_json_proto returns [19:18:22]Send response to host [19:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191593,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:18:22]free response buf [19:18:22]execute_script done [19:18:22]execute_script returns [19:18:22]free content buf [19:18:22]Sock 9.Close socket [19:18:22]Sock 9.Thread stoped [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:35]accept exits with 8 [19:19:35]New connection [19:19:35]New thread 3066961252 created [19:19:35]Thread 3066817892 joined [19:19:35]Waiting for new connection... [19:19:35] Sock 8.Parse request [19:19:35]Sock 8.Check first char [19:19:35]Sock 8.First char is OK [19:19:35]request: POST /json_proto HTTP/1.0 [19:19:35]Method: POST [19:19:35]URL: /json_proto [19:19:35]Method is POST - this is cgi request [19:19:35]url: /json_proto [19:19:35]query_string will be loaded in cgi processing [19:19:35]execute_cgi json_proto POST (null) [19:19:35]execute_cgi path=json_proto method=POST [19:19:35]POST find Content-Length [19:19:35]Host: 172.17.63.131:8080 [19:19:35]Content-Length: 676 [19:19:35]Content-Type: application/json [19:19:35] [19:19:35]POST finish read [19:19:35]Found Content-Length = 676 [19:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:35]execute_script... [19:19:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:35]POST & json_proto [19:19:35]process_json_proto [19:19:35]json parsed OK: [19:19:35]protocol is kg_v1.0 [19:19:35]action value=close_receipt [19:19:35]process_action close_receipt [19:19:35]cmd_close_receipt [19:19:35]MH_GetDate [19:19:35]Write to MH i2c: F0 00 00 27 CE E4 [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: F0 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: F0 09 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: F0 09 00 27 CE 00 52 EF 1B 67 22 05 6E 64 A9 [19:19:35]GetLastDocTimeStamp 1729883908 [19:19:35]current date 1729883986 [19:19:35]FM_GetShiftState [19:19:35]SAM_PROTO_GetShiftState [19:19:35]wFMCommunicate request_size=4 [19:19:35]MH_SAM_APDU [19:19:35]CAPDU: 80 13 01 00 [19:19:35]Write to MH i2c: E2 08 00 28 CE 80 13 01 00 00 00 00 00 73 [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 0E 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 0E 00 28 CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 36 [19:19:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:19:35]wFMCommunicate OK [19:19:35]SAM_PROTO_GetShiftState done [19:19:35]FM_GetShiftState done [19:19:35]opened in 1729816399 [19:19:35]opened+sec_in_day 1729902799 [19:19:35]quantity*price = 20003 [19:19:35]sum+1 = 20004 [19:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 333 25.10.2024 19:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191594 ФПД: 17493907146641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191946&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191594&fm=17493907146641&tin=02508201610067®Number=0000000000091776&sum=20000 [19:19:37]StoreToDocumentArchive [19:19:37]shift 540 fd 191594 [19:19:37]save to /storage/0540/doc_00191594 [19:19:37]save last doc name /storage/0540/doc_00191594 to /storage/kkm_last_doc_name [19:19:37]save OK [19:19:37]Clear old archive folders... [19:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:37]tlvbuf is 019D2870 [19:19:37]SAM_PROTO_ClearQueue [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 09 00 00 [19:19:37]Write to MH i2c: E2 08 00 35 CE 80 09 00 00 00 00 00 00 75 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 35 CE 00 90 00 77 [19:19:37]RAPDU: 90 00 [19:19:37]wFMCommunicate OK [19:19:37]SAM_PROTO_ClearQueue done [19:19:37]KKMCreateOFDPacket [19:19:37]OFDProtocolAddRootSTLVToBuf [19:19:37]FM_MakeSignedData [19:19:37]FM_MakeSignedData [19:19:37]SAM_PROTO_SignData [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 0D 01 02 [19:19:37]Write to MH i2c: E2 08 00 36 CE 80 0D 01 02 00 00 00 00 7D [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 36 CE 00 90 00 78 [19:19:37]RAPDU: 90 00 [19:19:37]wFMCommunicate OK [19:19:37]wFMCommunicate request_size=255 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 52 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EC 02 00 35 04 06 00 0F [19:19:37]Write to MH i2c: E2 02 01 37 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 52 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EC 02 00 35 04 06 00 0F 00 00 69 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 37 CE 00 90 00 79 [19:19:37]RAPDU: 90 00 [19:19:37]wFMCommunicate OK [19:19:37]wFMCommunicate request_size=10 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 0D 02 02 05 E9 1E 1F 07 91 [19:19:37]Write to MH i2c: E2 0D 00 38 CE 80 0D 02 02 05 00 E9 1E 1F 07 91 00 00 48 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 03 00 38 CE 00 90 00 7A [19:19:37]RAPDU: 90 00 [19:19:37]wFMCommunicate OK [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 0D 03 02 [19:19:37]Write to MH i2c: E2 08 00 39 CE 80 0D 03 02 00 00 00 00 82 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0B 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0B 00 39 CE 00 B0 28 69 81 62 C5 D2 8E 90 00 CC [19:19:37]RAPDU: B0 28 69 81 62 C5 D2 8E 90 00 [19:19:37]wFMCommunicate OK [19:19:37]SAM_PROTO_SignData done [19:19:37]FM_MakeSignedData done [19:19:37]CreateOFDProtocolMessage [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 11 00 00 [19:19:37]Write to MH i2c: E2 08 00 3A CE 80 11 00 00 00 00 00 00 82 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 17 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 17 00 3A CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [19:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:37]wFMCommunicate OK [19:19:37]CreateOFDProtocolMessage done [19:19:37]OFDSenderStorePacket 191594 [19:19:37]StoreOFDPacket docnum=191594 [19:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 AD 07 01 C1 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 52 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EC 02 00 35 04 06 00 0F E9 1E 1F 07 91 B0 28 69 81 62 C5 D2 8E [19:19:37]CheckFolder [19:19:37]dirname=/storage/ofd_packets [19:19:37]CheckFolder done [19:19:37]ProducePacketName [19:19:37]name=ofd_packets/00191594 [19:19:37]NVStorageSaveData ofd_packets/00191594 [19:19:37]File name is /storage/ofd_packets/00191594 [19:19:37]Write 301 bytes [19:19:37]NVStorageSaveData done [19:19:37]OFDSenderStorePacket done [19:19:37]KKMCreateOFDPacket done [19:19:37]NVStorageSaveData kkm_last_timestamp [19:19:37]File name is /storage/kkm_last_timestamp [19:19:37]Write 4 bytes [19:19:37]NVStorageSaveData done [19:19:37]ExternCall_PrintAddStr [19:19:37]wPrintStart [19:19:37]Write to MH i2c: 01 00 00 3B CE 09 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: 01 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: 01 07 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: 01 07 00 3B CE 00 00 00 00 00 FF 0F 1E [19:19:37]RasterBufferAndPrint [19:19:37]line Счет N : (1)30896 [19:19:37]line ИНН: 02508201610067 [19:19:37]line Контрольно-Кассовый Чек [19:19:37]line ПРОДАЖА [19:19:37]line ТРК (МРК, ГНК) : 12 [19:19:37]line Товар: 2710124130 [19:19:37]line Аи-92-К-5 [19:19:37]line 2.990 * 66.90 [19:19:37]line = 200.03 [19:19:37]line НДС 12% НСП 1% [19:19:37]line > о реализуемом товаре [19:19:37]line ОКРУГЛЕНИЕ: -0.03 [19:19:37]line ИТОГО: 200.00 [19:19:37]line Внесено: 200.00 [19:19:37]line СДАЧА: 0.00 [19:19:37]line НСП 1% : 1.77 [19:19:37]line НДС 12% : 21.24 [19:19:37]line Наличными: 200.00 [19:19:37]line Безнал.: 0.00 [19:19:37]line Место: АЗС № 170 "Партнер Нефть" [19:19:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:19:37]line СНО: Общий режим [19:19:37]line Чек 333 25.10.2024 19:19 [19:19:37]line Смена: 540 ФФД: 1.0 [19:19:37]line ЗНМ: 0300000110 [19:19:37]line РНМ: 0000000000091776 [19:19:37]line Версия ККМ: 001 [19:19:37]line ФМ: 0000000000871754 [19:19:37]line ФД: 191594 [19:19:37]line ФПД: 17493907146641 [19:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191946&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191594&fm=17493907146641&tin=02508201610067®Number=0000000000091776&sum=20000 [19:19:37]OFD Sender: Processing packet 191594 [packets to send 75, broken 74] [19:19:37]ProducePacketName [19:19:37]name=ofd_packets/00191594 [19:19:37]OFD Sender: To server: pG, [19:19:37]CommunicateWithHost lk.salyk.kg:30040 [19:19:37]ConnectInit lk.salyk.kg [19:19:37]written 0, free lines is 4095 [19:19:38]Connected sock=10 [19:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 AD 07 01 C1 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 52 EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EC 02 00 35 04 06 00 0F E9 1E 1F 07 91 B0 28 69 81 62 C5 D2 8E [19:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 5D 47 00 09 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EC 02 00 F4 03 04 00 20 94 1B 67 B6 04 01 00 00 8C 86 98 08 7C 08 FC A2 [19:19:38]CommunicateWithHost err = 0 [19:19:38]CheckOFDResponse [19:19:38]1017 (14) - 77093643461234 [19:19:38]1041 (16) - 0000000000871754 [19:19:38]1040 (4) - 191594 [19:19:38]1012 (4) - 25.10.2024 12:50 [19:19:38]1206 (1) - 0 [19:19:38]OFD Sender: Remove packet 191594 [19:19:38]ProducePacketName [19:19:38]name=ofd_packets/00191594 [19:19:38]NVStorageDeleteData [19:19:38]Write to MH i2c: 01 00 00 66 CE 34 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 07 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 07 00 66 CE 00 00 00 00 00 C7 0C 0E [19:19:38]RasterBufferAndPrint [19:19:38]line [19:19:38]line [19:19:38]line [19:19:38]line [19:19:38]line [19:19:38]written 0, free lines is 3277 [19:19:38]MH_Cut [19:19:38]Write to MH i2c: D1 01 00 6D CE 01 0D [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: D1 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: D1 01 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: D1 01 00 6D CE 00 0C [19:19:38]Write to MH i2c: 01 00 00 6E CE 3C [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]OFD Sender: No OFD packet to send [19:19:39]*** Cut start [19:19:39]*** Partial cut [19:19:39]*** CUTSNS_PIN = 1 [19:19:39]*** CUTSNS_PIN = 0 [19:19:39]*** Brake cut motor [19:19:39]Read from MH i2c: 01 [19:19:39]MH_I2C_Read... [19:19:39]*** Stop cut motor [19:19:39]*** Cut end [19:19:39]Read from MH i2c: 01 07 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 07 00 6E CE 00 00 00 00 00 FF 0F 51 [19:19:39]process_action close_receipt done [19:19:39]requested_data is exist [19:19:39]produce_requested_data [19:19:39]requested_item fm.sn is exist - process it [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 11 00 00 [19:19:39]Write to MH i2c: E2 08 00 6F CE 80 11 00 00 00 00 00 00 B7 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 17 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 17 00 6F CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [19:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:39]wFMCommunicate OK [19:19:39]requested_item fd.num is exist - process it [19:19:39]SAM_PROTO_GetFieldsCounters [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 13 00 00 [19:19:39]Write to MH i2c: E2 08 00 70 CE 80 13 00 00 00 00 00 00 BA [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:40]Read from MH i2c: E2 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 62 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 62 00 70 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [19:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:40]wFMCommunicate OK [19:19:40]SAM_PROTO_GetFieldsCounters done [19:19:40]requested_item shift.num is exist - process it [19:19:40]requested_item shift.opened is exist - process it [19:19:40]req_shift_opened [19:19:40]FM_GetShiftState [19:19:40]SAM_PROTO_GetShiftState [19:19:40]wFMCommunicate request_size=4 [19:19:40]MH_SAM_APDU [19:19:40]CAPDU: 80 13 01 00 [19:19:40]Write to MH i2c: E2 08 00 71 CE 80 13 01 00 00 00 00 00 BC [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:40]Read from MH i2c: E2 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 0E 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: E2 0E 00 71 CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 7F [19:19:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:19:40]wFMCommunicate OK [19:19:40]SAM_PROTO_GetShiftState done [19:19:40]FM_GetShiftState done [19:19:40]req_shift_opened done [19:19:40]requested_item shift.open_date is exist - process it [19:19:40]req_shift_open_date [19:19:40]req_shift_open_date done [19:19:40]produce_requested_data done [19:19:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191594,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:19:40]process_action_free close_receipt [19:19:40]json_value_free [19:19:40]json_value_free done [19:19:40]process_json_proto returns [19:19:40]Send response to host [19:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191594,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:19:40]free response buf [19:19:40]execute_script done [19:19:40]execute_script returns [19:19:40]free content buf [19:19:40]Sock 8.Close socket [19:19:40]Sock 8.Thread stoped [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]accept exits with 9 [19:22:08]New connection [19:22:08]New thread 3066817892 created [19:22:08]Thread 3066961252 joined [19:22:08]Waiting for new connection... [19:22:08] Sock 9.Parse request [19:22:08]Sock 9.Check first char [19:22:08]Sock 9.First char is OK [19:22:08]request: POST /json_proto HTTP/1.0 [19:22:08]Method: POST [19:22:08]URL: /json_proto [19:22:08]Method is POST - this is cgi request [19:22:08]url: /json_proto [19:22:08]query_string will be loaded in cgi processing [19:22:08]execute_cgi json_proto POST (null) [19:22:08]execute_cgi path=json_proto method=POST [19:22:08]POST find Content-Length [19:22:08]Host: 172.17.63.131:8080 [19:22:08]Content-Length: 862 [19:22:08]Content-Type: application/json [19:22:08] [19:22:08]POST finish read [19:22:08]Found Content-Length = 862 [19:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:08]execute_script... [19:22: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)30897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:08]POST & json_proto [19:22:08]process_json_proto [19:22:08]json parsed OK: [19:22:08]protocol is kg_v1.0 [19:22:08]action value=close_receipt [19:22:08]process_action close_receipt [19:22:08]cmd_close_receipt [19:22:08]MH_GetDate [19:22:08]Write to MH i2c: F0 00 00 72 CE 2F [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: F0 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: F0 09 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: F0 09 00 72 CE 00 EB EF 1B 67 22 05 6E 64 8D [19:22:08]GetLastDocTimeStamp 1729883986 [19:22:08]current date 1729884139 [19:22:08]FM_GetShiftState [19:22:08]SAM_PROTO_GetShiftState [19:22:08]wFMCommunicate request_size=4 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 13 01 00 [19:22:08]Write to MH i2c: E2 08 00 73 CE 80 13 01 00 00 00 00 00 BE [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:08]Read from MH i2c: E2 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 0E 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 0E 00 73 CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 81 [19:22:08]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:22:08]wFMCommunicate OK [19:22:08]SAM_PROTO_GetShiftState done [19:22:08]FM_GetShiftState done [19:22:08]opened in 1729816399 [19:22:08]opened+sec_in_day 1729902799 [19:22:08]quantity*price = 30038 [19:22:08]sum+1 = 30039 [19:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 334 25.10.2024 19:22 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191595 ФПД: 192155956448521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191595&fm=192155956448521&tin=02508201610067®Number=0000000000091776&sum=30038 [19:22:09]StoreToDocumentArchive [19:22:09]shift 540 fd 191595 [19:22:09]save to /storage/0540/doc_00191595 [19:22:09]save last doc name /storage/0540/doc_00191595 to /storage/kkm_last_doc_name [19:22:09]save OK [19:22:09]Clear old archive folders... [19:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:09]tlvbuf is 015C8690 [19:22:09]SAM_PROTO_ClearQueue [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 09 00 00 [19:22:09]Write to MH i2c: E2 08 00 80 CE 80 09 00 00 00 00 00 00 C0 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 80 CE 00 90 00 C2 [19:22:09]RAPDU: 90 00 [19:22:09]wFMCommunicate OK [19:22:09]SAM_PROTO_ClearQueue done [19:22:09]KKMCreateOFDPacket [19:22:09]OFDProtocolAddRootSTLVToBuf [19:22:09]FM_MakeSignedData [19:22:09]FM_MakeSignedData [19:22:09]SAM_PROTO_SignData [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 0D 01 02 [19:22:09]Write to MH i2c: E2 08 00 81 CE 80 0D 01 02 00 00 00 00 C8 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 81 CE 00 90 00 C3 [19:22:09]RAPDU: 90 00 [19:22:09]wFMCommunicate OK [19:22:09]wFMCommunicate request_size=255 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 EB EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EC 02 00 35 04 06 00 AE [19:22:09]Write to MH i2c: E2 02 01 82 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 EB EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EC 02 00 35 04 06 00 AE 00 00 6C [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 03 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 03 00 82 CE 00 90 00 C4 [19:22:10]RAPDU: 90 00 [19:22:10]wFMCommunicate OK [19:22:10]wFMCommunicate request_size=10 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 0D 02 02 05 C3 CB 86 8D 09 [19:22:10]Write to MH i2c: E2 0D 00 83 CE 80 0D 02 02 05 00 C3 CB 86 8D 09 00 00 7F [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 03 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 03 00 83 CE 00 90 00 C5 [19:22:10]RAPDU: 90 00 [19:22:10]wFMCommunicate OK [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 0D 03 02 [19:22:10]Write to MH i2c: E2 08 00 84 CE 80 0D 03 02 00 00 00 00 CD [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0B 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0B 00 84 CE 00 47 C5 98 BD EC 41 83 62 90 00 41 [19:22:10]RAPDU: 47 C5 98 BD EC 41 83 62 90 00 [19:22:10]wFMCommunicate OK [19:22:10]SAM_PROTO_SignData done [19:22:10]FM_MakeSignedData done [19:22:10]CreateOFDProtocolMessage [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 11 00 00 [19:22:10]Write to MH i2c: E2 08 00 85 CE 80 11 00 00 00 00 00 00 CD [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 17 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 17 00 85 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [19:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:22:10]wFMCommunicate OK [19:22:10]CreateOFDProtocolMessage done [19:22:10]OFDSenderStorePacket 191595 [19:22:10]StoreOFDPacket docnum=191595 [19:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 4E 07 01 1E B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 EB EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EC 02 00 35 04 06 00 AE C3 CB 86 8D 09 47 C5 98 BD EC 41 83 62 [19:22:10]CheckFolder [19:22:10]dirname=/storage/ofd_packets [19:22:10]CheckFolder done [19:22:10]ProducePacketName [19:22:10]name=ofd_packets/00191595 [19:22:10]NVStorageSaveData ofd_packets/00191595 [19:22:10]File name is /storage/ofd_packets/00191595 [19:22:10]Write 301 bytes [19:22:10]NVStorageSaveData done [19:22:10]OFDSenderStorePacket done [19:22:10]KKMCreateOFDPacket done [19:22:10]NVStorageSaveData kkm_last_timestamp [19:22:10]File name is /storage/kkm_last_timestamp [19:22:10]Write 4 bytes [19:22:10]NVStorageSaveData done [19:22:10]ExternCall_PrintAddStr [19:22:10]wPrintStart [19:22:10]Write to MH i2c: 01 00 00 86 CE 54 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 07 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 07 00 86 CE 00 00 00 00 00 FF 0F 69 [19:22:10]RasterBufferAndPrint [19:22:10]line Счет N : (1)30897 [19:22:10]line ИНН: 02508201610067 [19:22:10]line Контрольно-Кассовый Чек [19:22:10]line ПРОДАЖА [19:22:10]line ТРК (МРК, ГНК) : 21 [19:22:10]line Товар: 2710124130 [19:22:10]line Аи-92-К-5 [19:22:10]line 4.490 * 66.90 [19:22:10]line = 300.38 [19:22:10]line НДС 12% НСП 1% [19:22:10]line > о реализуемом товаре [19:22:10]line ИТОГО: 300.38 [19:22:10]line НСП 1% : 2.66 [19:22:10]line НДС 12% : 31.90 [19:22:10]line Наличными: 0.00 [19:22:10]line Безнал.: 300.38 [19:22:10]line Место: АЗС № 170 "Партнер Нефть" [19:22:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:22:10]line СНО: Общий режим [19:22:10]line Чек 334 25.10.2024 19:22 [19:22:10]line Смена: 540 ФФД: 1.0 [19:22:10]line ЗНМ: 0300000110 [19:22:10]line РНМ: 0000000000091776 [19:22:10]line Версия ККМ: 001 [19:22:10]line Платежная система: Кыргызкоммерцбанк [19:22:10]line ФМ: 0000000000871754 [19:22:10]line ФД: 191595 [19:22:10]line ФПД: 192155956448521 [19:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191595&fm=192155956448521&tin=02508201610067®Number=0000000000091776&sum=30038 [19:22:10]OFD Sender: Processing packet 191595 [packets to send 75, broken 74] [19:22:10]ProducePacketName [19:22:10]name=ofd_packets/00191595 [19:22:10]OFD Sender: To server: pG, [19:22:10]CommunicateWithHost lk.salyk.kg:30040 [19:22:10]ConnectInit lk.salyk.kg [19:22:10]written 0, free lines is 4095 [19:22:10]Connected sock=10 [19:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 4E 07 01 1E B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 EB EF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EC 02 00 35 04 06 00 AE C3 CB 86 8D 09 47 C5 98 BD EC 41 83 62 [19:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 DD 47 00 C5 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EC 02 00 F4 03 04 00 B8 94 1B 67 B6 04 01 00 00 54 38 89 72 B7 08 EC 0E [19:22:10]CommunicateWithHost err = 0 [19:22:10]CheckOFDResponse [19:22:10]1017 (14) - 77093643461234 [19:22:10]1041 (16) - 0000000000871754 [19:22:10]1040 (4) - 191595 [19:22:10]1012 (4) - 25.10.2024 12:53 [19:22:10]1206 (1) - 0 [19:22:10]OFD Sender: Remove packet 191595 [19:22:10]ProducePacketName [19:22:10]name=ofd_packets/00191595 [19:22:10]NVStorageDeleteData [19:22:11]Write to MH i2c: 01 00 00 B0 CE 7E [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: 01 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: 01 07 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: 01 07 00 B0 CE 00 00 00 00 00 E7 0C 78 [19:22:11]RasterBufferAndPrint [19:22:11]line [19:22:11]line [19:22:11]line [19:22:11]line [19:22:11]line [19:22:11]written 0, free lines is 3310 [19:22:11]MH_Cut [19:22:11]Write to MH i2c: D1 01 00 B7 CE 01 57 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: D1 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: D1 01 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: D1 01 00 B7 CE 00 56 [19:22:11]Write to MH i2c: 01 00 00 B8 CE 86 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]OFD Sender: No OFD packet to send [19:22:11]*** Cut start [19:22:11]*** Partial cut [19:22:11]*** CUTSNS_PIN = 1 [19:22:11]*** CUTSNS_PIN = 0 [19:22:12]*** Brake cut motor [19:22:12]Read from MH i2c: 01 [19:22:12]MH_I2C_Read... [19:22:12]*** Stop cut motor [19:22:12]*** Cut end [19:22:12]Read from MH i2c: 01 07 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 B8 CE 00 00 00 00 00 FF 0F 9B [19:22:12]process_action close_receipt done [19:22:12]requested_data is exist [19:22:12]produce_requested_data [19:22:12]requested_item fm.sn is exist - process it [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 11 00 00 [19:22:12]Write to MH i2c: E2 08 00 B9 CE 80 11 00 00 00 00 00 00 01 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 B9 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [19:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:22:12]wFMCommunicate OK [19:22:12]requested_item fd.num is exist - process it [19:22:12]SAM_PROTO_GetFieldsCounters [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 13 00 00 [19:22:12]Write to MH i2c: E2 08 00 BA CE 80 13 00 00 00 00 00 00 04 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 62 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 62 00 BA CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_GetFieldsCounters done [19:22:12]requested_item shift.num is exist - process it [19:22:12]requested_item shift.opened is exist - process it [19:22:12]req_shift_opened [19:22:12]FM_GetShiftState [19:22:12]SAM_PROTO_GetShiftState [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 13 01 00 [19:22:12]Write to MH i2c: E2 08 00 BB CE 80 13 01 00 00 00 00 00 06 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0E 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0E 00 BB CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C9 [19:22:12]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_GetShiftState done [19:22:12]FM_GetShiftState done [19:22:12]req_shift_opened done [19:22:12]requested_item shift.open_date is exist - process it [19:22:12]req_shift_open_date [19:22:12]req_shift_open_date done [19:22:12]produce_requested_data done [19:22:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191595,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:22:12]process_action_free close_receipt [19:22:12]json_value_free [19:22:12]json_value_free done [19:22:12]process_json_proto returns [19:22:12]Send response to host [19:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191595,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:22:12]free response buf [19:22:12]execute_script done [19:22:12]execute_script returns [19:22:12]free content buf [19:22:12]Sock 9.Close socket [19:22:12]Sock 9.Thread stoped [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:55]accept exits with 8 [19:24:55]New connection [19:24:55]New thread 3066961252 created [19:24:55]Thread 3066817892 joined [19:24:55]Waiting for new connection... [19:24:55] Sock 8.Parse request [19:24:55]Sock 8.Check first char [19:24:55]Sock 8.First char is OK [19:24:55]request: POST /json_proto HTTP/1.0 [19:24:55]Method: POST [19:24:55]URL: /json_proto [19:24:55]Method is POST - this is cgi request [19:24:55]url: /json_proto [19:24:55]query_string will be loaded in cgi processing [19:24:55]execute_cgi json_proto POST (null) [19:24:55]execute_cgi path=json_proto method=POST [19:24:55]POST find Content-Length [19:24:55]Host: 172.17.63.131:8080 [19:24:55]Content-Length: 678 [19:24:55]Content-Type: application/json [19:24:55] [19:24:55]POST finish read [19:24:55]Found Content-Length = 678 [19:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:24:55]execute_script... [19:24: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)30898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:24:55]POST & json_proto [19:24:55]process_json_proto [19:24:55]json parsed OK: [19:24:55]protocol is kg_v1.0 [19:24:55]action value=close_receipt [19:24:55]process_action close_receipt [19:24:55]cmd_close_receipt [19:24:55]MH_GetDate [19:24:55]Write to MH i2c: F0 00 00 BC CE 79 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 BC CE 00 92 F0 1B 67 22 05 6E 64 7F [19:24:55]GetLastDocTimeStamp 1729884139 [19:24:55]current date 1729884306 [19:24:55]FM_GetShiftState [19:24:55]SAM_PROTO_GetShiftState [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 13 01 00 [19:24:55]Write to MH i2c: E2 08 00 BD CE 80 13 01 00 00 00 00 00 08 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 BD CE 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 CB [19:24:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_GetShiftState done [19:24:55]FM_GetShiftState done [19:24:55]opened in 1729816399 [19:24:55]opened+sec_in_day 1729902799 [19:24:55]quantity*price = 100050 [19:24:55]sum+1 = 100052 [19:24: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 335 25.10.2024 19:25 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191596 ФПД: 169166772272568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191596&fm=169166772272568&tin=02508201610067®Number=0000000000091776&sum=100000 [19:24:56]StoreToDocumentArchive [19:24:56]shift 540 fd 191596 [19:24:56]save to /storage/0540/doc_00191596 [19:24:56]save last doc name /storage/0540/doc_00191596 to /storage/kkm_last_doc_name [19:24:56]save OK [19:24:56]Clear old archive folders... [19:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:56]tlvbuf is 0160B400 [19:24:56]SAM_PROTO_ClearQueue [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 09 00 00 [19:24:56]Write to MH i2c: E2 08 00 CA CE 80 09 00 00 00 00 00 00 0A [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 CA CE 00 90 00 0C [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]SAM_PROTO_ClearQueue done [19:24:56]KKMCreateOFDPacket [19:24:56]OFDProtocolAddRootSTLVToBuf [19:24:56]FM_MakeSignedData [19:24:56]FM_MakeSignedData [19:24:56]SAM_PROTO_SignData [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 01 02 [19:24:56]Write to MH i2c: E2 08 00 CB CE 80 0D 01 02 00 00 00 00 12 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 CB CE 00 90 00 0D [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=255 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 01 00 00 F4 03 04 00 92 F0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EC 02 00 35 04 06 00 99 DB 35 5E [19:24:57]Write to MH i2c: E2 02 01 CC CE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 92 F0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EC 02 00 35 04 06 00 99 DB 35 5E 00 00 6F [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 CC CE 00 90 00 0E [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=7 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 02 02 02 7D B8 [19:24:57]Write to MH i2c: E2 0A 00 CD CE 80 0D 02 02 02 00 7D B8 00 00 4E [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 CD CE 00 90 00 0F [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 03 02 [19:24:57]Write to MH i2c: E2 08 00 CE CE 80 0D 03 02 00 00 00 00 17 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 CE CE 00 B9 27 48 ED 99 79 22 A9 90 00 0A [19:24:57]RAPDU: B9 27 48 ED 99 79 22 A9 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_SignData done [19:24:57]FM_MakeSignedData done [19:24:57]CreateOFDProtocolMessage [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 11 00 00 [19:24:57]Write to MH i2c: E2 08 00 CF CE 80 11 00 00 00 00 00 00 17 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 CF CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [19:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:24:57]wFMCommunicate OK [19:24:57]CreateOFDProtocolMessage done [19:24:57]OFDSenderStorePacket 191596 [19:24:57]StoreOFDPacket docnum=191596 [19:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 3F 04 01 F1 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 92 F0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EC 02 00 35 04 06 00 99 DB 35 5E 7D B8 B9 27 48 ED 99 79 22 A9 [19:24:57]CheckFolder [19:24:57]dirname=/storage/ofd_packets [19:24:57]CheckFolder done [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00191596 [19:24:57]NVStorageSaveData ofd_packets/00191596 [19:24:57]File name is /storage/ofd_packets/00191596 [19:24:57]Write 298 bytes [19:24:57]NVStorageSaveData done [19:24:57]OFDSenderStorePacket done [19:24:57]KKMCreateOFDPacket done [19:24:57]NVStorageSaveData kkm_last_timestamp [19:24:57]File name is /storage/kkm_last_timestamp [19:24:57]Write 4 bytes [19:24:57]NVStorageSaveData done [19:24:57]ExternCall_PrintAddStr [19:24:57]wPrintStart [19:24:57]Write to MH i2c: 01 00 00 D0 CE 9E [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 D0 CE 00 00 00 00 00 FF 0F B3 [19:24:57]RasterBufferAndPrint [19:24:57]line Счет N : (1)30898 [19:24:57]line ИНН: 02508201610067 [19:24:57]line Контрольно-Кассовый Чек [19:24:57]line ПРОДАЖА [19:24:57]line ТРК (МРК, ГНК) : 22 [19:24:57]line Товар: 2710194210 [19:24:57]line ДТ-К-5 [19:24:57]line 13.130 * 76.20 [19:24:57]line = 1000.51 [19:24:57]line НДС 12% НСП 1% [19:24:57]line > о реализуемом товаре [19:24:57]line ОКРУГЛЕНИЕ: -0.51 [19:24:57]line ИТОГО: 1000.00 [19:24:57]line Внесено: 1000.00 [19:24:57]line СДАЧА: 0.00 [19:24:57]line НСП 1% : 8.85 [19:24:57]line НДС 12% : 106.25 [19:24:57]line Наличными: 1000.00 [19:24:57]line Безнал.: 0.00 [19:24:57]line Место: АЗС № 170 "Партнер Нефть" [19:24:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:24:57]line СНО: Общий режим [19:24:57]line Чек 335 25.10.2024 19:25 [19:24:57]line Смена: 540 ФФД: 1.0 [19:24:57]line ЗНМ: 0300000110 [19:24:57]line РНМ: 0000000000091776 [19:24:57]line Версия ККМ: 001 [19:24:57]line ФМ: 0000000000871754 [19:24:57]line ФД: 191596 [19:24:57]line ФПД: 169166772272568 [19:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192506&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191596&fm=169166772272568&tin=02508201610067®Number=0000000000091776&sum=100000 [19:24:57]OFD Sender: Processing packet 191596 [packets to send 75, broken 74] [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00191596 [19:24:57]OFD Sender: To server: pG, [19:24:57]CommunicateWithHost lk.salyk.kg:30040 [19:24:57]ConnectInit lk.salyk.kg [19:24:57]written 0, free lines is 4095 [19:24:57]Connected sock=10 [19:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 3F 04 01 F1 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 92 F0 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EC 02 00 35 04 06 00 99 DB 35 5E 7D B8 B9 27 48 ED 99 79 22 A9 [19:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 42 4C 47 00 3E 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EC 02 00 F4 03 04 00 5F 95 1B 67 B6 04 01 00 00 7A C8 BA 50 E1 0F B5 56 [19:24:58]CommunicateWithHost err = 0 [19:24:58]CheckOFDResponse [19:24:58]1017 (14) - 77093643461234 [19:24:58]1041 (16) - 0000000000871754 [19:24:58]1040 (4) - 191596 [19:24:58]1012 (4) - 25.10.2024 12:55 [19:24:58]1206 (1) - 0 [19:24:58]OFD Sender: Remove packet 191596 [19:24:58]ProducePacketName [19:24:58]name=ofd_packets/00191596 [19:24:58]NVStorageDeleteData [19:24:58]Write to MH i2c: 01 00 00 FB CE C9 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 FB CE 00 00 00 00 00 C2 0C 9E [19:24:58]RasterBufferAndPrint [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]written 0, free lines is 3273 [19:24:58]MH_Cut [19:24:58]Write to MH i2c: D1 01 00 02 CF 01 A3 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 02 CF 00 A2 [19:24:58]Write to MH i2c: 01 00 00 03 CF D2 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]OFD Sender: No OFD packet to send [19:24:59]*** Cut start [19:24:59]*** Partial cut [19:24:59]*** CUTSNS_PIN = 1 [19:24:59]*** CUTSNS_PIN = 0 [19:24:59]*** Brake cut motor [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]*** Stop cut motor [19:24:59]*** Cut end [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 03 CF 00 00 00 00 00 FF 0F E7 [19:24:59]process_action close_receipt done [19:24:59]requested_data is exist [19:24:59]produce_requested_data [19:24:59]requested_item fm.sn is exist - process it [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 04 CF 80 11 00 00 00 00 00 00 4D [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 04 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:24:59]wFMCommunicate OK [19:24:59]requested_item fd.num is exist - process it [19:24:59]SAM_PROTO_GetFieldsCounters [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 00 00 [19:24:59]Write to MH i2c: E2 08 00 05 CF 80 13 00 00 00 00 00 00 50 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 05 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [19:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetFieldsCounters done [19:24:59]requested_item shift.num is exist - process it [19:24:59]requested_item shift.opened is exist - process it [19:24:59]req_shift_opened [19:24:59]FM_GetShiftState [19:24:59]SAM_PROTO_GetShiftState [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 01 00 [19:24:59]Write to MH i2c: E2 08 00 06 CF 80 13 01 00 00 00 00 00 52 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 06 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 15 [19:24:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetShiftState done [19:24:59]FM_GetShiftState done [19:24:59]req_shift_opened done [19:24:59]requested_item shift.open_date is exist - process it [19:24:59]req_shift_open_date [19:24:59]req_shift_open_date done [19:24:59]produce_requested_data done [19:24:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191596,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:24:59]process_action_free close_receipt [19:24:59]json_value_free [19:24:59]json_value_free done [19:24:59]process_json_proto returns [19:24:59]Send response to host [19:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191596,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:24:59]free response buf [19:24:59]execute_script done [19:24:59]execute_script returns [19:24:59]free content buf [19:24:59]Sock 8.Close socket [19:24:59]Sock 8.Thread stoped [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:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]accept exits with 9 [19:26:58]New connection [19:26:58]New thread 3066817892 created [19:26:58]Thread 3066961252 joined [19:26:58]Waiting for new connection... [19:26:58] Sock 9.Parse request [19:26:58]Sock 9.Check first char [19:26:58]Sock 9.First char is OK [19:26:58]request: POST /json_proto HTTP/1.0 [19:26:58]Method: POST [19:26:58]URL: /json_proto [19:26:58]Method is POST - this is cgi request [19:26:58]url: /json_proto [19:26:58]query_string will be loaded in cgi processing [19:26:58]execute_cgi json_proto POST (null) [19:26:58]execute_cgi path=json_proto method=POST [19:26:58]POST find Content-Length [19:26:58]Host: 172.17.63.131:8080 [19:26:58]Content-Length: 676 [19:26:58]Content-Type: application/json [19:26:58] [19:26:58]POST finish read [19:26:58]Found Content-Length = 676 [19:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]execute_script... [19:26:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]POST & json_proto [19:26:58]process_json_proto [19:26:58]json parsed OK: [19:26:58]protocol is kg_v1.0 [19:26:58]action value=close_receipt [19:26:58]process_action close_receipt [19:26:58]cmd_close_receipt [19:26:58]MH_GetDate [19:26:58]Write to MH i2c: F0 00 00 07 CF C5 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 09 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 09 00 07 CF 00 0C F1 1B 67 22 05 6E 64 46 [19:26:58]GetLastDocTimeStamp 1729884306 [19:26:58]current date 1729884428 [19:26:58]FM_GetShiftState [19:26:58]SAM_PROTO_GetShiftState [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 01 00 [19:26:58]Write to MH i2c: E2 08 00 08 CF 80 13 01 00 00 00 00 00 54 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 08 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 17 [19:26:58]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetShiftState done [19:26:58]FM_GetShiftState done [19:26:58]opened in 1729816399 [19:26:58]opened+sec_in_day 1729902799 [19:26:58]quantity*price = 40006 [19:26:58]sum+1 = 40007 [19:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 336 25.10.2024 19:27 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191597 ФПД: 45724039870015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191597&fm=45724039870015&tin=02508201610067®Number=0000000000091776&sum=40000 [19:26:59]StoreToDocumentArchive [19:26:59]shift 540 fd 191597 [19:26:59]save to /storage/0540/doc_00191597 [19:26:59]save last doc name /storage/0540/doc_00191597 to /storage/kkm_last_doc_name [19:26:59]save OK [19:26:59]Clear old archive folders... [19:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:59]tlvbuf is 016EB2B0 [19:26:59]SAM_PROTO_ClearQueue [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 09 00 00 [19:26:59]Write to MH i2c: E2 08 00 15 CF 80 09 00 00 00 00 00 00 56 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 15 CF 00 90 00 58 [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]SAM_PROTO_ClearQueue done [19:26:59]KKMCreateOFDPacket [19:26:59]OFDProtocolAddRootSTLVToBuf [19:26:59]FM_MakeSignedData [19:26:59]FM_MakeSignedData [19:26:59]SAM_PROTO_SignData [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 01 02 [19:26:59]Write to MH i2c: E2 08 00 16 CF 80 0D 01 02 00 00 00 00 5E [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 16 CF 00 90 00 59 [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]wFMCommunicate request_size=255 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0C F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EC 02 00 35 04 06 00 29 [19:26:59]Write to MH i2c: E2 02 01 17 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0C F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EC 02 00 35 04 06 00 29 00 00 33 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 17 CF 00 90 00 5A [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]wFMCommunicate request_size=10 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 02 02 05 95 F5 27 76 3F [19:26:59]Write to MH i2c: E2 0D 00 18 CF 80 0D 02 02 05 00 95 F5 27 76 3F 00 00 D1 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 18 CF 00 90 00 5B [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 03 02 [19:26:59]Write to MH i2c: E2 08 00 19 CF 80 0D 03 02 00 00 00 00 63 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 19 CF 00 87 2F 94 BE 9F B4 35 8B 90 00 7F [19:27:00]RAPDU: 87 2F 94 BE 9F B4 35 8B 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_SignData done [19:27:00]FM_MakeSignedData done [19:27:00]CreateOFDProtocolMessage [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 11 00 00 [19:27:00]Write to MH i2c: E2 08 00 1A CF 80 11 00 00 00 00 00 00 63 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 1A CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [19:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:27:00]wFMCommunicate OK [19:27:00]CreateOFDProtocolMessage done [19:27:00]OFDSenderStorePacket 191597 [19:27:00]StoreOFDPacket docnum=191597 [19:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 3A 07 01 F7 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0C F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EC 02 00 35 04 06 00 29 95 F5 27 76 3F 87 2F 94 BE 9F B4 35 8B [19:27:00]CheckFolder [19:27:00]dirname=/storage/ofd_packets [19:27:00]CheckFolder done [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00191597 [19:27:00]NVStorageSaveData ofd_packets/00191597 [19:27:00]File name is /storage/ofd_packets/00191597 [19:27:00]Write 301 bytes [19:27:00]NVStorageSaveData done [19:27:00]OFDSenderStorePacket done [19:27:00]KKMCreateOFDPacket done [19:27:00]NVStorageSaveData kkm_last_timestamp [19:27:00]File name is /storage/kkm_last_timestamp [19:27:00]Write 4 bytes [19:27:00]NVStorageSaveData done [19:27:00]ExternCall_PrintAddStr [19:27:00]wPrintStart [19:27:00]Write to MH i2c: 01 00 00 1B CF EA [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 1B CF 00 00 00 00 00 FF 0F FF [19:27:00]RasterBufferAndPrint [19:27:00]line Счет N : (1)30899 [19:27:00]line ИНН: 02508201610067 [19:27:00]line Контрольно-Кассовый Чек [19:27:00]line ПРОДАЖА [19:27:00]line ТРК (МРК, ГНК) : 12 [19:27:00]line Товар: 2710124130 [19:27:00]line Аи-92-К-5 [19:27:00]line 5.980 * 66.90 [19:27:00]line = 400.06 [19:27:00]line НДС 12% НСП 1% [19:27:00]line > о реализуемом товаре [19:27:00]line ОКРУГЛЕНИЕ: -0.06 [19:27:00]line ИТОГО: 400.00 [19:27:00]line Внесено: 400.00 [19:27:00]line СДАЧА: 0.00 [19:27:00]line НСП 1% : 3.54 [19:27:00]line НДС 12% : 42.48 [19:27:00]line Наличными: 400.00 [19:27:00]line Безнал.: 0.00 [19:27:00]line Место: АЗС № 170 "Партнер Нефть" [19:27:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:27:00]line СНО: Общий режим [19:27:00]line Чек 336 25.10.2024 19:27 [19:27:00]line Смена: 540 ФФД: 1.0 [19:27:00]line ЗНМ: 0300000110 [19:27:00]line РНМ: 0000000000091776 [19:27:00]line Версия ККМ: 001 [19:27:00]line ФМ: 0000000000871754 [19:27:00]line ФД: 191597 [19:27:00]line ФПД: 45724039870015 [19:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191597&fm=45724039870015&tin=02508201610067®Number=0000000000091776&sum=40000 [19:27:00]OFD Sender: Processing packet 191597 [packets to send 75, broken 74] [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00191597 [19:27:00]OFD Sender: To server: pG, [19:27:00]CommunicateWithHost lk.salyk.kg:30040 [19:27:00]ConnectInit lk.salyk.kg [19:27:00]written 0, free lines is 4095 [19:27:00]Write to MH i2c: 01 00 00 46 CF 15 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 46 CF 00 00 00 00 00 AE 0C D6 [19:27:00]RasterBufferAndPrint [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]written 0, free lines is 3250 [19:27:00]MH_Cut [19:27:00]Write to MH i2c: D1 01 00 4D CF 01 EE [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 01 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 01 00 4D CF 00 ED [19:27:00]Write to MH i2c: 01 00 00 4E CF 1D [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Connected sock=10 [19:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 3A 07 01 F7 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0C F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EC 02 00 35 04 06 00 29 95 F5 27 76 3F 87 2F 94 BE 9F B4 35 8B [19:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 93 47 00 CC E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EC 02 00 F4 03 04 00 DA 95 1B 67 B6 04 01 00 00 CE 24 07 56 2F 30 C4 25 [19:27:01]CommunicateWithHost err = 0 [19:27:01]CheckOFDResponse [19:27:01]1017 (14) - 77093643461234 [19:27:01]1041 (16) - 0000000000871754 [19:27:01]1040 (4) - 191597 [19:27:01]1012 (4) - 25.10.2024 12:58 [19:27:01]1206 (1) - 0 [19:27:01]OFD Sender: Remove packet 191597 [19:27:01]ProducePacketName [19:27:01]name=ofd_packets/00191597 [19:27:01]NVStorageDeleteData [19:27:01]OFD Sender: No OFD packet to send [19:27:01]*** Cut start [19:27:01]*** Partial cut [19:27:01]*** CUTSNS_PIN = 1 [19:27:01]*** CUTSNS_PIN = 0 [19:27:01]*** Brake cut motor [19:27:02]Read from MH i2c: 01 [19:27:02]MH_I2C_Read... [19:27:02]*** Stop cut motor [19:27:02]*** Cut end [19:27:02]Read from MH i2c: 01 07 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: 01 07 00 4E CF 00 00 00 00 00 FF 0F 32 [19:27:02]process_action close_receipt done [19:27:02]requested_data is exist [19:27:02]produce_requested_data [19:27:02]requested_item fm.sn is exist - process it [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 11 00 00 [19:27:02]Write to MH i2c: E2 08 00 4F CF 80 11 00 00 00 00 00 00 98 [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 17 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 17 00 4F CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [19:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:27:02]wFMCommunicate OK [19:27:02]requested_item fd.num is exist - process it [19:27:02]SAM_PROTO_GetFieldsCounters [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 13 00 00 [19:27:02]Write to MH i2c: E2 08 00 50 CF 80 13 00 00 00 00 00 00 9B [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 62 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 62 00 50 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [19:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:02]wFMCommunicate OK [19:27:02]SAM_PROTO_GetFieldsCounters done [19:27:02]requested_item shift.num is exist - process it [19:27:02]requested_item shift.opened is exist - process it [19:27:02]req_shift_opened [19:27:02]FM_GetShiftState [19:27:02]SAM_PROTO_GetShiftState [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 13 01 00 [19:27:02]Write to MH i2c: E2 08 00 51 CF 80 13 01 00 00 00 00 00 9D [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 0E 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 0E 00 51 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 60 [19:27:02]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:27:02]wFMCommunicate OK [19:27:02]SAM_PROTO_GetShiftState done [19:27:02]FM_GetShiftState done [19:27:02]req_shift_opened done [19:27:02]requested_item shift.open_date is exist - process it [19:27:02]req_shift_open_date [19:27:02]req_shift_open_date done [19:27:02]produce_requested_data done [19:27:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191597,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:27:02]process_action_free close_receipt [19:27:02]json_value_free [19:27:02]json_value_free done [19:27:02]process_json_proto returns [19:27:02]Send response to host [19:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191597,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:27:02]free response buf [19:27:02]execute_script done [19:27:02]execute_script returns [19:27:02]free content buf [19:27:02]Sock 9.Close socket [19:27:02]Sock 9.Thread stoped [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:32]accept exits with 8 [19:28:32]New connection [19:28:32]New thread 3066961252 created [19:28:32]Thread 3066817892 joined [19:28:32]Waiting for new connection... [19:28:32] Sock 8.Parse request [19:28:32]Sock 8.Check first char [19:28:32]Sock 8.First char is OK [19:28:32]request: POST /json_proto HTTP/1.0 [19:28:32]Method: POST [19:28:32]URL: /json_proto [19:28:32]Method is POST - this is cgi request [19:28:32]url: /json_proto [19:28:32]query_string will be loaded in cgi processing [19:28:32]execute_cgi json_proto POST (null) [19:28:32]execute_cgi path=json_proto method=POST [19:28:32]POST find Content-Length [19:28:32]Host: 172.17.63.131:8080 [19:28:32]Content-Length: 676 [19:28:32]Content-Type: application/json [19:28:32] [19:28:32]POST finish read [19:28:32]Found Content-Length = 676 [19:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:32]execute_script... [19:28: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)30900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:32]POST & json_proto [19:28:32]process_json_proto [19:28:32]json parsed OK: [19:28:32]protocol is kg_v1.0 [19:28:32]action value=close_receipt [19:28:32]process_action close_receipt [19:28:32]cmd_close_receipt [19:28:32]MH_GetDate [19:28:32]Write to MH i2c: F0 00 00 52 CF 10 [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 52 CF 00 6B F1 1B 67 22 05 6E 64 F0 [19:28:32]GetLastDocTimeStamp 1729884428 [19:28:32]current date 1729884523 [19:28:32]FM_GetShiftState [19:28:32]SAM_PROTO_GetShiftState [19:28:32]wFMCommunicate request_size=4 [19:28:32]MH_SAM_APDU [19:28:32]CAPDU: 80 13 01 00 [19:28:32]Write to MH i2c: E2 08 00 53 CF 80 13 01 00 00 00 00 00 9F [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:32]Read from MH i2c: E2 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 53 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 62 [19:28:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:28:32]wFMCommunicate OK [19:28:32]SAM_PROTO_GetShiftState done [19:28:32]FM_GetShiftState done [19:28:32]opened in 1729816399 [19:28:32]opened+sec_in_day 1729902799 [19:28:32]quantity*price = 40006 [19:28:32]sum+1 = 40007 [19:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 337 25.10.2024 19:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191598 ФПД: 138101403284228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192843&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191598&fm=138101403284228&tin=02508201610067®Number=0000000000091776&sum=40000 [19:28:34]StoreToDocumentArchive [19:28:34]shift 540 fd 191598 [19:28:34]save to /storage/0540/doc_00191598 [19:28:34]save last doc name /storage/0540/doc_00191598 to /storage/kkm_last_doc_name [19:28:34]save OK [19:28:34]Clear old archive folders... [19:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:34]tlvbuf is 01709040 [19:28:34]SAM_PROTO_ClearQueue [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 09 00 00 [19:28:34]Write to MH i2c: E2 08 00 60 CF 80 09 00 00 00 00 00 00 A1 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 60 CF 00 90 00 A3 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]SAM_PROTO_ClearQueue done [19:28:34]KKMCreateOFDPacket [19:28:34]OFDProtocolAddRootSTLVToBuf [19:28:34]FM_MakeSignedData [19:28:34]FM_MakeSignedData [19:28:34]SAM_PROTO_SignData [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 01 02 [19:28:34]Write to MH i2c: E2 08 00 61 CF 80 0D 01 02 00 00 00 00 A9 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 61 CF 00 90 00 A4 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=255 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 6B F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EC 02 00 35 04 06 00 7D [19:28:34]Write to MH i2c: E2 02 01 62 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 6B F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EC 02 00 35 04 06 00 7D 00 00 33 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 62 CF 00 90 00 A5 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=10 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 02 02 05 9A 3D 15 F3 04 [19:28:34]Write to MH i2c: E2 0D 00 63 CF 80 0D 02 02 05 00 9A 3D 15 F3 04 00 00 99 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 63 CF 00 90 00 A6 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 03 02 [19:28:34]Write to MH i2c: E2 08 00 64 CF 80 0D 03 02 00 00 00 00 AE [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0B 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0B 00 64 CF 00 27 3F 5D 13 6B 80 2B B6 90 00 51 [19:28:34]RAPDU: 27 3F 5D 13 6B 80 2B B6 90 00 [19:28:34]wFMCommunicate OK [19:28:34]SAM_PROTO_SignData done [19:28:34]FM_MakeSignedData done [19:28:34]CreateOFDProtocolMessage [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 11 00 00 [19:28:34]Write to MH i2c: E2 08 00 65 CF 80 11 00 00 00 00 00 00 AE [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 17 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 17 00 65 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [19:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:28:34]wFMCommunicate OK [19:28:34]CreateOFDProtocolMessage done [19:28:34]OFDSenderStorePacket 191598 [19:28:34]StoreOFDPacket docnum=191598 [19:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 05 07 01 2A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 6B F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EC 02 00 35 04 06 00 7D 9A 3D 15 F3 04 27 3F 5D 13 6B 80 2B B6 [19:28:34]CheckFolder [19:28:34]dirname=/storage/ofd_packets [19:28:34]CheckFolder done [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00191598 [19:28:34]NVStorageSaveData ofd_packets/00191598 [19:28:34]File name is /storage/ofd_packets/00191598 [19:28:34]Write 301 bytes [19:28:34]NVStorageSaveData done [19:28:34]OFDSenderStorePacket done [19:28:34]KKMCreateOFDPacket done [19:28:34]NVStorageSaveData kkm_last_timestamp [19:28:34]File name is /storage/kkm_last_timestamp [19:28:34]Write 4 bytes [19:28:34]NVStorageSaveData done [19:28:34]ExternCall_PrintAddStr [19:28:34]wPrintStart [19:28:34]Write to MH i2c: 01 00 00 66 CF 35 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 66 CF 00 00 00 00 00 FF 0F 4A [19:28:34]RasterBufferAndPrint [19:28:34]line Счет N : (1)30900 [19:28:34]line ИНН: 02508201610067 [19:28:34]line Контрольно-Кассовый Чек [19:28:34]line ПРОДАЖА [19:28:34]line ТРК (МРК, ГНК) : 12 [19:28:34]line Товар: 2710124130 [19:28:34]line Аи-92-К-5 [19:28:34]line 5.980 * 66.90 [19:28:34]line = 400.06 [19:28:34]line НДС 12% НСП 1% [19:28:34]line > о реализуемом товаре [19:28:34]line ОКРУГЛЕНИЕ: -0.06 [19:28:34]line ИТОГО: 400.00 [19:28:34]line Внесено: 400.00 [19:28:34]line СДАЧА: 0.00 [19:28:34]line НСП 1% : 3.54 [19:28:34]line НДС 12% : 42.48 [19:28:34]line Наличными: 400.00 [19:28:34]line Безнал.: 0.00 [19:28:34]line Место: АЗС № 170 "Партнер Нефть" [19:28:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:28:34]line СНО: Общий режим [19:28:34]line Чек 337 25.10.2024 19:28 [19:28:34]line Смена: 540 ФФД: 1.0 [19:28:34]line ЗНМ: 0300000110 [19:28:34]line РНМ: 0000000000091776 [19:28:34]line Версия ККМ: 001 [19:28:34]line ФМ: 0000000000871754 [19:28:34]line ФД: 191598 [19:28:34]line ФПД: 138101403284228 [19:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192843&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191598&fm=138101403284228&tin=02508201610067®Number=0000000000091776&sum=40000 [19:28:34]OFD Sender: Processing packet 191598 [packets to send 75, broken 74] [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00191598 [19:28:34]OFD Sender: To server: pG, [19:28:34]CommunicateWithHost lk.salyk.kg:30040 [19:28:34]ConnectInit lk.salyk.kg [19:28:34]written 0, free lines is 4095 [19:28:35]Connected sock=10 [19:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 05 07 01 2A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 6B F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EC 02 00 35 04 06 00 7D 9A 3D 15 F3 04 27 3F 5D 13 6B 80 2B B6 [19:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 56 47 00 D2 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EC 02 00 F4 03 04 00 39 96 1B 67 B6 04 01 00 00 C8 AE FB 84 3E FF 4E 26 [19:28:35]CommunicateWithHost err = 0 [19:28:35]CheckOFDResponse [19:28:35]1017 (14) - 77093643461234 [19:28:35]1041 (16) - 0000000000871754 [19:28:35]1040 (4) - 191598 [19:28:35]1012 (4) - 25.10.2024 12:59 [19:28:35]1206 (1) - 0 [19:28:35]OFD Sender: Remove packet 191598 [19:28:35]ProducePacketName [19:28:35]name=ofd_packets/00191598 [19:28:35]NVStorageDeleteData [19:28:35]Write to MH i2c: 01 00 00 91 CF 60 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 91 CF 00 00 00 00 00 B7 0C 2A [19:28:35]RasterBufferAndPrint [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]written 0, free lines is 3262 [19:28:35]MH_Cut [19:28:35]Write to MH i2c: D1 01 00 98 CF 01 39 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: D1 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: D1 01 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: D1 01 00 98 CF 00 38 [19:28:35]Write to MH i2c: 01 00 00 99 CF 68 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]OFD Sender: No OFD packet to send [19:28:36]*** Cut start [19:28:36]*** Partial cut [19:28:36]*** CUTSNS_PIN = 1 [19:28:36]*** CUTSNS_PIN = 0 [19:28:36]*** Brake cut motor [19:28:36]Read from MH i2c: 01 [19:28:36]MH_I2C_Read... [19:28:36]*** Stop cut motor [19:28:36]*** Cut end [19:28:36]Read from MH i2c: 01 07 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: 01 07 00 99 CF 00 00 00 00 00 FF 0F 7D [19:28:36]process_action close_receipt done [19:28:36]requested_data is exist [19:28:36]produce_requested_data [19:28:36]requested_item fm.sn is exist - process it [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 11 00 00 [19:28:36]Write to MH i2c: E2 08 00 9A CF 80 11 00 00 00 00 00 00 E3 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 17 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 17 00 9A CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [19:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:28:36]wFMCommunicate OK [19:28:36]requested_item fd.num is exist - process it [19:28:36]SAM_PROTO_GetFieldsCounters [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 13 00 00 [19:28:36]Write to MH i2c: E2 08 00 9B CF 80 13 00 00 00 00 00 00 E6 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 62 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 62 00 9B CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [19:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetFieldsCounters done [19:28:37]requested_item shift.num is exist - process it [19:28:37]requested_item shift.opened is exist - process it [19:28:37]req_shift_opened [19:28:37]FM_GetShiftState [19:28:37]SAM_PROTO_GetShiftState [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 13 01 00 [19:28:37]Write to MH i2c: E2 08 00 9C CF 80 13 01 00 00 00 00 00 E8 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 9C CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AB [19:28:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetShiftState done [19:28:37]FM_GetShiftState done [19:28:37]req_shift_opened done [19:28:37]requested_item shift.open_date is exist - process it [19:28:37]req_shift_open_date [19:28:37]req_shift_open_date done [19:28:37]produce_requested_data done [19:28:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191598,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:28:37]process_action_free close_receipt [19:28:37]json_value_free [19:28:37]json_value_free done [19:28:37]process_json_proto returns [19:28:37]Send response to host [19:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191598,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:28:37]free response buf [19:28:37]execute_script done [19:28:37]execute_script returns [19:28:37]free content buf [19:28:37]Sock 8.Close socket [19:28:37]Sock 8.Thread stoped [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:14]accept exits with 9 [19:30:14]New connection [19:30:14]New thread 3066817892 created [19:30:14]Thread 3066961252 joined [19:30:14]Waiting for new connection... [19:30:14] Sock 9.Parse request [19:30:14]Sock 9.Check first char [19:30:14]Sock 9.First char is OK [19:30:14]request: POST /json_proto HTTP/1.0 [19:30:14]Method: POST [19:30:14]URL: /json_proto [19:30:14]Method is POST - this is cgi request [19:30:14]url: /json_proto [19:30:14]query_string will be loaded in cgi processing [19:30:14]execute_cgi json_proto POST (null) [19:30:14]execute_cgi path=json_proto method=POST [19:30:14]POST find Content-Length [19:30:14]Host: 172.17.63.131:8080 [19:30:14]Content-Length: 676 [19:30:14]Content-Type: application/json [19:30:14] [19:30:14]POST finish read [19:30:14]Found Content-Length = 676 [19:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:14]execute_script... [19:30: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)30901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:14]POST & json_proto [19:30:14]process_json_proto [19:30:14]json parsed OK: [19:30:14]protocol is kg_v1.0 [19:30:14]action value=close_receipt [19:30:14]process_action close_receipt [19:30:14]cmd_close_receipt [19:30:14]MH_GetDate [19:30:14]Write to MH i2c: F0 00 00 9D CF 5B [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: F0 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: F0 09 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: F0 09 00 9D CF 00 D0 F1 1B 67 22 05 6E 64 A0 [19:30:14]GetLastDocTimeStamp 1729884523 [19:30:14]current date 1729884624 [19:30:14]FM_GetShiftState [19:30:14]SAM_PROTO_GetShiftState [19:30:14]wFMCommunicate request_size=4 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 13 01 00 [19:30:14]Write to MH i2c: E2 08 00 9E CF 80 13 01 00 00 00 00 00 EA [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 0E 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 0E 00 9E CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 AD [19:30:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:30:14]wFMCommunicate OK [19:30:14]SAM_PROTO_GetShiftState done [19:30:14]FM_GetShiftState done [19:30:14]opened in 1729816399 [19:30:14]opened+sec_in_day 1729902799 [19:30:14]quantity*price = 40006 [19:30:14]sum+1 = 40007 [19:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 338 25.10.2024 19:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191599 ФПД: 172751910478980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191599&fm=172751910478980&tin=02508201610067®Number=0000000000091776&sum=40000 [19:30:15]StoreToDocumentArchive [19:30:15]shift 540 fd 191599 [19:30:15]save to /storage/0540/doc_00191599 [19:30:15]save last doc name /storage/0540/doc_00191599 to /storage/kkm_last_doc_name [19:30:15]save OK [19:30:15]Clear old archive folders... [19:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:15]tlvbuf is 01789F10 [19:30:15]SAM_PROTO_ClearQueue [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 09 00 00 [19:30:15]Write to MH i2c: E2 08 00 AB CF 80 09 00 00 00 00 00 00 EC [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 AB CF 00 90 00 EE [19:30:15]RAPDU: 90 00 [19:30:15]wFMCommunicate OK [19:30:15]SAM_PROTO_ClearQueue done [19:30:15]KKMCreateOFDPacket [19:30:15]OFDProtocolAddRootSTLVToBuf [19:30:15]FM_MakeSignedData [19:30:15]FM_MakeSignedData [19:30:15]SAM_PROTO_SignData [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 0D 01 02 [19:30:15]Write to MH i2c: E2 08 00 AC CF 80 0D 01 02 00 00 00 00 F4 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 AC CF 00 90 00 EF [19:30:15]RAPDU: 90 00 [19:30:15]wFMCommunicate OK [19:30:15]wFMCommunicate request_size=255 [19:30:15]MH_SAM_APDU [19: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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D0 F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EC 02 00 35 04 06 00 9D [19:30:15]Write to MH i2c: E2 02 01 AD CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D0 F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EC 02 00 35 04 06 00 9D 00 00 05 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 AD CF 00 90 00 F0 [19:30:15]RAPDU: 90 00 [19:30:15]wFMCommunicate OK [19:30:15]wFMCommunicate request_size=10 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 0D 02 02 05 1D F0 42 24 84 [19:30:15]Write to MH i2c: E2 0D 00 AE CF 80 0D 02 02 05 00 1D F0 42 24 84 00 00 F8 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 AE CF 00 90 00 F1 [19:30:15]RAPDU: 90 00 [19:30:15]wFMCommunicate OK [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 0D 03 02 [19:30:15]Write to MH i2c: E2 08 00 AF CF 80 0D 03 02 00 00 00 00 F9 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0B 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0B 00 AF CF 00 6D AA C8 89 C8 71 68 D1 90 00 D4 [19:30:15]RAPDU: 6D AA C8 89 C8 71 68 D1 90 00 [19:30:15]wFMCommunicate OK [19:30:15]SAM_PROTO_SignData done [19:30:15]FM_MakeSignedData done [19:30:15]CreateOFDProtocolMessage [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 11 00 00 [19:30:15]Write to MH i2c: E2 08 00 B0 CF 80 11 00 00 00 00 00 00 F9 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 17 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 17 00 B0 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [19:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:15]wFMCommunicate OK [19:30:15]CreateOFDProtocolMessage done [19:30:15]OFDSenderStorePacket 191599 [19:30:15]StoreOFDPacket docnum=191599 [19:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 D3 07 01 32 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D0 F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EC 02 00 35 04 06 00 9D 1D F0 42 24 84 6D AA C8 89 C8 71 68 D1 [19:30:15]CheckFolder [19:30:15]dirname=/storage/ofd_packets [19:30:15]CheckFolder done [19:30:15]ProducePacketName [19:30:15]name=ofd_packets/00191599 [19:30:15]NVStorageSaveData ofd_packets/00191599 [19:30:15]File name is /storage/ofd_packets/00191599 [19:30:15]Write 301 bytes [19:30:15]NVStorageSaveData done [19:30:15]OFDSenderStorePacket done [19:30:15]KKMCreateOFDPacket done [19:30:15]NVStorageSaveData kkm_last_timestamp [19:30:15]File name is /storage/kkm_last_timestamp [19:30:15]Write 4 bytes [19:30:15]NVStorageSaveData done [19:30:15]ExternCall_PrintAddStr [19:30:15]wPrintStart [19:30:15]Write to MH i2c: 01 00 00 B1 CF 80 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 B1 CF 00 00 00 00 00 FF 0F 95 [19:30:15]RasterBufferAndPrint [19:30:15]line Счет N : (1)30901 [19:30:15]line ИНН: 02508201610067 [19:30:15]line Контрольно-Кассовый Чек [19:30:15]line ПРОДАЖА [19:30:15]line ТРК (МРК, ГНК) : 12 [19:30:15]line Товар: 2710124130 [19:30:15]line Аи-92-К-5 [19:30:15]line 5.980 * 66.90 [19:30:15]line = 400.06 [19:30:15]line НДС 12% НСП 1% [19:30:15]line > о реализуемом товаре [19:30:15]line ОКРУГЛЕНИЕ: -0.06 [19:30:15]line ИТОГО: 400.00 [19:30:15]line Внесено: 400.00 [19:30:15]line СДАЧА: 0.00 [19:30:15]line НСП 1% : 3.54 [19:30:15]line НДС 12% : 42.48 [19:30:15]line Наличными: 400.00 [19:30:15]line Безнал.: 0.00 [19:30:15]line Место: АЗС № 170 "Партнер Нефть" [19:30:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:30:15]line СНО: Общий режим [19:30:15]line Чек 338 25.10.2024 19:30 [19:30:15]line Смена: 540 ФФД: 1.0 [19:30:15]line ЗНМ: 0300000110 [19:30:15]line РНМ: 0000000000091776 [19:30:15]line Версия ККМ: 001 [19:30:15]line ФМ: 0000000000871754 [19:30:15]line ФД: 191599 [19:30:15]line ФПД: 172751910478980 [19:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191599&fm=172751910478980&tin=02508201610067®Number=0000000000091776&sum=40000 [19:30:16]OFD Sender: Processing packet 191599 [packets to send 75, broken 74] [19:30:16]ProducePacketName [19:30:16]name=ofd_packets/00191599 [19:30:16]OFD Sender: To server: pG, [19:30:16]CommunicateWithHost lk.salyk.kg:30040 [19:30:16]ConnectInit lk.salyk.kg [19:30:16]written 0, free lines is 4095 [19:30:16]Connected sock=10 [19:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 D3 07 01 32 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D0 F1 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EC 02 00 35 04 06 00 9D 1D F0 42 24 84 6D AA C8 89 C8 71 68 D1 [19:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 83 47 00 24 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EC 02 00 F4 03 04 00 9E 96 1B 67 B6 04 01 00 00 4E DF F8 4D 40 88 DC 57 [19:30:16]CommunicateWithHost err = 0 [19:30:16]CheckOFDResponse [19:30:16]1017 (14) - 77093643461234 [19:30:16]1041 (16) - 0000000000871754 [19:30:16]1040 (4) - 191599 [19:30:16]1012 (4) - 25.10.2024 13:01 [19:30:16]1206 (1) - 0 [19:30:16]OFD Sender: Remove packet 191599 [19:30:16]ProducePacketName [19:30:16]name=ofd_packets/00191599 [19:30:16]NVStorageDeleteData [19:30:16]Write to MH i2c: 01 00 00 DC CF AB [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: 01 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: 01 07 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: 01 07 00 DC CF 00 00 00 00 00 B1 0C 6F [19:30:16]RasterBufferAndPrint [19:30:16]line [19:30:16]line [19:30:16]line [19:30:16]line [19:30:16]line [19:30:16]written 0, free lines is 3257 [19:30:16]MH_Cut [19:30:16]Write to MH i2c: D1 01 00 E3 CF 01 84 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: D1 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: D1 01 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: D1 01 00 E3 CF 00 83 [19:30:16]Write to MH i2c: 01 00 00 E4 CF B3 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]OFD Sender: No OFD packet to send [19:30:17]*** Cut start [19:30:17]*** Partial cut [19:30:17]*** CUTSNS_PIN = 1 [19:30:17]*** CUTSNS_PIN = 0 [19:30:17]*** Brake cut motor [19:30:18]Read from MH i2c: 01 [19:30:18]MH_I2C_Read... [19:30:18]*** Stop cut motor [19:30:18]*** Cut end [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 E4 CF 00 00 00 00 00 FF 0F C8 [19:30:18]process_action close_receipt done [19:30:18]requested_data is exist [19:30:18]produce_requested_data [19:30:18]requested_item fm.sn is exist - process it [19:30:18]wFMCommunicate request_size=4 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 11 00 00 [19:30:18]Write to MH i2c: E2 08 00 E5 CF 80 11 00 00 00 00 00 00 2E [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 17 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 17 00 E5 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [19:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:18]wFMCommunicate OK [19:30:18]requested_item fd.num is exist - process it [19:30:18]SAM_PROTO_GetFieldsCounters [19:30:18]wFMCommunicate request_size=4 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 13 00 00 [19:30:18]Write to MH i2c: E2 08 00 E6 CF 80 13 00 00 00 00 00 00 31 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 62 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 62 00 E6 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [19:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:18]wFMCommunicate OK [19:30:18]SAM_PROTO_GetFieldsCounters done [19:30:18]requested_item shift.num is exist - process it [19:30:18]requested_item shift.opened is exist - process it [19:30:18]req_shift_opened [19:30:18]FM_GetShiftState [19:30:18]SAM_PROTO_GetShiftState [19:30:18]wFMCommunicate request_size=4 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 13 01 00 [19:30:18]Write to MH i2c: E2 08 00 E7 CF 80 13 01 00 00 00 00 00 33 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 0E 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 0E 00 E7 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F6 [19:30:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:30:18]wFMCommunicate OK [19:30:18]SAM_PROTO_GetShiftState done [19:30:18]FM_GetShiftState done [19:30:18]req_shift_opened done [19:30:18]requested_item shift.open_date is exist - process it [19:30:18]req_shift_open_date [19:30:18]req_shift_open_date done [19:30:18]produce_requested_data done [19:30:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191599,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:30:18]process_action_free close_receipt [19:30:18]json_value_free [19:30:18]json_value_free done [19:30:18]process_json_proto returns [19:30:18]Send response to host [19:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191599,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:30:18]free response buf [19:30:18]execute_script done [19:30:18]execute_script returns [19:30:18]free content buf [19:30:18]Sock 9.Close socket [19:30:18]Sock 9.Thread stoped [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:17]accept exits with 8 [19:32:17]New connection [19:32:17]New thread 3066961252 created [19:32:17]Thread 3066817892 joined [19:32:17]Waiting for new connection... [19:32:17] Sock 8.Parse request [19:32:17]Sock 8.Check first char [19:32:17]Sock 8.First char is OK [19:32:17]request: POST /json_proto HTTP/1.0 [19:32:17]Method: POST [19:32:17]URL: /json_proto [19:32:17]Method is POST - this is cgi request [19:32:17]url: /json_proto [19:32:17]query_string will be loaded in cgi processing [19:32:17]execute_cgi json_proto POST (null) [19:32:17]execute_cgi path=json_proto method=POST [19:32:17]POST find Content-Length [19:32:17]Host: 172.17.63.131:8080 [19:32:17]Content-Length: 681 [19:32:17]Content-Type: application/json [19:32:17] [19:32:17]POST finish read [19:32:17]Found Content-Length = 681 [19:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:17]execute_script... [19:32: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)30902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:17]POST & json_proto [19:32:17]process_json_proto [19:32:17]json parsed OK: [19:32:17]protocol is kg_v1.0 [19:32:17]action value=close_receipt [19:32:17]process_action close_receipt [19:32:17]cmd_close_receipt [19:32:17]MH_GetDate [19:32:17]Write to MH i2c: F0 00 00 E8 CF A6 [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: F0 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: F0 09 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: F0 09 00 E8 CF 00 4B F2 1B 67 22 05 6E 64 67 [19:32:17]GetLastDocTimeStamp 1729884624 [19:32:17]current date 1729884747 [19:32:17]FM_GetShiftState [19:32:17]SAM_PROTO_GetShiftState [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 13 01 00 [19:32:17]Write to MH i2c: E2 08 00 E9 CF 80 13 01 00 00 00 00 00 35 [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 0E 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 0E 00 E9 CF 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F8 [19:32:17]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:32:17]wFMCommunicate OK [19:32:17]SAM_PROTO_GetShiftState done [19:32:17]FM_GetShiftState done [19:32:17]opened in 1729816399 [19:32:17]opened+sec_in_day 1729902799 [19:32:17]quantity*price = 100015 [19:32:17]sum+1 = 100017 [19:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 339 25.10.2024 19:32 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191600 ФПД: 214308756940346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193227&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191600&fm=214308756940346&tin=02508201610067®Number=0000000000091776&sum=100000 [19:32:18]StoreToDocumentArchive [19:32:18]shift 540 fd 191600 [19:32:18]save to /storage/0540/doc_00191600 [19:32:18]save last doc name /storage/0540/doc_00191600 to /storage/kkm_last_doc_name [19:32:18]save OK [19:32:18]Clear old archive folders... [19:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:18]tlvbuf is 016CE520 [19:32:18]SAM_PROTO_ClearQueue [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 09 00 00 [19:32:18]Write to MH i2c: E2 08 00 F6 CF 80 09 00 00 00 00 00 00 37 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 F6 CF 00 90 00 39 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_ClearQueue done [19:32:18]KKMCreateOFDPacket [19:32:18]OFDProtocolAddRootSTLVToBuf [19:32:18]FM_MakeSignedData [19:32:18]FM_MakeSignedData [19:32:18]SAM_PROTO_SignData [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 01 02 [19:32:18]Write to MH i2c: E2 08 00 F7 CF 80 0D 01 02 00 00 00 00 3F [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 F7 CF 00 90 00 3A [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=255 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4B F2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EC 02 00 35 04 06 00 C2 [19:32:18]Write to MH i2c: E2 02 01 F8 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4B F2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EC 02 00 35 04 06 00 C2 00 00 1E [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 F8 CF 00 90 00 3B [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=10 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 05 E9 A5 54 66 3A [19:32:18]Write to MH i2c: E2 0D 00 F9 CF 80 0D 02 02 05 00 E9 A5 54 66 3A 00 00 CE [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 F9 CF 00 90 00 3C [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 03 02 [19:32:18]Write to MH i2c: E2 08 00 FA CF 80 0D 03 02 00 00 00 00 44 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 FA CF 00 3A BC 48 BC 83 B3 78 78 90 00 65 [19:32:18]RAPDU: 3A BC 48 BC 83 B3 78 78 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_SignData done [19:32:18]FM_MakeSignedData done [19:32:18]CreateOFDProtocolMessage [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 11 00 00 [19:32:18]Write to MH i2c: E2 08 00 FB CF 80 11 00 00 00 00 00 00 44 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:19]Read from MH i2c: E2 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 17 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 17 00 FB CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [19:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:32:19]wFMCommunicate OK [19:32:19]CreateOFDProtocolMessage done [19:32:19]OFDSenderStorePacket 191600 [19:32:19]StoreOFDPacket docnum=191600 [19:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 35 07 01 88 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4B F2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EC 02 00 35 04 06 00 C2 E9 A5 54 66 3A 3A BC 48 BC 83 B3 78 78 [19:32:19]CheckFolder [19:32:19]dirname=/storage/ofd_packets [19:32:19]CheckFolder done [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00191600 [19:32:19]NVStorageSaveData ofd_packets/00191600 [19:32:19]File name is /storage/ofd_packets/00191600 [19:32:19]Write 301 bytes [19:32:19]NVStorageSaveData done [19:32:19]OFDSenderStorePacket done [19:32:19]KKMCreateOFDPacket done [19:32:19]NVStorageSaveData kkm_last_timestamp [19:32:19]File name is /storage/kkm_last_timestamp [19:32:19]Write 4 bytes [19:32:19]NVStorageSaveData done [19:32:19]ExternCall_PrintAddStr [19:32:19]wPrintStart [19:32:19]Write to MH i2c: 01 00 00 FC CF CB [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 FC CF 00 00 00 00 00 FF 0F E0 [19:32:19]RasterBufferAndPrint [19:32:19]line Счет N : (1)30902 [19:32:19]line ИНН: 02508201610067 [19:32:19]line Контрольно-Кассовый Чек [19:32:19]line ПРОДАЖА [19:32:19]line ТРК (МРК, ГНК) : 12 [19:32:19]line Товар: 2710124130 [19:32:19]line Аи-92-К-5 [19:32:19]line 14.950 * 66.90 [19:32:19]line = 1000.16 [19:32:19]line НДС 12% НСП 1% [19:32:19]line > о реализуемом товаре [19:32:19]line ОКРУГЛЕНИЕ: -0.16 [19:32:19]line ИТОГО: 1000.00 [19:32:19]line Внесено: 1000.00 [19:32:19]line СДАЧА: 0.00 [19:32:19]line НСП 1% : 8.85 [19:32:19]line НДС 12% : 106.21 [19:32:19]line Наличными: 1000.00 [19:32:19]line Безнал.: 0.00 [19:32:19]line Место: АЗС № 170 "Партнер Нефть" [19:32:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:32:19]line СНО: Общий режим [19:32:19]line Чек 339 25.10.2024 19:32 [19:32:19]line Смена: 540 ФФД: 1.0 [19:32:19]line ЗНМ: 0300000110 [19:32:19]line РНМ: 0000000000091776 [19:32:19]line Версия ККМ: 001 [19:32:19]line ФМ: 0000000000871754 [19:32:19]line ФД: 191600 [19:32:19]line ФПД: 214308756940346 [19:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193227&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191600&fm=214308756940346&tin=02508201610067®Number=0000000000091776&sum=100000 [19:32:19]OFD Sender: Processing packet 191600 [packets to send 75, broken 74] [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00191600 [19:32:19]OFD Sender: To server: pG, [19:32:19]CommunicateWithHost lk.salyk.kg:30040 [19:32:19]ConnectInit lk.salyk.kg [19:32:19]written 0, free lines is 4095 [19:32:19]Connected sock=10 [19:32:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 35 07 01 88 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4B F2 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EC 02 00 35 04 06 00 C2 E9 A5 54 66 3A 3A BC 48 BC 83 B3 78 78 [19:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FE 42 47 00 22 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EC 02 00 F4 03 04 00 19 97 1B 67 B6 04 01 00 00 E8 28 15 7C 16 E4 25 9F [19:32:19]CommunicateWithHost err = 0 [19:32:19]CheckOFDResponse [19:32:19]1017 (14) - 77093643461234 [19:32:19]1041 (16) - 0000000000871754 [19:32:19]1040 (4) - 191600 [19:32:19]1012 (4) - 25.10.2024 13:03 [19:32:19]1206 (1) - 0 [19:32:19]OFD Sender: Remove packet 191600 [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00191600 [19:32:19]NVStorageDeleteData [19:32:19]Write to MH i2c: 01 00 00 27 D0 F7 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 27 D0 00 00 00 00 00 B6 0C C0 [19:32:19]RasterBufferAndPrint [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]written 0, free lines is 3258 [19:32:19]MH_Cut [19:32:19]Write to MH i2c: D1 01 00 2E D0 01 D0 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 2E D0 00 CF [19:32:19]Write to MH i2c: 01 00 00 2F D0 FF [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:20]OFD Sender: No OFD packet to send [19:32:20]*** Cut start [19:32:20]*** Partial cut [19:32:20]*** CUTSNS_PIN = 1 [19:32:20]*** CUTSNS_PIN = 0 [19:32:20]*** Brake cut motor [19:32:21]Read from MH i2c: 01 [19:32:21]MH_I2C_Read... [19:32:21]*** Stop cut motor [19:32:21]*** Cut end [19:32:21]Read from MH i2c: 01 07 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 2F D0 00 00 00 00 00 FF 0F 14 [19:32:21]process_action close_receipt done [19:32:21]requested_data is exist [19:32:21]produce_requested_data [19:32:21]requested_item fm.sn is exist - process it [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 11 00 00 [19:32:21]Write to MH i2c: E2 08 00 30 D0 80 11 00 00 00 00 00 00 7A [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 17 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 17 00 30 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [19:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:32:21]wFMCommunicate OK [19:32:21]requested_item fd.num is exist - process it [19:32:21]SAM_PROTO_GetFieldsCounters [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 00 00 [19:32:21]Write to MH i2c: E2 08 00 31 D0 80 13 00 00 00 00 00 00 7D [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 62 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 62 00 31 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetFieldsCounters done [19:32:21]requested_item shift.num is exist - process it [19:32:21]requested_item shift.opened is exist - process it [19:32:21]req_shift_opened [19:32:21]FM_GetShiftState [19:32:21]SAM_PROTO_GetShiftState [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 01 00 [19:32:21]Write to MH i2c: E2 08 00 32 D0 80 13 01 00 00 00 00 00 7F [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 32 D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 42 [19:32:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetShiftState done [19:32:21]FM_GetShiftState done [19:32:21]req_shift_opened done [19:32:21]requested_item shift.open_date is exist - process it [19:32:21]req_shift_open_date [19:32:21]req_shift_open_date done [19:32:21]produce_requested_data done [19:32:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191600,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:32:21]process_action_free close_receipt [19:32:21]json_value_free [19:32:21]json_value_free done [19:32:21]process_json_proto returns [19:32:21]Send response to host [19:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191600,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:32:21]free response buf [19:32:21]execute_script done [19:32:21]execute_script returns [19:32:21]free content buf [19:32:21]Sock 8.Close socket [19:32:21]Sock 8.Thread stoped [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:38]accept exits with 9 [19:35:38]New connection [19:35:38]New thread 3066817892 created [19:35:38]Thread 3066961252 joined [19:35:38]Waiting for new connection... [19:35:38] Sock 9.Parse request [19:35:38]Sock 9.Check first char [19:35:38]Sock 9.First char is OK [19:35:38]request: POST /json_proto HTTP/1.0 [19:35:38]Method: POST [19:35:38]URL: /json_proto [19:35:38]Method is POST - this is cgi request [19:35:38]url: /json_proto [19:35:38]query_string will be loaded in cgi processing [19:35:38]execute_cgi json_proto POST (null) [19:35:38]execute_cgi path=json_proto method=POST [19:35:38]POST find Content-Length [19:35:38]Host: 172.17.63.131:8080 [19:35:38]Content-Length: 676 [19:35:38]Content-Type: application/json [19:35:38] [19:35:38]POST finish read [19:35:38]Found Content-Length = 676 [19:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:38]execute_script... [19:35: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)30903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:38]POST & json_proto [19:35:38]process_json_proto [19:35:38]json parsed OK: [19:35:38]protocol is kg_v1.0 [19:35:38]action value=close_receipt [19:35:38]process_action close_receipt [19:35:38]cmd_close_receipt [19:35:38]MH_GetDate [19:35:38]Write to MH i2c: F0 00 00 33 D0 F2 [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 33 D0 00 14 F3 1B 67 22 05 6E 64 7D [19:35:38]GetLastDocTimeStamp 1729884747 [19:35:38]current date 1729884948 [19:35:38]FM_GetShiftState [19:35:38]SAM_PROTO_GetShiftState [19:35:38]wFMCommunicate request_size=4 [19:35:38]MH_SAM_APDU [19:35:38]CAPDU: 80 13 01 00 [19:35:38]Write to MH i2c: E2 08 00 34 D0 80 13 01 00 00 00 00 00 81 [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:38]Read from MH i2c: E2 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 34 D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 44 [19:35:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:35:38]wFMCommunicate OK [19:35:38]SAM_PROTO_GetShiftState done [19:35:38]FM_GetShiftState done [19:35:38]opened in 1729816399 [19:35:38]opened+sec_in_day 1729902799 [19:35:38]quantity*price = 60009 [19:35:38]sum+1 = 60010 [19:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 340 25.10.2024 19:35 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191601 ФПД: 279839017312907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191601&fm=279839017312907&tin=02508201610067®Number=0000000000091776&sum=60000 [19:35:39]StoreToDocumentArchive [19:35:39]shift 540 fd 191601 [19:35:39]save to /storage/0540/doc_00191601 [19:35:39]save last doc name /storage/0540/doc_00191601 to /storage/kkm_last_doc_name [19:35:39]save OK [19:35:39]Clear old archive folders... [19:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:39]tlvbuf is 019D52D0 [19:35:39]SAM_PROTO_ClearQueue [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 09 00 00 [19:35:39]Write to MH i2c: E2 08 00 41 D0 80 09 00 00 00 00 00 00 83 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 41 D0 00 90 00 85 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_ClearQueue done [19:35:39]KKMCreateOFDPacket [19:35:39]OFDProtocolAddRootSTLVToBuf [19:35:39]FM_MakeSignedData [19:35:39]FM_MakeSignedData [19:35:39]SAM_PROTO_SignData [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 01 02 [19:35:39]Write to MH i2c: E2 08 00 42 D0 80 0D 01 02 00 00 00 00 8B [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 42 D0 00 90 00 86 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=255 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 14 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EC 02 00 35 04 06 00 FE [19:35:39]Write to MH i2c: E2 02 01 43 D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 14 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EC 02 00 35 04 06 00 FE 00 00 55 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 43 D0 00 90 00 87 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=10 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 05 83 19 38 A2 8B [19:35:39]Write to MH i2c: E2 0D 00 44 D0 80 0D 02 02 05 00 83 19 38 A2 8B 00 00 99 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 44 D0 00 90 00 88 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 03 02 [19:35:39]Write to MH i2c: E2 08 00 45 D0 80 0D 03 02 00 00 00 00 90 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0B 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0B 00 45 D0 00 58 DB 9B 44 38 D5 96 D2 90 00 18 [19:35:39]RAPDU: 58 DB 9B 44 38 D5 96 D2 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_SignData done [19:35:39]FM_MakeSignedData done [19:35:39]CreateOFDProtocolMessage [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 46 D0 80 11 00 00 00 00 00 00 90 [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 46 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [19:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:35:39]wFMCommunicate OK [19:35:39]CreateOFDProtocolMessage done [19:35:39]OFDSenderStorePacket 191601 [19:35:39]StoreOFDPacket docnum=191601 [19:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 9F 07 01 CD B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 14 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EC 02 00 35 04 06 00 FE 83 19 38 A2 8B 58 DB 9B 44 38 D5 96 D2 [19:35:39]CheckFolder [19:35:39]dirname=/storage/ofd_packets [19:35:39]CheckFolder done [19:35:39]ProducePacketName [19:35:39]name=ofd_packets/00191601 [19:35:39]NVStorageSaveData ofd_packets/00191601 [19:35:39]File name is /storage/ofd_packets/00191601 [19:35:39]Write 301 bytes [19:35:39]NVStorageSaveData done [19:35:39]OFDSenderStorePacket done [19:35:39]KKMCreateOFDPacket done [19:35:39]NVStorageSaveData kkm_last_timestamp [19:35:39]File name is /storage/kkm_last_timestamp [19:35:39]Write 4 bytes [19:35:39]NVStorageSaveData done [19:35:39]ExternCall_PrintAddStr [19:35:39]wPrintStart [19:35:39]Write to MH i2c: 01 00 00 47 D0 17 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: 01 [19:35:39]MH_I2C_Read... [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 47 D0 00 00 00 00 00 FF 0F 2C [19:35:39]RasterBufferAndPrint [19:35:39]line Счет N : (1)30903 [19:35:39]line ИНН: 02508201610067 [19:35:39]line Контрольно-Кассовый Чек [19:35:39]line ПРОДАЖА [19:35:39]line ТРК (МРК, ГНК) : 21 [19:35:39]line Товар: 2710124130 [19:35:39]line Аи-92-К-5 [19:35:39]line 8.970 * 66.90 [19:35:39]line = 600.09 [19:35:39]line НДС 12% НСП 1% [19:35:39]line > о реализуемом товаре [19:35:39]line ОКРУГЛЕНИЕ: -0.09 [19:35:39]line ИТОГО: 600.00 [19:35:39]line Внесено: 600.00 [19:35:39]line СДАЧА: 0.00 [19:35:39]line НСП 1% : 5.31 [19:35:39]line НДС 12% : 63.73 [19:35:39]line Наличными: 600.00 [19:35:39]line Безнал.: 0.00 [19:35:39]line Место: АЗС № 170 "Партнер Нефть" [19:35:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:35:39]line СНО: Общий режим [19:35:39]line Чек 340 25.10.2024 19:35 [19:35:39]line Смена: 540 ФФД: 1.0 [19:35:39]line ЗНМ: 0300000110 [19:35:39]line РНМ: 0000000000091776 [19:35:39]line Версия ККМ: 001 [19:35:39]line ФМ: 0000000000871754 [19:35:39]line ФД: 191601 [19:35:39]line ФПД: 279839017312907 [19:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191601&fm=279839017312907&tin=02508201610067®Number=0000000000091776&sum=60000 [19:35:40]OFD Sender: Processing packet 191601 [packets to send 75, broken 74] [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00191601 [19:35:40]OFD Sender: To server: pG, [19:35:40]CommunicateWithHost lk.salyk.kg:30040 [19:35:40]ConnectInit lk.salyk.kg [19:35:40]written 0, free lines is 4095 [19:35:40]Connected sock=10 [19:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B3 9F 07 01 CD B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 14 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EC 02 00 35 04 06 00 FE 83 19 38 A2 8B 58 DB 9B 44 38 D5 96 D2 [19:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 37 47 00 B0 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EC 02 00 F4 03 04 00 E2 97 1B 67 B6 04 01 00 00 32 3D B2 C7 35 BD 26 7D [19:35:40]CommunicateWithHost err = 0 [19:35:40]CheckOFDResponse [19:35:40]1017 (14) - 77093643461234 [19:35:40]1041 (16) - 0000000000871754 [19:35:40]1040 (4) - 191601 [19:35:40]1012 (4) - 25.10.2024 13:06 [19:35:40]1206 (1) - 0 [19:35:40]OFD Sender: Remove packet 191601 [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00191601 [19:35:40]NVStorageDeleteData [19:35:40]Write to MH i2c: 01 00 00 72 D0 42 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 72 D0 00 00 00 00 00 B1 0C 06 [19:35:40]RasterBufferAndPrint [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]written 0, free lines is 3255 [19:35:40]MH_Cut [19:35:40]Write to MH i2c: D1 01 00 79 D0 01 1B [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 79 D0 00 1A [19:35:40]Write to MH i2c: 01 00 00 7A D0 4A [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]OFD Sender: No OFD packet to send [19:35:41]*** Cut start [19:35:41]*** Partial cut [19:35:41]*** CUTSNS_PIN = 1 [19:35:41]*** CUTSNS_PIN = 0 [19:35:41]*** Brake cut motor [19:35:42]Read from MH i2c: 01 [19:35:42]MH_I2C_Read... [19:35:42]*** Stop cut motor [19:35:42]*** Cut end [19:35:42]Read from MH i2c: 01 07 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 7A D0 00 00 00 00 00 FF 0F 5F [19:35:42]process_action close_receipt done [19:35:42]requested_data is exist [19:35:42]produce_requested_data [19:35:42]requested_item fm.sn is exist - process it [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 11 00 00 [19:35:42]Write to MH i2c: E2 08 00 7B D0 80 11 00 00 00 00 00 00 C5 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 7B D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [19:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:35:42]wFMCommunicate OK [19:35:42]requested_item fd.num is exist - process it [19:35:42]SAM_PROTO_GetFieldsCounters [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 13 00 00 [19:35:42]Write to MH i2c: E2 08 00 7C D0 80 13 00 00 00 00 00 00 C8 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 7C D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [19:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetFieldsCounters done [19:35:42]requested_item shift.num is exist - process it [19:35:42]requested_item shift.opened is exist - process it [19:35:42]req_shift_opened [19:35:42]FM_GetShiftState [19:35:42]SAM_PROTO_GetShiftState [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 13 01 00 [19:35:42]Write to MH i2c: E2 08 00 7D D0 80 13 01 00 00 00 00 00 CA [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 7D D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8D [19:35:42]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetShiftState done [19:35:42]FM_GetShiftState done [19:35:42]req_shift_opened done [19:35:42]requested_item shift.open_date is exist - process it [19:35:42]req_shift_open_date [19:35:42]req_shift_open_date done [19:35:42]produce_requested_data done [19:35:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191601,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:35:42]process_action_free close_receipt [19:35:42]json_value_free [19:35:42]json_value_free done [19:35:42]process_json_proto returns [19:35:42]Send response to host [19:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191601,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:35:42]free response buf [19:35:42]execute_script done [19:35:42]execute_script returns [19:35:42]free content buf [19:35:42]Sock 9.Close socket [19:35:42]Sock 9.Thread stoped [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:36:59]accept exits with 8 [19:36:59]New connection [19:36:59]New thread 3066961252 created [19:36:59]Thread 3066817892 joined [19:36:59]Waiting for new connection... [19:36:59] Sock 8.Parse request [19:36:59]Sock 8.Check first char [19:36:59]Sock 8.First char is OK [19:36:59]request: POST /json_proto HTTP/1.0 [19:36:59]Method: POST [19:36:59]URL: /json_proto [19:36:59]Method is POST - this is cgi request [19:36:59]url: /json_proto [19:36:59]query_string will be loaded in cgi processing [19:36:59]execute_cgi json_proto POST (null) [19:36:59]execute_cgi path=json_proto method=POST [19:36:59]POST find Content-Length [19:36:59]Host: 172.17.63.131:8080 [19:36:59]Content-Length: 676 [19:36:59]Content-Type: application/json [19:36:59] [19:36:59]POST finish read [19:36:59]Found Content-Length = 676 [19:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:59]execute_script... [19:36: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)30904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:59]POST & json_proto [19:36:59]process_json_proto [19:36:59]json parsed OK: [19:36:59]protocol is kg_v1.0 [19:36:59]action value=close_receipt [19:36:59]process_action close_receipt [19:36:59]cmd_close_receipt [19:36:59]MH_GetDate [19:36:59]Write to MH i2c: F0 00 00 7E D0 3D [19:36:59]Write i2c OK [19:36:59]MH_I2C_Read... [19:36:59]Read from MH i2c: F0 [19:36:59]MH_I2C_Read... [19:36:59]Read from MH i2c: F0 09 00 [19:36:59]MH_I2C_Read... [19:36:59]Read from MH i2c: F0 09 00 7E D0 00 65 F3 1B 67 22 05 6E 64 19 [19:36:59]GetLastDocTimeStamp 1729884948 [19:36:59]current date 1729885029 [19:36:59]FM_GetShiftState [19:36:59]SAM_PROTO_GetShiftState [19:36:59]wFMCommunicate request_size=4 [19:36:59]MH_SAM_APDU [19:36:59]CAPDU: 80 13 01 00 [19:36:59]Write to MH i2c: E2 08 00 7F D0 80 13 01 00 00 00 00 00 CC [19:36:59]Write i2c OK [19:36:59]MH_I2C_Read... [19:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:59]Read from MH i2c: E2 [19:36:59]MH_I2C_Read... [19:36:59]Read from MH i2c: E2 0E 00 [19:36:59]MH_I2C_Read... [19:36:59]Read from MH i2c: E2 0E 00 7F D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8F [19:36:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:36:59]wFMCommunicate OK [19:36:59]SAM_PROTO_GetShiftState done [19:36:59]FM_GetShiftState done [19:36:59]opened in 1729816399 [19:36:59]opened+sec_in_day 1729902799 [19:36:59]quantity*price = 50041 [19:36:59]sum+1 = 50042 [19:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 341 25.10.2024 19:37 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191602 ФПД: 168661280970092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191602&fm=168661280970092&tin=02508201610067®Number=0000000000091776&sum=50000 [19:37:00]StoreToDocumentArchive [19:37:00]shift 540 fd 191602 [19:37:00]save to /storage/0540/doc_00191602 [19:37:00]save last doc name /storage/0540/doc_00191602 to /storage/kkm_last_doc_name [19:37:00]save OK [19:37:00]Clear old archive folders... [19:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:00]tlvbuf is 016AFEA0 [19:37:00]SAM_PROTO_ClearQueue [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 09 00 00 [19:37:00]Write to MH i2c: E2 08 00 8C D0 80 09 00 00 00 00 00 00 CE [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 8C D0 00 90 00 D0 [19:37:00]RAPDU: 90 00 [19:37:00]wFMCommunicate OK [19:37:00]SAM_PROTO_ClearQueue done [19:37:00]KKMCreateOFDPacket [19:37:00]OFDProtocolAddRootSTLVToBuf [19:37:00]FM_MakeSignedData [19:37:00]FM_MakeSignedData [19:37:00]SAM_PROTO_SignData [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 0D 01 02 [19:37:00]Write to MH i2c: E2 08 00 8D D0 80 0D 01 02 00 00 00 00 D6 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 8D D0 00 90 00 D1 [19:37:00]RAPDU: 90 00 [19:37:00]wFMCommunicate OK [19:37:00]wFMCommunicate request_size=255 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 65 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EC 02 00 35 04 06 00 99 [19:37:00]Write to MH i2c: E2 02 01 8E D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 65 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EC 02 00 35 04 06 00 99 00 00 B1 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 8E D0 00 90 00 D2 [19:37:00]RAPDU: 90 00 [19:37:00]wFMCommunicate OK [19:37:00]wFMCommunicate request_size=10 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 0D 02 02 05 65 83 BD 55 6C [19:37:00]Write to MH i2c: E2 0D 00 8F D0 80 0D 02 02 05 00 65 83 BD 55 6C 00 00 49 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 03 00 8F D0 00 90 00 D3 [19:37:00]RAPDU: 90 00 [19:37:00]wFMCommunicate OK [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 0D 03 02 [19:37:00]Write to MH i2c: E2 08 00 90 D0 80 0D 03 02 00 00 00 00 DB [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 0B 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 0B 00 90 D0 00 AA 38 9A 54 E9 1C 2D 07 90 00 E5 [19:37:00]RAPDU: AA 38 9A 54 E9 1C 2D 07 90 00 [19:37:00]wFMCommunicate OK [19:37:00]SAM_PROTO_SignData done [19:37:00]FM_MakeSignedData done [19:37:00]CreateOFDProtocolMessage [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 11 00 00 [19:37:00]Write to MH i2c: E2 08 00 91 D0 80 11 00 00 00 00 00 00 DB [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 17 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 17 00 91 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [19:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:00]wFMCommunicate OK [19:37:00]CreateOFDProtocolMessage done [19:37:00]OFDSenderStorePacket 191602 [19:37:00]StoreOFDPacket docnum=191602 [19:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 DE 07 01 18 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 65 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EC 02 00 35 04 06 00 99 65 83 BD 55 6C AA 38 9A 54 E9 1C 2D 07 [19:37:00]CheckFolder [19:37:00]dirname=/storage/ofd_packets [19:37:00]CheckFolder done [19:37:00]ProducePacketName [19:37:00]name=ofd_packets/00191602 [19:37:00]NVStorageSaveData ofd_packets/00191602 [19:37:00]File name is /storage/ofd_packets/00191602 [19:37:00]Write 301 bytes [19:37:00]NVStorageSaveData done [19:37:00]OFDSenderStorePacket done [19:37:00]KKMCreateOFDPacket done [19:37:00]NVStorageSaveData kkm_last_timestamp [19:37:00]File name is /storage/kkm_last_timestamp [19:37:00]Write 4 bytes [19:37:00]NVStorageSaveData done [19:37:00]ExternCall_PrintAddStr [19:37:00]wPrintStart [19:37:00]Write to MH i2c: 01 00 00 92 D0 62 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: 01 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: 01 07 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: 01 07 00 92 D0 00 00 00 00 00 FF 0F 77 [19:37:00]RasterBufferAndPrint [19:37:00]line Счет N : (1)30904 [19:37:00]line ИНН: 02508201610067 [19:37:00]line Контрольно-Кассовый Чек [19:37:00]line ПРОДАЖА [19:37:00]line ТРК (МРК, ГНК) : 21 [19:37:00]line Товар: 2710124130 [19:37:00]line Аи-92-К-5 [19:37:00]line 7.480 * 66.90 [19:37:00]line = 500.41 [19:37:00]line НДС 12% НСП 1% [19:37:00]line > о реализуемом товаре [19:37:00]line ОКРУГЛЕНИЕ: -0.41 [19:37:00]line ИТОГО: 500.00 [19:37:00]line Внесено: 500.00 [19:37:00]line СДАЧА: 0.00 [19:37:00]line НСП 1% : 4.43 [19:37:00]line НДС 12% : 53.14 [19:37:00]line Наличными: 500.00 [19:37:00]line Безнал.: 0.00 [19:37:00]line Место: АЗС № 170 "Партнер Нефть" [19:37:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:37:00]line СНО: Общий режим [19:37:00]line Чек 341 25.10.2024 19:37 [19:37:00]line Смена: 540 ФФД: 1.0 [19:37:00]line ЗНМ: 0300000110 [19:37:00]line РНМ: 0000000000091776 [19:37:00]line Версия ККМ: 001 [19:37:00]line ФМ: 0000000000871754 [19:37:00]line ФД: 191602 [19:37:00]line ФПД: 168661280970092 [19:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191602&fm=168661280970092&tin=02508201610067®Number=0000000000091776&sum=50000 [19:37:01]OFD Sender: Processing packet 191602 [packets to send 75, broken 74] [19:37:01]ProducePacketName [19:37:01]name=ofd_packets/00191602 [19:37:01]OFD Sender: To server: pG, [19:37:01]CommunicateWithHost lk.salyk.kg:30040 [19:37:01]ConnectInit lk.salyk.kg [19:37:01]written 0, free lines is 4095 [19:37:01]Connected sock=10 [19:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 DE 07 01 18 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 65 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EC 02 00 35 04 06 00 99 65 83 BD 55 6C AA 38 9A 54 E9 1C 2D 07 [19:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 D9 47 00 C5 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 31 37 35 34 10 04 04 00 72 EC 02 00 F4 03 04 00 33 98 1B 67 B6 04 01 00 00 87 9E EF 75 45 69 D3 9E [19:37:01]CommunicateWithHost err = 0 [19:37:01]CheckOFDResponse [19:37:01]1017 (14) - 77093643461234 [19:37:01]1041 (16) - 0000000000871754 [19:37:01]1040 (4) - 191602 [19:37:01]1012 (4) - 25.10.2024 13:08 [19:37:01]1206 (1) - 0 [19:37:01]OFD Sender: Remove packet 191602 [19:37:01]ProducePacketName [19:37:01]name=ofd_packets/00191602 [19:37:01]NVStorageDeleteData [19:37:01]Write to MH i2c: 01 00 00 BD D0 8D [19:37:01]Write i2c OK [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: 01 [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: 01 07 00 [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: 01 07 00 BD D0 00 00 00 00 00 B7 0C 57 [19:37:01]RasterBufferAndPrint [19:37:01]line [19:37:01]line [19:37:01]line [19:37:01]line [19:37:01]line [19:37:01]written 0, free lines is 3262 [19:37:01]MH_Cut [19:37:01]Write to MH i2c: D1 01 00 C4 D0 01 66 [19:37:01]Write i2c OK [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: D1 [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: D1 01 00 [19:37:01]MH_I2C_Read... [19:37:01]Read from MH i2c: D1 01 00 C4 D0 00 65 [19:37:01]Write to MH i2c: 01 00 00 C5 D0 95 [19:37:01]Write i2c OK [19:37:01]MH_I2C_Read... [19:37:02]OFD Sender: No OFD packet to send [19:37:02]*** Cut start [19:37:02]*** Partial cut [19:37:02]*** CUTSNS_PIN = 1 [19:37:02]*** CUTSNS_PIN = 0 [19:37:02]*** Brake cut motor [19:37:03]Read from MH i2c: 01 [19:37:03]MH_I2C_Read... [19:37:03]*** Stop cut motor [19:37:03]*** Cut end [19:37:03]Read from MH i2c: 01 07 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: 01 07 00 C5 D0 00 00 00 00 00 FF 0F AA [19:37:03]process_action close_receipt done [19:37:03]requested_data is exist [19:37:03]produce_requested_data [19:37:03]requested_item fm.sn is exist - process it [19:37:03]wFMCommunicate request_size=4 [19:37:03]MH_SAM_APDU [19:37:03]CAPDU: 80 11 00 00 [19:37:03]Write to MH i2c: E2 08 00 C6 D0 80 11 00 00 00 00 00 00 10 [19:37:03]Write i2c OK [19:37:03]MH_I2C_Read... [19:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:03]Read from MH i2c: E2 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 17 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 17 00 C6 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [19:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:03]wFMCommunicate OK [19:37:03]requested_item fd.num is exist - process it [19:37:03]SAM_PROTO_GetFieldsCounters [19:37:03]wFMCommunicate request_size=4 [19:37:03]MH_SAM_APDU [19:37:03]CAPDU: 80 13 00 00 [19:37:03]Write to MH i2c: E2 08 00 C7 D0 80 13 00 00 00 00 00 00 13 [19:37:03]Write i2c OK [19:37:03]MH_I2C_Read... [19:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:03]Read from MH i2c: E2 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 62 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 62 00 C7 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [19:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:03]wFMCommunicate OK [19:37:03]SAM_PROTO_GetFieldsCounters done [19:37:03]requested_item shift.num is exist - process it [19:37:03]requested_item shift.opened is exist - process it [19:37:03]req_shift_opened [19:37:03]FM_GetShiftState [19:37:03]SAM_PROTO_GetShiftState [19:37:03]wFMCommunicate request_size=4 [19:37:03]MH_SAM_APDU [19:37:03]CAPDU: 80 13 01 00 [19:37:03]Write to MH i2c: E2 08 00 C8 D0 80 13 01 00 00 00 00 00 15 [19:37:03]Write i2c OK [19:37:03]MH_I2C_Read... [19:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:03]Read from MH i2c: E2 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 0E 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 0E 00 C8 D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [19:37:03]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:37:03]wFMCommunicate OK [19:37:03]SAM_PROTO_GetShiftState done [19:37:03]FM_GetShiftState done [19:37:03]req_shift_opened done [19:37:03]requested_item shift.open_date is exist - process it [19:37:03]req_shift_open_date [19:37:03]req_shift_open_date done [19:37:03]produce_requested_data done [19:37:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191602,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:37:03]process_action_free close_receipt [19:37:03]json_value_free [19:37:03]json_value_free done [19:37:03]process_json_proto returns [19:37:03]Send response to host [19:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191602,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:37:03]free response buf [19:37:03]execute_script done [19:37:03]execute_script returns [19:37:03]free content buf [19:37:03]Sock 8.Close socket [19:37:03]Sock 8.Thread stoped [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:52]accept exits with 9 [19:38:52]New connection [19:38:52]New thread 3066817892 created [19:38:52]Thread 3066961252 joined [19:38:52]Waiting for new connection... [19:38:52] Sock 9.Parse request [19:38:52]Sock 9.Check first char [19:38:52]Sock 9.First char is OK [19:38:52]request: POST /json_proto HTTP/1.0 [19:38:52]Method: POST [19:38:52]URL: /json_proto [19:38:52]Method is POST - this is cgi request [19:38:52]url: /json_proto [19:38:52]query_string will be loaded in cgi processing [19:38:52]execute_cgi json_proto POST (null) [19:38:52]execute_cgi path=json_proto method=POST [19:38:52]POST find Content-Length [19:38:52]Host: 172.17.63.131:8080 [19:38:52]Content-Length: 676 [19:38:52]Content-Type: application/json [19:38:52] [19:38:52]POST finish read [19:38:52]Found Content-Length = 676 [19:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:52]execute_script... [19:38: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)30905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:52]POST & json_proto [19:38:52]process_json_proto [19:38:52]json parsed OK: [19:38:52]protocol is kg_v1.0 [19:38:52]action value=close_receipt [19:38:52]process_action close_receipt [19:38:52]cmd_close_receipt [19:38:52]MH_GetDate [19:38:52]Write to MH i2c: F0 00 00 C9 D0 88 [19:38:52]Write i2c OK [19:38:52]MH_I2C_Read... [19:38:52]Read from MH i2c: F0 [19:38:52]MH_I2C_Read... [19:38:52]Read from MH i2c: F0 09 00 [19:38:52]MH_I2C_Read... [19:38:52]Read from MH i2c: F0 09 00 C9 D0 00 D7 F3 1B 67 22 05 6E 64 D6 [19:38:52]GetLastDocTimeStamp 1729885029 [19:38:52]current date 1729885143 [19:38:52]FM_GetShiftState [19:38:52]SAM_PROTO_GetShiftState [19:38:52]wFMCommunicate request_size=4 [19:38:52]MH_SAM_APDU [19:38:52]CAPDU: 80 13 01 00 [19:38:52]Write to MH i2c: E2 08 00 CA D0 80 13 01 00 00 00 00 00 17 [19:38:52]Write i2c OK [19:38:52]MH_I2C_Read... [19:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:52]Read from MH i2c: E2 [19:38:52]MH_I2C_Read... [19:38:52]Read from MH i2c: E2 0E 00 [19:38:52]MH_I2C_Read... [19:38:52]Read from MH i2c: E2 0E 00 CA D0 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 DA [19:38:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:38:52]wFMCommunicate OK [19:38:52]SAM_PROTO_GetShiftState done [19:38:52]FM_GetShiftState done [19:38:52]opened in 1729816399 [19:38:52]opened+sec_in_day 1729902799 [19:38:52]quantity*price = 30038 [19:38:52]sum+1 = 30039 [19:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 342 25.10.2024 19:39 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191603 ФПД: 231582489289814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191603&fm=231582489289814&tin=02508201610067®Number=0000000000091776&sum=30000 [19:38:54]StoreToDocumentArchive [19:38:54]shift 540 fd 191603 [19:38:54]save to /storage/0540/doc_00191603 [19:38:54]save last doc name /storage/0540/doc_00191603 to /storage/kkm_last_doc_name [19:38:54]save OK [19:38:54]Clear old archive folders... [19:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:54]tlvbuf is 017F1390 [19:38:54]SAM_PROTO_ClearQueue [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 09 00 00 [19:38:54]Write to MH i2c: E2 08 00 D7 D0 80 09 00 00 00 00 00 00 19 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 D7 D0 00 90 00 1B [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]SAM_PROTO_ClearQueue done [19:38:54]KKMCreateOFDPacket [19:38:54]OFDProtocolAddRootSTLVToBuf [19:38:54]FM_MakeSignedData [19:38:54]FM_MakeSignedData [19:38:54]SAM_PROTO_SignData [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 01 02 [19:38:54]Write to MH i2c: E2 08 00 D8 D0 80 0D 01 02 00 00 00 00 21 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 D8 D0 00 90 00 1C [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=255 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 D7 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EC 02 00 35 04 06 00 D2 [19:38:54]Write to MH i2c: E2 02 01 D9 D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 D7 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EC 02 00 35 04 06 00 D2 00 00 9D [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 D9 D0 00 90 00 1D [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=10 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 02 02 05 9F 80 02 A4 56 [19:38:54]Write to MH i2c: E2 0D 00 DA D0 80 0D 02 02 05 00 9F 80 02 A4 56 00 00 49 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 03 00 DA D0 00 90 00 1E [19:38:54]RAPDU: 90 00 [19:38:54]wFMCommunicate OK [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 0D 03 02 [19:38:54]Write to MH i2c: E2 08 00 DB D0 80 0D 03 02 00 00 00 00 26 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 0B 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 0B 00 DB D0 00 00 CF 6F 30 5F 61 27 82 90 00 FE [19:38:54]RAPDU: 00 CF 6F 30 5F 61 27 82 90 00 [19:38:54]wFMCommunicate OK [19:38:54]SAM_PROTO_SignData done [19:38:54]FM_MakeSignedData done [19:38:54]CreateOFDProtocolMessage [19:38:54]wFMCommunicate request_size=4 [19:38:54]MH_SAM_APDU [19:38:54]CAPDU: 80 11 00 00 [19:38:54]Write to MH i2c: E2 08 00 DC D0 80 11 00 00 00 00 00 00 26 [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:54]Read from MH i2c: E2 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 17 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: E2 17 00 DC D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [19:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:38:54]wFMCommunicate OK [19:38:54]CreateOFDProtocolMessage done [19:38:54]OFDSenderStorePacket 191603 [19:38:54]StoreOFDPacket docnum=191603 [19:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 32 07 01 2D E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 D7 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EC 02 00 35 04 06 00 D2 9F 80 02 A4 56 00 CF 6F 30 5F 61 27 82 [19:38:54]CheckFolder [19:38:54]dirname=/storage/ofd_packets [19:38:54]CheckFolder done [19:38:54]ProducePacketName [19:38:54]name=ofd_packets/00191603 [19:38:54]NVStorageSaveData ofd_packets/00191603 [19:38:54]File name is /storage/ofd_packets/00191603 [19:38:54]Write 301 bytes [19:38:54]NVStorageSaveData done [19:38:54]OFDSenderStorePacket done [19:38:54]KKMCreateOFDPacket done [19:38:54]NVStorageSaveData kkm_last_timestamp [19:38:54]File name is /storage/kkm_last_timestamp [19:38:54]Write 4 bytes [19:38:54]NVStorageSaveData done [19:38:54]ExternCall_PrintAddStr [19:38:54]wPrintStart [19:38:54]Write to MH i2c: 01 00 00 DD D0 AD [19:38:54]Write i2c OK [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: 01 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: 01 07 00 [19:38:54]MH_I2C_Read... [19:38:54]Read from MH i2c: 01 07 00 DD D0 00 00 00 00 00 FF 0F C2 [19:38:54]RasterBufferAndPrint [19:38:54]line Счет N : (1)30905 [19:38:54]line ИНН: 02508201610067 [19:38:54]line Контрольно-Кассовый Чек [19:38:54]line ПРОДАЖА [19:38:54]line ТРК (МРК, ГНК) : 12 [19:38:54]line Товар: 2710124130 [19:38:54]line Аи-92-К-5 [19:38:54]line 4.490 * 66.90 [19:38:54]line = 300.38 [19:38:54]line НДС 12% НСП 1% [19:38:54]line > о реализуемом товаре [19:38:54]line ОКРУГЛЕНИЕ: -0.38 [19:38:54]line ИТОГО: 300.00 [19:38:54]line Внесено: 300.00 [19:38:54]line СДАЧА: 0.00 [19:38:54]line НСП 1% : 2.66 [19:38:54]line НДС 12% : 31.90 [19:38:54]line Наличными: 300.00 [19:38:54]line Безнал.: 0.00 [19:38:54]line Место: АЗС № 170 "Партнер Нефть" [19:38:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:38:54]line СНО: Общий режим [19:38:54]line Чек 342 25.10.2024 19:39 [19:38:54]line Смена: 540 ФФД: 1.0 [19:38:54]line ЗНМ: 0300000110 [19:38:54]line РНМ: 0000000000091776 [19:38:54]line Версия ККМ: 001 [19:38:54]line ФМ: 0000000000871754 [19:38:54]line ФД: 191603 [19:38:54]line ФПД: 231582489289814 [19:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191603&fm=231582489289814&tin=02508201610067®Number=0000000000091776&sum=30000 [19:38:55]OFD Sender: Processing packet 191603 [packets to send 75, broken 74] [19:38:55]ProducePacketName [19:38:55]name=ofd_packets/00191603 [19:38:55]OFD Sender: To server: pG, [19:38:55]CommunicateWithHost lk.salyk.kg:30040 [19:38:55]ConnectInit lk.salyk.kg [19:38:55]written 0, free lines is 4095 [19:38:55]Connected sock=10 [19:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 32 07 01 2D E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 D7 F3 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EC 02 00 35 04 06 00 D2 9F 80 02 A4 56 00 CF 6F 30 5F 61 27 82 [19:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 E3 47 00 C1 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EC 02 00 F4 03 04 00 A5 98 1B 67 B6 04 01 00 00 70 CB FA 7C D2 A1 8E F6 [19:38:55]CommunicateWithHost err = 0 [19:38:55]CheckOFDResponse [19:38:55]1017 (14) - 77093643461234 [19:38:55]1041 (16) - 0000000000871754 [19:38:55]1040 (4) - 191603 [19:38:55]1012 (4) - 25.10.2024 13:09 [19:38:55]1206 (1) - 0 [19:38:55]OFD Sender: Remove packet 191603 [19:38:55]ProducePacketName [19:38:55]name=ofd_packets/00191603 [19:38:55]NVStorageDeleteData [19:38:55]Write to MH i2c: 01 00 00 08 D1 D9 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: 01 07 00 08 D1 00 00 00 00 00 B3 0C 9F [19:38:55]RasterBufferAndPrint [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]line [19:38:55]written 0, free lines is 3258 [19:38:55]MH_Cut [19:38:55]Write to MH i2c: D1 01 00 0F D1 01 B2 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 01 00 [19:38:55]MH_I2C_Read... [19:38:55]Read from MH i2c: D1 01 00 0F D1 00 B1 [19:38:55]Write to MH i2c: 01 00 00 10 D1 E1 [19:38:55]Write i2c OK [19:38:55]MH_I2C_Read... [19:38:55]OFD Sender: No OFD packet to send [19:38:56]*** Cut start [19:38:56]*** Partial cut [19:38:56]*** CUTSNS_PIN = 1 [19:38:56]*** CUTSNS_PIN = 0 [19:38:56]*** Brake cut motor [19:38:56]Read from MH i2c: 01 [19:38:56]MH_I2C_Read... [19:38:56]*** Stop cut motor [19:38:56]*** Cut end [19:38:56]Read from MH i2c: 01 07 00 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: 01 07 00 10 D1 00 00 00 00 00 FF 0F F6 [19:38:56]process_action close_receipt done [19:38:56]requested_data is exist [19:38:56]produce_requested_data [19:38:56]requested_item fm.sn is exist - process it [19:38:56]wFMCommunicate request_size=4 [19:38:56]MH_SAM_APDU [19:38:56]CAPDU: 80 11 00 00 [19:38:56]Write to MH i2c: E2 08 00 11 D1 80 11 00 00 00 00 00 00 5C [19:38:56]Write i2c OK [19:38:56]MH_I2C_Read... [19:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:56]Read from MH i2c: E2 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: E2 17 00 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: E2 17 00 11 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [19:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:38:56]wFMCommunicate OK [19:38:56]requested_item fd.num is exist - process it [19:38:56]SAM_PROTO_GetFieldsCounters [19:38:56]wFMCommunicate request_size=4 [19:38:56]MH_SAM_APDU [19:38:56]CAPDU: 80 13 00 00 [19:38:56]Write to MH i2c: E2 08 00 12 D1 80 13 00 00 00 00 00 00 5F [19:38:56]Write i2c OK [19:38:56]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 62 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 62 00 12 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_GetFieldsCounters done [19:38:57]requested_item shift.num is exist - process it [19:38:57]requested_item shift.opened is exist - process it [19:38:57]req_shift_opened [19:38:57]FM_GetShiftState [19:38:57]SAM_PROTO_GetShiftState [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 13 01 00 [19:38:57]Write to MH i2c: E2 08 00 13 D1 80 13 01 00 00 00 00 00 61 [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 13 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 24 [19:38:57]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_GetShiftState done [19:38:57]FM_GetShiftState done [19:38:57]req_shift_opened done [19:38:57]requested_item shift.open_date is exist - process it [19:38:57]req_shift_open_date [19:38:57]req_shift_open_date done [19:38:57]produce_requested_data done [19:38:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191603,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:38:57]process_action_free close_receipt [19:38:57]json_value_free [19:38:57]json_value_free done [19:38:57]process_json_proto returns [19:38:57]Send response to host [19:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191603,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:38:57]free response buf [19:38:57]execute_script done [19:38:57]execute_script returns [19:38:57]free content buf [19:38:57]Sock 9.Close socket [19:38:57]Sock 9.Thread stoped [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]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:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:35]accept exits with 8 [19:43:35]New connection [19:43:35]New thread 3066961252 created [19:43:35]Thread 3066817892 joined [19:43:35]Waiting for new connection... [19:43:35] Sock 8.Parse request [19:43:35]Sock 8.Check first char [19:43:35]Sock 8.First char is OK [19:43:35]request: POST /json_proto HTTP/1.0 [19:43:35]Method: POST [19:43:35]URL: /json_proto [19:43:35]Method is POST - this is cgi request [19:43:35]url: /json_proto [19:43:35]query_string will be loaded in cgi processing [19:43:35]execute_cgi json_proto POST (null) [19:43:35]execute_cgi path=json_proto method=POST [19:43:35]POST find Content-Length [19:43:35]Host: 172.17.63.131:8080 [19:43:35]Content-Length: 678 [19:43:35]Content-Type: application/json [19:43:35] [19:43:35]POST finish read [19:43:35]Found Content-Length = 678 [19:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:35]execute_script... [19:43: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)30906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:43:35]POST & json_proto [19:43:35]process_json_proto [19:43:35]json parsed OK: [19:43:35]protocol is kg_v1.0 [19:43:35]action value=close_receipt [19:43:35]process_action close_receipt [19:43:35]cmd_close_receipt [19:43:35]MH_GetDate [19:43:35]Write to MH i2c: F0 00 00 14 D1 D4 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 09 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 09 00 14 D1 00 F2 F4 1B 67 22 05 6E 64 3E [19:43:35]GetLastDocTimeStamp 1729885143 [19:43:35]current date 1729885426 [19:43:35]FM_GetShiftState [19:43:35]SAM_PROTO_GetShiftState [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 13 01 00 [19:43:35]Write to MH i2c: E2 08 00 15 D1 80 13 01 00 00 00 00 00 63 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0E 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0E 00 15 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 26 [19:43:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:43:35]wFMCommunicate OK [19:43:35]SAM_PROTO_GetShiftState done [19:43:35]FM_GetShiftState done [19:43:35]opened in 1729816399 [19:43:35]opened+sec_in_day 1729902799 [19:43:35]quantity*price = 100050 [19:43:35]sum+1 = 100052 [19:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 343 25.10.2024 19:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191604 ФПД: 52901459399933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191604&fm=52901459399933&tin=02508201610067®Number=0000000000091776&sum=100000 [19:43:36]StoreToDocumentArchive [19:43:36]shift 540 fd 191604 [19:43:36]save to /storage/0540/doc_00191604 [19:43:36]save last doc name /storage/0540/doc_00191604 to /storage/kkm_last_doc_name [19:43:36]save OK [19:43:36]Clear old archive folders... [19:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:43:36]tlvbuf is 019D52D0 [19:43:36]SAM_PROTO_ClearQueue [19:43:36]wFMCommunicate request_size=4 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 09 00 00 [19:43:36]Write to MH i2c: E2 08 00 22 D1 80 09 00 00 00 00 00 00 65 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:36]Read from MH i2c: E2 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 22 D1 00 90 00 67 [19:43:36]RAPDU: 90 00 [19:43:36]wFMCommunicate OK [19:43:36]SAM_PROTO_ClearQueue done [19:43:36]KKMCreateOFDPacket [19:43:36]OFDProtocolAddRootSTLVToBuf [19:43:36]FM_MakeSignedData [19:43:36]FM_MakeSignedData [19:43:36]SAM_PROTO_SignData [19:43:36]wFMCommunicate request_size=4 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 0D 01 02 [19:43:36]Write to MH i2c: E2 08 00 23 D1 80 0D 01 02 00 00 00 00 6D [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:36]Read from MH i2c: E2 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 23 D1 00 90 00 68 [19:43:36]RAPDU: 90 00 [19:43:36]wFMCommunicate OK [19:43:36]wFMCommunicate request_size=255 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 F2 F4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EC 02 00 35 04 06 00 30 1D 14 B2 [19:43:36]Write to MH i2c: E2 02 01 24 D1 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 F2 F4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EC 02 00 35 04 06 00 30 1D 14 B2 00 00 4A [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:36]Read from MH i2c: E2 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 24 D1 00 90 00 69 [19:43:36]RAPDU: 90 00 [19:43:36]wFMCommunicate OK [19:43:36]wFMCommunicate request_size=7 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 0D 02 02 02 14 FD [19:43:36]Write to MH i2c: E2 0A 00 25 D1 80 0D 02 02 02 00 14 FD 00 00 85 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:36]Read from MH i2c: E2 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 03 00 25 D1 00 90 00 6A [19:43:36]RAPDU: 90 00 [19:43:36]wFMCommunicate OK [19:43:36]wFMCommunicate request_size=4 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 0D 03 02 [19:43:36]Write to MH i2c: E2 08 00 26 D1 80 0D 03 02 00 00 00 00 72 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0B 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0B 00 26 D1 00 07 07 AC E3 D3 71 D7 25 90 00 50 [19:43:37]RAPDU: 07 07 AC E3 D3 71 D7 25 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_SignData done [19:43:37]FM_MakeSignedData done [19:43:37]CreateOFDProtocolMessage [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 11 00 00 [19:43:37]Write to MH i2c: E2 08 00 27 D1 80 11 00 00 00 00 00 00 72 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 17 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 17 00 27 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [19:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:37]wFMCommunicate OK [19:43:37]CreateOFDProtocolMessage done [19:43:37]OFDSenderStorePacket 191604 [19:43:37]StoreOFDPacket docnum=191604 [19:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3F 08 04 01 2E 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 F2 F4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EC 02 00 35 04 06 00 30 1D 14 B2 14 FD 07 07 AC E3 D3 71 D7 25 [19:43:37]CheckFolder [19:43:37]dirname=/storage/ofd_packets [19:43:37]CheckFolder done [19:43:37]ProducePacketName [19:43:37]name=ofd_packets/00191604 [19:43:37]NVStorageSaveData ofd_packets/00191604 [19:43:37]File name is /storage/ofd_packets/00191604 [19:43:37]Write 298 bytes [19:43:37]NVStorageSaveData done [19:43:37]OFDSenderStorePacket done [19:43:37]KKMCreateOFDPacket done [19:43:37]NVStorageSaveData kkm_last_timestamp [19:43:37]File name is /storage/kkm_last_timestamp [19:43:37]Write 4 bytes [19:43:37]NVStorageSaveData done [19:43:37]ExternCall_PrintAddStr [19:43:37]wPrintStart [19:43:37]Write to MH i2c: 01 00 00 28 D1 F9 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 28 D1 00 00 00 00 00 FF 0F 0E [19:43:37]RasterBufferAndPrint [19:43:37]line Счет N : (1)30906 [19:43:37]line ИНН: 02508201610067 [19:43:37]line Контрольно-Кассовый Чек [19:43:37]line ПРОДАЖА [19:43:37]line ТРК (МРК, ГНК) : 22 [19:43:37]line Товар: 2710194210 [19:43:37]line ДТ-К-5 [19:43:37]line 13.130 * 76.20 [19:43:37]line = 1000.51 [19:43:37]line НДС 12% НСП 1% [19:43:37]line > о реализуемом товаре [19:43:37]line ОКРУГЛЕНИЕ: -0.51 [19:43:37]line ИТОГО: 1000.00 [19:43:37]line Внесено: 1000.00 [19:43:37]line СДАЧА: 0.00 [19:43:37]line НСП 1% : 8.85 [19:43:37]line НДС 12% : 106.25 [19:43:37]line Наличными: 1000.00 [19:43:37]line Безнал.: 0.00 [19:43:37]line Место: АЗС № 170 "Партнер Нефть" [19:43:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:43:37]line СНО: Общий режим [19:43:37]line Чек 343 25.10.2024 19:43 [19:43:37]line Смена: 540 ФФД: 1.0 [19:43:37]line ЗНМ: 0300000110 [19:43:37]line РНМ: 0000000000091776 [19:43:37]line Версия ККМ: 001 [19:43:37]line ФМ: 0000000000871754 [19:43:37]line ФД: 191604 [19:43:37]line ФПД: 52901459399933 [19:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191604&fm=52901459399933&tin=02508201610067®Number=0000000000091776&sum=100000 [19:43:37]OFD Sender: Processing packet 191604 [packets to send 75, broken 74] [19:43:37]ProducePacketName [19:43:37]name=ofd_packets/00191604 [19:43:37]OFD Sender: To server: pG, [19:43:37]CommunicateWithHost lk.salyk.kg:30040 [19:43:37]ConnectInit lk.salyk.kg [19:43:37]written 0, free lines is 4095 [19:43:37]Connected sock=10 [19:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3F 08 04 01 2E 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 F2 F4 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EC 02 00 35 04 06 00 30 1D 14 B2 14 FD 07 07 AC E3 D3 71 D7 25 [19:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C 64 47 00 9B 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EC 02 00 F4 03 04 00 BF 99 1B 67 B6 04 01 00 00 62 3C 76 FE 8B 66 6A D1 [19:43:37]CommunicateWithHost err = 0 [19:43:37]CheckOFDResponse [19:43:37]1017 (14) - 77093643461234 [19:43:37]1041 (16) - 0000000000871754 [19:43:37]1040 (4) - 191604 [19:43:37]1012 (4) - 25.10.2024 13:14 [19:43:37]1206 (1) - 0 [19:43:37]OFD Sender: Remove packet 191604 [19:43:37]ProducePacketName [19:43:37]name=ofd_packets/00191604 [19:43:37]NVStorageDeleteData [19:43:37]Write to MH i2c: 01 00 00 53 D1 24 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 53 D1 00 00 00 00 00 B9 0C F0 [19:43:37]RasterBufferAndPrint [19:43:37]line [19:43:37]line [19:43:37]line [19:43:37]line [19:43:37]line [19:43:37]written 0, free lines is 3264 [19:43:37]MH_Cut [19:43:37]Write to MH i2c: D1 01 00 5A D1 01 FD [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: D1 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: D1 01 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: D1 01 00 5A D1 00 FC [19:43:37]Write to MH i2c: 01 00 00 5B D1 2C [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:38]OFD Sender: No OFD packet to send [19:43:38]*** Cut start [19:43:38]*** Partial cut [19:43:38]*** CUTSNS_PIN = 1 [19:43:38]*** CUTSNS_PIN = 0 [19:43:38]*** Brake cut motor [19:43:39]Read from MH i2c: 01 [19:43:39]MH_I2C_Read... [19:43:39]*** Stop cut motor [19:43:39]*** Cut end [19:43:39]Read from MH i2c: 01 07 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 5B D1 00 00 00 00 00 FF 0F 41 [19:43:39]process_action close_receipt done [19:43:39]requested_data is exist [19:43:39]produce_requested_data [19:43:39]requested_item fm.sn is exist - process it [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 11 00 00 [19:43:39]Write to MH i2c: E2 08 00 5C D1 80 11 00 00 00 00 00 00 A7 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 5C D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [19:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:39]wFMCommunicate OK [19:43:39]requested_item fd.num is exist - process it [19:43:39]SAM_PROTO_GetFieldsCounters [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 13 00 00 [19:43:39]Write to MH i2c: E2 08 00 5D D1 80 13 00 00 00 00 00 00 AA [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 62 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 62 00 5D D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [19:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_GetFieldsCounters done [19:43:39]requested_item shift.num is exist - process it [19:43:39]requested_item shift.opened is exist - process it [19:43:39]req_shift_opened [19:43:39]FM_GetShiftState [19:43:39]SAM_PROTO_GetShiftState [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 13 01 00 [19:43:39]Write to MH i2c: E2 08 00 5E D1 80 13 01 00 00 00 00 00 AC [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 0E 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 0E 00 5E D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6F [19:43:39]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_GetShiftState done [19:43:39]FM_GetShiftState done [19:43:39]req_shift_opened done [19:43:39]requested_item shift.open_date is exist - process it [19:43:39]req_shift_open_date [19:43:39]req_shift_open_date done [19:43:39]produce_requested_data done [19:43:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191604,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:43:39]process_action_free close_receipt [19:43:39]json_value_free [19:43:39]json_value_free done [19:43:39]process_json_proto returns [19:43:39]Send response to host [19:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191604,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:43:39]free response buf [19:43:39]execute_script done [19:43:39]execute_script returns [19:43:39]free content buf [19:43:39]Sock 8.Close socket [19:43:39]Sock 8.Thread stoped [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:19]accept exits with 9 [19:46:19]New connection [19:46:19]New thread 3066817892 created [19:46:19]Thread 3066961252 joined [19:46:19]Waiting for new connection... [19:46:19] Sock 9.Parse request [19:46:19]Sock 9.Check first char [19:46:19]Sock 9.First char is OK [19:46:19]request: POST /json_proto HTTP/1.0 [19:46:19]Method: POST [19:46:19]URL: /json_proto [19:46:19]Method is POST - this is cgi request [19:46:19]url: /json_proto [19:46:19]query_string will be loaded in cgi processing [19:46:19]execute_cgi json_proto POST (null) [19:46:19]execute_cgi path=json_proto method=POST [19:46:19]POST find Content-Length [19:46:19]Host: 172.17.63.131:8080 [19:46:19]Content-Length: 676 [19:46:19]Content-Type: application/json [19:46:19] [19:46:19]POST finish read [19:46:19]Found Content-Length = 676 [19:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:19]execute_script... [19: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)30907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:19]POST & json_proto [19:46:19]process_json_proto [19:46:19]json parsed OK: [19:46:19]protocol is kg_v1.0 [19:46:19]action value=close_receipt [19:46:19]process_action close_receipt [19:46:19]cmd_close_receipt [19:46:19]MH_GetDate [19:46:19]Write to MH i2c: F0 00 00 5F D1 1F [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: F0 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: F0 09 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: F0 09 00 5F D1 00 96 F5 1B 67 22 05 6E 64 2E [19:46:19]GetLastDocTimeStamp 1729885426 [19:46:19]current date 1729885590 [19:46:19]FM_GetShiftState [19:46:19]SAM_PROTO_GetShiftState [19:46:19]wFMCommunicate request_size=4 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 13 01 00 [19:46:19]Write to MH i2c: E2 08 00 60 D1 80 13 01 00 00 00 00 00 AE [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 0E 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 0E 00 60 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 71 [19:46:19]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:46:19]wFMCommunicate OK [19:46:19]SAM_PROTO_GetShiftState done [19:46:19]FM_GetShiftState done [19:46:19]opened in 1729816399 [19:46:19]opened+sec_in_day 1729902799 [19:46:19]quantity*price = 50041 [19:46:19]sum+1 = 50042 [19:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 344 25.10.2024 19:46 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191605 ФПД: 69988529091324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191605&fm=69988529091324&tin=02508201610067®Number=0000000000091776&sum=50000 [19:46:20]StoreToDocumentArchive [19:46:20]shift 540 fd 191605 [19:46:20]save to /storage/0540/doc_00191605 [19:46:20]save last doc name /storage/0540/doc_00191605 to /storage/kkm_last_doc_name [19:46:20]save OK [19:46:20]Clear old archive folders... [19:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:20]tlvbuf is 016253A0 [19:46:20]SAM_PROTO_ClearQueue [19:46:20]wFMCommunicate request_size=4 [19:46:20]MH_SAM_APDU [19:46:20]CAPDU: 80 09 00 00 [19:46:20]Write to MH i2c: E2 08 00 6D D1 80 09 00 00 00 00 00 00 B0 [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:20]Read from MH i2c: E2 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 6D D1 00 90 00 B2 [19:46:20]RAPDU: 90 00 [19:46:20]wFMCommunicate OK [19:46:20]SAM_PROTO_ClearQueue done [19:46:20]KKMCreateOFDPacket [19:46:20]OFDProtocolAddRootSTLVToBuf [19:46:20]FM_MakeSignedData [19:46:20]FM_MakeSignedData [19:46:20]SAM_PROTO_SignData [19:46:20]wFMCommunicate request_size=4 [19:46:20]MH_SAM_APDU [19:46:20]CAPDU: 80 0D 01 02 [19:46:20]Write to MH i2c: E2 08 00 6E D1 80 0D 01 02 00 00 00 00 B8 [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:20]Read from MH i2c: E2 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 6E D1 00 90 00 B3 [19:46:20]RAPDU: 90 00 [19:46:20]wFMCommunicate OK [19:46:20]wFMCommunicate request_size=255 [19:46:20]MH_SAM_APDU [19:46:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 96 F5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EC 02 00 35 04 06 00 3F [19:46:20]Write to MH i2c: E2 02 01 6F D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 96 F5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EC 02 00 35 04 06 00 3F 00 00 72 [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:20]Read from MH i2c: E2 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 6F D1 00 90 00 B4 [19:46:20]RAPDU: 90 00 [19:46:20]wFMCommunicate OK [19:46:20]wFMCommunicate request_size=10 [19:46:20]MH_SAM_APDU [19:46:20]CAPDU: 80 0D 02 02 05 A7 79 6A 32 FC [19:46:20]Write to MH i2c: E2 0D 00 70 D1 80 0D 02 02 05 00 A7 79 6A 32 FC 00 00 7D [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:20]Read from MH i2c: E2 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: E2 03 00 70 D1 00 90 00 B5 [19:46:20]RAPDU: 90 00 [19:46:20]wFMCommunicate OK [19:46:20]wFMCommunicate request_size=4 [19:46:20]MH_SAM_APDU [19:46:20]CAPDU: 80 0D 03 02 [19:46:20]Write to MH i2c: E2 08 00 71 D1 80 0D 03 02 00 00 00 00 BD [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:21]Read from MH i2c: E2 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: E2 0B 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: E2 0B 00 71 D1 00 EE 5F CF 41 26 82 21 90 90 00 74 [19:46:21]RAPDU: EE 5F CF 41 26 82 21 90 90 00 [19:46:21]wFMCommunicate OK [19:46:21]SAM_PROTO_SignData done [19:46:21]FM_MakeSignedData done [19:46:21]CreateOFDProtocolMessage [19:46:21]wFMCommunicate request_size=4 [19:46:21]MH_SAM_APDU [19:46:21]CAPDU: 80 11 00 00 [19:46:21]Write to MH i2c: E2 08 00 72 D1 80 11 00 00 00 00 00 00 BD [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:21]Read from MH i2c: E2 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: E2 17 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: E2 17 00 72 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [19:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:46:21]wFMCommunicate OK [19:46:21]CreateOFDProtocolMessage done [19:46:21]OFDSenderStorePacket 191605 [19:46:21]StoreOFDPacket docnum=191605 [19:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 DF 07 01 D6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 96 F5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EC 02 00 35 04 06 00 3F A7 79 6A 32 FC EE 5F CF 41 26 82 21 90 [19:46:21]CheckFolder [19:46:21]dirname=/storage/ofd_packets [19:46:21]CheckFolder done [19:46:21]ProducePacketName [19:46:21]name=ofd_packets/00191605 [19:46:21]NVStorageSaveData ofd_packets/00191605 [19:46:21]File name is /storage/ofd_packets/00191605 [19:46:21]Write 301 bytes [19:46:21]NVStorageSaveData done [19:46:21]OFDSenderStorePacket done [19:46:21]KKMCreateOFDPacket done [19:46:21]NVStorageSaveData kkm_last_timestamp [19:46:21]File name is /storage/kkm_last_timestamp [19:46:21]Write 4 bytes [19:46:21]NVStorageSaveData done [19:46:21]ExternCall_PrintAddStr [19:46:21]wPrintStart [19:46:21]Write to MH i2c: 01 00 00 73 D1 44 [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 07 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 07 00 73 D1 00 00 00 00 00 FF 0F 59 [19:46:21]RasterBufferAndPrint [19:46:21]line Счет N : (1)30907 [19:46:21]line ИНН: 02508201610067 [19:46:21]line Контрольно-Кассовый Чек [19:46:21]line ПРОДАЖА [19:46:21]line ТРК (МРК, ГНК) : 21 [19:46:21]line Товар: 2710124130 [19:46:21]line Аи-92-К-5 [19:46:21]line 7.480 * 66.90 [19:46:21]line = 500.41 [19:46:21]line НДС 12% НСП 1% [19:46:21]line > о реализуемом товаре [19:46:21]line ОКРУГЛЕНИЕ: -0.41 [19:46:21]line ИТОГО: 500.00 [19:46:21]line Внесено: 500.00 [19:46:21]line СДАЧА: 0.00 [19:46:21]line НСП 1% : 4.43 [19:46:21]line НДС 12% : 53.14 [19:46:21]line Наличными: 500.00 [19:46:21]line Безнал.: 0.00 [19:46:21]line Место: АЗС № 170 "Партнер Нефть" [19:46:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:46:21]line СНО: Общий режим [19:46:21]line Чек 344 25.10.2024 19:46 [19:46:21]line Смена: 540 ФФД: 1.0 [19:46:21]line ЗНМ: 0300000110 [19:46:21]line РНМ: 0000000000091776 [19:46:21]line Версия ККМ: 001 [19:46:21]line ФМ: 0000000000871754 [19:46:21]line ФД: 191605 [19:46:21]line ФПД: 69988529091324 [19:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191605&fm=69988529091324&tin=02508201610067®Number=0000000000091776&sum=50000 [19:46:21]OFD Sender: Processing packet 191605 [packets to send 75, broken 74] [19:46:21]ProducePacketName [19:46:21]name=ofd_packets/00191605 [19:46:21]OFD Sender: To server: pG, [19:46:21]CommunicateWithHost lk.salyk.kg:30040 [19:46:21]ConnectInit lk.salyk.kg [19:46:21]written 0, free lines is 4095 [19:46:21]Connected sock=10 [19: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 31 37 35 34 0F 01 00 00 24 DF 07 01 D6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 96 F5 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EC 02 00 35 04 06 00 3F A7 79 6A 32 FC EE 5F CF 41 26 82 21 90 [19:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F 19 47 00 15 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EC 02 00 F4 03 04 00 63 9A 1B 67 B6 04 01 00 00 9B 02 48 D1 08 18 B7 A1 [19:46:21]CommunicateWithHost err = 0 [19:46:21]CheckOFDResponse [19:46:21]1017 (14) - 77093643461234 [19:46:21]1041 (16) - 0000000000871754 [19:46:21]1040 (4) - 191605 [19:46:21]1012 (4) - 25.10.2024 13:17 [19:46:21]1206 (1) - 0 [19:46:21]OFD Sender: Remove packet 191605 [19:46:21]ProducePacketName [19:46:21]name=ofd_packets/00191605 [19:46:21]NVStorageDeleteData [19:46:21]Write to MH i2c: 01 00 00 9E D1 6F [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 07 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 07 00 9E D1 00 00 00 00 00 B4 0C 36 [19:46:21]RasterBufferAndPrint [19:46:21]line [19:46:21]line [19:46:21]line [19:46:21]line [19:46:21]line [19:46:21]written 0, free lines is 3258 [19:46:21]MH_Cut [19:46:21]Write to MH i2c: D1 01 00 A5 D1 01 48 [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: D1 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: D1 01 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: D1 01 00 A5 D1 00 47 [19:46:21]Write to MH i2c: 01 00 00 A6 D1 77 [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:22]OFD Sender: No OFD packet to send [19:46:22]*** Cut start [19:46:22]*** Partial cut [19:46:22]*** CUTSNS_PIN = 1 [19:46:22]*** CUTSNS_PIN = 0 [19:46:22]*** Brake cut motor [19:46:23]Read from MH i2c: 01 [19:46:23]MH_I2C_Read... [19:46:23]*** Stop cut motor [19:46:23]*** Cut end [19:46:23]Read from MH i2c: 01 07 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: 01 07 00 A6 D1 00 00 00 00 00 FF 0F 8C [19:46:23]process_action close_receipt done [19:46:23]requested_data is exist [19:46:23]produce_requested_data [19:46:23]requested_item fm.sn is exist - process it [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 11 00 00 [19:46:23]Write to MH i2c: E2 08 00 A7 D1 80 11 00 00 00 00 00 00 F2 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 17 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 17 00 A7 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [19:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:46:23]wFMCommunicate OK [19:46:23]requested_item fd.num is exist - process it [19:46:23]SAM_PROTO_GetFieldsCounters [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 13 00 00 [19:46:23]Write to MH i2c: E2 08 00 A8 D1 80 13 00 00 00 00 00 00 F5 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 62 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 62 00 A8 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_GetFieldsCounters done [19:46:23]requested_item shift.num is exist - process it [19:46:23]requested_item shift.opened is exist - process it [19:46:23]req_shift_opened [19:46:23]FM_GetShiftState [19:46:23]SAM_PROTO_GetShiftState [19:46:23]wFMCommunicate request_size=4 [19:46:23]MH_SAM_APDU [19:46:23]CAPDU: 80 13 01 00 [19:46:23]Write to MH i2c: E2 08 00 A9 D1 80 13 01 00 00 00 00 00 F7 [19:46:23]Write i2c OK [19:46:23]MH_I2C_Read... [19:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:23]Read from MH i2c: E2 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0E 00 [19:46:23]MH_I2C_Read... [19:46:23]Read from MH i2c: E2 0E 00 A9 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BA [19:46:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:46:23]wFMCommunicate OK [19:46:23]SAM_PROTO_GetShiftState done [19:46:23]FM_GetShiftState done [19:46:23]req_shift_opened done [19:46:23]requested_item shift.open_date is exist - process it [19:46:23]req_shift_open_date [19:46:23]req_shift_open_date done [19:46:23]produce_requested_data done [19:46:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191605,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:46:23]process_action_free close_receipt [19:46:23]json_value_free [19:46:23]json_value_free done [19:46:23]process_json_proto returns [19:46:23]Send response to host [19:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191605,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:46:23]free response buf [19:46:23]execute_script done [19:46:23]execute_script returns [19:46:23]free content buf [19:46:23]Sock 9.Close socket [19:46:23]Sock 9.Thread stoped [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53: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:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]accept exits with 8 [19:54:37]New connection [19:54:37]New thread 3066961252 created [19:54:37]Thread 3066817892 joined [19:54:37]Waiting for new connection... [19:54:37] Sock 8.Parse request [19:54:37]Sock 8.Check first char [19:54:37]Sock 8.First char is OK [19:54:37]request: POST /json_proto HTTP/1.0 [19:54:37]Method: POST [19:54:37]URL: /json_proto [19:54:37]Method is POST - this is cgi request [19:54:37]url: /json_proto [19:54:37]query_string will be loaded in cgi processing [19:54:37]execute_cgi json_proto POST (null) [19:54:37]execute_cgi path=json_proto method=POST [19:54:37]POST find Content-Length [19:54:37]Host: 172.17.63.131:8080 [19:54:37]Content-Length: 676 [19:54:37]Content-Type: application/json [19:54:37] [19:54:37]POST finish read [19:54:37]Found Content-Length = 676 [19:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:37]execute_script... [19:54: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)30908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:37]POST & json_proto [19:54:37]process_json_proto [19:54:37]json parsed OK: [19:54:37]protocol is kg_v1.0 [19:54:37]action value=close_receipt [19:54:37]process_action close_receipt [19:54:37]cmd_close_receipt [19:54:37]MH_GetDate [19:54:37]Write to MH i2c: F0 00 00 AA D1 6A [19:54:37]Write i2c OK [19:54:37]MH_I2C_Read... [19:54:37]Read from MH i2c: F0 [19:54:37]MH_I2C_Read... [19:54:37]Read from MH i2c: F0 09 00 [19:54:37]MH_I2C_Read... [19:54:37]Read from MH i2c: F0 09 00 AA D1 00 88 F7 1B 67 22 05 6E 64 6D [19:54:37]GetLastDocTimeStamp 1729885590 [19:54:37]current date 1729886088 [19:54:37]FM_GetShiftState [19:54:37]SAM_PROTO_GetShiftState [19:54:37]wFMCommunicate request_size=4 [19:54:37]MH_SAM_APDU [19:54:37]CAPDU: 80 13 01 00 [19:54:37]Write to MH i2c: E2 08 00 AB D1 80 13 01 00 00 00 00 00 F9 [19:54:37]Write i2c OK [19:54:37]MH_I2C_Read... [19:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:37]Read from MH i2c: E2 [19:54:37]MH_I2C_Read... [19:54:37]Read from MH i2c: E2 0E 00 [19:54:37]MH_I2C_Read... [19:54:37]Read from MH i2c: E2 0E 00 AB D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 BC [19:54:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:54:37]wFMCommunicate OK [19:54:37]SAM_PROTO_GetShiftState done [19:54:37]FM_GetShiftState done [19:54:37]opened in 1729816399 [19:54:37]opened+sec_in_day 1729902799 [19:54:37]quantity*price = 50041 [19:54:37]sum+1 = 50042 [19:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 345 25.10.2024 19:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191606 ФПД: 35090585687570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T195448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191606&fm=35090585687570&tin=02508201610067®Number=0000000000091776&sum=50000 [19:54:38]StoreToDocumentArchive [19:54:38]shift 540 fd 191606 [19:54:38]save to /storage/0540/doc_00191606 [19:54:38]save last doc name /storage/0540/doc_00191606 to /storage/kkm_last_doc_name [19:54:38]save OK [19:54:38]Clear old archive folders... [19:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:38]tlvbuf is 01831120 [19:54:38]SAM_PROTO_ClearQueue [19:54:38]wFMCommunicate request_size=4 [19:54:38]MH_SAM_APDU [19:54:38]CAPDU: 80 09 00 00 [19:54:38]Write to MH i2c: E2 08 00 B8 D1 80 09 00 00 00 00 00 00 FB [19:54:38]Write i2c OK [19:54:38]MH_I2C_Read... [19:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:38]Read from MH i2c: E2 [19:54:38]MH_I2C_Read... [19:54:38]Read from MH i2c: E2 03 00 [19:54:38]MH_I2C_Read... [19:54:38]Read from MH i2c: E2 03 00 B8 D1 00 90 00 FD [19:54:38]RAPDU: 90 00 [19:54:38]wFMCommunicate OK [19:54:38]SAM_PROTO_ClearQueue done [19:54:38]KKMCreateOFDPacket [19:54:38]OFDProtocolAddRootSTLVToBuf [19:54:38]FM_MakeSignedData [19:54:38]FM_MakeSignedData [19:54:38]SAM_PROTO_SignData [19:54:38]wFMCommunicate request_size=4 [19:54:38]MH_SAM_APDU [19:54:38]CAPDU: 80 0D 01 02 [19:54:38]Write to MH i2c: E2 08 00 B9 D1 80 0D 01 02 00 00 00 00 03 [19:54:38]Write i2c OK [19:54:38]MH_I2C_Read... [19:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:38]Read from MH i2c: E2 [19:54:38]MH_I2C_Read... [19:54:38]Read from MH i2c: E2 03 00 [19:54:38]MH_I2C_Read... [19:54:38]Read from MH i2c: E2 03 00 B9 D1 00 90 00 FE [19:54:38]RAPDU: 90 00 [19:54:38]wFMCommunicate OK [19:54:38]wFMCommunicate request_size=255 [19:54:38]MH_SAM_APDU [19:54:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 88 F7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EC 02 00 35 04 06 00 1F [19:54:38]Write to MH i2c: E2 02 01 BA D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 88 F7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EC 02 00 35 04 06 00 1F 00 00 93 [19:54:38]Write i2c OK [19:54:38]MH_I2C_Read... [19:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:39]Read from MH i2c: E2 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 03 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 03 00 BA D1 00 90 00 FF [19:54:39]RAPDU: 90 00 [19:54:39]wFMCommunicate OK [19:54:39]wFMCommunicate request_size=10 [19:54:39]MH_SAM_APDU [19:54:39]CAPDU: 80 0D 02 02 05 EA 29 E5 16 12 [19:54:39]Write to MH i2c: E2 0D 00 BB D1 80 0D 02 02 05 00 EA 29 E5 16 12 00 00 30 [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:39]Read from MH i2c: E2 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 03 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 03 00 BB D1 00 90 00 00 [19:54:39]RAPDU: 90 00 [19:54:39]wFMCommunicate OK [19:54:39]wFMCommunicate request_size=4 [19:54:39]MH_SAM_APDU [19:54:39]CAPDU: 80 0D 03 02 [19:54:39]Write to MH i2c: E2 08 00 BC D1 80 0D 03 02 00 00 00 00 08 [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:39]Read from MH i2c: E2 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 0B 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 0B 00 BC D1 00 15 40 DC 37 93 16 B0 80 90 00 4A [19:54:39]RAPDU: 15 40 DC 37 93 16 B0 80 90 00 [19:54:39]wFMCommunicate OK [19:54:39]SAM_PROTO_SignData done [19:54:39]FM_MakeSignedData done [19:54:39]CreateOFDProtocolMessage [19:54:39]wFMCommunicate request_size=4 [19:54:39]MH_SAM_APDU [19:54:39]CAPDU: 80 11 00 00 [19:54:39]Write to MH i2c: E2 08 00 BD D1 80 11 00 00 00 00 00 00 08 [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:39]Read from MH i2c: E2 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 17 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 17 00 BD D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [19:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:39]wFMCommunicate OK [19:54:39]CreateOFDProtocolMessage done [19:54:39]OFDSenderStorePacket 191606 [19:54:39]StoreOFDPacket docnum=191606 [19:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 9B 07 01 B8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 88 F7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EC 02 00 35 04 06 00 1F EA 29 E5 16 12 15 40 DC 37 93 16 B0 80 [19:54:39]CheckFolder [19:54:39]dirname=/storage/ofd_packets [19:54:39]CheckFolder done [19:54:39]ProducePacketName [19:54:39]name=ofd_packets/00191606 [19:54:39]NVStorageSaveData ofd_packets/00191606 [19:54:39]File name is /storage/ofd_packets/00191606 [19:54:39]Write 301 bytes [19:54:39]NVStorageSaveData done [19:54:39]OFDSenderStorePacket done [19:54:39]KKMCreateOFDPacket done [19:54:39]NVStorageSaveData kkm_last_timestamp [19:54:39]File name is /storage/kkm_last_timestamp [19:54:39]Write 4 bytes [19:54:39]NVStorageSaveData done [19:54:39]ExternCall_PrintAddStr [19:54:39]wPrintStart [19:54:39]Write to MH i2c: 01 00 00 BE D1 8F [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 07 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 07 00 BE D1 00 00 00 00 00 FF 0F A4 [19:54:39]RasterBufferAndPrint [19:54:39]line Счет N : (1)30908 [19:54:39]line ИНН: 02508201610067 [19:54:39]line Контрольно-Кассовый Чек [19:54:39]line ПРОДАЖА [19:54:39]line ТРК (МРК, ГНК) : 12 [19:54:39]line Товар: 2710124130 [19:54:39]line Аи-92-К-5 [19:54:39]line 7.480 * 66.90 [19:54:39]line = 500.41 [19:54:39]line НДС 12% НСП 1% [19:54:39]line > о реализуемом товаре [19:54:39]line ОКРУГЛЕНИЕ: -0.41 [19:54:39]line ИТОГО: 500.00 [19:54:39]line Внесено: 500.00 [19:54:39]line СДАЧА: 0.00 [19:54:39]line НСП 1% : 4.43 [19:54:39]line НДС 12% : 53.14 [19:54:39]line Наличными: 500.00 [19:54:39]line Безнал.: 0.00 [19:54:39]line Место: АЗС № 170 "Партнер Нефть" [19:54:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:54:39]line СНО: Общий режим [19:54:39]line Чек 345 25.10.2024 19:54 [19:54:39]line Смена: 540 ФФД: 1.0 [19:54:39]line ЗНМ: 0300000110 [19:54:39]line РНМ: 0000000000091776 [19:54:39]line Версия ККМ: 001 [19:54:39]line ФМ: 0000000000871754 [19:54:39]line ФД: 191606 [19:54:39]line ФПД: 35090585687570 [19:54:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T195448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191606&fm=35090585687570&tin=02508201610067®Number=0000000000091776&sum=50000 [19:54:39]OFD Sender: Processing packet 191606 [packets to send 75, broken 74] [19:54:39]ProducePacketName [19:54:39]name=ofd_packets/00191606 [19:54:39]OFD Sender: To server: pG, [19:54:39]CommunicateWithHost lk.salyk.kg:30040 [19:54:39]ConnectInit lk.salyk.kg [19:54:39]written 0, free lines is 4095 [19:54:39]Connected sock=10 [19:54:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 9B 07 01 B8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 88 F7 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EC 02 00 35 04 06 00 1F EA 29 E5 16 12 15 40 DC 37 93 16 B0 80 [19:54:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 F7 47 00 3B 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EC 02 00 F4 03 04 00 55 9C 1B 67 B6 04 01 00 00 7C 0E 9C D1 52 3E 32 2B [19:54:39]CommunicateWithHost err = 0 [19:54:39]CheckOFDResponse [19:54:39]1017 (14) - 77093643461234 [19:54:39]1041 (16) - 0000000000871754 [19:54:39]1040 (4) - 191606 [19:54:39]1012 (4) - 25.10.2024 13:25 [19:54:39]1206 (1) - 0 [19:54:39]OFD Sender: Remove packet 191606 [19:54:39]ProducePacketName [19:54:39]name=ofd_packets/00191606 [19:54:39]NVStorageDeleteData [19:54:39]Write to MH i2c: 01 00 00 E9 D1 BA [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 07 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: 01 07 00 E9 D1 00 00 00 00 00 C2 0C 8F [19:54:39]RasterBufferAndPrint [19:54:39]line [19:54:39]line [19:54:39]line [19:54:39]line [19:54:39]line [19:54:39]written 0, free lines is 3275 [19:54:40]MH_Cut [19:54:40]Write to MH i2c: D1 01 00 F0 D1 01 93 [19:54:40]Write i2c OK [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: D1 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: D1 01 00 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: D1 01 00 F0 D1 00 92 [19:54:40]Write to MH i2c: 01 00 00 F1 D1 C2 [19:54:40]Write i2c OK [19:54:40]MH_I2C_Read... [19:54:40]OFD Sender: No OFD packet to send [19:54:40]*** Cut start [19:54:40]*** Partial cut [19:54:40]*** CUTSNS_PIN = 1 [19:54:40]*** CUTSNS_PIN = 0 [19:54:41]*** Brake cut motor [19:54:41]Read from MH i2c: 01 [19:54:41]MH_I2C_Read... [19:54:41]*** Stop cut motor [19:54:41]*** Cut end [19:54:41]Read from MH i2c: 01 07 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: 01 07 00 F1 D1 00 00 00 00 00 FF 0F D7 [19:54:41]process_action close_receipt done [19:54:41]requested_data is exist [19:54:41]produce_requested_data [19:54:41]requested_item fm.sn is exist - process it [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 11 00 00 [19:54:41]Write to MH i2c: E2 08 00 F2 D1 80 11 00 00 00 00 00 00 3D [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 17 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 17 00 F2 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [19:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:41]wFMCommunicate OK [19:54:41]requested_item fd.num is exist - process it [19:54:41]SAM_PROTO_GetFieldsCounters [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 13 00 00 [19:54:41]Write to MH i2c: E2 08 00 F3 D1 80 13 00 00 00 00 00 00 40 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 62 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 62 00 F3 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [19:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:41]wFMCommunicate OK [19:54:41]SAM_PROTO_GetFieldsCounters done [19:54:41]requested_item shift.num is exist - process it [19:54:41]requested_item shift.opened is exist - process it [19:54:41]req_shift_opened [19:54:41]FM_GetShiftState [19:54:41]SAM_PROTO_GetShiftState [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 13 01 00 [19:54:41]Write to MH i2c: E2 08 00 F4 D1 80 13 01 00 00 00 00 00 42 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0E 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0E 00 F4 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 05 [19:54:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [19:54:41]wFMCommunicate OK [19:54:41]SAM_PROTO_GetShiftState done [19:54:41]FM_GetShiftState done [19:54:41]req_shift_opened done [19:54:41]requested_item shift.open_date is exist - process it [19:54:41]req_shift_open_date [19:54:41]req_shift_open_date done [19:54:41]produce_requested_data done [19:54:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191606,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [19:54:41]process_action_free close_receipt [19:54:41]json_value_free [19:54:41]json_value_free done [19:54:41]process_json_proto returns [19:54:41]Send response to host [19:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191606,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [19:54:41]free response buf [19:54:41]execute_script done [19:54:41]execute_script returns [19:54:41]free content buf [19:54:41]Sock 8.Close socket [19:54:41]Sock 8.Thread stoped [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02: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:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:22]accept exits with 9 [20:08:22]New connection [20:08:22]New thread 3066817892 created [20:08:22]Thread 3066961252 joined [20:08:22]Waiting for new connection... [20:08:22] Sock 9.Parse request [20:08:22]Sock 9.Check first char [20:08:22]Sock 9.First char is OK [20:08:22]request: POST /json_proto HTTP/1.0 [20:08:22]Method: POST [20:08:22]URL: /json_proto [20:08:22]Method is POST - this is cgi request [20:08:22]url: /json_proto [20:08:22]query_string will be loaded in cgi processing [20:08:22]execute_cgi json_proto POST (null) [20:08:22]execute_cgi path=json_proto method=POST [20:08:22]POST find Content-Length [20:08:22]Host: 172.17.63.131:8080 [20:08:22]Content-Length: 676 [20:08:22]Content-Type: application/json [20:08:22] [20:08:22]POST finish read [20:08:22]Found Content-Length = 676 [20:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:22]execute_script... [20:08: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)30909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:22]POST & json_proto [20:08:22]process_json_proto [20:08:22]json parsed OK: [20:08:22]protocol is kg_v1.0 [20:08:22]action value=close_receipt [20:08:22]process_action close_receipt [20:08:22]cmd_close_receipt [20:08:22]MH_GetDate [20:08:22]Write to MH i2c: F0 00 00 F5 D1 B5 [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: F0 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: F0 09 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: F0 09 00 F5 D1 00 C0 FA 1B 67 22 05 6E 64 F3 [20:08:22]GetLastDocTimeStamp 1729886088 [20:08:22]current date 1729886912 [20:08:22]FM_GetShiftState [20:08:22]SAM_PROTO_GetShiftState [20:08:22]wFMCommunicate request_size=4 [20:08:22]MH_SAM_APDU [20:08:22]CAPDU: 80 13 01 00 [20:08:22]Write to MH i2c: E2 08 00 F6 D1 80 13 01 00 00 00 00 00 44 [20:08:22]Write i2c OK [20:08:22]MH_I2C_Read... [20:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:22]Read from MH i2c: E2 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 0E 00 [20:08:22]MH_I2C_Read... [20:08:22]Read from MH i2c: E2 0E 00 F6 D1 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 07 [20:08:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:08:22]wFMCommunicate OK [20:08:22]SAM_PROTO_GetShiftState done [20:08:22]FM_GetShiftState done [20:08:22]opened in 1729816399 [20:08:22]opened+sec_in_day 1729902799 [20:08:22]quantity*price = 20003 [20:08:22]sum+1 = 20004 [20:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 346 25.10.2024 20:08 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191607 ФПД: 153706433047886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T200832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191607&fm=153706433047886&tin=02508201610067®Number=0000000000091776&sum=20000 [20:08:23]StoreToDocumentArchive [20:08:23]shift 540 fd 191607 [20:08:23]save to /storage/0540/doc_00191607 [20:08:23]save last doc name /storage/0540/doc_00191607 to /storage/kkm_last_doc_name [20:08:23]save OK [20:08:23]Clear old archive folders... [20:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:23]tlvbuf is 01831240 [20:08:23]SAM_PROTO_ClearQueue [20:08:23]wFMCommunicate request_size=4 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 09 00 00 [20:08:23]Write to MH i2c: E2 08 00 03 D2 80 09 00 00 00 00 00 00 47 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 03 D2 00 90 00 49 [20:08:23]RAPDU: 90 00 [20:08:23]wFMCommunicate OK [20:08:23]SAM_PROTO_ClearQueue done [20:08:23]KKMCreateOFDPacket [20:08:23]OFDProtocolAddRootSTLVToBuf [20:08:23]FM_MakeSignedData [20:08:23]FM_MakeSignedData [20:08:23]SAM_PROTO_SignData [20:08:23]wFMCommunicate request_size=4 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 0D 01 02 [20:08:23]Write to MH i2c: E2 08 00 04 D2 80 0D 01 02 00 00 00 00 4F [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 04 D2 00 90 00 4A [20:08:23]RAPDU: 90 00 [20:08:23]wFMCommunicate OK [20:08:23]wFMCommunicate request_size=255 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 C0 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EC 02 00 35 04 06 00 8B [20:08:23]Write to MH i2c: E2 02 01 05 D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 C0 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EC 02 00 35 04 06 00 8B 00 00 4A [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 05 D2 00 90 00 4B [20:08:23]RAPDU: 90 00 [20:08:23]wFMCommunicate OK [20:08:23]wFMCommunicate request_size=10 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 0D 02 02 05 CB 91 57 6D 4E [20:08:23]Write to MH i2c: E2 0D 00 06 D2 80 0D 02 02 05 00 CB 91 57 6D 4E 00 00 CA [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 03 00 06 D2 00 90 00 4C [20:08:23]RAPDU: 90 00 [20:08:23]wFMCommunicate OK [20:08:23]wFMCommunicate request_size=4 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 0D 03 02 [20:08:23]Write to MH i2c: E2 08 00 07 D2 80 0D 03 02 00 00 00 00 54 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 0B 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 0B 00 07 D2 00 62 00 32 D4 AB 98 68 D3 90 00 3B [20:08:23]RAPDU: 62 00 32 D4 AB 98 68 D3 90 00 [20:08:23]wFMCommunicate OK [20:08:23]SAM_PROTO_SignData done [20:08:23]FM_MakeSignedData done [20:08:23]CreateOFDProtocolMessage [20:08:23]wFMCommunicate request_size=4 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 11 00 00 [20:08:23]Write to MH i2c: E2 08 00 08 D2 80 11 00 00 00 00 00 00 54 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 17 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 17 00 08 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [20:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:08:23]wFMCommunicate OK [20:08:23]CreateOFDProtocolMessage done [20:08:23]OFDSenderStorePacket 191607 [20:08:23]StoreOFDPacket docnum=191607 [20:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 27 07 01 9B 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 C0 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EC 02 00 35 04 06 00 8B CB 91 57 6D 4E 62 00 32 D4 AB 98 68 D3 [20:08:23]CheckFolder [20:08:23]dirname=/storage/ofd_packets [20:08:23]CheckFolder done [20:08:23]ProducePacketName [20:08:23]name=ofd_packets/00191607 [20:08:23]NVStorageSaveData ofd_packets/00191607 [20:08:23]File name is /storage/ofd_packets/00191607 [20:08:23]Write 301 bytes [20:08:23]NVStorageSaveData done [20:08:23]OFDSenderStorePacket done [20:08:23]KKMCreateOFDPacket done [20:08:23]NVStorageSaveData kkm_last_timestamp [20:08:23]File name is /storage/kkm_last_timestamp [20:08:23]Write 4 bytes [20:08:23]NVStorageSaveData done [20:08:23]ExternCall_PrintAddStr [20:08:23]wPrintStart [20:08:23]Write to MH i2c: 01 00 00 09 D2 DB [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 07 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: 01 07 00 09 D2 00 00 00 00 00 FF 0F F0 [20:08:23]RasterBufferAndPrint [20:08:23]line Счет N : (1)30909 [20:08:23]line ИНН: 02508201610067 [20:08:23]line Контрольно-Кассовый Чек [20:08:23]line ПРОДАЖА [20:08:23]line ТРК (МРК, ГНК) : 21 [20:08:23]line Товар: 2710124130 [20:08:23]line Аи-92-К-5 [20:08:23]line 2.990 * 66.90 [20:08:23]line = 200.03 [20:08:23]line НДС 12% НСП 1% [20:08:23]line > о реализуемом товаре [20:08:23]line ОКРУГЛЕНИЕ: -0.03 [20:08:23]line ИТОГО: 200.00 [20:08:23]line Внесено: 200.00 [20:08:23]line СДАЧА: 0.00 [20:08:23]line НСП 1% : 1.77 [20:08:23]line НДС 12% : 21.24 [20:08:23]line Наличными: 200.00 [20:08:23]line Безнал.: 0.00 [20:08:23]line Место: АЗС № 170 "Партнер Нефть" [20:08:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:08:23]line СНО: Общий режим [20:08:23]line Чек 346 25.10.2024 20:08 [20:08:23]line Смена: 540 ФФД: 1.0 [20:08:23]line ЗНМ: 0300000110 [20:08:23]line РНМ: 0000000000091776 [20:08:23]line Версия ККМ: 001 [20:08:23]line ФМ: 0000000000871754 [20:08:23]line ФД: 191607 [20:08:23]line ФПД: 153706433047886 [20:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T200832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191607&fm=153706433047886&tin=02508201610067®Number=0000000000091776&sum=20000 [20:08:24]OFD Sender: Processing packet 191607 [packets to send 75, broken 74] [20:08:24]ProducePacketName [20:08:24]name=ofd_packets/00191607 [20:08:24]OFD Sender: To server: pG, [20:08:24]CommunicateWithHost lk.salyk.kg:30040 [20:08:24]ConnectInit lk.salyk.kg [20:08:24]written 0, free lines is 4095 [20:08:24]Write to MH i2c: 01 00 00 34 D2 06 [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: 01 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: 01 07 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: 01 07 00 34 D2 00 00 00 00 00 BC 0C D5 [20:08:24]RasterBufferAndPrint [20:08:24]line [20:08:24]line [20:08:24]line [20:08:24]line [20:08:24]line [20:08:24]written 0, free lines is 3264 [20:08:24]MH_Cut [20:08:24]Write to MH i2c: D1 01 00 3B D2 01 DF [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: D1 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: D1 01 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: D1 01 00 3B D2 00 DE [20:08:24]Write to MH i2c: 01 00 00 3C D2 0E [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:25]*** Cut start [20:08:25]*** Partial cut [20:08:25]*** CUTSNS_PIN = 1 [20:08:25]*** CUTSNS_PIN = 0 [20:08:25]*** Brake cut motor [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]*** Stop cut motor [20:08:26]*** Cut end [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 3C D2 00 00 00 00 00 FF 0F 23 [20:08:26]process_action close_receipt done [20:08:26]requested_data is exist [20:08:26]produce_requested_data [20:08:26]requested_item fm.sn is exist - process it [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 11 00 00 [20:08:26]Write to MH i2c: E2 08 00 3D D2 80 11 00 00 00 00 00 00 89 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 3D D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [20:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:08:26]wFMCommunicate OK [20:08:26]requested_item fd.num is exist - process it [20:08:26]SAM_PROTO_GetFieldsCounters [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 13 00 00 [20:08:26]Write to MH i2c: E2 08 00 3E D2 80 13 00 00 00 00 00 00 8C [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 62 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 62 00 3E D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [20:08:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_GetFieldsCounters done [20:08:26]requested_item shift.num is exist - process it [20:08:26]requested_item shift.opened is exist - process it [20:08:26]req_shift_opened [20:08:26]FM_GetShiftState [20:08:26]SAM_PROTO_GetShiftState [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 13 01 00 [20:08:26]Write to MH i2c: E2 08 00 3F D2 80 13 01 00 00 00 00 00 8E [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 3F D2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 51 [20:08:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_GetShiftState done [20:08:26]FM_GetShiftState done [20:08:26]req_shift_opened done [20:08:26]requested_item shift.open_date is exist - process it [20:08:26]req_shift_open_date [20:08:26]req_shift_open_date done [20:08:26]produce_requested_data done [20:08:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191607,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:08:26]process_action_free close_receipt [20:08:26]json_value_free [20:08:26]json_value_free done [20:08:26]process_json_proto returns [20:08:26]Send response to host [20:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191607,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:08:26]free response buf [20:08:26]execute_script done [20:08:26]execute_script returns [20:08:26]free content buf [20:08:26]Sock 9.Close socket [20:08:26]Sock 9.Thread stoped [20:09:16]accept exits with 8 [20:09:16]New connection [20:09:16]New thread 3066961252 created [20:09:16]Thread 3066817892 joined [20:09:16]Waiting for new connection... [20:09:16] Sock 8.Parse request [20:09:16]Sock 8.Check first char [20:09:16]Sock 8.First char is OK [20:09:16]request: POST /json_proto HTTP/1.0 [20:09:16]Method: POST [20:09:16]URL: /json_proto [20:09:16]Method is POST - this is cgi request [20:09:16]url: /json_proto [20:09:16]query_string will be loaded in cgi processing [20:09:16]execute_cgi json_proto POST (null) [20:09:16]execute_cgi path=json_proto method=POST [20:09:16]POST find Content-Length [20:09:16]Host: 172.17.63.131:8080 [20:09:16]Content-Length: 676 [20:09:16]Content-Type: application/json [20:09:16] [20:09:16]POST finish read [20:09:16]Found Content-Length = 676 [20:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:16]execute_script... [20:09: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)30910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:16]POST & json_proto [20:09:16]process_json_proto [20:09:16]json parsed OK: [20:09:16]protocol is kg_v1.0 [20:09:16]action value=close_receipt [20:09:16]process_action close_receipt [20:09:16]cmd_close_receipt [20:09:16]MH_GetDate [20:09:16]Write to MH i2c: F0 00 00 40 D2 01 [20:09:16]Write i2c OK [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 09 00 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 09 00 40 D2 00 F7 FA 1B 67 22 05 6E 64 76 [20:09:16]GetLastDocTimeStamp 1729886912 [20:09:16]current date 1729886967 [20:09:16]FM_GetShiftState [20:09:16]SAM_PROTO_GetShiftState [20:09:16]wFMCommunicate request_size=4 [20:09:16]MH_SAM_APDU [20:09:16]CAPDU: 80 13 01 00 [20:09:16]Write to MH i2c: E2 08 00 41 D2 80 13 01 00 00 00 00 00 90 [20:09:16]Write i2c OK [20:09:16]MH_I2C_Read... [20:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:16]Read from MH i2c: E2 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: E2 0E 00 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: E2 0E 00 41 D2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 53 [20:09:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:09:16]wFMCommunicate OK [20:09:16]SAM_PROTO_GetShiftState done [20:09:16]FM_GetShiftState done [20:09:16]opened in 1729816399 [20:09:16]opened+sec_in_day 1729902799 [20:09:16]quantity*price = 40006 [20:09:16]sum+1 = 40007 [20:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 347 25.10.2024 20:09 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191608 ФПД: 137658381735968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T200927&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191608&fm=137658381735968&tin=02508201610067®Number=0000000000091776&sum=40000 [20:09:18]StoreToDocumentArchive [20:09:18]shift 540 fd 191608 [20:09:18]save to /storage/0540/doc_00191608 [20:09:18]save last doc name /storage/0540/doc_00191608 to /storage/kkm_last_doc_name [20:09:18]save OK [20:09:18]Clear old archive folders... [20:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:18]tlvbuf is 016EB570 [20:09:18]SAM_PROTO_ClearQueue [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 09 00 00 [20:09:18]Write to MH i2c: E2 08 00 4E D2 80 09 00 00 00 00 00 00 92 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 4E D2 00 90 00 94 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_ClearQueue done [20:09:18]KKMCreateOFDPacket [20:09:18]OFDProtocolAddRootSTLVToBuf [20:09:18]FM_MakeSignedData [20:09:18]FM_MakeSignedData [20:09:18]SAM_PROTO_SignData [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 01 02 [20:09:18]Write to MH i2c: E2 08 00 4F D2 80 0D 01 02 00 00 00 00 9A [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 4F D2 00 90 00 95 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=255 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 F7 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EC 02 00 35 04 06 00 7D [20:09:18]Write to MH i2c: E2 02 01 50 D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 F7 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EC 02 00 35 04 06 00 7D 00 00 CD [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 50 D2 00 90 00 96 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=10 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 02 02 05 33 16 F1 98 20 [20:09:18]Write to MH i2c: E2 0D 00 51 D2 80 0D 02 02 05 00 33 16 F1 98 20 00 00 99 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 51 D2 00 90 00 97 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 03 02 [20:09:18]Write to MH i2c: E2 08 00 52 D2 80 0D 03 02 00 00 00 00 9F [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 52 D2 00 70 78 9A 86 5A 7F 18 D2 90 00 6B [20:09:18]RAPDU: 70 78 9A 86 5A 7F 18 D2 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_SignData done [20:09:18]FM_MakeSignedData done [20:09:18]CreateOFDProtocolMessage [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 11 00 00 [20:09:18]Write to MH i2c: E2 08 00 53 D2 80 11 00 00 00 00 00 00 9F [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 53 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [20:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:18]wFMCommunicate OK [20:09:18]CreateOFDProtocolMessage done [20:09:18]OFDSenderStorePacket 191608 [20:09:18]StoreOFDPacket docnum=191608 [20:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 4F 07 01 DD 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 F7 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EC 02 00 35 04 06 00 7D 33 16 F1 98 20 70 78 9A 86 5A 7F 18 D2 [20:09:18]CheckFolder [20:09:18]dirname=/storage/ofd_packets [20:09:18]CheckFolder done [20:09:18]ProducePacketName [20:09:18]name=ofd_packets/00191608 [20:09:18]NVStorageSaveData ofd_packets/00191608 [20:09:18]File name is /storage/ofd_packets/00191608 [20:09:18]Write 301 bytes [20:09:18]NVStorageSaveData done [20:09:18]OFDSenderStorePacket done [20:09:18]KKMCreateOFDPacket done [20:09:18]NVStorageSaveData kkm_last_timestamp [20:09:18]File name is /storage/kkm_last_timestamp [20:09:18]Write 4 bytes [20:09:18]NVStorageSaveData done [20:09:18]ExternCall_PrintAddStr [20:09:18]wPrintStart [20:09:18]Write to MH i2c: 01 00 00 54 D2 26 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 07 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 07 00 54 D2 00 00 00 00 00 FF 0F 3B [20:09:18]RasterBufferAndPrint [20:09:18]line Счет N : (1)30910 [20:09:18]line ИНН: 02508201610067 [20:09:18]line Контрольно-Кассовый Чек [20:09:18]line ПРОДАЖА [20:09:18]line ТРК (МРК, ГНК) : 12 [20:09:18]line Товар: 2710124130 [20:09:18]line Аи-92-К-5 [20:09:18]line 5.980 * 66.90 [20:09:18]line = 400.06 [20:09:18]line НДС 12% НСП 1% [20:09:18]line > о реализуемом товаре [20:09:18]line ОКРУГЛЕНИЕ: -0.06 [20:09:18]line ИТОГО: 400.00 [20:09:18]line Внесено: 400.00 [20:09:18]line СДАЧА: 0.00 [20:09:18]line НСП 1% : 3.54 [20:09:18]line НДС 12% : 42.48 [20:09:18]line Наличными: 400.00 [20:09:18]line Безнал.: 0.00 [20:09:18]line Место: АЗС № 170 "Партнер Нефть" [20:09:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:09:18]line СНО: Общий режим [20:09:18]line Чек 347 25.10.2024 20:09 [20:09:18]line Смена: 540 ФФД: 1.0 [20:09:18]line ЗНМ: 0300000110 [20:09:18]line РНМ: 0000000000091776 [20:09:18]line Версия ККМ: 001 [20:09:18]line ФМ: 0000000000871754 [20:09:18]line ФД: 191608 [20:09:18]line ФПД: 137658381735968 [20:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T200927&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191608&fm=137658381735968&tin=02508201610067®Number=0000000000091776&sum=40000 [20:09:18]written 0, free lines is 4095 [20:09:19]Write to MH i2c: 01 00 00 7F D2 51 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 7F D2 00 00 00 00 00 B6 0C 1A [20:09:19]RasterBufferAndPrint [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]written 0, free lines is 3262 [20:09:19]MH_Cut [20:09:19]Write to MH i2c: D1 01 00 86 D2 01 2A [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 01 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 01 00 86 D2 00 29 [20:09:19]Write to MH i2c: 01 00 00 87 D2 59 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:20]*** Cut start [20:09:20]*** Partial cut [20:09:20]*** CUTSNS_PIN = 1 [20:09:20]*** CUTSNS_PIN = 0 [20:09:20]*** Brake cut motor [20:09:20]Read from MH i2c: 01 [20:09:20]MH_I2C_Read... [20:09:20]*** Stop cut motor [20:09:20]*** Cut end [20:09:20]Read from MH i2c: 01 07 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: 01 07 00 87 D2 00 00 00 00 00 FF 0F 6E [20:09:20]process_action close_receipt done [20:09:20]requested_data is exist [20:09:20]produce_requested_data [20:09:20]requested_item fm.sn is exist - process it [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 11 00 00 [20:09:20]Write to MH i2c: E2 08 00 88 D2 80 11 00 00 00 00 00 00 D4 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 17 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 17 00 88 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [20:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:20]wFMCommunicate OK [20:09:20]requested_item fd.num is exist - process it [20:09:20]SAM_PROTO_GetFieldsCounters [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 13 00 00 [20:09:20]Write to MH i2c: E2 08 00 89 D2 80 13 00 00 00 00 00 00 D7 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 62 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 62 00 89 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [20:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_GetFieldsCounters done [20:09:21]requested_item shift.num is exist - process it [20:09:21]requested_item shift.opened is exist - process it [20:09:21]req_shift_opened [20:09:21]FM_GetShiftState [20:09:21]SAM_PROTO_GetShiftState [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 13 01 00 [20:09:21]Write to MH i2c: E2 08 00 8A D2 80 13 01 00 00 00 00 00 D9 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 8A D2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9C [20:09:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_GetShiftState done [20:09:21]FM_GetShiftState done [20:09:21]req_shift_opened done [20:09:21]requested_item shift.open_date is exist - process it [20:09:21]req_shift_open_date [20:09:21]req_shift_open_date done [20:09:21]produce_requested_data done [20:09:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191608,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:09:21]process_action_free close_receipt [20:09:21]json_value_free [20:09:21]json_value_free done [20:09:21]process_json_proto returns [20:09:21]Send response to host [20:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191608,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:09:21]free response buf [20:09:21]execute_script done [20:09:21]execute_script returns [20:09:21]free content buf [20:09:21]Sock 8.Close socket [20:09:21]Sock 8.Thread stoped [20:10:35]ConnectInit Can't connect to host [20:10:35]CommunicateWithHost connect error [20:10:35]CommunicateWithHost err = -1 [20:10:35]OFD Sender: Server communicate error [20:10:36]OFD Sender: Processing packet 191607 [packets to send 76, broken 74] [20:10:36]ProducePacketName [20:10:36]name=ofd_packets/00191607 [20:10:36]OFD Sender: To server: pG, [20:10:36]CommunicateWithHost lk.salyk.kg:30040 [20:10:36]ConnectInit lk.salyk.kg [20:10:36]Connected sock=10 [20:10:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 27 07 01 9B 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 C0 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EC 02 00 35 04 06 00 8B CB 91 57 6D 4E 62 00 32 D4 AB 98 68 D3 [20:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 32 47 00 75 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EC 02 00 F4 03 04 00 12 A0 1B 67 B6 04 01 00 00 A1 DE DF 82 C0 4F 22 30 [20:10:36]CommunicateWithHost err = 0 [20:10:36]CheckOFDResponse [20:10:36]1017 (14) - 77093643461234 [20:10:36]1041 (16) - 0000000000871754 [20:10:36]1040 (4) - 191607 [20:10:36]1012 (4) - 25.10.2024 13:41 [20:10:36]1206 (1) - 0 [20:10:36]OFD Sender: Remove packet 191607 [20:10:36]ProducePacketName [20:10:36]name=ofd_packets/00191607 [20:10:36]NVStorageDeleteData [20:10:36]OFD Sender: Processing packet 191608 [packets to send 75, broken 74] [20:10:36]ProducePacketName [20:10:36]name=ofd_packets/00191608 [20:10:36]OFD Sender: To server: pG, [20:10:36]CommunicateWithHost lk.salyk.kg:30040 [20:10:36]ConnectInit lk.salyk.kg [20:10:37]Connected sock=8 [20:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 4F 07 01 DD 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 F7 FA 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EC 02 00 35 04 06 00 7D 33 16 F1 98 20 70 78 9A 86 5A 7F 18 D2 [20:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE 62 47 00 E0 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EC 02 00 F4 03 04 00 13 A0 1B 67 B6 04 01 00 00 A7 22 A0 29 ED 85 0A AC [20:10:37]CommunicateWithHost err = 0 [20:10:37]CheckOFDResponse [20:10:37]1017 (14) - 77093643461234 [20:10:37]1041 (16) - 0000000000871754 [20:10:37]1040 (4) - 191608 [20:10:37]1012 (4) - 25.10.2024 13:41 [20:10:37]1206 (1) - 0 [20:10:37]OFD Sender: Remove packet 191608 [20:10:37]ProducePacketName [20:10:37]name=ofd_packets/00191608 [20:10:37]NVStorageDeleteData [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:46]accept exits with 9 [20:10:46]New connection [20:10:46]New thread 3066817892 created [20:10:46]Thread 3066961252 joined [20:10:46]Waiting for new connection... [20:10:46] Sock 9.Parse request [20:10:46]Sock 9.Check first char [20:10:46]Sock 9.First char is OK [20:10:46]request: POST /json_proto HTTP/1.0 [20:10:46]Method: POST [20:10:46]URL: /json_proto [20:10:46]Method is POST - this is cgi request [20:10:46]url: /json_proto [20:10:46]query_string will be loaded in cgi processing [20:10:46]execute_cgi json_proto POST (null) [20:10:46]execute_cgi path=json_proto method=POST [20:10:46]POST find Content-Length [20:10:46]Host: 172.17.63.131:8080 [20:10:46]Content-Length: 676 [20:10:46]Content-Type: application/json [20:10:46] [20:10:46]POST finish read [20:10:46]Found Content-Length = 676 [20:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]execute_script... [20:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]POST & json_proto [20:10:46]process_json_proto [20:10:46]json parsed OK: [20:10:46]protocol is kg_v1.0 [20:10:46]action value=close_receipt [20:10:46]process_action close_receipt [20:10:46]cmd_close_receipt [20:10:46]MH_GetDate [20:10:46]Write to MH i2c: F0 00 00 8B D2 4C [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 8B D2 00 51 FB 1B 67 22 05 6E 64 1C [20:10:46]GetLastDocTimeStamp 1729886967 [20:10:46]current date 1729887057 [20:10:46]FM_GetShiftState [20:10:46]SAM_PROTO_GetShiftState [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 01 00 [20:10:46]Write to MH i2c: E2 08 00 8C D2 80 13 01 00 00 00 00 00 DB [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 8C D2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 9E [20:10:46]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:10:46]wFMCommunicate OK [20:10:46]SAM_PROTO_GetShiftState done [20:10:46]FM_GetShiftState done [20:10:46]opened in 1729816399 [20:10:46]opened+sec_in_day 1729902799 [20:10:46]quantity*price = 20003 [20:10:46]sum+1 = 20004 [20:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 348 25.10.2024 20:10 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191609 ФПД: 35156854814638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191609&fm=35156854814638&tin=02508201610067®Number=0000000000091776&sum=20000 [20:10:47]StoreToDocumentArchive [20:10:47]shift 540 fd 191609 [20:10:47]save to /storage/0540/doc_00191609 [20:10:47]save last doc name /storage/0540/doc_00191609 to /storage/kkm_last_doc_name [20:10:47]save OK [20:10:47]Clear old archive folders... [20:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:47]tlvbuf is 016EB5A0 [20:10:47]SAM_PROTO_ClearQueue [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 09 00 00 [20:10:47]Write to MH i2c: E2 08 00 99 D2 80 09 00 00 00 00 00 00 DD [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:47]OFD Sender: No OFD packet to send [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 99 D2 00 90 00 DF [20:10:47]RAPDU: 90 00 [20:10:47]wFMCommunicate OK [20:10:47]SAM_PROTO_ClearQueue done [20:10:47]KKMCreateOFDPacket [20:10:47]OFDProtocolAddRootSTLVToBuf [20:10:47]FM_MakeSignedData [20:10:47]FM_MakeSignedData [20:10:47]SAM_PROTO_SignData [20:10:47]wFMCommunicate request_size=4 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 0D 01 02 [20:10:47]Write to MH i2c: E2 08 00 9A D2 80 0D 01 02 00 00 00 00 E5 [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:47]Read from MH i2c: E2 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 [20:10:47]MH_I2C_Read... [20:10:47]Read from MH i2c: E2 03 00 9A D2 00 90 00 E0 [20:10:47]RAPDU: 90 00 [20:10:47]wFMCommunicate OK [20:10:47]wFMCommunicate request_size=255 [20:10:47]MH_SAM_APDU [20:10:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 51 FB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EC 02 00 35 04 06 00 1F [20:10:47]Write to MH i2c: E2 02 01 9B D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 51 FB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EC 02 00 35 04 06 00 1F 00 00 0A [20:10:47]Write i2c OK [20:10:47]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 9B D2 00 90 00 E1 [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=10 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 02 02 05 F9 97 D7 B7 AE [20:10:48]Write to MH i2c: E2 0D 00 9C D2 80 0D 02 02 05 00 F9 97 D7 B7 AE 00 00 BE [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 9C D2 00 90 00 E2 [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 03 02 [20:10:48]Write to MH i2c: E2 08 00 9D D2 80 0D 03 02 00 00 00 00 EA [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 9D D2 00 39 22 33 74 02 B9 30 0D 90 00 E5 [20:10:48]RAPDU: 39 22 33 74 02 B9 30 0D 90 00 [20:10:48]wFMCommunicate OK [20:10:48]SAM_PROTO_SignData done [20:10:48]FM_MakeSignedData done [20:10:48]CreateOFDProtocolMessage [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 11 00 00 [20:10:48]Write to MH i2c: E2 08 00 9E D2 80 11 00 00 00 00 00 00 EA [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 9E D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [20:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:10:48]wFMCommunicate OK [20:10:48]CreateOFDProtocolMessage done [20:10:48]OFDSenderStorePacket 191609 [20:10:48]StoreOFDPacket docnum=191609 [20:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4A 93 07 01 77 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 51 FB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EC 02 00 35 04 06 00 1F F9 97 D7 B7 AE 39 22 33 74 02 B9 30 0D [20:10:48]CheckFolder [20:10:48]dirname=/storage/ofd_packets [20:10:48]CheckFolder done [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00191609 [20:10:48]NVStorageSaveData ofd_packets/00191609 [20:10:48]File name is /storage/ofd_packets/00191609 [20:10:48]Write 301 bytes [20:10:48]NVStorageSaveData done [20:10:48]OFDSenderStorePacket done [20:10:48]KKMCreateOFDPacket done [20:10:48]NVStorageSaveData kkm_last_timestamp [20:10:48]File name is /storage/kkm_last_timestamp [20:10:48]Write 4 bytes [20:10:48]NVStorageSaveData done [20:10:48]ExternCall_PrintAddStr [20:10:48]wPrintStart [20:10:48]Write to MH i2c: 01 00 00 9F D2 71 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 9F D2 00 00 00 00 00 FF 0F 86 [20:10:48]RasterBufferAndPrint [20:10:48]line Счет N : (1)30911 [20:10:48]line ИНН: 02508201610067 [20:10:48]line Контрольно-Кассовый Чек [20:10:48]line ПРОДАЖА [20:10:48]line ТРК (МРК, ГНК) : 21 [20:10:48]line Товар: 2710124130 [20:10:48]line Аи-92-К-5 [20:10:48]line 2.990 * 66.90 [20:10:48]line = 200.03 [20:10:48]line НДС 12% НСП 1% [20:10:48]line > о реализуемом товаре [20:10:48]line ОКРУГЛЕНИЕ: -0.03 [20:10:48]line ИТОГО: 200.00 [20:10:48]line Внесено: 200.00 [20:10:48]line СДАЧА: 0.00 [20:10:48]line НСП 1% : 1.77 [20:10:48]line НДС 12% : 21.24 [20:10:48]line Наличными: 200.00 [20:10:48]line Безнал.: 0.00 [20:10:48]line Место: АЗС № 170 "Партнер Нефть" [20:10:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:10:48]line СНО: Общий режим [20:10:48]line Чек 348 25.10.2024 20:10 [20:10:48]line Смена: 540 ФФД: 1.0 [20:10:48]line ЗНМ: 0300000110 [20:10:48]line РНМ: 0000000000091776 [20:10:48]line Версия ККМ: 001 [20:10:48]line ФМ: 0000000000871754 [20:10:48]line ФД: 191609 [20:10:48]line ФПД: 35156854814638 [20:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191609&fm=35156854814638&tin=02508201610067®Number=0000000000091776&sum=20000 [20:10:48]OFD Sender: Processing packet 191609 [packets to send 75, broken 74] [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00191609 [20:10:48]OFD Sender: To server: pG, [20:10:48]CommunicateWithHost lk.salyk.kg:30040 [20:10:48]ConnectInit lk.salyk.kg [20:10:48]written 0, free lines is 4095 [20:10:48]Connected sock=8 [20:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4A 93 07 01 77 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 51 FB 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EC 02 00 35 04 06 00 1F F9 97 D7 B7 AE 39 22 33 74 02 B9 30 0D [20:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 CE 47 00 2D 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 31 37 35 34 10 04 04 00 79 EC 02 00 F4 03 04 00 1E A0 1B 67 B6 04 01 00 00 99 AD 2D F7 5F 3C 8C 7F [20:10:48]CommunicateWithHost err = 0 [20:10:48]CheckOFDResponse [20:10:48]1017 (14) - 77093643461234 [20:10:48]1041 (16) - 0000000000871754 [20:10:48]1040 (4) - 191609 [20:10:48]1012 (4) - 25.10.2024 13:41 [20:10:48]1206 (1) - 0 [20:10:48]OFD Sender: Remove packet 191609 [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00191609 [20:10:48]NVStorageDeleteData [20:10:49]Write to MH i2c: 01 00 00 CA D2 9C [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 07 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 07 00 CA D2 00 00 00 00 00 CD 0C 7C [20:10:49]RasterBufferAndPrint [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]written 0, free lines is 3286 [20:10:49]MH_Cut [20:10:49]Write to MH i2c: D1 01 00 D1 D2 01 75 [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 01 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 01 00 D1 D2 00 74 [20:10:49]Write to MH i2c: 01 00 00 D2 D2 A4 [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]int [20:10:49]*** FLAG_PRN_PAP2 set [20:10:49]*** Cut start [20:10:49]*** Partial cut [20:10:49]*** CUTSNS_PIN = 1 [20:10:49]*** CUTSNS_PIN = 0 [20:10:49]OFD Sender: No OFD packet to send [20:10:49]*** Brake cut motor [20:10:50]Read from MH i2c: 01 [20:10:50]*** Stop cut motor [20:10:50]MH_I2C_Read... [20:10:50]*** Cut end [20:10:50]Read from MH i2c: 01 07 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 07 00 D2 D2 00 02 00 00 00 FF 0F BB [20:10:50]process_action close_receipt done [20:10:50]requested_data is exist [20:10:50]produce_requested_data [20:10:50]requested_item fm.sn is exist - process it [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 11 00 00 [20:10:50]Write to MH i2c: E2 08 00 D3 D2 80 11 00 00 00 00 00 00 1F [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 17 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 17 00 D3 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [20:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:10:50]wFMCommunicate OK [20:10:50]requested_item fd.num is exist - process it [20:10:50]SAM_PROTO_GetFieldsCounters [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 13 00 00 [20:10:50]Write to MH i2c: E2 08 00 D4 D2 80 13 00 00 00 00 00 00 22 [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 62 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 62 00 D4 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [20:10:50]Write to MH i2c: RAPDU: 01 5D 00 00 00 B9 D5 04 D2 01 A7 00 [20:10:50]01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 Write i2c OK [20:10:50]38 MH_I2C_Read... [20:10:50]37 Read from MH i2c: 31 01 37 [20:10:50]35 MH_I2C_Read... [20:10:50]34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:50]wFMCommunicate OK [20:10:50]SAM_PROTO_GetFieldsCounters done [20:10:50]requested_item shift.num is exist - process it [20:10:50]requested_item shift.opened is exist - process it [20:10:50]req_shift_opened [20:10:50]FM_GetShiftState [20:10:50]SAM_PROTO_GetShiftState [20:10:50]wFMCommunicate request_size=4 [20:10:50]MH_SAM_APDU [20:10:50]CAPDU: 80 13 01 00 [20:10:50]Read from MH i2c: 01 07 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: 01 07 00 D5 D2 00 02 00 00 00 FF 0F BE [20:10:50]state=0 [20:10:50]Write to MH i2c: Cover opened [20:10:50]E2 08 00 D6 D2 80 13 01 00 00 00 00 00 25 [20:10:50]Write i2c OK [20:10:50]MH_I2C_Read... [20:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:50]Read from MH i2c: E2 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 0E 00 [20:10:50]MH_I2C_Read... [20:10:50]Read from MH i2c: E2 0E 00 D6 D2 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E8 [20:10:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:10:50]wFMCommunicate OK [20:10:50]SAM_PROTO_GetShiftState done [20:10:50]FM_GetShiftState done [20:10:50]req_shift_opened done [20:10:50]requested_item shift.open_date is exist - process it [20:10:50]req_shift_open_date [20:10:50]req_shift_open_date done [20:10:50]produce_requested_data done [20:10:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191609,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:10:50]process_action_free close_receipt [20:10:50]json_value_free [20:10:50]json_value_free done [20:10:50]process_json_proto returns [20:10:50]Send response to host [20:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191609,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:10:50]free response buf [20:10:50]execute_script done [20:10:50]execute_script returns [20:10:50]free content buf [20:10:50]Sock 9.Close socket [20:10:50]Sock 9.Thread stoped [20:10:54]OFD Sender: No OFD packet to send [20:10:55]Write to MH i2c: 01 00 00 D7 D2 A9 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 D7 D2 00 02 00 00 00 FF 0F C0 [20:10:55]state=3 [20:10:55]Cover opened [20:10:59]OFD Sender: No OFD packet to send [20:11:00]Write to MH i2c: 01 00 00 D8 D2 AA [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 D8 D2 00 02 00 00 00 FF 0F C1 [20:11:00]state=3 [20:11:00]Cover opened [20:11:04]OFD Sender: No OFD packet to send [20:11:05]Write to MH i2c: 01 00 00 D9 D2 AB [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 D9 D2 00 02 00 00 00 FF 0F C2 [20:11:05]state=3 [20:11:05]Cover opened [20:11:09]OFD Sender: No OFD packet to send [20:11:10]Write to MH i2c: 01 00 00 DA D2 AC [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 DA D2 00 02 00 00 00 FF 0F C3 [20:11:10]state=3 [20:11:10]Cover opened [20:11:14]OFD Sender: No OFD packet to send [20:11:15]Write to MH i2c: 01 00 00 DB D2 AD [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 DB D2 00 02 00 00 00 FF 0F C4 [20:11:15]state=3 [20:11:15]Cover opened [20:11:19]OFD Sender: No OFD packet to send [20:11:20]Write to MH i2c: 01 00 00 DC D2 AE [20:11:20]Write i2c OK [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 07 00 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 07 00 DC D2 00 02 00 00 00 FF 0F C5 [20:11:20]state=3 [20:11:20]Cover opened [20:11:24]OFD Sender: No OFD packet to send [20:11:25]Write to MH i2c: 01 00 00 DD D2 AF [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 07 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 07 00 DD D2 00 02 00 00 00 FF 0F C6 [20:11:25]state=3 [20:11:25]Cover opened [20:11:29]OFD Sender: No OFD packet to send [20:11:30]Write to MH i2c: 01 00 00 DE D2 B0 [20:11:30]Write i2c OK [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 07 00 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: 01 07 00 DE D2 00 02 00 00 00 FF 0F C7 [20:11:30]state=3 [20:11:30]Cover opened [20:11:34]OFD Sender: No OFD packet to send [20:11:35]Write to MH i2c: 01 00 00 DF D2 B1 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 DF D2 00 02 00 00 00 FF 0F C8 [20:11:35]state=3 [20:11:35]Cover opened [20:11:39]OFD Sender: No OFD packet to send [20:11:40]Write to MH i2c: 01 00 00 E0 D2 B2 [20:11:40]Write i2c OK [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 07 00 [20:11:40]MH_I2C_Read... [20:11:40]Read from MH i2c: 01 07 00 E0 D2 00 02 00 00 00 FF 0F C9 [20:11:40]state=3 [20:11:40]Cover opened [20:11:44]OFD Sender: No OFD packet to send [20:11:45]Write to MH i2c: 01 00 00 E1 D2 B3 [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 E1 D2 00 02 00 00 00 FF 0F CA [20:11:45]state=3 [20:11:45]Cover opened [20:11:49]OFD Sender: No OFD packet to send [20:11:50]Write to MH i2c: 01 00 00 E2 D2 B4 [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 E2 D2 00 02 00 00 00 FF 0F CB [20:11:50]state=3 [20:11:50]Cover opened [20:11:54]OFD Sender: No OFD packet to send [20:11:55]Write to MH i2c: 01 00 00 E3 D2 B5 [20:11:55]Write i2c OK [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 07 00 [20:11:55]MH_I2C_Read... [20:11:55]Read from MH i2c: 01 07 00 E3 D2 00 02 00 00 00 FF 0F CC [20:11:55]state=3 [20:11:55]Cover opened [20:11:59]OFD Sender: No OFD packet to send [20:12:00]Write to MH i2c: 01 00 00 E4 D2 B6 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 E4 D2 00 02 00 00 00 FF 0F CD [20:12:00]state=3 [20:12:00]Cover opened [20:12:04]OFD Sender: No OFD packet to send [20:12:05]Write to MH i2c: 01 00 00 E5 D2 B7 [20:12:05]Write i2c OK [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 07 00 [20:12:05]MH_I2C_Read... [20:12:05]Read from MH i2c: 01 07 00 E5 D2 00 02 00 00 00 FF 0F CE [20:12:05]state=3 [20:12:05]Cover opened [20:12:09]OFD Sender: No OFD packet to send [20:12:10]Write to MH i2c: 01 00 00 E6 D2 B8 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 E6 D2 00 02 00 00 00 FF 0F CF [20:12:10]state=3 [20:12:10]Cover opened [20:12:14]OFD Sender: No OFD packet to send [20:12:15]Write to MH i2c: 01 00 00 E7 D2 B9 [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 07 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: 01 07 00 E7 D2 00 02 00 00 00 FF 0F D0 [20:12:15]state=3 [20:12:15]Cover opened [20:12:19]OFD Sender: No OFD packet to send [20:12:20]Write to MH i2c: 01 00 00 E8 D2 BA [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 07 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: 01 07 00 E8 D2 00 02 00 00 00 FF 0F D1 [20:12:20]state=3 [20:12:20]Cover opened [20:12:24]OFD Sender: No OFD packet to send [20:12:25]Write to MH i2c: 01 00 00 E9 D2 BB [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 E9 D2 00 02 00 00 00 FF 0F D2 [20:12:25]state=3 [20:12:25]Cover opened [20:12:29]OFD Sender: No OFD packet to send [20:12:30]Write to MH i2c: 01 00 00 EA D2 BC [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 EA D2 00 02 00 00 00 FF 0F D3 [20:12:30]state=3 [20:12:30]Cover opened [20:12:34]OFD Sender: No OFD packet to send [20:12:35]Write to MH i2c: 01 00 00 EB D2 BD [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 EB D2 00 02 00 00 00 FF 0F D4 [20:12:35]state=3 [20:12:35]Cover opened [20:12:39]OFD Sender: No OFD packet to send [20:12:40]Write to MH i2c: 01 00 00 EC D2 BE [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 EC D2 00 02 00 00 00 FF 0F D5 [20:12:40]state=3 [20:12:40]Cover opened [20:12:44]OFD Sender: No OFD packet to send [20:12:45]Write to MH i2c: 01 00 00 ED D2 BF [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 ED D2 00 02 00 00 00 FF 0F D6 [20:12:45]state=3 [20:12:45]Cover opened [20:12:49]OFD Sender: No OFD packet to send [20:12:50]Write to MH i2c: 01 00 00 EE D2 C0 [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 EE D2 00 02 00 00 00 FF 0F D7 [20:12:50]state=3 [20:12:50]Cover opened [20:12:54]OFD Sender: No OFD packet to send [20:12:55]Write to MH i2c: 01 00 00 EF D2 C1 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 07 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: 01 07 00 EF D2 00 02 00 00 00 FF 0F D8 [20:12:55]state=3 [20:12:55]Cover opened [20:12:59]OFD Sender: No OFD packet to send [20:13:00]Write to MH i2c: 01 00 00 F0 D2 C2 [20:13:00]Write i2c OK [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 07 00 [20:13:00]MH_I2C_Read... [20:13:00]Read from MH i2c: 01 07 00 F0 D2 00 02 00 00 00 FF 0F D9 [20:13:00]state=3 [20:13:00]Cover opened [20:13:04]OFD Sender: No OFD packet to send [20:13:05]Write to MH i2c: 01 00 00 F1 D2 C3 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 F1 D2 00 02 00 00 00 FF 0F DA [20:13:05]state=3 [20:13:05]Cover opened [20:13:09]OFD Sender: No OFD packet to send [20:13:10]Write to MH i2c: 01 00 00 F2 D2 C4 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 F2 D2 00 02 00 00 00 FF 0F DB [20:13:10]state=3 [20:13:10]Cover opened [20:13:14]OFD Sender: No OFD packet to send [20:13:15]Write to MH i2c: 01 00 00 F3 D2 C5 [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 07 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 07 00 F3 D2 00 02 00 00 00 FF 0F DC [20:13:15]state=3 [20:13:15]Cover opened [20:13:19]OFD Sender: No OFD packet to send [20:13:20]Write to MH i2c: 01 00 00 F4 D2 C6 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 F4 D2 00 02 00 00 00 FF 0F DD [20:13:20]state=3 [20:13:20]Cover opened [20:13:24]OFD Sender: No OFD packet to send [20:13:25]Write to MH i2c: 01 00 00 F5 D2 C7 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 F5 D2 00 02 00 00 00 FF 0F DE [20:13:25]state=3 [20:13:25]Cover opened [20:13:29]OFD Sender: No OFD packet to send [20:13:30]Write to MH i2c: 01 00 00 F6 D2 C8 [20:13:30]Write i2c OK [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 07 00 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: 01 07 00 F6 D2 00 02 00 00 00 FF 0F DF [20:13:30]state=3 [20:13:30]Cover opened [20:13:34]OFD Sender: No OFD packet to send [20:13:35]Write to MH i2c: 01 00 00 F7 D2 C9 [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 F7 D2 00 02 00 00 00 FF 0F E0 [20:13:35]state=3 [20:13:35]Cover opened [20:13:39]OFD Sender: No OFD packet to send [20:13:40]Write to MH i2c: 01 00 00 F8 D2 CA [20:13:40]Write i2c OK [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 07 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 07 00 F8 D2 00 02 00 00 00 FF 0F E1 [20:13:40]state=3 [20:13:40]Cover opened [20:13:44]OFD Sender: No OFD packet to send [20:13:45]Write to MH i2c: 01 00 00 F9 D2 CB [20:13:45]Write i2c OK [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 [20:13:45]MH_I2C_Read... [20:13:45]Read from MH i2c: 01 07 00 F9 D2 00 02 00 00 00 FF 0F E2 [20:13:45]state=3 [20:13:45]Cover opened [20:13:49]OFD Sender: No OFD packet to send [20:13:50]Write to MH i2c: 01 00 00 FA D2 CC [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 FA D2 00 02 00 00 00 FF 0F E3 [20:13:50]state=3 [20:13:50]Cover opened [20:13:54]OFD Sender: No OFD packet to send [20:13:55]Write to MH i2c: 01 00 00 FB D2 CD [20:13:55]Write i2c OK [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 07 00 [20:13:55]MH_I2C_Read... [20:13:55]Read from MH i2c: 01 07 00 FB D2 00 02 00 00 00 FF 0F E4 [20:13:55]state=3 [20:13:55]Cover opened [20:13:59]OFD Sender: No OFD packet to send [20:14:00]Write to MH i2c: 01 00 00 FC D2 CE [20:14:00]Write i2c OK [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 07 00 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: 01 07 00 FC D2 00 02 00 00 00 FF 0F E5 [20:14:00]state=3 [20:14:00]Cover opened [20:14:04]OFD Sender: No OFD packet to send [20:14:05]Write to MH i2c: 01 00 00 FD D2 CF [20:14:05]Write i2c OK [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 07 00 [20:14:05]MH_I2C_Read... [20:14:05]Read from MH i2c: 01 07 00 FD D2 00 02 00 00 00 FF 0F E6 [20:14:05]state=3 [20:14:05]Cover opened [20:14:09]OFD Sender: No OFD packet to send [20:14:10]Write to MH i2c: 01 00 00 FE D2 D0 [20:14:10]Write i2c OK [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 07 00 [20:14:10]MH_I2C_Read... [20:14:10]Read from MH i2c: 01 07 00 FE D2 00 02 00 00 00 FF 0F E7 [20:14:10]state=3 [20:14:10]Cover opened [20:14:14]OFD Sender: No OFD packet to send [20:14:15]Write to MH i2c: 01 00 00 FF D2 D1 [20:14:15]Write i2c OK [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 07 00 [20:14:15]MH_I2C_Read... [20:14:15]Read from MH i2c: 01 07 00 FF D2 00 02 00 00 00 FF 0F E8 [20:14:15]state=3 [20:14:15]Cover opened [20:14:19]OFD Sender: No OFD packet to send [20:14:20]Write to MH i2c: 01 00 00 00 D3 D3 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 00 D3 00 02 00 00 00 FF 0F EA [20:14:20]state=3 [20:14:20]Cover opened [20:14:24]OFD Sender: No OFD packet to send [20:14:25]Write to MH i2c: 01 00 00 01 D3 D4 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: 01 07 00 01 D3 00 02 00 00 00 FF 0F EB [20:14:25]state=3 [20:14:25]Cover opened [20:14:29]OFD Sender: No OFD packet to send [20:14:30]Write to MH i2c: 01 00 00 02 D3 D5 [20:14:30]Write i2c OK [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: 01 07 00 02 D3 00 02 00 00 00 FF 0F EC [20:14:30]state=3 [20:14:30]Cover opened [20:14:34]OFD Sender: No OFD packet to send [20:14:35]Write to MH i2c: 01 00 00 03 D3 D6 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 03 D3 00 02 00 00 00 FF 0F ED [20:14:35]state=3 [20:14:35]Cover opened [20:14:39]OFD Sender: No OFD packet to send [20:14:40]Write to MH i2c: 01 00 00 04 D3 D7 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 04 D3 00 02 00 00 00 FF 0F EE [20:14:40]state=3 [20:14:40]Cover opened [20:14:44]OFD Sender: No OFD packet to send [20:14:45]Write to MH i2c: 01 00 00 05 D3 D8 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 05 D3 00 02 00 00 00 FF 0F EF [20:14:45]state=3 [20:14:45]Cover opened [20:14:49]OFD Sender: No OFD packet to send [20:14:50]Write to MH i2c: 01 00 00 06 D3 D9 [20:14:50]Write i2c OK [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 06 D3 00 02 00 00 00 FF 0F F0 [20:14:50]state=3 [20:14:50]Cover opened [20:14:54]OFD Sender: No OFD packet to send [20:14:55]Write to MH i2c: 01 00 00 07 D3 DA [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 07 00 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: 01 07 00 07 D3 00 02 00 00 00 FF 0F F1 [20:14:55]state=3 [20:14:55]Cover opened [20:14:59]OFD Sender: No OFD packet to send [20:15:00]Write to MH i2c: 01 00 00 08 D3 DB [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 08 D3 00 02 00 00 00 FF 0F F2 [20:15:00]state=3 [20:15:00]Cover opened [20:15:04]OFD Sender: No OFD packet to send [20:15:05]Write to MH i2c: 01 00 00 09 D3 DC [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 09 D3 00 02 00 00 00 FF 0F F3 [20:15:05]state=3 [20:15:05]Cover opened [20:15:09]OFD Sender: No OFD packet to send [20:15:10]Write to MH i2c: 01 00 00 0A D3 DD [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 07 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 07 00 0A D3 00 02 00 00 00 FF 0F F4 [20:15:10]state=3 [20:15:10]Cover opened [20:15:14]OFD Sender: No OFD packet to send [20:15:15]accept exits with 10 [20:15:15]New connection [20:15:15]New thread 3066961252 created [20:15:15]Thread 3066817892 joined [20:15:15]Waiting for new connection... [20:15:15] Sock 10.Parse request [20:15:15]Sock 10.Check first char [20:15:15]Sock 10.First char is OK [20:15:15]request: POST /json_proto HTTP/1.0 [20:15:15]Method: POST [20:15:15]URL: /json_proto [20:15:15]Method is POST - this is cgi request [20:15:15]url: /json_proto [20:15:15]query_string will be loaded in cgi processing [20:15:15]execute_cgi json_proto POST (null) [20:15:15]execute_cgi path=json_proto method=POST [20:15:15]POST find Content-Length [20:15:15]Host: 172.17.63.131:8080 [20:15:15]Content-Length: 676 [20:15:15]Content-Type: application/json [20:15:15] [20:15:15]POST finish read [20:15:15]Found Content-Length = 676 [20:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:15]execute_script... [20:15: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)30912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:15]POST & json_proto [20:15:15]process_json_proto [20:15:15]json parsed OK: [20:15:15]protocol is kg_v1.0 [20:15:15]action value=close_receipt [20:15:15]process_action close_receipt [20:15:15]cmd_close_receipt [20:15:15]MH_GetDate [20:15:15]Write to MH i2c: F0 00 00 0B D3 CD [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 09 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 09 00 0B D3 00 5D FC 1B 67 22 05 6E 64 AA [20:15:15]GetLastDocTimeStamp 1729887057 [20:15:15]current date 1729887325 [20:15:15]FM_GetShiftState [20:15:15]SAM_PROTO_GetShiftState [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 01 00 [20:15:15]Write to MH i2c: E2 08 00 0C D3 80 13 01 00 00 00 00 00 5C [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 0C D3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1F [20:15:15]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetShiftState done [20:15:15]FM_GetShiftState done [20:15:15]opened in 1729816399 [20:15:15]opened+sec_in_day 1729902799 [20:15:15]quantity*price = 40006 [20:15:15]sum+1 = 40007 [20:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 349 25.10.2024 20:15 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191610 ФПД: 20550417241253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191610&fm=20550417241253&tin=02508201610067®Number=0000000000091776&sum=40000 [20:15:16]StoreToDocumentArchive [20:15:16]shift 540 fd 191610 [20:15:16]save to /storage/0540/doc_00191610 [20:15:16]save last doc name /storage/0540/doc_00191610 to /storage/kkm_last_doc_name [20:15:16]save OK [20:15:16]Clear old archive folders... [20:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:16]tlvbuf is 016AFD30 [20:15:16]SAM_PROTO_ClearQueue [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 09 00 00 [20:15:16]Write to MH i2c: E2 08 00 1A D3 80 09 00 00 00 00 00 00 5F [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 1A D3 00 90 00 61 [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_ClearQueue done [20:15:16]KKMCreateOFDPacket [20:15:16]OFDProtocolAddRootSTLVToBuf [20:15:16]FM_MakeSignedData [20:15:16]FM_MakeSignedData [20:15:16]SAM_PROTO_SignData [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 01 02 [20:15:16]Write to MH i2c: E2 08 00 1B D3 80 0D 01 02 00 00 00 00 67 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 1B D3 00 90 00 62 [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=255 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 5D FC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EC 02 00 35 04 06 00 12 [20:15:16]Write to MH i2c: E2 02 01 1C D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 5D FC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EC 02 00 35 04 06 00 12 00 00 9B [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 1C D3 00 90 00 63 [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=10 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 02 02 05 B0 C4 51 D4 A5 [20:15:16]Write to MH i2c: E2 0D 00 1D D3 80 0D 02 02 05 00 B0 C4 51 D4 A5 00 00 B2 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 1D D3 00 90 00 64 [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 03 02 [20:15:16]Write to MH i2c: E2 08 00 1E D3 80 0D 03 02 00 00 00 00 6C [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0B 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0B 00 1E D3 00 A6 55 5A F7 2C 2E 8F D4 90 00 76 [20:15:16]RAPDU: A6 55 5A F7 2C 2E 8F D4 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_SignData done [20:15:16]FM_MakeSignedData done [20:15:16]CreateOFDProtocolMessage [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 11 00 00 [20:15:16]Write to MH i2c: E2 08 00 1F D3 80 11 00 00 00 00 00 00 6C [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 17 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 17 00 1F D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [20:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:15:16]wFMCommunicate OK [20:15:16]CreateOFDProtocolMessage done [20:15:16]OFDSenderStorePacket 191610 [20:15:16]StoreOFDPacket docnum=191610 [20:15:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 D9 07 01 62 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 5D FC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EC 02 00 35 04 06 00 12 B0 C4 51 D4 A5 A6 55 5A F7 2C 2E 8F D4 [20:15:16]CheckFolder [20:15:16]dirname=/storage/ofd_packets [20:15:16]CheckFolder done [20:15:16]ProducePacketName [20:15:16]name=ofd_packets/00191610 [20:15:16]NVStorageSaveData ofd_packets/00191610 [20:15:16]File name is /storage/ofd_packets/00191610 [20:15:16]Write 301 bytes [20:15:16]NVStorageSaveData done [20:15:16]OFDSenderStorePacket done [20:15:16]KKMCreateOFDPacket done [20:15:16]NVStorageSaveData kkm_last_timestamp [20:15:16]File name is /storage/kkm_last_timestamp [20:15:16]Write 4 bytes [20:15:16]NVStorageSaveData done [20:15:16]ExternCall_PrintAddStr [20:15:16]wPrintStart [20:15:16]Write to MH i2c: 01 00 00 20 D3 F3 [20:15:16]OFD Sender: Processing packet 191610 [packets to send 75, broken 74] [20:15:16]ProducePacketName [20:15:16]name=ofd_packets/00191610 [20:15:16]OFD Sender: To server: pG, [20:15:16]CommunicateWithHost lk.salyk.kg:30040 [20:15:16]ConnectInit lk.salyk.kg [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 20 D3 00 02 00 00 00 FF 0F 0A [20:15:16]RasterBufferAndPrint [20:15:16]line Счет N : (1)30912 [20:15:16]line ИНН: 02508201610067 [20:15:16]line Контрольно-Кассовый Чек [20:15:16]line ПРОДАЖА [20:15:16]line ТРК (МРК, ГНК) : 12 [20:15:16]line Товар: 2710124130 [20:15:16]line Аи-92-К-5 [20:15:16]line 5.980 * 66.90 [20:15:16]line = 400.06 [20:15:16]line НДС 12% НСП 1% [20:15:16]line > о реализуемом товаре [20:15:16]line ОКРУГЛЕНИЕ: -0.06 [20:15:16]line ИТОГО: 400.00 [20:15:16]line Внесено: 400.00 [20:15:16]line СДАЧА: 0.00 [20:15:16]line НСП 1% : 3.54 [20:15:16]line НДС 12% : 42.48 [20:15:16]line Наличными: 400.00 [20:15:16]line Безнал.: 0.00 [20:15:16]line Место: АЗС № 170 "Партнер Нефть" [20:15:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:15:16]line СНО: Общий режим [20:15:16]line Чек 349 25.10.2024 20:15 [20:15:16]line Смена: 540 ФФД: 1.0 [20:15:16]line ЗНМ: 0300000110 [20:15:16]line РНМ: 0000000000091776 [20:15:16]line Версия ККМ: 001 [20:15:16]line ФМ: 0000000000871754 [20:15:16]line ФД: 191610 [20:15:16]line ФПД: 20550417241253 [20:15:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191610&fm=20550417241253&tin=02508201610067®Number=0000000000091776&sum=40000 [20:15:16]written 0, free lines is 4095 [20:15:16]Error from MH - 05 [20:15:16]process_action_free close_receipt [20:15:16]json_value_free [20:15:16]json_value_free done [20:15:16]process_json_proto returns [20:15:17]Send response to host [20:15:17]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [20:15:17]free response buf [20:15:17]execute_script done [20:15:17]execute_script returns [20:15:17]free content buf [20:15:17]Sock 10.Close socket [20:15:17]Sock 10.Thread stoped [20:15:17]Connected sock=9 [20:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 D9 07 01 62 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 5D FC 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EC 02 00 35 04 06 00 12 B0 C4 51 D4 A5 A6 55 5A F7 2C 2E 8F D4 [20:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 C7 47 00 56 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EC 02 00 F4 03 04 00 2B A1 1B 67 B6 04 01 00 00 74 34 55 BE D0 1C 68 85 [20:15:17]CommunicateWithHost err = 0 [20:15:17]CheckOFDResponse [20:15:17]1017 (14) - 77093643461234 [20:15:17]1041 (16) - 0000000000871754 [20:15:17]1040 (4) - 191610 [20:15:17]1012 (4) - 25.10.2024 13:46 [20:15:17]1206 (1) - 0 [20:15:17]OFD Sender: Remove packet 191610 [20:15:17]ProducePacketName [20:15:17]name=ofd_packets/00191610 [20:15:17]NVStorageDeleteData [20:15:17]OFD Sender: No OFD packet to send [20:15:20]Write to MH i2c: 01 00 00 23 D3 F6 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 23 D3 00 02 00 00 00 FF 0F 0D [20:15:20]state=3 [20:15:20]Cover opened [20:15:22]OFD Sender: No OFD packet to send [20:15:25]Write to MH i2c: 01 00 00 24 D3 F7 [20:15:25]Write i2c OK [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 07 00 [20:15:25]MH_I2C_Read... [20:15:25]Read from MH i2c: 01 07 00 24 D3 00 02 00 00 00 FF 0F 0E [20:15:25]state=3 [20:15:25]Cover opened [20:15:27]OFD Sender: No OFD packet to send [20:15:30]Write to MH i2c: 01 00 00 25 D3 F8 [20:15:30]Write i2c OK [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: 01 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: 01 07 00 [20:15:30]MH_I2C_Read... [20:15:30]Read from MH i2c: 01 07 00 25 D3 00 02 00 00 00 FF 0F 0F [20:15:30]state=3 [20:15:30]Cover opened [20:15:32]OFD Sender: No OFD packet to send [20:15:35]Write to MH i2c: 01 00 00 26 D3 F9 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: 01 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: 01 07 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: 01 07 00 26 D3 00 02 00 00 00 FF 0F 10 [20:15:35]state=3 [20:15:35]Cover opened [20:15:37]OFD Sender: No OFD packet to send [20:15:40]Write to MH i2c: 01 00 00 27 D3 FA [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 07 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: 01 07 00 27 D3 00 02 00 00 00 FF 0F 11 [20:15:40]state=3 [20:15:40]Cover opened [20:15:42]OFD Sender: No OFD packet to send [20:15:45]Write to MH i2c: 01 00 00 28 D3 FB [20:15:45]Write i2c OK [20:15:45]MH_I2C_Read... [20:15:45]Read from MH i2c: 01 [20:15:45]MH_I2C_Read... [20:15:45]Read from MH i2c: 01 07 00 [20:15:45]MH_I2C_Read... [20:15:45]Read from MH i2c: 01 07 00 28 D3 00 02 00 00 00 FF 0F 12 [20:15:45]state=3 [20:15:45]Cover opened [20:15:47]OFD Sender: No OFD packet to send [20:15:50]Write to MH i2c: 01 00 00 29 D3 FC [20:15:50]Write i2c OK [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 07 00 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 07 00 29 D3 00 02 00 00 00 FF 0F 13 [20:15:50]state=3 [20:15:50]Cover opened [20:15:52]OFD Sender: No OFD packet to send [20:15:55]Write to MH i2c: 01 00 00 2A D3 FD [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 2A D3 00 02 00 00 00 FF 0F 14 [20:15:55]state=3 [20:15:55]Cover opened [20:15:57]OFD Sender: No OFD packet to send [20:16:00]Write to MH i2c: 01 00 00 2B D3 FE [20:16:00]Write i2c OK [20:16:00]MH_I2C_Read... [20:16:00]Read from MH i2c: 01 [20:16:00]MH_I2C_Read... [20:16:00]Read from MH i2c: 01 07 00 [20:16:00]MH_I2C_Read... [20:16:00]Read from MH i2c: 01 07 00 2B D3 00 02 00 00 00 FF 0F 15 [20:16:00]state=3 [20:16:00]Cover opened [20:16:02]OFD Sender: No OFD packet to send [20:16:05]Write to MH i2c: 01 00 00 2C D3 FF [20:16:05]Write i2c OK [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: 01 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: 01 07 00 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: 01 07 00 2C D3 00 02 00 00 00 FF 0F 16 [20:16:05]state=3 [20:16:05]Cover opened [20:16:07]OFD Sender: No OFD packet to send [20:16:10]Write to MH i2c: 01 00 00 2D D3 00 [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 07 00 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 07 00 2D D3 00 02 00 00 00 FF 0F 17 [20:16:10]state=3 [20:16:10]Cover opened [20:16:12]OFD Sender: No OFD packet to send [20:16:15]Write to MH i2c: 01 00 00 2E D3 01 [20:16:15]Write i2c OK [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: 01 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: 01 07 00 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: 01 07 00 2E D3 00 02 00 00 00 FF 0F 18 [20:16:15]state=3 [20:16:15]Cover opened [20:16:17]OFD Sender: No OFD packet to send [20:16:20]Write to MH i2c: 01 00 00 2F D3 02 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 2F D3 00 02 00 00 00 FF 0F 19 [20:16:20]state=3 [20:16:20]Cover opened [20:16:22]OFD Sender: No OFD packet to send [20:16:25]Write to MH i2c: 01 00 00 30 D3 03 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 07 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 07 00 30 D3 00 02 00 00 00 FF 0F 1A [20:16:25]state=3 [20:16:25]Cover opened [20:16:27]OFD Sender: No OFD packet to send [20:16:30]Write to MH i2c: 01 00 00 31 D3 04 [20:16:30]Write i2c OK [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: 01 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: 01 07 00 [20:16:30]MH_I2C_Read... [20:16:30]Read from MH i2c: 01 07 00 31 D3 00 02 00 00 00 FF 0F 1B [20:16:30]state=3 [20:16:30]Cover opened [20:16:32]OFD Sender: No OFD packet to send [20:16:35]Write to MH i2c: 01 00 00 32 D3 05 [20:16:35]Write i2c OK [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: 01 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: 01 07 00 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: 01 07 00 32 D3 00 02 00 00 00 FF 0F 1C [20:16:35]state=3 [20:16:35]Cover opened [20:16:37]OFD Sender: No OFD packet to send [20:16:40]Write to MH i2c: 01 00 00 33 D3 06 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 33 D3 00 02 00 00 00 FF 0F 1D [20:16:40]state=3 [20:16:40]Cover opened [20:16:43]OFD Sender: No OFD packet to send [20:16:45]Write to MH i2c: 01 00 00 34 D3 07 [20:16:45]Write i2c OK [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: 01 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: 01 07 00 [20:16:45]MH_I2C_Read... [20:16:45]Read from MH i2c: 01 07 00 34 D3 00 02 00 00 00 FF 0F 1E [20:16:45]state=3 [20:16:45]Cover opened [20:16:48]OFD Sender: No OFD packet to send [20:16:50]Write to MH i2c: 01 00 00 35 D3 08 [20:16:50]Write i2c OK [20:16:50]MH_I2C_Read... [20:16:50]Read from MH i2c: 01 [20:16:50]MH_I2C_Read... [20:16:50]Read from MH i2c: 01 07 00 [20:16:50]MH_I2C_Read... [20:16:50]Read from MH i2c: 01 07 00 35 D3 00 02 00 00 00 FF 0F 1F [20:16:50]state=3 [20:16:50]Cover opened [20:16:53]OFD Sender: No OFD packet to send [20:16:55]Write to MH i2c: 01 00 00 36 D3 09 [20:16:55]Write i2c OK [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 07 00 [20:16:55]MH_I2C_Read... [20:16:55]Read from MH i2c: 01 07 00 36 D3 00 02 00 00 00 FF 0F 20 [20:16:55]state=3 [20:16:55]Cover opened [20:16:58]OFD Sender: No OFD packet to send [20:17:00]Write to MH i2c: 01 00 00 37 D3 0A [20:17:00]Write i2c OK [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: 01 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: 01 07 00 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: 01 07 00 37 D3 00 02 00 00 00 FF 0F 21 [20:17:00]state=3 [20:17:00]Cover opened [20:17:03]OFD Sender: No OFD packet to send [20:17:05]Write to MH i2c: 01 00 00 38 D3 0B [20:17:05]Write i2c OK [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: 01 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: 01 07 00 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: 01 07 00 38 D3 00 02 00 00 00 FF 0F 22 [20:17:05]state=3 [20:17:05]Cover opened [20:17:08]OFD Sender: No OFD packet to send [20:17:10]Write to MH i2c: 01 00 00 39 D3 0C [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 39 D3 00 02 00 00 00 FF 0F 23 [20:17:10]state=3 [20:17:10]Cover opened [20:17:13]OFD Sender: No OFD packet to send [20:17:15]Write to MH i2c: 01 00 00 3A D3 0D [20:17:15]Write i2c OK [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 07 00 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 07 00 3A D3 00 02 00 00 00 FF 0F 24 [20:17:15]state=3 [20:17:15]Cover opened [20:17:18]OFD Sender: No OFD packet to send [20:17:20]Write to MH i2c: 01 00 00 3B D3 0E [20:17:20]Write i2c OK [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: 01 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: 01 07 00 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: 01 07 00 3B D3 00 02 00 00 00 FF 0F 25 [20:17:20]state=3 [20:17:20]Cover opened [20:17:23]OFD Sender: No OFD packet to send [20:17:25]Write to MH i2c: 01 00 00 3C D3 0F [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 3C D3 00 02 00 00 00 FF 0F 26 [20:17:25]state=3 [20:17:25]Cover opened [20:17:28]OFD Sender: No OFD packet to send [20:17:30]Write to MH i2c: 01 00 00 3D D3 10 [20:17:30]Write i2c OK [20:17:30]MH_I2C_Read... [20:17:30]Read from MH i2c: 01 [20:17:30]MH_I2C_Read... [20:17:30]Read from MH i2c: 01 07 00 [20:17:30]MH_I2C_Read... [20:17:30]Read from MH i2c: 01 07 00 3D D3 00 02 00 00 00 FF 0F 27 [20:17:30]state=3 [20:17:30]Cover opened [20:17:33]OFD Sender: No OFD packet to send [20:17:35]Write to MH i2c: 01 00 00 3E D3 11 [20:17:35]Write i2c OK [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: 01 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: 01 07 00 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: 01 07 00 3E D3 00 02 00 00 00 FF 0F 28 [20:17:35]state=3 [20:17:35]Cover opened [20:17:38]OFD Sender: No OFD packet to send [20:17:40]Write to MH i2c: 01 00 00 3F D3 12 [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 3F D3 00 02 00 00 00 FF 0F 29 [20:17:40]state=3 [20:17:40]Cover opened [20:17:43]OFD Sender: No OFD packet to send [20:17:45]Write to MH i2c: 01 00 00 40 D3 13 [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 40 D3 00 02 00 00 00 FF 0F 2A [20:17:45]state=3 [20:17:45]Cover opened [20:17:48]OFD Sender: No OFD packet to send [20:17:50]Write to MH i2c: 01 00 00 41 D3 14 [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 07 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 07 00 41 D3 00 02 00 00 00 FF 0F 2B [20:17:51]state=3 [20:17:51]Cover opened [20:17:53]OFD Sender: No OFD packet to send [20:17:56]Write to MH i2c: 01 00 00 42 D3 15 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 42 D3 00 02 00 00 00 FF 0F 2C [20:17:56]state=3 [20:17:56]Cover opened [20:17:58]OFD Sender: No OFD packet to send [20:18:01]Write to MH i2c: 01 00 00 43 D3 16 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: 01 07 00 43 D3 00 02 00 00 00 FF 0F 2D [20:18:01]state=3 [20:18:01]Cover opened [20:18:03]OFD Sender: No OFD packet to send [20:18:06]Write to MH i2c: 01 00 00 44 D3 17 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 07 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: 01 07 00 44 D3 00 02 00 00 00 FF 0F 2E [20:18:06]state=3 [20:18:06]Cover opened [20:18:08]OFD Sender: No OFD packet to send [20:18:11]Write to MH i2c: 01 00 00 45 D3 18 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 45 D3 00 02 00 00 00 FF 0F 2F [20:18:11]state=3 [20:18:11]Cover opened [20:18:13]OFD Sender: No OFD packet to send [20:18:16]Write to MH i2c: 01 00 00 46 D3 19 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 46 D3 00 02 00 00 00 FF 0F 30 [20:18:16]state=3 [20:18:16]Cover opened [20:18:18]OFD Sender: No OFD packet to send [20:18:21]Write to MH i2c: 01 00 00 47 D3 1A [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 47 D3 00 02 00 00 00 FF 0F 31 [20:18:21]state=3 [20:18:21]Cover opened [20:18:23]OFD Sender: No OFD packet to send [20:18:26]Write to MH i2c: 01 00 00 48 D3 1B [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 48 D3 00 02 00 00 00 FF 0F 32 [20:18:26]state=3 [20:18:26]Cover opened [20:18:28]OFD Sender: No OFD packet to send [20:18:31]Write to MH i2c: 01 00 00 49 D3 1C [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 07 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: 01 07 00 49 D3 00 02 00 00 00 FF 0F 33 [20:18:31]state=3 [20:18:31]Cover opened [20:18:33]OFD Sender: No OFD packet to send [20:18:36]Write to MH i2c: 01 00 00 4A D3 1D [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 4A D3 00 02 00 00 00 FF 0F 34 [20:18:36]state=3 [20:18:36]Cover opened [20:18:38]OFD Sender: No OFD packet to send [20:18:41]Write to MH i2c: 01 00 00 4B D3 1E [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 4B D3 00 02 00 00 00 FF 0F 35 [20:18:41]state=3 [20:18:41]Cover opened [20:18:43]OFD Sender: No OFD packet to send [20:18:46]Write to MH i2c: 01 00 00 4C D3 1F [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 4C D3 00 02 00 00 00 FF 0F 36 [20:18:46]state=3 [20:18:46]Cover opened [20:18:48]OFD Sender: No OFD packet to send [20:18:51]Write to MH i2c: 01 00 00 4D D3 20 [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 4D D3 00 02 00 00 00 FF 0F 37 [20:18:51]state=3 [20:18:51]Cover opened [20:18:53]OFD Sender: No OFD packet to send [20:18:56]Write to MH i2c: 01 00 00 4E D3 21 [20:18:56]Write i2c OK [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 07 00 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: 01 07 00 4E D3 00 02 00 00 00 FF 0F 38 [20:18:56]state=3 [20:18:56]Cover opened [20:18:58]OFD Sender: No OFD packet to send [20:19:01]Write to MH i2c: 01 00 00 4F D3 22 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 4F D3 00 02 00 00 00 FF 0F 39 [20:19:01]state=3 [20:19:01]Cover opened [20:19:03]OFD Sender: No OFD packet to send [20:19:06]Write to MH i2c: 01 00 00 50 D3 23 [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 50 D3 00 02 00 00 00 FF 0F 3A [20:19:06]state=3 [20:19:06]Cover opened [20:19:08]OFD Sender: No OFD packet to send [20:19:11]Write to MH i2c: 01 00 00 51 D3 24 [20:19:11]Write i2c OK [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 07 00 [20:19:11]MH_I2C_Read... [20:19:11]Read from MH i2c: 01 07 00 51 D3 00 02 00 00 00 FF 0F 3B [20:19:11]state=3 [20:19:11]Cover opened [20:19:13]OFD Sender: No OFD packet to send [20:19:16]Write to MH i2c: 01 00 00 52 D3 25 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 52 D3 00 02 00 00 00 FF 0F 3C [20:19:16]state=3 [20:19:16]Cover opened [20:19:18]OFD Sender: No OFD packet to send [20:19:21]Write to MH i2c: 01 00 00 53 D3 26 [20:19:21]Write i2c OK [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 07 00 [20:19:21]MH_I2C_Read... [20:19:21]Read from MH i2c: 01 07 00 53 D3 00 02 00 00 00 FF 0F 3D [20:19:21]state=3 [20:19:21]Cover opened [20:19:23]OFD Sender: No OFD packet to send [20:19:26]Write to MH i2c: 01 00 00 54 D3 27 [20:19:26]Write i2c OK [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 07 00 [20:19:26]MH_I2C_Read... [20:19:26]Read from MH i2c: 01 07 00 54 D3 00 02 00 00 00 FF 0F 3E [20:19:26]state=3 [20:19:26]Cover opened [20:19:28]OFD Sender: No OFD packet to send [20:19:31]Write to MH i2c: 01 00 00 55 D3 28 [20:19:31]Write i2c OK [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 07 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 07 00 55 D3 00 02 00 00 00 FF 0F 3F [20:19:31]state=3 [20:19:31]Cover opened [20:19:33]OFD Sender: No OFD packet to send [20:19:36]Write to MH i2c: 01 00 00 56 D3 29 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 56 D3 00 02 00 00 00 FF 0F 40 [20:19:36]state=3 [20:19:36]Cover opened [20:19:38]OFD Sender: No OFD packet to send [20:19:41]Write to MH i2c: 01 00 00 57 D3 2A [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 57 D3 00 02 00 00 00 FF 0F 41 [20:19:41]state=3 [20:19:41]Cover opened [20:19:43]OFD Sender: No OFD packet to send [20:19:46]Write to MH i2c: 01 00 00 58 D3 2B [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 58 D3 00 02 00 00 00 FF 0F 42 [20:19:46]state=3 [20:19:46]Cover opened [20:19:48]OFD Sender: No OFD packet to send [20:19:51]Write to MH i2c: 01 00 00 59 D3 2C [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 59 D3 00 02 00 00 00 FF 0F 43 [20:19:51]state=3 [20:19:51]Cover opened [20:19:53]OFD Sender: No OFD packet to send [20:19:56]Write to MH i2c: 01 00 00 5A D3 2D [20:19:56]Write i2c OK [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 [20:19:56]MH_I2C_Read... [20:19:56]Read from MH i2c: 01 07 00 5A D3 00 02 00 00 00 FF 0F 44 [20:19:56]state=3 [20:19:56]Cover opened [20:19:58]OFD Sender: No OFD packet to send [20:20:01]Write to MH i2c: 01 00 00 5B D3 2E [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 5B D3 00 02 00 00 00 FF 0F 45 [20:20:01]state=3 [20:20:01]Cover opened [20:20:03]OFD Sender: No OFD packet to send [20:20:06]Write to MH i2c: 01 00 00 5C D3 2F [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 5C D3 00 02 00 00 00 FF 0F 46 [20:20:06]state=3 [20:20:06]Cover opened [20:20:08]OFD Sender: No OFD packet to send [20:20:11]Write to MH i2c: 01 00 00 5D D3 30 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 5D D3 00 02 00 00 00 FF 0F 47 [20:20:11]state=3 [20:20:11]Cover opened [20:20:13]OFD Sender: No OFD packet to send [20:20:16]Write to MH i2c: 01 00 00 5E D3 31 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 5E D3 00 02 00 00 00 FF 0F 48 [20:20:16]state=3 [20:20:16]Cover opened [20:20:18]OFD Sender: No OFD packet to send [20:20:21]Write to MH i2c: 01 00 00 5F D3 32 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: 01 07 00 5F D3 00 02 00 00 00 FF 0F 49 [20:20:21]state=3 [20:20:21]Cover opened [20:20:23]OFD Sender: No OFD packet to send [20:20:26]Write to MH i2c: 01 00 00 60 D3 33 [20:20:26]Write i2c OK [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 07 00 [20:20:26]MH_I2C_Read... [20:20:26]Read from MH i2c: 01 07 00 60 D3 00 02 00 00 00 FF 0F 4A [20:20:26]state=3 [20:20:26]Cover opened [20:20:28]OFD Sender: No OFD packet to send [20:20:31]Write to MH i2c: 01 00 00 61 D3 34 [20:20:31]Write i2c OK [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 07 00 [20:20:31]MH_I2C_Read... [20:20:31]Read from MH i2c: 01 07 00 61 D3 00 02 00 00 00 FF 0F 4B [20:20:31]state=3 [20:20:31]Cover opened [20:20:33]OFD Sender: No OFD packet to send [20:20:36]Write to MH i2c: 01 00 00 62 D3 35 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 62 D3 00 02 00 00 00 FF 0F 4C [20:20:36]state=3 [20:20:36]Cover opened [20:20:38]OFD Sender: No OFD packet to send [20:20:41]Write to MH i2c: 01 00 00 63 D3 36 [20:20:41]Write i2c OK [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 07 00 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: 01 07 00 63 D3 00 02 00 00 00 FF 0F 4D [20:20:41]state=3 [20:20:41]Cover opened [20:20:43]OFD Sender: No OFD packet to send [20:20:46]Write to MH i2c: 01 00 00 64 D3 37 [20:20:46]Write i2c OK [20:20:46]MH_I2C_Read... [20:20:46]Read from MH i2c: 01 [20:20:46]MH_I2C_Read... [20:20:46]Read from MH i2c: 01 07 00 [20:20:46]MH_I2C_Read... [20:20:46]Read from MH i2c: 01 07 00 64 D3 00 02 00 00 00 FF 0F 4E [20:20:46]state=3 [20:20:46]Cover opened [20:20:48]OFD Sender: No OFD packet to send [20:20:51]Write to MH i2c: 01 00 00 65 D3 38 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 65 D3 00 02 00 00 00 FF 0F 4F [20:20:51]state=3 [20:20:51]Cover opened [20:20:53]OFD Sender: No OFD packet to send [20:20:56]Write to MH i2c: 01 00 00 66 D3 39 [20:20:56]Write i2c OK [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 07 00 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 07 00 66 D3 00 02 00 00 00 FF 0F 50 [20:20:56]state=3 [20:20:56]Cover opened [20:20:58]OFD Sender: No OFD packet to send [20:21:01]Write to MH i2c: 01 00 00 67 D3 3A [20:21:01]Write i2c OK [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: 01 [20:21:01]MH_I2C_Read... [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 67 D3 00 02 00 00 00 FF 0F 51 [20:21:01]state=3 [20:21:01]Cover opened [20:21:03]OFD Sender: No OFD packet to send [20:21:06]Write to MH i2c: 01 00 00 68 D3 3B [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: 01 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: 01 07 00 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: 01 07 00 68 D3 00 02 00 00 00 FF 0F 52 [20:21:06]state=3 [20:21:06]Cover opened [20:21:08]OFD Sender: No OFD packet to send [20:21:11]Write to MH i2c: 01 00 00 69 D3 3C [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 69 D3 00 02 00 00 00 FF 0F 53 [20:21:11]state=3 [20:21:11]Cover opened [20:21:13]OFD Sender: No OFD packet to send [20:21:16]Write to MH i2c: 01 00 00 6A D3 3D [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 07 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 07 00 6A D3 00 02 00 00 00 FF 0F 54 [20:21:16]state=3 [20:21:16]Cover opened [20:21:18]OFD Sender: No OFD packet to send [20:21:21]Write to MH i2c: 01 00 00 6B D3 3E [20:21:21]Write i2c OK [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: 01 [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: 01 07 00 [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: 01 07 00 6B D3 00 02 00 00 00 FF 0F 55 [20:21:21]state=3 [20:21:21]Cover opened [20:21:23]OFD Sender: No OFD packet to send [20:21:26]Write to MH i2c: 01 00 00 6C D3 3F [20:21:26]Write i2c OK [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 07 00 [20:21:26]MH_I2C_Read... [20:21:26]Read from MH i2c: 01 07 00 6C D3 00 02 00 00 00 FF 0F 56 [20:21:26]state=3 [20:21:26]Cover opened [20:21:28]OFD Sender: No OFD packet to send [20:21:31]Write to MH i2c: 01 00 00 6D D3 40 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 6D D3 00 02 00 00 00 FF 0F 57 [20:21:31]state=3 [20:21:31]Cover opened [20:21:33]OFD Sender: No OFD packet to send [20:21:36]Write to MH i2c: 01 00 00 6E D3 41 [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: 01 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: 01 07 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: 01 07 00 6E D3 00 02 00 00 00 FF 0F 58 [20:21:36]state=3 [20:21:36]Cover opened [20:21:38]OFD Sender: No OFD packet to send [20:21:41]Write to MH i2c: 01 00 00 6F D3 42 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 6F D3 00 02 00 00 00 FF 0F 59 [20:21:41]state=3 [20:21:41]Cover opened [20:21:43]OFD Sender: No OFD packet to send [20:21:46]Write to MH i2c: 01 00 00 70 D3 43 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: 01 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: 01 07 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: 01 07 00 70 D3 00 02 00 00 00 FF 0F 5A [20:21:46]state=3 [20:21:46]Cover opened [20:21:48]OFD Sender: No OFD packet to send [20:21:51]Write to MH i2c: 01 00 00 71 D3 44 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 71 D3 00 02 00 00 00 FF 0F 5B [20:21:51]state=3 [20:21:51]Cover opened [20:21:53]OFD Sender: No OFD packet to send [20:21:56]Write to MH i2c: 01 00 00 72 D3 45 [20:21:56]Write i2c OK [20:21:56]MH_I2C_Read... [20:21:56]Read from MH i2c: 01 [20:21:56]MH_I2C_Read... [20:21:56]Read from MH i2c: 01 07 00 [20:21:56]MH_I2C_Read... [20:21:56]Read from MH i2c: 01 07 00 72 D3 00 02 00 00 00 FF 0F 5C [20:21:56]state=3 [20:21:56]Cover opened [20:21:58]OFD Sender: No OFD packet to send [20:22:01]Write to MH i2c: 01 00 00 73 D3 46 [20:22:01]Write i2c OK [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 07 00 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 07 00 73 D3 00 02 00 00 00 FF 0F 5D [20:22:01]state=3 [20:22:01]Cover opened [20:22:03]OFD Sender: No OFD packet to send [20:22:06]Write to MH i2c: 01 00 00 74 D3 47 [20:22:06]Write i2c OK [20:22:06]MH_I2C_Read... [20:22:06]Read from MH i2c: 01 [20:22:06]MH_I2C_Read... [20:22:06]Read from MH i2c: 01 07 00 [20:22:06]MH_I2C_Read... [20:22:06]Read from MH i2c: 01 07 00 74 D3 00 02 00 00 00 FF 0F 5E [20:22:06]state=3 [20:22:06]Cover opened [20:22:08]OFD Sender: No OFD packet to send [20:22:11]Write to MH i2c: 01 00 00 75 D3 48 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 07 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: 01 07 00 75 D3 00 02 00 00 00 FF 0F 5F [20:22:11]state=3 [20:22:11]Cover opened [20:22:13]OFD Sender: No OFD packet to send [20:22:16]Write to MH i2c: 01 00 00 76 D3 49 [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 07 00 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: 01 07 00 76 D3 00 02 00 00 00 FF 0F 60 [20:22:16]state=3 [20:22:16]Cover opened [20:22:18]OFD Sender: No OFD packet to send [20:22:21]Write to MH i2c: 01 00 00 77 D3 4A [20:22:21]Write i2c OK [20:22:21]MH_I2C_Read... [20:22:21]Read from MH i2c: 01 [20:22:21]MH_I2C_Read... [20:22:21]Read from MH i2c: 01 07 00 [20:22:21]MH_I2C_Read... [20:22:21]Read from MH i2c: 01 07 00 77 D3 00 02 00 00 00 FF 0F 61 [20:22:21]state=3 [20:22:21]Cover opened [20:22:23]OFD Sender: No OFD packet to send [20:22:26]Write to MH i2c: 01 00 00 78 D3 4B [20:22:26]Write i2c OK [20:22:26]MH_I2C_Read... [20:22:26]Read from MH i2c: 01 [20:22:26]MH_I2C_Read... [20:22:26]Read from MH i2c: 01 07 00 [20:22:26]MH_I2C_Read... [20:22:26]Read from MH i2c: 01 07 00 78 D3 00 02 00 00 00 FF 0F 62 [20:22:26]state=3 [20:22:26]Cover opened [20:22:28]OFD Sender: No OFD packet to send [20:22:31]Write to MH i2c: 01 00 00 79 D3 4C [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 79 D3 00 02 00 00 00 FF 0F 63 [20:22:31]state=3 [20:22:31]Cover opened [20:22:33]OFD Sender: No OFD packet to send [20:22:36]Write to MH i2c: 01 00 00 7A D3 4D [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 7A D3 00 02 00 00 00 FF 0F 64 [20:22:36]state=3 [20:22:36]Cover opened [20:22:38]OFD Sender: No OFD packet to send [20:22:41]Write to MH i2c: 01 00 00 7B D3 4E [20:22:41]Write i2c OK [20:22:41]MH_I2C_Read... [20:22:41]Read from MH i2c: 01 [20:22:41]MH_I2C_Read... [20:22:41]Read from MH i2c: 01 07 00 [20:22:41]MH_I2C_Read... [20:22:41]Read from MH i2c: 01 07 00 7B D3 00 02 00 00 00 FF 0F 65 [20:22:41]state=3 [20:22:41]Cover opened [20:22:43]OFD Sender: No OFD packet to send [20:22:46]Write to MH i2c: 01 00 00 7C D3 4F [20:22:46]Write i2c OK [20:22:46]MH_I2C_Read... [20:22:46]Read from MH i2c: 01 [20:22:46]MH_I2C_Read... [20:22:46]Read from MH i2c: 01 07 00 [20:22:46]MH_I2C_Read... [20:22:46]Read from MH i2c: 01 07 00 7C D3 00 02 00 00 00 FF 0F 66 [20:22:46]state=3 [20:22:46]Cover opened [20:22:48]OFD Sender: No OFD packet to send [20:22:51]Write to MH i2c: 01 00 00 7D D3 50 [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 7D D3 00 02 00 00 00 FF 0F 67 [20:22:51]state=3 [20:22:51]Cover opened [20:22:53]OFD Sender: No OFD packet to send [20:22:56]Write to MH i2c: 01 00 00 7E D3 51 [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 07 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 07 00 7E D3 00 02 00 00 00 FF 0F 68 [20:22:56]state=3 [20:22:56]Cover opened [20:22:58]OFD Sender: No OFD packet to send [20:23:01]Write to MH i2c: 01 00 00 7F D3 52 [20:23:01]Write i2c OK [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: 01 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: 01 07 00 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: 01 07 00 7F D3 00 02 00 00 00 FF 0F 69 [20:23:01]state=3 [20:23:01]Cover opened [20:23:03]OFD Sender: No OFD packet to send [20:23:06]Write to MH i2c: 01 00 00 80 D3 53 [20:23:06]Write i2c OK [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: 01 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: 01 07 00 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: 01 07 00 80 D3 00 02 00 00 00 FF 0F 6A [20:23:06]state=3 [20:23:06]Cover opened [20:23:08]OFD Sender: No OFD packet to send [20:23:11]Write to MH i2c: 01 00 00 81 D3 54 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: 01 07 00 81 D3 00 02 00 00 00 FF 0F 6B [20:23:11]state=3 [20:23:11]Cover opened [20:23:13]OFD Sender: No OFD packet to send [20:23:16]Write to MH i2c: 01 00 00 82 D3 55 [20:23:16]Write i2c OK [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: 01 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: 01 07 00 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: 01 07 00 82 D3 00 02 00 00 00 FF 0F 6C [20:23:16]state=3 [20:23:16]Cover opened [20:23:18]OFD Sender: No OFD packet to send [20:23:21]Write to MH i2c: 01 00 00 83 D3 56 [20:23:21]Write i2c OK [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: 01 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: 01 07 00 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: 01 07 00 83 D3 00 02 00 00 00 FF 0F 6D [20:23:21]state=3 [20:23:21]Cover opened [20:23:23]OFD Sender: No OFD packet to send [20:23:26]Write to MH i2c: 01 00 00 84 D3 57 [20:23:26]Write i2c OK [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 07 00 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 07 00 84 D3 00 02 00 00 00 FF 0F 6E [20:23:26]state=3 [20:23:26]Cover opened [20:23:28]OFD Sender: No OFD packet to send [20:23:31]Write to MH i2c: 01 00 00 85 D3 58 [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 85 D3 00 02 00 00 00 FF 0F 6F [20:23:31]state=3 [20:23:31]Cover opened [20:23:33]OFD Sender: No OFD packet to send [20:23:36]Write to MH i2c: 01 00 00 86 D3 59 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 86 D3 00 02 00 00 00 FF 0F 70 [20:23:36]state=3 [20:23:36]Cover opened [20:23:38]OFD Sender: No OFD packet to send [20:23:41]Write to MH i2c: 01 00 00 87 D3 5A [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 87 D3 00 02 00 00 00 FF 0F 71 [20:23:41]state=3 [20:23:41]Cover opened [20:23:43]OFD Sender: No OFD packet to send [20:23:46]Write to MH i2c: 01 00 00 88 D3 5B [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 88 D3 00 02 00 00 00 FF 0F 72 [20:23:46]state=3 [20:23:46]Cover opened [20:23:48]OFD Sender: No OFD packet to send [20:23:51]Write to MH i2c: 01 00 00 89 D3 5C [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: 01 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: 01 07 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: 01 07 00 89 D3 00 02 00 00 00 FF 0F 73 [20:23:51]state=3 [20:23:51]Cover opened [20:23:53]OFD Sender: No OFD packet to send [20:23:56]Write to MH i2c: 01 00 00 8A D3 5D [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 8A D3 00 02 00 00 00 FF 0F 74 [20:23:56]state=3 [20:23:56]Cover opened [20:23:58]OFD Sender: No OFD packet to send [20:24:01]Write to MH i2c: 01 00 00 8B D3 5E [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 8B D3 00 02 00 00 00 FF 0F 75 [20:24:01]state=3 [20:24:01]Cover opened [20:24:03]OFD Sender: No OFD packet to send [20:24:06]Write to MH i2c: 01 00 00 8C D3 5F [20:24:06]Write i2c OK [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 07 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 07 00 8C D3 00 02 00 00 00 FF 0F 76 [20:24:06]state=3 [20:24:06]Cover opened [20:24:08]OFD Sender: No OFD packet to send [20:24:11]Write to MH i2c: 01 00 00 8D D3 60 [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 07 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 07 00 8D D3 00 02 00 00 00 FF 0F 77 [20:24:11]state=3 [20:24:11]Cover opened [20:24:13]OFD Sender: No OFD packet to send [20:24:16]Write to MH i2c: 01 00 00 8E D3 61 [20:24:16]Write i2c OK [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 07 00 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 07 00 8E D3 00 02 00 00 00 FF 0F 78 [20:24:16]state=3 [20:24:16]Cover opened [20:24:18]OFD Sender: No OFD packet to send [20:24:21]Write to MH i2c: 01 00 00 8F D3 62 [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 8F D3 00 02 00 00 00 FF 0F 79 [20:24:21]state=3 [20:24:21]Cover opened [20:24:23]OFD Sender: No OFD packet to send [20:24:26]Write to MH i2c: 01 00 00 90 D3 63 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 90 D3 00 02 00 00 00 FF 0F 7A [20:24:26]state=3 [20:24:26]Cover opened [20:24:28]OFD Sender: No OFD packet to send [20:24:31]Write to MH i2c: 01 00 00 91 D3 64 [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 91 D3 00 02 00 00 00 FF 0F 7B [20:24:31]state=3 [20:24:31]Cover opened [20:24:33]OFD Sender: No OFD packet to send [20:24:36]Write to MH i2c: 01 00 00 92 D3 65 [20:24:36]Write i2c OK [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 07 00 [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 07 00 92 D3 00 02 00 00 00 FF 0F 7C [20:24:36]state=3 [20:24:36]Cover opened [20:24:38]OFD Sender: No OFD packet to send [20:24:41]Write to MH i2c: 01 00 00 93 D3 66 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 93 D3 00 02 00 00 00 FF 0F 7D [20:24:41]state=3 [20:24:41]Cover opened [20:24:43]OFD Sender: No OFD packet to send [20:24:46]Write to MH i2c: 01 00 00 94 D3 67 [20:24:46]Write i2c OK [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 07 00 [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 07 00 94 D3 00 02 00 00 00 FF 0F 7E [20:24:46]state=3 [20:24:46]Cover opened [20:24:48]OFD Sender: No OFD packet to send [20:24:51]Write to MH i2c: 01 00 00 95 D3 68 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 95 D3 00 02 00 00 00 FF 0F 7F [20:24:51]state=3 [20:24:51]Cover opened [20:24:53]OFD Sender: No OFD packet to send [20:24:56]Write to MH i2c: 01 00 00 96 D3 69 [20:24:56]Write i2c OK [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 96 D3 00 02 00 00 00 FF 0F 80 [20:24:56]state=3 [20:24:56]Cover opened [20:24:58]OFD Sender: No OFD packet to send [20:25:01]Write to MH i2c: 01 00 00 97 D3 6A [20:25:01]Write i2c OK [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 07 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 07 00 97 D3 00 02 00 00 00 FF 0F 81 [20:25:01]state=3 [20:25:01]Cover opened [20:25:03]OFD Sender: No OFD packet to send [20:25:06]Write to MH i2c: 01 00 00 98 D3 6B [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 98 D3 00 02 00 00 00 FF 0F 82 [20:25:06]state=3 [20:25:06]Cover opened [20:25:08]OFD Sender: No OFD packet to send [20:25:11]Write to MH i2c: 01 00 00 99 D3 6C [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 99 D3 00 02 00 00 00 FF 0F 83 [20:25:11]state=3 [20:25:11]Cover opened [20:25:13]OFD Sender: No OFD packet to send [20:25:16]Write to MH i2c: 01 00 00 9A D3 6D [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 9A D3 00 02 00 00 00 FF 0F 84 [20:25:16]state=3 [20:25:16]Cover opened [20:25:18]OFD Sender: No OFD packet to send [20:25:21]Write to MH i2c: 01 00 00 9B D3 6E [20:25:21]Write i2c OK [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 07 00 [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 07 00 9B D3 00 02 00 00 00 FF 0F 85 [20:25:21]state=3 [20:25:21]Cover opened [20:25:23]OFD Sender: No OFD packet to send [20:25:26]Write to MH i2c: 01 00 00 9C D3 6F [20:25:26]Write i2c OK [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 9C D3 00 02 00 00 00 FF 0F 86 [20:25:26]state=3 [20:25:26]Cover opened [20:25:28]OFD Sender: No OFD packet to send [20:25:31]Write to MH i2c: 01 00 00 9D D3 70 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 9D D3 00 02 00 00 00 FF 0F 87 [20:25:31]state=3 [20:25:31]Cover opened [20:25:33]OFD Sender: No OFD packet to send [20:25:36]Write to MH i2c: 01 00 00 9E D3 71 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 9E D3 00 02 00 00 00 FF 0F 88 [20:25:36]state=3 [20:25:36]Cover opened [20:25:38]OFD Sender: No OFD packet to send [20:25:41]Write to MH i2c: 01 00 00 9F D3 72 [20:25:41]Write i2c OK [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 07 00 [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 07 00 9F D3 00 02 00 00 00 FF 0F 89 [20:25:41]state=3 [20:25:41]Cover opened [20:25:43]OFD Sender: No OFD packet to send [20:25:46]Write to MH i2c: 01 00 00 A0 D3 73 [20:25:46]Write i2c OK [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 07 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 07 00 A0 D3 00 02 00 00 00 FF 0F 8A [20:25:46]state=3 [20:25:46]Cover opened [20:25:48]OFD Sender: No OFD packet to send [20:25:51]Write to MH i2c: 01 00 00 A1 D3 74 [20:25:51]Write i2c OK [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 A1 D3 00 02 00 00 00 FF 0F 8B [20:25:51]state=3 [20:25:51]Cover opened [20:25:53]OFD Sender: No OFD packet to send [20:25:56]Write to MH i2c: 01 00 00 A2 D3 75 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 A2 D3 00 02 00 00 00 FF 0F 8C [20:25:56]state=3 [20:25:56]Cover opened [20:25:58]OFD Sender: No OFD packet to send [20:26:01]Write to MH i2c: 01 00 00 A3 D3 76 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 A3 D3 00 02 00 00 00 FF 0F 8D [20:26:01]state=3 [20:26:01]Cover opened [20:26:03]OFD Sender: No OFD packet to send [20:26:06]Write to MH i2c: 01 00 00 A4 D3 77 [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 A4 D3 00 02 00 00 00 FF 0F 8E [20:26:06]state=3 [20:26:06]Cover opened [20:26:08]OFD Sender: No OFD packet to send [20:26:11]Write to MH i2c: 01 00 00 A5 D3 78 [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 A5 D3 00 02 00 00 00 FF 0F 8F [20:26:11]state=3 [20:26:11]Cover opened [20:26:13]OFD Sender: No OFD packet to send [20:26:16]Write to MH i2c: 01 00 00 A6 D3 79 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 A6 D3 00 02 00 00 00 FF 0F 90 [20:26:16]state=3 [20:26:16]Cover opened [20:26:18]OFD Sender: No OFD packet to send [20:26:21]Write to MH i2c: 01 00 00 A7 D3 7A [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 07 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 07 00 A7 D3 00 02 00 00 00 FF 0F 91 [20:26:21]state=3 [20:26:21]Cover opened [20:26:23]OFD Sender: No OFD packet to send [20:26:26]Write to MH i2c: 01 00 00 A8 D3 7B [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 A8 D3 00 02 00 00 00 FF 0F 92 [20:26:26]state=3 [20:26:26]Cover opened [20:26:28]OFD Sender: No OFD packet to send [20:26:31]Write to MH i2c: 01 00 00 A9 D3 7C [20:26:31]Write i2c OK [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 07 00 [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 07 00 A9 D3 00 02 00 00 00 FF 0F 93 [20:26:31]state=3 [20:26:31]Cover opened [20:26:33]OFD Sender: No OFD packet to send [20:26:36]Write to MH i2c: 01 00 00 AA D3 7D [20:26:36]Write i2c OK [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 07 00 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 07 00 AA D3 00 02 00 00 00 FF 0F 94 [20:26:36]state=3 [20:26:36]Cover opened [20:26:38]OFD Sender: No OFD packet to send [20:26:41]Write to MH i2c: 01 00 00 AB D3 7E [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 AB D3 00 02 00 00 00 FF 0F 95 [20:26:41]state=3 [20:26:41]Cover opened [20:26:43]OFD Sender: No OFD packet to send [20:26:46]Write to MH i2c: 01 00 00 AC D3 7F [20:26:46]Write i2c OK [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 07 00 [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 07 00 AC D3 00 02 00 00 00 FF 0F 96 [20:26:46]state=3 [20:26:46]Cover opened [20:26:48]OFD Sender: No OFD packet to send [20:26:51]Write to MH i2c: 01 00 00 AD D3 80 [20:26:51]Write i2c OK [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 07 00 [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 07 00 AD D3 00 02 00 00 00 FF 0F 97 [20:26:51]state=3 [20:26:51]Cover opened [20:26:53]OFD Sender: No OFD packet to send [20:26:56]Write to MH i2c: 01 00 00 AE D3 81 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 AE D3 00 02 00 00 00 FF 0F 98 [20:26:56]state=3 [20:26:56]Cover opened [20:26:58]OFD Sender: No OFD packet to send [20:27:01]Write to MH i2c: 01 00 00 AF D3 82 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 AF D3 00 02 00 00 00 FF 0F 99 [20:27:01]state=3 [20:27:01]Cover opened [20:27:03]OFD Sender: No OFD packet to send [20:27:06]Write to MH i2c: 01 00 00 B0 D3 83 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 B0 D3 00 02 00 00 00 FF 0F 9A [20:27:06]state=3 [20:27:06]Cover opened [20:27:08]OFD Sender: No OFD packet to send [20:27:11]Write to MH i2c: 01 00 00 B1 D3 84 [20:27:11]Write i2c OK [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 07 00 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 07 00 B1 D3 00 02 00 00 00 FF 0F 9B [20:27:11]state=3 [20:27:11]Cover opened [20:27:13]OFD Sender: No OFD packet to send [20:27:16]Write to MH i2c: 01 00 00 B2 D3 85 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 B2 D3 00 02 00 00 00 FF 0F 9C [20:27:16]state=3 [20:27:16]Cover opened [20:27:18]OFD Sender: No OFD packet to send [20:27:21]Write to MH i2c: 01 00 00 B3 D3 86 [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 07 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 07 00 B3 D3 00 02 00 00 00 FF 0F 9D [20:27:21]state=3 [20:27:21]Cover opened [20:27:23]OFD Sender: No OFD packet to send [20:27:26]Write to MH i2c: 01 00 00 B4 D3 87 [20:27:26]Write i2c OK [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 B4 D3 00 02 00 00 00 FF 0F 9E [20:27:26]state=3 [20:27:26]Cover opened [20:27:26]int [20:27:26]Write to MH i2c: 01 00 00 B5 D3 88 [20:27:26]*** FLAG_PRN_PAP1 set [20:27:26]Write i2c OK [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 B5 D3 00 03 00 00 00 FF 0F A0 [20:27:26]state=3 [20:27:26]No paper [20:27:26]Cover opened [20:27:28]OFD Sender: No OFD packet to send [20:27:31]Write to MH i2c: 01 00 00 B6 D3 89 [20:27:31]Write i2c OK [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 07 00 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 07 00 B6 D3 00 03 00 00 00 FF 0F A1 [20:27:31]state=3 [20:27:31]No paper [20:27:31]Cover opened [20:27:33]OFD Sender: No OFD packet to send [20:27:36]Write to MH i2c: 01 00 00 B7 D3 8A [20:27:36]Write i2c OK [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 07 00 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 07 00 B7 D3 00 03 00 00 00 FF 0F A2 [20:27:36]state=3 [20:27:36]No paper [20:27:36]Cover opened [20:27:38]OFD Sender: No OFD packet to send [20:27:41]Write to MH i2c: 01 00 00 B8 D3 8B [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 B8 D3 00 03 00 00 00 FF 0F A3 [20:27:41]state=3 [20:27:41]No paper [20:27:41]Cover opened [20:27:43]OFD Sender: No OFD packet to send [20:27:46]Write to MH i2c: 01 00 00 B9 D3 8C [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 B9 D3 00 03 00 00 00 FF 0F A4 [20:27:46]state=3 [20:27:46]No paper [20:27:46]Cover opened [20:27:47]int [20:27:47]Write to MH i2c: 01 00 00 BA D3 8D [20:27:47]*** FLAG_PRN_PAP2 reset [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 BA D3 00 01 00 00 00 FF 0F A3 [20:27:47]state=3 [20:27:47]No paper [20:27:47]Cover closed [20:27:47]int [20:27:47]Write to MH i2c: 01 00 00 BB D3 8E [20:27:47]*** FLAG_PRN_PAP1 reset [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 BB D3 00 00 00 00 00 FF 0F A3 [20:27:47]state=0 [20:27:48]OFD Sender: No OFD packet to send [20:27:52]accept exits with 8 [20:27:52]New connection [20:27:52]New thread 3066817892 created [20:27:52]Thread 3066961252 joined [20:27:52]Waiting for new connection... [20:27:52] Sock 8.Parse request [20:27:52]Sock 8.Check first char [20:27:52]Sock 8.First char is OK [20:27:52]request: POST /json_proto HTTP/1.0 [20:27:52]Method: POST [20:27:52]URL: /json_proto [20:27:52]Method is POST - this is cgi request [20:27:52]url: /json_proto [20:27:52]query_string will be loaded in cgi processing [20:27:52]execute_cgi json_proto POST (null) [20:27:52]execute_cgi path=json_proto method=POST [20:27:52]POST find Content-Length [20:27:52]Host: 172.17.63.131:8080 [20:27:52]Content-Length: 215 [20:27:52]Content-Type: application/json [20:27:52] [20:27:52]POST finish read [20:27:52]Found Content-Length = 215 [20:27:52]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" ] } } [20:27:52]execute_script... [20:27:52]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" ] } } [20:27:52]POST & json_proto [20:27:52]process_json_proto [20:27:52]json parsed OK: [20:27:52]protocol is kg_v1.0 [20:27:52]action value=get_value [20:27:52]process_action get_value [20:27:52]cmd_get_value [20:27:52]process_action get_value done [20:27:52]requested_data is exist [20:27:52]produce_requested_data [20:27:52]requested_item kkm.sn is exist - process it [20:27:52]requested_item kkm.ver is exist - process it [20:27:52]requested_item fm.sn is exist - process it [20:27:52]wFMCommunicate request_size=4 [20:27:52]MH_SAM_APDU [20:27:52]CAPDU: 80 11 00 00 [20:27:52]Write to MH i2c: E2 08 00 BC D3 80 11 00 00 00 00 00 00 09 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:52]Read from MH i2c: E2 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 17 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 17 00 BC D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [20:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:27:52]wFMCommunicate OK [20:27:52]requested_item fd.num is exist - process it [20:27:52]SAM_PROTO_GetFieldsCounters [20:27:52]wFMCommunicate request_size=4 [20:27:52]MH_SAM_APDU [20:27:52]CAPDU: 80 13 00 00 [20:27:52]Write to MH i2c: E2 08 00 BD D3 80 13 00 00 00 00 00 00 0C [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:52]Read from MH i2c: E2 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 62 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 62 00 BD D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:52]wFMCommunicate OK [20:27:52]SAM_PROTO_GetFieldsCounters done [20:27:52]requested_item shift.num is exist - process it [20:27:52]requested_item shift.opened is exist - process it [20:27:52]req_shift_opened [20:27:52]FM_GetShiftState [20:27:52]SAM_PROTO_GetShiftState [20:27:52]wFMCommunicate request_size=4 [20:27:52]MH_SAM_APDU [20:27:52]CAPDU: 80 13 01 00 [20:27:52]Write to MH i2c: E2 08 00 BE D3 80 13 01 00 00 00 00 00 0E [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:52]Read from MH i2c: E2 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 0E 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 0E 00 BE D3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D1 [20:27:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:27:52]wFMCommunicate OK [20:27:52]SAM_PROTO_GetShiftState done [20:27:52]FM_GetShiftState done [20:27:52]req_shift_opened done [20:27:52]requested_item shift.open_date is exist - process it [20:27:52]req_shift_open_date [20:27:52]req_shift_open_date done [20:27:52]produce_requested_data done [20:27:52]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191610,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:27:52]process_action_free get_value [20:27:52]json_value_free [20:27:52]json_value_free done [20:27:52]process_json_proto returns [20:27:52]Send response to host [20:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191610,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:27:52]free response buf [20:27:52]execute_script done [20:27:52]execute_script returns [20:27:52]free content buf [20:27:52]Sock 8.Close socket [20:27:52]Sock 8.Thread stoped [20:27:52]accept exits with 9 [20:27:52]New connection [20:27:52]New thread 3066961252 created [20:27:52]Thread 3066817892 joined [20:27:52]Waiting for new connection... [20:27:52] Sock 9.Parse request [20:27:52]Sock 9.Check first char [20:27:52]Sock 9.First char is OK [20:27:52]request: POST /json_proto HTTP/1.0 [20:27:52]Method: POST [20:27:52]URL: /json_proto [20:27:52]Method is POST - this is cgi request [20:27:52]url: /json_proto [20:27:52]query_string will be loaded in cgi processing [20:27:52]execute_cgi json_proto POST (null) [20:27:52]execute_cgi path=json_proto method=POST [20:27:52]POST find Content-Length [20:27:52]Host: 172.17.63.131:8080 [20:27:52]Content-Length: 331 [20:27:52]Content-Type: application/json [20:27:52] [20:27:52]POST finish read [20:27:52]Found Content-Length = 331 [20:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:27:52]execute_script... [20:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:27:53]POST & json_proto [20:27:53]process_json_proto [20:27:53]json parsed OK: [20:27:53]protocol is kg_v1.0 [20:27:53]action value=get_value [20:27:53]process_action get_value [20:27:53]cmd_get_value [20:27:53]process_action get_value done [20:27:53]requested_data is exist [20:27:53]produce_requested_data [20:27:53]requested_item fm.sale.total is exist - process it [20:27:53]SAM_PROTO_GetFMData [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 13 03 00 [20:27:53]Write to MH i2c: E2 08 00 BF D3 80 13 03 00 00 00 00 00 11 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 FD 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 FD 00 BF D3 00 C1 04 85 04 BD 04 6E 04 04 00 42 E8 02 00 69 04 A3 00 6F 04 04 00 38 E8 02 00 B1 04 05 00 0A 77 18 B3 03 70 04 05 00 CC B4 13 86 03 72 04 04 00 3E C2 04 2D 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 BB 61 9D 64 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 4D 46 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 F6 [20:27:53]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 42 E8 02 00 69 04 A3 00 6F 04 04 00 38 E8 02 00 B1 04 05 00 0A 77 18 B3 03 70 04 05 00 CC B4 13 86 03 72 04 04 00 3E C2 04 2D 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 BB 61 9D 64 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 4D 46 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [20:27:53]wFMCommunicate OK [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 17 00 00 [20:27:53]Write to MH i2c: E2 08 00 C0 D3 80 17 00 00 00 00 00 00 13 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]OFD Sender: No OFD packet to send [20:27:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 FD 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 FD 00 C0 D3 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 24 [20:27:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [20:27:53]wFMCommunicate OK [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 17 00 00 [20:27:53]Write to MH i2c: E2 08 00 C1 D3 80 17 00 00 00 00 00 00 14 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 FD 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 FD 00 C1 D3 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 B4 [20:27:54]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [20:27:54]wFMCommunicate OK [20:27:54]wFMCommunicate request_size=4 [20:27:54]MH_SAM_APDU [20:27:54]CAPDU: 80 17 00 00 [20:27:54]Write to MH i2c: E2 08 00 C2 D3 80 17 00 00 00 00 00 00 15 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 FD 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 FD 00 C2 D3 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 9A [20:27:54]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [20:27:54]wFMCommunicate OK [20:27:54]wFMCommunicate request_size=4 [20:27:54]MH_SAM_APDU [20:27:54]CAPDU: 80 17 00 00 [20:27:54]Write to MH i2c: E2 08 00 C3 D3 80 17 00 00 00 00 00 00 16 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 DE 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 DE 00 C3 D3 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:27:54]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:27:54]wFMCommunicate OK [20:27:54]SAM_PROTO_GetFMData done [20:27:54]requested_item fm.sale_refund.total is exist - process it [20:27:54]requested_item fm.buy.total is exist - process it [20:27:54]requested_item shift.sale.total is exist - process it [20:27:54]SAM_PROTO_GetShiftData [20:27:54]wFMCommunicate request_size=4 [20:27:54]MH_SAM_APDU [20:27:54]CAPDU: 80 13 02 00 [20:27:54]Write to MH i2c: E2 08 00 C4 D3 80 13 02 00 00 00 00 00 15 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:27:55]Read from MH i2c: E2 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 C4 D3 00 B1 04 AA 04 AD 04 6E 04 04 00 5D 01 00 00 69 04 9E 00 6F 04 04 00 5D 01 00 00 B1 04 04 00 B5 22 8F 01 70 04 04 00 34 2D 75 01 72 04 03 00 81 F5 19 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 B1 66 2A 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 8D 88 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CE [20:27:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5D 01 00 00 69 04 9E 00 6F 04 04 00 5D 01 00 00 B1 04 04 00 B5 22 8F 01 70 04 04 00 34 2D 75 01 72 04 03 00 81 F5 19 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 B1 66 2A 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 8D 88 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:27:55]wFMCommunicate OK [20:27:55]wFMCommunicate request_size=4 [20:27:55]MH_SAM_APDU [20:27:55]CAPDU: 80 17 00 00 [20:27:55]Write to MH i2c: E2 08 00 C5 D3 80 17 00 00 00 00 00 00 18 [20:27:55]Write i2c OK [20:27:55]MH_I2C_Read... [20:27:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:55]Read from MH i2c: E2 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 C5 D3 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 31 [20:27:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [20:27:55]wFMCommunicate OK [20:27:55]wFMCommunicate request_size=4 [20:27:55]MH_SAM_APDU [20:27:55]CAPDU: 80 17 00 00 [20:27:55]Write to MH i2c: E2 08 00 C6 D3 80 17 00 00 00 00 00 00 19 [20:27:55]Write i2c OK [20:27:55]MH_I2C_Read... [20:27:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:55]Read from MH i2c: E2 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 [20:27:55]MH_I2C_Read... [20:27:55]Read from MH i2c: E2 FD 00 C6 D3 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 D2 [20:27:55]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:27:55]wFMCommunicate OK [20:27:55]wFMCommunicate request_size=4 [20:27:55]MH_SAM_APDU [20:27:55]CAPDU: 80 17 00 00 [20:27:55]Write to MH i2c: E2 08 00 C7 D3 80 17 00 00 00 00 00 00 1A [20:27:55]Write i2c OK [20:27:55]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 FD 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 FD 00 C7 D3 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 92 [20:27:56]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [20:27:56]wFMCommunicate OK [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 17 00 00 [20:27:56]Write to MH i2c: E2 08 00 C8 D3 80 17 00 00 00 00 00 00 1B [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 CE 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 CE 00 C8 D3 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 00 [20:27:56]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:27:56]wFMCommunicate OK [20:27:56]SAM_PROTO_GetShiftData done [20:27:56]requested_item shift.sale.total_cash is exist - process it [20:27:56]requested_item shift.sale_refund.total is exist - process it [20:27:56]requested_item shift.sale_refund.total_cash is exist - process it [20:27:56]requested_item shift.buy.total is exist - process it [20:27:56]requested_item shift.buy.total_cash is exist - process it [20:27:56]produce_requested_data done [20:27:56]produce_requested_data return {"fm.sale.total":158896268.90,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":261577.49,"shift.sale.total_cash":244565.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} [20:27:56]process_action_free get_value [20:27:56]json_value_free [20:27:56]json_value_free done [20:27:56]process_json_proto returns [20:27:56]Send response to host [20:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158896268.90,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":261577.49,"shift.sale.total_cash":244565.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}}} [20:27:56]free response buf [20:27:56]execute_script done [20:27:56]execute_script returns [20:27:56]free content buf [20:27:56]Sock 9.Close socket [20:27:56]Sock 9.Thread stoped [20:27:56]accept exits with 8 [20:27:56]New connection [20:27:56]New thread 3066817892 created [20:27:56]Thread 3066961252 joined [20:27:56]Waiting for new connection... [20:27:56] Sock 8.Parse request [20:27:56]Sock 8.Check first char [20:27:56]Sock 8.First char is OK [20:27:56]request: POST /json_proto HTTP/1.0 [20:27:56]Method: POST [20:27:56]URL: /json_proto [20:27:56]Method is POST - this is cgi request [20:27:56]url: /json_proto [20:27:56]query_string will be loaded in cgi processing [20:27:56]execute_cgi json_proto POST (null) [20:27:56]execute_cgi path=json_proto method=POST [20:27:56]POST find Content-Length [20:27:56]Host: 172.17.63.131:8080 [20:27:56]Content-Length: 144 [20:27:56]Content-Type: application/json [20:27:56] [20:27:56]POST finish read [20:27:56]Found Content-Length = 144 [20:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:27:56]execute_script... [20:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:27:56]POST & json_proto [20:27:56]process_json_proto [20:27:56]json parsed OK: [20:27:56]protocol is kg_v1.0 [20:27:56]action value=print_doc [20:27:56]process_action print_doc [20:27:56]ExternCall_PrintAddStr [20:27:56]wPrintStart [20:27:56]Write to MH i2c: 01 00 00 C9 D3 9C [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 07 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 07 00 C9 D3 00 00 00 00 00 FF 0F B1 [20:27:56]RasterBufferAndPrint [20:27:56]line Счет N : (1)30912 [20:27:56]line ИНН: 02508201610067 [20:27:56]line Контрольно-Кассовый Чек [20:27:56]line ПРОДАЖА [20:27:56]line ТРК (МРК, ГНК) : 12 [20:27:56]line Товар: 2710124130 [20:27:56]line Аи-92-К-5 [20:27:56]line 5.980 * 66.90 [20:27:56]line = 400.06 [20:27:56]line НДС 12% НСП 1% [20:27:56]line > о реализуемом товаре [20:27:56]line ОКРУГЛЕНИЕ: -0.06 [20:27:56]line ИТОГО: 400.00 [20:27:56]line Внесено: 400.00 [20:27:56]line СДАЧА: 0.00 [20:27:56]line НСП 1% : 3.54 [20:27:56]line НДС 12% : 42.48 [20:27:56]line Наличными: 400.00 [20:27:56]line Безнал.: 0.00 [20:27:56]line Место: АЗС № 170 "Партнер Нефть" [20:27:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:27:56]line СНО: Общий режим [20:27:56]line Чек 349 25.10.2024 20:15 [20:27:56]line Смена: 540 ФФД: 1.0 [20:27:56]line ЗНМ: 0300000110 [20:27:56]line РНМ: 0000000000091776 [20:27:56]line Версия ККМ: 001 [20:27:56]line ФМ: 0000000000871754 [20:27:56]line ФД: 191610 [20:27:56]line ФПД: 20550417241253 [20:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191610&fm=20550417241253&tin=02508201610067®Number=0000000000091776&sum=40000 [20:27:56]written 0, free lines is 4095 [20:27:57]Write to MH i2c: 01 00 00 F4 D3 C7 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 07 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: 01 07 00 F4 D3 00 00 00 00 00 BA 0C 94 [20:27:57]RasterBufferAndPrint [20:27:57]line [20:27:57]line [20:27:57]line [20:27:57]line [20:27:57]line [20:27:57]written 0, free lines is 3271 [20:27:57]MH_Cut [20:27:57]Write to MH i2c: D1 01 00 FB D3 01 A0 [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: D1 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: D1 01 00 [20:27:57]MH_I2C_Read... [20:27:57]Read from MH i2c: D1 01 00 FB D3 00 9F [20:27:57]Write to MH i2c: 01 00 00 FC D3 CF [20:27:57]Write i2c OK [20:27:57]MH_I2C_Read... [20:27:57]*** Cut start [20:27:57]*** Partial cut [20:27:57]*** CUTSNS_PIN = 1 [20:27:57]*** CUTSNS_PIN = 0 [20:27:58]*** Brake cut motor [20:27:58]Read from MH i2c: 01 [20:27:58]MH_I2C_Read... [20:27:58]*** Stop cut motor [20:27:58]*** Cut end [20:27:58]Read from MH i2c: 01 07 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: 01 07 00 FC D3 00 00 00 00 00 FF 0F E4 [20:27:58]process_action print_doc done [20:27:58]requested_data is exist [20:27:58]produce_requested_data [20:27:58]produce_requested_data return (null) [20:27:58]process_action_free print_doc [20:27:58]json_value_free [20:27:58]json_value_free done [20:27:58]process_json_proto returns [20:27:58]Send response to host [20:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [20:27:58]free response buf [20:27:58]execute_script done [20:27:58]execute_script returns [20:27:58]free content buf [20:27:58]Sock 8.Close socket [20:27:58]Sock 8.Thread stoped [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]accept exits with 9 [20:28:18]New connection [20:28:18]New thread 3066961252 created [20:28:18]Thread 3066817892 joined [20:28:18]Waiting for new connection... [20:28:18] Sock 9.Parse request [20:28:18]Sock 9.Check first char [20:28:18]Sock 9.First char is OK [20:28:18]request: POST /json_proto HTTP/1.0 [20:28:18]Method: POST [20:28:18]URL: /json_proto [20:28:18]Method is POST - this is cgi request [20:28:18]url: /json_proto [20:28:18]query_string will be loaded in cgi processing [20:28:18]execute_cgi json_proto POST (null) [20:28:18]execute_cgi path=json_proto method=POST [20:28:18]POST find Content-Length [20:28:18]Host: 172.17.63.131:8080 [20:28:18]Content-Length: 676 [20:28:18]Content-Type: application/json [20:28:18] [20:28:18]POST finish read [20:28:18]Found Content-Length = 676 [20:28:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:18]execute_script... [20:28: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)30914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:18]POST & json_proto [20:28:18]process_json_proto [20:28:18]json parsed OK: [20:28:18]protocol is kg_v1.0 [20:28:18]action value=close_receipt [20:28:18]process_action close_receipt [20:28:18]cmd_close_receipt [20:28:18]MH_GetDate [20:28:18]Write to MH i2c: F0 00 00 FD D3 BF [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: F0 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: F0 09 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: F0 09 00 FD D3 00 6D FF 1B 67 22 05 6E 64 AF [20:28:18]GetLastDocTimeStamp 1729887325 [20:28:18]current date 1729888109 [20:28:18]FM_GetShiftState [20:28:18]SAM_PROTO_GetShiftState [20:28:18]wFMCommunicate request_size=4 [20:28:18]MH_SAM_APDU [20:28:18]CAPDU: 80 13 01 00 [20:28:18]Write to MH i2c: E2 08 00 FE D3 80 13 01 00 00 00 00 00 4E [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 0E 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 0E 00 FE D3 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 11 [20:28:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:28:18]wFMCommunicate OK [20:28:18]SAM_PROTO_GetShiftState done [20:28:18]FM_GetShiftState done [20:28:18]opened in 1729816399 [20:28:18]opened+sec_in_day 1729902799 [20:28:18]quantity*price = 20003 [20:28:18]sum+1 = 20004 [20:28:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 350 25.10.2024 20:28 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191611 ФПД: 82037870802468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T202829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191611&fm=82037870802468&tin=02508201610067®Number=0000000000091776&sum=20000 [20:28:19]StoreToDocumentArchive [20:28:19]shift 540 fd 191611 [20:28:19]save to /storage/0540/doc_00191611 [20:28:19]save last doc name /storage/0540/doc_00191611 to /storage/kkm_last_doc_name [20:28:19]save OK [20:28:19]Clear old archive folders... [20:28:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:19]tlvbuf is 016CEC70 [20:28:19]SAM_PROTO_ClearQueue [20:28:19]wFMCommunicate request_size=4 [20:28:19]MH_SAM_APDU [20:28:19]CAPDU: 80 09 00 00 [20:28:19]Write to MH i2c: E2 08 00 0B D4 80 09 00 00 00 00 00 00 51 [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:19]Read from MH i2c: E2 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 0B D4 00 90 00 53 [20:28:19]RAPDU: 90 00 [20:28:19]wFMCommunicate OK [20:28:19]SAM_PROTO_ClearQueue done [20:28:19]KKMCreateOFDPacket [20:28:19]OFDProtocolAddRootSTLVToBuf [20:28:19]FM_MakeSignedData [20:28:19]FM_MakeSignedData [20:28:19]SAM_PROTO_SignData [20:28:19]wFMCommunicate request_size=4 [20:28:19]MH_SAM_APDU [20:28:19]CAPDU: 80 0D 01 02 [20:28:19]Write to MH i2c: E2 08 00 0C D4 80 0D 01 02 00 00 00 00 59 [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:19]Read from MH i2c: E2 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 0C D4 00 90 00 54 [20:28:19]RAPDU: 90 00 [20:28:19]wFMCommunicate OK [20:28:19]wFMCommunicate request_size=255 [20:28:19]MH_SAM_APDU [20:28:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D FF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EC 02 00 35 04 06 00 4A [20:28:19]Write to MH i2c: E2 02 01 0D D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D FF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EC 02 00 35 04 06 00 4A 00 00 CD [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:19]Read from MH i2c: E2 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: E2 03 00 0D D4 00 90 00 55 [20:28:19]RAPDU: 90 00 [20:28:19]wFMCommunicate OK [20:28:19]wFMCommunicate request_size=10 [20:28:19]MH_SAM_APDU [20:28:19]CAPDU: 80 0D 02 02 05 9C EE 25 B6 24 [20:28:19]Write to MH i2c: E2 0D 00 0E D4 80 0D 02 02 05 00 9C EE 25 B6 24 00 00 EF [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 03 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 03 00 0E D4 00 90 00 56 [20:28:20]RAPDU: 90 00 [20:28:20]wFMCommunicate OK [20:28:20]wFMCommunicate request_size=4 [20:28:20]MH_SAM_APDU [20:28:20]CAPDU: 80 0D 03 02 [20:28:20]Write to MH i2c: E2 08 00 0F D4 80 0D 03 02 00 00 00 00 5E [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 0B 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 0B 00 0F D4 00 14 18 F5 B9 72 9B DE 22 90 00 46 [20:28:20]RAPDU: 14 18 F5 B9 72 9B DE 22 90 00 [20:28:20]wFMCommunicate OK [20:28:20]SAM_PROTO_SignData done [20:28:20]FM_MakeSignedData done [20:28:20]CreateOFDProtocolMessage [20:28:20]wFMCommunicate request_size=4 [20:28:20]MH_SAM_APDU [20:28:20]CAPDU: 80 11 00 00 [20:28:20]Write to MH i2c: E2 08 00 10 D4 80 11 00 00 00 00 00 00 5E [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 17 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 17 00 10 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [20:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:28:20]wFMCommunicate OK [20:28:20]CreateOFDProtocolMessage done [20:28:20]OFDSenderStorePacket 191611 [20:28:20]StoreOFDPacket docnum=191611 [20:28:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 AE 07 01 B0 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D FF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EC 02 00 35 04 06 00 4A 9C EE 25 B6 24 14 18 F5 B9 72 9B DE 22 [20:28:20]CheckFolder [20:28:20]dirname=/storage/ofd_packets [20:28:20]CheckFolder done [20:28:20]ProducePacketName [20:28:20]name=ofd_packets/00191611 [20:28:20]NVStorageSaveData ofd_packets/00191611 [20:28:20]File name is /storage/ofd_packets/00191611 [20:28:20]Write 301 bytes [20:28:20]NVStorageSaveData done [20:28:20]OFDSenderStorePacket done [20:28:20]KKMCreateOFDPacket done [20:28:20]NVStorageSaveData kkm_last_timestamp [20:28:20]File name is /storage/kkm_last_timestamp [20:28:20]Write 4 bytes [20:28:20]NVStorageSaveData done [20:28:20]ExternCall_PrintAddStr [20:28:20]wPrintStart [20:28:20]Write to MH i2c: 01 00 00 11 D4 E5 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 07 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 07 00 11 D4 00 00 00 00 00 FF 0F FA [20:28:20]RasterBufferAndPrint [20:28:20]line Счет N : (1)30914 [20:28:20]line ИНН: 02508201610067 [20:28:20]line Контрольно-Кассовый Чек [20:28:20]line ПРОДАЖА [20:28:20]line ТРК (МРК, ГНК) : 21 [20:28:20]line Товар: 2710124130 [20:28:20]line Аи-92-К-5 [20:28:20]line 2.990 * 66.90 [20:28:20]line = 200.03 [20:28:20]line НДС 12% НСП 1% [20:28:20]line > о реализуемом товаре [20:28:20]line ОКРУГЛЕНИЕ: -0.03 [20:28:20]line ИТОГО: 200.00 [20:28:20]line Внесено: 200.00 [20:28:20]line СДАЧА: 0.00 [20:28:20]line НСП 1% : 1.77 [20:28:20]line НДС 12% : 21.24 [20:28:20]line Наличными: 200.00 [20:28:20]line Безнал.: 0.00 [20:28:20]line Место: АЗС № 170 "Партнер Нефть" [20:28:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:28:20]line СНО: Общий режим [20:28:20]line Чек 350 25.10.2024 20:28 [20:28:20]line Смена: 540 ФФД: 1.0 [20:28:20]line ЗНМ: 0300000110 [20:28:20]line РНМ: 0000000000091776 [20:28:20]line Версия ККМ: 001 [20:28:20]line ФМ: 0000000000871754 [20:28:20]line ФД: 191611 [20:28:20]line ФПД: 82037870802468 [20:28:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T202829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191611&fm=82037870802468&tin=02508201610067®Number=0000000000091776&sum=20000 [20:28:20]OFD Sender: Processing packet 191611 [packets to send 75, broken 74] [20:28:20]ProducePacketName [20:28:20]name=ofd_packets/00191611 [20:28:20]OFD Sender: To server: pG, [20:28:20]CommunicateWithHost lk.salyk.kg:30040 [20:28:20]ConnectInit lk.salyk.kg [20:28:20]written 0, free lines is 4095 [20:28:20]Connected sock=10 [20:28:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 AE 07 01 B0 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D FF 1B 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EC 02 00 35 04 06 00 4A 9C EE 25 B6 24 14 18 F5 B9 72 9B DE 22 [20:28:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 33 47 00 87 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EC 02 00 F4 03 04 00 3A A4 1B 67 B6 04 01 00 00 12 76 FE 12 C2 1E DA AE [20:28:20]CommunicateWithHost err = 0 [20:28:20]CheckOFDResponse [20:28:20]1017 (14) - 77093643461234 [20:28:20]1041 (16) - 0000000000871754 [20:28:20]1040 (4) - 191611 [20:28:20]1012 (4) - 25.10.2024 13:59 [20:28:20]1206 (1) - 0 [20:28:20]OFD Sender: Remove packet 191611 [20:28:20]ProducePacketName [20:28:20]name=ofd_packets/00191611 [20:28:20]NVStorageDeleteData [20:28:20]Write to MH i2c: 01 00 00 3C D4 10 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 07 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 07 00 3C D4 00 00 00 00 00 C2 0C E5 [20:28:20]RasterBufferAndPrint [20:28:20]line [20:28:20]line [20:28:20]line [20:28:20]line [20:28:20]line [20:28:20]written 0, free lines is 3275 [20:28:20]MH_Cut [20:28:20]Write to MH i2c: D1 01 00 43 D4 01 E9 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: D1 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: D1 01 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: D1 01 00 43 D4 00 E8 [20:28:20]Write to MH i2c: 01 00 00 44 D4 18 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:21]OFD Sender: No OFD packet to send [20:28:21]*** Cut start [20:28:21]*** Partial cut [20:28:21]*** CUTSNS_PIN = 1 [20:28:21]*** CUTSNS_PIN = 0 [20:28:22]*** Brake cut motor [20:28:22]Read from MH i2c: 01 [20:28:22]MH_I2C_Read... [20:28:22]*** Stop cut motor [20:28:22]*** Cut end [20:28:22]Read from MH i2c: 01 07 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: 01 07 00 44 D4 00 00 00 00 00 FF 0F 2D [20:28:22]process_action close_receipt done [20:28:22]requested_data is exist [20:28:22]produce_requested_data [20:28:22]requested_item fm.sn is exist - process it [20:28:22]wFMCommunicate request_size=4 [20:28:22]MH_SAM_APDU [20:28:22]CAPDU: 80 11 00 00 [20:28:22]Write to MH i2c: E2 08 00 45 D4 80 11 00 00 00 00 00 00 93 [20:28:22]Write i2c OK [20:28:22]MH_I2C_Read... [20:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:22]Read from MH i2c: E2 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 17 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 17 00 45 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [20:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:28:22]wFMCommunicate OK [20:28:22]requested_item fd.num is exist - process it [20:28:22]SAM_PROTO_GetFieldsCounters [20:28:22]wFMCommunicate request_size=4 [20:28:22]MH_SAM_APDU [20:28:22]CAPDU: 80 13 00 00 [20:28:22]Write to MH i2c: E2 08 00 46 D4 80 13 00 00 00 00 00 00 96 [20:28:22]Write i2c OK [20:28:22]MH_I2C_Read... [20:28:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:22]Read from MH i2c: E2 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 62 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 62 00 46 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [20:28:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:22]wFMCommunicate OK [20:28:22]SAM_PROTO_GetFieldsCounters done [20:28:22]requested_item shift.num is exist - process it [20:28:22]requested_item shift.opened is exist - process it [20:28:22]req_shift_opened [20:28:22]FM_GetShiftState [20:28:22]SAM_PROTO_GetShiftState [20:28:22]wFMCommunicate request_size=4 [20:28:22]MH_SAM_APDU [20:28:22]CAPDU: 80 13 01 00 [20:28:22]Write to MH i2c: E2 08 00 47 D4 80 13 01 00 00 00 00 00 98 [20:28:22]Write i2c OK [20:28:22]MH_I2C_Read... [20:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:22]Read from MH i2c: E2 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 0E 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 0E 00 47 D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5B [20:28:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:28:22]wFMCommunicate OK [20:28:22]SAM_PROTO_GetShiftState done [20:28:22]FM_GetShiftState done [20:28:22]req_shift_opened done [20:28:22]requested_item shift.open_date is exist - process it [20:28:22]req_shift_open_date [20:28:22]req_shift_open_date done [20:28:22]produce_requested_data done [20:28:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191611,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:28:22]process_action_free close_receipt [20:28:22]json_value_free [20:28:22]json_value_free done [20:28:22]process_json_proto returns [20:28:22]Send response to host [20:28:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191611,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:28:22]free response buf [20:28:22]execute_script done [20:28:22]execute_script returns [20:28:22]free content buf [20:28:22]Sock 9.Close socket [20:28:22]Sock 9.Thread stoped [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:16]accept exits with 8 [20:40:16]New connection [20:40:16]New thread 3066817892 created [20:40:16]Thread 3066961252 joined [20:40:16]Waiting for new connection... [20:40:16] Sock 8.Parse request [20:40:16]Sock 8.Check first char [20:40:16]Sock 8.First char is OK [20:40:16]request: POST /json_proto HTTP/1.0 [20:40:16]Method: POST [20:40:16]URL: /json_proto [20:40:16]Method is POST - this is cgi request [20:40:16]url: /json_proto [20:40:16]query_string will be loaded in cgi processing [20:40:16]execute_cgi json_proto POST (null) [20:40:16]execute_cgi path=json_proto method=POST [20:40:16]POST find Content-Length [20:40:16]Host: 172.17.63.131:8080 [20:40:16]Content-Length: 860 [20:40:16]Content-Type: application/json [20:40:16] [20:40:16]POST finish read [20:40:16]Found Content-Length = 860 [20:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:16]execute_script... [20:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:16]POST & json_proto [20:40:16]process_json_proto [20:40:16]json parsed OK: [20:40:16]protocol is kg_v1.0 [20:40:16]action value=close_receipt [20:40:16]process_action close_receipt [20:40:16]cmd_close_receipt [20:40:16]MH_GetDate [20:40:16]Write to MH i2c: F0 00 00 48 D4 0B [20:40:16]Write i2c OK [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 09 00 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 09 00 48 D4 00 3B 02 1C 67 22 05 6E 64 CD [20:40:16]GetLastDocTimeStamp 1729888109 [20:40:16]current date 1729888827 [20:40:16]FM_GetShiftState [20:40:16]SAM_PROTO_GetShiftState [20:40:16]wFMCommunicate request_size=4 [20:40:16]MH_SAM_APDU [20:40:16]CAPDU: 80 13 01 00 [20:40:16]Write to MH i2c: E2 08 00 49 D4 80 13 01 00 00 00 00 00 9A [20:40:16]Write i2c OK [20:40:16]MH_I2C_Read... [20:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:16]Read from MH i2c: E2 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: E2 0E 00 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: E2 0E 00 49 D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5D [20:40:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:40:16]wFMCommunicate OK [20:40:16]SAM_PROTO_GetShiftState done [20:40:16]FM_GetShiftState done [20:40:16]opened in 1729816399 [20:40:16]opened+sec_in_day 1729902799 [20:40:16]quantity*price = 80010 [20:40:16]sum+1 = 80011 [20:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 351 25.10.2024 20:40 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191612 ФПД: 275298099521060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191612&fm=275298099521060&tin=02508201610067®Number=0000000000091776&sum=80010 [20:40:17]StoreToDocumentArchive [20:40:17]shift 540 fd 191612 [20:40:17]save to /storage/0540/doc_00191612 [20:40:17]save last doc name /storage/0540/doc_00191612 to /storage/kkm_last_doc_name [20:40:17]save OK [20:40:17]Clear old archive folders... [20:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:40:17]tlvbuf is 018316A0 [20:40:17]SAM_PROTO_ClearQueue [20:40:17]wFMCommunicate request_size=4 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 09 00 00 [20:40:17]Write to MH i2c: E2 08 00 56 D4 80 09 00 00 00 00 00 00 9C [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 56 D4 00 90 00 9E [20:40:18]RAPDU: 90 00 [20:40:18]wFMCommunicate OK [20:40:18]SAM_PROTO_ClearQueue done [20:40:18]KKMCreateOFDPacket [20:40:18]OFDProtocolAddRootSTLVToBuf [20:40:18]FM_MakeSignedData [20:40:18]FM_MakeSignedData [20:40:18]SAM_PROTO_SignData [20:40:18]wFMCommunicate request_size=4 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 0D 01 02 [20:40:18]Write to MH i2c: E2 08 00 57 D4 80 0D 01 02 00 00 00 00 A4 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 57 D4 00 90 00 9F [20:40:18]RAPDU: 90 00 [20:40:18]wFMCommunicate OK [20:40:18]wFMCommunicate request_size=255 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 3B 02 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EC 02 00 35 04 06 00 FA 61 D5 6D [20:40:18]Write to MH i2c: E2 02 01 58 D4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 3B 02 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EC 02 00 35 04 06 00 FA 61 D5 6D 00 00 BA [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 58 D4 00 90 00 A0 [20:40:18]RAPDU: 90 00 [20:40:18]wFMCommunicate OK [20:40:18]wFMCommunicate request_size=7 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 0D 02 02 02 E6 24 [20:40:18]Write to MH i2c: E2 0A 00 59 D4 80 0D 02 02 02 00 E6 24 00 00 B5 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 03 00 59 D4 00 90 00 A1 [20:40:18]RAPDU: 90 00 [20:40:18]wFMCommunicate OK [20:40:18]wFMCommunicate request_size=4 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 0D 03 02 [20:40:18]Write to MH i2c: E2 08 00 5A D4 80 0D 03 02 00 00 00 00 A9 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0B 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0B 00 5A D4 00 0B 99 0D 41 30 38 FA E8 90 00 E6 [20:40:18]RAPDU: 0B 99 0D 41 30 38 FA E8 90 00 [20:40:18]wFMCommunicate OK [20:40:18]SAM_PROTO_SignData done [20:40:18]FM_MakeSignedData done [20:40:18]CreateOFDProtocolMessage [20:40:18]wFMCommunicate request_size=4 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 11 00 00 [20:40:18]Write to MH i2c: E2 08 00 5B D4 80 11 00 00 00 00 00 00 A9 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 17 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 17 00 5B D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [20:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:40:18]wFMCommunicate OK [20:40:18]CreateOFDProtocolMessage done [20:40:18]OFDSenderStorePacket 191612 [20:40:18]StoreOFDPacket docnum=191612 [20:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F6 7C 04 01 4B 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 3B 02 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EC 02 00 35 04 06 00 FA 61 D5 6D E6 24 0B 99 0D 41 30 38 FA E8 [20:40:18]CheckFolder [20:40:18]dirname=/storage/ofd_packets [20:40:18]CheckFolder done [20:40:18]ProducePacketName [20:40:18]name=ofd_packets/00191612 [20:40:18]NVStorageSaveData ofd_packets/00191612 [20:40:18]File name is /storage/ofd_packets/00191612 [20:40:18]Write 298 bytes [20:40:18]NVStorageSaveData done [20:40:18]OFDSenderStorePacket done [20:40:18]KKMCreateOFDPacket done [20:40:18]NVStorageSaveData kkm_last_timestamp [20:40:18]File name is /storage/kkm_last_timestamp [20:40:18]Write 4 bytes [20:40:18]NVStorageSaveData done [20:40:18]ExternCall_PrintAddStr [20:40:18]wPrintStart [20:40:18]Write to MH i2c: 01 00 00 5C D4 30 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 5C D4 00 00 00 00 00 FF 0F 45 [20:40:18]RasterBufferAndPrint [20:40:18]line Счет N : (1)30915 [20:40:18]line ИНН: 02508201610067 [20:40:18]line Контрольно-Кассовый Чек [20:40:18]line ПРОДАЖА [20:40:18]line ТРК (МРК, ГНК) : 11 [20:40:18]line Товар: 2710194210 [20:40:18]line ДТ-К-5 [20:40:18]line 10.500 * 76.20 [20:40:18]line = 800.10 [20:40:18]line НДС 12% НСП 1% [20:40:18]line > о реализуемом товаре [20:40:18]line ИТОГО: 800.10 [20:40:18]line НСП 1% : 7.08 [20:40:18]line НДС 12% : 84.97 [20:40:18]line Наличными: 0.00 [20:40:18]line Безнал.: 800.10 [20:40:18]line Место: АЗС № 170 "Партнер Нефть" [20:40:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:40:18]line СНО: Общий режим [20:40:18]line Чек 351 25.10.2024 20:40 [20:40:18]line Смена: 540 ФФД: 1.0 [20:40:18]line ЗНМ: 0300000110 [20:40:18]line РНМ: 0000000000091776 [20:40:18]line Версия ККМ: 001 [20:40:18]line Платежная система: Кыргызкоммерцбанк [20:40:18]line ФМ: 0000000000871754 [20:40:18]line ФД: 191612 [20:40:18]line ФПД: 275298099521060 [20:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191612&fm=275298099521060&tin=02508201610067®Number=0000000000091776&sum=80010 [20:40:18]written 0, free lines is 4095 [20:40:18]OFD Sender: Processing packet 191612 [packets to send 75, broken 74] [20:40:18]ProducePacketName [20:40:18]name=ofd_packets/00191612 [20:40:18]OFD Sender: To server: pG, [20:40:18]CommunicateWithHost lk.salyk.kg:30040 [20:40:18]ConnectInit lk.salyk.kg [20:40:18]Connected sock=11 [20:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F6 7C 04 01 4B 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 3B 02 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EC 02 00 35 04 06 00 FA 61 D5 6D E6 24 0B 99 0D 41 30 38 FA E8 [20:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 31 47 00 21 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EC 02 00 F4 03 04 00 09 A7 1B 67 B6 04 01 00 00 0D AF 38 33 E1 2B 4D 1D [20:40:19]CommunicateWithHost err = 0 [20:40:19]CheckOFDResponse [20:40:19]1017 (14) - 77093643461234 [20:40:19]1041 (16) - 0000000000871754 [20:40:19]1040 (4) - 191612 [20:40:19]1012 (4) - 25.10.2024 14:11 [20:40:19]1206 (1) - 0 [20:40:19]OFD Sender: Remove packet 191612 [20:40:19]ProducePacketName [20:40:19]name=ofd_packets/00191612 [20:40:19]NVStorageDeleteData [20:40:19]Write to MH i2c: 01 00 00 86 D4 5A [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 07 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 07 00 86 D4 00 00 00 00 00 CD 0C 3A [20:40:19]RasterBufferAndPrint [20:40:19]line [20:40:19]line [20:40:19]line [20:40:19]line [20:40:19]line [20:40:19]written 0, free lines is 3283 [20:40:19]MH_Cut [20:40:19]Write to MH i2c: D1 01 00 8D D4 01 33 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: D1 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: D1 01 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: D1 01 00 8D D4 00 32 [20:40:19]Write to MH i2c: 01 00 00 8E D4 62 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]OFD Sender: No OFD packet to send [20:40:20]*** Cut start [20:40:20]*** Partial cut [20:40:20]*** CUTSNS_PIN = 1 [20:40:20]*** CUTSNS_PIN = 0 [20:40:20]*** Brake cut motor [20:40:20]Read from MH i2c: 01 [20:40:20]MH_I2C_Read... [20:40:20]*** Stop cut motor [20:40:20]*** Cut end [20:40:20]Read from MH i2c: 01 07 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 8E D4 00 00 00 00 00 FF 0F 77 [20:40:20]process_action close_receipt done [20:40:20]requested_data is exist [20:40:20]produce_requested_data [20:40:20]requested_item fm.sn is exist - process it [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 11 00 00 [20:40:20]Write to MH i2c: E2 08 00 8F D4 80 11 00 00 00 00 00 00 DD [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 8F D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [20:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:40:20]wFMCommunicate OK [20:40:20]requested_item fd.num is exist - process it [20:40:20]SAM_PROTO_GetFieldsCounters [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 13 00 00 [20:40:20]Write to MH i2c: E2 08 00 90 D4 80 13 00 00 00 00 00 00 E0 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 62 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 62 00 90 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [20:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_GetFieldsCounters done [20:40:20]requested_item shift.num is exist - process it [20:40:20]requested_item shift.opened is exist - process it [20:40:20]req_shift_opened [20:40:20]FM_GetShiftState [20:40:20]SAM_PROTO_GetShiftState [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 13 01 00 [20:40:20]Write to MH i2c: E2 08 00 91 D4 80 13 01 00 00 00 00 00 E2 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0E 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0E 00 91 D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A5 [20:40:20]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_GetShiftState done [20:40:20]FM_GetShiftState done [20:40:20]req_shift_opened done [20:40:20]requested_item shift.open_date is exist - process it [20:40:20]req_shift_open_date [20:40:20]req_shift_open_date done [20:40:20]produce_requested_data done [20:40:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191612,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:40:20]process_action_free close_receipt [20:40:20]json_value_free [20:40:20]json_value_free done [20:40:20]process_json_proto returns [20:40:20]Send response to host [20:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191612,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:40:20]free response buf [20:40:20]execute_script done [20:40:20]execute_script returns [20:40:20]free content buf [20:40:20]Sock 8.Close socket [20:40:20]Sock 8.Thread stoped [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45: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:14]accept exits with 9 [20:54:14]New connection [20:54:14]New thread 3066961252 created [20:54:14]Thread 3066817892 joined [20:54:14]Waiting for new connection... [20:54:14] Sock 9.Parse request [20:54:14]Sock 9.Check first char [20:54:14]Sock 9.First char is OK [20:54:14]request: POST /json_proto HTTP/1.0 [20:54:14]Method: POST [20:54:14]URL: /json_proto [20:54:14]Method is POST - this is cgi request [20:54:14]url: /json_proto [20:54:14]query_string will be loaded in cgi processing [20:54:14]execute_cgi json_proto POST (null) [20:54:14]execute_cgi path=json_proto method=POST [20:54:14]POST find Content-Length [20:54:14]Host: 172.17.63.131:8080 [20:54:14]Content-Length: 676 [20:54:14]Content-Type: application/json [20:54:14] [20:54:14]POST finish read [20:54:14]Found Content-Length = 676 [20:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:14]execute_script... [20:54: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)30916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:14]POST & json_proto [20:54:14]process_json_proto [20:54:14]json parsed OK: [20:54:14]protocol is kg_v1.0 [20:54:14]action value=close_receipt [20:54:14]process_action close_receipt [20:54:14]cmd_close_receipt [20:54:14]MH_GetDate [20:54:14]Write to MH i2c: F0 00 00 92 D4 55 [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: F0 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: F0 09 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: F0 09 00 92 D4 00 81 05 1C 67 22 05 6E 64 60 [20:54:14]GetLastDocTimeStamp 1729888827 [20:54:14]current date 1729889665 [20:54:14]FM_GetShiftState [20:54:14]SAM_PROTO_GetShiftState [20:54:14]wFMCommunicate request_size=4 [20:54:14]MH_SAM_APDU [20:54:14]CAPDU: 80 13 01 00 [20:54:14]Write to MH i2c: E2 08 00 93 D4 80 13 01 00 00 00 00 00 E4 [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:14]Read from MH i2c: E2 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 0E 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 0E 00 93 D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A7 [20:54:14]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:54:14]wFMCommunicate OK [20:54:14]SAM_PROTO_GetShiftState done [20:54:14]FM_GetShiftState done [20:54:14]opened in 1729816399 [20:54:14]opened+sec_in_day 1729902799 [20:54:14]quantity*price = 30038 [20:54:14]sum+1 = 30039 [20:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 352 25.10.2024 20:54 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191613 ФПД: 257939066568045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T205425&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191613&fm=257939066568045&tin=02508201610067®Number=0000000000091776&sum=30000 [20:54:15]StoreToDocumentArchive [20:54:15]shift 540 fd 191613 [20:54:15]save to /storage/0540/doc_00191613 [20:54:15]save last doc name /storage/0540/doc_00191613 to /storage/kkm_last_doc_name [20:54:15]save OK [20:54:15]Clear old archive folders... [20:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:15]tlvbuf is 016B04B0 [20:54:15]SAM_PROTO_ClearQueue [20:54:15]wFMCommunicate request_size=4 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 09 00 00 [20:54:15]Write to MH i2c: E2 08 00 A0 D4 80 09 00 00 00 00 00 00 E6 [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 A0 D4 00 90 00 E8 [20:54:15]RAPDU: 90 00 [20:54:15]wFMCommunicate OK [20:54:15]SAM_PROTO_ClearQueue done [20:54:15]KKMCreateOFDPacket [20:54:15]OFDProtocolAddRootSTLVToBuf [20:54:15]FM_MakeSignedData [20:54:15]FM_MakeSignedData [20:54:15]SAM_PROTO_SignData [20:54:15]wFMCommunicate request_size=4 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 0D 01 02 [20:54:15]Write to MH i2c: E2 08 00 A1 D4 80 0D 01 02 00 00 00 00 EE [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 A1 D4 00 90 00 E9 [20:54:15]RAPDU: 90 00 [20:54:15]wFMCommunicate OK [20:54:15]wFMCommunicate request_size=255 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 81 05 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EC 02 00 35 04 06 00 EA [20:54:15]Write to MH i2c: E2 02 01 A2 D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 81 05 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EC 02 00 35 04 06 00 EA 00 00 53 [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]OFD Sender: No OFD packet to send [20:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 A2 D4 00 90 00 EA [20:54:15]RAPDU: 90 00 [20:54:15]wFMCommunicate OK [20:54:15]wFMCommunicate request_size=10 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 0D 02 02 05 98 1E 6F BD 6D [20:54:15]Write to MH i2c: E2 0D 00 A3 D4 80 0D 02 02 05 00 98 1E 6F BD 6D 00 00 4A [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 03 00 A3 D4 00 90 00 EB [20:54:15]RAPDU: 90 00 [20:54:15]wFMCommunicate OK [20:54:15]wFMCommunicate request_size=4 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 0D 03 02 [20:54:15]Write to MH i2c: E2 08 00 A4 D4 80 0D 03 02 00 00 00 00 F3 [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 0B 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 0B 00 A4 D4 00 00 7C A0 91 F1 A7 DC FC 90 00 11 [20:54:15]RAPDU: 00 7C A0 91 F1 A7 DC FC 90 00 [20:54:15]wFMCommunicate OK [20:54:15]SAM_PROTO_SignData done [20:54:15]FM_MakeSignedData done [20:54:15]CreateOFDProtocolMessage [20:54:15]wFMCommunicate request_size=4 [20:54:15]MH_SAM_APDU [20:54:15]CAPDU: 80 11 00 00 [20:54:15]Write to MH i2c: E2 08 00 A5 D4 80 11 00 00 00 00 00 00 F3 [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:15]Read from MH i2c: E2 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 17 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: E2 17 00 A5 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [20:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:54:15]wFMCommunicate OK [20:54:15]CreateOFDProtocolMessage done [20:54:15]OFDSenderStorePacket 191613 [20:54:15]StoreOFDPacket docnum=191613 [20:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F9 8F 07 01 48 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 81 05 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EC 02 00 35 04 06 00 EA 98 1E 6F BD 6D 00 7C A0 91 F1 A7 DC FC [20:54:15]CheckFolder [20:54:15]dirname=/storage/ofd_packets [20:54:15]CheckFolder done [20:54:15]ProducePacketName [20:54:15]name=ofd_packets/00191613 [20:54:15]NVStorageSaveData ofd_packets/00191613 [20:54:15]File name is /storage/ofd_packets/00191613 [20:54:15]Write 301 bytes [20:54:15]NVStorageSaveData done [20:54:15]OFDSenderStorePacket done [20:54:15]KKMCreateOFDPacket done [20:54:15]NVStorageSaveData kkm_last_timestamp [20:54:15]File name is /storage/kkm_last_timestamp [20:54:15]Write 4 bytes [20:54:15]NVStorageSaveData done [20:54:15]ExternCall_PrintAddStr [20:54:15]wPrintStart [20:54:15]Write to MH i2c: 01 00 00 A6 D4 7A [20:54:15]Write i2c OK [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: 01 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: 01 07 00 [20:54:15]MH_I2C_Read... [20:54:15]Read from MH i2c: 01 07 00 A6 D4 00 00 00 00 00 FF 0F 8F [20:54:15]RasterBufferAndPrint [20:54:15]line Счет N : (1)30916 [20:54:15]line ИНН: 02508201610067 [20:54:15]line Контрольно-Кассовый Чек [20:54:15]line ПРОДАЖА [20:54:15]line ТРК (МРК, ГНК) : 21 [20:54:15]line Товар: 2710124130 [20:54:15]line Аи-92-К-5 [20:54:15]line 4.490 * 66.90 [20:54:15]line = 300.38 [20:54:15]line НДС 12% НСП 1% [20:54:15]line > о реализуемом товаре [20:54:15]line ОКРУГЛЕНИЕ: -0.38 [20:54:15]line ИТОГО: 300.00 [20:54:15]line Внесено: 300.00 [20:54:15]line СДАЧА: 0.00 [20:54:15]line НСП 1% : 2.66 [20:54:15]line НДС 12% : 31.90 [20:54:15]line Наличными: 300.00 [20:54:15]line Безнал.: 0.00 [20:54:15]line Место: АЗС № 170 "Партнер Нефть" [20:54:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:54:15]line СНО: Общий режим [20:54:15]line Чек 352 25.10.2024 20:54 [20:54:15]line Смена: 540 ФФД: 1.0 [20:54:15]line ЗНМ: 0300000110 [20:54:15]line РНМ: 0000000000091776 [20:54:15]line Версия ККМ: 001 [20:54:15]line ФМ: 0000000000871754 [20:54:15]line ФД: 191613 [20:54:15]line ФПД: 257939066568045 [20:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T205425&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191613&fm=257939066568045&tin=02508201610067®Number=0000000000091776&sum=30000 [20:54:16]OFD Sender: Processing packet 191613 [packets to send 75, broken 74] [20:54:16]ProducePacketName [20:54:16]name=ofd_packets/00191613 [20:54:16]OFD Sender: To server: pG, [20:54:16]CommunicateWithHost lk.salyk.kg:30040 [20:54:16]ConnectInit lk.salyk.kg [20:54:16]written 0, free lines is 4095 [20:54:16]Connected sock=10 [20:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F9 8F 07 01 48 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 81 05 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EC 02 00 35 04 06 00 EA 98 1E 6F BD 6D 00 7C A0 91 F1 A7 DC FC [20:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A3 15 47 00 1F 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EC 02 00 F4 03 04 00 4E AA 1B 67 B6 04 01 00 00 B0 D2 FE 98 D3 21 6A 24 [20:54:16]CommunicateWithHost err = 0 [20:54:16]CheckOFDResponse [20:54:16]1017 (14) - 77093643461234 [20:54:16]1041 (16) - 0000000000871754 [20:54:16]1040 (4) - 191613 [20:54:16]1012 (4) - 25.10.2024 14:25 [20:54:16]1206 (1) - 0 [20:54:16]OFD Sender: Remove packet 191613 [20:54:16]ProducePacketName [20:54:16]name=ofd_packets/00191613 [20:54:16]NVStorageDeleteData [20:54:16]Write to MH i2c: 01 00 00 D1 D4 A5 [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: 01 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: 01 07 00 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: 01 07 00 D1 D4 00 00 00 00 00 C6 0C 7E [20:54:16]RasterBufferAndPrint [20:54:16]line [20:54:16]line [20:54:16]line [20:54:16]line [20:54:16]line [20:54:16]written 0, free lines is 3279 [20:54:16]MH_Cut [20:54:16]Write to MH i2c: D1 01 00 D8 D4 01 7E [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: D1 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: D1 01 00 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: D1 01 00 D8 D4 00 7D [20:54:16]Write to MH i2c: 01 00 00 D9 D4 AD [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:17]OFD Sender: No OFD packet to send [20:54:17]*** Cut start [20:54:17]*** Partial cut [20:54:17]*** CUTSNS_PIN = 1 [20:54:17]*** CUTSNS_PIN = 0 [20:54:17]*** Brake cut motor [20:54:18]Read from MH i2c: 01 [20:54:18]MH_I2C_Read... [20:54:18]*** Stop cut motor [20:54:18]*** Cut end [20:54:18]Read from MH i2c: 01 07 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 D9 D4 00 00 00 00 00 FF 0F C2 [20:54:18]process_action close_receipt done [20:54:18]requested_data is exist [20:54:18]produce_requested_data [20:54:18]requested_item fm.sn is exist - process it [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 11 00 00 [20:54:18]Write to MH i2c: E2 08 00 DA D4 80 11 00 00 00 00 00 00 28 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 17 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 17 00 DA D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [20:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:54:18]wFMCommunicate OK [20:54:18]requested_item fd.num is exist - process it [20:54:18]SAM_PROTO_GetFieldsCounters [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 13 00 00 [20:54:18]Write to MH i2c: E2 08 00 DB D4 80 13 00 00 00 00 00 00 2B [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 62 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 62 00 DB D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:18]wFMCommunicate OK [20:54:18]SAM_PROTO_GetFieldsCounters done [20:54:18]requested_item shift.num is exist - process it [20:54:18]requested_item shift.opened is exist - process it [20:54:18]req_shift_opened [20:54:18]FM_GetShiftState [20:54:18]SAM_PROTO_GetShiftState [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 13 01 00 [20:54:18]Write to MH i2c: E2 08 00 DC D4 80 13 01 00 00 00 00 00 2D [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0E 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0E 00 DC D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F0 [20:54:18]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:54:18]wFMCommunicate OK [20:54:18]SAM_PROTO_GetShiftState done [20:54:18]FM_GetShiftState done [20:54:18]req_shift_opened done [20:54:18]requested_item shift.open_date is exist - process it [20:54:18]req_shift_open_date [20:54:18]req_shift_open_date done [20:54:18]produce_requested_data done [20:54:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191613,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:54:18]process_action_free close_receipt [20:54:18]json_value_free [20:54:18]json_value_free done [20:54:18]process_json_proto returns [20:54:18]Send response to host [20:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191613,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:54:18]free response buf [20:54:18]execute_script done [20:54:18]execute_script returns [20:54:18]free content buf [20:54:18]Sock 9.Close socket [20:54:18]Sock 9.Thread stoped [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:06]accept exits with 8 [20:57:06]New connection [20:57:06]New thread 3066817892 created [20:57:06]Thread 3066961252 joined [20:57:06]Waiting for new connection... [20:57:06] Sock 8.Parse request [20:57:06]Sock 8.Check first char [20:57:06]Sock 8.First char is OK [20:57:06]request: POST /json_proto HTTP/1.0 [20:57:06]Method: POST [20:57:06]URL: /json_proto [20:57:06]Method is POST - this is cgi request [20:57:06]url: /json_proto [20:57:06]query_string will be loaded in cgi processing [20:57:06]execute_cgi json_proto POST (null) [20:57:06]execute_cgi path=json_proto method=POST [20:57:06]POST find Content-Length [20:57:06]Host: 172.17.63.131:8080 [20:57:06]Content-Length: 673 [20:57:06]Content-Type: application/json [20:57:06] [20:57:06]POST finish read [20:57:06]Found Content-Length = 673 [20:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:57:06]execute_script... [20:57: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)30917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:57:06]POST & json_proto [20:57:06]process_json_proto [20:57:06]json parsed OK: [20:57:06]protocol is kg_v1.0 [20:57:06]action value=close_receipt [20:57:06]process_action close_receipt [20:57:06]cmd_close_receipt [20:57:06]MH_GetDate [20:57:06]Write to MH i2c: F0 00 00 DD D4 A0 [20:57:06]Write i2c OK [20:57:06]MH_I2C_Read... [20:57:06]Read from MH i2c: F0 [20:57:06]MH_I2C_Read... [20:57:06]Read from MH i2c: F0 09 00 [20:57:06]MH_I2C_Read... [20:57:06]Read from MH i2c: F0 09 00 DD D4 00 2D 06 1C 67 22 05 6E 64 58 [20:57:06]GetLastDocTimeStamp 1729889665 [20:57:06]current date 1729889837 [20:57:06]FM_GetShiftState [20:57:06]SAM_PROTO_GetShiftState [20:57:06]wFMCommunicate request_size=4 [20:57:06]MH_SAM_APDU [20:57:06]CAPDU: 80 13 01 00 [20:57:06]Write to MH i2c: E2 08 00 DE D4 80 13 01 00 00 00 00 00 2F [20:57:06]Write i2c OK [20:57:06]MH_I2C_Read... [20:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:06]Read from MH i2c: E2 [20:57:06]MH_I2C_Read... [20:57:06]Read from MH i2c: E2 0E 00 [20:57:06]MH_I2C_Read... [20:57:06]Read from MH i2c: E2 0E 00 DE D4 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F2 [20:57:06]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:57:06]wFMCommunicate OK [20:57:06]SAM_PROTO_GetShiftState done [20:57:06]FM_GetShiftState done [20:57:06]opened in 1729816399 [20:57:06]opened+sec_in_day 1729902799 [20:57:06]quantity*price = 50063 [20:57:06]sum+1 = 50064 [20:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 353 25.10.2024 20:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191614 ФПД: 172939982458442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T205717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191614&fm=172939982458442&tin=02508201610067®Number=0000000000091776&sum=50000 [20:57:07]StoreToDocumentArchive [20:57:07]shift 540 fd 191614 [20:57:07]save to /storage/0540/doc_00191614 [20:57:07]save last doc name /storage/0540/doc_00191614 to /storage/kkm_last_doc_name [20:57:07]save OK [20:57:07]Clear old archive folders... [20:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:57:07]tlvbuf is 01831690 [20:57:07]SAM_PROTO_ClearQueue [20:57:07]wFMCommunicate request_size=4 [20:57:07]MH_SAM_APDU [20:57:07]CAPDU: 80 09 00 00 [20:57:07]Write to MH i2c: E2 08 00 EB D4 80 09 00 00 00 00 00 00 31 [20:57:07]Write i2c OK [20:57:07]MH_I2C_Read... [20:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:07]Read from MH i2c: E2 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 EB D4 00 90 00 33 [20:57:07]RAPDU: 90 00 [20:57:07]wFMCommunicate OK [20:57:07]SAM_PROTO_ClearQueue done [20:57:07]KKMCreateOFDPacket [20:57:07]OFDProtocolAddRootSTLVToBuf [20:57:07]FM_MakeSignedData [20:57:07]FM_MakeSignedData [20:57:07]SAM_PROTO_SignData [20:57:07]wFMCommunicate request_size=4 [20:57:07]MH_SAM_APDU [20:57:07]CAPDU: 80 0D 01 02 [20:57:07]Write to MH i2c: E2 08 00 EC D4 80 0D 01 02 00 00 00 00 39 [20:57:07]Write i2c OK [20:57:07]MH_I2C_Read... [20:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:07]Read from MH i2c: E2 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 EC D4 00 90 00 34 [20:57:07]RAPDU: 90 00 [20:57:07]wFMCommunicate OK [20:57:07]wFMCommunicate request_size=255 [20:57:07]MH_SAM_APDU [20:57:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 2D 06 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EC 02 00 35 04 06 00 9D 49 BA 38 [20:57:07]Write to MH i2c: E2 02 01 ED D4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 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 61 01 00 00 F4 03 04 00 2D 06 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EC 02 00 35 04 06 00 9D 49 BA 38 00 00 C5 [20:57:07]Write i2c OK [20:57:07]MH_I2C_Read... [20:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:07]Read from MH i2c: E2 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 [20:57:07]MH_I2C_Read... [20:57:07]Read from MH i2c: E2 03 00 ED D4 00 90 00 35 [20:57:07]RAPDU: 90 00 [20:57:07]wFMCommunicate OK [20:57:07]wFMCommunicate request_size=7 [20:57:07]MH_SAM_APDU [20:57:07]CAPDU: 80 0D 02 02 02 CE 4A [20:57:07]Write to MH i2c: E2 0A 00 EE D4 80 0D 02 02 02 00 CE 4A 00 00 58 [20:57:07]Write i2c OK [20:57:07]MH_I2C_Read... [20:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:08]Read from MH i2c: E2 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 03 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 03 00 EE D4 00 90 00 36 [20:57:08]RAPDU: 90 00 [20:57:08]wFMCommunicate OK [20:57:08]wFMCommunicate request_size=4 [20:57:08]MH_SAM_APDU [20:57:08]CAPDU: 80 0D 03 02 [20:57:08]Write to MH i2c: E2 08 00 EF D4 80 0D 03 02 00 00 00 00 3E [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:08]Read from MH i2c: E2 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 0B 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 0B 00 EF D4 00 3A 52 0B 6A 63 57 DA A9 90 00 7D [20:57:08]RAPDU: 3A 52 0B 6A 63 57 DA A9 90 00 [20:57:08]wFMCommunicate OK [20:57:08]SAM_PROTO_SignData done [20:57:08]FM_MakeSignedData done [20:57:08]CreateOFDProtocolMessage [20:57:08]wFMCommunicate request_size=4 [20:57:08]MH_SAM_APDU [20:57:08]CAPDU: 80 11 00 00 [20:57:08]Write to MH i2c: E2 08 00 F0 D4 80 11 00 00 00 00 00 00 3E [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:08]Read from MH i2c: E2 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 17 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: E2 17 00 F0 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [20:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:57:08]wFMCommunicate OK [20:57:08]CreateOFDProtocolMessage done [20:57:08]OFDSenderStorePacket 191614 [20:57:08]StoreOFDPacket docnum=191614 [20:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D2 68 04 01 A5 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 32 31 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 61 01 00 00 F4 03 04 00 2D 06 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EC 02 00 35 04 06 00 9D 49 BA 38 CE 4A 3A 52 0B 6A 63 57 DA A9 [20:57:08]CheckFolder [20:57:08]dirname=/storage/ofd_packets [20:57:08]CheckFolder done [20:57:08]ProducePacketName [20:57:08]name=ofd_packets/00191614 [20:57:08]NVStorageSaveData ofd_packets/00191614 [20:57:08]File name is /storage/ofd_packets/00191614 [20:57:08]Write 298 bytes [20:57:08]NVStorageSaveData done [20:57:08]OFDSenderStorePacket done [20:57:08]KKMCreateOFDPacket done [20:57:08]NVStorageSaveData kkm_last_timestamp [20:57:08]File name is /storage/kkm_last_timestamp [20:57:08]Write 4 bytes [20:57:08]NVStorageSaveData done [20:57:08]ExternCall_PrintAddStr [20:57:08]wPrintStart [20:57:08]Write to MH i2c: 01 00 00 F1 D4 C5 [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 F1 D4 00 00 00 00 00 FF 0F DA [20:57:08]RasterBufferAndPrint [20:57:08]line Счет N : (1)30917 [20:57:08]line ИНН: 02508201610067 [20:57:08]line Контрольно-Кассовый Чек [20:57:08]line ПРОДАЖА [20:57:08]line ТРК (МРК, ГНК) : 22 [20:57:08]line Товар: 2710194210 [20:57:08]line ДТ-К-5 [20:57:08]line 6.570 * 76.20 [20:57:08]line = 500.63 [20:57:08]line НДС 12% НСП 1% [20:57:08]line > о реализуемом товаре [20:57:08]line ОКРУГЛЕНИЕ: -0.63 [20:57:08]line ИТОГО: 500.00 [20:57:08]line Внесено: 500.00 [20:57:08]line СДАЧА: 0.00 [20:57:08]line НСП 1% : 4.43 [20:57:08]line НДС 12% : 53.16 [20:57:08]line Наличными: 500.00 [20:57:08]line Безнал.: 0.00 [20:57:08]line Место: АЗС № 170 "Партнер Нефть" [20:57:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:57:08]line СНО: Общий режим [20:57:08]line Чек 353 25.10.2024 20:57 [20:57:08]line Смена: 540 ФФД: 1.0 [20:57:08]line ЗНМ: 0300000110 [20:57:08]line РНМ: 0000000000091776 [20:57:08]line Версия ККМ: 001 [20:57:08]line ФМ: 0000000000871754 [20:57:08]line ФД: 191614 [20:57:08]line ФПД: 172939982458442 [20:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T205717&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191614&fm=172939982458442&tin=02508201610067®Number=0000000000091776&sum=50000 [20:57:08]OFD Sender: Processing packet 191614 [packets to send 75, broken 74] [20:57:08]ProducePacketName [20:57:08]name=ofd_packets/00191614 [20:57:08]OFD Sender: To server: pG, [20:57:08]CommunicateWithHost lk.salyk.kg:30040 [20:57:08]ConnectInit lk.salyk.kg [20:57:08]written 0, free lines is 4095 [20:57:08]Connected sock=10 [20:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D2 68 04 01 A5 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 32 31 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 61 01 00 00 F4 03 04 00 2D 06 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EC 02 00 35 04 06 00 9D 49 BA 38 CE 4A 3A 52 0B 6A 63 57 DA A9 [20:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A 6D 47 00 37 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 31 37 35 34 10 04 04 00 7E EC 02 00 F4 03 04 00 FA AA 1B 67 B6 04 01 00 00 BE 7D 1C 2E 96 17 FE 9F [20:57:08]CommunicateWithHost err = 0 [20:57:08]CheckOFDResponse [20:57:08]1017 (14) - 77093643461234 [20:57:08]1041 (16) - 0000000000871754 [20:57:08]1040 (4) - 191614 [20:57:08]1012 (4) - 25.10.2024 14:28 [20:57:08]1206 (1) - 0 [20:57:08]OFD Sender: Remove packet 191614 [20:57:08]ProducePacketName [20:57:08]name=ofd_packets/00191614 [20:57:08]NVStorageDeleteData [20:57:08]Write to MH i2c: 01 00 00 1C D5 F1 [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 1C D5 00 00 00 00 00 BB 0C BF [20:57:08]RasterBufferAndPrint [20:57:08]line [20:57:08]line [20:57:08]line [20:57:08]line [20:57:08]line [20:57:08]written 0, free lines is 3266 [20:57:08]MH_Cut [20:57:08]Write to MH i2c: D1 01 00 23 D5 01 CA [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: D1 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: D1 01 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: D1 01 00 23 D5 00 C9 [20:57:08]Write to MH i2c: 01 00 00 24 D5 F9 [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:09]OFD Sender: No OFD packet to send [20:57:09]*** Cut start [20:57:09]*** Partial cut [20:57:09]*** CUTSNS_PIN = 1 [20:57:09]*** CUTSNS_PIN = 0 [20:57:10]*** Brake cut motor [20:57:10]Read from MH i2c: 01 [20:57:10]MH_I2C_Read... [20:57:10]*** Stop cut motor [20:57:10]*** Cut end [20:57:10]Read from MH i2c: 01 07 00 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: 01 07 00 24 D5 00 00 00 00 00 FF 0F 0E [20:57:10]process_action close_receipt done [20:57:10]requested_data is exist [20:57:10]produce_requested_data [20:57:10]requested_item fm.sn is exist - process it [20:57:10]wFMCommunicate request_size=4 [20:57:10]MH_SAM_APDU [20:57:10]CAPDU: 80 11 00 00 [20:57:10]Write to MH i2c: E2 08 00 25 D5 80 11 00 00 00 00 00 00 74 [20:57:10]Write i2c OK [20:57:10]MH_I2C_Read... [20:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:10]Read from MH i2c: E2 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 17 00 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 17 00 25 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [20:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:57:10]wFMCommunicate OK [20:57:10]requested_item fd.num is exist - process it [20:57:10]SAM_PROTO_GetFieldsCounters [20:57:10]wFMCommunicate request_size=4 [20:57:10]MH_SAM_APDU [20:57:10]CAPDU: 80 13 00 00 [20:57:10]Write to MH i2c: E2 08 00 26 D5 80 13 00 00 00 00 00 00 77 [20:57:10]Write i2c OK [20:57:10]MH_I2C_Read... [20:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:10]Read from MH i2c: E2 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 62 00 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 62 00 26 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [20:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:10]wFMCommunicate OK [20:57:10]SAM_PROTO_GetFieldsCounters done [20:57:10]requested_item shift.num is exist - process it [20:57:10]requested_item shift.opened is exist - process it [20:57:10]req_shift_opened [20:57:10]FM_GetShiftState [20:57:10]SAM_PROTO_GetShiftState [20:57:10]wFMCommunicate request_size=4 [20:57:10]MH_SAM_APDU [20:57:10]CAPDU: 80 13 01 00 [20:57:10]Write to MH i2c: E2 08 00 27 D5 80 13 01 00 00 00 00 00 79 [20:57:10]Write i2c OK [20:57:10]MH_I2C_Read... [20:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:10]Read from MH i2c: E2 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 0E 00 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: E2 0E 00 27 D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3C [20:57:10]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [20:57:10]wFMCommunicate OK [20:57:10]SAM_PROTO_GetShiftState done [20:57:10]FM_GetShiftState done [20:57:10]req_shift_opened done [20:57:10]requested_item shift.open_date is exist - process it [20:57:10]req_shift_open_date [20:57:10]req_shift_open_date done [20:57:10]produce_requested_data done [20:57:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191614,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [20:57:10]process_action_free close_receipt [20:57:10]json_value_free [20:57:10]json_value_free done [20:57:10]process_json_proto returns [20:57:10]Send response to host [20:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191614,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [20:57:10]free response buf [20:57:10]execute_script done [20:57:10]execute_script returns [20:57:10]free content buf [20:57:10]Sock 8.Close socket [20:57:10]Sock 8.Thread stoped [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:36]accept exits with 9 [21:02:36]New connection [21:02:36]New thread 3066961252 created [21:02:36]Thread 3066817892 joined [21:02:36]Waiting for new connection... [21:02:36] Sock 9.Parse request [21:02:36]Sock 9.Check first char [21:02:36]Sock 9.First char is OK [21:02:36]request: POST /json_proto HTTP/1.0 [21:02:36]Method: POST [21:02:36]URL: /json_proto [21:02:36]Method is POST - this is cgi request [21:02:36]url: /json_proto [21:02:36]query_string will be loaded in cgi processing [21:02:36]execute_cgi json_proto POST (null) [21:02:36]execute_cgi path=json_proto method=POST [21:02:36]POST find Content-Length [21:02:36]Host: 172.17.63.131:8080 [21:02:36]Content-Length: 676 [21:02:36]Content-Type: application/json [21:02:36] [21:02:36]POST finish read [21:02:36]Found Content-Length = 676 [21:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:36]execute_script... [21:02: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)30919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:36]POST & json_proto [21:02:36]process_json_proto [21:02:36]json parsed OK: [21:02:36]protocol is kg_v1.0 [21:02:36]action value=close_receipt [21:02:36]process_action close_receipt [21:02:36]cmd_close_receipt [21:02:36]MH_GetDate [21:02:36]Write to MH i2c: F0 00 00 28 D5 EC [21:02:36]Write i2c OK [21:02:36]MH_I2C_Read... [21:02:36]Read from MH i2c: F0 [21:02:36]MH_I2C_Read... [21:02:36]Read from MH i2c: F0 09 00 [21:02:36]MH_I2C_Read... [21:02:36]Read from MH i2c: F0 09 00 28 D5 00 77 07 1C 67 22 05 6E 64 EF [21:02:36]GetLastDocTimeStamp 1729889837 [21:02:36]current date 1729890167 [21:02:36]FM_GetShiftState [21:02:36]SAM_PROTO_GetShiftState [21:02:36]wFMCommunicate request_size=4 [21:02:36]MH_SAM_APDU [21:02:36]CAPDU: 80 13 01 00 [21:02:36]Write to MH i2c: E2 08 00 29 D5 80 13 01 00 00 00 00 00 7B [21:02:36]Write i2c OK [21:02:36]MH_I2C_Read... [21:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:36]Read from MH i2c: E2 [21:02:36]MH_I2C_Read... [21:02:36]Read from MH i2c: E2 0E 00 [21:02:36]MH_I2C_Read... [21:02:36]Read from MH i2c: E2 0E 00 29 D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 3E [21:02:36]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:02:36]wFMCommunicate OK [21:02:36]SAM_PROTO_GetShiftState done [21:02:36]FM_GetShiftState done [21:02:36]opened in 1729816399 [21:02:36]opened+sec_in_day 1729902799 [21:02:36]quantity*price = 50041 [21:02:36]sum+1 = 50042 [21:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 354 25.10.2024 21:02 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191615 ФПД: 257959220500581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T210247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191615&fm=257959220500581&tin=02508201610067®Number=0000000000091776&sum=50000 [21:02:37]StoreToDocumentArchive [21:02:37]shift 540 fd 191615 [21:02:37]save to /storage/0540/doc_00191615 [21:02:37]save last doc name /storage/0540/doc_00191615 to /storage/kkm_last_doc_name [21:02:37]save OK [21:02:37]Clear old archive folders... [21:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:37]tlvbuf is 0160B8E0 [21:02:37]SAM_PROTO_ClearQueue [21:02:37]wFMCommunicate request_size=4 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 09 00 00 [21:02:37]Write to MH i2c: E2 08 00 36 D5 80 09 00 00 00 00 00 00 7D [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 36 D5 00 90 00 7F [21:02:37]RAPDU: 90 00 [21:02:37]wFMCommunicate OK [21:02:37]SAM_PROTO_ClearQueue done [21:02:37]KKMCreateOFDPacket [21:02:37]OFDProtocolAddRootSTLVToBuf [21:02:37]FM_MakeSignedData [21:02:37]FM_MakeSignedData [21:02:37]SAM_PROTO_SignData [21:02:37]wFMCommunicate request_size=4 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 0D 01 02 [21:02:37]Write to MH i2c: E2 08 00 37 D5 80 0D 01 02 00 00 00 00 85 [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 37 D5 00 90 00 80 [21:02:37]RAPDU: 90 00 [21:02:37]wFMCommunicate OK [21:02:37]wFMCommunicate request_size=255 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 77 07 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EC 02 00 35 04 06 00 EA [21:02:37]Write to MH i2c: E2 02 01 38 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 77 07 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EC 02 00 35 04 06 00 EA 00 00 F2 [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 38 D5 00 90 00 81 [21:02:37]RAPDU: 90 00 [21:02:37]wFMCommunicate OK [21:02:37]wFMCommunicate request_size=10 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 0D 02 02 05 9C CF B4 58 65 [21:02:37]Write to MH i2c: E2 0D 00 39 D5 80 0D 02 02 05 00 9C CF B4 58 65 00 00 6E [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 03 00 39 D5 00 90 00 82 [21:02:37]RAPDU: 90 00 [21:02:37]wFMCommunicate OK [21:02:37]wFMCommunicate request_size=4 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 0D 03 02 [21:02:37]Write to MH i2c: E2 08 00 3A D5 80 0D 03 02 00 00 00 00 8A [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 0B 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 0B 00 3A D5 00 72 13 84 D0 C1 0D 52 09 90 00 8D [21:02:37]RAPDU: 72 13 84 D0 C1 0D 52 09 90 00 [21:02:37]wFMCommunicate OK [21:02:37]SAM_PROTO_SignData done [21:02:37]FM_MakeSignedData done [21:02:37]CreateOFDProtocolMessage [21:02:37]wFMCommunicate request_size=4 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 11 00 00 [21:02:37]Write to MH i2c: E2 08 00 3B D5 80 11 00 00 00 00 00 00 8A [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 17 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 17 00 3B D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [21:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:02:37]wFMCommunicate OK [21:02:37]CreateOFDProtocolMessage done [21:02:37]OFDSenderStorePacket 191615 [21:02:37]StoreOFDPacket docnum=191615 [21:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 50 07 01 3C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 77 07 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EC 02 00 35 04 06 00 EA 9C CF B4 58 65 72 13 84 D0 C1 0D 52 09 [21:02:37]CheckFolder [21:02:37]dirname=/storage/ofd_packets [21:02:37]CheckFolder done [21:02:37]ProducePacketName [21:02:37]name=ofd_packets/00191615 [21:02:37]NVStorageSaveData ofd_packets/00191615 [21:02:37]File name is /storage/ofd_packets/00191615 [21:02:37]Write 301 bytes [21:02:37]NVStorageSaveData done [21:02:37]OFDSenderStorePacket done [21:02:37]KKMCreateOFDPacket done [21:02:37]NVStorageSaveData kkm_last_timestamp [21:02:37]File name is /storage/kkm_last_timestamp [21:02:37]Write 4 bytes [21:02:37]NVStorageSaveData done [21:02:37]ExternCall_PrintAddStr [21:02:37]wPrintStart [21:02:37]Write to MH i2c: 01 00 00 3C D5 11 [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: 01 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: 01 07 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: 01 07 00 3C D5 00 00 00 00 00 FF 0F 26 [21:02:37]RasterBufferAndPrint [21:02:37]line Счет N : (1)30919 [21:02:37]line ИНН: 02508201610067 [21:02:37]line Контрольно-Кассовый Чек [21:02:37]line ПРОДАЖА [21:02:37]line ТРК (МРК, ГНК) : 21 [21:02:37]line Товар: 2710124130 [21:02:37]line Аи-92-К-5 [21:02:37]line 7.480 * 66.90 [21:02:37]line = 500.41 [21:02:37]line НДС 12% НСП 1% [21:02:37]line > о реализуемом товаре [21:02:37]line ОКРУГЛЕНИЕ: -0.41 [21:02:37]line ИТОГО: 500.00 [21:02:37]line Внесено: 500.00 [21:02:37]line СДАЧА: 0.00 [21:02:37]line НСП 1% : 4.43 [21:02:37]line НДС 12% : 53.14 [21:02:37]line Наличными: 500.00 [21:02:37]line Безнал.: 0.00 [21:02:37]line Место: АЗС № 170 "Партнер Нефть" [21:02:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:02:37]line СНО: Общий режим [21:02:37]line Чек 354 25.10.2024 21:02 [21:02:37]line Смена: 540 ФФД: 1.0 [21:02:37]line ЗНМ: 0300000110 [21:02:37]line РНМ: 0000000000091776 [21:02:37]line Версия ККМ: 001 [21:02:37]line ФМ: 0000000000871754 [21:02:37]line ФД: 191615 [21:02:37]line ФПД: 257959220500581 [21:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T210247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191615&fm=257959220500581&tin=02508201610067®Number=0000000000091776&sum=50000 [21:02:38]OFD Sender: Processing packet 191615 [packets to send 75, broken 74] [21:02:38]ProducePacketName [21:02:38]name=ofd_packets/00191615 [21:02:38]OFD Sender: To server: pG, [21:02:38]CommunicateWithHost lk.salyk.kg:30040 [21:02:38]ConnectInit lk.salyk.kg [21:02:38]written 0, free lines is 4095 [21:02:38]Connected sock=10 [21:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 50 07 01 3C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 77 07 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EC 02 00 35 04 06 00 EA 9C CF B4 58 65 72 13 84 D0 C1 0D 52 09 [21:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 1C 47 00 CB A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EC 02 00 F4 03 04 00 44 AC 1B 67 B6 04 01 00 00 04 B7 23 62 1D F8 B4 EA [21:02:38]CommunicateWithHost err = 0 [21:02:38]CheckOFDResponse [21:02:38]1017 (14) - 77093643461234 [21:02:38]1041 (16) - 0000000000871754 [21:02:38]1040 (4) - 191615 [21:02:38]1012 (4) - 25.10.2024 14:33 [21:02:38]1206 (1) - 0 [21:02:38]OFD Sender: Remove packet 191615 [21:02:38]ProducePacketName [21:02:38]name=ofd_packets/00191615 [21:02:38]NVStorageDeleteData [21:02:38]Write to MH i2c: 01 00 00 67 D5 3C [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 67 D5 00 00 00 00 00 B4 0C 03 [21:02:38]RasterBufferAndPrint [21:02:38]line [21:02:38]line [21:02:38]line [21:02:38]line [21:02:38]line [21:02:38]written 0, free lines is 3259 [21:02:38]MH_Cut [21:02:38]Write to MH i2c: D1 01 00 6E D5 01 15 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: D1 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: D1 01 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: D1 01 00 6E D5 00 14 [21:02:38]Write to MH i2c: 01 00 00 6F D5 44 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]OFD Sender: No OFD packet to send [21:02:39]*** Cut start [21:02:39]*** Partial cut [21:02:39]*** CUTSNS_PIN = 1 [21:02:39]*** CUTSNS_PIN = 0 [21:02:39]*** Brake cut motor [21:02:40]Read from MH i2c: 01 [21:02:40]MH_I2C_Read... [21:02:40]*** Stop cut motor [21:02:40]*** Cut end [21:02:40]Read from MH i2c: 01 07 00 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: 01 07 00 6F D5 00 00 00 00 00 FF 0F 59 [21:02:40]process_action close_receipt done [21:02:40]requested_data is exist [21:02:40]produce_requested_data [21:02:40]requested_item fm.sn is exist - process it [21:02:40]wFMCommunicate request_size=4 [21:02:40]MH_SAM_APDU [21:02:40]CAPDU: 80 11 00 00 [21:02:40]Write to MH i2c: E2 08 00 70 D5 80 11 00 00 00 00 00 00 BF [21:02:40]Write i2c OK [21:02:40]MH_I2C_Read... [21:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:40]Read from MH i2c: E2 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 17 00 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 17 00 70 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [21:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:02:40]wFMCommunicate OK [21:02:40]requested_item fd.num is exist - process it [21:02:40]SAM_PROTO_GetFieldsCounters [21:02:40]wFMCommunicate request_size=4 [21:02:40]MH_SAM_APDU [21:02:40]CAPDU: 80 13 00 00 [21:02:40]Write to MH i2c: E2 08 00 71 D5 80 13 00 00 00 00 00 00 C2 [21:02:40]Write i2c OK [21:02:40]MH_I2C_Read... [21:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:40]Read from MH i2c: E2 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 62 00 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 62 00 71 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [21:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:40]wFMCommunicate OK [21:02:40]SAM_PROTO_GetFieldsCounters done [21:02:40]requested_item shift.num is exist - process it [21:02:40]requested_item shift.opened is exist - process it [21:02:40]req_shift_opened [21:02:40]FM_GetShiftState [21:02:40]SAM_PROTO_GetShiftState [21:02:40]wFMCommunicate request_size=4 [21:02:40]MH_SAM_APDU [21:02:40]CAPDU: 80 13 01 00 [21:02:40]Write to MH i2c: E2 08 00 72 D5 80 13 01 00 00 00 00 00 C4 [21:02:40]Write i2c OK [21:02:40]MH_I2C_Read... [21:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:40]Read from MH i2c: E2 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 0E 00 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: E2 0E 00 72 D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 87 [21:02:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:02:40]wFMCommunicate OK [21:02:40]SAM_PROTO_GetShiftState done [21:02:40]FM_GetShiftState done [21:02:40]req_shift_opened done [21:02:40]requested_item shift.open_date is exist - process it [21:02:40]req_shift_open_date [21:02:40]req_shift_open_date done [21:02:40]produce_requested_data done [21:02:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191615,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:02:40]process_action_free close_receipt [21:02:40]json_value_free [21:02:40]json_value_free done [21:02:40]process_json_proto returns [21:02:40]Send response to host [21:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191615,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:02:40]free response buf [21:02:40]execute_script done [21:02:40]execute_script returns [21:02:40]free content buf [21:02:40]Sock 9.Close socket [21:02:40]Sock 9.Thread stoped [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:22]accept exits with 8 [21:05:22]New connection [21:05:22]New thread 3066817892 created [21:05:22]Thread 3066961252 joined [21:05:22]Waiting for new connection... [21:05:22] Sock 8.Parse request [21:05:22]Sock 8.Check first char [21:05:22]Sock 8.First char is OK [21:05:22]request: POST /json_proto HTTP/1.0 [21:05:22]Method: POST [21:05:22]URL: /json_proto [21:05:22]Method is POST - this is cgi request [21:05:22]url: /json_proto [21:05:22]query_string will be loaded in cgi processing [21:05:22]execute_cgi json_proto POST (null) [21:05:22]execute_cgi path=json_proto method=POST [21:05:22]POST find Content-Length [21:05:22]Host: 172.17.63.131:8080 [21:05:22]Content-Length: 676 [21:05:22]Content-Type: application/json [21:05:22] [21:05:22]POST finish read [21:05:22]Found Content-Length = 676 [21:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:22]execute_script... [21:05: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)30920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:22]POST & json_proto [21:05:22]process_json_proto [21:05:22]json parsed OK: [21:05:22]protocol is kg_v1.0 [21:05:22]action value=close_receipt [21:05:22]process_action close_receipt [21:05:22]cmd_close_receipt [21:05:22]MH_GetDate [21:05:22]Write to MH i2c: F0 00 00 73 D5 37 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: F0 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: F0 09 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: F0 09 00 73 D5 00 1D 08 1C 67 22 05 6E 64 E1 [21:05:22]GetLastDocTimeStamp 1729890167 [21:05:22]current date 1729890333 [21:05:22]FM_GetShiftState [21:05:22]SAM_PROTO_GetShiftState [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 13 01 00 [21:05:22]Write to MH i2c: E2 08 00 74 D5 80 13 01 00 00 00 00 00 C6 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0E 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0E 00 74 D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 89 [21:05:22]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_GetShiftState done [21:05:22]FM_GetShiftState done [21:05:22]opened in 1729816399 [21:05:22]opened+sec_in_day 1729902799 [21:05:22]quantity*price = 26024 [21:05:22]sum+1 = 26025 [21:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 355 25.10.2024 21:05 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191616 ФПД: 71694153918447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T210533&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191616&fm=71694153918447&tin=02508201610067®Number=0000000000091776&sum=26000 [21:05:23]StoreToDocumentArchive [21:05:23]shift 540 fd 191616 [21:05:23]save to /storage/0540/doc_00191616 [21:05:23]save last doc name /storage/0540/doc_00191616 to /storage/kkm_last_doc_name [21:05:23]save OK [21:05:23]Clear old archive folders... [21:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:23]tlvbuf is 019D2D80 [21:05:23]SAM_PROTO_ClearQueue [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 09 00 00 [21:05:23]Write to MH i2c: E2 08 00 81 D5 80 09 00 00 00 00 00 00 C8 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 81 D5 00 90 00 CA [21:05:23]RAPDU: 90 00 [21:05:23]wFMCommunicate OK [21:05:23]SAM_PROTO_ClearQueue done [21:05:23]KKMCreateOFDPacket [21:05:23]OFDProtocolAddRootSTLVToBuf [21:05:23]FM_MakeSignedData [21:05:23]FM_MakeSignedData [21:05:23]SAM_PROTO_SignData [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 0D 01 02 [21:05:23]Write to MH i2c: E2 08 00 82 D5 80 0D 01 02 00 00 00 00 D0 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 82 D5 00 90 00 CB [21:05:23]RAPDU: 90 00 [21:05:23]wFMCommunicate OK [21:05:23]wFMCommunicate request_size=255 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 1D 08 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EC 02 00 35 04 06 00 41 [21:05:23]Write to MH i2c: E2 02 01 83 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 1D 08 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EC 02 00 35 04 06 00 41 00 00 E8 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 83 D5 00 90 00 CC [21:05:23]RAPDU: 90 00 [21:05:23]wFMCommunicate OK [21:05:23]wFMCommunicate request_size=10 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 0D 02 02 05 34 98 93 A7 EF [21:05:23]Write to MH i2c: E2 0D 00 84 D5 80 0D 02 02 05 00 34 98 93 A7 EF 00 00 D2 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 03 00 84 D5 00 90 00 CD [21:05:23]RAPDU: 90 00 [21:05:23]wFMCommunicate OK [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 0D 03 02 [21:05:23]Write to MH i2c: E2 08 00 85 D5 80 0D 03 02 00 00 00 00 D5 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 0B 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 0B 00 85 D5 00 F7 D4 75 FD BC E0 15 CC 90 00 90 [21:05:23]RAPDU: F7 D4 75 FD BC E0 15 CC 90 00 [21:05:23]wFMCommunicate OK [21:05:23]SAM_PROTO_SignData done [21:05:23]FM_MakeSignedData done [21:05:23]CreateOFDProtocolMessage [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 11 00 00 [21:05:23]Write to MH i2c: E2 08 00 86 D5 80 11 00 00 00 00 00 00 D5 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 86 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [21:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:05:23]wFMCommunicate OK [21:05:23]CreateOFDProtocolMessage done [21:05:23]OFDSenderStorePacket 191616 [21:05:23]StoreOFDPacket docnum=191616 [21:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 BC 07 01 73 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 1D 08 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EC 02 00 35 04 06 00 41 34 98 93 A7 EF F7 D4 75 FD BC E0 15 CC [21:05:23]CheckFolder [21:05:23]dirname=/storage/ofd_packets [21:05:23]CheckFolder done [21:05:23]ProducePacketName [21:05:23]name=ofd_packets/00191616 [21:05:23]NVStorageSaveData ofd_packets/00191616 [21:05:23]File name is /storage/ofd_packets/00191616 [21:05:23]Write 301 bytes [21:05:23]NVStorageSaveData done [21:05:23]OFDSenderStorePacket done [21:05:23]KKMCreateOFDPacket done [21:05:23]NVStorageSaveData kkm_last_timestamp [21:05:23]File name is /storage/kkm_last_timestamp [21:05:23]Write 4 bytes [21:05:23]NVStorageSaveData done [21:05:23]ExternCall_PrintAddStr [21:05:23]wPrintStart [21:05:23]Write to MH i2c: 01 00 00 87 D5 5C [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 87 D5 00 00 00 00 00 FF 0F 71 [21:05:23]RasterBufferAndPrint [21:05:23]line Счет N : (1)30920 [21:05:23]line ИНН: 02508201610067 [21:05:23]line Контрольно-Кассовый Чек [21:05:23]line ПРОДАЖА [21:05:23]line ТРК (МРК, ГНК) : 21 [21:05:23]line Товар: 2710124130 [21:05:23]line Аи-92-К-5 [21:05:23]line 3.890 * 66.90 [21:05:23]line = 260.24 [21:05:23]line НДС 12% НСП 1% [21:05:23]line > о реализуемом товаре [21:05:23]line ОКРУГЛЕНИЕ: -0.24 [21:05:23]line ИТОГО: 260.00 [21:05:23]line Внесено: 260.00 [21:05:23]line СДАЧА: 0.00 [21:05:23]line НСП 1% : 2.30 [21:05:23]line НДС 12% : 27.64 [21:05:23]line Наличными: 260.00 [21:05:23]line Безнал.: 0.00 [21:05:23]line Место: АЗС № 170 "Партнер Нефть" [21:05:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:05:23]line СНО: Общий режим [21:05:23]line Чек 355 25.10.2024 21:05 [21:05:23]line Смена: 540 ФФД: 1.0 [21:05:23]line ЗНМ: 0300000110 [21:05:23]line РНМ: 0000000000091776 [21:05:23]line Версия ККМ: 001 [21:05:23]line ФМ: 0000000000871754 [21:05:23]line ФД: 191616 [21:05:23]line ФПД: 71694153918447 [21:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T210533&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191616&fm=71694153918447&tin=02508201610067®Number=0000000000091776&sum=26000 [21:05:24]OFD Sender: Processing packet 191616 [packets to send 75, broken 74] [21:05:24]ProducePacketName [21:05:24]name=ofd_packets/00191616 [21:05:24]OFD Sender: To server: pG, [21:05:24]CommunicateWithHost lk.salyk.kg:30040 [21:05:24]ConnectInit lk.salyk.kg [21:05:24]written 0, free lines is 4095 [21:05:24]Connected sock=10 [21:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 BC 07 01 73 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 1D 08 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EC 02 00 35 04 06 00 41 34 98 93 A7 EF F7 D4 75 FD BC E0 15 CC [21:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 61 47 00 99 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EC 02 00 F4 03 04 00 EA AC 1B 67 B6 04 01 00 00 A9 4E 03 D7 B5 CF 81 E5 [21:05:24]CommunicateWithHost err = 0 [21:05:24]CheckOFDResponse [21:05:24]1017 (14) - 77093643461234 [21:05:24]1041 (16) - 0000000000871754 [21:05:24]1040 (4) - 191616 [21:05:24]1012 (4) - 25.10.2024 14:36 [21:05:24]1206 (1) - 0 [21:05:24]OFD Sender: Remove packet 191616 [21:05:24]ProducePacketName [21:05:24]name=ofd_packets/00191616 [21:05:24]NVStorageDeleteData [21:05:24]Write to MH i2c: 01 00 00 B2 D5 87 [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: 01 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: 01 07 00 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: 01 07 00 B2 D5 00 00 00 00 00 C5 0C 5F [21:05:24]RasterBufferAndPrint [21:05:24]line [21:05:24]line [21:05:24]line [21:05:24]line [21:05:24]line [21:05:24]written 0, free lines is 3278 [21:05:24]MH_Cut [21:05:24]Write to MH i2c: D1 01 00 B9 D5 01 60 [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: D1 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: D1 01 00 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: D1 01 00 B9 D5 00 5F [21:05:24]Write to MH i2c: 01 00 00 BA D5 8F [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:25]OFD Sender: No OFD packet to send [21:05:25]*** Cut start [21:05:25]*** Partial cut [21:05:25]*** CUTSNS_PIN = 1 [21:05:25]*** CUTSNS_PIN = 0 [21:05:25]*** Brake cut motor [21:05:26]Read from MH i2c: 01 [21:05:26]MH_I2C_Read... [21:05:26]*** Stop cut motor [21:05:26]*** Cut end [21:05:26]Read from MH i2c: 01 07 00 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: 01 07 00 BA D5 00 00 00 00 00 FF 0F A4 [21:05:26]process_action close_receipt done [21:05:26]requested_data is exist [21:05:26]produce_requested_data [21:05:26]requested_item fm.sn is exist - process it [21:05:26]wFMCommunicate request_size=4 [21:05:26]MH_SAM_APDU [21:05:26]CAPDU: 80 11 00 00 [21:05:26]Write to MH i2c: E2 08 00 BB D5 80 11 00 00 00 00 00 00 0A [21:05:26]Write i2c OK [21:05:26]MH_I2C_Read... [21:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:26]Read from MH i2c: E2 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 17 00 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 17 00 BB D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [21:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:05:26]wFMCommunicate OK [21:05:26]requested_item fd.num is exist - process it [21:05:26]SAM_PROTO_GetFieldsCounters [21:05:26]wFMCommunicate request_size=4 [21:05:26]MH_SAM_APDU [21:05:26]CAPDU: 80 13 00 00 [21:05:26]Write to MH i2c: E2 08 00 BC D5 80 13 00 00 00 00 00 00 0D [21:05:26]Write i2c OK [21:05:26]MH_I2C_Read... [21:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:26]Read from MH i2c: E2 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 62 00 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 62 00 BC D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:26]wFMCommunicate OK [21:05:26]SAM_PROTO_GetFieldsCounters done [21:05:26]requested_item shift.num is exist - process it [21:05:26]requested_item shift.opened is exist - process it [21:05:26]req_shift_opened [21:05:26]FM_GetShiftState [21:05:26]SAM_PROTO_GetShiftState [21:05:26]wFMCommunicate request_size=4 [21:05:26]MH_SAM_APDU [21:05:26]CAPDU: 80 13 01 00 [21:05:26]Write to MH i2c: E2 08 00 BD D5 80 13 01 00 00 00 00 00 0F [21:05:26]Write i2c OK [21:05:26]MH_I2C_Read... [21:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:26]Read from MH i2c: E2 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 0E 00 [21:05:26]MH_I2C_Read... [21:05:26]Read from MH i2c: E2 0E 00 BD D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D2 [21:05:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:05:26]wFMCommunicate OK [21:05:26]SAM_PROTO_GetShiftState done [21:05:26]FM_GetShiftState done [21:05:26]req_shift_opened done [21:05:26]requested_item shift.open_date is exist - process it [21:05:26]req_shift_open_date [21:05:26]req_shift_open_date done [21:05:26]produce_requested_data done [21:05:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191616,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:05:26]process_action_free close_receipt [21:05:26]json_value_free [21:05:26]json_value_free done [21:05:26]process_json_proto returns [21:05:26]Send response to host [21:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191616,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:05:26]free response buf [21:05:26]execute_script done [21:05:26]execute_script returns [21:05:26]free content buf [21:05:26]Sock 8.Close socket [21:05:26]Sock 8.Thread stoped [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09: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:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]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:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19: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:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:32]accept exits with 9 [21:20:32]New connection [21:20:32]New thread 3066961252 created [21:20:32]Thread 3066817892 joined [21:20:32]Waiting for new connection... [21:20:32] Sock 9.Parse request [21:20:32]Sock 9.Check first char [21:20:32]Sock 9.First char is OK [21:20:32]request: POST /json_proto HTTP/1.0 [21:20:32]Method: POST [21:20:32]URL: /json_proto [21:20:32]Method is POST - this is cgi request [21:20:32]url: /json_proto [21:20:32]query_string will be loaded in cgi processing [21:20:32]execute_cgi json_proto POST (null) [21:20:32]execute_cgi path=json_proto method=POST [21:20:32]POST find Content-Length [21:20:32]Host: 172.17.63.131:8080 [21:20:32]Content-Length: 676 [21:20:32]Content-Type: application/json [21:20:32] [21:20:32]POST finish read [21:20:32]Found Content-Length = 676 [21:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:32]execute_script... [21:20: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)30921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:32]POST & json_proto [21:20:32]process_json_proto [21:20:32]json parsed OK: [21:20:32]protocol is kg_v1.0 [21:20:32]action value=close_receipt [21:20:32]process_action close_receipt [21:20:32]cmd_close_receipt [21:20:32]MH_GetDate [21:20:32]Write to MH i2c: F0 00 00 BE D5 82 [21:20:32]Write i2c OK [21:20:32]MH_I2C_Read... [21:20:32]Read from MH i2c: F0 [21:20:32]MH_I2C_Read... [21:20:32]Read from MH i2c: F0 09 00 [21:20:32]MH_I2C_Read... [21:20:32]Read from MH i2c: F0 09 00 BE D5 00 AB 0B 1C 67 22 05 6E 64 BD [21:20:32]GetLastDocTimeStamp 1729890333 [21:20:32]current date 1729891243 [21:20:32]FM_GetShiftState [21:20:32]SAM_PROTO_GetShiftState [21:20:32]wFMCommunicate request_size=4 [21:20:32]MH_SAM_APDU [21:20:32]CAPDU: 80 13 01 00 [21:20:32]Write to MH i2c: E2 08 00 BF D5 80 13 01 00 00 00 00 00 11 [21:20:32]Write i2c OK [21:20:32]MH_I2C_Read... [21:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:32]Read from MH i2c: E2 [21:20:32]MH_I2C_Read... [21:20:32]Read from MH i2c: E2 0E 00 [21:20:32]MH_I2C_Read... [21:20:32]Read from MH i2c: E2 0E 00 BF D5 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D4 [21:20:32]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:20:32]wFMCommunicate OK [21:20:32]SAM_PROTO_GetShiftState done [21:20:32]FM_GetShiftState done [21:20:32]opened in 1729816399 [21:20:32]opened+sec_in_day 1729902799 [21:20:32]quantity*price = 20003 [21:20:32]sum+1 = 20004 [21:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 356 25.10.2024 21:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191617 ФПД: 244534949158847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T212043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191617&fm=244534949158847&tin=02508201610067®Number=0000000000091776&sum=20000 [21:20:34]StoreToDocumentArchive [21:20:34]shift 540 fd 191617 [21:20:34]save to /storage/0540/doc_00191617 [21:20:34]save last doc name /storage/0540/doc_00191617 to /storage/kkm_last_doc_name [21:20:34]save OK [21:20:34]Clear old archive folders... [21:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:34]tlvbuf is 0178A4A0 [21:20:34]SAM_PROTO_ClearQueue [21:20:34]wFMCommunicate request_size=4 [21:20:34]MH_SAM_APDU [21:20:34]CAPDU: 80 09 00 00 [21:20:34]Write to MH i2c: E2 08 00 CC D5 80 09 00 00 00 00 00 00 13 [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 CC D5 00 90 00 15 [21:20:34]RAPDU: 90 00 [21:20:34]wFMCommunicate OK [21:20:34]SAM_PROTO_ClearQueue done [21:20:34]KKMCreateOFDPacket [21:20:34]OFDProtocolAddRootSTLVToBuf [21:20:34]FM_MakeSignedData [21:20:34]FM_MakeSignedData [21:20:34]SAM_PROTO_SignData [21:20:34]wFMCommunicate request_size=4 [21:20:34]MH_SAM_APDU [21:20:34]CAPDU: 80 0D 01 02 [21:20:34]Write to MH i2c: E2 08 00 CD D5 80 0D 01 02 00 00 00 00 1B [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 CD D5 00 90 00 16 [21:20:34]RAPDU: 90 00 [21:20:34]wFMCommunicate OK [21:20:34]wFMCommunicate request_size=255 [21:20:34]MH_SAM_APDU [21: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 AB 0B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EC 02 00 35 04 06 00 DE [21:20:34]Write to MH i2c: E2 02 01 CE D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 AB 0B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EC 02 00 35 04 06 00 DE 00 00 7A [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 CE D5 00 90 00 17 [21:20:34]RAPDU: 90 00 [21:20:34]wFMCommunicate OK [21:20:34]wFMCommunicate request_size=10 [21:20:34]MH_SAM_APDU [21:20:34]CAPDU: 80 0D 02 02 05 67 3A C7 9F BF [21:20:34]Write to MH i2c: E2 0D 00 CF D5 80 0D 02 02 05 00 67 3A C7 9F BF 00 00 EE [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 03 00 CF D5 00 90 00 18 [21:20:34]RAPDU: 90 00 [21:20:34]wFMCommunicate OK [21:20:34]wFMCommunicate request_size=4 [21:20:34]MH_SAM_APDU [21:20:34]CAPDU: 80 0D 03 02 [21:20:34]Write to MH i2c: E2 08 00 D0 D5 80 0D 03 02 00 00 00 00 20 [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 0B 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 0B 00 D0 D5 00 60 7B E5 C3 29 73 90 1E 90 00 EE [21:20:34]RAPDU: 60 7B E5 C3 29 73 90 1E 90 00 [21:20:34]wFMCommunicate OK [21:20:34]SAM_PROTO_SignData done [21:20:34]FM_MakeSignedData done [21:20:34]CreateOFDProtocolMessage [21:20:34]wFMCommunicate request_size=4 [21:20:34]MH_SAM_APDU [21:20:34]CAPDU: 80 11 00 00 [21:20:34]Write to MH i2c: E2 08 00 D1 D5 80 11 00 00 00 00 00 00 20 [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:34]Read from MH i2c: E2 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 17 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: E2 17 00 D1 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [21:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:20:34]wFMCommunicate OK [21:20:34]CreateOFDProtocolMessage done [21:20:34]OFDSenderStorePacket 191617 [21:20:34]StoreOFDPacket docnum=191617 [21:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8A 78 07 01 53 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 AB 0B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EC 02 00 35 04 06 00 DE 67 3A C7 9F BF 60 7B E5 C3 29 73 90 1E [21:20:34]CheckFolder [21:20:34]dirname=/storage/ofd_packets [21:20:34]CheckFolder done [21:20:34]ProducePacketName [21:20:34]name=ofd_packets/00191617 [21:20:34]NVStorageSaveData ofd_packets/00191617 [21:20:34]File name is /storage/ofd_packets/00191617 [21:20:34]Write 301 bytes [21:20:34]NVStorageSaveData done [21:20:34]OFDSenderStorePacket done [21:20:34]KKMCreateOFDPacket done [21:20:34]NVStorageSaveData kkm_last_timestamp [21:20:34]File name is /storage/kkm_last_timestamp [21:20:34]Write 4 bytes [21:20:34]NVStorageSaveData done [21:20:34]ExternCall_PrintAddStr [21:20:34]wPrintStart [21:20:34]Write to MH i2c: 01 00 00 D2 D5 A7 [21:20:34]Write i2c OK [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: 01 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: 01 07 00 [21:20:34]MH_I2C_Read... [21:20:34]Read from MH i2c: 01 07 00 D2 D5 00 00 00 00 00 FF 0F BC [21:20:34]RasterBufferAndPrint [21:20:34]line Счет N : (1)30921 [21:20:34]line ИНН: 02508201610067 [21:20:34]line Контрольно-Кассовый Чек [21:20:34]line ПРОДАЖА [21:20:34]line ТРК (МРК, ГНК) : 12 [21:20:34]line Товар: 2710124130 [21:20:34]line Аи-92-К-5 [21:20:34]line 2.990 * 66.90 [21:20:34]line = 200.03 [21:20:34]line НДС 12% НСП 1% [21:20:34]line > о реализуемом товаре [21:20:34]line ОКРУГЛЕНИЕ: -0.03 [21:20:34]line ИТОГО: 200.00 [21:20:34]line Внесено: 200.00 [21:20:34]line СДАЧА: 0.00 [21:20:34]line НСП 1% : 1.77 [21:20:34]line НДС 12% : 21.24 [21:20:34]line Наличными: 200.00 [21:20:34]line Безнал.: 0.00 [21:20:34]line Место: АЗС № 170 "Партнер Нефть" [21:20:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:20:34]line СНО: Общий режим [21:20:34]line Чек 356 25.10.2024 21:20 [21:20:34]line Смена: 540 ФФД: 1.0 [21:20:34]line ЗНМ: 0300000110 [21:20:34]line РНМ: 0000000000091776 [21:20:34]line Версия ККМ: 001 [21:20:34]line ФМ: 0000000000871754 [21:20:34]line ФД: 191617 [21:20:34]line ФПД: 244534949158847 [21:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T212043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191617&fm=244534949158847&tin=02508201610067®Number=0000000000091776&sum=20000 [21:20:34]OFD Sender: Processing packet 191617 [packets to send 75, broken 74] [21:20:34]ProducePacketName [21:20:34]name=ofd_packets/00191617 [21:20:34]OFD Sender: To server: pG, [21:20:34]CommunicateWithHost lk.salyk.kg:30040 [21:20:34]ConnectInit lk.salyk.kg [21:20:34]written 0, free lines is 4095 [21:20:35]Connected sock=10 [21: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 31 37 35 34 0F 01 00 00 8A 78 07 01 53 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 AB 0B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EC 02 00 35 04 06 00 DE 67 3A C7 9F BF 60 7B E5 C3 29 73 90 1E [21:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 52 47 00 DE 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EC 02 00 F4 03 04 00 79 B0 1B 67 B6 04 01 00 00 9E 39 9C 64 09 7F 50 E4 [21:20:35]CommunicateWithHost err = 0 [21:20:35]CheckOFDResponse [21:20:35]1017 (14) - 77093643461234 [21:20:35]1041 (16) - 0000000000871754 [21:20:35]1040 (4) - 191617 [21:20:35]1012 (4) - 25.10.2024 14:51 [21:20:35]1206 (1) - 0 [21:20:35]OFD Sender: Remove packet 191617 [21:20:35]ProducePacketName [21:20:35]name=ofd_packets/00191617 [21:20:35]NVStorageDeleteData [21:20:35]Write to MH i2c: 01 00 00 FD D5 D2 [21:20:35]Write i2c OK [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: 01 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: 01 07 00 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: 01 07 00 FD D5 00 00 00 00 00 B5 0C 9A [21:20:35]RasterBufferAndPrint [21:20:35]line [21:20:35]line [21:20:35]line [21:20:35]line [21:20:35]line [21:20:35]written 0, free lines is 3259 [21:20:35]MH_Cut [21:20:35]Write to MH i2c: D1 01 00 04 D6 01 AC [21:20:35]Write i2c OK [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: D1 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: D1 01 00 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: D1 01 00 04 D6 00 AB [21:20:35]Write to MH i2c: 01 00 00 05 D6 DB [21:20:35]Write i2c OK [21:20:35]MH_I2C_Read... [21:20:35]OFD Sender: No OFD packet to send [21:20:36]*** Cut start [21:20:36]*** Partial cut [21:20:36]*** CUTSNS_PIN = 1 [21:20:36]*** CUTSNS_PIN = 0 [21:20:36]*** Brake cut motor [21:20:36]Read from MH i2c: 01 [21:20:36]MH_I2C_Read... [21:20:36]*** Stop cut motor [21:20:36]*** Cut end [21:20:36]Read from MH i2c: 01 07 00 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: 01 07 00 05 D6 00 00 00 00 00 FF 0F F0 [21:20:36]process_action close_receipt done [21:20:36]requested_data is exist [21:20:36]produce_requested_data [21:20:36]requested_item fm.sn is exist - process it [21:20:36]wFMCommunicate request_size=4 [21:20:36]MH_SAM_APDU [21:20:36]CAPDU: 80 11 00 00 [21:20:36]Write to MH i2c: E2 08 00 06 D6 80 11 00 00 00 00 00 00 56 [21:20:36]Write i2c OK [21:20:36]MH_I2C_Read... [21:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:36]Read from MH i2c: E2 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 17 00 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 17 00 06 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [21:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:20:36]wFMCommunicate OK [21:20:36]requested_item fd.num is exist - process it [21:20:36]SAM_PROTO_GetFieldsCounters [21:20:36]wFMCommunicate request_size=4 [21:20:36]MH_SAM_APDU [21:20:36]CAPDU: 80 13 00 00 [21:20:36]Write to MH i2c: E2 08 00 07 D6 80 13 00 00 00 00 00 00 59 [21:20:36]Write i2c OK [21:20:36]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 62 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 62 00 07 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [21: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:37]wFMCommunicate OK [21:20:37]SAM_PROTO_GetFieldsCounters done [21:20:37]requested_item shift.num is exist - process it [21:20:37]requested_item shift.opened is exist - process it [21:20:37]req_shift_opened [21:20:37]FM_GetShiftState [21:20:37]SAM_PROTO_GetShiftState [21:20:37]wFMCommunicate request_size=4 [21:20:37]MH_SAM_APDU [21:20:37]CAPDU: 80 13 01 00 [21:20:37]Write to MH i2c: E2 08 00 08 D6 80 13 01 00 00 00 00 00 5B [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 0E 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 0E 00 08 D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 1E [21:20:37]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:20:37]wFMCommunicate OK [21:20:37]SAM_PROTO_GetShiftState done [21:20:37]FM_GetShiftState done [21:20:37]req_shift_opened done [21:20:37]requested_item shift.open_date is exist - process it [21:20:37]req_shift_open_date [21:20:37]req_shift_open_date done [21:20:37]produce_requested_data done [21:20:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191617,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:20:37]process_action_free close_receipt [21:20:37]json_value_free [21:20:37]json_value_free done [21:20:37]process_json_proto returns [21:20:37]Send response to host [21:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191617,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:20:37]free response buf [21:20:37]execute_script done [21:20:37]execute_script returns [21:20:37]free content buf [21:20:37]Sock 9.Close socket [21:20:37]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]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:41]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:45]accept exits with 8 [21:38:45]New connection [21:38:45]New thread 3066817892 created [21:38:45]Thread 3066961252 joined [21:38:45]Waiting for new connection... [21:38:45] Sock 8.Parse request [21:38:45]Sock 8.Check first char [21:38:45]Sock 8.First char is OK [21:38:45]request: POST /json_proto HTTP/1.0 [21:38:45]Method: POST [21:38:45]URL: /json_proto [21:38:45]Method is POST - this is cgi request [21:38:45]url: /json_proto [21:38:45]query_string will be loaded in cgi processing [21:38:45]execute_cgi json_proto POST (null) [21:38:45]execute_cgi path=json_proto method=POST [21:38:45]POST find Content-Length [21:38:45]Host: 172.17.63.131:8080 [21:38:45]Content-Length: 676 [21:38:45]Content-Type: application/json [21:38:45] [21:38:45]POST finish read [21:38:45]Found Content-Length = 676 [21:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:45]execute_script... [21:38:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:45]POST & json_proto [21:38:45]process_json_proto [21:38:45]json parsed OK: [21:38:45]protocol is kg_v1.0 [21:38:45]action value=close_receipt [21:38:45]process_action close_receipt [21:38:45]cmd_close_receipt [21:38:45]MH_GetDate [21:38:45]Write to MH i2c: F0 00 00 09 D6 CE [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: F0 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: F0 09 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: F0 09 00 09 D6 00 F0 0F 1C 67 22 05 6E 64 52 [21:38:45]GetLastDocTimeStamp 1729891243 [21:38:45]current date 1729892336 [21:38:45]FM_GetShiftState [21:38:45]SAM_PROTO_GetShiftState [21:38:45]wFMCommunicate request_size=4 [21:38:45]MH_SAM_APDU [21:38:45]CAPDU: 80 13 01 00 [21:38:45]Write to MH i2c: E2 08 00 0A D6 80 13 01 00 00 00 00 00 5D [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:45]Read from MH i2c: E2 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 0E 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 0E 00 0A D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 20 [21:38:45]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:38:45]wFMCommunicate OK [21:38:45]SAM_PROTO_GetShiftState done [21:38:45]FM_GetShiftState done [21:38:45]opened in 1729816399 [21:38:45]opened+sec_in_day 1729902799 [21:38:45]quantity*price = 49037 [21:38:45]sum+1 = 49039 [21:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 357 25.10.2024 21:38 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191618 ФПД: 33551634791094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T213856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191618&fm=33551634791094&tin=02508201610067®Number=0000000000091776&sum=49000 [21:38:46]StoreToDocumentArchive [21:38:46]shift 540 fd 191618 [21:38:46]save to /storage/0540/doc_00191618 [21:38:46]save last doc name /storage/0540/doc_00191618 to /storage/kkm_last_doc_name [21:38:46]save OK [21:38:46]Clear old archive folders... [21:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:46]tlvbuf is 019D2CC0 [21:38:46]SAM_PROTO_ClearQueue [21:38:46]wFMCommunicate request_size=4 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 09 00 00 [21:38:46]Write to MH i2c: E2 08 00 17 D6 80 09 00 00 00 00 00 00 5F [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 17 D6 00 90 00 61 [21:38:46]RAPDU: 90 00 [21:38:46]wFMCommunicate OK [21:38:46]SAM_PROTO_ClearQueue done [21:38:46]KKMCreateOFDPacket [21:38:46]OFDProtocolAddRootSTLVToBuf [21:38:46]FM_MakeSignedData [21:38:46]FM_MakeSignedData [21:38:46]SAM_PROTO_SignData [21:38:46]wFMCommunicate request_size=4 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 0D 01 02 [21:38:46]Write to MH i2c: E2 08 00 18 D6 80 0D 01 02 00 00 00 00 67 [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 18 D6 00 90 00 62 [21:38:46]RAPDU: 90 00 [21:38:46]wFMCommunicate OK [21:38:46]wFMCommunicate request_size=255 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 F0 0F 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EC 02 00 35 04 06 00 1E [21:38:46]Write to MH i2c: E2 02 01 19 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 F0 0F 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EC 02 00 35 04 06 00 1E 00 00 BE [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 19 D6 00 90 00 63 [21:38:46]RAPDU: 90 00 [21:38:46]wFMCommunicate OK [21:38:46]wFMCommunicate request_size=10 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 0D 02 02 05 83 D9 45 FA B6 [21:38:46]Write to MH i2c: E2 0D 00 1A D6 80 0D 02 02 05 00 83 D9 45 FA B6 00 00 C5 [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 03 00 1A D6 00 90 00 64 [21:38:46]RAPDU: 90 00 [21:38:46]wFMCommunicate OK [21:38:46]wFMCommunicate request_size=4 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 0D 03 02 [21:38:46]Write to MH i2c: E2 08 00 1B D6 80 0D 03 02 00 00 00 00 6C [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 0B 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 0B 00 1B D6 00 A7 F8 91 04 54 A6 13 EB 90 00 99 [21:38:46]RAPDU: A7 F8 91 04 54 A6 13 EB 90 00 [21:38:46]wFMCommunicate OK [21:38:46]SAM_PROTO_SignData done [21:38:46]FM_MakeSignedData done [21:38:46]CreateOFDProtocolMessage [21:38:46]wFMCommunicate request_size=4 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 11 00 00 [21:38:46]Write to MH i2c: E2 08 00 1C D6 80 11 00 00 00 00 00 00 6C [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 17 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 17 00 1C D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [21:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:38:46]wFMCommunicate OK [21:38:46]CreateOFDProtocolMessage done [21:38:46]OFDSenderStorePacket 191618 [21:38:46]StoreOFDPacket docnum=191618 [21:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 8C 07 01 8F 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 F0 0F 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EC 02 00 35 04 06 00 1E 83 D9 45 FA B6 A7 F8 91 04 54 A6 13 EB [21:38:46]CheckFolder [21:38:46]dirname=/storage/ofd_packets [21:38:46]CheckFolder done [21:38:46]ProducePacketName [21:38:46]name=ofd_packets/00191618 [21:38:46]NVStorageSaveData ofd_packets/00191618 [21:38:46]File name is /storage/ofd_packets/00191618 [21:38:46]Write 301 bytes [21:38:46]NVStorageSaveData done [21:38:46]OFDSenderStorePacket done [21:38:46]KKMCreateOFDPacket done [21:38:46]NVStorageSaveData kkm_last_timestamp [21:38:46]File name is /storage/kkm_last_timestamp [21:38:46]Write 4 bytes [21:38:46]NVStorageSaveData done [21:38:46]ExternCall_PrintAddStr [21:38:46]wPrintStart [21:38:46]Write to MH i2c: 01 00 00 1D D6 F3 [21:38:46]OFD Sender: Processing packet 191618 [packets to send 75, broken 74] [21:38:46]ProducePacketName [21:38:46]name=ofd_packets/00191618 [21:38:46]OFD Sender: To server: pG, [21:38:46]CommunicateWithHost lk.salyk.kg:30040 [21:38:46]ConnectInit lk.salyk.kg [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: 01 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: 01 07 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: 01 07 00 1D D6 00 00 00 00 00 FF 0F 08 [21:38:46]RasterBufferAndPrint [21:38:46]line Счет N : (1)30923 [21:38:46]line ИНН: 02508201610067 [21:38:46]line Контрольно-Кассовый Чек [21:38:46]line ПРОДАЖА [21:38:46]line ТРК (МРК, ГНК) : 12 [21:38:46]line Товар: 2710124130 [21:38:46]line Аи-92-К-5 [21:38:46]line 7.330 * 66.90 [21:38:46]line = 490.38 [21:38:46]line НДС 12% НСП 1% [21:38:46]line > о реализуемом товаре [21:38:46]line ОКРУГЛЕНИЕ: -0.38 [21:38:46]line ИТОГО: 490.00 [21:38:46]line Внесено: 490.00 [21:38:46]line СДАЧА: 0.00 [21:38:46]line НСП 1% : 4.34 [21:38:46]line НДС 12% : 52.08 [21:38:46]line Наличными: 490.00 [21:38:46]line Безнал.: 0.00 [21:38:46]line Место: АЗС № 170 "Партнер Нефть" [21:38:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:38:46]line СНО: Общий режим [21:38:46]line Чек 357 25.10.2024 21:38 [21:38:46]line Смена: 540 ФФД: 1.0 [21:38:46]line ЗНМ: 0300000110 [21:38:46]line РНМ: 0000000000091776 [21:38:46]line Версия ККМ: 001 [21:38:46]line ФМ: 0000000000871754 [21:38:46]line ФД: 191618 [21:38:46]line ФПД: 33551634791094 [21:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T213856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191618&fm=33551634791094&tin=02508201610067®Number=0000000000091776&sum=49000 [21:38:46]written 0, free lines is 4095 [21:38:47]Connected sock=10 [21:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 8C 07 01 8F 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 F0 0F 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EC 02 00 35 04 06 00 1E 83 D9 45 FA B6 A7 F8 91 04 54 A6 13 EB [21:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 89 47 00 09 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EC 02 00 F4 03 04 00 BD B4 1B 67 B6 04 01 00 00 B3 07 CD B0 7D 5F 6B 65 [21:38:47]CommunicateWithHost err = 0 [21:38:47]CheckOFDResponse [21:38:47]1017 (14) - 77093643461234 [21:38:47]1041 (16) - 0000000000871754 [21:38:47]1040 (4) - 191618 [21:38:47]1012 (4) - 25.10.2024 15:09 [21:38:47]1206 (1) - 0 [21:38:47]OFD Sender: Remove packet 191618 [21:38:47]ProducePacketName [21:38:47]name=ofd_packets/00191618 [21:38:47]NVStorageDeleteData [21:38:47]Write to MH i2c: 01 00 00 48 D6 1E [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: 01 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: 01 07 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: 01 07 00 48 D6 00 00 00 00 00 B2 0C E3 [21:38:47]RasterBufferAndPrint [21:38:47]line [21:38:47]line [21:38:47]line [21:38:47]line [21:38:47]line [21:38:47]written 0, free lines is 3257 [21:38:47]MH_Cut [21:38:47]Write to MH i2c: D1 01 00 4F D6 01 F7 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: D1 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: D1 01 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: D1 01 00 4F D6 00 F6 [21:38:47]Write to MH i2c: 01 00 00 50 D6 26 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]OFD Sender: No OFD packet to send [21:38:48]*** Cut start [21:38:48]*** Partial cut [21:38:48]*** CUTSNS_PIN = 1 [21:38:48]*** CUTSNS_PIN = 0 [21:38:48]*** Brake cut motor [21:38:48]Read from MH i2c: 01 [21:38:48]MH_I2C_Read... [21:38:48]*** Stop cut motor [21:38:48]*** Cut end [21:38:48]Read from MH i2c: 01 07 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: 01 07 00 50 D6 00 00 00 00 00 FF 0F 3B [21:38:48]process_action close_receipt done [21:38:48]requested_data is exist [21:38:48]produce_requested_data [21:38:48]requested_item fm.sn is exist - process it [21:38:48]wFMCommunicate request_size=4 [21:38:48]MH_SAM_APDU [21:38:48]CAPDU: 80 11 00 00 [21:38:48]Write to MH i2c: E2 08 00 51 D6 80 11 00 00 00 00 00 00 A1 [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:48]Read from MH i2c: E2 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 17 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 17 00 51 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [21:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:38:48]wFMCommunicate OK [21:38:48]requested_item fd.num is exist - process it [21:38:48]SAM_PROTO_GetFieldsCounters [21:38:48]wFMCommunicate request_size=4 [21:38:48]MH_SAM_APDU [21:38:48]CAPDU: 80 13 00 00 [21:38:48]Write to MH i2c: E2 08 00 52 D6 80 13 00 00 00 00 00 00 A4 [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:49]Read from MH i2c: E2 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 62 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 62 00 52 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [21:38:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:49]wFMCommunicate OK [21:38:49]SAM_PROTO_GetFieldsCounters done [21:38:49]requested_item shift.num is exist - process it [21:38:49]requested_item shift.opened is exist - process it [21:38:49]req_shift_opened [21:38:49]FM_GetShiftState [21:38:49]SAM_PROTO_GetShiftState [21:38:49]wFMCommunicate request_size=4 [21:38:49]MH_SAM_APDU [21:38:49]CAPDU: 80 13 01 00 [21:38:49]Write to MH i2c: E2 08 00 53 D6 80 13 01 00 00 00 00 00 A6 [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:49]Read from MH i2c: E2 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 0E 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 0E 00 53 D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 69 [21:38:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:38:49]wFMCommunicate OK [21:38:49]SAM_PROTO_GetShiftState done [21:38:49]FM_GetShiftState done [21:38:49]req_shift_opened done [21:38:49]requested_item shift.open_date is exist - process it [21:38:49]req_shift_open_date [21:38:49]req_shift_open_date done [21:38:49]produce_requested_data done [21:38:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191618,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:38:49]process_action_free close_receipt [21:38:49]json_value_free [21:38:49]json_value_free done [21:38:49]process_json_proto returns [21:38:49]Send response to host [21:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191618,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:38:49]free response buf [21:38:49]execute_script done [21:38:49]execute_script returns [21:38:49]free content buf [21:38:49]Sock 8.Close socket [21:38:49]Sock 8.Thread stoped [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:49]accept exits with 9 [21:41:49]New connection [21:41:49]New thread 3066961252 created [21:41:49]Thread 3066817892 joined [21:41:49]Waiting for new connection... [21:41:49] Sock 9.Parse request [21:41:49]Sock 9.Check first char [21:41:49]Sock 9.First char is OK [21:41:49]request: POST /json_proto HTTP/1.0 [21:41:49]Method: POST [21:41:49]URL: /json_proto [21:41:49]Method is POST - this is cgi request [21:41:49]url: /json_proto [21:41:49]query_string will be loaded in cgi processing [21:41:49]execute_cgi json_proto POST (null) [21:41:49]execute_cgi path=json_proto method=POST [21:41:49]POST find Content-Length [21:41:49]Host: 172.17.63.131:8080 [21:41:49]Content-Length: 863 [21:41:49]Content-Type: application/json [21:41:49] [21:41:49]POST finish read [21:41:49]Found Content-Length = 863 [21:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 670.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:49]execute_script... [21:41: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)30924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 670.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:49]POST & json_proto [21:41:49]process_json_proto [21:41:49]json parsed OK: [21:41:49]protocol is kg_v1.0 [21:41:49]action value=close_receipt [21:41:49]process_action close_receipt [21:41:49]cmd_close_receipt [21:41:49]MH_GetDate [21:41:49]Write to MH i2c: F0 00 00 54 D6 19 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 54 D6 00 A8 10 1C 67 22 05 6E 64 56 [21:41:49]GetLastDocTimeStamp 1729892336 [21:41:49]current date 1729892520 [21:41:49]FM_GetShiftState [21:41:49]SAM_PROTO_GetShiftState [21:41:49]wFMCommunicate request_size=4 [21:41:49]MH_SAM_APDU [21:41:49]CAPDU: 80 13 01 00 [21:41:49]Write to MH i2c: E2 08 00 55 D6 80 13 01 00 00 00 00 00 A8 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:49]Read from MH i2c: E2 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 0E 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 0E 00 55 D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6B [21:41:49]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:41:49]wFMCommunicate OK [21:41:49]SAM_PROTO_GetShiftState done [21:41:49]FM_GetShiftState done [21:41:49]opened in 1729816399 [21:41:49]opened+sec_in_day 1729902799 [21:41:49]quantity*price = 67033 [21:41:49]sum+1 = 67035 [21:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 670.34 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 0.00 Безнал.: 670.34 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 358 25.10.2024 21:42 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191619 ФПД: 233009031781708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191619&fm=233009031781708&tin=02508201610067®Number=0000000000091776&sum=67034 [21:41:50]StoreToDocumentArchive [21:41:50]shift 540 fd 191619 [21:41:50]save to /storage/0540/doc_00191619 [21:41:50]save last doc name /storage/0540/doc_00191619 to /storage/kkm_last_doc_name [21:41:50]save OK [21:41:50]Clear old archive folders... [21:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:50]tlvbuf is 019D2800 [21:41:50]SAM_PROTO_ClearQueue [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 09 00 00 [21:41:50]Write to MH i2c: E2 08 00 62 D6 80 09 00 00 00 00 00 00 AA [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 62 D6 00 90 00 AC [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]SAM_PROTO_ClearQueue done [21:41:50]KKMCreateOFDPacket [21:41:50]OFDProtocolAddRootSTLVToBuf [21:41:50]FM_MakeSignedData [21:41:50]FM_MakeSignedData [21:41:50]SAM_PROTO_SignData [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 01 02 [21:41:50]Write to MH i2c: E2 08 00 63 D6 80 0D 01 02 00 00 00 00 B2 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 63 D6 00 90 00 AD [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]wFMCommunicate request_size=255 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A8 10 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EC 02 00 35 04 06 00 D3 [21:41:50]Write to MH i2c: E2 02 01 64 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A8 10 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EC 02 00 35 04 06 00 D3 00 00 29 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 64 D6 00 90 00 AE [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]wFMCommunicate request_size=10 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 02 02 05 EB A4 91 9D 4C [21:41:51]Write to MH i2c: E2 0D 00 65 D6 80 0D 02 02 05 00 EB A4 91 9D 4C 00 00 C8 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 65 D6 00 90 00 AF [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 03 02 [21:41:51]Write to MH i2c: E2 08 00 66 D6 80 0D 03 02 00 00 00 00 B7 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 0B 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 0B 00 66 D6 00 11 FF 00 8B CF 9D 35 7A 90 00 6E [21:41:51]RAPDU: 11 FF 00 8B CF 9D 35 7A 90 00 [21:41:51]wFMCommunicate OK [21:41:51]SAM_PROTO_SignData done [21:41:51]FM_MakeSignedData done [21:41:51]CreateOFDProtocolMessage [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 11 00 00 [21:41:51]Write to MH i2c: E2 08 00 67 D6 80 11 00 00 00 00 00 00 B7 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 67 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [21:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:41:51]wFMCommunicate OK [21:41:51]CreateOFDProtocolMessage done [21:41:51]OFDSenderStorePacket 191619 [21:41:51]StoreOFDPacket docnum=191619 [21:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 68 07 01 8E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A8 10 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EC 02 00 35 04 06 00 D3 EB A4 91 9D 4C 11 FF 00 8B CF 9D 35 7A [21:41:51]CheckFolder [21:41:51]dirname=/storage/ofd_packets [21:41:51]CheckFolder done [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00191619 [21:41:51]NVStorageSaveData ofd_packets/00191619 [21:41:51]File name is /storage/ofd_packets/00191619 [21:41:51]Write 301 bytes [21:41:51]NVStorageSaveData done [21:41:51]OFDSenderStorePacket done [21:41:51]KKMCreateOFDPacket done [21:41:51]NVStorageSaveData kkm_last_timestamp [21:41:51]File name is /storage/kkm_last_timestamp [21:41:51]Write 4 bytes [21:41:51]NVStorageSaveData done [21:41:51]ExternCall_PrintAddStr [21:41:51]wPrintStart [21:41:51]Write to MH i2c: 01 00 00 68 D6 3E [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 68 D6 00 00 00 00 00 FF 0F 53 [21:41:51]RasterBufferAndPrint [21:41:51]line Счет N : (1)30924 [21:41:51]line ИНН: 02508201610067 [21:41:51]line Контрольно-Кассовый Чек [21:41:51]line ПРОДАЖА [21:41:51]line ТРК (МРК, ГНК) : 21 [21:41:51]line Товар: 2710124130 [21:41:51]line Аи-92-К-5 [21:41:51]line 10.020 * 66.90 [21:41:51]line = 670.34 [21:41:51]line НДС 12% НСП 1% [21:41:51]line > о реализуемом товаре [21:41:51]line ИТОГО: 670.34 [21:41:51]line НСП 1% : 5.93 [21:41:51]line НДС 12% : 71.19 [21:41:51]line Наличными: 0.00 [21:41:51]line Безнал.: 670.34 [21:41:51]line Место: АЗС № 170 "Партнер Нефть" [21:41:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:41:51]line СНО: Общий режим [21:41:51]line Чек 358 25.10.2024 21:42 [21:41:51]line Смена: 540 ФФД: 1.0 [21:41:51]line ЗНМ: 0300000110 [21:41:51]line РНМ: 0000000000091776 [21:41:51]line Версия ККМ: 001 [21:41:51]line Платежная система: Кыргызкоммерцбанк [21:41:51]line ФМ: 0000000000871754 [21:41:51]line ФД: 191619 [21:41:51]line ФПД: 233009031781708 [21:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191619&fm=233009031781708&tin=02508201610067®Number=0000000000091776&sum=67034 [21:41:51]OFD Sender: Processing packet 191619 [packets to send 75, broken 74] [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00191619 [21:41:51]OFD Sender: To server: pG, [21:41:51]CommunicateWithHost lk.salyk.kg:30040 [21:41:51]ConnectInit lk.salyk.kg [21:41:51]written 0, free lines is 4095 [21:41:51]Connected sock=10 [21:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 68 07 01 8E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A8 10 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EC 02 00 35 04 06 00 D3 EB A4 91 9D 4C 11 FF 00 8B CF 9D 35 7A [21:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C 6D 47 00 02 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EC 02 00 F4 03 04 00 76 B5 1B 67 B6 04 01 00 00 5C 0F 8B 38 7A 64 6E FB [21:41:51]CommunicateWithHost err = 0 [21:41:51]CheckOFDResponse [21:41:51]1017 (14) - 77093643461234 [21:41:51]1041 (16) - 0000000000871754 [21:41:51]1040 (4) - 191619 [21:41:51]1012 (4) - 25.10.2024 15:12 [21:41:51]1206 (1) - 0 [21:41:51]OFD Sender: Remove packet 191619 [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00191619 [21:41:51]NVStorageDeleteData [21:41:52]Write to MH i2c: 01 00 00 92 D6 68 [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 07 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 07 00 92 D6 00 00 00 00 00 C2 0C 3D [21:41:52]RasterBufferAndPrint [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]written 0, free lines is 3272 [21:41:52]MH_Cut [21:41:52]Write to MH i2c: D1 01 00 99 D6 01 41 [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 01 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 01 00 99 D6 00 40 [21:41:52]Write to MH i2c: 01 00 00 9A D6 70 [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]OFD Sender: No OFD packet to send [21:41:52]*** Cut start [21:41:52]*** Partial cut [21:41:52]*** CUTSNS_PIN = 1 [21:41:52]*** CUTSNS_PIN = 0 [21:41:53]*** Brake cut motor [21:41:53]Read from MH i2c: 01 [21:41:53]MH_I2C_Read... [21:41:53]*** Stop cut motor [21:41:53]*** Cut end [21:41:53]Read from MH i2c: 01 07 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: 01 07 00 9A D6 00 00 00 00 00 FF 0F 85 [21:41:53]process_action close_receipt done [21:41:53]requested_data is exist [21:41:53]produce_requested_data [21:41:53]requested_item fm.sn is exist - process it [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 11 00 00 [21:41:53]Write to MH i2c: E2 08 00 9B D6 80 11 00 00 00 00 00 00 EB [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 9B D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [21:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:41:53]wFMCommunicate OK [21:41:53]requested_item fd.num is exist - process it [21:41:53]SAM_PROTO_GetFieldsCounters [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 13 00 00 [21:41:53]Write to MH i2c: E2 08 00 9C D6 80 13 00 00 00 00 00 00 EE [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 62 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 62 00 9C D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [21:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_GetFieldsCounters done [21:41:53]requested_item shift.num is exist - process it [21:41:53]requested_item shift.opened is exist - process it [21:41:53]req_shift_opened [21:41:53]FM_GetShiftState [21:41:53]SAM_PROTO_GetShiftState [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 13 01 00 [21:41:53]Write to MH i2c: E2 08 00 9D D6 80 13 01 00 00 00 00 00 F0 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0E 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0E 00 9D D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B3 [21:41:53]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_GetShiftState done [21:41:53]FM_GetShiftState done [21:41:53]req_shift_opened done [21:41:53]requested_item shift.open_date is exist - process it [21:41:53]req_shift_open_date [21:41:53]req_shift_open_date done [21:41:53]produce_requested_data done [21:41:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191619,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:41:53]process_action_free close_receipt [21:41:53]json_value_free [21:41:53]json_value_free done [21:41:53]process_json_proto returns [21:41:53]Send response to host [21:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191619,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:41:53]free response buf [21:41:53]execute_script done [21:41:53]execute_script returns [21:41:53]free content buf [21:41:53]Sock 9.Close socket [21:41:53]Sock 9.Thread stoped [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:40]accept exits with 8 [21:43:40]New connection [21:43:40]New thread 3066817892 created [21:43:40]Thread 3066961252 joined [21:43:40]Waiting for new connection... [21:43:40] Sock 8.Parse request [21:43:40]Sock 8.Check first char [21:43:40]Sock 8.First char is OK [21:43:40]request: POST /json_proto HTTP/1.0 [21:43:40]Method: POST [21:43:40]URL: /json_proto [21:43:40]Method is POST - this is cgi request [21:43:40]url: /json_proto [21:43:40]query_string will be loaded in cgi processing [21:43:40]execute_cgi json_proto POST (null) [21:43:40]execute_cgi path=json_proto method=POST [21:43:40]POST find Content-Length [21:43:40]Host: 172.17.63.131:8080 [21:43:40]Content-Length: 681 [21:43:40]Content-Type: application/json [21:43:40] [21:43:40]POST finish read [21:43:40]Found Content-Length = 681 [21:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:40]execute_script... [21:43:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:40]POST & json_proto [21:43:40]process_json_proto [21:43:40]json parsed OK: [21:43:40]protocol is kg_v1.0 [21:43:40]action value=close_receipt [21:43:40]process_action close_receipt [21:43:40]cmd_close_receipt [21:43:40]MH_GetDate [21:43:40]Write to MH i2c: F0 00 00 9E D6 63 [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: F0 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: F0 09 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: F0 09 00 9E D6 00 17 11 1C 67 22 05 6E 64 10 [21:43:40]GetLastDocTimeStamp 1729892520 [21:43:40]current date 1729892631 [21:43:40]FM_GetShiftState [21:43:40]SAM_PROTO_GetShiftState [21:43:40]wFMCommunicate request_size=4 [21:43:40]MH_SAM_APDU [21:43:40]CAPDU: 80 13 01 00 [21:43:40]Write to MH i2c: E2 08 00 9F D6 80 13 01 00 00 00 00 00 F2 [21:43:40]Write i2c OK [21:43:40]MH_I2C_Read... [21:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:40]Read from MH i2c: E2 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 0E 00 [21:43:40]MH_I2C_Read... [21:43:40]Read from MH i2c: E2 0E 00 9F D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 B5 [21:43:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:43:40]wFMCommunicate OK [21:43:40]SAM_PROTO_GetShiftState done [21:43:40]FM_GetShiftState done [21:43:40]opened in 1729816399 [21:43:40]opened+sec_in_day 1729902799 [21:43:40]quantity*price = 100015 [21:43:40]sum+1 = 100017 [21:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 359 25.10.2024 21:43 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191620 ФПД: 145397228190237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191620&fm=145397228190237&tin=02508201610067®Number=0000000000091776&sum=100000 [21:43:41]StoreToDocumentArchive [21:43:41]shift 540 fd 191620 [21:43:41]save to /storage/0540/doc_00191620 [21:43:41]save last doc name /storage/0540/doc_00191620 to /storage/kkm_last_doc_name [21:43:41]save OK [21:43:41]Clear old archive folders... [21:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:41]tlvbuf is 016EB930 [21:43:41]SAM_PROTO_ClearQueue [21:43:41]wFMCommunicate request_size=4 [21:43:41]MH_SAM_APDU [21:43:41]CAPDU: 80 09 00 00 [21:43:41]Write to MH i2c: E2 08 00 AC D6 80 09 00 00 00 00 00 00 F4 [21:43:41]Write i2c OK [21:43:41]MH_I2C_Read... [21:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:41]Read from MH i2c: E2 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: E2 03 00 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: E2 03 00 AC D6 00 90 00 F6 [21:43:41]RAPDU: 90 00 [21:43:41]wFMCommunicate OK [21:43:41]SAM_PROTO_ClearQueue done [21:43:41]KKMCreateOFDPacket [21:43:41]OFDProtocolAddRootSTLVToBuf [21:43:41]FM_MakeSignedData [21:43:41]FM_MakeSignedData [21:43:41]SAM_PROTO_SignData [21:43:41]wFMCommunicate request_size=4 [21:43:41]MH_SAM_APDU [21:43:41]CAPDU: 80 0D 01 02 [21:43:41]Write to MH i2c: E2 08 00 AD D6 80 0D 01 02 00 00 00 00 FC [21:43:41]Write i2c OK [21:43:41]MH_I2C_Read... [21:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:41]Read from MH i2c: E2 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: E2 03 00 [21:43:41]MH_I2C_Read... [21:43:41]Read from MH i2c: E2 03 00 AD D6 00 90 00 F7 [21:43:41]RAPDU: 90 00 [21:43:41]wFMCommunicate OK [21:43:41]wFMCommunicate request_size=255 [21:43:41]MH_SAM_APDU [21:43:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 17 11 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EC 02 00 35 04 06 00 84 [21:43:41]Write to MH i2c: E2 02 01 AE D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 17 11 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EC 02 00 35 04 06 00 84 00 00 B1 [21:43:41]Write i2c OK [21:43:41]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 03 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 03 00 AE D6 00 90 00 F8 [21:43:42]RAPDU: 90 00 [21:43:42]wFMCommunicate OK [21:43:42]wFMCommunicate request_size=10 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 0D 02 02 05 3C EE 23 3A 1D [21:43:42]Write to MH i2c: E2 0D 00 AF D6 80 0D 02 02 05 00 3C EE 23 3A 1D 00 00 AD [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 03 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 03 00 AF D6 00 90 00 F9 [21:43:42]RAPDU: 90 00 [21:43:42]wFMCommunicate OK [21:43:42]wFMCommunicate request_size=4 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 0D 03 02 [21:43:42]Write to MH i2c: E2 08 00 B0 D6 80 0D 03 02 00 00 00 00 01 [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 0B 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 0B 00 B0 D6 00 27 9F EB A4 C7 16 AA B6 90 00 94 [21:43:42]RAPDU: 27 9F EB A4 C7 16 AA B6 90 00 [21:43:42]wFMCommunicate OK [21:43:42]SAM_PROTO_SignData done [21:43:42]FM_MakeSignedData done [21:43:42]CreateOFDProtocolMessage [21:43:42]wFMCommunicate request_size=4 [21:43:42]MH_SAM_APDU [21:43:42]CAPDU: 80 11 00 00 [21:43:42]Write to MH i2c: E2 08 00 B1 D6 80 11 00 00 00 00 00 00 01 [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:42]Read from MH i2c: E2 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 17 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: E2 17 00 B1 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [21:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:43:42]wFMCommunicate OK [21:43:42]CreateOFDProtocolMessage done [21:43:42]OFDSenderStorePacket 191620 [21:43:42]StoreOFDPacket docnum=191620 [21:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 E8 07 01 66 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 17 11 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EC 02 00 35 04 06 00 84 3C EE 23 3A 1D 27 9F EB A4 C7 16 AA B6 [21:43:42]CheckFolder [21:43:42]dirname=/storage/ofd_packets [21:43:42]CheckFolder done [21:43:42]ProducePacketName [21:43:42]name=ofd_packets/00191620 [21:43:42]NVStorageSaveData ofd_packets/00191620 [21:43:42]File name is /storage/ofd_packets/00191620 [21:43:42]Write 301 bytes [21:43:42]NVStorageSaveData done [21:43:42]OFDSenderStorePacket done [21:43:42]KKMCreateOFDPacket done [21:43:42]NVStorageSaveData kkm_last_timestamp [21:43:42]File name is /storage/kkm_last_timestamp [21:43:42]Write 4 bytes [21:43:42]NVStorageSaveData done [21:43:42]ExternCall_PrintAddStr [21:43:42]wPrintStart [21:43:42]Write to MH i2c: 01 00 00 B2 D6 88 [21:43:42]Write i2c OK [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: 01 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: 01 07 00 [21:43:42]MH_I2C_Read... [21:43:42]Read from MH i2c: 01 07 00 B2 D6 00 00 00 00 00 FF 0F 9D [21:43:42]RasterBufferAndPrint [21:43:42]line Счет N : (1)30925 [21:43:42]line ИНН: 02508201610067 [21:43:42]line Контрольно-Кассовый Чек [21:43:42]line ПРОДАЖА [21:43:42]line ТРК (МРК, ГНК) : 21 [21:43:42]line Товар: 2710124130 [21:43:42]line Аи-92-К-5 [21:43:42]line 14.950 * 66.90 [21:43:42]line = 1000.16 [21:43:42]line НДС 12% НСП 1% [21:43:42]line > о реализуемом товаре [21:43:42]line ОКРУГЛЕНИЕ: -0.16 [21:43:42]line ИТОГО: 1000.00 [21:43:42]line Внесено: 1000.00 [21:43:42]line СДАЧА: 0.00 [21:43:42]line НСП 1% : 8.85 [21:43:42]line НДС 12% : 106.21 [21:43:42]line Наличными: 1000.00 [21:43:42]line Безнал.: 0.00 [21:43:42]line Место: АЗС № 170 "Партнер Нефть" [21:43:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:43:42]line СНО: Общий режим [21:43:42]line Чек 359 25.10.2024 21:43 [21:43:42]line Смена: 540 ФФД: 1.0 [21:43:42]line ЗНМ: 0300000110 [21:43:42]line РНМ: 0000000000091776 [21:43:42]line Версия ККМ: 001 [21:43:42]line ФМ: 0000000000871754 [21:43:42]line ФД: 191620 [21:43:42]line ФПД: 145397228190237 [21:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191620&fm=145397228190237&tin=02508201610067®Number=0000000000091776&sum=100000 [21:43:42]OFD Sender: Processing packet 191620 [packets to send 75, broken 74] [21:43:42]ProducePacketName [21:43:42]name=ofd_packets/00191620 [21:43:42]OFD Sender: To server: pG, [21:43:42]CommunicateWithHost lk.salyk.kg:30040 [21:43:42]ConnectInit lk.salyk.kg [21:43:42]written 0, free lines is 4095 [21:43:42]Connected sock=10 [21:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 E8 07 01 66 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 17 11 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EC 02 00 35 04 06 00 84 3C EE 23 3A 1D 27 9F EB A4 C7 16 AA B6 [21:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 31 47 00 BD 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EC 02 00 F4 03 04 00 E5 B5 1B 67 B6 04 01 00 00 67 CD E4 54 6F 7A ED 83 [21:43:43]CommunicateWithHost err = 0 [21:43:43]CheckOFDResponse [21:43:43]1017 (14) - 77093643461234 [21:43:43]1041 (16) - 0000000000871754 [21:43:43]1040 (4) - 191620 [21:43:43]1012 (4) - 25.10.2024 15:14 [21:43:43]1206 (1) - 0 [21:43:43]OFD Sender: Remove packet 191620 [21:43:43]ProducePacketName [21:43:43]name=ofd_packets/00191620 [21:43:43]NVStorageDeleteData [21:43:43]Write to MH i2c: 01 00 00 DD D6 B3 [21:43:43]Write i2c OK [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: 01 [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: 01 07 00 [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: 01 07 00 DD D6 00 00 00 00 00 BA 0C 80 [21:43:43]RasterBufferAndPrint [21:43:43]line [21:43:43]line [21:43:43]line [21:43:43]line [21:43:43]line [21:43:43]written 0, free lines is 3266 [21:43:43]MH_Cut [21:43:43]Write to MH i2c: D1 01 00 E4 D6 01 8C [21:43:43]Write i2c OK [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: D1 [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: D1 01 00 [21:43:43]MH_I2C_Read... [21:43:43]Read from MH i2c: D1 01 00 E4 D6 00 8B [21:43:43]Write to MH i2c: 01 00 00 E5 D6 BB [21:43:43]Write i2c OK [21:43:43]MH_I2C_Read... [21:43:43]OFD Sender: No OFD packet to send [21:43:44]*** Cut start [21:43:44]*** Partial cut [21:43:44]*** CUTSNS_PIN = 1 [21:43:44]*** CUTSNS_PIN = 0 [21:43:44]*** Brake cut motor [21:43:44]Read from MH i2c: 01 [21:43:44]MH_I2C_Read... [21:43:44]*** Stop cut motor [21:43:44]*** Cut end [21:43:44]Read from MH i2c: 01 07 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: 01 07 00 E5 D6 00 00 00 00 00 FF 0F D0 [21:43:44]process_action close_receipt done [21:43:44]requested_data is exist [21:43:44]produce_requested_data [21:43:44]requested_item fm.sn is exist - process it [21:43:44]wFMCommunicate request_size=4 [21:43:44]MH_SAM_APDU [21:43:44]CAPDU: 80 11 00 00 [21:43:44]Write to MH i2c: E2 08 00 E6 D6 80 11 00 00 00 00 00 00 36 [21:43:44]Write i2c OK [21:43:44]MH_I2C_Read... [21:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:44]Read from MH i2c: E2 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 17 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 17 00 E6 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [21:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:43:44]wFMCommunicate OK [21:43:44]requested_item fd.num is exist - process it [21:43:44]SAM_PROTO_GetFieldsCounters [21:43:44]wFMCommunicate request_size=4 [21:43:44]MH_SAM_APDU [21:43:44]CAPDU: 80 13 00 00 [21:43:44]Write to MH i2c: E2 08 00 E7 D6 80 13 00 00 00 00 00 00 39 [21:43:44]Write i2c OK [21:43:44]MH_I2C_Read... [21:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:44]Read from MH i2c: E2 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 62 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 62 00 E7 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [21:43:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:44]wFMCommunicate OK [21:43:44]SAM_PROTO_GetFieldsCounters done [21:43:44]requested_item shift.num is exist - process it [21:43:44]requested_item shift.opened is exist - process it [21:43:44]req_shift_opened [21:43:44]FM_GetShiftState [21:43:44]SAM_PROTO_GetShiftState [21:43:44]wFMCommunicate request_size=4 [21:43:44]MH_SAM_APDU [21:43:44]CAPDU: 80 13 01 00 [21:43:44]Write to MH i2c: E2 08 00 E8 D6 80 13 01 00 00 00 00 00 3B [21:43:44]Write i2c OK [21:43:44]MH_I2C_Read... [21:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:44]Read from MH i2c: E2 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 0E 00 [21:43:44]MH_I2C_Read... [21:43:44]Read from MH i2c: E2 0E 00 E8 D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 FE [21:43:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:43:44]wFMCommunicate OK [21:43:44]SAM_PROTO_GetShiftState done [21:43:44]FM_GetShiftState done [21:43:44]req_shift_opened done [21:43:44]requested_item shift.open_date is exist - process it [21:43:44]req_shift_open_date [21:43:44]req_shift_open_date done [21:43:44]produce_requested_data done [21:43:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191620,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:43:44]process_action_free close_receipt [21:43:44]json_value_free [21:43:44]json_value_free done [21:43:44]process_json_proto returns [21:43:44]Send response to host [21:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191620,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:43:44]free response buf [21:43:44]execute_script done [21:43:44]execute_script returns [21:43:44]free content buf [21:43:44]Sock 8.Close socket [21:43:44]Sock 8.Thread stoped [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:25]accept exits with 9 [21:49:25]New connection [21:49:25]New thread 3066961252 created [21:49:25]Thread 3066817892 joined [21:49:25]Waiting for new connection... [21:49:25] Sock 9.Parse request [21:49:25]Sock 9.Check first char [21:49:25]Sock 9.First char is OK [21:49:25]request: POST /json_proto HTTP/1.0 [21:49:25]Method: POST [21:49:25]URL: /json_proto [21:49:25]Method is POST - this is cgi request [21:49:25]url: /json_proto [21:49:25]query_string will be loaded in cgi processing [21:49:25]execute_cgi json_proto POST (null) [21:49:25]execute_cgi path=json_proto method=POST [21:49:25]POST find Content-Length [21:49:25]Host: 172.17.63.131:8080 [21:49:25]Content-Length: 683 [21:49:25]Content-Type: application/json [21:49:25] [21:49:25]POST finish read [21:49:25]Found Content-Length = 683 [21:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 262.470, "sum" : 20000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:25]execute_script... [21:49:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 262.470, "sum" : 20000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:25]POST & json_proto [21:49:25]process_json_proto [21:49:25]json parsed OK: [21:49:25]protocol is kg_v1.0 [21:49:25]action value=close_receipt [21:49:25]process_action close_receipt [21:49:25]cmd_close_receipt [21:49:25]MH_GetDate [21:49:25]Write to MH i2c: F0 00 00 E9 D6 AE [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: F0 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: F0 09 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: F0 09 00 E9 D6 00 71 12 1C 67 22 05 6E 64 B6 [21:49:25]GetLastDocTimeStamp 1729892631 [21:49:25]current date 1729892977 [21:49:25]FM_GetShiftState [21:49:25]SAM_PROTO_GetShiftState [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 13 01 00 [21:49:25]Write to MH i2c: E2 08 00 EA D6 80 13 01 00 00 00 00 00 3D [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0E 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0E 00 EA D6 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 00 [21:49:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:49:25]wFMCommunicate OK [21:49:25]SAM_PROTO_GetShiftState done [21:49:25]FM_GetShiftState done [21:49:25]opened in 1729816399 [21:49:25]opened+sec_in_day 1729902799 [21:49:25]quantity*price = 2000021 [21:49:25]sum+1 = 2000022 [21:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 20000.00 Внесено: 20000.00 СДАЧА: 0.00 НСП 1% : 176.99 НДС 12% : 2123.92 Наличными: 20000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 360 25.10.2024 21:49 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191621 ФПД: 236400936264898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191621&fm=236400936264898&tin=02508201610067®Number=0000000000091776&sum=2000000 [21:49:27]StoreToDocumentArchive [21:49:27]shift 540 fd 191621 [21:49:27]save to /storage/0540/doc_00191621 [21:49:27]save last doc name /storage/0540/doc_00191621 to /storage/kkm_last_doc_name [21:49:27]save OK [21:49:27]Clear old archive folders... [21:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:49:27]tlvbuf is 016EB4E0 [21:49:27]SAM_PROTO_ClearQueue [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 09 00 00 [21:49:27]Write to MH i2c: E2 08 00 F7 D6 80 09 00 00 00 00 00 00 3F [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 F7 D6 00 90 00 41 [21:49:27]RAPDU: 90 00 [21:49:27]wFMCommunicate OK [21:49:27]SAM_PROTO_ClearQueue done [21:49:27]KKMCreateOFDPacket [21:49:27]OFDProtocolAddRootSTLVToBuf [21:49:27]FM_MakeSignedData [21:49:27]FM_MakeSignedData [21:49:27]SAM_PROTO_SignData [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 0D 01 02 [21:49:27]Write to MH i2c: E2 08 00 F8 D6 80 0D 01 02 00 00 00 00 47 [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 F8 D6 00 90 00 42 [21:49:27]RAPDU: 90 00 [21:49:27]wFMCommunicate OK [21:49:27]wFMCommunicate request_size=255 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 3D 03 00 00 00 07 04 06 00 80 84 1E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 71 12 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EC 02 00 35 04 06 00 D7 01 61 D4 [21:49:27]Write to MH i2c: E2 02 01 F9 D6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 3D 03 00 00 00 07 04 06 00 80 84 1E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 71 12 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EC 02 00 35 04 06 00 D7 01 61 D4 00 00 AD [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 F9 D6 00 90 00 43 [21:49:27]RAPDU: 90 00 [21:49:27]wFMCommunicate OK [21:49:27]wFMCommunicate request_size=7 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 0D 02 02 02 A4 C2 [21:49:27]Write to MH i2c: E2 0A 00 FA D6 80 0D 02 02 02 00 A4 C2 00 00 B4 [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 03 00 FA D6 00 90 00 44 [21:49:27]RAPDU: 90 00 [21:49:27]wFMCommunicate OK [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 0D 03 02 [21:49:27]Write to MH i2c: E2 08 00 FB D6 80 0D 03 02 00 00 00 00 4C [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0B 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0B 00 FB D6 00 49 3E 2E 26 42 73 38 0E 90 00 23 [21:49:27]RAPDU: 49 3E 2E 26 42 73 38 0E 90 00 [21:49:27]wFMCommunicate OK [21:49:27]SAM_PROTO_SignData done [21:49:27]FM_MakeSignedData done [21:49:27]CreateOFDProtocolMessage [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 11 00 00 [21:49:27]Write to MH i2c: E2 08 00 FC D6 80 11 00 00 00 00 00 00 4C [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 17 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 17 00 FC D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [21:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:49:27]wFMCommunicate OK [21:49:27]CreateOFDProtocolMessage done [21:49:27]OFDSenderStorePacket 191621 [21:49:27]StoreOFDPacket docnum=191621 [21:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 AD 04 01 53 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 3D 03 00 00 00 07 04 06 00 80 84 1E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 71 12 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EC 02 00 35 04 06 00 D7 01 61 D4 A4 C2 49 3E 2E 26 42 73 38 0E [21:49:27]CheckFolder [21:49:27]dirname=/storage/ofd_packets [21:49:27]CheckFolder done [21:49:27]ProducePacketName [21:49:27]name=ofd_packets/00191621 [21:49:27]NVStorageSaveData ofd_packets/00191621 [21:49:27]File name is /storage/ofd_packets/00191621 [21:49:27]Write 298 bytes [21:49:27]NVStorageSaveData done [21:49:27]OFDSenderStorePacket done [21:49:27]KKMCreateOFDPacket done [21:49:27]NVStorageSaveData kkm_last_timestamp [21:49:27]File name is /storage/kkm_last_timestamp [21:49:27]Write 4 bytes [21:49:27]NVStorageSaveData done [21:49:27]ExternCall_PrintAddStr [21:49:27]wPrintStart [21:49:27]Write to MH i2c: 01 00 00 FD D6 D3 [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: 01 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: 01 07 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: 01 07 00 FD D6 00 00 00 00 00 FF 0F E8 [21:49:27]RasterBufferAndPrint [21:49:27]line Счет N : (1)30922 [21:49:27]line ИНН: 02508201610067 [21:49:27]line Контрольно-Кассовый Чек [21:49:27]line ПРОДАЖА [21:49:27]line ТРК (МРК, ГНК) : 11 [21:49:27]line Товар: 2710194210 [21:49:27]line ДТ-К-5 [21:49:27]line 262.470 * 76.20 [21:49:27]line = 20000.21 [21:49:27]line НДС 12% НСП 1% [21:49:27]line > о реализуемом товаре [21:49:27]line ОКРУГЛЕНИЕ: -0.21 [21:49:27]line ИТОГО: 20000.00 [21:49:27]line Внесено: 20000.00 [21:49:27]line СДАЧА: 0.00 [21:49:27]line НСП 1% : 176.99 [21:49:27]line НДС 12% : 2123.92 [21:49:27]line Наличными: 20000.00 [21:49:27]line Безнал.: 0.00 [21:49:27]line Место: АЗС № 170 "Партнер Нефть" [21:49:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:49:27]line СНО: Общий режим [21:49:27]line Чек 360 25.10.2024 21:49 [21:49:27]line Смена: 540 ФФД: 1.0 [21:49:27]line ЗНМ: 0300000110 [21:49:27]line РНМ: 0000000000091776 [21:49:27]line Версия ККМ: 001 [21:49:27]line ФМ: 0000000000871754 [21:49:27]line ФД: 191621 [21:49:27]line ФПД: 236400936264898 [21:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T214937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191621&fm=236400936264898&tin=02508201610067®Number=0000000000091776&sum=2000000 [21:49:27]OFD Sender: Processing packet 191621 [packets to send 75, broken 74] [21:49:27]ProducePacketName [21:49:27]name=ofd_packets/00191621 [21:49:27]OFD Sender: To server: pG, [21:49:27]CommunicateWithHost lk.salyk.kg:30040 [21:49:27]ConnectInit lk.salyk.kg [21:49:27]written 0, free lines is 4095 [21:49:28]Connected sock=10 [21:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 AD 04 01 53 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 3D 03 00 00 00 07 04 06 00 80 84 1E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 71 12 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EC 02 00 35 04 06 00 D7 01 61 D4 A4 C2 49 3E 2E 26 42 73 38 0E [21:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 E3 47 00 D6 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EC 02 00 F4 03 04 00 3E B7 1B 67 B6 04 01 00 00 87 87 EA 29 CA 27 12 DC [21:49:28]CommunicateWithHost err = 0 [21:49:28]CheckOFDResponse [21:49:28]1017 (14) - 77093643461234 [21:49:28]1041 (16) - 0000000000871754 [21:49:28]1040 (4) - 191621 [21:49:28]1012 (4) - 25.10.2024 15:20 [21:49:28]1206 (1) - 0 [21:49:28]OFD Sender: Remove packet 191621 [21:49:28]ProducePacketName [21:49:28]name=ofd_packets/00191621 [21:49:28]NVStorageDeleteData [21:49:28]Write to MH i2c: 01 00 00 28 D7 FF [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 07 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 07 00 28 D7 00 00 00 00 00 C2 0C D4 [21:49:28]RasterBufferAndPrint [21:49:28]line [21:49:28]line [21:49:28]line [21:49:28]line [21:49:28]line [21:49:28]written 0, free lines is 3272 [21:49:28]MH_Cut [21:49:28]Write to MH i2c: D1 01 00 2F D7 01 D8 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: D1 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: D1 01 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: D1 01 00 2F D7 00 D7 [21:49:28]Write to MH i2c: 01 00 00 30 D7 07 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]OFD Sender: No OFD packet to send [21:49:29]*** Cut start [21:49:29]*** Partial cut [21:49:29]*** CUTSNS_PIN = 1 [21:49:29]*** CUTSNS_PIN = 0 [21:49:29]*** Brake cut motor [21:49:29]Read from MH i2c: 01 [21:49:29]MH_I2C_Read... [21:49:29]*** Stop cut motor [21:49:29]*** Cut end [21:49:29]Read from MH i2c: 01 07 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 07 00 30 D7 00 00 00 00 00 FF 0F 1C [21:49:29]process_action close_receipt done [21:49:29]requested_data is exist [21:49:29]produce_requested_data [21:49:29]requested_item fm.sn is exist - process it [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 11 00 00 [21:49:29]Write to MH i2c: E2 08 00 31 D7 80 11 00 00 00 00 00 00 82 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 31 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [21:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:49:29]wFMCommunicate OK [21:49:29]requested_item fd.num is exist - process it [21:49:29]SAM_PROTO_GetFieldsCounters [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 13 00 00 [21:49:29]Write to MH i2c: E2 08 00 32 D7 80 13 00 00 00 00 00 00 85 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 62 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 62 00 32 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:30]wFMCommunicate OK [21:49:30]SAM_PROTO_GetFieldsCounters done [21:49:30]requested_item shift.num is exist - process it [21:49:30]requested_item shift.opened is exist - process it [21:49:30]req_shift_opened [21:49:30]FM_GetShiftState [21:49:30]SAM_PROTO_GetShiftState [21:49:30]wFMCommunicate request_size=4 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 13 01 00 [21:49:30]Write to MH i2c: E2 08 00 33 D7 80 13 01 00 00 00 00 00 87 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 0E 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 0E 00 33 D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4A [21:49:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:49:30]wFMCommunicate OK [21:49:30]SAM_PROTO_GetShiftState done [21:49:30]FM_GetShiftState done [21:49:30]req_shift_opened done [21:49:30]requested_item shift.open_date is exist - process it [21:49:30]req_shift_open_date [21:49:30]req_shift_open_date done [21:49:30]produce_requested_data done [21:49:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191621,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:49:30]process_action_free close_receipt [21:49:30]json_value_free [21:49:30]json_value_free done [21:49:30]process_json_proto returns [21:49:30]Send response to host [21:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191621,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:49:30]free response buf [21:49:30]execute_script done [21:49:30]execute_script returns [21:49:30]free content buf [21:49:30]Sock 9.Close socket [21:49:30]Sock 9.Thread stoped [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:09]accept exits with 8 [21:52:09]New connection [21:52:09]New thread 3066817892 created [21:52:09]Thread 3066961252 joined [21:52:09]Waiting for new connection... [21:52:09] Sock 8.Parse request [21:52:09]Sock 8.Check first char [21:52:09]Sock 8.First char is OK [21:52:09]request: POST /json_proto HTTP/1.0 [21:52:09]Method: POST [21:52:09]URL: /json_proto [21:52:09]Method is POST - this is cgi request [21:52:09]url: /json_proto [21:52:09]query_string will be loaded in cgi processing [21:52:09]execute_cgi json_proto POST (null) [21:52:09]execute_cgi path=json_proto method=POST [21:52:09]POST find Content-Length [21:52:09]Host: 172.17.63.131:8080 [21:52:09]Content-Length: 676 [21:52:09]Content-Type: application/json [21:52:09] [21:52:09]POST finish read [21:52:09]Found Content-Length = 676 [21:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:09]execute_script... [21: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)30926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:09]POST & json_proto [21:52:09]process_json_proto [21:52:09]json parsed OK: [21:52:09]protocol is kg_v1.0 [21:52:09]action value=close_receipt [21:52:09]process_action close_receipt [21:52:09]cmd_close_receipt [21:52:09]MH_GetDate [21:52:09]Write to MH i2c: F0 00 00 34 D7 FA [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: F0 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: F0 09 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: F0 09 00 34 D7 00 14 13 1C 67 22 05 6E 64 A6 [21:52:09]GetLastDocTimeStamp 1729892977 [21:52:09]current date 1729893140 [21:52:09]FM_GetShiftState [21:52:09]SAM_PROTO_GetShiftState [21:52:09]wFMCommunicate request_size=4 [21:52:09]MH_SAM_APDU [21:52:09]CAPDU: 80 13 01 00 [21:52:09]Write to MH i2c: E2 08 00 35 D7 80 13 01 00 00 00 00 00 89 [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:09]Read from MH i2c: E2 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 0E 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 0E 00 35 D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 4C [21:52:09]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:52:09]wFMCommunicate OK [21:52:09]SAM_PROTO_GetShiftState done [21:52:09]FM_GetShiftState done [21:52:09]opened in 1729816399 [21:52:09]opened+sec_in_day 1729902799 [21:52:09]quantity*price = 60009 [21:52:09]sum+1 = 60010 [21:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 361 25.10.2024 21:52 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191622 ФПД: 131429619856381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191622&fm=131429619856381&tin=02508201610067®Number=0000000000091776&sum=60000 [21:52:10]StoreToDocumentArchive [21:52:10]shift 540 fd 191622 [21:52:10]save to /storage/0540/doc_00191622 [21:52:10]save last doc name /storage/0540/doc_00191622 to /storage/kkm_last_doc_name [21:52:10]save OK [21:52:10]Clear old archive folders... [21:52:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:10]tlvbuf is 019D5200 [21:52:10]SAM_PROTO_ClearQueue [21:52:10]wFMCommunicate request_size=4 [21:52:10]MH_SAM_APDU [21:52:10]CAPDU: 80 09 00 00 [21:52:10]Write to MH i2c: E2 08 00 42 D7 80 09 00 00 00 00 00 00 8B [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:10]Read from MH i2c: E2 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 03 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 03 00 42 D7 00 90 00 8D [21:52:10]RAPDU: 90 00 [21:52:10]wFMCommunicate OK [21:52:10]SAM_PROTO_ClearQueue done [21:52:10]KKMCreateOFDPacket [21:52:10]OFDProtocolAddRootSTLVToBuf [21:52:10]FM_MakeSignedData [21:52:10]FM_MakeSignedData [21:52:10]SAM_PROTO_SignData [21:52:10]wFMCommunicate request_size=4 [21:52:10]MH_SAM_APDU [21:52:10]CAPDU: 80 0D 01 02 [21:52:10]Write to MH i2c: E2 08 00 43 D7 80 0D 01 02 00 00 00 00 93 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:10]Read from MH i2c: E2 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 03 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 03 00 43 D7 00 90 00 8E [21:52:10]RAPDU: 90 00 [21:52:10]wFMCommunicate OK [21:52:10]wFMCommunicate request_size=255 [21:52:10]MH_SAM_APDU [21:52:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 14 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EC 02 00 35 04 06 00 77 [21:52:10]Write to MH i2c: E2 02 01 44 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 14 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EC 02 00 35 04 06 00 77 00 00 21 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 44 D7 00 90 00 8F [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=10 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 02 02 05 88 D7 CD F3 FD [21:52:11]Write to MH i2c: E2 0D 00 45 D7 80 0D 02 02 05 00 88 D7 CD F3 FD 00 00 BC [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 45 D7 00 90 00 90 [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 03 02 [21:52:11]Write to MH i2c: E2 08 00 46 D7 80 0D 03 02 00 00 00 00 98 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 46 D7 00 D6 0E 04 30 41 B1 C7 93 90 00 FD [21:52:11]RAPDU: D6 0E 04 30 41 B1 C7 93 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_SignData done [21:52:11]FM_MakeSignedData done [21:52:11]CreateOFDProtocolMessage [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 11 00 00 [21:52:11]Write to MH i2c: E2 08 00 47 D7 80 11 00 00 00 00 00 00 98 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 47 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [21:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:52:11]wFMCommunicate OK [21:52:11]CreateOFDProtocolMessage done [21:52:11]OFDSenderStorePacket 191622 [21:52:11]StoreOFDPacket docnum=191622 [21:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA 0F 07 01 BF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 14 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EC 02 00 35 04 06 00 77 88 D7 CD F3 FD D6 0E 04 30 41 B1 C7 93 [21:52:11]CheckFolder [21:52:11]dirname=/storage/ofd_packets [21:52:11]CheckFolder done [21:52:11]ProducePacketName [21:52:11]name=ofd_packets/00191622 [21:52:11]NVStorageSaveData ofd_packets/00191622 [21:52:11]File name is /storage/ofd_packets/00191622 [21:52:11]Write 301 bytes [21:52:11]NVStorageSaveData done [21:52:11]OFDSenderStorePacket done [21:52:11]KKMCreateOFDPacket done [21:52:11]NVStorageSaveData kkm_last_timestamp [21:52:11]File name is /storage/kkm_last_timestamp [21:52:11]Write 4 bytes [21:52:11]NVStorageSaveData done [21:52:11]ExternCall_PrintAddStr [21:52:11]wPrintStart [21:52:11]Write to MH i2c: 01 00 00 48 D7 1F [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 07 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 07 00 48 D7 00 00 00 00 00 FF 0F 34 [21:52:11]RasterBufferAndPrint [21:52:11]line Счет N : (1)30926 [21:52:11]line ИНН: 02508201610067 [21:52:11]line Контрольно-Кассовый Чек [21:52:11]line ПРОДАЖА [21:52:11]line ТРК (МРК, ГНК) : 21 [21:52:11]line Товар: 2710124130 [21:52:11]line Аи-92-К-5 [21:52:11]line 8.970 * 66.90 [21:52:11]line = 600.09 [21:52:11]line НДС 12% НСП 1% [21:52:11]line > о реализуемом товаре [21:52:11]line ОКРУГЛЕНИЕ: -0.09 [21:52:11]line ИТОГО: 600.00 [21:52:11]line Внесено: 600.00 [21:52:11]line СДАЧА: 0.00 [21:52:11]line НСП 1% : 5.31 [21:52:11]line НДС 12% : 63.73 [21:52:11]line Наличными: 600.00 [21:52:11]line Безнал.: 0.00 [21:52:11]line Место: АЗС № 170 "Партнер Нефть" [21:52:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:52:11]line СНО: Общий режим [21:52:11]line Чек 361 25.10.2024 21:52 [21:52:11]line Смена: 540 ФФД: 1.0 [21:52:11]line ЗНМ: 0300000110 [21:52:11]line РНМ: 0000000000091776 [21:52:11]line Версия ККМ: 001 [21:52:11]line ФМ: 0000000000871754 [21:52:11]line ФД: 191622 [21:52:11]line ФПД: 131429619856381 [21:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191622&fm=131429619856381&tin=02508201610067®Number=0000000000091776&sum=60000 [21:52:11]OFD Sender: Processing packet 191622 [packets to send 75, broken 74] [21:52:11]ProducePacketName [21:52:11]name=ofd_packets/00191622 [21:52:11]OFD Sender: To server: pG, [21:52:11]CommunicateWithHost lk.salyk.kg:30040 [21:52:11]ConnectInit lk.salyk.kg [21:52:11]written 0, free lines is 4095 [21:52:11]Connected sock=10 [21:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA 0F 07 01 BF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 14 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EC 02 00 35 04 06 00 77 88 D7 CD F3 FD D6 0E 04 30 41 B1 C7 93 [21:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B CF 47 00 83 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 31 37 35 34 10 04 04 00 86 EC 02 00 F4 03 04 00 E2 B7 1B 67 B6 04 01 00 00 39 24 DD 0A 9D F8 6B 50 [21:52:12]CommunicateWithHost err = 0 [21:52:12]CheckOFDResponse [21:52:12]1017 (14) - 77093643461234 [21:52:12]1041 (16) - 0000000000871754 [21:52:12]1040 (4) - 191622 [21:52:12]1012 (4) - 25.10.2024 15:23 [21:52:12]1206 (1) - 0 [21:52:12]OFD Sender: Remove packet 191622 [21:52:12]ProducePacketName [21:52:12]name=ofd_packets/00191622 [21:52:12]NVStorageDeleteData [21:52:12]Write to MH i2c: 01 00 00 73 D7 4A [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 73 D7 00 00 00 00 00 D6 0C 33 [21:52:12]RasterBufferAndPrint [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]written 0, free lines is 3294 [21:52:12]MH_Cut [21:52:12]Write to MH i2c: D1 01 00 7A D7 01 23 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 7A D7 00 22 [21:52:12]Write to MH i2c: 01 00 00 7B D7 52 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]OFD Sender: No OFD packet to send [21:52:12]*** Cut start [21:52:12]*** Partial cut [21:52:12]*** CUTSNS_PIN = 1 [21:52:13]*** CUTSNS_PIN = 0 [21:52:13]*** Brake cut motor [21:52:13]Read from MH i2c: 01 [21:52:13]MH_I2C_Read... [21:52:13]*** Stop cut motor [21:52:13]*** Cut end [21:52:13]Read from MH i2c: 01 07 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: 01 07 00 7B D7 00 00 00 00 00 FF 0F 67 [21:52:13]process_action close_receipt done [21:52:13]requested_data is exist [21:52:13]produce_requested_data [21:52:13]requested_item fm.sn is exist - process it [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 11 00 00 [21:52:13]Write to MH i2c: E2 08 00 7C D7 80 11 00 00 00 00 00 00 CD [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 17 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 17 00 7C D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [21:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:52:13]wFMCommunicate OK [21:52:13]requested_item fd.num is exist - process it [21:52:13]SAM_PROTO_GetFieldsCounters [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 13 00 00 [21:52:13]Write to MH i2c: E2 08 00 7D D7 80 13 00 00 00 00 00 00 D0 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 62 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 62 00 7D D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [21:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:13]wFMCommunicate OK [21:52:13]SAM_PROTO_GetFieldsCounters done [21:52:13]requested_item shift.num is exist - process it [21:52:13]requested_item shift.opened is exist - process it [21:52:13]req_shift_opened [21:52:13]FM_GetShiftState [21:52:13]SAM_PROTO_GetShiftState [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 13 01 00 [21:52:13]Write to MH i2c: E2 08 00 7E D7 80 13 01 00 00 00 00 00 D2 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0E 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0E 00 7E D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 95 [21:52:13]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:52:13]wFMCommunicate OK [21:52:13]SAM_PROTO_GetShiftState done [21:52:13]FM_GetShiftState done [21:52:13]req_shift_opened done [21:52:13]requested_item shift.open_date is exist - process it [21:52:13]req_shift_open_date [21:52:13]req_shift_open_date done [21:52:13]produce_requested_data done [21:52:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191622,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:52:13]process_action_free close_receipt [21:52:13]json_value_free [21:52:13]json_value_free done [21:52:13]process_json_proto returns [21:52:13]Send response to host [21:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191622,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:52:13]free response buf [21:52:13]execute_script done [21:52:13]execute_script returns [21:52:13]free content buf [21:52:13]Sock 8.Close socket [21:52:13]Sock 8.Thread stoped [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:39]accept exits with 9 [21:53:39]New connection [21:53:39]New thread 3066961252 created [21:53:39]Thread 3066817892 joined [21:53:39]Waiting for new connection... [21:53:39] Sock 9.Parse request [21:53:39]Sock 9.Check first char [21:53:39]Sock 9.First char is OK [21:53:39]request: POST /json_proto HTTP/1.0 [21:53:39]Method: POST [21:53:39]URL: /json_proto [21:53:39]Method is POST - this is cgi request [21:53:39]url: /json_proto [21:53:39]query_string will be loaded in cgi processing [21:53:39]execute_cgi json_proto POST (null) [21:53:39]execute_cgi path=json_proto method=POST [21:53:39]POST find Content-Length [21:53:39]Host: 172.17.63.131:8080 [21:53:39]Content-Length: 676 [21:53:39]Content-Type: application/json [21:53:39] [21:53:39]POST finish read [21:53:39]Found Content-Length = 676 [21:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [21:53:39]execute_script... [21:53: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)30927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [21:53:39]POST & json_proto [21:53:39]process_json_proto [21:53:39]json parsed OK: [21:53:39]protocol is kg_v1.0 [21:53:39]action value=close_receipt [21:53:39]process_action close_receipt [21:53:39]cmd_close_receipt [21:53:39]MH_GetDate [21:53:39]Write to MH i2c: F0 00 00 7F D7 45 [21:53:39]Write i2c OK [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 09 00 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 09 00 7F D7 00 6F 13 1C 67 22 05 6E 64 4C [21:53:39]GetLastDocTimeStamp 1729893140 [21:53:39]current date 1729893231 [21:53:39]FM_GetShiftState [21:53:39]SAM_PROTO_GetShiftState [21:53:39]wFMCommunicate request_size=4 [21:53:39]MH_SAM_APDU [21:53:39]CAPDU: 80 13 01 00 [21:53:39]Write to MH i2c: E2 08 00 80 D7 80 13 01 00 00 00 00 00 D4 [21:53:39]Write i2c OK [21:53:39]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 0E 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 0E 00 80 D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 97 [21:53:40]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:53:40]wFMCommunicate OK [21:53:40]SAM_PROTO_GetShiftState done [21:53:40]FM_GetShiftState done [21:53:40]opened in 1729816399 [21:53:40]opened+sec_in_day 1729902799 [21:53:40]quantity*price = 35055 [21:53:40]sum+1 = 35057 [21:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 362 25.10.2024 21:53 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191623 ФПД: 242413804708261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191623&fm=242413804708261&tin=02508201610067®Number=0000000000091776&sum=35000 [21:53:41]StoreToDocumentArchive [21:53:41]shift 540 fd 191623 [21:53:41]save to /storage/0540/doc_00191623 [21:53:41]save last doc name /storage/0540/doc_00191623 to /storage/kkm_last_doc_name [21:53:41]save OK [21:53:41]Clear old archive folders... [21:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:41]tlvbuf is 015D8F20 [21:53:41]SAM_PROTO_ClearQueue [21:53:41]wFMCommunicate request_size=4 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 09 00 00 [21:53:41]Write to MH i2c: E2 08 00 8D D7 80 09 00 00 00 00 00 00 D6 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 8D D7 00 90 00 D8 [21:53:41]RAPDU: 90 00 [21:53:41]wFMCommunicate OK [21:53:41]SAM_PROTO_ClearQueue done [21:53:41]KKMCreateOFDPacket [21:53:41]OFDProtocolAddRootSTLVToBuf [21:53:41]FM_MakeSignedData [21:53:41]FM_MakeSignedData [21:53:41]SAM_PROTO_SignData [21:53:41]wFMCommunicate request_size=4 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 0D 01 02 [21:53:41]Write to MH i2c: E2 08 00 8E D7 80 0D 01 02 00 00 00 00 DE [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 8E D7 00 90 00 D9 [21:53:41]RAPDU: 90 00 [21:53:41]wFMCommunicate OK [21:53:41]wFMCommunicate request_size=255 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 6F 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EC 02 00 35 04 06 00 DC [21:53:41]Write to MH i2c: E2 02 01 8F D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 6F 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EC 02 00 35 04 06 00 DC 00 00 5C [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 8F D7 00 90 00 DA [21:53:41]RAPDU: 90 00 [21:53:41]wFMCommunicate OK [21:53:41]wFMCommunicate request_size=10 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 0D 02 02 05 79 5C B7 E1 A5 [21:53:41]Write to MH i2c: E2 0D 00 90 D7 80 0D 02 02 05 00 79 5C B7 E1 A5 00 00 FD [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 03 00 90 D7 00 90 00 DB [21:53:41]RAPDU: 90 00 [21:53:41]wFMCommunicate OK [21:53:41]wFMCommunicate request_size=4 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 0D 03 02 [21:53:41]Write to MH i2c: E2 08 00 91 D7 80 0D 03 02 00 00 00 00 E3 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 0B 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 0B 00 91 D7 00 44 07 B2 A5 89 98 B1 FB 90 00 53 [21:53:41]RAPDU: 44 07 B2 A5 89 98 B1 FB 90 00 [21:53:41]wFMCommunicate OK [21:53:41]SAM_PROTO_SignData done [21:53:41]FM_MakeSignedData done [21:53:41]CreateOFDProtocolMessage [21:53:41]wFMCommunicate request_size=4 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 11 00 00 [21:53:41]Write to MH i2c: E2 08 00 92 D7 80 11 00 00 00 00 00 00 E3 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 17 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 17 00 92 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [21:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:53:41]wFMCommunicate OK [21:53:41]CreateOFDProtocolMessage done [21:53:41]OFDSenderStorePacket 191623 [21:53:41]StoreOFDPacket docnum=191623 [21:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 85 07 01 91 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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 6F 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EC 02 00 35 04 06 00 DC 79 5C B7 E1 A5 44 07 B2 A5 89 98 B1 FB [21:53:41]CheckFolder [21:53:41]dirname=/storage/ofd_packets [21:53:41]CheckFolder done [21:53:41]ProducePacketName [21:53:41]name=ofd_packets/00191623 [21:53:41]NVStorageSaveData ofd_packets/00191623 [21:53:41]File name is /storage/ofd_packets/00191623 [21:53:41]Write 301 bytes [21:53:41]NVStorageSaveData done [21:53:41]OFDSenderStorePacket done [21:53:41]KKMCreateOFDPacket done [21:53:41]NVStorageSaveData kkm_last_timestamp [21:53:41]File name is /storage/kkm_last_timestamp [21:53:41]Write 4 bytes [21:53:41]NVStorageSaveData done [21:53:41]ExternCall_PrintAddStr [21:53:41]wPrintStart [21:53:41]Write to MH i2c: 01 00 00 93 D7 6A [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 07 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 07 00 93 D7 00 00 00 00 00 FF 0F 7F [21:53:41]RasterBufferAndPrint [21:53:41]line Счет N : (1)30927 [21:53:41]line ИНН: 02508201610067 [21:53:41]line Контрольно-Кассовый Чек [21:53:41]line ПРОДАЖА [21:53:41]line ТРК (МРК, ГНК) : 12 [21:53:41]line Товар: 2710124130 [21:53:41]line Аи-92-К-5 [21:53:41]line 5.240 * 66.90 [21:53:41]line = 350.56 [21:53:41]line НДС 12% НСП 1% [21:53:41]line > о реализуемом товаре [21:53:41]line ОКРУГЛЕНИЕ: -0.56 [21:53:41]line ИТОГО: 350.00 [21:53:41]line Внесено: 350.00 [21:53:41]line СДАЧА: 0.00 [21:53:41]line НСП 1% : 3.10 [21:53:41]line НДС 12% : 37.23 [21:53:41]line Наличными: 350.00 [21:53:41]line Безнал.: 0.00 [21:53:41]line Место: АЗС № 170 "Партнер Нефть" [21:53:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:53:41]line СНО: Общий режим [21:53:41]line Чек 362 25.10.2024 21:53 [21:53:41]line Смена: 540 ФФД: 1.0 [21:53:41]line ЗНМ: 0300000110 [21:53:41]line РНМ: 0000000000091776 [21:53:41]line Версия ККМ: 001 [21:53:41]line ФМ: 0000000000871754 [21:53:41]line ФД: 191623 [21:53:41]line ФПД: 242413804708261 [21:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191623&fm=242413804708261&tin=02508201610067®Number=0000000000091776&sum=35000 [21:53:42]OFD Sender: Processing packet 191623 [packets to send 75, broken 74] [21:53:42]ProducePacketName [21:53:42]name=ofd_packets/00191623 [21:53:42]OFD Sender: To server: pG, [21:53:42]CommunicateWithHost lk.salyk.kg:30040 [21:53:42]ConnectInit lk.salyk.kg [21:53:42]written 0, free lines is 4095 [21:53:42]Connected sock=10 [21:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 85 07 01 91 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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 6F 13 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EC 02 00 35 04 06 00 DC 79 5C B7 E1 A5 44 07 B2 A5 89 98 B1 FB [21:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 18 47 00 53 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EC 02 00 F4 03 04 00 3C B8 1B 67 B6 04 01 00 00 81 48 CB AD AE 0B 00 D3 [21:53:42]CommunicateWithHost err = 0 [21:53:42]CheckOFDResponse [21:53:42]1017 (14) - 77093643461234 [21:53:42]1041 (16) - 0000000000871754 [21:53:42]1040 (4) - 191623 [21:53:42]1012 (4) - 25.10.2024 15:24 [21:53:42]1206 (1) - 0 [21:53:42]OFD Sender: Remove packet 191623 [21:53:42]ProducePacketName [21:53:42]name=ofd_packets/00191623 [21:53:42]NVStorageDeleteData [21:53:42]Write to MH i2c: 01 00 00 BE D7 95 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: 01 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: 01 07 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: 01 07 00 BE D7 00 00 00 00 00 C5 0C 6D [21:53:42]RasterBufferAndPrint [21:53:42]line [21:53:42]line [21:53:42]line [21:53:42]line [21:53:42]line [21:53:42]written 0, free lines is 3278 [21:53:42]MH_Cut [21:53:42]Write to MH i2c: D1 01 00 C5 D7 01 6E [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: D1 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: D1 01 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: D1 01 00 C5 D7 00 6D [21:53:42]Write to MH i2c: 01 00 00 C6 D7 9D [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]OFD Sender: No OFD packet to send [21:53:43]*** Cut start [21:53:43]*** Partial cut [21:53:43]*** CUTSNS_PIN = 1 [21:53:43]*** CUTSNS_PIN = 0 [21:53:43]*** Brake cut motor [21:53:43]Read from MH i2c: 01 [21:53:43]MH_I2C_Read... [21:53:43]*** Stop cut motor [21:53:43]*** Cut end [21:53:43]Read from MH i2c: 01 07 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: 01 07 00 C6 D7 00 00 00 00 00 FF 0F B2 [21:53:43]process_action close_receipt done [21:53:43]requested_data is exist [21:53:43]produce_requested_data [21:53:43]requested_item fm.sn is exist - process it [21:53:43]wFMCommunicate request_size=4 [21:53:43]MH_SAM_APDU [21:53:43]CAPDU: 80 11 00 00 [21:53:43]Write to MH i2c: E2 08 00 C7 D7 80 11 00 00 00 00 00 00 18 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 17 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 17 00 C7 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [21:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:53:44]wFMCommunicate OK [21:53:44]requested_item fd.num is exist - process it [21:53:44]SAM_PROTO_GetFieldsCounters [21:53:44]wFMCommunicate request_size=4 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 13 00 00 [21:53:44]Write to MH i2c: E2 08 00 C8 D7 80 13 00 00 00 00 00 00 1B [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 62 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 62 00 C8 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:44]wFMCommunicate OK [21:53:44]SAM_PROTO_GetFieldsCounters done [21:53:44]requested_item shift.num is exist - process it [21:53:44]requested_item shift.opened is exist - process it [21:53:44]req_shift_opened [21:53:44]FM_GetShiftState [21:53:44]SAM_PROTO_GetShiftState [21:53:44]wFMCommunicate request_size=4 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 13 01 00 [21:53:44]Write to MH i2c: E2 08 00 C9 D7 80 13 01 00 00 00 00 00 1D [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 0E 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 0E 00 C9 D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E0 [21:53:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:53:44]wFMCommunicate OK [21:53:44]SAM_PROTO_GetShiftState done [21:53:44]FM_GetShiftState done [21:53:44]req_shift_opened done [21:53:44]requested_item shift.open_date is exist - process it [21:53:44]req_shift_open_date [21:53:44]req_shift_open_date done [21:53:44]produce_requested_data done [21:53:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191623,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:53:44]process_action_free close_receipt [21:53:44]json_value_free [21:53:44]json_value_free done [21:53:44]process_json_proto returns [21:53:44]Send response to host [21:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191623,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:53:44]free response buf [21:53:44]execute_script done [21:53:44]execute_script returns [21:53:44]free content buf [21:53:44]Sock 9.Close socket [21:53:44]Sock 9.Thread stoped [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:43]accept exits with 8 [21:57:43]New connection [21:57:43]New thread 3066817892 created [21:57:43]Thread 3066961252 joined [21:57:43]Waiting for new connection... [21:57:43] Sock 8.Parse request [21:57:43]Sock 8.Check first char [21:57:43]Sock 8.First char is OK [21:57:43]request: POST /json_proto HTTP/1.0 [21:57:43]Method: POST [21:57:43]URL: /json_proto [21:57:43]Method is POST - this is cgi request [21:57:43]url: /json_proto [21:57:43]query_string will be loaded in cgi processing [21:57:43]execute_cgi json_proto POST (null) [21:57:43]execute_cgi path=json_proto method=POST [21:57:43]POST find Content-Length [21:57:43]Host: 172.17.63.131:8080 [21:57:43]Content-Length: 676 [21:57:43]Content-Type: application/json [21:57:43] [21:57:43]POST finish read [21:57:43]Found Content-Length = 676 [21:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:43]execute_script... [21:57: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)30928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:43]POST & json_proto [21:57:43]process_json_proto [21:57:43]json parsed OK: [21:57:43]protocol is kg_v1.0 [21:57:43]action value=close_receipt [21:57:43]process_action close_receipt [21:57:43]cmd_close_receipt [21:57:43]MH_GetDate [21:57:43]Write to MH i2c: F0 00 00 CA D7 90 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: F0 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: F0 09 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: F0 09 00 CA D7 00 62 14 1C 67 22 05 6E 64 8B [21:57:43]GetLastDocTimeStamp 1729893231 [21:57:43]current date 1729893474 [21:57:43]FM_GetShiftState [21:57:43]SAM_PROTO_GetShiftState [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 13 01 00 [21:57:43]Write to MH i2c: E2 08 00 CB D7 80 13 01 00 00 00 00 00 1F [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 0E 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 0E 00 CB D7 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 E2 [21:57:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:57:43]wFMCommunicate OK [21:57:43]SAM_PROTO_GetShiftState done [21:57:43]FM_GetShiftState done [21:57:43]opened in 1729816399 [21:57:43]opened+sec_in_day 1729902799 [21:57:43]quantity*price = 30038 [21:57:43]sum+1 = 30039 [21:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 363 25.10.2024 21:57 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191624 ФПД: 33364041633145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215754&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191624&fm=33364041633145&tin=02508201610067®Number=0000000000091776&sum=30000 [21:57:44]StoreToDocumentArchive [21:57:44]shift 540 fd 191624 [21:57:44]save to /storage/0540/doc_00191624 [21:57:44]save last doc name /storage/0540/doc_00191624 to /storage/kkm_last_doc_name [21:57:44]save OK [21:57:44]Clear old archive folders... [21:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:44]tlvbuf is 016B05A0 [21:57:44]SAM_PROTO_ClearQueue [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 09 00 00 [21:57:44]Write to MH i2c: E2 08 00 D8 D7 80 09 00 00 00 00 00 00 21 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 03 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 03 00 D8 D7 00 90 00 23 [21:57:44]RAPDU: 90 00 [21:57:44]wFMCommunicate OK [21:57:44]SAM_PROTO_ClearQueue done [21:57:44]KKMCreateOFDPacket [21:57:44]OFDProtocolAddRootSTLVToBuf [21:57:44]FM_MakeSignedData [21:57:44]FM_MakeSignedData [21:57:44]SAM_PROTO_SignData [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 0D 01 02 [21:57:44]Write to MH i2c: E2 08 00 D9 D7 80 0D 01 02 00 00 00 00 29 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 03 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 03 00 D9 D7 00 90 00 24 [21:57:44]RAPDU: 90 00 [21:57:44]wFMCommunicate OK [21:57:44]wFMCommunicate request_size=255 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 62 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EC 02 00 35 04 06 00 1E [21:57:44]Write to MH i2c: E2 02 01 DA D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 62 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EC 02 00 35 04 06 00 1E 00 00 C8 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 DA D7 00 90 00 25 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=10 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 02 02 05 58 2B D9 8D 79 [21:57:45]Write to MH i2c: E2 0D 00 DB D7 80 0D 02 02 05 00 58 2B D9 8D 79 00 00 98 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 DB D7 00 90 00 26 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 03 02 [21:57:45]Write to MH i2c: E2 08 00 DC D7 80 0D 03 02 00 00 00 00 2E [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0B 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0B 00 DC D7 00 45 32 D0 CD AA 4B 20 66 90 00 BE [21:57:45]RAPDU: 45 32 D0 CD AA 4B 20 66 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_SignData done [21:57:45]FM_MakeSignedData done [21:57:45]CreateOFDProtocolMessage [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 11 00 00 [21:57:45]Write to MH i2c: E2 08 00 DD D7 80 11 00 00 00 00 00 00 2E [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 DD D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [21:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:57:45]wFMCommunicate OK [21:57:45]CreateOFDProtocolMessage done [21:57:45]OFDSenderStorePacket 191624 [21:57:45]StoreOFDPacket docnum=191624 [21:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 F6 07 01 D2 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 62 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EC 02 00 35 04 06 00 1E 58 2B D9 8D 79 45 32 D0 CD AA 4B 20 66 [21:57:45]CheckFolder [21:57:45]dirname=/storage/ofd_packets [21:57:45]CheckFolder done [21:57:45]ProducePacketName [21:57:45]name=ofd_packets/00191624 [21:57:45]NVStorageSaveData ofd_packets/00191624 [21:57:45]File name is /storage/ofd_packets/00191624 [21:57:45]Write 301 bytes [21:57:45]NVStorageSaveData done [21:57:45]OFDSenderStorePacket done [21:57:45]KKMCreateOFDPacket done [21:57:45]NVStorageSaveData kkm_last_timestamp [21:57:45]File name is /storage/kkm_last_timestamp [21:57:45]Write 4 bytes [21:57:45]NVStorageSaveData done [21:57:45]ExternCall_PrintAddStr [21:57:45]wPrintStart [21:57:45]Write to MH i2c: 01 00 00 DE D7 B5 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 07 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 07 00 DE D7 00 00 00 00 00 FF 0F CA [21:57:45]RasterBufferAndPrint [21:57:45]line Счет N : (1)30928 [21:57:45]line ИНН: 02508201610067 [21:57:45]line Контрольно-Кассовый Чек [21:57:45]line ПРОДАЖА [21:57:45]line ТРК (МРК, ГНК) : 21 [21:57:45]line Товар: 2710124130 [21:57:45]line Аи-92-К-5 [21:57:45]line 4.490 * 66.90 [21:57:45]line = 300.38 [21:57:45]line НДС 12% НСП 1% [21:57:45]line > о реализуемом товаре [21:57:45]line ОКРУГЛЕНИЕ: -0.38 [21:57:45]line ИТОГО: 300.00 [21:57:45]line Внесено: 300.00 [21:57:45]line СДАЧА: 0.00 [21:57:45]line НСП 1% : 2.66 [21:57:45]line НДС 12% : 31.90 [21:57:45]line Наличными: 300.00 [21:57:45]line Безнал.: 0.00 [21:57:45]line Место: АЗС № 170 "Партнер Нефть" [21:57:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:57:45]line СНО: Общий режим [21:57:45]line Чек 363 25.10.2024 21:57 [21:57:45]line Смена: 540 ФФД: 1.0 [21:57:45]line ЗНМ: 0300000110 [21:57:45]line РНМ: 0000000000091776 [21:57:45]line Версия ККМ: 001 [21:57:45]line ФМ: 0000000000871754 [21:57:45]line ФД: 191624 [21:57:45]line ФПД: 33364041633145 [21:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215754&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191624&fm=33364041633145&tin=02508201610067®Number=0000000000091776&sum=30000 [21:57:45]OFD Sender: Processing packet 191624 [packets to send 75, broken 74] [21:57:45]ProducePacketName [21:57:45]name=ofd_packets/00191624 [21:57:45]OFD Sender: To server: pG, [21:57:45]CommunicateWithHost lk.salyk.kg:30040 [21:57:45]ConnectInit lk.salyk.kg [21:57:45]written 0, free lines is 4095 [21:57:45]Connected sock=10 [21:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 F6 07 01 D2 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 62 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EC 02 00 35 04 06 00 1E 58 2B D9 8D 79 45 32 D0 CD AA 4B 20 66 [21:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 DB 47 00 08 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EC 02 00 F4 03 04 00 30 B9 1B 67 B6 04 01 00 00 F2 77 B1 D4 28 15 B7 DB [21:57:45]CommunicateWithHost err = 0 [21:57:45]CheckOFDResponse [21:57:45]1017 (14) - 77093643461234 [21:57:45]1041 (16) - 0000000000871754 [21:57:45]1040 (4) - 191624 [21:57:45]1012 (4) - 25.10.2024 15:28 [21:57:45]1206 (1) - 0 [21:57:45]OFD Sender: Remove packet 191624 [21:57:45]ProducePacketName [21:57:45]name=ofd_packets/00191624 [21:57:45]NVStorageDeleteData [21:57:46]Write to MH i2c: 01 00 00 09 D8 E1 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 07 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 07 00 09 D8 00 00 00 00 00 C3 0C B7 [21:57:46]RasterBufferAndPrint [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]written 0, free lines is 3276 [21:57:46]MH_Cut [21:57:46]Write to MH i2c: D1 01 00 10 D8 01 BA [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 01 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 01 00 10 D8 00 B9 [21:57:46]Write to MH i2c: 01 00 00 11 D8 E9 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]OFD Sender: No OFD packet to send [21:57:46]*** Cut start [21:57:46]*** Partial cut [21:57:46]*** CUTSNS_PIN = 1 [21:57:46]*** CUTSNS_PIN = 0 [21:57:47]*** Brake cut motor [21:57:47]Read from MH i2c: 01 [21:57:47]MH_I2C_Read... [21:57:47]*** Stop cut motor [21:57:47]*** Cut end [21:57:47]Read from MH i2c: 01 07 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: 01 07 00 11 D8 00 00 00 00 00 FF 0F FE [21:57:47]process_action close_receipt done [21:57:47]requested_data is exist [21:57:47]produce_requested_data [21:57:47]requested_item fm.sn is exist - process it [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 11 00 00 [21:57:47]Write to MH i2c: E2 08 00 12 D8 80 11 00 00 00 00 00 00 64 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 12 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [21:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:57:47]wFMCommunicate OK [21:57:47]requested_item fd.num is exist - process it [21:57:47]SAM_PROTO_GetFieldsCounters [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 13 00 00 [21:57:47]Write to MH i2c: E2 08 00 13 D8 80 13 00 00 00 00 00 00 67 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 62 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 62 00 13 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:47]wFMCommunicate OK [21:57:47]SAM_PROTO_GetFieldsCounters done [21:57:47]requested_item shift.num is exist - process it [21:57:47]requested_item shift.opened is exist - process it [21:57:47]req_shift_opened [21:57:47]FM_GetShiftState [21:57:47]SAM_PROTO_GetShiftState [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 13 01 00 [21:57:47]Write to MH i2c: E2 08 00 14 D8 80 13 01 00 00 00 00 00 69 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 0E 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 0E 00 14 D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2C [21:57:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:57:47]wFMCommunicate OK [21:57:47]SAM_PROTO_GetShiftState done [21:57:47]FM_GetShiftState done [21:57:47]req_shift_opened done [21:57:47]requested_item shift.open_date is exist - process it [21:57:47]req_shift_open_date [21:57:47]req_shift_open_date done [21:57:47]produce_requested_data done [21:57:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191624,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:57:47]process_action_free close_receipt [21:57:47]json_value_free [21:57:47]json_value_free done [21:57:47]process_json_proto returns [21:57:47]Send response to host [21:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191624,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:57:47]free response buf [21:57:47]execute_script done [21:57:47]execute_script returns [21:57:47]free content buf [21:57:47]Sock 8.Close socket [21:57:47]Sock 8.Thread stoped [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:43]accept exits with 9 [21:58:43]New connection [21:58:43]New thread 3066961252 created [21:58:43]Thread 3066817892 joined [21:58:43]Waiting for new connection... [21:58:43] Sock 9.Parse request [21:58:43]Sock 9.Check first char [21:58:43]Sock 9.First char is OK [21:58:43]request: POST /json_proto HTTP/1.0 [21:58:43]Method: POST [21:58:43]URL: /json_proto [21:58:43]Method is POST - this is cgi request [21:58:43]url: /json_proto [21:58:43]query_string will be loaded in cgi processing [21:58:43]execute_cgi json_proto POST (null) [21:58:43]execute_cgi path=json_proto method=POST [21:58:43]POST find Content-Length [21:58:43]Host: 172.17.63.131:8080 [21:58:43]Content-Length: 676 [21:58:43]Content-Type: application/json [21:58:43] [21:58:43]POST finish read [21:58:43]Found Content-Length = 676 [21:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:43]execute_script... [21:58: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)30929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:43]POST & json_proto [21:58:43]process_json_proto [21:58:43]json parsed OK: [21:58:43]protocol is kg_v1.0 [21:58:43]action value=close_receipt [21:58:43]process_action close_receipt [21:58:43]cmd_close_receipt [21:58:43]MH_GetDate [21:58:43]Write to MH i2c: F0 00 00 15 D8 DC [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 09 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 09 00 15 D8 00 9E 14 1C 67 22 05 6E 64 13 [21:58:43]GetLastDocTimeStamp 1729893474 [21:58:43]current date 1729893534 [21:58:43]FM_GetShiftState [21:58:43]SAM_PROTO_GetShiftState [21:58:43]wFMCommunicate request_size=4 [21:58:43]MH_SAM_APDU [21:58:43]CAPDU: 80 13 01 00 [21:58:43]Write to MH i2c: E2 08 00 16 D8 80 13 01 00 00 00 00 00 6B [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:43]Read from MH i2c: E2 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 16 D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 2E [21:58:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:58:43]wFMCommunicate OK [21:58:43]SAM_PROTO_GetShiftState done [21:58:43]FM_GetShiftState done [21:58:43]opened in 1729816399 [21:58:43]opened+sec_in_day 1729902799 [21:58:43]quantity*price = 30038 [21:58:43]sum+1 = 30039 [21:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 364 25.10.2024 21:58 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191625 ФПД: 33506034012867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215854&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191625&fm=33506034012867&tin=02508201610067®Number=0000000000091776&sum=30000 [21:58:44]StoreToDocumentArchive [21:58:44]shift 540 fd 191625 [21:58:44]save to /storage/0540/doc_00191625 [21:58:44]save last doc name /storage/0540/doc_00191625 to /storage/kkm_last_doc_name [21:58:44]save OK [21:58:44]Clear old archive folders... [21:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:44]tlvbuf is 019D2CA0 [21:58:44]SAM_PROTO_ClearQueue [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 09 00 00 [21:58:44]Write to MH i2c: E2 08 00 23 D8 80 09 00 00 00 00 00 00 6D [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 23 D8 00 90 00 6F [21:58:44]RAPDU: 90 00 [21:58:44]wFMCommunicate OK [21:58:44]SAM_PROTO_ClearQueue done [21:58:44]KKMCreateOFDPacket [21:58:44]OFDProtocolAddRootSTLVToBuf [21:58:44]FM_MakeSignedData [21:58:44]FM_MakeSignedData [21:58:44]SAM_PROTO_SignData [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 0D 01 02 [21:58:44]Write to MH i2c: E2 08 00 24 D8 80 0D 01 02 00 00 00 00 75 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 24 D8 00 90 00 70 [21:58:44]RAPDU: 90 00 [21:58:44]wFMCommunicate OK [21:58:44]wFMCommunicate request_size=255 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 9E 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EC 02 00 35 04 06 00 1E [21:58:44]Write to MH i2c: E2 02 01 25 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 9E 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EC 02 00 35 04 06 00 1E 00 00 52 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 25 D8 00 90 00 71 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=10 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 02 02 05 79 3B 41 52 C3 [21:58:45]Write to MH i2c: E2 0D 00 26 D8 80 0D 02 02 05 00 79 3B 41 52 C3 00 00 8C [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 26 D8 00 90 00 72 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 03 02 [21:58:45]Write to MH i2c: E2 08 00 27 D8 80 0D 03 02 00 00 00 00 7A [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 27 D8 00 8F 31 39 A4 64 42 46 CC 90 00 D0 [21:58:45]RAPDU: 8F 31 39 A4 64 42 46 CC 90 00 [21:58:45]wFMCommunicate OK [21:58:45]SAM_PROTO_SignData done [21:58:45]FM_MakeSignedData done [21:58:45]CreateOFDProtocolMessage [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 11 00 00 [21:58:45]Write to MH i2c: E2 08 00 28 D8 80 11 00 00 00 00 00 00 7A [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 28 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [21:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:45]wFMCommunicate OK [21:58:45]CreateOFDProtocolMessage done [21:58:45]OFDSenderStorePacket 191625 [21:58:45]StoreOFDPacket docnum=191625 [21:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 59 07 01 EB D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 9E 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EC 02 00 35 04 06 00 1E 79 3B 41 52 C3 8F 31 39 A4 64 42 46 CC [21:58:45]CheckFolder [21:58:45]dirname=/storage/ofd_packets [21:58:45]CheckFolder done [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00191625 [21:58:45]NVStorageSaveData ofd_packets/00191625 [21:58:45]File name is /storage/ofd_packets/00191625 [21:58:45]Write 301 bytes [21:58:45]NVStorageSaveData done [21:58:45]OFDSenderStorePacket done [21:58:45]KKMCreateOFDPacket done [21:58:45]NVStorageSaveData kkm_last_timestamp [21:58:45]File name is /storage/kkm_last_timestamp [21:58:45]Write 4 bytes [21:58:45]NVStorageSaveData done [21:58:45]ExternCall_PrintAddStr [21:58:45]wPrintStart [21:58:45]Write to MH i2c: 01 00 00 29 D8 01 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 29 D8 00 00 00 00 00 FF 0F 16 [21:58:45]RasterBufferAndPrint [21:58:45]line Счет N : (1)30929 [21:58:45]line ИНН: 02508201610067 [21:58:45]line Контрольно-Кассовый Чек [21:58:45]line ПРОДАЖА [21:58:45]line ТРК (МРК, ГНК) : 21 [21:58:45]line Товар: 2710124130 [21:58:45]line Аи-92-К-5 [21:58:45]line 4.490 * 66.90 [21:58:45]line = 300.38 [21:58:45]line НДС 12% НСП 1% [21:58:45]line > о реализуемом товаре [21:58:45]line ОКРУГЛЕНИЕ: -0.38 [21:58:45]line ИТОГО: 300.00 [21:58:45]line Внесено: 300.00 [21:58:45]line СДАЧА: 0.00 [21:58:45]line НСП 1% : 2.66 [21:58:45]line НДС 12% : 31.90 [21:58:45]line Наличными: 300.00 [21:58:45]line Безнал.: 0.00 [21:58:45]line Место: АЗС № 170 "Партнер Нефть" [21:58:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:58:45]line СНО: Общий режим [21:58:45]line Чек 364 25.10.2024 21:58 [21:58:45]line Смена: 540 ФФД: 1.0 [21:58:45]line ЗНМ: 0300000110 [21:58:45]line РНМ: 0000000000091776 [21:58:45]line Версия ККМ: 001 [21:58:45]line ФМ: 0000000000871754 [21:58:45]line ФД: 191625 [21:58:45]line ФПД: 33506034012867 [21:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215854&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191625&fm=33506034012867&tin=02508201610067®Number=0000000000091776&sum=30000 [21:58:45]OFD Sender: Processing packet 191625 [packets to send 75, broken 74] [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00191625 [21:58:45]OFD Sender: To server: pG, [21:58:45]CommunicateWithHost lk.salyk.kg:30040 [21:58:45]ConnectInit lk.salyk.kg [21:58:45]written 0, free lines is 4095 [21:58:45]Connected sock=10 [21:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 59 07 01 EB D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 9E 14 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EC 02 00 35 04 06 00 1E 79 3B 41 52 C3 8F 31 39 A4 64 42 46 CC [21:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B B2 47 00 A9 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EC 02 00 F4 03 04 00 6C B9 1B 67 B6 04 01 00 00 6A C8 B8 1D 09 DA A8 D6 [21:58:46]CommunicateWithHost err = 0 [21:58:46]CheckOFDResponse [21:58:46]1017 (14) - 77093643461234 [21:58:46]1041 (16) - 0000000000871754 [21:58:46]1040 (4) - 191625 [21:58:46]1012 (4) - 25.10.2024 15:29 [21:58:46]1206 (1) - 0 [21:58:46]OFD Sender: Remove packet 191625 [21:58:46]ProducePacketName [21:58:46]name=ofd_packets/00191625 [21:58:46]NVStorageDeleteData [21:58:46]Write to MH i2c: 01 00 00 54 D8 2C [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 54 D8 00 00 00 00 00 CB 0C 0A [21:58:46]RasterBufferAndPrint [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]written 0, free lines is 3281 [21:58:46]MH_Cut [21:58:46]Write to MH i2c: D1 01 00 5B D8 01 05 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 01 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 01 00 5B D8 00 04 [21:58:46]Write to MH i2c: 01 00 00 5C D8 34 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]OFD Sender: No OFD packet to send [21:58:46]*** Cut start [21:58:46]*** Partial cut [21:58:46]*** CUTSNS_PIN = 1 [21:58:47]*** CUTSNS_PIN = 0 [21:58:47]*** Brake cut motor [21:58:47]Read from MH i2c: 01 [21:58:47]MH_I2C_Read... [21:58:47]*** Stop cut motor [21:58:47]*** Cut end [21:58:47]Read from MH i2c: 01 07 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: 01 07 00 5C D8 00 00 00 00 00 FF 0F 49 [21:58:47]process_action close_receipt done [21:58:47]requested_data is exist [21:58:47]produce_requested_data [21:58:47]requested_item fm.sn is exist - process it [21:58:47]wFMCommunicate request_size=4 [21:58:47]MH_SAM_APDU [21:58:47]CAPDU: 80 11 00 00 [21:58:47]Write to MH i2c: E2 08 00 5D D8 80 11 00 00 00 00 00 00 AF [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:47]Read from MH i2c: E2 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 17 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 17 00 5D D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [21:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:47]wFMCommunicate OK [21:58:47]requested_item fd.num is exist - process it [21:58:47]SAM_PROTO_GetFieldsCounters [21:58:47]wFMCommunicate request_size=4 [21:58:47]MH_SAM_APDU [21:58:47]CAPDU: 80 13 00 00 [21:58:47]Write to MH i2c: E2 08 00 5E D8 80 13 00 00 00 00 00 00 B2 [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:47]Read from MH i2c: E2 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 62 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 62 00 5E D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:47]wFMCommunicate OK [21:58:47]SAM_PROTO_GetFieldsCounters done [21:58:47]requested_item shift.num is exist - process it [21:58:47]requested_item shift.opened is exist - process it [21:58:47]req_shift_opened [21:58:47]FM_GetShiftState [21:58:47]SAM_PROTO_GetShiftState [21:58:47]wFMCommunicate request_size=4 [21:58:47]MH_SAM_APDU [21:58:47]CAPDU: 80 13 01 00 [21:58:47]Write to MH i2c: E2 08 00 5F D8 80 13 01 00 00 00 00 00 B4 [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:47]Read from MH i2c: E2 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 0E 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 0E 00 5F D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 77 [21:58:47]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [21:58:47]wFMCommunicate OK [21:58:47]SAM_PROTO_GetShiftState done [21:58:47]FM_GetShiftState done [21:58:47]req_shift_opened done [21:58:47]requested_item shift.open_date is exist - process it [21:58:47]req_shift_open_date [21:58:47]req_shift_open_date done [21:58:47]produce_requested_data done [21:58:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191625,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [21:58:47]process_action_free close_receipt [21:58:47]json_value_free [21:58:47]json_value_free done [21:58:47]process_json_proto returns [21:58:47]Send response to host [21:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191625,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [21:58:47]free response buf [21:58:47]execute_script done [21:58:47]execute_script returns [21:58:47]free content buf [21:58:47]Sock 9.Close socket [21:58:47]Sock 9.Thread stoped [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]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:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:31]accept exits with 8 [22:20:31]New connection [22:20:31]New thread 3066817892 created [22:20:31]Thread 3066961252 joined [22:20:31]Waiting for new connection... [22:20:31] Sock 8.Parse request [22:20:31]Sock 8.Check first char [22:20:31]Sock 8.First char is OK [22:20:31]request: POST /json_proto HTTP/1.0 [22:20:31]Method: POST [22:20:31]URL: /json_proto [22:20:31]Method is POST - this is cgi request [22:20:31]url: /json_proto [22:20:31]query_string will be loaded in cgi processing [22:20:31]execute_cgi json_proto POST (null) [22:20:31]execute_cgi path=json_proto method=POST [22:20:31]POST find Content-Length [22:20:31]Host: 172.17.63.131:8080 [22:20:31]Content-Length: 676 [22:20:31]Content-Type: application/json [22:20:31] [22:20:31]POST finish read [22:20:31]Found Content-Length = 676 [22:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:31]execute_script... [22:20: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)30930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:31]POST & json_proto [22:20:31]process_json_proto [22:20:31]json parsed OK: [22:20:31]protocol is kg_v1.0 [22:20:31]action value=close_receipt [22:20:31]process_action close_receipt [22:20:31]cmd_close_receipt [22:20:31]MH_GetDate [22:20:31]Write to MH i2c: F0 00 00 60 D8 27 [22:20:31]Write i2c OK [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: F0 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: F0 09 00 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: F0 09 00 60 D8 00 BA 19 1C 67 22 05 6E 64 7F [22:20:31]GetLastDocTimeStamp 1729893534 [22:20:31]current date 1729894842 [22:20:31]FM_GetShiftState [22:20:31]SAM_PROTO_GetShiftState [22:20:31]wFMCommunicate request_size=4 [22:20:31]MH_SAM_APDU [22:20:31]CAPDU: 80 13 01 00 [22:20:31]Write to MH i2c: E2 08 00 61 D8 80 13 01 00 00 00 00 00 B6 [22:20:31]Write i2c OK [22:20:31]MH_I2C_Read... [22:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:31]Read from MH i2c: E2 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 0E 00 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 0E 00 61 D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 79 [22:20:31]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:20:31]wFMCommunicate OK [22:20:31]SAM_PROTO_GetShiftState done [22:20:31]FM_GetShiftState done [22:20:31]opened in 1729816399 [22:20:31]opened+sec_in_day 1729902799 [22:20:31]quantity*price = 40006 [22:20:31]sum+1 = 40007 [22:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 365 25.10.2024 22:20 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191626 ФПД: 84173703876628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T222042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191626&fm=84173703876628&tin=02508201610067®Number=0000000000091776&sum=40000 [22:20:32]StoreToDocumentArchive [22:20:32]shift 540 fd 191626 [22:20:32]save to /storage/0540/doc_00191626 [22:20:32]save last doc name /storage/0540/doc_00191626 to /storage/kkm_last_doc_name [22:20:32]save OK [22:20:32]Clear old archive folders... [22:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:32]tlvbuf is 019D2850 [22:20:32]SAM_PROTO_ClearQueue [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 09 00 00 [22:20:32]Write to MH i2c: E2 08 00 6E D8 80 09 00 00 00 00 00 00 B8 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 6E D8 00 90 00 BA [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]SAM_PROTO_ClearQueue done [22:20:32]KKMCreateOFDPacket [22:20:32]OFDProtocolAddRootSTLVToBuf [22:20:32]FM_MakeSignedData [22:20:32]FM_MakeSignedData [22:20:32]SAM_PROTO_SignData [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 01 02 [22:20:32]Write to MH i2c: E2 08 00 6F D8 80 0D 01 02 00 00 00 00 C0 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 6F D8 00 90 00 BB [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]wFMCommunicate request_size=255 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 BA 19 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EC 02 00 35 04 06 00 4C [22:20:32]Write to MH i2c: E2 02 01 70 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 BA 19 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EC 02 00 35 04 06 00 4C 00 00 C9 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 70 D8 00 90 00 BC [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]wFMCommunicate request_size=10 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 02 02 05 8E 37 B8 10 14 [22:20:32]Write to MH i2c: E2 0D 00 71 D8 80 0D 02 02 05 00 8E 37 B8 10 14 00 00 6E [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 71 D8 00 90 00 BD [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 03 02 [22:20:32]Write to MH i2c: E2 08 00 72 D8 80 0D 03 02 00 00 00 00 C5 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:32]OFD Sender: No OFD packet to send [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0B 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0B 00 72 D8 00 93 81 6B 32 9A 42 C2 8A 90 00 9F [22:20:32]RAPDU: 93 81 6B 32 9A 42 C2 8A 90 00 [22:20:32]wFMCommunicate OK [22:20:32]SAM_PROTO_SignData done [22:20:32]FM_MakeSignedData done [22:20:32]CreateOFDProtocolMessage [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 11 00 00 [22:20:32]Write to MH i2c: E2 08 00 73 D8 80 11 00 00 00 00 00 00 C5 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 73 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [22:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:20:32]wFMCommunicate OK [22:20:32]CreateOFDProtocolMessage done [22:20:32]OFDSenderStorePacket 191626 [22:20:32]StoreOFDPacket docnum=191626 [22:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 3D 07 01 3E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 BA 19 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EC 02 00 35 04 06 00 4C 8E 37 B8 10 14 93 81 6B 32 9A 42 C2 8A [22:20:32]CheckFolder [22:20:32]dirname=/storage/ofd_packets [22:20:32]CheckFolder done [22:20:32]ProducePacketName [22:20:32]name=ofd_packets/00191626 [22:20:32]NVStorageSaveData ofd_packets/00191626 [22:20:32]File name is /storage/ofd_packets/00191626 [22:20:32]Write 301 bytes [22:20:32]NVStorageSaveData done [22:20:32]OFDSenderStorePacket done [22:20:32]KKMCreateOFDPacket done [22:20:32]NVStorageSaveData kkm_last_timestamp [22:20:32]File name is /storage/kkm_last_timestamp [22:20:32]Write 4 bytes [22:20:32]NVStorageSaveData done [22:20:32]ExternCall_PrintAddStr [22:20:32]wPrintStart [22:20:32]Write to MH i2c: 01 00 00 74 D8 4C [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 07 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 07 00 74 D8 00 00 00 00 00 FF 0F 61 [22:20:32]RasterBufferAndPrint [22:20:32]line Счет N : (1)30930 [22:20:32]line ИНН: 02508201610067 [22:20:32]line Контрольно-Кассовый Чек [22:20:32]line ПРОДАЖА [22:20:32]line ТРК (МРК, ГНК) : 12 [22:20:32]line Товар: 2710124130 [22:20:32]line Аи-92-К-5 [22:20:32]line 5.980 * 66.90 [22:20:32]line = 400.06 [22:20:32]line НДС 12% НСП 1% [22:20:32]line > о реализуемом товаре [22:20:32]line ОКРУГЛЕНИЕ: -0.06 [22:20:32]line ИТОГО: 400.00 [22:20:32]line Внесено: 400.00 [22:20:32]line СДАЧА: 0.00 [22:20:32]line НСП 1% : 3.54 [22:20:32]line НДС 12% : 42.48 [22:20:32]line Наличными: 400.00 [22:20:32]line Безнал.: 0.00 [22:20:32]line Место: АЗС № 170 "Партнер Нефть" [22:20:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:20:32]line СНО: Общий режим [22:20:32]line Чек 365 25.10.2024 22:20 [22:20:32]line Смена: 540 ФФД: 1.0 [22:20:32]line ЗНМ: 0300000110 [22:20:32]line РНМ: 0000000000091776 [22:20:32]line Версия ККМ: 001 [22:20:32]line ФМ: 0000000000871754 [22:20:32]line ФД: 191626 [22:20:32]line ФПД: 84173703876628 [22:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T222042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191626&fm=84173703876628&tin=02508201610067®Number=0000000000091776&sum=40000 [22:20:33]OFD Sender: Processing packet 191626 [packets to send 75, broken 74] [22:20:33]ProducePacketName [22:20:33]name=ofd_packets/00191626 [22:20:33]OFD Sender: To server: pG, [22:20:33]CommunicateWithHost lk.salyk.kg:30040 [22:20:33]ConnectInit lk.salyk.kg [22:20:33]written 0, free lines is 4095 [22:20:33]Connected sock=10 [22:20:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 3D 07 01 3E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 BA 19 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EC 02 00 35 04 06 00 4C 8E 37 B8 10 14 93 81 6B 32 9A 42 C2 8A [22:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 2A 47 00 CC 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 31 37 35 34 10 04 04 00 8A EC 02 00 F4 03 04 00 87 BE 1B 67 B6 04 01 00 00 C6 14 76 B1 A5 A4 14 E1 [22:20:33]CommunicateWithHost err = 0 [22:20:33]CheckOFDResponse [22:20:33]1017 (14) - 77093643461234 [22:20:33]1041 (16) - 0000000000871754 [22:20:33]1040 (4) - 191626 [22:20:33]1012 (4) - 25.10.2024 15:51 [22:20:33]1206 (1) - 0 [22:20:33]OFD Sender: Remove packet 191626 [22:20:33]ProducePacketName [22:20:33]name=ofd_packets/00191626 [22:20:33]NVStorageDeleteData [22:20:33]Write to MH i2c: 01 00 00 9F D8 77 [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 07 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 07 00 9F D8 00 00 00 00 00 C3 0C 4D [22:20:33]RasterBufferAndPrint [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]written 0, free lines is 3272 [22:20:33]MH_Cut [22:20:33]Write to MH i2c: D1 01 00 A6 D8 01 50 [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: D1 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: D1 01 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: D1 01 00 A6 D8 00 4F [22:20:33]Write to MH i2c: 01 00 00 A7 D8 7F [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:34]OFD Sender: No OFD packet to send [22:20:34]*** Cut start [22:20:34]*** Partial cut [22:20:34]*** CUTSNS_PIN = 1 [22:20:34]*** CUTSNS_PIN = 0 [22:20:34]*** Brake cut motor [22:20:35]Read from MH i2c: 01 [22:20:35]MH_I2C_Read... [22:20:35]*** Stop cut motor [22:20:35]*** Cut end [22:20:35]Read from MH i2c: 01 07 00 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: 01 07 00 A7 D8 00 00 00 00 00 FF 0F 94 [22:20:35]process_action close_receipt done [22:20:35]requested_data is exist [22:20:35]produce_requested_data [22:20:35]requested_item fm.sn is exist - process it [22:20:35]wFMCommunicate request_size=4 [22:20:35]MH_SAM_APDU [22:20:35]CAPDU: 80 11 00 00 [22:20:35]Write to MH i2c: E2 08 00 A8 D8 80 11 00 00 00 00 00 00 FA [22:20:35]Write i2c OK [22:20:35]MH_I2C_Read... [22:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:35]Read from MH i2c: E2 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 17 00 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 17 00 A8 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [22:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:20:35]wFMCommunicate OK [22:20:35]requested_item fd.num is exist - process it [22:20:35]SAM_PROTO_GetFieldsCounters [22:20:35]wFMCommunicate request_size=4 [22:20:35]MH_SAM_APDU [22:20:35]CAPDU: 80 13 00 00 [22:20:35]Write to MH i2c: E2 08 00 A9 D8 80 13 00 00 00 00 00 00 FD [22:20:35]Write i2c OK [22:20:35]MH_I2C_Read... [22:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:35]Read from MH i2c: E2 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 62 00 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 62 00 A9 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:35]wFMCommunicate OK [22:20:35]SAM_PROTO_GetFieldsCounters done [22:20:35]requested_item shift.num is exist - process it [22:20:35]requested_item shift.opened is exist - process it [22:20:35]req_shift_opened [22:20:35]FM_GetShiftState [22:20:35]SAM_PROTO_GetShiftState [22:20:35]wFMCommunicate request_size=4 [22:20:35]MH_SAM_APDU [22:20:35]CAPDU: 80 13 01 00 [22:20:35]Write to MH i2c: E2 08 00 AA D8 80 13 01 00 00 00 00 00 FF [22:20:35]Write i2c OK [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 [22:20:35]MH_I2C_Read... [22:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:35]Read from MH i2c: E2 0E 00 [22:20:35]MH_I2C_Read... [22:20:35]Read from MH i2c: E2 0E 00 AA D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C2 [22:20:35]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:20:35]wFMCommunicate OK [22:20:35]SAM_PROTO_GetShiftState done [22:20:35]FM_GetShiftState done [22:20:35]req_shift_opened done [22:20:35]requested_item shift.open_date is exist - process it [22:20:35]req_shift_open_date [22:20:35]req_shift_open_date done [22:20:35]produce_requested_data done [22:20:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191626,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [22:20:35]process_action_free close_receipt [22:20:35]json_value_free [22:20:35]json_value_free done [22:20:35]process_json_proto returns [22:20:35]Send response to host [22:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191626,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [22:20:35]free response buf [22:20:35]execute_script done [22:20:35]execute_script returns [22:20:35]free content buf [22:20:35]Sock 8.Close socket [22:20:35]Sock 8.Thread stoped [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:56]accept exits with 9 [22:23:56]New connection [22:23:56]New thread 3066961252 created [22:23:56]Thread 3066817892 joined [22:23:56]Waiting for new connection... [22:23:56] Sock 9.Parse request [22:23:56]Sock 9.Check first char [22:23:56]Sock 9.First char is OK [22:23:56]request: POST /json_proto HTTP/1.0 [22:23:56]Method: POST [22:23:56]URL: /json_proto [22:23:56]Method is POST - this is cgi request [22:23:56]url: /json_proto [22:23:56]query_string will be loaded in cgi processing [22:23:56]execute_cgi json_proto POST (null) [22:23:56]execute_cgi path=json_proto method=POST [22:23:56]POST find Content-Length [22:23:56]Host: 172.17.63.131:8080 [22:23:56]Content-Length: 676 [22:23:56]Content-Type: application/json [22:23:56] [22:23:56]POST finish read [22:23:56]Found Content-Length = 676 [22:23:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:56]execute_script... [22:23: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)30931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:56]POST & json_proto [22:23:56]process_json_proto [22:23:56]json parsed OK: [22:23:56]protocol is kg_v1.0 [22:23:56]action value=close_receipt [22:23:56]process_action close_receipt [22:23:56]cmd_close_receipt [22:23:56]MH_GetDate [22:23:56]Write to MH i2c: F0 00 00 AB D8 72 [22:23:56]Write i2c OK [22:23:56]MH_I2C_Read... [22:23:56]Read from MH i2c: F0 [22:23:56]MH_I2C_Read... [22:23:56]Read from MH i2c: F0 09 00 [22:23:56]MH_I2C_Read... [22:23:56]Read from MH i2c: F0 09 00 AB D8 00 87 1A 1C 67 22 05 6E 64 98 [22:23:56]GetLastDocTimeStamp 1729894842 [22:23:56]current date 1729895047 [22:23:56]FM_GetShiftState [22:23:56]SAM_PROTO_GetShiftState [22:23:56]wFMCommunicate request_size=4 [22:23:56]MH_SAM_APDU [22:23:56]CAPDU: 80 13 01 00 [22:23:56]Write to MH i2c: E2 08 00 AC D8 80 13 01 00 00 00 00 00 01 [22:23:56]Write i2c OK [22:23:56]MH_I2C_Read... [22:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:56]Read from MH i2c: E2 [22:23:56]MH_I2C_Read... [22:23:56]Read from MH i2c: E2 0E 00 [22:23:56]MH_I2C_Read... [22:23:56]Read from MH i2c: E2 0E 00 AC D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 C4 [22:23:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:23:56]wFMCommunicate OK [22:23:56]SAM_PROTO_GetShiftState done [22:23:56]FM_GetShiftState done [22:23:56]opened in 1729816399 [22:23:56]opened+sec_in_day 1729902799 [22:23:56]quantity*price = 50041 [22:23:56]sum+1 = 50042 [22:23:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 366 25.10.2024 22:24 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191627 ФПД: 97602355523131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T222407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191627&fm=97602355523131&tin=02508201610067®Number=0000000000091776&sum=50000 [22:23:57]StoreToDocumentArchive [22:23:57]shift 540 fd 191627 [22:23:57]save to /storage/0540/doc_00191627 [22:23:57]save last doc name /storage/0540/doc_00191627 to /storage/kkm_last_doc_name [22:23:57]save OK [22:23:57]Clear old archive folders... [22:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:57]tlvbuf is 01A76400 [22:23:57]SAM_PROTO_ClearQueue [22:23:57]wFMCommunicate request_size=4 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 09 00 00 [22:23:57]Write to MH i2c: E2 08 00 B9 D8 80 09 00 00 00 00 00 00 03 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 B9 D8 00 90 00 05 [22:23:57]RAPDU: 90 00 [22:23:57]wFMCommunicate OK [22:23:57]SAM_PROTO_ClearQueue done [22:23:57]KKMCreateOFDPacket [22:23:57]OFDProtocolAddRootSTLVToBuf [22:23:57]FM_MakeSignedData [22:23:57]FM_MakeSignedData [22:23:57]SAM_PROTO_SignData [22:23:57]wFMCommunicate request_size=4 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 0D 01 02 [22:23:57]Write to MH i2c: E2 08 00 BA D8 80 0D 01 02 00 00 00 00 0B [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 BA D8 00 90 00 06 [22:23:57]RAPDU: 90 00 [22:23:57]wFMCommunicate OK [22:23:57]wFMCommunicate request_size=255 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 87 1A 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EC 02 00 35 04 06 00 58 [22:23:57]Write to MH i2c: E2 02 01 BB D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 87 1A 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EC 02 00 35 04 06 00 58 00 00 21 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 BB D8 00 90 00 07 [22:23:57]RAPDU: 90 00 [22:23:57]wFMCommunicate OK [22:23:57]wFMCommunicate request_size=10 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 0D 02 02 05 C4 D1 BA EE 3B [22:23:57]Write to MH i2c: E2 0D 00 BC D8 80 0D 02 02 05 00 C4 D1 BA EE 3B 00 00 90 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 03 00 BC D8 00 90 00 08 [22:23:57]RAPDU: 90 00 [22:23:57]wFMCommunicate OK [22:23:57]wFMCommunicate request_size=4 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 0D 03 02 [22:23:57]Write to MH i2c: E2 08 00 BD D8 80 0D 03 02 00 00 00 00 10 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 0B 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 0B 00 BD D8 00 77 E0 D9 EA D3 AD 1C CC 90 00 93 [22:23:57]RAPDU: 77 E0 D9 EA D3 AD 1C CC 90 00 [22:23:57]wFMCommunicate OK [22:23:57]SAM_PROTO_SignData done [22:23:57]FM_MakeSignedData done [22:23:57]CreateOFDProtocolMessage [22:23:57]wFMCommunicate request_size=4 [22:23:57]MH_SAM_APDU [22:23:57]CAPDU: 80 11 00 00 [22:23:57]Write to MH i2c: E2 08 00 BE D8 80 11 00 00 00 00 00 00 10 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:57]Read from MH i2c: E2 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 17 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: E2 17 00 BE D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [22:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:23:57]wFMCommunicate OK [22:23:57]CreateOFDProtocolMessage done [22:23:57]OFDSenderStorePacket 191627 [22:23:57]StoreOFDPacket docnum=191627 [22:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 20 07 01 39 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 87 1A 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EC 02 00 35 04 06 00 58 C4 D1 BA EE 3B 77 E0 D9 EA D3 AD 1C CC [22:23:57]CheckFolder [22:23:57]dirname=/storage/ofd_packets [22:23:57]CheckFolder done [22:23:57]ProducePacketName [22:23:57]name=ofd_packets/00191627 [22:23:57]NVStorageSaveData ofd_packets/00191627 [22:23:57]File name is /storage/ofd_packets/00191627 [22:23:57]Write 301 bytes [22:23:57]NVStorageSaveData done [22:23:57]OFDSenderStorePacket done [22:23:57]KKMCreateOFDPacket done [22:23:57]NVStorageSaveData kkm_last_timestamp [22:23:57]File name is /storage/kkm_last_timestamp [22:23:57]Write 4 bytes [22:23:57]NVStorageSaveData done [22:23:57]ExternCall_PrintAddStr [22:23:57]wPrintStart [22:23:57]Write to MH i2c: 01 00 00 BF D8 97 [22:23:57]Write i2c OK [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: 01 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: 01 07 00 [22:23:57]MH_I2C_Read... [22:23:57]Read from MH i2c: 01 07 00 BF D8 00 00 00 00 00 FF 0F AC [22:23:57]RasterBufferAndPrint [22:23:57]line Счет N : (1)30931 [22:23:57]line ИНН: 02508201610067 [22:23:57]line Контрольно-Кассовый Чек [22:23:57]line ПРОДАЖА [22:23:57]line ТРК (МРК, ГНК) : 21 [22:23:57]line Товар: 2710124130 [22:23:57]line Аи-92-К-5 [22:23:57]line 7.480 * 66.90 [22:23:57]line = 500.41 [22:23:57]line НДС 12% НСП 1% [22:23:57]line > о реализуемом товаре [22:23:57]line ОКРУГЛЕНИЕ: -0.41 [22:23:57]line ИТОГО: 500.00 [22:23:57]line Внесено: 500.00 [22:23:57]line СДАЧА: 0.00 [22:23:57]line НСП 1% : 4.43 [22:23:57]line НДС 12% : 53.14 [22:23:57]line Наличными: 500.00 [22:23:57]line Безнал.: 0.00 [22:23:57]line Место: АЗС № 170 "Партнер Нефть" [22:23:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:23:57]line СНО: Общий режим [22:23:57]line Чек 366 25.10.2024 22:24 [22:23:57]line Смена: 540 ФФД: 1.0 [22:23:57]line ЗНМ: 0300000110 [22:23:57]line РНМ: 0000000000091776 [22:23:57]line Версия ККМ: 001 [22:23:57]line ФМ: 0000000000871754 [22:23:57]line ФД: 191627 [22:23:57]line ФПД: 97602355523131 [22:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T222407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191627&fm=97602355523131&tin=02508201610067®Number=0000000000091776&sum=50000 [22:23:58]OFD Sender: Processing packet 191627 [packets to send 75, broken 74] [22:23:58]ProducePacketName [22:23:58]name=ofd_packets/00191627 [22:23:58]OFD Sender: To server: pG, [22:23:58]CommunicateWithHost lk.salyk.kg:30040 [22:23:58]ConnectInit lk.salyk.kg [22:23:58]written 0, free lines is 4095 [22:23:58]Write to MH i2c: 01 00 00 EA D8 C2 [22:23:58]Write i2c OK [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: 01 [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: 01 07 00 [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: 01 07 00 EA D8 00 00 00 00 00 B6 0C 8B [22:23:58]RasterBufferAndPrint [22:23:58]line [22:23:58]line [22:23:58]line [22:23:58]line [22:23:58]line [22:23:58]written 0, free lines is 3260 [22:23:58]MH_Cut [22:23:58]Write to MH i2c: D1 01 00 F1 D8 01 9B [22:23:58]Write i2c OK [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: D1 [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: D1 01 00 [22:23:58]MH_I2C_Read... [22:23:58]Read from MH i2c: D1 01 00 F1 D8 00 9A [22:23:58]Write to MH i2c: 01 00 00 F2 D8 CA [22:23:58]Write i2c OK [22:23:58]MH_I2C_Read... [22:23:59]*** Cut start [22:23:59]*** Partial cut [22:23:59]*** CUTSNS_PIN = 1 [22:23:59]*** CUTSNS_PIN = 0 [22:23:59]*** Brake cut motor [22:24:00]Read from MH i2c: 01 [22:24:00]MH_I2C_Read... [22:24:00]*** Stop cut motor [22:24:00]*** Cut end [22:24:00]Read from MH i2c: 01 07 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: 01 07 00 F2 D8 00 00 00 00 00 FF 0F DF [22:24:00]process_action close_receipt done [22:24:00]requested_data is exist [22:24:00]produce_requested_data [22:24:00]requested_item fm.sn is exist - process it [22:24:00]wFMCommunicate request_size=4 [22:24:00]MH_SAM_APDU [22:24:00]CAPDU: 80 11 00 00 [22:24:00]Write to MH i2c: E2 08 00 F3 D8 80 11 00 00 00 00 00 00 45 [22:24:00]Write i2c OK [22:24:00]MH_I2C_Read... [22:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:00]Read from MH i2c: E2 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 17 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 17 00 F3 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [22:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:24:00]wFMCommunicate OK [22:24:00]requested_item fd.num is exist - process it [22:24:00]SAM_PROTO_GetFieldsCounters [22:24:00]wFMCommunicate request_size=4 [22:24:00]MH_SAM_APDU [22:24:00]CAPDU: 80 13 00 00 [22:24:00]Write to MH i2c: E2 08 00 F4 D8 80 13 00 00 00 00 00 00 48 [22:24:00]Write i2c OK [22:24:00]MH_I2C_Read... [22:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:00]Read from MH i2c: E2 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 62 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 62 00 F4 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:00]wFMCommunicate OK [22:24:00]SAM_PROTO_GetFieldsCounters done [22:24:00]requested_item shift.num is exist - process it [22:24:00]requested_item shift.opened is exist - process it [22:24:00]req_shift_opened [22:24:00]FM_GetShiftState [22:24:00]SAM_PROTO_GetShiftState [22:24:00]wFMCommunicate request_size=4 [22:24:00]MH_SAM_APDU [22:24:00]CAPDU: 80 13 01 00 [22:24:00]Write to MH i2c: E2 08 00 F5 D8 80 13 01 00 00 00 00 00 4A [22:24:00]Write i2c OK [22:24:00]MH_I2C_Read... [22:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:00]Read from MH i2c: E2 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 0E 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 0E 00 F5 D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0D [22:24:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:24:00]wFMCommunicate OK [22:24:00]SAM_PROTO_GetShiftState done [22:24:00]FM_GetShiftState done [22:24:00]req_shift_opened done [22:24:00]requested_item shift.open_date is exist - process it [22:24:00]req_shift_open_date [22:24:00]req_shift_open_date done [22:24:00]produce_requested_data done [22:24:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191627,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [22:24:00]process_action_free close_receipt [22:24:00]json_value_free [22:24:00]json_value_free done [22:24:00]process_json_proto returns [22:24:00]Send response to host [22:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191627,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [22:24:00]free response buf [22:24:00]execute_script done [22:24:00]execute_script returns [22:24:00]free content buf [22:24:00]Sock 9.Close socket [22:24:00]Sock 9.Thread stoped [22:26:11]ConnectInit Can't connect to host [22:26:11]CommunicateWithHost connect error [22:26:11]CommunicateWithHost err = -1 [22:26:11]OFD Sender: Server communicate error [22:26:16]OFD Sender: Processing packet 191627 [packets to send 75, broken 74] [22:26:16]ProducePacketName [22:26:16]name=ofd_packets/00191627 [22:26:16]OFD Sender: To server: pG, [22:26:16]CommunicateWithHost lk.salyk.kg:30040 [22:26:16]ConnectInit lk.salyk.kg [22:26:16]Connected sock=9 [22:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 20 07 01 39 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 87 1A 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EC 02 00 35 04 06 00 58 C4 D1 BA EE 3B 77 E0 D9 EA D3 AD 1C CC [22:26:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3E 39 47 00 26 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EC 02 00 F4 03 04 00 DF BF 1B 67 B6 04 01 00 00 54 80 40 BD 03 42 C8 63 [22:26:16]CommunicateWithHost err = 0 [22:26:16]CheckOFDResponse [22:26:16]1017 (14) - 77093643461234 [22:26:16]1041 (16) - 0000000000871754 [22:26:16]1040 (4) - 191627 [22:26:16]1012 (4) - 25.10.2024 15:57 [22:26:16]1206 (1) - 0 [22:26:16]OFD Sender: Remove packet 191627 [22:26:16]ProducePacketName [22:26:16]name=ofd_packets/00191627 [22:26:16]NVStorageDeleteData [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]accept exits with 8 [22:29:52]New connection [22:29:52]New thread 3066817892 created [22:29:52]Thread 3066961252 joined [22:29:52]Waiting for new connection... [22:29:52] Sock 8.Parse request [22:29:52]Sock 8.Check first char [22:29:52]Sock 8.First char is OK [22:29:52]request: POST /json_proto HTTP/1.0 [22:29:52]Method: POST [22:29:52]URL: /json_proto [22:29:52]Method is POST - this is cgi request [22:29:52]url: /json_proto [22:29:52]query_string will be loaded in cgi processing [22:29:52]execute_cgi json_proto POST (null) [22:29:52]execute_cgi path=json_proto method=POST [22:29:52]POST find Content-Length [22:29:52]Host: 172.17.63.131:8080 [22:29:52]Content-Length: 677 [22:29:52]Content-Type: application/json [22:29:52] [22:29:52]POST finish read [22:29:52]Found Content-Length = 677 [22:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:52]execute_script... [22:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:52]POST & json_proto [22:29:52]process_json_proto [22:29:52]json parsed OK: [22:29:52]protocol is kg_v1.0 [22:29:52]action value=close_receipt [22:29:52]process_action close_receipt [22:29:52]cmd_close_receipt [22:29:52]MH_GetDate [22:29:52]Write to MH i2c: F0 00 00 F6 D8 BD [22:29:52]Write i2c OK [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: F0 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: F0 09 00 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: F0 09 00 F6 D8 00 EB 1B 1C 67 22 05 6E 64 48 [22:29:52]GetLastDocTimeStamp 1729895047 [22:29:52]current date 1729895403 [22:29:52]FM_GetShiftState [22:29:52]SAM_PROTO_GetShiftState [22:29:52]wFMCommunicate request_size=4 [22:29:52]MH_SAM_APDU [22:29:52]CAPDU: 80 13 01 00 [22:29:52]Write to MH i2c: E2 08 00 F7 D8 80 13 01 00 00 00 00 00 4C [22:29:52]Write i2c OK [22:29:52]MH_I2C_Read... [22:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:52]Read from MH i2c: E2 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: E2 0E 00 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: E2 0E 00 F7 D8 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 0F [22:29:52]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:29:52]wFMCommunicate OK [22:29:52]SAM_PROTO_GetShiftState done [22:29:52]FM_GetShiftState done [22:29:52]opened in 1729816399 [22:29:52]opened+sec_in_day 1729902799 [22:29:52]quantity*price = 70044 [22:29:52]sum+1 = 70045 [22:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 367 25.10.2024 22:30 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191628 ФПД: 190961261510090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T223003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191628&fm=190961261510090&tin=02508201610067®Number=0000000000091776&sum=70000 [22:29:53]StoreToDocumentArchive [22:29:53]shift 540 fd 191628 [22:29:53]save to /storage/0540/doc_00191628 [22:29:53]save last doc name /storage/0540/doc_00191628 to /storage/kkm_last_doc_name [22:29:53]save OK [22:29:53]Clear old archive folders... [22:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:53]tlvbuf is 019D2780 [22:29:53]SAM_PROTO_ClearQueue [22:29:53]wFMCommunicate request_size=4 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 09 00 00 [22:29:53]Write to MH i2c: E2 08 00 04 D9 80 09 00 00 00 00 00 00 4F [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:53]Read from MH i2c: E2 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 04 D9 00 90 00 51 [22:29:53]RAPDU: 90 00 [22:29:53]wFMCommunicate OK [22:29:53]SAM_PROTO_ClearQueue done [22:29:53]KKMCreateOFDPacket [22:29:53]OFDProtocolAddRootSTLVToBuf [22:29:53]FM_MakeSignedData [22:29:53]FM_MakeSignedData [22:29:53]SAM_PROTO_SignData [22:29:53]wFMCommunicate request_size=4 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 0D 01 02 [22:29:53]Write to MH i2c: E2 08 00 05 D9 80 0D 01 02 00 00 00 00 57 [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:53]Read from MH i2c: E2 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 05 D9 00 90 00 52 [22:29:53]RAPDU: 90 00 [22:29:53]wFMCommunicate OK [22:29:53]wFMCommunicate request_size=255 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 EB 1B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EC 02 00 35 04 06 00 AD [22:29:53]Write to MH i2c: E2 02 01 06 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 EB 1B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EC 02 00 35 04 06 00 AD 00 00 39 [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:53]Read from MH i2c: E2 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 06 D9 00 90 00 53 [22:29:53]RAPDU: 90 00 [22:29:53]wFMCommunicate OK [22:29:53]wFMCommunicate request_size=10 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 0D 02 02 05 AD A2 28 7D CA [22:29:53]Write to MH i2c: E2 0D 00 07 D9 80 0D 02 02 05 00 AD A2 28 7D CA 00 00 22 [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:53]Read from MH i2c: E2 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 03 00 07 D9 00 90 00 54 [22:29:53]RAPDU: 90 00 [22:29:53]wFMCommunicate OK [22:29:53]wFMCommunicate request_size=4 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 0D 03 02 [22:29:53]Write to MH i2c: E2 08 00 08 D9 80 0D 03 02 00 00 00 00 5C [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:53]Read from MH i2c: E2 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 0B 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: E2 0B 00 08 D9 00 43 7C AE 1B 17 74 7A 11 90 00 FB [22:29:53]RAPDU: 43 7C AE 1B 17 74 7A 11 90 00 [22:29:53]wFMCommunicate OK [22:29:53]SAM_PROTO_SignData done [22:29:53]FM_MakeSignedData done [22:29:53]CreateOFDProtocolMessage [22:29:53]wFMCommunicate request_size=4 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 11 00 00 [22:29:53]Write to MH i2c: E2 08 00 09 D9 80 11 00 00 00 00 00 00 5C [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 17 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 17 00 09 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [22:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:29:54]wFMCommunicate OK [22:29:54]CreateOFDProtocolMessage done [22:29:54]OFDSenderStorePacket 191628 [22:29:54]StoreOFDPacket docnum=191628 [22:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A7 27 07 01 94 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 EB 1B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EC 02 00 35 04 06 00 AD AD A2 28 7D CA 43 7C AE 1B 17 74 7A 11 [22:29:54]CheckFolder [22:29:54]dirname=/storage/ofd_packets [22:29:54]CheckFolder done [22:29:54]ProducePacketName [22:29:54]name=ofd_packets/00191628 [22:29:54]NVStorageSaveData ofd_packets/00191628 [22:29:54]File name is /storage/ofd_packets/00191628 [22:29:54]Write 301 bytes [22:29:54]NVStorageSaveData done [22:29:54]OFDSenderStorePacket done [22:29:54]KKMCreateOFDPacket done [22:29:54]NVStorageSaveData kkm_last_timestamp [22:29:54]File name is /storage/kkm_last_timestamp [22:29:54]Write 4 bytes [22:29:54]NVStorageSaveData done [22:29:54]ExternCall_PrintAddStr [22:29:54]wPrintStart [22:29:54]Write to MH i2c: 01 00 00 0A D9 E3 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 07 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 07 00 0A D9 00 00 00 00 00 FF 0F F8 [22:29:54]RasterBufferAndPrint [22:29:54]line Счет N : (1)30932 [22:29:54]line ИНН: 02508201610067 [22:29:54]line Контрольно-Кассовый Чек [22:29:54]line ПРОДАЖА [22:29:54]line ТРК (МРК, ГНК) : 21 [22:29:54]line Товар: 2710124130 [22:29:54]line Аи-92-К-5 [22:29:54]line 10.470 * 66.90 [22:29:54]line = 700.44 [22:29:54]line НДС 12% НСП 1% [22:29:54]line > о реализуемом товаре [22:29:54]line ОКРУГЛЕНИЕ: -0.44 [22:29:54]line ИТОГО: 700.00 [22:29:54]line Внесено: 700.00 [22:29:54]line СДАЧА: 0.00 [22:29:54]line НСП 1% : 6.20 [22:29:54]line НДС 12% : 74.38 [22:29:54]line Наличными: 700.00 [22:29:54]line Безнал.: 0.00 [22:29:54]line Место: АЗС № 170 "Партнер Нефть" [22:29:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:29:54]line СНО: Общий режим [22:29:54]line Чек 367 25.10.2024 22:30 [22:29:54]line Смена: 540 ФФД: 1.0 [22:29:54]line ЗНМ: 0300000110 [22:29:54]line РНМ: 0000000000091776 [22:29:54]line Версия ККМ: 001 [22:29:54]line ФМ: 0000000000871754 [22:29:54]line ФД: 191628 [22:29:54]line ФПД: 190961261510090 [22:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T223003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191628&fm=190961261510090&tin=02508201610067®Number=0000000000091776&sum=70000 [22:29:54]OFD Sender: Processing packet 191628 [packets to send 75, broken 74] [22:29:54]ProducePacketName [22:29:54]name=ofd_packets/00191628 [22:29:54]OFD Sender: To server: pG, [22:29:54]CommunicateWithHost lk.salyk.kg:30040 [22:29:54]ConnectInit lk.salyk.kg [22:29:54]written 0, free lines is 4095 [22:29:54]Connected sock=10 [22:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A7 27 07 01 94 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 EB 1B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EC 02 00 35 04 06 00 AD AD A2 28 7D CA 43 7C AE 1B 17 74 7A 11 [22:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E8 80 47 00 A9 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EC 02 00 F4 03 04 00 B8 C0 1B 67 B6 04 01 00 00 58 C4 27 47 E1 56 B3 F2 [22:29:54]CommunicateWithHost err = 0 [22:29:54]CheckOFDResponse [22:29:54]1017 (14) - 77093643461234 [22:29:54]1041 (16) - 0000000000871754 [22:29:54]1040 (4) - 191628 [22:29:54]1012 (4) - 25.10.2024 16:00 [22:29:54]1206 (1) - 0 [22:29:54]OFD Sender: Remove packet 191628 [22:29:54]ProducePacketName [22:29:54]name=ofd_packets/00191628 [22:29:54]NVStorageDeleteData [22:29:54]Write to MH i2c: 01 00 00 35 D9 0E [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 07 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: 01 07 00 35 D9 00 00 00 00 00 C0 0C E1 [22:29:54]RasterBufferAndPrint [22:29:54]line [22:29:54]line [22:29:54]line [22:29:54]line [22:29:54]line [22:29:54]written 0, free lines is 3273 [22:29:54]MH_Cut [22:29:54]Write to MH i2c: D1 01 00 3C D9 01 E7 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: D1 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: D1 01 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: D1 01 00 3C D9 00 E6 [22:29:54]Write to MH i2c: 01 00 00 3D D9 16 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:55]OFD Sender: No OFD packet to send [22:29:55]*** Cut start [22:29:55]*** Partial cut [22:29:55]*** CUTSNS_PIN = 1 [22:29:55]*** CUTSNS_PIN = 0 [22:29:55]*** Brake cut motor [22:29:56]Read from MH i2c: 01 [22:29:56]MH_I2C_Read... [22:29:56]*** Stop cut motor [22:29:56]*** Cut end [22:29:56]Read from MH i2c: 01 07 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 07 00 3D D9 00 00 00 00 00 FF 0F 2B [22:29:56]process_action close_receipt done [22:29:56]requested_data is exist [22:29:56]produce_requested_data [22:29:56]requested_item fm.sn is exist - process it [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 11 00 00 [22:29:56]Write to MH i2c: E2 08 00 3E D9 80 11 00 00 00 00 00 00 91 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 3E D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [22:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:29:56]wFMCommunicate OK [22:29:56]requested_item fd.num is exist - process it [22:29:56]SAM_PROTO_GetFieldsCounters [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 13 00 00 [22:29:56]Write to MH i2c: E2 08 00 3F D9 80 13 00 00 00 00 00 00 94 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 62 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 62 00 3F D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [22:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_GetFieldsCounters done [22:29:56]requested_item shift.num is exist - process it [22:29:56]requested_item shift.opened is exist - process it [22:29:56]req_shift_opened [22:29:56]FM_GetShiftState [22:29:56]SAM_PROTO_GetShiftState [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 13 01 00 [22:29:56]Write to MH i2c: E2 08 00 40 D9 80 13 01 00 00 00 00 00 96 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0E 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0E 00 40 D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 59 [22:29:56]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_GetShiftState done [22:29:56]FM_GetShiftState done [22:29:56]req_shift_opened done [22:29:56]requested_item shift.open_date is exist - process it [22:29:56]req_shift_open_date [22:29:56]req_shift_open_date done [22:29:56]produce_requested_data done [22:29:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191628,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [22:29:56]process_action_free close_receipt [22:29:56]json_value_free [22:29:56]json_value_free done [22:29:56]process_json_proto returns [22:29:56]Send response to host [22:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191628,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [22:29:56]free response buf [22:29:56]execute_script done [22:29:56]execute_script returns [22:29:56]free content buf [22:29:56]Sock 8.Close socket [22:29:56]Sock 8.Thread stoped [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]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:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:38]accept exits with 9 [23:19:38]New connection [23:19:38]New thread 3066961252 created [23:19:38]Thread 3066817892 joined [23:19:38]Waiting for new connection... [23:19:38] Sock 9.Parse request [23:19:38]Sock 9.Check first char [23:19:38]Sock 9.First char is OK [23:19:38]request: POST /json_proto HTTP/1.0 [23:19:38]Method: POST [23:19:38]URL: /json_proto [23:19:38]Method is POST - this is cgi request [23:19:38]url: /json_proto [23:19:38]query_string will be loaded in cgi processing [23:19:38]execute_cgi json_proto POST (null) [23:19:38]execute_cgi path=json_proto method=POST [23:19:38]POST find Content-Length [23:19:38]Host: 172.17.63.131:8080 [23:19:38]Content-Length: 673 [23:19:38]Content-Type: application/json [23:19:38] [23:19:38]POST finish read [23:19:38]Found Content-Length = 673 [23:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [23:19:38]execute_script... [23:19: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)30933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [23:19:38]POST & json_proto [23:19:38]process_json_proto [23:19:38]json parsed OK: [23:19:38]protocol is kg_v1.0 [23:19:38]action value=close_receipt [23:19:38]process_action close_receipt [23:19:38]cmd_close_receipt [23:19:38]MH_GetDate [23:19:38]Write to MH i2c: F0 00 00 41 D9 09 [23:19:38]Write i2c OK [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: F0 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: F0 09 00 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: F0 09 00 41 D9 00 96 27 1C 67 22 05 6E 64 4B [23:19:38]GetLastDocTimeStamp 1729895403 [23:19:38]current date 1729898390 [23:19:38]FM_GetShiftState [23:19:38]SAM_PROTO_GetShiftState [23:19:38]wFMCommunicate request_size=4 [23:19:38]MH_SAM_APDU [23:19:38]CAPDU: 80 13 01 00 [23:19:38]Write to MH i2c: E2 08 00 42 D9 80 13 01 00 00 00 00 00 98 [23:19:38]Write i2c OK [23:19:38]MH_I2C_Read... [23:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:38]Read from MH i2c: E2 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: E2 0E 00 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: E2 0E 00 42 D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 5B [23:19:38]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:19:38]wFMCommunicate OK [23:19:38]SAM_PROTO_GetShiftState done [23:19:38]FM_GetShiftState done [23:19:38]opened in 1729816399 [23:19:38]opened+sec_in_day 1729902799 [23:19:38]quantity*price = 30022 [23:19:38]sum+1 = 30024 [23:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 368 25.10.2024 23:19 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191629 ФПД: 261063216062882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T231950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191629&fm=261063216062882&tin=02508201610067®Number=0000000000091776&sum=30000 [23:19:40]StoreToDocumentArchive [23:19:40]shift 540 fd 191629 [23:19:40]save to /storage/0540/doc_00191629 [23:19:40]save last doc name /storage/0540/doc_00191629 to /storage/kkm_last_doc_name [23:19:40]save OK [23:19:40]Clear old archive folders... [23:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:19:40]tlvbuf is 015CA8C0 [23:19:40]SAM_PROTO_ClearQueue [23:19:40]wFMCommunicate request_size=4 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 09 00 00 [23:19:40]Write to MH i2c: E2 08 00 4F D9 80 09 00 00 00 00 00 00 9A [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 4F D9 00 90 00 9C [23:19:40]RAPDU: 90 00 [23:19:40]wFMCommunicate OK [23:19:40]SAM_PROTO_ClearQueue done [23:19:40]KKMCreateOFDPacket [23:19:40]OFDProtocolAddRootSTLVToBuf [23:19:40]FM_MakeSignedData [23:19:40]FM_MakeSignedData [23:19:40]SAM_PROTO_SignData [23:19:40]wFMCommunicate request_size=4 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 0D 01 02 [23:19:40]Write to MH i2c: E2 08 00 50 D9 80 0D 01 02 00 00 00 00 A2 [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 50 D9 00 90 00 9D [23:19:40]RAPDU: 90 00 [23:19:40]wFMCommunicate OK [23:19:40]wFMCommunicate request_size=255 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 96 27 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EC 02 00 35 04 06 00 ED 6F 84 41 [23:19:40]Write to MH i2c: E2 02 01 51 D9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 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 70 01 00 00 F4 03 04 00 96 27 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EC 02 00 35 04 06 00 ED 6F 84 41 00 00 54 [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 51 D9 00 90 00 9E [23:19:40]RAPDU: 90 00 [23:19:40]wFMCommunicate OK [23:19:40]wFMCommunicate request_size=7 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 0D 02 02 02 E1 A2 [23:19:40]Write to MH i2c: E2 0A 00 52 D9 80 0D 02 02 02 00 E1 A2 00 00 2C [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 03 00 52 D9 00 90 00 9F [23:19:40]RAPDU: 90 00 [23:19:40]wFMCommunicate OK [23:19:40]wFMCommunicate request_size=4 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 0D 03 02 [23:19:40]Write to MH i2c: E2 08 00 53 D9 80 0D 03 02 00 00 00 00 A7 [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 0B 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 0B 00 53 D9 00 AF 9A 9E A1 23 10 7C EE 90 00 CD [23:19:40]RAPDU: AF 9A 9E A1 23 10 7C EE 90 00 [23:19:40]wFMCommunicate OK [23:19:40]SAM_PROTO_SignData done [23:19:40]FM_MakeSignedData done [23:19:40]CreateOFDProtocolMessage [23:19:40]wFMCommunicate request_size=4 [23:19:40]MH_SAM_APDU [23:19:40]CAPDU: 80 11 00 00 [23:19:40]Write to MH i2c: E2 08 00 54 D9 80 11 00 00 00 00 00 00 A7 [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:40]Read from MH i2c: E2 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 17 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: E2 17 00 54 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [23:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:19:40]wFMCommunicate OK [23:19:40]CreateOFDProtocolMessage done [23:19:40]OFDSenderStorePacket 191629 [23:19:40]StoreOFDPacket docnum=191629 [23:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 3F 04 01 B2 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 96 27 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EC 02 00 35 04 06 00 ED 6F 84 41 E1 A2 AF 9A 9E A1 23 10 7C EE [23:19:40]CheckFolder [23:19:40]dirname=/storage/ofd_packets [23:19:40]CheckFolder done [23:19:40]ProducePacketName [23:19:40]name=ofd_packets/00191629 [23:19:40]NVStorageSaveData ofd_packets/00191629 [23:19:40]File name is /storage/ofd_packets/00191629 [23:19:40]Write 298 bytes [23:19:40]NVStorageSaveData done [23:19:40]OFDSenderStorePacket done [23:19:40]KKMCreateOFDPacket done [23:19:40]NVStorageSaveData kkm_last_timestamp [23:19:40]File name is /storage/kkm_last_timestamp [23:19:40]Write 4 bytes [23:19:40]NVStorageSaveData done [23:19:40]ExternCall_PrintAddStr [23:19:40]wPrintStart [23:19:40]Write to MH i2c: 01 00 00 55 D9 2E [23:19:40]Write i2c OK [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: 01 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: 01 07 00 [23:19:40]MH_I2C_Read... [23:19:40]Read from MH i2c: 01 07 00 55 D9 00 00 00 00 00 FF 0F 43 [23:19:40]RasterBufferAndPrint [23:19:40]line Счет N : (1)30933 [23:19:40]line ИНН: 02508201610067 [23:19:40]line Контрольно-Кассовый Чек [23:19:40]line ПРОДАЖА [23:19:40]line ТРК (МРК, ГНК) : 22 [23:19:40]line Товар: 2710194210 [23:19:40]line ДТ-К-5 [23:19:40]line 3.940 * 76.20 [23:19:40]line = 300.23 [23:19:40]line НДС 12% НСП 1% [23:19:40]line > о реализуемом товаре [23:19:40]line ОКРУГЛЕНИЕ: -0.23 [23:19:40]line ИТОГО: 300.00 [23:19:40]line Внесено: 300.00 [23:19:40]line СДАЧА: 0.00 [23:19:40]line НСП 1% : 2.66 [23:19:40]line НДС 12% : 31.88 [23:19:40]line Наличными: 300.00 [23:19:40]line Безнал.: 0.00 [23:19:40]line Место: АЗС № 170 "Партнер Нефть" [23:19:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:19:40]line СНО: Общий режим [23:19:40]line Чек 368 25.10.2024 23:19 [23:19:40]line Смена: 540 ФФД: 1.0 [23:19:40]line ЗНМ: 0300000110 [23:19:40]line РНМ: 0000000000091776 [23:19:40]line Версия ККМ: 001 [23:19:40]line ФМ: 0000000000871754 [23:19:40]line ФД: 191629 [23:19:40]line ФПД: 261063216062882 [23:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T231950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191629&fm=261063216062882&tin=02508201610067®Number=0000000000091776&sum=30000 [23:19:40]OFD Sender: Processing packet 191629 [packets to send 75, broken 74] [23:19:40]ProducePacketName [23:19:40]name=ofd_packets/00191629 [23:19:40]OFD Sender: To server: pG, [23:19:40]CommunicateWithHost lk.salyk.kg:30040 [23:19:40]ConnectInit lk.salyk.kg [23:19:40]written 0, free lines is 4095 [23:19:41]Connected sock=10 [23:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 3F 04 01 B2 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 96 27 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EC 02 00 35 04 06 00 ED 6F 84 41 E1 A2 AF 9A 9E A1 23 10 7C EE [23:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 9A 47 00 98 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EC 02 00 F4 03 04 00 63 CC 1B 67 B6 04 01 00 00 A4 3E 73 AA 98 33 9B 6B [23:19:41]CommunicateWithHost err = 0 [23:19:41]CheckOFDResponse [23:19:41]1017 (14) - 77093643461234 [23:19:41]1041 (16) - 0000000000871754 [23:19:41]1040 (4) - 191629 [23:19:41]1012 (4) - 25.10.2024 16:50 [23:19:41]1206 (1) - 0 [23:19:41]OFD Sender: Remove packet 191629 [23:19:41]ProducePacketName [23:19:41]name=ofd_packets/00191629 [23:19:41]NVStorageDeleteData [23:19:41]Write to MH i2c: 01 00 00 80 D9 59 [23:19:41]Write i2c OK [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: 01 [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: 01 07 00 [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: 01 07 00 80 D9 00 00 00 00 00 C3 0C 2F [23:19:41]RasterBufferAndPrint [23:19:41]line [23:19:41]line [23:19:41]line [23:19:41]line [23:19:41]line [23:19:41]written 0, free lines is 3273 [23:19:41]MH_Cut [23:19:41]Write to MH i2c: D1 01 00 87 D9 01 32 [23:19:41]Write i2c OK [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: D1 [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: D1 01 00 [23:19:41]MH_I2C_Read... [23:19:41]Read from MH i2c: D1 01 00 87 D9 00 31 [23:19:41]Write to MH i2c: 01 00 00 88 D9 61 [23:19:41]Write i2c OK [23:19:41]MH_I2C_Read... [23:19:41]OFD Sender: No OFD packet to send [23:19:42]*** Cut start [23:19:42]*** Partial cut [23:19:42]*** CUTSNS_PIN = 1 [23:19:42]*** CUTSNS_PIN = 0 [23:19:42]*** Brake cut motor [23:19:42]Read from MH i2c: 01 [23:19:42]MH_I2C_Read... [23:19:42]*** Stop cut motor [23:19:42]*** Cut end [23:19:42]Read from MH i2c: 01 07 00 [23:19:42]MH_I2C_Read... [23:19:42]Read from MH i2c: 01 07 00 88 D9 00 00 00 00 00 FF 0F 76 [23:19:42]process_action close_receipt done [23:19:42]requested_data is exist [23:19:42]produce_requested_data [23:19:42]requested_item fm.sn is exist - process it [23:19:42]wFMCommunicate request_size=4 [23:19:42]MH_SAM_APDU [23:19:42]CAPDU: 80 11 00 00 [23:19:42]Write to MH i2c: E2 08 00 89 D9 80 11 00 00 00 00 00 00 DC [23:19:42]Write i2c OK [23:19:42]MH_I2C_Read... [23:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:42]Read from MH i2c: E2 [23:19:42]MH_I2C_Read... [23:19:42]Read from MH i2c: E2 17 00 [23:19:42]MH_I2C_Read... [23:19:42]Read from MH i2c: E2 17 00 89 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [23:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:19:42]wFMCommunicate OK [23:19:42]requested_item fd.num is exist - process it [23:19:42]SAM_PROTO_GetFieldsCounters [23:19:42]wFMCommunicate request_size=4 [23:19:42]MH_SAM_APDU [23:19:42]CAPDU: 80 13 00 00 [23:19:42]Write to MH i2c: E2 08 00 8A D9 80 13 00 00 00 00 00 00 DF [23:19:42]Write i2c OK [23:19:42]MH_I2C_Read... [23:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:43]Read from MH i2c: E2 [23:19:43]MH_I2C_Read... [23:19:43]Read from MH i2c: E2 62 00 [23:19:43]MH_I2C_Read... [23:19:43]Read from MH i2c: E2 62 00 8A D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [23:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:43]wFMCommunicate OK [23:19:43]SAM_PROTO_GetFieldsCounters done [23:19:43]requested_item shift.num is exist - process it [23:19:43]requested_item shift.opened is exist - process it [23:19:43]req_shift_opened [23:19:43]FM_GetShiftState [23:19:43]SAM_PROTO_GetShiftState [23:19:43]wFMCommunicate request_size=4 [23:19:43]MH_SAM_APDU [23:19:43]CAPDU: 80 13 01 00 [23:19:43]Write to MH i2c: E2 08 00 8B D9 80 13 01 00 00 00 00 00 E1 [23:19:43]Write i2c OK [23:19:43]MH_I2C_Read... [23:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:43]Read from MH i2c: E2 [23:19:43]MH_I2C_Read... [23:19:43]Read from MH i2c: E2 0E 00 [23:19:43]MH_I2C_Read... [23:19:43]Read from MH i2c: E2 0E 00 8B D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A4 [23:19:43]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:19:43]wFMCommunicate OK [23:19:43]SAM_PROTO_GetShiftState done [23:19:43]FM_GetShiftState done [23:19:43]req_shift_opened done [23:19:43]requested_item shift.open_date is exist - process it [23:19:43]req_shift_open_date [23:19:43]req_shift_open_date done [23:19:43]produce_requested_data done [23:19:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191629,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:19:43]process_action_free close_receipt [23:19:43]json_value_free [23:19:43]json_value_free done [23:19:43]process_json_proto returns [23:19:43]Send response to host [23:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191629,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:19:43]free response buf [23:19:43]execute_script done [23:19:43]execute_script returns [23:19:43]free content buf [23:19:43]Sock 9.Close socket [23:19:43]Sock 9.Thread stoped [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:55]accept exits with 8 [23:28:55]New connection [23:28:55]New thread 3066817892 created [23:28:55]Thread 3066961252 joined [23:28:55]Waiting for new connection... [23:28:55] Sock 8.Parse request [23:28:55]Sock 8.Check first char [23:28:55]Sock 8.First char is OK [23:28:55]request: POST /json_proto HTTP/1.0 [23:28:55]Method: POST [23:28:55]URL: /json_proto [23:28:55]Method is POST - this is cgi request [23:28:55]url: /json_proto [23:28:55]query_string will be loaded in cgi processing [23:28:55]execute_cgi json_proto POST (null) [23:28:55]execute_cgi path=json_proto method=POST [23:28:55]POST find Content-Length [23:28:55]Host: 172.17.63.131:8080 [23:28:55]Content-Length: 983 [23:28:55]Content-Type: application/json [23:28:55] [23:28:55]POST finish read [23:28:55]Found Content-Length = 983 [23:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:55]execute_script... [23:28: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)30934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:55]POST & json_proto [23:28:55]process_json_proto [23:28:55]json parsed OK: [23:28:55]protocol is kg_v1.0 [23:28:55]action value=close_receipt [23:28:55]process_action close_receipt [23:28:55]cmd_close_receipt [23:28:55]MH_GetDate [23:28:55]Write to MH i2c: F0 00 00 8C D9 54 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: F0 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: F0 09 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: F0 09 00 8C D9 00 C3 29 1C 67 22 05 6E 64 C5 [23:28:55]GetLastDocTimeStamp 1729898390 [23:28:55]current date 1729898947 [23:28:55]FM_GetShiftState [23:28:55]SAM_PROTO_GetShiftState [23:28:55]wFMCommunicate request_size=4 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 13 01 00 [23:28:55]Write to MH i2c: E2 08 00 8D D9 80 13 01 00 00 00 00 00 E3 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 0E 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 0E 00 8D D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 A6 [23:28:55]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:28:55]wFMCommunicate OK [23:28:55]SAM_PROTO_GetShiftState done [23:28:55]FM_GetShiftState done [23:28:55]opened in 1729816399 [23:28:55]opened+sec_in_day 1729902799 [23:28:55]quantity*price = 150054 [23:28:55]sum+1 = 150055 [23:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 369 25.10.2024 23:29 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191630 ФПД: 139487237810813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T232907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191630&fm=139487237810813&tin=02508201610067®Number=0000000000091776&sum=150000 [23:28:56]StoreToDocumentArchive [23:28:56]shift 540 fd 191630 [23:28:56]save to /storage/0540/doc_00191630 [23:28:56]save last doc name /storage/0540/doc_00191630 to /storage/kkm_last_doc_name [23:28:56]save OK [23:28:56]Clear old archive folders... [23:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:28:57]tlvbuf is 016BBF70 [23:28:57]SAM_PROTO_ClearQueue [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 09 00 00 [23:28:57]Write to MH i2c: E2 08 00 9A D9 80 09 00 00 00 00 00 00 E5 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 9A D9 00 90 00 E7 [23:28:57]RAPDU: 90 00 [23:28:57]wFMCommunicate OK [23:28:57]SAM_PROTO_ClearQueue done [23:28:57]KKMCreateOFDPacket [23:28:57]OFDProtocolAddRootSTLVToBuf [23:28:57]FM_MakeSignedData [23:28:57]FM_MakeSignedData [23:28:57]SAM_PROTO_SignData [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 0D 01 02 [23:28:57]Write to MH i2c: E2 08 00 9B D9 80 0D 01 02 00 00 00 00 ED [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 9B D9 00 90 00 E8 [23:28:57]RAPDU: 90 00 [23:28:57]wFMCommunicate OK [23:28:57]wFMCommunicate request_size=255 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 C3 29 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EC 02 00 35 04 06 00 7E [23:28:57]Write to MH i2c: E2 02 01 9C D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 C3 29 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EC 02 00 35 04 06 00 7E 00 00 B0 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]OFD Sender: No OFD packet to send [23:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 9C D9 00 90 00 E9 [23:28:57]RAPDU: 90 00 [23:28:57]wFMCommunicate OK [23:28:57]wFMCommunicate request_size=10 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 0D 02 02 05 DC E7 42 AA 7D [23:28:57]Write to MH i2c: E2 0D 00 9D D9 80 0D 02 02 05 00 DC E7 42 AA 7D 00 00 26 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 03 00 9D D9 00 90 00 EA [23:28:57]RAPDU: 90 00 [23:28:57]wFMCommunicate OK [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 0D 03 02 [23:28:57]Write to MH i2c: E2 08 00 9E D9 80 0D 03 02 00 00 00 00 F2 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 0B 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 0B 00 9E D9 00 E3 3A 71 13 FE 9C B0 B0 90 00 8E [23:28:57]RAPDU: E3 3A 71 13 FE 9C B0 B0 90 00 [23:28:57]wFMCommunicate OK [23:28:57]SAM_PROTO_SignData done [23:28:57]FM_MakeSignedData done [23:28:57]CreateOFDProtocolMessage [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 11 00 00 [23:28:57]Write to MH i2c: E2 08 00 9F D9 80 11 00 00 00 00 00 00 F2 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 17 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 17 00 9F D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [23:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:28:57]wFMCommunicate OK [23:28:57]CreateOFDProtocolMessage done [23:28:57]OFDSenderStorePacket 191630 [23:28:57]StoreOFDPacket docnum=191630 [23:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 26 07 01 C7 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 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 C3 29 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EC 02 00 35 04 06 00 7E DC E7 42 AA 7D E3 3A 71 13 FE 9C B0 B0 [23:28:57]CheckFolder [23:28:57]dirname=/storage/ofd_packets [23:28:57]CheckFolder done [23:28:57]ProducePacketName [23:28:57]name=ofd_packets/00191630 [23:28:57]NVStorageSaveData ofd_packets/00191630 [23:28:57]File name is /storage/ofd_packets/00191630 [23:28:57]Write 301 bytes [23:28:57]NVStorageSaveData done [23:28:57]OFDSenderStorePacket done [23:28:57]KKMCreateOFDPacket done [23:28:57]NVStorageSaveData kkm_last_timestamp [23:28:57]File name is /storage/kkm_last_timestamp [23:28:57]Write 4 bytes [23:28:57]NVStorageSaveData done [23:28:57]ExternCall_PrintAddStr [23:28:57]wPrintStart [23:28:57]Write to MH i2c: 01 00 00 A0 D9 79 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: 01 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: 01 07 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: 01 07 00 A0 D9 00 00 00 00 00 FF 0F 8E [23:28:57]RasterBufferAndPrint [23:28:57]line Счет N : (1)30934 [23:28:57]line ИНН: 02508201610067 [23:28:57]line Контрольно-Кассовый Чек [23:28:57]line ПРОДАЖА [23:28:57]line ТРК (МРК, ГНК) : 12 [23:28:57]line Товар: 2710124130 [23:28:57]line Аи-92-К-5 [23:28:57]line 22.770 * 65.90 [23:28:57]line = 1500.54 [23:28:57]line НДС 12% НСП 1% [23:28:57]line > о реализуемом товаре [23:28:57]line ОКРУГЛЕНИЕ: -0.54 [23:28:57]line ИТОГО: 1500.00 [23:28:57]line Внесено: 1500.00 [23:28:57]line СДАЧА: 0.00 [23:28:57]line НСП 1% : 13.28 [23:28:57]line НДС 12% : 159.35 [23:28:57]line Наличными: 1500.00 [23:28:57]line Безнал.: 0.00 [23:28:57]line Место: АЗС № 170 "Партнер Нефть" [23:28:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:28:57]line СНО: Общий режим [23:28:57]line Чек 369 25.10.2024 23:29 [23:28:57]line Смена: 540 ФФД: 1.0 [23:28:57]line ЗНМ: 0300000110 [23:28:57]line РНМ: 0000000000091776 [23:28:57]line Версия ККМ: 001 [23:28:57]line [23:28:57]line Дисконтная программа [23:28:57]line АИ-92 [23:28:57]line номер 170 [23:28:57]line сэкономлено 22.77 сом [23:28:57]line ФМ: 0000000000871754 [23:28:57]line ФД: 191630 [23:28:57]line ФПД: 139487237810813 [23:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T232907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191630&fm=139487237810813&tin=02508201610067®Number=0000000000091776&sum=150000 [23:28:57]OFD Sender: Processing packet 191630 [packets to send 75, broken 74] [23:28:57]ProducePacketName [23:28:57]name=ofd_packets/00191630 [23:28:57]OFD Sender: To server: pG, [23:28:57]CommunicateWithHost lk.salyk.kg:30040 [23:28:57]ConnectInit lk.salyk.kg [23:28:57]written 0, free lines is 4095 [23:28:57]Connected sock=10 [23:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 26 07 01 C7 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 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 C3 29 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EC 02 00 35 04 06 00 7E DC E7 42 AA 7D E3 3A 71 13 FE 9C B0 B0 [23:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F4 06 47 00 41 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EC 02 00 F4 03 04 00 90 CE 1B 67 B6 04 01 00 00 27 05 AD D0 D9 7E 8B 8E [23:28:58]CommunicateWithHost err = 0 [23:28:58]CheckOFDResponse [23:28:58]1017 (14) - 77093643461234 [23:28:58]1041 (16) - 0000000000871754 [23:28:58]1040 (4) - 191630 [23:28:58]1012 (4) - 25.10.2024 17:00 [23:28:58]1206 (1) - 0 [23:28:58]OFD Sender: Remove packet 191630 [23:28:58]ProducePacketName [23:28:58]name=ofd_packets/00191630 [23:28:58]NVStorageDeleteData [23:28:58]Write to MH i2c: 01 00 00 D0 D9 A9 [23:28:58]Write i2c OK [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: 01 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: 01 07 00 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: 01 07 00 D0 D9 00 00 00 00 00 5F 0C 1B [23:28:58]RasterBufferAndPrint [23:28:58]line [23:28:58]line [23:28:58]line [23:28:58]line [23:28:58]line [23:28:58]written 0, free lines is 3173 [23:28:58]MH_Cut [23:28:58]Write to MH i2c: D1 01 00 D7 D9 01 82 [23:28:58]Write i2c OK [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: D1 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: D1 01 00 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: D1 01 00 D7 D9 00 81 [23:28:58]Write to MH i2c: 01 00 00 D8 D9 B1 [23:28:58]Write i2c OK [23:28:58]MH_I2C_Read... [23:28:58]OFD Sender: No OFD packet to send [23:28:59]*** Cut start [23:28:59]*** Partial cut [23:28:59]*** CUTSNS_PIN = 1 [23:28:59]*** CUTSNS_PIN = 0 [23:28:59]*** Brake cut motor [23:28:59]Read from MH i2c: 01 [23:28:59]MH_I2C_Read... [23:28:59]*** Stop cut motor [23:28:59]*** Cut end [23:28:59]Read from MH i2c: 01 07 00 [23:28:59]MH_I2C_Read... [23:28:59]Read from MH i2c: 01 07 00 D8 D9 00 00 00 00 00 FF 0F C6 [23:28:59]process_action close_receipt done [23:28:59]requested_data is exist [23:28:59]produce_requested_data [23:28:59]requested_item fm.sn is exist - process it [23:28:59]wFMCommunicate request_size=4 [23:28:59]MH_SAM_APDU [23:28:59]CAPDU: 80 11 00 00 [23:28:59]Write to MH i2c: E2 08 00 D9 D9 80 11 00 00 00 00 00 00 2C [23:28:59]Write i2c OK [23:28:59]MH_I2C_Read... [23:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:59]Read from MH i2c: E2 [23:28:59]MH_I2C_Read... [23:28:59]Read from MH i2c: E2 17 00 [23:28:59]MH_I2C_Read... [23:28:59]Read from MH i2c: E2 17 00 D9 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [23:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:28:59]wFMCommunicate OK [23:28:59]requested_item fd.num is exist - process it [23:28:59]SAM_PROTO_GetFieldsCounters [23:28:59]wFMCommunicate request_size=4 [23:28:59]MH_SAM_APDU [23:28:59]CAPDU: 80 13 00 00 [23:28:59]Write to MH i2c: E2 08 00 DA D9 80 13 00 00 00 00 00 00 2F [23:28:59]Write i2c OK [23:28:59]MH_I2C_Read... [23:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:00]Read from MH i2c: E2 [23:29:00]MH_I2C_Read... [23:29:00]Read from MH i2c: E2 62 00 [23:29:00]MH_I2C_Read... [23:29:00]Read from MH i2c: E2 62 00 DA D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [23:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:00]wFMCommunicate OK [23:29:00]SAM_PROTO_GetFieldsCounters done [23:29:00]requested_item shift.num is exist - process it [23:29:00]requested_item shift.opened is exist - process it [23:29:00]req_shift_opened [23:29:00]FM_GetShiftState [23:29:00]SAM_PROTO_GetShiftState [23:29:00]wFMCommunicate request_size=4 [23:29:00]MH_SAM_APDU [23:29:00]CAPDU: 80 13 01 00 [23:29:00]Write to MH i2c: E2 08 00 DB D9 80 13 01 00 00 00 00 00 31 [23:29:00]Write i2c OK [23:29:00]MH_I2C_Read... [23:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:00]Read from MH i2c: E2 [23:29:00]MH_I2C_Read... [23:29:00]Read from MH i2c: E2 0E 00 [23:29:00]MH_I2C_Read... [23:29:00]Read from MH i2c: E2 0E 00 DB D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F4 [23:29:00]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:29:00]wFMCommunicate OK [23:29:00]SAM_PROTO_GetShiftState done [23:29:00]FM_GetShiftState done [23:29:00]req_shift_opened done [23:29:00]requested_item shift.open_date is exist - process it [23:29:00]req_shift_open_date [23:29:00]req_shift_open_date done [23:29:00]produce_requested_data done [23:29:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191630,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:29:00]process_action_free close_receipt [23:29:00]json_value_free [23:29:00]json_value_free done [23:29:00]process_json_proto returns [23:29:00]Send response to host [23:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191630,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:29:00]free response buf [23:29:00]execute_script done [23:29:00]execute_script returns [23:29:00]free content buf [23:29:00]Sock 8.Close socket [23:29:00]Sock 8.Thread stoped [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:24]ConnectInit Can't connect to host [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:21]accept exits with 9 [23:34:21]New connection [23:34:21]New thread 3066961252 created [23:34:21]Thread 3066817892 joined [23:34:21]Waiting for new connection... [23:34:21] Sock 9.Parse request [23:34:21]Sock 9.Check first char [23:34:21]Sock 9.First char is OK [23:34:21]request: POST /json_proto HTTP/1.0 [23:34:21]Method: POST [23:34:21]URL: /json_proto [23:34:21]Method is POST - this is cgi request [23:34:21]url: /json_proto [23:34:21]query_string will be loaded in cgi processing [23:34:21]execute_cgi json_proto POST (null) [23:34:21]execute_cgi path=json_proto method=POST [23:34:21]POST find Content-Length [23:34:21]Host: 172.17.63.131:8080 [23:34:21]Content-Length: 676 [23:34:21]Content-Type: application/json [23:34:21] [23:34:21]POST finish read [23:34:21]Found Content-Length = 676 [23:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:21]execute_script... [23:34: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)30935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:21]POST & json_proto [23:34:21]process_json_proto [23:34:21]json parsed OK: [23:34:21]protocol is kg_v1.0 [23:34:21]action value=close_receipt [23:34:21]process_action close_receipt [23:34:21]cmd_close_receipt [23:34:21]MH_GetDate [23:34:21]Write to MH i2c: F0 00 00 DC D9 A4 [23:34:21]Write i2c OK [23:34:21]MH_I2C_Read... [23:34:21]Read from MH i2c: F0 [23:34:21]MH_I2C_Read... [23:34:21]Read from MH i2c: F0 09 00 [23:34:21]MH_I2C_Read... [23:34:21]Read from MH i2c: F0 09 00 DC D9 00 09 2B 1C 67 22 05 6E 64 5D [23:34:21]GetLastDocTimeStamp 1729898947 [23:34:21]current date 1729899273 [23:34:21]FM_GetShiftState [23:34:21]SAM_PROTO_GetShiftState [23:34:21]wFMCommunicate request_size=4 [23:34:21]MH_SAM_APDU [23:34:21]CAPDU: 80 13 01 00 [23:34:21]Write to MH i2c: E2 08 00 DD D9 80 13 01 00 00 00 00 00 33 [23:34:21]Write i2c OK [23:34:21]MH_I2C_Read... [23:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:21]Read from MH i2c: E2 [23:34:21]MH_I2C_Read... [23:34:21]Read from MH i2c: E2 0E 00 [23:34:21]MH_I2C_Read... [23:34:21]Read from MH i2c: E2 0E 00 DD D9 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 F6 [23:34:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:34:21]wFMCommunicate OK [23:34:21]SAM_PROTO_GetShiftState done [23:34:21]FM_GetShiftState done [23:34:21]opened in 1729816399 [23:34:21]opened+sec_in_day 1729902799 [23:34:21]quantity*price = 40006 [23:34:21]sum+1 = 40007 [23:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 370 25.10.2024 23:34 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191631 ФПД: 246653573158936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191631&fm=246653573158936&tin=02508201610067®Number=0000000000091776&sum=40000 [23:34:23]StoreToDocumentArchive [23:34:23]shift 540 fd 191631 [23:34:23]save to /storage/0540/doc_00191631 [23:34:23]save last doc name /storage/0540/doc_00191631 to /storage/kkm_last_doc_name [23:34:23]save OK [23:34:23]Clear old archive folders... [23:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:23]tlvbuf is 01960B00 [23:34:23]SAM_PROTO_ClearQueue [23:34:23]wFMCommunicate request_size=4 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 09 00 00 [23:34:23]Write to MH i2c: E2 08 00 EA D9 80 09 00 00 00 00 00 00 35 [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 EA D9 00 90 00 37 [23:34:23]RAPDU: 90 00 [23:34:23]wFMCommunicate OK [23:34:23]SAM_PROTO_ClearQueue done [23:34:23]KKMCreateOFDPacket [23:34:23]OFDProtocolAddRootSTLVToBuf [23:34:23]FM_MakeSignedData [23:34:23]FM_MakeSignedData [23:34:23]SAM_PROTO_SignData [23:34:23]wFMCommunicate request_size=4 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 0D 01 02 [23:34:23]Write to MH i2c: E2 08 00 EB D9 80 0D 01 02 00 00 00 00 3D [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 EB D9 00 90 00 38 [23:34:23]RAPDU: 90 00 [23:34:23]wFMCommunicate OK [23:34:23]wFMCommunicate request_size=255 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 09 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EC 02 00 35 04 06 00 E0 [23:34:23]Write to MH i2c: E2 02 01 EC D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 09 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EC 02 00 35 04 06 00 E0 00 00 45 [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 EC D9 00 90 00 39 [23:34:23]RAPDU: 90 00 [23:34:23]wFMCommunicate OK [23:34:23]wFMCommunicate request_size=10 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 0D 02 02 05 54 82 9C 58 18 [23:34:23]Write to MH i2c: E2 0D 00 ED D9 80 0D 02 02 05 00 54 82 9C 58 18 00 00 2C [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 03 00 ED D9 00 90 00 3A [23:34:23]RAPDU: 90 00 [23:34:23]wFMCommunicate OK [23:34:23]wFMCommunicate request_size=4 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 0D 03 02 [23:34:23]Write to MH i2c: E2 08 00 EE D9 80 0D 03 02 00 00 00 00 42 [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 0B 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 0B 00 EE D9 00 23 95 CF 3A 87 09 AD 92 90 00 D3 [23:34:23]RAPDU: 23 95 CF 3A 87 09 AD 92 90 00 [23:34:23]wFMCommunicate OK [23:34:23]SAM_PROTO_SignData done [23:34:23]FM_MakeSignedData done [23:34:23]CreateOFDProtocolMessage [23:34:23]wFMCommunicate request_size=4 [23:34:23]MH_SAM_APDU [23:34:23]CAPDU: 80 11 00 00 [23:34:23]Write to MH i2c: E2 08 00 EF D9 80 11 00 00 00 00 00 00 42 [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:23]Read from MH i2c: E2 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 17 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: E2 17 00 EF D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [23:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:34:23]wFMCommunicate OK [23:34:23]CreateOFDProtocolMessage done [23:34:23]OFDSenderStorePacket 191631 [23:34:23]StoreOFDPacket docnum=191631 [23:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 07 07 01 8D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 09 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EC 02 00 35 04 06 00 E0 54 82 9C 58 18 23 95 CF 3A 87 09 AD 92 [23:34:23]CheckFolder [23:34:23]dirname=/storage/ofd_packets [23:34:23]CheckFolder done [23:34:23]ProducePacketName [23:34:23]name=ofd_packets/00191631 [23:34:23]NVStorageSaveData ofd_packets/00191631 [23:34:23]File name is /storage/ofd_packets/00191631 [23:34:23]Write 301 bytes [23:34:23]NVStorageSaveData done [23:34:23]OFDSenderStorePacket done [23:34:23]KKMCreateOFDPacket done [23:34:23]NVStorageSaveData kkm_last_timestamp [23:34:23]File name is /storage/kkm_last_timestamp [23:34:23]Write 4 bytes [23:34:23]NVStorageSaveData done [23:34:23]ExternCall_PrintAddStr [23:34:23]wPrintStart [23:34:23]Write to MH i2c: 01 00 00 F0 D9 C9 [23:34:23]Write i2c OK [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: 01 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: 01 07 00 [23:34:23]MH_I2C_Read... [23:34:23]Read from MH i2c: 01 07 00 F0 D9 00 00 00 00 00 FF 0F DE [23:34:23]RasterBufferAndPrint [23:34:23]line Счет N : (1)30935 [23:34:23]line ИНН: 02508201610067 [23:34:23]line Контрольно-Кассовый Чек [23:34:23]line ПРОДАЖА [23:34:23]line ТРК (МРК, ГНК) : 21 [23:34:23]line Товар: 2710124130 [23:34:23]line Аи-92-К-5 [23:34:23]line 5.980 * 66.90 [23:34:23]line = 400.06 [23:34:23]line НДС 12% НСП 1% [23:34:23]line > о реализуемом товаре [23:34:23]line ОКРУГЛЕНИЕ: -0.06 [23:34:23]line ИТОГО: 400.00 [23:34:23]line Внесено: 400.00 [23:34:23]line СДАЧА: 0.00 [23:34:23]line НСП 1% : 3.54 [23:34:23]line НДС 12% : 42.48 [23:34:23]line Наличными: 400.00 [23:34:23]line Безнал.: 0.00 [23:34:23]line Место: АЗС № 170 "Партнер Нефть" [23:34:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:34:23]line СНО: Общий режим [23:34:23]line Чек 370 25.10.2024 23:34 [23:34:23]line Смена: 540 ФФД: 1.0 [23:34:23]line ЗНМ: 0300000110 [23:34:23]line РНМ: 0000000000091776 [23:34:23]line Версия ККМ: 001 [23:34:23]line ФМ: 0000000000871754 [23:34:23]line ФД: 191631 [23:34:23]line ФПД: 246653573158936 [23:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191631&fm=246653573158936&tin=02508201610067®Number=0000000000091776&sum=40000 [23:34:23]OFD Sender: Processing packet 191631 [packets to send 75, broken 74] [23:34:23]ProducePacketName [23:34:23]name=ofd_packets/00191631 [23:34:23]OFD Sender: To server: pG, [23:34:23]CommunicateWithHost lk.salyk.kg:30040 [23:34:23]ConnectInit lk.salyk.kg [23:34:23]written 0, free lines is 4095 [23:34:24]Connected sock=10 [23:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 07 07 01 8D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 09 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EC 02 00 35 04 06 00 E0 54 82 9C 58 18 23 95 CF 3A 87 09 AD 92 [23:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BE 1F 47 00 8C 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EC 02 00 F4 03 04 00 D6 CF 1B 67 B6 04 01 00 00 9E A4 60 1F EA 38 68 CE [23:34:24]CommunicateWithHost err = 0 [23:34:24]CheckOFDResponse [23:34:24]1017 (14) - 77093643461234 [23:34:24]1041 (16) - 0000000000871754 [23:34:24]1040 (4) - 191631 [23:34:24]1012 (4) - 25.10.2024 17:05 [23:34:24]1206 (1) - 0 [23:34:24]OFD Sender: Remove packet 191631 [23:34:24]ProducePacketName [23:34:24]name=ofd_packets/00191631 [23:34:24]NVStorageDeleteData [23:34:24]Write to MH i2c: 01 00 00 1B DA F5 [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: 01 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: 01 07 00 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: 01 07 00 1B DA 00 00 00 00 00 AF 0C B7 [23:34:24]RasterBufferAndPrint [23:34:24]line [23:34:24]line [23:34:24]line [23:34:24]line [23:34:24]line [23:34:24]written 0, free lines is 3253 [23:34:24]MH_Cut [23:34:24]Write to MH i2c: D1 01 00 22 DA 01 CE [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: D1 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: D1 01 00 [23:34:24]MH_I2C_Read... [23:34:24]Read from MH i2c: D1 01 00 22 DA 00 CD [23:34:24]Write to MH i2c: 01 00 00 23 DA FD [23:34:24]Write i2c OK [23:34:24]MH_I2C_Read... [23:34:24]OFD Sender: No OFD packet to send [23:34:25]*** Cut start [23:34:25]*** Partial cut [23:34:25]*** CUTSNS_PIN = 1 [23:34:25]*** CUTSNS_PIN = 0 [23:34:25]*** Brake cut motor [23:34:25]Read from MH i2c: 01 [23:34:25]MH_I2C_Read... [23:34:25]*** Stop cut motor [23:34:25]*** Cut end [23:34:25]Read from MH i2c: 01 07 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: 01 07 00 23 DA 00 00 00 00 00 FF 0F 12 [23:34:25]process_action close_receipt done [23:34:25]requested_data is exist [23:34:25]produce_requested_data [23:34:25]requested_item fm.sn is exist - process it [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 11 00 00 [23:34:25]Write to MH i2c: E2 08 00 24 DA 80 11 00 00 00 00 00 00 78 [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:25]Read from MH i2c: E2 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 17 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 17 00 24 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [23:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:34:25]wFMCommunicate OK [23:34:25]requested_item fd.num is exist - process it [23:34:25]SAM_PROTO_GetFieldsCounters [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 13 00 00 [23:34:25]Write to MH i2c: E2 08 00 25 DA 80 13 00 00 00 00 00 00 7B [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 62 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 62 00 25 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [23:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:26]wFMCommunicate OK [23:34:26]SAM_PROTO_GetFieldsCounters done [23:34:26]requested_item shift.num is exist - process it [23:34:26]requested_item shift.opened is exist - process it [23:34:26]req_shift_opened [23:34:26]FM_GetShiftState [23:34:26]SAM_PROTO_GetShiftState [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 13 01 00 [23:34:26]Write to MH i2c: E2 08 00 26 DA 80 13 01 00 00 00 00 00 7D [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 0E 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 0E 00 26 DA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 40 [23:34:26]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:34:26]wFMCommunicate OK [23:34:26]SAM_PROTO_GetShiftState done [23:34:26]FM_GetShiftState done [23:34:26]req_shift_opened done [23:34:26]requested_item shift.open_date is exist - process it [23:34:26]req_shift_open_date [23:34:26]req_shift_open_date done [23:34:26]produce_requested_data done [23:34:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191631,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:34:26]process_action_free close_receipt [23:34:26]json_value_free [23:34:26]json_value_free done [23:34:26]process_json_proto returns [23:34:26]Send response to host [23:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191631,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:34:26]free response buf [23:34:26]execute_script done [23:34:26]execute_script returns [23:34:26]free content buf [23:34:26]Sock 9.Close socket [23:34:26]Sock 9.Thread stoped [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:25]accept exits with 8 [23:38:25]New connection [23:38:25]New thread 3066817892 created [23:38:25]Thread 3066961252 joined [23:38:25]Waiting for new connection... [23:38:25] Sock 8.Parse request [23:38:25]Sock 8.Check first char [23:38:25]Sock 8.First char is OK [23:38:25]request: POST /json_proto HTTP/1.0 [23:38:25]Method: POST [23:38:25]URL: /json_proto [23:38:25]Method is POST - this is cgi request [23:38:25]url: /json_proto [23:38:25]query_string will be loaded in cgi processing [23:38:25]execute_cgi json_proto POST (null) [23:38:25]execute_cgi path=json_proto method=POST [23:38:25]POST find Content-Length [23:38:25]Host: 172.17.63.131:8080 [23:38:25]Content-Length: 676 [23:38:25]Content-Type: application/json [23:38:25] [23:38:25]POST finish read [23:38:25]Found Content-Length = 676 [23:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:25]execute_script... [23:38: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)30936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:25]POST & json_proto [23:38:25]process_json_proto [23:38:25]json parsed OK: [23:38:25]protocol is kg_v1.0 [23:38:25]action value=close_receipt [23:38:25]process_action close_receipt [23:38:25]cmd_close_receipt [23:38:25]MH_GetDate [23:38:25]Write to MH i2c: F0 00 00 27 DA F0 [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: F0 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: F0 09 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: F0 09 00 27 DA 00 FD 2B 1C 67 22 05 6E 64 9D [23:38:25]GetLastDocTimeStamp 1729899273 [23:38:25]current date 1729899517 [23:38:25]FM_GetShiftState [23:38:25]SAM_PROTO_GetShiftState [23:38:25]wFMCommunicate request_size=4 [23:38:25]MH_SAM_APDU [23:38:25]CAPDU: 80 13 01 00 [23:38:25]Write to MH i2c: E2 08 00 28 DA 80 13 01 00 00 00 00 00 7F [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:25]Read from MH i2c: E2 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: E2 0E 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: E2 0E 00 28 DA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 42 [23:38:25]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:38:25]wFMCommunicate OK [23:38:25]SAM_PROTO_GetShiftState done [23:38:25]FM_GetShiftState done [23:38:25]opened in 1729816399 [23:38:25]opened+sec_in_day 1729902799 [23:38:25]quantity*price = 30038 [23:38:25]sum+1 = 30039 [23:38:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 371 25.10.2024 23:38 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191632 ФПД: 260090027763145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233837&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191632&fm=260090027763145&tin=02508201610067®Number=0000000000091776&sum=30000 [23:38:27]StoreToDocumentArchive [23:38:27]shift 540 fd 191632 [23:38:27]save to /storage/0540/doc_00191632 [23:38:27]save last doc name /storage/0540/doc_00191632 to /storage/kkm_last_doc_name [23:38:27]save OK [23:38:27]Clear old archive folders... [23:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:27]tlvbuf is 018CACD0 [23:38:27]SAM_PROTO_ClearQueue [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 09 00 00 [23:38:27]Write to MH i2c: E2 08 00 35 DA 80 09 00 00 00 00 00 00 81 [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 35 DA 00 90 00 83 [23:38:27]RAPDU: 90 00 [23:38:27]wFMCommunicate OK [23:38:27]SAM_PROTO_ClearQueue done [23:38:27]KKMCreateOFDPacket [23:38:27]OFDProtocolAddRootSTLVToBuf [23:38:27]FM_MakeSignedData [23:38:27]FM_MakeSignedData [23:38:27]SAM_PROTO_SignData [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 0D 01 02 [23:38:27]Write to MH i2c: E2 08 00 36 DA 80 0D 01 02 00 00 00 00 89 [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 36 DA 00 90 00 84 [23:38:27]RAPDU: 90 00 [23:38:27]wFMCommunicate OK [23:38:27]wFMCommunicate request_size=255 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 FD 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EC 02 00 35 04 06 00 EC [23:38:27]Write to MH i2c: E2 02 01 37 DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 FD 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EC 02 00 35 04 06 00 EC 00 00 B8 [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 37 DA 00 90 00 85 [23:38:27]RAPDU: 90 00 [23:38:27]wFMCommunicate OK [23:38:27]wFMCommunicate request_size=10 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 0D 02 02 05 8C ED B6 E5 C9 [23:38:27]Write to MH i2c: E2 0D 00 38 DA 80 0D 02 02 05 00 8C ED B6 E5 C9 00 00 73 [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 03 00 38 DA 00 90 00 86 [23:38:27]RAPDU: 90 00 [23:38:27]wFMCommunicate OK [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 0D 03 02 [23:38:27]Write to MH i2c: E2 08 00 39 DA 80 0D 03 02 00 00 00 00 8E [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 0B 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 0B 00 39 DA 00 B4 54 34 CB 36 42 21 23 90 00 52 [23:38:27]RAPDU: B4 54 34 CB 36 42 21 23 90 00 [23:38:27]wFMCommunicate OK [23:38:27]SAM_PROTO_SignData done [23:38:27]FM_MakeSignedData done [23:38:27]CreateOFDProtocolMessage [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 11 00 00 [23:38:27]Write to MH i2c: E2 08 00 3A DA 80 11 00 00 00 00 00 00 8E [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 17 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 17 00 3A DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [23:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:38:27]wFMCommunicate OK [23:38:27]CreateOFDProtocolMessage done [23:38:27]OFDSenderStorePacket 191632 [23:38:27]StoreOFDPacket docnum=191632 [23:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D F9 07 01 E6 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 FD 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EC 02 00 35 04 06 00 EC 8C ED B6 E5 C9 B4 54 34 CB 36 42 21 23 [23:38:27]CheckFolder [23:38:27]dirname=/storage/ofd_packets [23:38:27]CheckFolder done [23:38:27]ProducePacketName [23:38:27]name=ofd_packets/00191632 [23:38:27]NVStorageSaveData ofd_packets/00191632 [23:38:27]File name is /storage/ofd_packets/00191632 [23:38:27]Write 301 bytes [23:38:27]NVStorageSaveData done [23:38:27]OFDSenderStorePacket done [23:38:27]KKMCreateOFDPacket done [23:38:27]NVStorageSaveData kkm_last_timestamp [23:38:27]File name is /storage/kkm_last_timestamp [23:38:27]Write 4 bytes [23:38:27]NVStorageSaveData done [23:38:27]ExternCall_PrintAddStr [23:38:27]wPrintStart [23:38:27]Write to MH i2c: 01 00 00 3B DA 15 [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: 01 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: 01 07 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: 01 07 00 3B DA 00 00 00 00 00 FF 0F 2A [23:38:27]RasterBufferAndPrint [23:38:27]line Счет N : (1)30936 [23:38:27]line ИНН: 02508201610067 [23:38:27]line Контрольно-Кассовый Чек [23:38:27]line ПРОДАЖА [23:38:27]line ТРК (МРК, ГНК) : 21 [23:38:27]line Товар: 2710124130 [23:38:27]line Аи-92-К-5 [23:38:27]line 4.490 * 66.90 [23:38:27]line = 300.38 [23:38:27]line НДС 12% НСП 1% [23:38:27]line > о реализуемом товаре [23:38:27]line ОКРУГЛЕНИЕ: -0.38 [23:38:27]line ИТОГО: 300.00 [23:38:27]line Внесено: 300.00 [23:38:27]line СДАЧА: 0.00 [23:38:27]line НСП 1% : 2.66 [23:38:27]line НДС 12% : 31.90 [23:38:27]line Наличными: 300.00 [23:38:27]line Безнал.: 0.00 [23:38:27]line Место: АЗС № 170 "Партнер Нефть" [23:38:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:38:27]line СНО: Общий режим [23:38:27]line Чек 371 25.10.2024 23:38 [23:38:27]line Смена: 540 ФФД: 1.0 [23:38:27]line ЗНМ: 0300000110 [23:38:27]line РНМ: 0000000000091776 [23:38:27]line Версия ККМ: 001 [23:38:27]line ФМ: 0000000000871754 [23:38:27]line ФД: 191632 [23:38:27]line ФПД: 260090027763145 [23:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233837&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191632&fm=260090027763145&tin=02508201610067®Number=0000000000091776&sum=30000 [23:38:27]OFD Sender: Processing packet 191632 [packets to send 75, broken 74] [23:38:27]ProducePacketName [23:38:27]name=ofd_packets/00191632 [23:38:27]OFD Sender: To server: pG, [23:38:27]CommunicateWithHost lk.salyk.kg:30040 [23:38:27]ConnectInit lk.salyk.kg [23:38:27]written 0, free lines is 4095 [23:38:28]Connected sock=10 [23:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D F9 07 01 E6 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 FD 2B 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EC 02 00 35 04 06 00 EC 8C ED B6 E5 C9 B4 54 34 CB 36 42 21 23 [23:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A C2 47 00 13 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 31 37 35 34 10 04 04 00 90 EC 02 00 F4 03 04 00 CA D0 1B 67 B6 04 01 00 00 7B CC 5F 7B EC 71 86 A8 [23:38:28]CommunicateWithHost err = 0 [23:38:28]CheckOFDResponse [23:38:28]1017 (14) - 77093643461234 [23:38:28]1041 (16) - 0000000000871754 [23:38:28]1040 (4) - 191632 [23:38:28]1012 (4) - 25.10.2024 17:09 [23:38:28]1206 (1) - 0 [23:38:28]OFD Sender: Remove packet 191632 [23:38:28]ProducePacketName [23:38:28]name=ofd_packets/00191632 [23:38:28]NVStorageDeleteData [23:38:28]Write to MH i2c: 01 00 00 66 DA 40 [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: 01 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: 01 07 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: 01 07 00 66 DA 00 00 00 00 00 AF 0C 02 [23:38:28]RasterBufferAndPrint [23:38:28]line [23:38:28]line [23:38:28]line [23:38:28]line [23:38:28]line [23:38:28]written 0, free lines is 3255 [23:38:28]MH_Cut [23:38:28]Write to MH i2c: D1 01 00 6D DA 01 19 [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: D1 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: D1 01 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: D1 01 00 6D DA 00 18 [23:38:28]Write to MH i2c: 01 00 00 6E DA 48 [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]OFD Sender: No OFD packet to send [23:38:29]*** Cut start [23:38:29]*** Partial cut [23:38:29]*** CUTSNS_PIN = 1 [23:38:29]*** CUTSNS_PIN = 0 [23:38:29]*** Brake cut motor [23:38:29]Read from MH i2c: 01 [23:38:29]MH_I2C_Read... [23:38:29]*** Stop cut motor [23:38:29]*** Cut end [23:38:29]Read from MH i2c: 01 07 00 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: 01 07 00 6E DA 00 00 00 00 00 FF 0F 5D [23:38:29]process_action close_receipt done [23:38:29]requested_data is exist [23:38:29]produce_requested_data [23:38:29]requested_item fm.sn is exist - process it [23:38:29]wFMCommunicate request_size=4 [23:38:29]MH_SAM_APDU [23:38:29]CAPDU: 80 11 00 00 [23:38:29]Write to MH i2c: E2 08 00 6F DA 80 11 00 00 00 00 00 00 C3 [23:38:29]Write i2c OK [23:38:29]MH_I2C_Read... [23:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:29]Read from MH i2c: E2 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: E2 17 00 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: E2 17 00 6F DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [23:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:38:29]wFMCommunicate OK [23:38:29]requested_item fd.num is exist - process it [23:38:29]SAM_PROTO_GetFieldsCounters [23:38:29]wFMCommunicate request_size=4 [23:38:29]MH_SAM_APDU [23:38:29]CAPDU: 80 13 00 00 [23:38:29]Write to MH i2c: E2 08 00 70 DA 80 13 00 00 00 00 00 00 C6 [23:38:29]Write i2c OK [23:38:29]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 62 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 62 00 70 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [23:38:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:30]wFMCommunicate OK [23:38:30]SAM_PROTO_GetFieldsCounters done [23:38:30]requested_item shift.num is exist - process it [23:38:30]requested_item shift.opened is exist - process it [23:38:30]req_shift_opened [23:38:30]FM_GetShiftState [23:38:30]SAM_PROTO_GetShiftState [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 13 01 00 [23:38:30]Write to MH i2c: E2 08 00 71 DA 80 13 01 00 00 00 00 00 C8 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:30]Read from MH i2c: E2 0E 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 0E 00 71 DA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 8B [23:38:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:38:30]wFMCommunicate OK [23:38:30]SAM_PROTO_GetShiftState done [23:38:30]FM_GetShiftState done [23:38:30]req_shift_opened done [23:38:30]requested_item shift.open_date is exist - process it [23:38:30]req_shift_open_date [23:38:30]req_shift_open_date done [23:38:30]produce_requested_data done [23:38:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191632,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:38:30]process_action_free close_receipt [23:38:30]json_value_free [23:38:30]json_value_free done [23:38:30]process_json_proto returns [23:38:30]Send response to host [23:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191632,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:38:30]free response buf [23:38:30]execute_script done [23:38:30]execute_script returns [23:38:30]free content buf [23:38:30]Sock 8.Close socket [23:38:30]Sock 8.Thread stoped [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:23]ConnectInit Can't connect to host [23:49:24]OFD Sender: No OFD packet to send [23:50:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 7B DA 00 90 00 C9 [23:50:13]RAPDU: 90 00 [23:50:13]wFMCommunicate OK [23:50:13]wFMCommunicate request_size=13 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 15 02 00 08 F4 03 04 00 C0 2E 1C 67 [23:50:13]Write to MH i2c: E2 10 00 7C DA 80 15 02 00 08 00 F4 03 04 00 C0 2E 1C 67 00 00 52 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 7C DA 00 90 00 CA [23:50:13]RAPDU: 90 00 [23:50:13]wFMCommunicate OK [23:50:13]wFMCommunicate request_size=25 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [23:50:13]Write to MH i2c: E2 1C 00 7D DA 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 3E [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 7D DA 00 90 00 CB [23:50:13]RAPDU: 90 00 [23:50:13]wFMCommunicate OK [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 15 03 00 [23:50:13]Write to MH i2c: E2 08 00 7E DA 80 15 03 00 00 00 00 00 D9 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 40 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 40 00 7E DA 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 01 00 00 35 04 06 00 AE 48 66 DD 29 D8 90 00 1B [23:50:13]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 01 00 00 35 04 06 00 AE 48 66 DD 29 D8 90 00 [23:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_ProcessDocument answer len = 59 [23:50:13]SAM_PROTO_ProcessDocument done [23:50:13]SetTLVBufToDocument [23:50:13]Processing tag 1209 (04B9) [23:50:13]Malloc new data [23:50:13]Processing tag 1041 (0411) [23:50:13]Processing tag 1040 (0410) [23:50:13]Malloc new data [23:50:13]Processing tag 1038 (040E) [23:50:13]Malloc new data [23:50:13]Processing tag 1042 (0412) [23:50:13]Malloc new data [23:50:13]Processing tag 1077 (0435) [23:50:13]Malloc new data [23:50:13]SetTLVBufToDocument err=0 [23:50:13]KKMLoadAndSignReceiptData store KKM data [23:50:13]KKMLoadAndSignReceiptData err=0 [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 11 00 00 [23:50:13]Write to MH i2c: E2 08 00 7F DA 80 11 00 00 00 00 00 00 D3 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 17 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 17 00 7F DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [23:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:50:13]wFMCommunicate OK [23:50:13]Счет N : (1)30937 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 1.500 * 66.90 = 100.35 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 372 25.10.2024 23:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191633 ФПД: 191625986648536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T235024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191633&fm=191625986648536&tin=02508201610067®Number=0000000000091776&sum=10000 [23:50:13]StoreToDocumentArchive [23:50:13]shift 540 fd 191633 [23:50:13]save to /storage/0540/doc_00191633 [23:50:13]save last doc name /storage/0540/doc_00191633 to /storage/kkm_last_doc_name [23:50:13]save OK [23:50:13]Clear old archive folders... [23:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:13]tlvbuf is 01624F70 [23:50:13]SAM_PROTO_ClearQueue [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 09 00 00 [23:50:13]Write to MH i2c: E2 08 00 80 DA 80 09 00 00 00 00 00 00 CC [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 03 00 80 DA 00 90 00 CE [23:50:13]RAPDU: 90 00 [23:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_ClearQueue done [23:50:13]KKMCreateOFDPacket [23:50:13]OFDProtocolAddRootSTLVToBuf [23:50:13]FM_MakeSignedData [23:50:13]FM_MakeSignedData [23:50:13]SAM_PROTO_SignData [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 0D 01 02 [23:50:13]Write to MH i2c: E2 08 00 81 DA 80 0D 01 02 00 00 00 00 D4 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 81 DA 00 90 00 CF [23:50:14]RAPDU: 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=255 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 C0 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 35 04 06 00 AE [23:50:14]Write to MH i2c: E2 02 01 82 DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 C0 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 35 04 06 00 AE 00 00 80 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 82 DA 00 90 00 D0 [23:50:14]RAPDU: 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=10 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 0D 02 02 05 48 66 DD 29 D8 [23:50:14]Write to MH i2c: E2 0D 00 83 DA 80 0D 02 02 05 00 48 66 DD 29 D8 00 00 6D [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 03 00 83 DA 00 90 00 D1 [23:50:14]RAPDU: 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 0D 03 02 [23:50:14]Write to MH i2c: E2 08 00 84 DA 80 0D 03 02 00 00 00 00 D9 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 0B 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 0B 00 84 DA 00 81 BB 01 3A 44 BB E9 E2 90 00 1B [23:50:14]RAPDU: 81 BB 01 3A 44 BB E9 E2 90 00 [23:50:14]wFMCommunicate OK [23:50:14]SAM_PROTO_SignData done [23:50:14]FM_MakeSignedData done [23:50:14]CreateOFDProtocolMessage [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 11 00 00 [23:50:14]Write to MH i2c: E2 08 00 85 DA 80 11 00 00 00 00 00 00 D9 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 17 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 17 00 85 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [23:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:50:14]wFMCommunicate OK [23:50:14]CreateOFDProtocolMessage done [23:50:14]OFDSenderStorePacket 191633 [23:50:14]StoreOFDPacket docnum=191633 [23:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 C4 07 01 4A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 C0 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 35 04 06 00 AE 48 66 DD 29 D8 81 BB 01 3A 44 BB E9 E2 [23:50:14]CheckFolder [23:50:14]dirname=/storage/ofd_packets [23:50:14]CheckFolder done [23:50:14]ProducePacketName [23:50:14]name=ofd_packets/00191633 [23:50:14]NVStorageSaveData ofd_packets/00191633 [23:50:14]File name is /storage/ofd_packets/00191633 [23:50:14]Write 301 bytes [23:50:14]NVStorageSaveData done [23:50:14]OFDSenderStorePacket done [23:50:14]KKMCreateOFDPacket done [23:50:14]NVStorageSaveData kkm_last_timestamp [23:50:14]File name is /storage/kkm_last_timestamp [23:50:14]Write 4 bytes [23:50:14]NVStorageSaveData done [23:50:14]ExternCall_PrintAddStr [23:50:14]wPrintStart [23:50:14]Write to MH i2c: 01 00 00 86 DA 60 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: 01 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: 01 07 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: 01 07 00 86 DA 00 00 00 00 00 FF 0F 75 [23:50:14]RasterBufferAndPrint [23:50:14]line Счет N : (1)30937 [23:50:14]line ИНН: 02508201610067 [23:50:14]line Контрольно-Кассовый Чек [23:50:14]line ПРОДАЖА [23:50:14]line ТРК (МРК, ГНК) : 21 [23:50:14]line Товар: 2710124130 [23:50:14]line Аи-92-К-5 [23:50:14]line 1.500 * 66.90 [23:50:14]line = 100.35 [23:50:14]line НДС 12% НСП 1% [23:50:14]line > о реализуемом товаре [23:50:14]line ОКРУГЛЕНИЕ: -0.35 [23:50:14]line ИТОГО: 100.00 [23:50:14]line Внесено: 100.00 [23:50:14]line СДАЧА: 0.00 [23:50:14]line НСП 1% : 0.89 [23:50:14]line НДС 12% : 10.66 [23:50:14]line Наличными: 100.00 [23:50:14]line Безнал.: 0.00 [23:50:14]line Место: АЗС № 170 "Партнер Нефть" [23:50:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:50:14]line СНО: Общий режим [23:50:14]line Чек 372 25.10.2024 23:50 [23:50:14]line Смена: 540 ФФД: 1.0 [23:50:14]line ЗНМ: 0300000110 [23:50:14]line РНМ: 0000000000091776 [23:50:14]line Версия ККМ: 001 [23:50:14]line ФМ: 0000000000871754 [23:50:14]line ФД: 191633 [23:50:14]line ФПД: 191625986648536 [23:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T235024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191633&fm=191625986648536&tin=02508201610067®Number=0000000000091776&sum=10000 [23:50:14]OFD Sender: Processing packet 191633 [packets to send 75, broken 74] [23:50:14]ProducePacketName [23:50:14]name=ofd_packets/00191633 [23:50:14]OFD Sender: To server: pG, [23:50:14]CommunicateWithHost lk.salyk.kg:30040 [23:50:14]ConnectInit lk.salyk.kg [23:50:14]written 0, free lines is 4095 [23:50:14]Connected sock=11 [23:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 C4 07 01 4A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 C0 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 35 04 06 00 AE 48 66 DD 29 D8 81 BB 01 3A 44 BB E9 E2 [23:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E8 E0 47 00 14 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EC 02 00 F4 03 04 00 8D D3 1B 67 B6 04 01 00 00 05 B9 B1 FD 46 19 61 BA [23:50:15]CommunicateWithHost err = 0 [23:50:15]CheckOFDResponse [23:50:15]1017 (14) - 77093643461234 [23:50:15]1041 (16) - 0000000000871754 [23:50:15]1040 (4) - 191633 [23:50:15]1012 (4) - 25.10.2024 17:21 [23:50:15]1206 (1) - 0 [23:50:15]OFD Sender: Remove packet 191633 [23:50:15]ProducePacketName [23:50:15]name=ofd_packets/00191633 [23:50:15]NVStorageDeleteData [23:50:15]Write to MH i2c: 01 00 00 B1 DA 8B [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: 01 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: 01 07 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: 01 07 00 B1 DA 00 00 00 00 00 AF 0C 4D [23:50:15]RasterBufferAndPrint [23:50:15]line [23:50:15]line [23:50:15]line [23:50:15]line [23:50:15]line [23:50:15]written 0, free lines is 3255 [23:50:15]MH_Cut [23:50:15]Write to MH i2c: D1 01 00 B8 DA 01 64 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: D1 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: D1 01 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: D1 01 00 B8 DA 00 63 [23:50:15]Write to MH i2c: 01 00 00 B9 DA 93 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]OFD Sender: No OFD packet to send [23:50:16]*** Cut start [23:50:16]*** Partial cut [23:50:16]*** CUTSNS_PIN = 1 [23:50:16]*** CUTSNS_PIN = 0 [23:50:16]*** Brake cut motor [23:50:16]Read from MH i2c: 01 [23:50:16]MH_I2C_Read... [23:50:16]*** Stop cut motor [23:50:16]*** Cut end [23:50:16]Read from MH i2c: 01 07 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: 01 07 00 B9 DA 00 00 00 00 00 FF 0F A8 [23:50:16]process_action close_receipt done [23:50:16]requested_data is exist [23:50:16]produce_requested_data [23:50:16]requested_item fm.sn is exist - process it [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 11 00 00 [23:50:16]Write to MH i2c: E2 08 00 BA DA 80 11 00 00 00 00 00 00 0E [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 17 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 17 00 BA DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [23:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:50:16]wFMCommunicate OK [23:50:16]requested_item fd.num is exist - process it [23:50:16]SAM_PROTO_GetFieldsCounters [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 00 00 [23:50:16]Write to MH i2c: E2 08 00 BB DA 80 13 00 00 00 00 00 00 11 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 62 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 62 00 BB DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [23:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetFieldsCounters done [23:50:16]requested_item shift.num is exist - process it [23:50:16]requested_item shift.opened is exist - process it [23:50:16]req_shift_opened [23:50:16]FM_GetShiftState [23:50:16]SAM_PROTO_GetShiftState [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 01 00 [23:50:16]Write to MH i2c: E2 08 00 BC DA 80 13 01 00 00 00 00 00 13 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 BC DA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D6 [23:50:16]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetShiftState done [23:50:16]FM_GetShiftState done [23:50:16]req_shift_opened done [23:50:16]requested_item shift.open_date is exist - process it [23:50:16]req_shift_open_date [23:50:16]req_shift_open_date done [23:50:16]produce_requested_data done [23:50:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191633,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:50:16]process_action_free close_receipt [23:50:16]json_value_free [23:50:16]json_value_free done [23:50:16]process_json_proto returns [23:50:16]Send response to host [23:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191633,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:50:16]free response buf [23:50:16]execute_script done [23:50:16]execute_script returns [23:50:16]free content buf [23:50:16]Sock 9.Close socket [23:50:16]Sock 9.Thread stoped [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [23:50:46]accept exits with 10 [23:50:46]New connection [23:50:46]New thread 3066817892 created [23:50:46]Thread 3066961252 joined [23:50:46]Waiting for new connection... [23:50:46] Sock 10.Parse request [23:50:46]Sock 10.Check first char [23:50:46]Sock 10.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.63.131:8080 [23:50:46]Content-Length: 672 [23:50:46]Content-Type: application/json [23:50:46] [23:50:46]POST finish read [23:50:46]Found Content-Length = 672 [23:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.350, "sum" : 90.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 90.00, "total" : 90.00, "payments": [ { "type": 0, "sum" : 90.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:46]execute_script... [23:50: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)30938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.350, "sum" : 90.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 90.00, "total" : 90.00, "payments": [ { "type": 0, "sum" : 90.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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=close_receipt [23:50:46]process_action close_receipt [23:50:46]cmd_close_receipt [23:50:46]MH_GetDate [23:50:46]Write to MH i2c: F0 00 00 BD DA 86 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: F0 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: F0 09 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: F0 09 00 BD DA 00 E2 2E 1C 67 22 05 6E 64 1B [23:50:46]GetLastDocTimeStamp 1729900224 [23:50:46]current date 1729900258 [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 BE DA 80 13 01 00 00 00 00 00 15 [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 BE DA 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 D8 [23:50:46]RAPDU: 09 00 01 4F E7 1A 67 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]opened in 1729816399 [23:50:46]opened+sec_in_day 1729902799 [23:50:46]quantity*price = 9031 [23:50:46]sum+1 = 9033 [23:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 90.00 Внесено: 90.00 СДАЧА: 0.00 НСП 1% : 0.80 НДС 12% : 9.59 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 373 25.10.2024 23:50 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191634 ФПД: 29254013059210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T235058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191634&fm=29254013059210&tin=02508201610067®Number=0000000000091776&sum=9000 [23:50:47]StoreToDocumentArchive [23:50:47]shift 540 fd 191634 [23:50:47]save to /storage/0540/doc_00191634 [23:50:47]save last doc name /storage/0540/doc_00191634 to /storage/kkm_last_doc_name [23:50:47]save OK [23:50:47]Clear old archive folders... [23:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:47]tlvbuf is 01795F80 [23:50:47]SAM_PROTO_ClearQueue [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 09 00 00 [23:50:47]Write to MH i2c: E2 08 00 CB DA 80 09 00 00 00 00 00 00 17 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 CB DA 00 90 00 19 [23:50:47]RAPDU: 90 00 [23:50:47]wFMCommunicate OK [23:50:47]SAM_PROTO_ClearQueue done [23:50:47]KKMCreateOFDPacket [23:50:47]OFDProtocolAddRootSTLVToBuf [23:50:47]FM_MakeSignedData [23:50:47]FM_MakeSignedData [23:50:47]SAM_PROTO_SignData [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 0D 01 02 [23:50:47]Write to MH i2c: E2 08 00 CC DA 80 0D 01 02 00 00 00 00 1F [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 CC DA 00 90 00 1A [23:50:47]RAPDU: 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=255 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 28 23 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 01 00 00 F4 03 04 00 E2 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EC 02 00 35 04 06 00 1A [23:50:47]Write to MH i2c: E2 02 01 CD DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 28 23 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 01 00 00 F4 03 04 00 E2 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EC 02 00 35 04 06 00 1A 00 00 89 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 CD DA 00 90 00 1B [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=10 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 0D 02 02 05 9B 3B 0E 80 8A [23:50:48]Write to MH i2c: E2 0D 00 CE DA 80 0D 02 02 05 00 9B 3B 0E 80 8A 00 00 1A [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 CE DA 00 90 00 1C [23:50:48]RAPDU: 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 0D 03 02 [23:50:48]Write to MH i2c: E2 08 00 CF DA 80 0D 03 02 00 00 00 00 24 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 0B 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 0B 00 CF DA 00 7A 5E 6C D6 CF E9 FE E3 90 00 D8 [23:50:48]RAPDU: 7A 5E 6C D6 CF E9 FE E3 90 00 [23:50:48]wFMCommunicate OK [23:50:48]SAM_PROTO_SignData done [23:50:48]FM_MakeSignedData done [23:50:48]CreateOFDProtocolMessage [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 11 00 00 [23:50:48]Write to MH i2c: E2 08 00 D0 DA 80 11 00 00 00 00 00 00 24 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 17 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 17 00 D0 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [23:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:50:48]wFMCommunicate OK [23:50:48]CreateOFDProtocolMessage done [23:50:48]OFDSenderStorePacket 191634 [23:50:48]StoreOFDPacket docnum=191634 [23:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 EF 07 01 73 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 28 23 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 01 00 00 F4 03 04 00 E2 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EC 02 00 35 04 06 00 1A 9B 3B 0E 80 8A 7A 5E 6C D6 CF E9 FE E3 [23:50:48]CheckFolder [23:50:48]dirname=/storage/ofd_packets [23:50:48]CheckFolder done [23:50:48]ProducePacketName [23:50:48]name=ofd_packets/00191634 [23:50:48]NVStorageSaveData ofd_packets/00191634 [23:50:48]File name is /storage/ofd_packets/00191634 [23:50:48]Write 301 bytes [23:50:48]NVStorageSaveData done [23:50:48]OFDSenderStorePacket done [23:50:48]KKMCreateOFDPacket done [23:50:48]NVStorageSaveData kkm_last_timestamp [23:50:48]File name is /storage/kkm_last_timestamp [23:50:48]Write 4 bytes [23:50:48]NVStorageSaveData done [23:50:48]ExternCall_PrintAddStr [23:50:48]wPrintStart [23:50:48]Write to MH i2c: 01 00 00 D1 DA AB [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 07 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 07 00 D1 DA 00 00 00 00 00 FF 0F C0 [23:50:48]RasterBufferAndPrint [23:50:48]line Счет N : (1)30938 [23:50:48]line ИНН: 02508201610067 [23:50:48]line Контрольно-Кассовый Чек [23:50:48]line ПРОДАЖА [23:50:48]line ТРК (МРК, ГНК) : 21 [23:50:48]line Товар: 2710124130 [23:50:48]line Аи-92-К-5 [23:50:48]line 1.350 * 66.90 [23:50:48]line = 90.32 [23:50:48]line НДС 12% НСП 1% [23:50:48]line > о реализуемом товаре [23:50:48]line ОКРУГЛЕНИЕ: -0.32 [23:50:48]line ИТОГО: 90.00 [23:50:48]line Внесено: 90.00 [23:50:48]line СДАЧА: 0.00 [23:50:48]line НСП 1% : 0.80 [23:50:48]line НДС 12% : 9.59 [23:50:48]line Наличными: 90.00 [23:50:48]line Безнал.: 0.00 [23:50:48]line Место: АЗС № 170 "Партнер Нефть" [23:50:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:50:48]line СНО: Общий режим [23:50:48]line Чек 373 25.10.2024 23:50 [23:50:48]line Смена: 540 ФФД: 1.0 [23:50:48]line ЗНМ: 0300000110 [23:50:48]line РНМ: 0000000000091776 [23:50:48]line Версия ККМ: 001 [23:50:48]line ФМ: 0000000000871754 [23:50:48]line ФД: 191634 [23:50:48]line ФПД: 29254013059210 [23:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T235058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191634&fm=29254013059210&tin=02508201610067®Number=0000000000091776&sum=9000 [23:50:48]written 0, free lines is 4095 [23:50:48]OFD Sender: Processing packet 191634 [packets to send 75, broken 74] [23:50:48]ProducePacketName [23:50:48]name=ofd_packets/00191634 [23:50:48]OFD Sender: To server: pG, [23:50:48]CommunicateWithHost lk.salyk.kg:30040 [23:50:48]ConnectInit lk.salyk.kg [23:50:48]Connected sock=11 [23:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 EF 07 01 73 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 03 00 00 00 00 07 04 06 00 28 23 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 01 00 00 F4 03 04 00 E2 2E 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EC 02 00 35 04 06 00 1A 9B 3B 0E 80 8A 7A 5E 6C D6 CF E9 FE E3 [23:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B9 6C 47 00 CA DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EC 02 00 F4 03 04 00 AE D3 1B 67 B6 04 01 00 00 C5 B1 6B 1A 47 91 4F ED [23:50:48]CommunicateWithHost err = 0 [23:50:48]CheckOFDResponse [23:50:48]1017 (14) - 77093643461234 [23:50:48]1041 (16) - 0000000000871754 [23:50:48]1040 (4) - 191634 [23:50:48]1012 (4) - 25.10.2024 17:21 [23:50:48]1206 (1) - 0 [23:50:48]OFD Sender: Remove packet 191634 [23:50:48]ProducePacketName [23:50:48]name=ofd_packets/00191634 [23:50:48]NVStorageDeleteData [23:50:48]Write to MH i2c: 01 00 00 FC DA D6 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 07 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: 01 07 00 FC DA 00 00 00 00 00 C5 0C AE [23:50:48]RasterBufferAndPrint [23:50:48]line [23:50:48]line [23:50:48]line [23:50:48]line [23:50:48]line [23:50:48]written 0, free lines is 3284 [23:50:48]MH_Cut [23:50:48]Write to MH i2c: D1 01 00 03 DB 01 B0 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: D1 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: D1 01 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: D1 01 00 03 DB 00 AF [23:50:48]Write to MH i2c: 01 00 00 04 DB DF [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:49]OFD Sender: No OFD packet to send [23:50:49]*** Cut start [23:50:49]*** Partial cut [23:50:49]*** CUTSNS_PIN = 1 [23:50:49]*** CUTSNS_PIN = 0 [23:50:49]*** Brake cut motor [23:50:50]Read from MH i2c: 01 [23:50:50]MH_I2C_Read... [23:50:50]*** Stop cut motor [23:50:50]*** Cut end [23:50:50]Read from MH i2c: 01 07 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: 01 07 00 04 DB 00 00 00 00 00 FF 0F F4 [23:50:50]process_action close_receipt done [23:50:50]requested_data is exist [23:50:50]produce_requested_data [23:50:50]requested_item fm.sn is exist - process it [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 11 00 00 [23:50:50]Write to MH i2c: E2 08 00 05 DB 80 11 00 00 00 00 00 00 5A [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 17 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 17 00 05 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [23:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:50:50]wFMCommunicate OK [23:50:50]requested_item fd.num is exist - process it [23:50:50]SAM_PROTO_GetFieldsCounters [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 13 00 00 [23:50:50]Write to MH i2c: E2 08 00 06 DB 80 13 00 00 00 00 00 00 5D [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 62 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 62 00 06 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [23:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:50]wFMCommunicate OK [23:50:50]SAM_PROTO_GetFieldsCounters done [23:50:50]requested_item shift.num is exist - process it [23:50:50]requested_item shift.opened is exist - process it [23:50:50]req_shift_opened [23:50:50]FM_GetShiftState [23:50:50]SAM_PROTO_GetShiftState [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 13 01 00 [23:50:50]Write to MH i2c: E2 08 00 07 DB 80 13 01 00 00 00 00 00 5F [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 0E 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 0E 00 07 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 22 [23:50:50]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [23:50:50]wFMCommunicate OK [23:50:50]SAM_PROTO_GetShiftState done [23:50:50]FM_GetShiftState done [23:50:50]req_shift_opened done [23:50:50]requested_item shift.open_date is exist - process it [23:50:50]req_shift_open_date [23:50:50]req_shift_open_date done [23:50:50]produce_requested_data done [23:50:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191634,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [23:50:50]process_action_free close_receipt [23:50:50]json_value_free [23:50:50]json_value_free done [23:50:50]process_json_proto returns [23:50:50]Send response to host [23:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191634,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [23:50:50]free response buf [23:50:50]execute_script done [23:50:50]execute_script returns [23:50:50]free content buf [23:50:50]Sock 10.Close socket [23:50:50]Sock 10.Thread stoped [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:48]ConnectInit Can't connect to host [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]ConnectInit Can't connect to host [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:37]ConnectInit Can't connect to host [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:22]accept exits with 9 [00:11:22]New connection [00:11:22]New thread 3066961252 created [00:11:22]Thread 3066817892 joined [00:11:22]Waiting for new connection... [00:11:22] Sock 9.Parse request [00:11:22]Sock 9.Check first char [00:11:22]Sock 9.First char is OK [00:11:22]request: POST /json_proto HTTP/1.0 [00:11:22]Method: POST [00:11:22]URL: /json_proto [00:11:22]Method is POST - this is cgi request [00:11:22]url: /json_proto [00:11:22]query_string will be loaded in cgi processing [00:11:22]execute_cgi json_proto POST (null) [00:11:22]execute_cgi path=json_proto method=POST [00:11:22]POST find Content-Length [00:11:22]Host: 172.17.63.131:8080 [00:11:22]Content-Length: 676 [00:11:22]Content-Type: application/json [00:11:22] [00:11:22]POST finish read [00:11:22]Found Content-Length = 676 [00:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:22]execute_script... [00: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)30939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:22]POST & json_proto [00:11:22]process_json_proto [00:11:22]json parsed OK: [00:11:22]protocol is kg_v1.0 [00:11:22]action value=close_receipt [00:11:22]process_action close_receipt [00:11:22]cmd_close_receipt [00:11:22]MH_GetDate [00:11:22]Write to MH i2c: F0 00 00 08 DB D2 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 08 DB 00 B6 33 1C 67 22 05 6E 64 40 [00:11:22]GetLastDocTimeStamp 1729900258 [00:11:22]current date 1729901494 [00:11:22]FM_GetShiftState [00:11:22]SAM_PROTO_GetShiftState [00:11:22]wFMCommunicate request_size=4 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 13 01 00 [00:11:22]Write to MH i2c: E2 08 00 09 DB 80 13 01 00 00 00 00 00 61 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 0E 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 0E 00 09 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 24 [00:11:23]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:11:23]wFMCommunicate OK [00:11:23]SAM_PROTO_GetShiftState done [00:11:23]FM_GetShiftState done [00:11:23]opened in 1729816399 [00:11:23]opened+sec_in_day 1729902799 [00:11:23]quantity*price = 43016 [00:11:23]sum+1 = 43018 [00:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.68 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 374 26.10.2024 00:11 Смена: 540 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191635 ФПД: 145731356173647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T001134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191635&fm=145731356173647&tin=02508201610067®Number=0000000000091776&sum=43000 [00:11:24]StoreToDocumentArchive [00:11:24]shift 540 fd 191635 [00:11:24]save to /storage/0540/doc_00191635 [00:11:24]save last doc name /storage/0540/doc_00191635 to /storage/kkm_last_doc_name [00:11:24]save OK [00:11:24]Clear old archive folders... [00:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:24]tlvbuf is 016BC130 [00:11:24]SAM_PROTO_ClearQueue [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 09 00 00 [00:11:24]Write to MH i2c: E2 08 00 16 DB 80 09 00 00 00 00 00 00 63 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 16 DB 00 90 00 65 [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]SAM_PROTO_ClearQueue done [00:11:24]KKMCreateOFDPacket [00:11:24]OFDProtocolAddRootSTLVToBuf [00:11:24]FM_MakeSignedData [00:11:24]FM_MakeSignedData [00:11:24]SAM_PROTO_SignData [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 0D 01 02 [00:11:24]Write to MH i2c: E2 08 00 17 DB 80 0D 01 02 00 00 00 00 6B [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 17 DB 00 90 00 66 [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]wFMCommunicate request_size=255 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 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 01 00 00 F4 03 04 00 B6 33 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EC 02 00 35 04 06 00 84 [00:11:24]Write to MH i2c: E2 02 01 18 DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 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 01 00 00 F4 03 04 00 B6 33 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EC 02 00 35 04 06 00 84 00 00 49 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 18 DB 00 90 00 67 [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]wFMCommunicate request_size=10 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 0D 02 02 05 8A B9 B7 A5 4F [00:11:24]Write to MH i2c: E2 0D 00 19 DB 80 0D 02 02 05 00 8A B9 B7 A5 4F 00 00 66 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 19 DB 00 90 00 68 [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 0D 03 02 [00:11:24]Write to MH i2c: E2 08 00 1A DB 80 0D 03 02 00 00 00 00 70 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 0B 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 0B 00 1A DB 00 9C 0A 22 20 51 36 3D AB 90 00 C8 [00:11:24]RAPDU: 9C 0A 22 20 51 36 3D AB 90 00 [00:11:24]wFMCommunicate OK [00:11:24]SAM_PROTO_SignData done [00:11:24]FM_MakeSignedData done [00:11:24]CreateOFDProtocolMessage [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 11 00 00 [00:11:24]Write to MH i2c: E2 08 00 1B DB 80 11 00 00 00 00 00 00 70 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 17 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 17 00 1B DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [00:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:11:24]wFMCommunicate OK [00:11:24]CreateOFDProtocolMessage done [00:11:24]OFDSenderStorePacket 191635 [00:11:24]StoreOFDPacket docnum=191635 [00:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 4B 07 01 0E 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 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 01 00 00 F4 03 04 00 B6 33 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EC 02 00 35 04 06 00 84 8A B9 B7 A5 4F 9C 0A 22 20 51 36 3D AB [00:11:24]CheckFolder [00:11:24]dirname=/storage/ofd_packets [00:11:24]CheckFolder done [00:11:24]ProducePacketName [00:11:24]name=ofd_packets/00191635 [00:11:24]NVStorageSaveData ofd_packets/00191635 [00:11:24]File name is /storage/ofd_packets/00191635 [00:11:24]Write 301 bytes [00:11:24]NVStorageSaveData done [00:11:24]OFDSenderStorePacket done [00:11:24]KKMCreateOFDPacket done [00:11:24]NVStorageSaveData kkm_last_timestamp [00:11:24]File name is /storage/kkm_last_timestamp [00:11:24]Write 4 bytes [00:11:24]NVStorageSaveData done [00:11:24]ExternCall_PrintAddStr [00:11:24]wPrintStart [00:11:24]Write to MH i2c: 01 00 00 1C DB F7 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: 01 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: 01 07 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: 01 07 00 1C DB 00 00 00 00 00 FF 0F 0C [00:11:24]RasterBufferAndPrint [00:11:24]line Счет N : (1)30939 [00:11:24]line ИНН: 02508201610067 [00:11:24]line Контрольно-Кассовый Чек [00:11:24]line ПРОДАЖА [00:11:24]line ТРК (МРК, ГНК) : 21 [00:11:24]line Товар: 2710124130 [00:11:24]line Аи-92-К-5 [00:11:24]line 6.430 * 66.90 [00:11:24]line = 430.17 [00:11:24]line НДС 12% НСП 1% [00:11:24]line > о реализуемом товаре [00:11:24]line ОКРУГЛЕНИЕ: -0.17 [00:11:24]line ИТОГО: 430.00 [00:11:24]line Внесено: 430.00 [00:11:24]line СДАЧА: 0.00 [00:11:24]line НСП 1% : 3.81 [00:11:24]line НДС 12% : 45.68 [00:11:24]line Наличными: 430.00 [00:11:24]line Безнал.: 0.00 [00:11:24]line Место: АЗС № 170 "Партнер Нефть" [00:11:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:11:24]line СНО: Общий режим [00:11:24]line Чек 374 26.10.2024 00:11 [00:11:24]line Смена: 540 ФФД: 1.0 [00:11:24]line ЗНМ: 0300000110 [00:11:24]line РНМ: 0000000000091776 [00:11:24]line Версия ККМ: 001 [00:11:24]line ФМ: 0000000000871754 [00:11:24]line ФД: 191635 [00:11:24]line ФПД: 145731356173647 [00:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T001134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191635&fm=145731356173647&tin=02508201610067®Number=0000000000091776&sum=43000 [00:11:25]OFD Sender: Processing packet 191635 [packets to send 75, broken 74] [00:11:25]ProducePacketName [00:11:25]name=ofd_packets/00191635 [00:11:25]OFD Sender: To server: pG, [00:11:25]CommunicateWithHost lk.salyk.kg:30040 [00:11:25]ConnectInit lk.salyk.kg [00:11:25]written 0, free lines is 4095 [00:11:25]Connected sock=10 [00: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 31 37 35 34 0F 01 00 00 AD 4B 07 01 0E 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 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 01 00 00 F4 03 04 00 B6 33 1C 67 0E 04 04 00 1C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EC 02 00 35 04 06 00 84 8A B9 B7 A5 4F 9C 0A 22 20 51 36 3D AB [00:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB AA 47 00 81 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 31 37 35 34 10 04 04 00 93 EC 02 00 F4 03 04 00 83 D8 1B 67 B6 04 01 00 00 E9 CC 17 60 BB 32 F7 3B [00:11:25]CommunicateWithHost err = 0 [00:11:25]CheckOFDResponse [00:11:25]1017 (14) - 77093643461234 [00:11:25]1041 (16) - 0000000000871754 [00:11:25]1040 (4) - 191635 [00:11:25]1012 (4) - 25.10.2024 17:42 [00:11:25]1206 (1) - 0 [00:11:25]OFD Sender: Remove packet 191635 [00:11:25]ProducePacketName [00:11:25]name=ofd_packets/00191635 [00:11:25]NVStorageDeleteData [00:11:25]Write to MH i2c: 01 00 00 47 DB 22 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 47 DB 00 00 00 00 00 A8 0C DD [00:11:25]RasterBufferAndPrint [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]written 0, free lines is 3246 [00:11:25]MH_Cut [00:11:25]Write to MH i2c: D1 01 00 4E DB 01 FB [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: D1 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: D1 01 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: D1 01 00 4E DB 00 FA [00:11:25]Write to MH i2c: 01 00 00 4F DB 2A [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]OFD Sender: No OFD packet to send [00:11:26]*** Cut start [00:11:26]*** Partial cut [00:11:26]*** CUTSNS_PIN = 1 [00:11:26]*** CUTSNS_PIN = 0 [00:11:26]*** Brake cut motor [00:11:26]Read from MH i2c: 01 [00:11:26]MH_I2C_Read... [00:11:26]*** Stop cut motor [00:11:26]*** Cut end [00:11:26]Read from MH i2c: 01 07 00 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: 01 07 00 4F DB 00 00 00 00 00 FF 0F 3F [00:11:26]process_action close_receipt done [00:11:26]requested_data is exist [00:11:26]produce_requested_data [00:11:26]requested_item fm.sn is exist - process it [00:11:26]wFMCommunicate request_size=4 [00:11:26]MH_SAM_APDU [00:11:26]CAPDU: 80 11 00 00 [00:11:26]Write to MH i2c: E2 08 00 50 DB 80 11 00 00 00 00 00 00 A5 [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:26]Read from MH i2c: E2 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: E2 17 00 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: E2 17 00 50 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [00:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:11:26]wFMCommunicate OK [00:11:26]requested_item fd.num is exist - process it [00:11:26]SAM_PROTO_GetFieldsCounters [00:11:26]wFMCommunicate request_size=4 [00:11:26]MH_SAM_APDU [00:11:26]CAPDU: 80 13 00 00 [00:11:26]Write to MH i2c: E2 08 00 51 DB 80 13 00 00 00 00 00 00 A8 [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 62 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 62 00 51 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [00: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_GetFieldsCounters done [00:11:27]requested_item shift.num is exist - process it [00:11:27]requested_item shift.opened is exist - process it [00:11:27]req_shift_opened [00:11:27]FM_GetShiftState [00:11:27]SAM_PROTO_GetShiftState [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 13 01 00 [00:11:27]Write to MH i2c: E2 08 00 52 DB 80 13 01 00 00 00 00 00 AA [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 52 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 6D [00:11:27]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_GetShiftState done [00:11:27]FM_GetShiftState done [00:11:27]req_shift_opened done [00:11:27]requested_item shift.open_date is exist - process it [00:11:27]req_shift_open_date [00:11:27]req_shift_open_date done [00:11:27]produce_requested_data done [00:11:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [00:11:27]process_action_free close_receipt [00:11:27]json_value_free [00:11:27]json_value_free done [00:11:27]process_json_proto returns [00:11:27]Send response to host [00:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [00:11:27]free response buf [00:11:27]execute_script done [00:11:27]execute_script returns [00:11:27]free content buf [00:11:27]Sock 9.Close socket [00:11:27]Sock 9.Thread stoped [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]accept exits with 8 [00:29:21]New connection [00:29:21]New thread 3066817892 created [00:29:21]Thread 3066961252 joined [00:29:21]Waiting for new connection... [00:29:21] Sock 8.Parse request [00:29:21]Sock 8.Check first char [00:29:21]Sock 8.First char is OK [00:29:21]request: POST /json_proto HTTP/1.0 [00:29:21]Method: POST [00:29:21]URL: /json_proto [00:29:21]Method is POST - this is cgi request [00:29:21]url: /json_proto [00:29:21]query_string will be loaded in cgi processing [00:29:21]execute_cgi json_proto POST (null) [00:29:21]execute_cgi path=json_proto method=POST [00:29:21]POST find Content-Length [00:29:21]Host: 172.17.63.131:8080 [00:29:21]Content-Length: 215 [00:29:21]Content-Type: application/json [00:29:21] [00:29:21]POST finish read [00:29:21]Found Content-Length = 215 [00:29:21]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:29:21]execute_script... [00:29:21]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:29:21]POST & json_proto [00:29:21]process_json_proto [00:29:21]json parsed OK: [00:29:21]protocol is kg_v1.0 [00:29:21]action value=get_value [00:29:21]process_action get_value [00:29:21]cmd_get_value [00:29:21]process_action get_value done [00:29:21]requested_data is exist [00:29:21]produce_requested_data [00:29:21]requested_item kkm.sn is exist - process it [00:29:21]requested_item kkm.ver is exist - process it [00:29:21]requested_item fm.sn is exist - process it [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 11 00 00 [00:29:21]Write to MH i2c: E2 08 00 53 DB 80 11 00 00 00 00 00 00 A8 [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:21]Read from MH i2c: E2 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 17 00 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 17 00 53 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [00:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:29:21]wFMCommunicate OK [00:29:21]requested_item fd.num is exist - process it [00:29:21]SAM_PROTO_GetFieldsCounters [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 13 00 00 [00:29:21]Write to MH i2c: E2 08 00 54 DB 80 13 00 00 00 00 00 00 AB [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:21]Read from MH i2c: E2 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 62 00 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 62 00 54 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:29:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:21]wFMCommunicate OK [00:29:21]SAM_PROTO_GetFieldsCounters done [00:29:21]requested_item shift.num is exist - process it [00:29:21]requested_item shift.opened is exist - process it [00:29:21]req_shift_opened [00:29:21]FM_GetShiftState [00:29:21]SAM_PROTO_GetShiftState [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 13 01 00 [00:29:21]Write to MH i2c: E2 08 00 55 DB 80 13 01 00 00 00 00 00 AD [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:21]Read from MH i2c: E2 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 0E 00 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 0E 00 55 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 70 [00:29:21]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:29:21]wFMCommunicate OK [00:29:21]SAM_PROTO_GetShiftState done [00:29:21]FM_GetShiftState done [00:29:21]req_shift_opened done [00:29:21]requested_item shift.open_date is exist - process it [00:29:21]req_shift_open_date [00:29:21]req_shift_open_date done [00:29:21]produce_requested_data done [00:29:21]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [00:29:21]process_action_free get_value [00:29:21]json_value_free [00:29:21]json_value_free done [00:29:21]process_json_proto returns [00:29:21]Send response to host [00:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [00:29:21]free response buf [00:29:21]execute_script done [00:29:21]execute_script returns [00:29:21]free content buf [00:29:21]Sock 8.Close socket [00:29:21]Sock 8.Thread stoped [00:29:21]accept exits with 9 [00:29:21]New connection [00:29:21]New thread 3066961252 created [00:29:21]Thread 3066817892 joined [00:29:21]Waiting for new connection... [00:29:21] Sock 9.Parse request [00:29:21]Sock 9.Check first char [00:29:21]Sock 9.First char is OK [00:29:21]request: POST /json_proto HTTP/1.0 [00:29:21]Method: POST [00:29:21]URL: /json_proto [00:29:21]Method is POST - this is cgi request [00:29:21]url: /json_proto [00:29:21]query_string will be loaded in cgi processing [00:29:21]execute_cgi json_proto POST (null) [00:29:21]execute_cgi path=json_proto method=POST [00:29:21]POST find Content-Length [00:29:21]Host: 172.17.63.131:8080 [00:29:21]Content-Length: 331 [00:29:21]Content-Type: application/json [00:29:21] [00:29:21]POST finish read [00:29:21]Found Content-Length = 331 [00:29:21]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:29:21]execute_script... [00:29:22]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:29:22]POST & json_proto [00:29:22]process_json_proto [00:29:22]json parsed OK: [00:29:22]protocol is kg_v1.0 [00:29:22]action value=get_value [00:29:22]process_action get_value [00:29:22]cmd_get_value [00:29:22]process_action get_value done [00:29:22]requested_data is exist [00:29:22]produce_requested_data [00:29:22]requested_item fm.sale.total is exist - process it [00:29:22]SAM_PROTO_GetFMData [00:29:22]wFMCommunicate request_size=4 [00:29:22]MH_SAM_APDU [00:29:22]CAPDU: 80 13 03 00 [00:29:22]Write to MH i2c: E2 08 00 56 DB 80 13 03 00 00 00 00 00 B0 [00:29:22]OFD Sender: No OFD packet to send [00:29:22]Write i2c OK [00:29:22]MH_I2C_Read... [00:29:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:22]Read from MH i2c: E2 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 FD 00 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 FD 00 56 DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 5A [00:29:22]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:22]wFMCommunicate OK [00:29:22]wFMCommunicate request_size=4 [00:29:22]MH_SAM_APDU [00:29:22]CAPDU: 80 17 00 00 [00:29:22]Write to MH i2c: E2 08 00 57 DB 80 17 00 00 00 00 00 00 B2 [00:29:22]Write i2c OK [00:29:22]MH_I2C_Read... [00:29:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:22]Read from MH i2c: E2 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 FD 00 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 FD 00 57 DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 C3 [00:29:22]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:22]wFMCommunicate OK [00:29:22]wFMCommunicate request_size=4 [00:29:22]MH_SAM_APDU [00:29:22]CAPDU: 80 17 00 00 [00:29:22]Write to MH i2c: E2 08 00 58 DB 80 17 00 00 00 00 00 00 B3 [00:29:22]Write i2c OK [00:29:22]MH_I2C_Read... [00:29:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:23]Read from MH i2c: E2 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 FD 00 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 FD 00 58 DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 53 [00:29:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:23]wFMCommunicate OK [00:29:23]wFMCommunicate request_size=4 [00:29:23]MH_SAM_APDU [00:29:23]CAPDU: 80 17 00 00 [00:29:23]Write to MH i2c: E2 08 00 59 DB 80 17 00 00 00 00 00 00 B4 [00:29:23]Write i2c OK [00:29:23]MH_I2C_Read... [00:29:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:23]Read from MH i2c: E2 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 FD 00 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 FD 00 59 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 39 [00:29:23]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:23]wFMCommunicate OK [00:29:23]wFMCommunicate request_size=4 [00:29:23]MH_SAM_APDU [00:29:23]CAPDU: 80 17 00 00 [00:29:23]Write to MH i2c: E2 08 00 5A DB 80 17 00 00 00 00 00 00 B5 [00:29:23]Write i2c OK [00:29:23]MH_I2C_Read... [00:29:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:23]Read from MH i2c: E2 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 DE 00 [00:29:23]MH_I2C_Read... [00:29:23]Read from MH i2c: E2 DE 00 5A DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [00:29:23]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:23]wFMCommunicate OK [00:29:23]SAM_PROTO_GetFMData done [00:29:23]requested_item fm.sale_refund.total is exist - process it [00:29:23]requested_item fm.buy.total is exist - process it [00:29:23]requested_item shift.sale.total is exist - process it [00:29:23]SAM_PROTO_GetShiftData [00:29:23]wFMCommunicate request_size=4 [00:29:23]MH_SAM_APDU [00:29:23]CAPDU: 80 13 02 00 [00:29:23]Write to MH i2c: E2 08 00 5B DB 80 13 02 00 00 00 00 00 B4 [00:29:23]Write i2c OK [00:29:23]MH_I2C_Read... [00:29:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:24]Read from MH i2c: E2 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 5B DB 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 30 [00:29:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:24]wFMCommunicate OK [00:29:24]wFMCommunicate request_size=4 [00:29:24]MH_SAM_APDU [00:29:24]CAPDU: 80 17 00 00 [00:29:24]Write to MH i2c: E2 08 00 5C DB 80 17 00 00 00 00 00 00 B7 [00:29:24]Write i2c OK [00:29:24]MH_I2C_Read... [00:29:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:24]Read from MH i2c: E2 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 5C DB 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 D0 [00:29:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:24]wFMCommunicate OK [00:29:24]wFMCommunicate request_size=4 [00:29:24]MH_SAM_APDU [00:29:24]CAPDU: 80 17 00 00 [00:29:24]Write to MH i2c: E2 08 00 5D DB 80 17 00 00 00 00 00 00 B8 [00:29:24]Write i2c OK [00:29:24]MH_I2C_Read... [00:29:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:24]Read from MH i2c: E2 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 [00:29:24]MH_I2C_Read... [00:29:24]Read from MH i2c: E2 FD 00 5D DB 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 71 [00:29:24]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:24]wFMCommunicate OK [00:29:24]wFMCommunicate request_size=4 [00:29:24]MH_SAM_APDU [00:29:24]CAPDU: 80 17 00 00 [00:29:24]Write to MH i2c: E2 08 00 5E DB 80 17 00 00 00 00 00 00 B9 [00:29:24]Write i2c OK [00:29:24]MH_I2C_Read... [00:29:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:25]Read from MH i2c: E2 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 FD 00 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 FD 00 5E DB 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 31 [00:29:25]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:25]wFMCommunicate OK [00:29:25]wFMCommunicate request_size=4 [00:29:25]MH_SAM_APDU [00:29:25]CAPDU: 80 17 00 00 [00:29:25]Write to MH i2c: E2 08 00 5F DB 80 17 00 00 00 00 00 00 BA [00:29:25]Write i2c OK [00:29:25]MH_I2C_Read... [00:29:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:25]Read from MH i2c: E2 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 CE 00 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 CE 00 5F DB 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9F [00:29:25]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:25]wFMCommunicate OK [00:29:25]SAM_PROTO_GetShiftData done [00:29:25]requested_item shift.sale.total_cash is exist - process it [00:29:25]requested_item shift.sale_refund.total is exist - process it [00:29:25]requested_item shift.sale_refund.total_cash is exist - process it [00:29:25]requested_item shift.buy.total is exist - process it [00:29:25]requested_item shift.buy.total_cash is exist - process it [00:29:25]produce_requested_data done [00:29:25]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:25]process_action_free get_value [00:29:25]json_value_free [00:29:25]json_value_free done [00:29:25]process_json_proto returns [00:29:25]Send response to host [00:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:25]free response buf [00:29:25]execute_script done [00:29:25]execute_script returns [00:29:25]free content buf [00:29:25]Sock 9.Close socket [00:29:25]Sock 9.Thread stoped [00:29:25]accept exits with 8 [00:29:25]New connection [00:29:25]New thread 3066817892 created [00:29:25]Thread 3066961252 joined [00:29:25]Waiting for new connection... [00:29:25] Sock 8.Parse request [00:29:25]Sock 8.Check first char [00:29:25]Sock 8.First char is OK [00:29:25]request: POST /json_proto HTTP/1.0 [00:29:25]Method: POST [00:29:25]URL: /json_proto [00:29:25]Method is POST - this is cgi request [00:29:25]url: /json_proto [00:29:25]query_string will be loaded in cgi processing [00:29:25]execute_cgi json_proto POST (null) [00:29:25]execute_cgi path=json_proto method=POST [00:29:25]POST find Content-Length [00:29:25]Host: 172.17.63.131:8080 [00:29:25]Content-Length: 331 [00:29:25]Content-Type: application/json [00:29:25] [00:29:25]POST finish read [00:29:25]Found Content-Length = 331 [00:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:25]execute_script... [00:29: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" ] } } [00:29:25]POST & json_proto [00:29:25]process_json_proto [00:29:25]json parsed OK: [00:29:25]protocol is kg_v1.0 [00:29:25]action value=get_value [00:29:25]process_action get_value [00:29:25]cmd_get_value [00:29:25]process_action get_value done [00:29:25]requested_data is exist [00:29:25]produce_requested_data [00:29:25]requested_item fm.sale.total is exist - process it [00:29:25]SAM_PROTO_GetFMData [00:29:25]wFMCommunicate request_size=4 [00:29:25]MH_SAM_APDU [00:29:25]CAPDU: 80 13 03 00 [00:29:25]Write to MH i2c: E2 08 00 60 DB 80 13 03 00 00 00 00 00 BA [00:29:25]Write i2c OK [00:29:25]MH_I2C_Read... [00:29:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:25]Read from MH i2c: E2 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 FD 00 [00:29:25]MH_I2C_Read... [00:29:25]Read from MH i2c: E2 FD 00 60 DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 64 [00:29:25]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:25]wFMCommunicate OK [00:29:25]wFMCommunicate request_size=4 [00:29:25]MH_SAM_APDU [00:29:25]CAPDU: 80 17 00 00 [00:29:25]Write to MH i2c: E2 08 00 61 DB 80 17 00 00 00 00 00 00 BC [00:29:25]Write i2c OK [00:29:25]MH_I2C_Read... [00:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:26]Read from MH i2c: E2 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 61 DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 CD [00:29:26]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:26]wFMCommunicate OK [00:29:26]wFMCommunicate request_size=4 [00:29:26]MH_SAM_APDU [00:29:26]CAPDU: 80 17 00 00 [00:29:26]Write to MH i2c: E2 08 00 62 DB 80 17 00 00 00 00 00 00 BD [00:29:26]Write i2c OK [00:29:26]MH_I2C_Read... [00:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:26]Read from MH i2c: E2 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 62 DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 5D [00:29:26]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:26]wFMCommunicate OK [00:29:26]wFMCommunicate request_size=4 [00:29:26]MH_SAM_APDU [00:29:26]CAPDU: 80 17 00 00 [00:29:26]Write to MH i2c: E2 08 00 63 DB 80 17 00 00 00 00 00 00 BE [00:29:26]Write i2c OK [00:29:26]MH_I2C_Read... [00:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:26]Read from MH i2c: E2 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 [00:29:26]MH_I2C_Read... [00:29:26]Read from MH i2c: E2 FD 00 63 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 43 [00:29:27]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:27]wFMCommunicate OK [00:29:27]wFMCommunicate request_size=4 [00:29:27]MH_SAM_APDU [00:29:27]CAPDU: 80 17 00 00 [00:29:27]Write to MH i2c: E2 08 00 64 DB 80 17 00 00 00 00 00 00 BF [00:29:27]Write i2c OK [00:29:27]MH_I2C_Read... [00:29:27]OFD Sender: No OFD packet to send [00:29:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:27]Read from MH i2c: E2 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: E2 DE 00 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: E2 DE 00 64 DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [00:29:27]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:27]wFMCommunicate OK [00:29:27]SAM_PROTO_GetFMData done [00:29:27]requested_item fm.sale_refund.total is exist - process it [00:29:27]requested_item fm.buy.total is exist - process it [00:29:27]requested_item shift.sale.total is exist - process it [00:29:27]SAM_PROTO_GetShiftData [00:29:27]wFMCommunicate request_size=4 [00:29:27]MH_SAM_APDU [00:29:27]CAPDU: 80 13 02 00 [00:29:27]Write to MH i2c: E2 08 00 65 DB 80 13 02 00 00 00 00 00 BE [00:29:27]Write i2c OK [00:29:27]MH_I2C_Read... [00:29:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:27]Read from MH i2c: E2 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: E2 FD 00 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: E2 FD 00 65 DB 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3A [00:29:28]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:28]wFMCommunicate OK [00:29:28]wFMCommunicate request_size=4 [00:29:28]MH_SAM_APDU [00:29:28]CAPDU: 80 17 00 00 [00:29:28]Write to MH i2c: E2 08 00 66 DB 80 17 00 00 00 00 00 00 C1 [00:29:28]Write i2c OK [00:29:28]MH_I2C_Read... [00:29:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:28]Read from MH i2c: E2 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 FD 00 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 FD 00 66 DB 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 DA [00:29:28]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:28]wFMCommunicate OK [00:29:28]wFMCommunicate request_size=4 [00:29:28]MH_SAM_APDU [00:29:28]CAPDU: 80 17 00 00 [00:29:28]Write to MH i2c: E2 08 00 67 DB 80 17 00 00 00 00 00 00 C2 [00:29:28]Write i2c OK [00:29:28]MH_I2C_Read... [00:29:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:28]Read from MH i2c: E2 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 FD 00 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 FD 00 67 DB 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7B [00:29:28]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:29]wFMCommunicate OK [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 17 00 00 [00:29:29]Write to MH i2c: E2 08 00 68 DB 80 17 00 00 00 00 00 00 C3 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 FD 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 FD 00 68 DB 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3B [00:29:29]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:29]wFMCommunicate OK [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 17 00 00 [00:29:29]Write to MH i2c: E2 08 00 69 DB 80 17 00 00 00 00 00 00 C4 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 CE 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 CE 00 69 DB 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A9 [00:29:29]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:29]wFMCommunicate OK [00:29:29]SAM_PROTO_GetShiftData done [00:29:29]requested_item shift.sale.total_cash is exist - process it [00:29:29]requested_item shift.sale_refund.total is exist - process it [00:29:29]requested_item shift.sale_refund.total_cash is exist - process it [00:29:29]requested_item shift.buy.total is exist - process it [00:29:29]requested_item shift.buy.total_cash is exist - process it [00:29:29]produce_requested_data done [00:29:29]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:29]process_action_free get_value [00:29:29]json_value_free [00:29:29]json_value_free done [00:29:29]process_json_proto returns [00:29:29]Send response to host [00:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:29]free response buf [00:29:29]execute_script done [00:29:29]execute_script returns [00:29:29]free content buf [00:29:29]Sock 8.Close socket [00:29:29]Sock 8.Thread stoped [00:29:29]accept exits with 9 [00:29:29]New connection [00:29:29]New thread 3066961252 created [00:29:29]Thread 3066817892 joined [00:29:29]Waiting for new connection... [00:29:29] Sock 9.Parse request [00:29:29]Sock 9.Check first char [00:29:29]Sock 9.First char is OK [00:29:29]request: POST /json_proto HTTP/1.0 [00:29:29]Method: POST [00:29:29]URL: /json_proto [00:29:29]Method is POST - this is cgi request [00:29:29]url: /json_proto [00:29:29]query_string will be loaded in cgi processing [00:29:29]execute_cgi json_proto POST (null) [00:29:29]execute_cgi path=json_proto method=POST [00:29:29]POST find Content-Length [00:29:29]Host: 172.17.63.131:8080 [00:29:29]Content-Length: 257 [00:29:29]Content-Type: application/json [00:29:29] [00:29:29]POST finish read [00:29:29]Found Content-Length = 257 [00:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:29]execute_script... [00:29:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:29]POST & json_proto [00:29:29]process_json_proto [00:29:29]json parsed OK: [00:29:29]protocol is kg_v1.0 [00:29:29]action value=x_report [00:29:29]process_action x_report [00:29:29]cmd_x_report [00:29:29]MH_GetDate [00:29:29]Write to MH i2c: F0 00 00 6A DB 34 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: F0 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: F0 09 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: F0 09 00 6A DB 00 F5 37 1C 67 22 05 6E 64 E5 [00:29:29]GetLastDocTimeStamp 1729901494 [00:29:29]current date 1729902581 [00:29:29]FM_GetShiftState [00:29:29]SAM_PROTO_GetShiftState [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 13 01 00 [00:29:29]Write to MH i2c: E2 08 00 6B DB 80 13 01 00 00 00 00 00 C3 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 0E 00 6B DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 86 [00:29:30]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetShiftState done [00:29:30]FM_GetShiftState done [00:29:30]KKMCreateXReportDocument [00:29:30]Load OK [00:29:30]Malloc new data [00:29:30]MH_GetDate [00:29:30]Write to MH i2c: F0 00 00 6C DB 36 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: F0 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: F0 09 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: F0 09 00 6C DB 00 F5 37 1C 67 22 05 6E 64 E7 [00:29:30]Malloc new data [00:29:30]Malloc new data [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 11 00 00 [00:29:30]Write to MH i2c: E2 08 00 6D DB 80 11 00 00 00 00 00 00 C2 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 17 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 17 00 6D DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [00:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetFieldsCounters [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 00 00 [00:29:30]Write to MH i2c: E2 08 00 6E DB 80 13 00 00 00 00 00 00 C5 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 62 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 62 00 6E DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [00:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:30]wFMCommunicate OK [00:29:30]SAM_PROTO_GetFieldsCounters done [00:29:30]Malloc new data [00:29:30]Malloc new data [00:29:30]Malloc new data [00:29:30]KKMCreateXReportDocument OK [00:29:30]KKMSetXReportData OK [00:29:30]KKMPrepareXReportFMData [00:29:30]SAM_PROTO_GetShiftData [00:29:30]wFMCommunicate request_size=4 [00:29:30]MH_SAM_APDU [00:29:30]CAPDU: 80 13 02 00 [00:29:30]Write to MH i2c: E2 08 00 6F DB 80 13 02 00 00 00 00 00 C8 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:30]Read from MH i2c: E2 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 FD 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: E2 FD 00 6F DB 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 44 [00:29:30]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 70 DB 80 17 00 00 00 00 00 00 CB [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 70 DB 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 E4 [00:29:31]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 71 DB 80 17 00 00 00 00 00 00 CC [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 FD 00 71 DB 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 85 [00:29:31]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:31]wFMCommunicate OK [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 17 00 00 [00:29:31]Write to MH i2c: E2 08 00 72 DB 80 17 00 00 00 00 00 00 CD [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 FD 00 72 DB 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 45 [00:29:32]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 OFD Sender: No OFD packet to send [00:29:32]00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:32]wFMCommunicate OK [00:29:32]wFMCommunicate request_size=4 [00:29:32]MH_SAM_APDU [00:29:32]CAPDU: 80 17 00 00 [00:29:32]Write to MH i2c: E2 08 00 73 DB 80 17 00 00 00 00 00 00 CE [00:29:32]Write i2c OK [00:29:32]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 CE 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 CE 00 73 DB 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B3 [00:29:32]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:32]wFMCommunicate OK [00:29:32]SAM_PROTO_GetShiftData done [00:29:32]1194 (1197) - счетчики итогов смены [00:29:32] 1134 (4) - 374 - количество чеков со всеми признаками расчетов [00:29:32] 1129 (158) - счетчики операций «приход» [00:29:32] 1135 (4) - 374 - количество чеков по признаку расчетов [00:29:32] 1201 (4) - 292767.93 - общая итоговая сумма в чеках [00:29:32] 1136 (4) - 274285.00 - итоговая сумма в чеках наличными [00:29:32] 1138 (3) - 18482.93 - итоговая сумма в чеках безналичными [00:29:32] 1024 (123) - суммы налогов [00:29:32] 1006 (9) - суммы НДС [00:29:32] 1010 (1) - 0% - код ставки НДС [00:29:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:32] 1006 (12) - суммы НДС [00:29:32] 1010 (1) - 12% - код ставки НДС [00:29:32] 1011 (3) - 31101.00 - сумма НДС по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 0% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:32] 1007 (12) - суммы НСП [00:29:32] 1014 (1) - 1% - код ставки НСП [00:29:32] 1015 (3) - 2591.74 - сумма НСП по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 2% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 3% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 5% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 0,50% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:32] 1007 (9) - суммы НСП [00:29:32] 1014 (1) - 1,50% - код ставки НСП [00:29:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1130 (141) - счетчики операций «возврат прихода» [00:29:33] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:33] 1024 (117) - суммы налогов [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 0% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 12% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 2% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 3% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 5% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1131 (141) - счетчики операций «расход» [00:29:33] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:33] 1024 (117) - суммы налогов [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 0% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 12% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 2% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 3% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 5% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1132 (141) - счетчики операций «возврат расхода» [00:29:33] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:33] 1024 (117) - суммы налогов [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 0% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1006 (9) - суммы НДС [00:29:33] 1010 (1) - 12% - код ставки НДС [00:29:33] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 2% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 3% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 5% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 0,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1007 (9) - суммы НСП [00:29:33] 1014 (1) - 1,50% - код ставки НСП [00:29:33] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:33] 1133 (588) - - счетчики коррекции - не используются [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1194 (04AA) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1134 (046E) [00:29:33]Malloc new data [00:29:33]Processing tag 1129 (0469) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1135 (046F) [00:29:33]Malloc new data [00:29:33]Processing tag 1201 (04B1) [00:29:33]Malloc new data [00:29:33]Processing tag 1136 (0470) [00:29:33]Malloc new data [00:29:33]Processing tag 1138 (0472) [00:29:33]Malloc new data [00:29:33]Processing tag 1024 (0400) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1130 (046A) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1135 (046F) [00:29:33]Malloc new data [00:29:33]Processing tag 1201 (04B1) [00:29:33]Malloc new data [00:29:33]Processing tag 1136 (0470) [00:29:33]Malloc new data [00:29:33]Processing tag 1138 (0472) [00:29:33]Malloc new data [00:29:33]Processing tag 1024 (0400) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1131 (046B) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1135 (046F) [00:29:33]Malloc new data [00:29:33]Processing tag 1201 (04B1) [00:29:33]Malloc new data [00:29:33]Processing tag 1136 (0470) [00:29:33]Malloc new data [00:29:33]Processing tag 1138 (0472) [00:29:33]Malloc new data [00:29:33]Processing tag 1024 (0400) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:33]Malloc new data [00:29:33]Processing tag 1015 (03F7) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1132 (046C) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1135 (046F) [00:29:33]Malloc new data [00:29:33]Processing tag 1201 (04B1) [00:29:33]Malloc new data [00:29:33]Processing tag 1136 (0470) [00:29:33]Malloc new data [00:29:33]Processing tag 1138 (0472) [00:29:33]Malloc new data [00:29:33]Processing tag 1024 (0400) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1006 (03EE) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1010 (03F2) [00:29:33]Malloc new data [00:29:33]Processing tag 1011 (03F3) [00:29:33]Malloc new data [00:29:33]SetTLVBufToDocument err=0 [00:29:33]Processing tag 1007 (03EF) [00:29:33]Load OK [00:29:33]SetTLVBufToDocument [00:29:33]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1007 (03EF) [00:29:34]Load OK [00:29:34]SetTLVBufToDocument [00:29:34]Processing tag 1014 (03F6) [00:29:34]Malloc new data [00:29:34]Processing tag 1015 (03F7) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]SetTLVBufToDocument err=0 [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Processing tag 1133 (046D) [00:29:34]Malloc new data [00:29:34]SetTLVBufToDocument err=0 [00:29:34]SetTLVBufToDocument err=0 [00:29:34]Malloc new data [00:29:34]SAM_PROTO_GetFMData [00:29:34]wFMCommunicate request_size=4 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 13 03 00 [00:29:34]Write to MH i2c: E2 08 00 74 DB 80 13 03 00 00 00 00 00 CE [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:34]Read from MH i2c: E2 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 FD 00 [00:29:34]MH_I2C_Read... [00:29:34]Read from MH i2c: E2 FD 00 74 DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 78 [00:29:34]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:34]wFMCommunicate OK [00:29:34]wFMCommunicate request_size=4 [00:29:34]MH_SAM_APDU [00:29:34]CAPDU: 80 17 00 00 [00:29:34]Write to MH i2c: E2 08 00 75 DB 80 17 00 00 00 00 00 00 D0 [00:29:34]Write i2c OK [00:29:34]MH_I2C_Read... [00:29:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:35]Read from MH i2c: E2 [00:29:35]MH_I2C_Read... [00:29:35]Read from MH i2c: E2 FD 00 [00:29:35]MH_I2C_Read... [00:29:35]Read from MH i2c: E2 FD 00 75 DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 E1 [00:29:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:35]wFMCommunicate OK [00:29:35]wFMCommunicate request_size=4 [00:29:35]MH_SAM_APDU [00:29:35]CAPDU: 80 17 00 00 [00:29:35]Write to MH i2c: E2 08 00 76 DB 80 17 00 00 00 00 00 00 D1 [00:29:35]Write i2c OK [00:29:35]MH_I2C_Read... [00:29:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:35]Read from MH i2c: E2 [00:29:35]MH_I2C_Read... [00:29:35]Read from MH i2c: E2 FD 00 [00:29:35]MH_I2C_Read... [00:29:35]Read from MH i2c: E2 FD 00 76 DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 71 [00:29:35]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:36]wFMCommunicate OK [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 17 00 00 [00:29:36]Write to MH i2c: E2 08 00 77 DB 80 17 00 00 00 00 00 00 D2 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 FD 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 FD 00 77 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 57 [00:29:36]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:36]wFMCommunicate OK [00:29:36]wFMCommunicate request_size=4 [00:29:36]MH_SAM_APDU [00:29:36]CAPDU: 80 17 00 00 [00:29:36]Write to MH i2c: E2 08 00 78 DB 80 17 00 00 00 00 00 00 D3 [00:29:36]Write i2c OK [00:29:36]MH_I2C_Read... [00:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:36]Read from MH i2c: E2 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 DE 00 [00:29:36]MH_I2C_Read... [00:29:36]Read from MH i2c: E2 DE 00 78 DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B2 [00:29:36]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:37]wFMCommunicate OK [00:29:37]SAM_PROTO_GetFMData done [00:29:37]FM_GetFMData:85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:29:37]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:37]oper:6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:37]total:CE 0E 48 B3 03 [00:29:37]Malloc new data [00:29:37]oper:6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:38]total:04 E9 2B [00:29:38]Malloc new data [00:29:38]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:38]total: [00:29:38]Malloc new data [00:29:38]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:38]total: [00:29:38]Malloc new data [00:29:38]KKMPrepareXReportFMData err=0 [00:29:38]Х отчет ИНН: 02508201610067 Кассир: Курбанов М. 26.10.2024 00:29 Смена: 522 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Всего чеков: 374 ИТОГИ ПРИХОД Чеков: 374 Общий итог: 292767.93 Итого наличными: 274285.00 Итого безнал.: 18482.93 НДС 0% : 0.00 НДС 12% : 31101.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2591.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 274285.00 НС Приход: 158927459.34 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871754 [00:29:38]StoreToDocumentArchive [00:29:38]MH_GetDate [00:29:38]Write to MH i2c: F0 00 00 79 DB 43 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: F0 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: F0 09 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: F0 09 00 79 DB 00 FD 37 1C 67 22 05 6E 64 FC [00:29:38]shift 522 fd 1729902589 [00:29:38]Create dir for shift 0522 [00:29:38]save to /storage/0522/doc_1729902589 [00:29:38]save last doc name /storage/0522/doc_1729902589 to /storage/kkm_last_doc_name [00:29:38]save OK [00:29:38]Clear old archive folders... [00:29:38]NVStorageSaveData kkm_last_timestamp [00:29:38]File name is /storage/kkm_last_timestamp [00:29:38]Write 4 bytes [00:29:38]NVStorageSaveData done [00:29:38]ExternCall_PrintAddStr [00:29:38]wPrintStart [00:29:38]Write to MH i2c: 01 00 00 7A DB 55 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: 01 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: 01 07 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: 01 07 00 7A DB 00 00 00 00 00 FF 0F 6A [00:29:38]RasterBufferAndPrint [00:29:38]line Х отчет [00:29:38]line ИНН: 02508201610067 [00:29:38]line Кассир: Курбанов М. [00:29:38]line 26.10.2024 00:29 [00:29:38]line Смена: 522 [00:29:38]line РНМ: 0000000000091776 [00:29:38]line ЗНМ: 0300000110 [00:29:38]line СНО: Общий режим [00:29:38]line Всего чеков: 374 [00:29:38]line ИТОГИ ПРИХОД [00:29:38]line Чеков: 374 [00:29:38]line Общий итог: 292767.93 [00:29:38]line Итого наличными: 274285.00 [00:29:38]line Итого безнал.: 18482.93 [00:29:38]line НДС 0% : 0.00 [00:29:38]line НДС 12% : 31101.00 [00:29:38]line НСП 0% : 0.00 [00:29:38]line НСП 1,50% : 0.00 [00:29:38]line НСП 0,50% : 0.00 [00:29:38]line НСП 5% : 0.00 [00:29:38]line НСП 3% : 0.00 [00:29:38]line НСП 2% : 0.00 [00:29:38]line НСП 1% : 2591.74 [00:29:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:29:38]line Чеков: 0 [00:29:38]line Общий итог: 0.00 [00:29:38]line Итого наличными: 0.00 [00:29:38]line Итого безнал.: 0.00 [00:29:38]line НДС 0% : 0.00 [00:29:38]line НДС 12% : 0.00 [00:29:38]line НСП 0% : 0.00 [00:29:38]line НСП 1,50% : 0.00 [00:29:38]line НСП 0,50% : 0.00 [00:29:38]line НСП 5% : 0.00 [00:29:38]line НСП 3% : 0.00 [00:29:38]line НСП 2% : 0.00 [00:29:38]line НСП 1% : 0.00 [00:29:38]line ИТОГИ РАСХОД [00:29:38]line Чеков: 0 [00:29:38]line Общий итог: 0.00 [00:29:38]line Итого наличными: 0.00 [00:29:38]line Итого безнал.: 0.00 [00:29:38]line НДС 0% : 0.00 [00:29:38]line НДС 12% : 0.00 [00:29:38]line НСП 0% : 0.00 [00:29:38]line НСП 1,50% : 0.00 [00:29:38]line НСП 0,50% : 0.00 [00:29:38]line НСП 5% : 0.00 [00:29:38]line НСП 3% : 0.00 [00:29:38]line НСП 2% : 0.00 [00:29:38]line НСП 1% : 0.00 [00:29:38]line ИТОГИ ВОЗВРАТ РАСХОДА [00:29:38]line Чеков: 0 [00:29:38]line Общий итог: 0.00 [00:29:38]line Итого наличными: 0.00 [00:29:38]line Итого безнал.: 0.00 [00:29:38]line НДС 0% : 0.00 [00:29:38]line НДС 12% : 0.00 [00:29:38]line НСП 0% : 0.00 [00:29:38]line НСП 1,50% : 0.00 [00:29:38]line НСП 0,50% : 0.00 [00:29:38]line НСП 5% : 0.00 [00:29:38]line НСП 3% : 0.00 [00:29:38]line НСП 2% : 0.00 [00:29:38]line НСП 1% : 0.00 [00:29:38]line Сумма внесений: 0.00 [00:29:38]line Сумма выплат: 0.00 [00:29:38]line Нал. в кассе: 274285.00 [00:29:38]line НС Приход: 158927459.34 [00:29:38]line НС Возвр.Прихода: 28777.00 [00:29:38]line НС Расход: 0.00 [00:29:38]line НС Возвр.Расхода: 0.00 [00:29:38]line ФМ: 0000000000871754 [00:29:38]written 0, free lines is 4095 [00:29:39]Write to MH i2c: 01 00 00 C5 DB A0 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 07 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 07 00 C5 DB 00 00 00 00 00 92 0A 43 [00:29:39]RasterBufferAndPrint [00:29:39]line [00:29:39]line [00:29:39]line [00:29:39]line [00:29:39]line [00:29:39]written 0, free lines is 2737 [00:29:39]MH_Cut [00:29:39]Write to MH i2c: D1 01 00 CC DB 01 79 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: D1 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: D1 01 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: D1 01 00 CC DB 00 78 [00:29:39]Write to MH i2c: 01 00 00 CD DB A8 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:40]*** Cut start [00:29:40]*** Partial cut [00:29:40]*** CUTSNS_PIN = 1 [00:29:40]*** CUTSNS_PIN = 0 [00:29:40]*** Brake cut motor [00:29:40]Read from MH i2c: 01 [00:29:40]MH_I2C_Read... [00:29:40]*** Stop cut motor [00:29:40]*** Cut end [00:29:40]Read from MH i2c: 01 07 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: 01 07 00 CD DB 00 00 00 00 00 FF 0F BD [00:29:40]process_action x_report done [00:29:40]requested_data is exist [00:29:40]produce_requested_data [00:29:40]requested_item fd.num is exist - process it [00:29:40]SAM_PROTO_GetFieldsCounters [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 13 00 00 [00:29:40]Write to MH i2c: E2 08 00 CE DB 80 13 00 00 00 00 00 00 25 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 CE DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [00:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetFieldsCounters done [00:29:41]requested_item shift.num is exist - process it [00:29:41]requested_item shift.opened is exist - process it [00:29:41]req_shift_opened [00:29:41]FM_GetShiftState [00:29:41]SAM_PROTO_GetShiftState [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 01 00 [00:29:41]Write to MH i2c: E2 08 00 CF DB 80 13 01 00 00 00 00 00 27 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 CF DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 EA [00:29:41]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetShiftState done [00:29:41]FM_GetShiftState done [00:29:41]req_shift_opened done [00:29:41]requested_item shift.open_date is exist - process it [00:29:41]req_shift_open_date [00:29:41]req_shift_open_date done [00:29:41]produce_requested_data done [00:29:41]produce_requested_data return {"fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [00:29:41]process_action_free x_report [00:29:41]json_value_free [00:29:41]json_value_free done [00:29:41]process_json_proto returns [00:29:41]Send response to host [00:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [00:29:41]free response buf [00:29:41]execute_script done [00:29:41]execute_script returns [00:29:41]free content buf [00:29:41]Sock 9.Close socket [00:29:41]Sock 9.Thread stoped [00:29:42]OFD Sender: No OFD packet to send [00:29:44]accept exits with 8 [00:29:44]New connection [00:29:44]New thread 3066817892 created [00:29:44]Thread 3066961252 joined [00:29:44]Waiting for new connection... [00:29:44] Sock 8.Parse request [00:29:44]Sock 8.Check first char [00:29:44]Sock 8.First char is OK [00:29:44]request: POST /json_proto HTTP/1.0 [00:29:44]Method: POST [00:29:44]URL: /json_proto [00:29:44]Method is POST - this is cgi request [00:29:44]url: /json_proto [00:29:44]query_string will be loaded in cgi processing [00:29:44]execute_cgi json_proto POST (null) [00:29:44]execute_cgi path=json_proto method=POST [00:29:44]POST find Content-Length [00:29:44]Host: 172.17.63.131:8080 [00:29:44]Content-Length: 215 [00:29:44]Content-Type: application/json [00:29:44] [00:29:44]POST finish read [00:29:44]Found Content-Length = 215 [00:29:44]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:29:44]execute_script... [00:29:44]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:29:44]POST & json_proto [00:29:44]process_json_proto [00:29:44]json parsed OK: [00:29:44]protocol is kg_v1.0 [00:29:44]action value=get_value [00:29:44]process_action get_value [00:29:44]cmd_get_value [00:29:44]process_action get_value done [00:29:44]requested_data is exist [00:29:44]produce_requested_data [00:29:44]requested_item kkm.sn is exist - process it [00:29:44]requested_item kkm.ver is exist - process it [00:29:44]requested_item fm.sn is exist - process it [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 11 00 00 [00:29:44]Write to MH i2c: E2 08 00 D0 DB 80 11 00 00 00 00 00 00 25 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 17 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 17 00 D0 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [00:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:29:44]wFMCommunicate OK [00:29:44]requested_item fd.num is exist - process it [00:29:44]SAM_PROTO_GetFieldsCounters [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 13 00 00 [00:29:44]Write to MH i2c: E2 08 00 D1 DB 80 13 00 00 00 00 00 00 28 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 62 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 62 00 D1 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [00:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:44]wFMCommunicate OK [00:29:44]SAM_PROTO_GetFieldsCounters done [00:29:44]requested_item shift.num is exist - process it [00:29:44]requested_item shift.opened is exist - process it [00:29:44]req_shift_opened [00:29:44]FM_GetShiftState [00:29:44]SAM_PROTO_GetShiftState [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 13 01 00 [00:29:44]Write to MH i2c: E2 08 00 D2 DB 80 13 01 00 00 00 00 00 2A [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 0E 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 0E 00 D2 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 ED [00:29:44]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:29:44]wFMCommunicate OK [00:29:44]SAM_PROTO_GetShiftState done [00:29:44]FM_GetShiftState done [00:29:44]req_shift_opened done [00:29:44]requested_item shift.open_date is exist - process it [00:29:44]req_shift_open_date [00:29:44]req_shift_open_date done [00:29:44]produce_requested_data done [00:29:44]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399} [00:29:44]process_action_free get_value [00:29:44]json_value_free [00:29:44]json_value_free done [00:29:44]process_json_proto returns [00:29:44]Send response to host [00:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191635,"shift.num":540,"shift.opened":1,"shift.open_date":1729816399}}} [00:29:44]free response buf [00:29:44]execute_script done [00:29:44]execute_script returns [00:29:44]free content buf [00:29:44]Sock 8.Close socket [00:29:44]Sock 8.Thread stoped [00:29:44]accept exits with 9 [00:29:44]New connection [00:29:44]New thread 3066961252 created [00:29:44]Thread 3066817892 joined [00:29:44]Waiting for new connection... [00:29:44] Sock 9.Parse request [00:29:44]Sock 9.Check first char [00:29:44]Sock 9.First char is OK [00:29:44]request: POST /json_proto HTTP/1.0 [00:29:44]Method: POST [00:29:44]URL: /json_proto [00:29:44]Method is POST - this is cgi request [00:29:44]url: /json_proto [00:29:44]query_string will be loaded in cgi processing [00:29:44]execute_cgi json_proto POST (null) [00:29:44]execute_cgi path=json_proto method=POST [00:29:44]POST find Content-Length [00:29:44]Host: 172.17.63.131:8080 [00:29:44]Content-Length: 331 [00:29:44]Content-Type: application/json [00:29:44] [00:29:44]POST finish read [00:29:44]Found Content-Length = 331 [00:29:44]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:29:44]execute_script... [00:29:44]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:29:44]POST & json_proto [00:29:44]process_json_proto [00:29:44]json parsed OK: [00:29:44]protocol is kg_v1.0 [00:29:44]action value=get_value [00:29:44]process_action get_value [00:29:44]cmd_get_value [00:29:44]process_action get_value done [00:29:44]requested_data is exist [00:29:44]produce_requested_data [00:29:44]requested_item fm.sale.total is exist - process it [00:29:44]SAM_PROTO_GetFMData [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 13 03 00 [00:29:44]Write to MH i2c: E2 08 00 D3 DB 80 13 03 00 00 00 00 00 2D [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 D3 DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 D7 [00:29:45]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=4 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 17 00 00 [00:29:45]Write to MH i2c: E2 08 00 D4 DB 80 17 00 00 00 00 00 00 2F [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 D4 DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 40 [00:29:46]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:46]wFMCommunicate OK [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 17 00 00 [00:29:46]Write to MH i2c: E2 08 00 D5 DB 80 17 00 00 00 00 00 00 30 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 FD 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 FD 00 D5 DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 D0 [00:29:46]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 D6 DB 80 17 00 00 00 00 00 00 31 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 D6 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 B6 [00:29:47]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 D7 DB 80 17 00 00 00 00 00 00 32 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]OFD Sender: No OFD packet to send [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 DE 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 DE 00 D7 DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:47]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:48]wFMCommunicate OK [00:29:48]SAM_PROTO_GetFMData done [00:29:48]requested_item fm.sale_refund.total is exist - process it [00:29:48]requested_item fm.buy.total is exist - process it [00:29:48]requested_item shift.sale.total is exist - process it [00:29:48]SAM_PROTO_GetShiftData [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 13 02 00 [00:29:48]Write to MH i2c: E2 08 00 D8 DB 80 13 02 00 00 00 00 00 31 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 D8 DB 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AD [00:29:48]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:48]wFMCommunicate OK [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 17 00 00 [00:29:48]Write to MH i2c: E2 08 00 D9 DB 80 17 00 00 00 00 00 00 34 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 D9 DB 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 4D [00:29:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:49]wFMCommunicate OK [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 17 00 00 [00:29:49]Write to MH i2c: E2 08 00 DA DB 80 17 00 00 00 00 00 00 35 [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 DA DB 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 EE [00:29:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:50]wFMCommunicate OK [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 17 00 00 [00:29:50]Write to MH i2c: E2 08 00 DB DB 80 17 00 00 00 00 00 00 36 [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 DB DB 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AE [00:29:50]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:50]wFMCommunicate OK [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 17 00 00 [00:29:50]Write to MH i2c: E2 08 00 DC DB 80 17 00 00 00 00 00 00 37 [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 CE 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 CE 00 DC DB 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1C [00:29:51]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:51]wFMCommunicate OK [00:29:51]SAM_PROTO_GetShiftData done [00:29:51]requested_item shift.sale.total_cash is exist - process it [00:29:51]requested_item shift.sale_refund.total is exist - process it [00:29:51]requested_item shift.sale_refund.total_cash is exist - process it [00:29:51]requested_item shift.buy.total is exist - process it [00:29:51]requested_item shift.buy.total_cash is exist - process it [00:29:51]produce_requested_data done [00:29:51]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:51]process_action_free get_value [00:29:51]json_value_free [00:29:51]json_value_free done [00:29:51]process_json_proto returns [00:29:51]Send response to host [00:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:51]free response buf [00:29:51]execute_script done [00:29:51]execute_script returns [00:29:51]free content buf [00:29:51]Sock 9.Close socket [00:29:51]Sock 9.Thread stoped [00:29:51]accept exits with 8 [00:29:51]New connection [00:29:51]New thread 3066817892 created [00:29:51]Thread 3066961252 joined [00:29:51]Waiting for new connection... [00:29:51] Sock 8.Parse request [00:29:51]Sock 8.Check first char [00:29:51]Sock 8.First char is OK [00:29:51]request: POST /json_proto HTTP/1.0 [00:29:51]Method: POST [00:29:51]URL: /json_proto [00:29:51]Method is POST - this is cgi request [00:29:51]url: /json_proto [00:29:51]query_string will be loaded in cgi processing [00:29:51]execute_cgi json_proto POST (null) [00:29:51]execute_cgi path=json_proto method=POST [00:29:51]POST find Content-Length [00:29:51]Host: 172.17.63.131:8080 [00:29:51]Content-Length: 331 [00:29:51]Content-Type: application/json [00:29:51] [00:29:51]POST finish read [00:29:51]Found Content-Length = 331 [00:29:51]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:29:51]execute_script... [00:29:51]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:29:51]POST & json_proto [00:29:51]process_json_proto [00:29:51]json parsed OK: [00:29:51]protocol is kg_v1.0 [00:29:51]action value=get_value [00:29:51]process_action get_value [00:29:51]cmd_get_value [00:29:51]process_action get_value done [00:29:51]requested_data is exist [00:29:51]produce_requested_data [00:29:51]requested_item fm.sale.total is exist - process it [00:29:51]SAM_PROTO_GetFMData [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 13 03 00 [00:29:51]Write to MH i2c: E2 08 00 DD DB 80 13 03 00 00 00 00 00 37 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 DD DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 E1 [00:29:52]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:52]wFMCommunicate OK [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 17 00 00 [00:29:52]Write to MH i2c: E2 08 00 DE DB 80 17 00 00 00 00 00 00 39 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 DE DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:29:52]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 4A [00:29:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 DF DB 80 17 00 00 00 00 00 00 3A [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 DF DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 DA [00:29:53]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 E0 DB 80 17 00 00 00 00 00 00 3B [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 E0 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 C0 [00:29:54]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 E1 DB 80 17 00 00 00 00 00 00 3C [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 DE 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 DE 00 E1 DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [00:29:54]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetFMData done [00:29:54]requested_item fm.sale_refund.total is exist - process it [00:29:54]requested_item fm.buy.total is exist - process it [00:29:54]requested_item shift.sale.total is exist - process it [00:29:54]SAM_PROTO_GetShiftData [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 13 02 00 [00:29:54]Write to MH i2c: E2 08 00 E2 DB 80 13 02 00 00 00 00 00 3B [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 E2 DB 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B7 [00:29:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 17 00 00 [00:29:55]Write to MH i2c: E2 08 00 E3 DB 80 17 00 00 00 00 00 00 3E [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 E3 DB 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 57 [00:29:56]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:56]wFMCommunicate OK [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 17 00 00 [00:29:56]Write to MH i2c: E2 08 00 E4 DB 80 17 00 00 00 00 00 00 3F [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 E4 DB 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F8 [00:29:57]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:57]wFMCommunicate OK [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 17 00 00 [00:29:57]Write to MH i2c: E2 08 00 E5 DB 80 17 00 00 00 00 00 00 40 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 E5 DB 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B8 [00:29:57]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:58]wFMCommunicate OK [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 17 00 00 [00:29:58]Write to MH i2c: E2 08 00 E6 DB 80 17 00 00 00 00 00 00 41 [00:29:58]OFD Sender: No OFD packet to send [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 CE 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 CE 00 E6 DB 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 26 [00:29:58]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_GetShiftData done [00:29:58]requested_item shift.sale.total_cash is exist - process it [00:29:58]requested_item shift.sale_refund.total is exist - process it [00:29:58]requested_item shift.sale_refund.total_cash is exist - process it [00:29:58]requested_item shift.buy.total is exist - process it [00:29:58]requested_item shift.buy.total_cash is exist - process it [00:29:58]produce_requested_data done [00:29:58]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:58]process_action_free get_value [00:29:58]json_value_free [00:29:58]json_value_free done [00:29:58]process_json_proto returns [00:29:58]Send response to host [00:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:29:58]free response buf [00:29:58]execute_script done [00:29:58]execute_script returns [00:29:58]free content buf [00:29:58]Sock 8.Close socket [00:29:58]Sock 8.Thread stoped [00:29:58]accept exits with 9 [00:29:58]New connection [00:29:58]New thread 3066961252 created [00:29:58]Thread 3066817892 joined [00:29:58]Waiting for new connection... [00:29:58] Sock 9.Parse request [00:29:58]Sock 9.Check first char [00:29:58]Sock 9.First char is OK [00:29:58]request: POST /json_proto HTTP/1.0 [00:29:58]Method: POST [00:29:58]URL: /json_proto [00:29:58]Method is POST - this is cgi request [00:29:58]url: /json_proto [00:29:58]query_string will be loaded in cgi processing [00:29:58]execute_cgi json_proto POST (null) [00:29:58]execute_cgi path=json_proto method=POST [00:29:58]POST find Content-Length [00:29:58]Host: 172.17.63.131:8080 [00:29:58]Content-Length: 260 [00:29:58]Content-Type: application/json [00:29:58] [00:29:58]POST finish read [00:29:58]Found Content-Length = 260 [00:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:58]execute_script... [00:29:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:58]POST & json_proto [00:29:58]process_json_proto [00:29:58]json parsed OK: [00:29:58]protocol is kg_v1.0 [00:29:58]action value=close_shift [00:29:58]process_action close_shift [00:29:58]cmd_close_shift [00:29:58]MH_GetDate [00:29:58]Write to MH i2c: F0 00 00 E7 DB B1 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: F0 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: F0 09 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: F0 09 00 E7 DB 00 12 38 1C 67 22 05 6E 64 80 [00:29:58]GetLastDocTimeStamp 1729902581 [00:29:58]current date 1729902610 [00:29:58]FM_GetShiftState [00:29:58]SAM_PROTO_GetShiftState [00:29:58]wFMCommunicate request_size=4 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 13 01 00 [00:29:59]Write to MH i2c: E2 08 00 E8 DB 80 13 01 00 00 00 00 00 40 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 0E 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 0E 00 E8 DB 00 09 00 01 4F E7 1A 67 00 00 00 00 90 00 03 [00:29:59]RAPDU: 09 00 01 4F E7 1A 67 00 00 00 00 90 00 [00:29:59]wFMCommunicate OK [00:29:59]SAM_PROTO_GetShiftState done [00:29:59]FM_GetShiftState done [00:29:59]KKMCreateCloseShiftDocument [00:29:59]Load OK [00:29:59]Malloc new data [00:29:59]MH_GetDate [00:29:59]Write to MH i2c: F0 00 00 E9 DB B3 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: F0 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: F0 09 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: F0 09 00 E9 DB 00 12 38 1C 67 22 05 6E 64 82 [00:29:59]Malloc new data [00:29:59]Malloc new data [00:29:59]Malloc new data [00:29:59]Malloc new data [00:29:59]KKMCreateCloseShiftDocument OK [00:29:59]KKMSetCloseShiftData OK [00:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:29:59]tlvbuf is 018FFAF0 [00:29:59]KKMLoadAndSignCloseShiftData [00:29:59]SAM_PROTO_ProcessDocument [00:29:59]wFMCommunicate request_size=9 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 15 01 00 04 05 00 47 00 [00:29:59]Write to MH i2c: E2 0C 00 EA DB 80 15 01 00 04 00 05 00 47 00 00 00 98 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 EA DB 00 90 00 39 [00:29:59]RAPDU: 90 00 [00:29:59]wFMCommunicate OK [00:29:59]wFMCommunicate request_size=23 [00:29:59]MH_SAM_APDU [00:29:59]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:29:59]Write to MH i2c: E2 1A 00 EB DB 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 3B [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 EB DB 00 90 00 3A [00:29:59]RAPDU: 90 00 [00:29:59]wFMCommunicate OK [00:29:59]wFMCommunicate request_size=30 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 [00:29:59]Write to MH i2c: E2 21 00 EC DB 80 15 02 00 19 00 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 00 00 15 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 EC DB 00 90 00 3B [00:29:59]RAPDU: 90 00 [00:29:59]wFMCommunicate OK [00:29:59]wFMCommunicate request_size=13 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 15 02 00 08 F4 03 04 00 12 38 1C 67 [00:29:59]Write to MH i2c: E2 10 00 ED DB 80 15 02 00 08 00 F4 03 04 00 12 38 1C 67 00 00 20 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 ED DB 00 90 00 3C [00:29:59]RAPDU: 90 00 [00:29:59]wFMCommunicate OK [00:29:59]wFMCommunicate request_size=25 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:29:59]Write to MH i2c: E2 1C 00 EE DB 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 B0 [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 03 00 EE DB 00 90 00 3D [00:29:59]RAPDU: 90 00 [00:29:59]wFMCommunicate OK [00:29:59]wFMCommunicate request_size=4 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 15 03 00 [00:29:59]Write to MH i2c: E2 08 00 EF DB 80 15 03 00 00 00 00 00 4B [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 EF DB 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 EA [00:30:00]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:30:00]wFMCommunicate OK [00:30:00]SAM_PROTO_ProcessDocument answer len = 1268 [00:30:00]SAM_PROTO_ProcessDocument remain to read = 1020 [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 17 00 00 [00:30:00]Write to MH i2c: E2 08 00 F0 DB 80 17 00 00 00 00 00 00 4B [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 F0 DB 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 9F [00:30:01]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:30:01]wFMCommunicate OK [00:30:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:01]SAM_PROTO_ProcessDocument remain to read = 770 [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 F1 DB 80 17 00 00 00 00 00 00 4C [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 F1 DB 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 AE [00:30:02]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:02]SAM_PROTO_ProcessDocument remain to read = 520 [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 F2 DB 80 17 00 00 00 00 00 00 4D [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 F2 DB 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 D5 [00:30:02]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:02]SAM_PROTO_ProcessDocument remain to read = 270 [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 F3 DB 80 17 00 00 00 00 00 00 4E [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 F3 DB 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 18 [00:30:03]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF OFD Sender: No OFD packet to send [00:30:03]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:30:03]wFMCommunicate OK [00:30:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:03]SAM_PROTO_ProcessDocument remain to read = 20 [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 F4 DB 80 17 00 00 00 00 00 00 4F [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 17 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 17 00 F4 DB 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF F3 AA 0C 70 C1 90 00 69 [00:30:04]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF F3 AA 0C 70 C1 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:30:04]SAM_PROTO_ProcessDocument done [00:30:04]1209 (1) - 1.0 - номер версии ФФД [00:30:04]1041 (16) - 0000000000871754 - номер ФМ [00:30:04]1040 (4) - 191636 - номер ФД [00:30:04]1038 (4) - 540 - номер смены [00:30:04]1118 (4) - 374 - количество кассовых чеков за смену [00:30:04]1111 (4) - 376 - общее количество ФД за смену [00:30:04]1194 (1197) - счетчики итогов смены [00:30:04] 1134 (4) - 374 - количество чеков со всеми признаками расчетов [00:30:04] 1129 (158) - счетчики операций «приход» [00:30:04] 1135 (4) - 374 - количество чеков по признаку расчетов [00:30:04] 1201 (4) - 292767.93 - общая итоговая сумма в чеках [00:30:04] 1136 (4) - 274285.00 - итоговая сумма в чеках наличными [00:30:04] 1138 (3) - 18482.93 - итоговая сумма в чеках безналичными [00:30:04] 1024 (123) - суммы налогов [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 0% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1006 (12) - суммы НДС [00:30:04] 1010 (1) - 12% - код ставки НДС [00:30:04] 1011 (3) - 31101.00 - сумма НДС по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (12) - суммы НСП [00:30:04] 1014 (1) - 1% - код ставки НСП [00:30:04] 1015 (3) - 2591.74 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 2% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 3% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 5% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1130 (141) - счетчики операций «возврат прихода» [00:30:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:04] 1024 (117) - суммы налогов [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 0% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 12% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 2% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 3% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 5% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1131 (141) - счетчики операций «расход» [00:30:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:04] 1024 (117) - суммы налогов [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 0% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 12% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 2% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 3% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 5% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1132 (141) - счетчики операций «возврат расхода» [00:30:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:04] 1024 (117) - суммы налогов [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 0% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1006 (9) - суммы НДС [00:30:04] 1010 (1) - 12% - код ставки НДС [00:30:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 2% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 3% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 5% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 0,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1007 (9) - суммы НСП [00:30:04] 1014 (1) - 1,50% - код ставки НСП [00:30:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:04] 1133 (588) - - счетчики коррекции - не используются [00:30:04]1077 (6) - 281421995077825 - ФПД [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1209 (04B9) [00:30:04]Malloc new data [00:30:04]Processing tag 1041 (0411) [00:30:04]Processing tag 1040 (0410) [00:30:04]Malloc new data [00:30:04]Processing tag 1038 (040E) [00:30:04]Malloc new data [00:30:04]Processing tag 1118 (045E) [00:30:04]Malloc new data [00:30:04]Processing tag 1111 (0457) [00:30:04]Malloc new data [00:30:04]Processing tag 1194 (04AA) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1134 (046E) [00:30:04]Malloc new data [00:30:04]Processing tag 1129 (0469) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1135 (046F) [00:30:04]Malloc new data [00:30:04]Processing tag 1201 (04B1) [00:30:04]Malloc new data [00:30:04]Processing tag 1136 (0470) [00:30:04]Malloc new data [00:30:04]Processing tag 1138 (0472) [00:30:04]Malloc new data [00:30:04]Processing tag 1024 (0400) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]SetTLVBufToDocument err=0 [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1130 (046A) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1135 (046F) [00:30:04]Malloc new data [00:30:04]Processing tag 1201 (04B1) [00:30:04]Malloc new data [00:30:04]Processing tag 1136 (0470) [00:30:04]Malloc new data [00:30:04]Processing tag 1138 (0472) [00:30:04]Malloc new data [00:30:04]Processing tag 1024 (0400) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]SetTLVBufToDocument err=0 [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1131 (046B) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1135 (046F) [00:30:04]Malloc new data [00:30:04]Processing tag 1201 (04B1) [00:30:04]Malloc new data [00:30:04]Processing tag 1136 (0470) [00:30:04]Malloc new data [00:30:04]Processing tag 1138 (0472) [00:30:04]Malloc new data [00:30:04]Processing tag 1024 (0400) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1006 (03EE) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1010 (03F2) [00:30:04]Malloc new data [00:30:04]Processing tag 1011 (03F3) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:04]Malloc new data [00:30:04]Processing tag 1015 (03F7) [00:30:04]Malloc new data [00:30:04]SetTLVBufToDocument err=0 [00:30:04]Processing tag 1007 (03EF) [00:30:04]Load OK [00:30:04]SetTLVBufToDocument [00:30:04]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]SetTLVBufToDocument err=0 [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1132 (046C) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1135 (046F) [00:30:05]Malloc new data [00:30:05]Processing tag 1201 (04B1) [00:30:05]Malloc new data [00:30:05]Processing tag 1136 (0470) [00:30:05]Malloc new data [00:30:05]Processing tag 1138 (0472) [00:30:05]Malloc new data [00:30:05]Processing tag 1024 (0400) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1006 (03EE) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1010 (03F2) [00:30:05]Malloc new data [00:30:05]Processing tag 1011 (03F3) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1006 (03EE) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1010 (03F2) [00:30:05]Malloc new data [00:30:05]Processing tag 1011 (03F3) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1007 (03EF) [00:30:05]Load OK [00:30:05]SetTLVBufToDocument [00:30:05]Processing tag 1014 (03F6) [00:30:05]Malloc new data [00:30:05]Processing tag 1015 (03F7) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]SetTLVBufToDocument err=0 [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1133 (046D) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Processing tag 1077 (0435) [00:30:05]Malloc new data [00:30:05]SetTLVBufToDocument err=0 [00:30:05]Malloc new data [00:30:05]SAM_PROTO_GetFMData [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 13 03 00 [00:30:05]Write to MH i2c: E2 08 00 F5 DB 80 13 03 00 00 00 00 00 4F [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 F5 DB 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 F9 [00:30:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 F6 DB 80 17 00 00 00 00 00 00 51 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 F6 DB 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 62 [00:30:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 F7 DB 80 17 00 00 00 00 00 00 52 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 F7 DB 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 F2 [00:30:07]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 F8 DB 80 17 00 00 00 00 00 00 53 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 F8 DB 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 D8 [00:30:08]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 F9 DB 80 17 00 00 00 00 00 00 54 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]OFD Sender: No OFD packet to send [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 DE 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 DE 00 F9 DB 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 [00:30:09]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetFMData done [00:30:09]Malloc new data [00:30:09]Malloc new data [00:30:09]Malloc new data [00:30:09]Malloc new data [00:30:09]KKMLoadAndSignCloseShiftData err=0 [00:30:09]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Курбанов М. 26.10.2024 00:30 Смена: 540 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Чеков за смену: 374 ФД за смену: 376 Всего чеков: 374 ИТОГИ ПРИХОД Чеков: 374 Общий итог: 292767.93 Итого наличными: 274285.00 Итого безнал.: 18482.93 НДС 0% : 0.00 НДС 12% : 31101.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2591.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 274285.00 НС Приход: 158927459.34 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 191636 ФМ: 0000000000871754 ФПД: 281421995077825 [00:30:09]StoreToDocumentArchive [00:30:09]shift 540 fd 191636 [00:30:09]save to /storage/0540/doc_00191636 [00:30:09]save last doc name /storage/0540/doc_00191636 to /storage/kkm_last_doc_name [00:30:09]save OK [00:30:09]Clear old archive folders... [00:30:09]Remove dir /storage/0522 [00:30:09]opendir ok [00:30:09]file . [00:30:09]file .. [00:30:09]file doc_1729902589 [00:30:09]remove file /storage/0522/doc_1729902589 [00:30:09]remove dir /storage/0522 [00:30:09]NVStorageSaveData kkm_registers [00:30:09]File name is /storage/kkm_registers [00:30:09]Write 24 bytes [00:30:09]NVStorageSaveData done [00:30:09]NVStorageSaveData kkm_registers [00:30:09]File name is /storage/kkm_registers [00:30:09]Write 24 bytes [00:30:09]NVStorageSaveData done [00:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:30:09]tlvbuf is 01B06220 [00:30:09]SAM_PROTO_ClearQueue [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 09 00 00 [00:30:09]Write to MH i2c: E2 08 00 FA DB 80 09 00 00 00 00 00 00 47 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 03 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 03 00 FA DB 00 90 00 49 [00:30:09]RAPDU: 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_ClearQueue done [00:30:09]KKMCreateOFDPacket [00:30:09]OFDProtocolAddRootSTLVToBuf [00:30:09]FM_MakeSignedData [00:30:09]FM_MakeSignedData [00:30:09]SAM_PROTO_SignData [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 0D 01 02 [00:30:09]Write to MH i2c: E2 08 00 FB DB 80 0D 01 02 00 00 00 00 4F [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 03 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 03 00 FB DB 00 90 00 4A [00:30:09]RAPDU: 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=255 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 0D 02 02 FA 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 12 38 1C 67 0E 04 04 00 1C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 D8 04 6E 04 04 00 76 01 00 00 69 04 A5 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 [00:30:09]Write to MH i2c: E2 02 01 FC DB 80 0D 02 02 FA 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 12 38 1C 67 0E 04 04 00 1C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 D8 04 6E 04 04 00 76 01 00 00 69 04 A5 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 00 00 74 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 FC DB 00 90 00 4B [00:30:10]RAPDU: 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=255 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 0D 02 02 FA 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 66 F4 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:30:10]Write to MH i2c: E2 02 01 FD DB 80 0D 02 02 FA 00 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 66 F4 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 1B [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 FD DB 00 90 00 4C [00:30:11]RAPDU: 90 00 [00:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=255 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 0D 02 02 FA 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 [00:30:11]Write to MH i2c: E2 02 01 FE DB 80 0D 02 02 FA 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 00 00 19 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 03 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 03 00 FE DB 00 90 00 4D [00:30:12]RAPDU: 90 00 [00:30:12]wFMCommunicate OK [00:30:12]wFMCommunicate request_size=255 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 0D 02 02 FA 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:30:12]Write to MH i2c: E2 02 01 FF DB 80 0D 02 02 FA 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 00 19 [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 03 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 03 00 FF DB 00 90 00 4E [00:30:13]RAPDU: 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=255 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:30:13]Write to MH i2c: E2 02 01 00 DC 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 E0 [00:30:13]OFD Sender: No OFD packet to send [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 00 DC 00 90 00 50 [00:30:14]RAPDU: 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=141 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 FF F3 AA 0C 70 C1 [00:30:14]Write to MH i2c: E2 90 00 01 DC 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 FF F3 AA 0C 70 C1 00 00 F4 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 01 DC 00 90 00 51 [00:30:14]RAPDU: 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 0D 03 02 [00:30:14]Write to MH i2c: E2 08 00 02 DC 80 0D 03 02 00 00 00 00 59 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0B 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0B 00 02 DC 00 54 49 35 93 95 DB FF 11 90 00 3F [00:30:14]RAPDU: 54 49 35 93 95 DB FF 11 90 00 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_SignData done [00:30:14]FM_MakeSignedData done [00:30:14]CreateOFDProtocolMessage [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 11 00 00 [00:30:14]Write to MH i2c: E2 08 00 03 DC 80 11 00 00 00 00 00 00 59 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 03 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [00:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:14]wFMCommunicate OK [00:30:14]CreateOFDProtocolMessage done [00:30:14]OFDSenderStorePacket 191636 [00:30:14]StoreOFDPacket docnum=191636 [00:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7A 05 00 00 CB 9F 72 05 96 FA 5A 05 01 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 12 38 1C 67 0E 04 04 00 1C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 D8 04 6E 04 04 00 76 01 00 00 69 04 A5 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 94 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 FF F3 AA 0C 70 C1 54 49 35 93 95 DB FF 11 [00:30:15]CheckFolder [00:30:15]dirname=/storage/ofd_packets [00:30:15]CheckFolder done [00:30:15]ProducePacketName [00:30:15]name=ofd_packets/00191636 [00:30:15]NVStorageSaveData ofd_packets/00191636 [00:30:15]File name is /storage/ofd_packets/00191636 [00:30:15]Write 1432 bytes [00:30:15]NVStorageSaveData done [00:30:15]OFDSenderStorePacket done [00:30:15]KKMCreateOFDPacket done [00:30:15]NVStorageSaveData kkm_last_timestamp [00:30:15]File name is /storage/kkm_last_timestamp [00:30:15]Write 4 bytes [00:30:15]NVStorageSaveData done [00:30:15]ExternCall_PrintAddStr [00:30:15]wPrintStart [00:30:15]Write to MH i2c: 01 00 00 04 DC E0 [00:30:15]OFD Sender: Processing packet 191636 [packets to send 75, broken 74] [00:30:15]ProducePacketName [00:30:15]name=ofd_packets/00191636 [00:30:15]OFD Sender: To server: pG, [00:30:15]CommunicateWithHost lk.salyk.kg:30040 [00:30:15]ConnectInit lk.salyk.kg [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: 01 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: 01 07 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: 01 07 00 04 DC 00 00 00 00 00 FF 0F F5 [00:30:15]RasterBufferAndPrint [00:30:15]line Отчет о закрытии смены [00:30:15]line ФФД: 1.0 [00:30:15]line ИНН: 02508201610067 [00:30:15]line Кассир: Курбанов М. [00:30:15]line 26.10.2024 00:30 [00:30:15]line Смена: 540 [00:30:15]line РНМ: 0000000000091776 [00:30:15]line ЗНМ: 0300000110 [00:30:15]line СНО: Общий режим [00:30:15]line Чеков за смену: 374 [00:30:15]line ФД за смену: 376 [00:30:15]line Всего чеков: 374 [00:30:15]line ИТОГИ ПРИХОД [00:30:15]line Чеков: 374 [00:30:15]line Общий итог: 292767.93 [00:30:15]line Итого наличными: 274285.00 [00:30:15]line Итого безнал.: 18482.93 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 31101.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 2591.74 [00:30:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line ИТОГИ РАСХОД [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line Сумма внесений: 0.00 [00:30:15]line Сумма выплат: 0.00 [00:30:15]line Нал. в кассе: 274285.00 [00:30:15]line НС Приход: 158927459.34 [00:30:15]line НС Возвр.Прихода: 28777.00 [00:30:15]line НС Расход: 0.00 [00:30:15]line НС Возвр.Расхода: 0.00 [00:30:15]line ФД: 191636 [00:30:15]line ФМ: 0000000000871754 [00:30:15]line ФПД: 281421995077825 [00:30:15]Connected sock=10 [00:30:15]Data to sent: 87 95 F6 70 47 2C written 0, free lines is 4095 [00:30:15]01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7A 05 00 00 CB 9F 72 05 96 FA 5A 05 01 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 12 38 1C 67 0E 04 04 00 1C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 AA 04 D8 04 6E 04 04 00 76 01 00 00 69 04 A5 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 Write to MH i2c: 01 01 00 00 00 00 EF 54 DC 30 [00:30:16]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 Write i2c OK [00:30:16]00 MH_I2C_Read... [00:30:16]02 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 [00:30:16]00 MH_I2C_Read... [00:30:16]03 Read from MH i2c: F7 01 03 07 00 00 00 [00:30:16]EF 03 09 00 F6 03 01 00 04 F7 MH_I2C_Read... [00:30:16]03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 05 54 F7 DC 03 00 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 00 03 00 00 78 00 0A D0 B9 04 [00:30:16]8D RasterBufferAndPrint [00:30:16]00 line [00:30:16]6F line [00:30:16]04 04 00 00 00 00 00 B1 04 00 line [00:30:16]00 line [00:30:16]70 line [00:30:16]04 00 00 72 04 00 00 00 04 75 00 EE 03 written 0, free lines is 3332 [00:30:16]09 00 F2 03 01 00 00 F3 03 MH_Cut [00:30:16]00 Write to MH i2c: 00 D1 EE 01 03 00 09 5B 00 DC F2 03 01 00 01 F3 03 00 00 EF 01 03 09 09 [00:30:16]00 Write i2c OK [00:30:16]F6 MH_I2C_Read... [00:30:16]03 01 00 00 F7 03 00 00 Read from MH i2c: EF D1 03 [00:30:16]09 MH_I2C_Read... [00:30:16]00 F6 03 01 00 01 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 [00:30:16]03 MH_I2C_Read... [00:30:16]01 00 02 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 5B DC 00 08 [00:30:16]Write to MH i2c: 01 00 00 5C DC 38 [00:30:16]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]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 94 *** Cut start [00:30:17]EC *** Partial cut [00:30:17]02 *** CUTSNS_PIN = 1 [00:30:17]00 11 04 10 00 30 30 30 *** CUTSNS_PIN = 0 [00:30:17]30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 FF F3 AA 0C 70 C1 54 49 35 93 95 DB FF 11 [00:30:17]*** Brake cut motor [00:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 49 E8 47 00 C6 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 *** Stop cut motor [00:30:18]34 *** Cut end [00:30:18]10 04 04 00 94 EC 02 00 F4 03 04 00 F0 DC 1B 67 B6 04 01 Read from MH i2c: 00 01 00 [00:30:18]CA MH_I2C_Read... [00:30:18]06 1E 9C 5D 62 C8 A4 [00:30:18]CommunicateWithHost err = 0 [00:30:18]CheckOFDResponse [00:30:18]Read from MH i2c: 1017 (14) - 77093643461234 [00:30:18]01 1041 (16) - 0000000000871754 [00:30:18]07 1040 (4) - 191636 [00:30:18]00 1012 (4) - 25.10.2024 18:01 [00:30:18]1206 (1) - 0 [00:30:18]OFD Sender: Remove packet 191636 [00:30:18]ProducePacketName [00:30:18]name=ofd_packets/00191636 [00:30:18]NVStorageDeleteData [00:30:18] [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 07 00 5C DC 00 00 00 00 00 FF 0F 4D [00:30:18]process_action close_shift done [00:30:18]requested_data is exist [00:30:18]produce_requested_data [00:30:18]requested_item fd.num is exist - process it [00:30:18]SAM_PROTO_GetFieldsCounters [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 13 00 00 [00:30:18]Write to MH i2c: E2 08 00 5D DC 80 13 00 00 00 00 00 00 B5 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 62 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 62 00 5D DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [00:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetFieldsCounters done [00:30:18]requested_item shift.num is exist - process it [00:30:18]requested_item shift.opened is exist - process it [00:30:18]req_shift_opened [00:30:18]FM_GetShiftState [00:30:18]SAM_PROTO_GetShiftState [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 13 01 00 [00:30:18]Write to MH i2c: E2 08 00 5E DC 80 13 01 00 00 00 00 00 B7 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]OFD Sender: No OFD packet to send [00:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 5E DC 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:30:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetShiftState done [00:30:18]FM_GetShiftState done [00:30:18]req_shift_opened done [00:30:18]requested_item shift.open_date is exist - process it [00:30:18]req_shift_open_date [00:30:18]FM_GetShiftState [00:30:18]SAM_PROTO_GetShiftState [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 13 01 00 [00:30:18]Write to MH i2c: E2 08 00 5F DC 80 13 01 00 00 00 00 00 B8 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 5F DC 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C3 [00:30:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetShiftState done [00:30:18]FM_GetShiftState done [00:30:18]req_shift_open_date done [00:30:18]produce_requested_data done [00:30:18]produce_requested_data return {"fd.num":191636,"shift.num":540,"shift.opened":0,"shift.open_date":0} [00:30:18]process_action_free close_shift [00:30:18]json_value_free [00:30:18]json_value_free done [00:30:18]process_json_proto returns [00:30:18]Send response to host [00:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191636,"shift.num":540,"shift.opened":0,"shift.open_date":0}}} [00:30:18]free response buf [00:30:18]execute_script done [00:30:18]execute_script returns [00:30:18]free content buf [00:30:18]Sock 9.Close socket [00:30:18]Sock 9.Thread stoped [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:34]accept exits with 8 [00:32:34]New connection [00:32:34]New thread 3066817892 created [00:32:34]Thread 3066961252 joined [00:32:34]Waiting for new connection... [00:32:34] Sock 8.Parse request [00:32:34]Sock 8.Check first char [00:32:34]Sock 8.First char is OK [00:32:34]request: POST /json_proto HTTP/1.0 [00:32:34]Method: POST [00:32:34]URL: /json_proto [00:32:34]Method is POST - this is cgi request [00:32:34]url: /json_proto [00:32:34]query_string will be loaded in cgi processing [00:32:34]execute_cgi json_proto POST (null) [00:32:34]execute_cgi path=json_proto method=POST [00:32:34]POST find Content-Length [00:32:34]Host: 172.17.63.131:8080 [00:32:34]Content-Length: 215 [00:32:34]Content-Type: application/json [00:32:34] [00:32:34]POST finish read [00:32:34]Found Content-Length = 215 [00:32:34]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:32:34]execute_script... [00:32:34]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:32:34]POST & json_proto [00:32:34]process_json_proto [00:32:34]json parsed OK: [00:32:34]protocol is kg_v1.0 [00:32:34]action value=get_value [00:32:34]process_action get_value [00:32:34]cmd_get_value [00:32:34]process_action get_value done [00:32:34]requested_data is exist [00:32:34]produce_requested_data [00:32:34]requested_item kkm.sn is exist - process it [00:32:34]requested_item kkm.ver is exist - process it [00:32:34]requested_item fm.sn is exist - process it [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 11 00 00 [00:32:34]Write to MH i2c: E2 08 00 60 DC 80 11 00 00 00 00 00 00 B6 [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:34]Read from MH i2c: E2 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 17 00 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 17 00 60 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [00:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:32:34]wFMCommunicate OK [00:32:34]requested_item fd.num is exist - process it [00:32:34]SAM_PROTO_GetFieldsCounters [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 13 00 00 [00:32:34]Write to MH i2c: E2 08 00 61 DC 80 13 00 00 00 00 00 00 B9 [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:34]Read from MH i2c: E2 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 62 00 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 62 00 61 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EC 02 00 0E 04 04 00 1C 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:34]wFMCommunicate OK [00:32:34]SAM_PROTO_GetFieldsCounters done [00:32:34]requested_item shift.num is exist - process it [00:32:34]requested_item shift.opened is exist - process it [00:32:34]req_shift_opened [00:32:34]FM_GetShiftState [00:32:34]SAM_PROTO_GetShiftState [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 13 01 00 [00:32:34]Write to MH i2c: E2 08 00 62 DC 80 13 01 00 00 00 00 00 BB [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 62 DC 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C6 [00:32:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:35]wFMCommunicate OK [00:32:35]SAM_PROTO_GetShiftState done [00:32:35]FM_GetShiftState done [00:32:35]req_shift_opened done [00:32:35]requested_item shift.open_date is exist - process it [00:32:35]req_shift_open_date [00:32:35]FM_GetShiftState [00:32:35]SAM_PROTO_GetShiftState [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 13 01 00 [00:32:35]Write to MH i2c: E2 08 00 63 DC 80 13 01 00 00 00 00 00 BC [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 63 DC 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C7 [00:32:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:35]wFMCommunicate OK [00:32:35]SAM_PROTO_GetShiftState done [00:32:35]FM_GetShiftState done [00:32:35]req_shift_open_date done [00:32:35]produce_requested_data done [00:32:35]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191636,"shift.num":540,"shift.opened":0,"shift.open_date":0} [00:32:35]process_action_free get_value [00:32:35]json_value_free [00:32:35]json_value_free done [00:32:35]process_json_proto returns [00:32:35]Send response to host [00:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191636,"shift.num":540,"shift.opened":0,"shift.open_date":0}}} [00:32:35]free response buf [00:32:35]execute_script done [00:32:35]execute_script returns [00:32:35]free content buf [00:32:35]Sock 8.Close socket [00:32:35]Sock 8.Thread stoped [00:32:35]accept exits with 9 [00:32:35]New connection [00:32:35]New thread 3066961252 created [00:32:35]Thread 3066817892 joined [00:32:35]Waiting for new connection... [00:32:35] Sock 9.Parse request [00:32:35]Sock 9.Check first char [00:32:35]Sock 9.First char is OK [00:32:35]request: POST /json_proto HTTP/1.0 [00:32:35]Method: POST [00:32:35]URL: /json_proto [00:32:35]Method is POST - this is cgi request [00:32:35]url: /json_proto [00:32:35]query_string will be loaded in cgi processing [00:32:35]execute_cgi json_proto POST (null) [00:32:35]execute_cgi path=json_proto method=POST [00:32:35]POST find Content-Length [00:32:35]Host: 172.17.63.131:8080 [00:32:35]Content-Length: 331 [00:32:35]Content-Type: application/json [00:32:35] [00:32:35]POST finish read [00:32:35]Found Content-Length = 331 [00:32:35]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:32:35]execute_script... [00:32:35]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:32:35]POST & json_proto [00:32:35]process_json_proto [00:32:35]json parsed OK: [00:32:35]protocol is kg_v1.0 [00:32:35]action value=get_value [00:32:35]process_action get_value [00:32:35]cmd_get_value [00:32:35]process_action get_value done [00:32:35]requested_data is exist [00:32:35]produce_requested_data [00:32:35]requested_item fm.sale.total is exist - process it [00:32:35]SAM_PROTO_GetFMData [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 13 03 00 [00:32:35]Write to MH i2c: E2 08 00 64 DC 80 13 03 00 00 00 00 00 BF [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 FD 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 FD 00 64 DC 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 69 [00:32:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:32:35]wFMCommunicate OK [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 17 00 00 [00:32:35]Write to MH i2c: E2 08 00 65 DC 80 17 00 00 00 00 00 00 C1 [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:36]Read from MH i2c: E2 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 65 DC 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 D2 [00:32:36]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:32:36]wFMCommunicate OK [00:32:36]wFMCommunicate request_size=4 [00:32:36]MH_SAM_APDU [00:32:36]CAPDU: 80 17 00 00 [00:32:36]Write to MH i2c: E2 08 00 66 DC 80 17 00 00 00 00 00 00 C2 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:36]Read from MH i2c: E2 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 66 DC 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 62 [00:32:36]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:32:36]wFMCommunicate OK [00:32:36]wFMCommunicate request_size=4 [00:32:36]MH_SAM_APDU [00:32:36]CAPDU: 80 17 00 00 [00:32:36]Write to MH i2c: E2 08 00 67 DC 80 17 00 00 00 00 00 00 C3 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:36]Read from MH i2c: E2 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 FD 00 67 DC 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 48 [00:32:36]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:32:36]wFMCommunicate OK [00:32:36]wFMCommunicate request_size=4 [00:32:36]MH_SAM_APDU [00:32:36]CAPDU: 80 17 00 00 [00:32:36]Write to MH i2c: E2 08 00 68 DC 80 17 00 00 00 00 00 00 C4 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:32:36]Read from MH i2c: E2 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 DE 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: E2 DE 00 68 DC 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 [00:32:36]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:36]wFMCommunicate OK [00:32:36]SAM_PROTO_GetFMData done [00:32:36]requested_item fm.sale_refund.total is exist - process it [00:32:36]requested_item fm.buy.total is exist - process it [00:32:36]requested_item shift.sale.total is exist - process it [00:32:36]SAM_PROTO_GetShiftData [00:32:36]wFMCommunicate request_size=4 [00:32:36]MH_SAM_APDU [00:32:36]CAPDU: 80 13 02 00 [00:32:36]Write to MH i2c: E2 08 00 69 DC 80 13 02 00 00 00 00 00 C3 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 69 DC 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3F [00:32:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 79 BA BE 01 70 04 04 00 94 86 A2 01 72 04 03 00 E5 33 1C 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 D4 74 2F 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 66 F4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:37]wFMCommunicate OK [00:32:37]wFMCommunicate request_size=4 [00:32:37]MH_SAM_APDU [00:32:37]CAPDU: 80 17 00 00 [00:32:37]Write to MH i2c: E2 08 00 6A DC 80 17 00 00 00 00 00 00 C6 [00:32:37]Write i2c OK [00:32:37]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 6A DC 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 DF [00:32:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:32:37]wFMCommunicate OK [00:32:37]wFMCommunicate request_size=4 [00:32:37]MH_SAM_APDU [00:32:37]CAPDU: 80 17 00 00 [00:32:37]Write to MH i2c: E2 08 00 6B DC 80 17 00 00 00 00 00 00 C7 [00:32:37]Write i2c OK [00:32:37]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 FD 00 6B DC 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 80 [00:32:37]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:32:38]wFMCommunicate OK [00:32:38]wFMCommunicate request_size=4 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 17 00 00 [00:32:38]Write to MH i2c: E2 08 00 6C DC 80 17 00 00 00 00 00 00 C8 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 FD 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 FD 00 6C DC 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 40 [00:32:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:38]wFMCommunicate OK [00:32:38]wFMCommunicate request_size=4 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 17 00 00 [00:32:38]Write to MH i2c: E2 08 00 6D DC 80 17 00 00 00 00 00 00 C9 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 CE 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 CE 00 6D DC 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [00:32:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:38]wFMCommunicate OK [00:32:38]SAM_PROTO_GetShiftData done [00:32:38]requested_item shift.sale.total_cash is exist - process it [00:32:38]requested_item shift.sale_refund.total is exist - process it [00:32:38]requested_item shift.sale_refund.total_cash is exist - process it [00:32:38]requested_item shift.buy.total is exist - process it [00:32:38]requested_item shift.buy.total_cash is exist - process it [00:32:38]produce_requested_data done [00:32:38]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:32:38]process_action_free get_value [00:32:38]json_value_free [00:32:38]json_value_free done [00:32:38]process_json_proto returns [00:32:38]Send response to host [00:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":292767.93,"shift.sale.total_cash":274285.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:32:38]free response buf [00:32:38]execute_script done [00:32:38]execute_script returns [00:32:38]free content buf [00:32:38]Sock 9.Close socket [00:32:38]Sock 9.Thread stoped [00:32:38]accept exits with 8 [00:32:38]New connection [00:32:38]New thread 3066817892 created [00:32:38]Thread 3066961252 joined [00:32:38]Waiting for new connection... [00:32:38] Sock 8.Parse request [00:32:38]Sock 8.Check first char [00:32:38]Sock 8.First char is OK [00:32:38]request: POST /json_proto HTTP/1.0 [00:32:38]Method: POST [00:32:38]URL: /json_proto [00:32:38]Method is POST - this is cgi request [00:32:38]url: /json_proto [00:32:38]query_string will be loaded in cgi processing [00:32:38]execute_cgi json_proto POST (null) [00:32:38]execute_cgi path=json_proto method=POST [00:32:38]POST find Content-Length [00:32:38]Host: 172.17.63.131:8080 [00:32:38]Content-Length: 271 [00:32:38]Content-Type: application/json [00:32:38] [00:32:38]POST finish read [00:32:38]Found Content-Length = 271 [00:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:38]execute_script... [00:32:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:38]POST & json_proto [00:32:38]process_json_proto [00:32:38]json parsed OK: [00:32:38]protocol is kg_v1.0 [00:32:38]action value=open_shift [00:32:38]process_action open_shift [00:32:38]cmd_open_shift [00:32:38]MH_GetDate [00:32:38]Write to MH i2c: F0 00 00 6E DC 39 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 09 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 09 00 6E DC 00 B2 38 1C 67 22 05 6E 64 A8 [00:32:38]GetLastDocTimeStamp 1729902610 [00:32:38]current date 1729902770 [00:32:38]FM_GetShiftState [00:32:38]SAM_PROTO_GetShiftState [00:32:38]wFMCommunicate request_size=4 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 13 01 00 [00:32:38]Write to MH i2c: E2 08 00 6F DC 80 13 01 00 00 00 00 00 C8 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 0E 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 0E 00 6F DC 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D3 [00:32:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:38]wFMCommunicate OK [00:32:38]SAM_PROTO_GetShiftState done [00:32:38]FM_GetShiftState done [00:32:38]KKMCreateOpenShiftDocument [00:32:38]Load OK [00:32:38]Malloc new data [00:32:38]MH_GetDate [00:32:38]Write to MH i2c: F0 00 00 70 DC 3B [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 09 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: F0 09 00 70 DC 00 B2 38 1C 67 22 05 6E 64 AA [00:32:38]Malloc new data [00:32:38]KKMCreateOpenShiftDocument OK [00:32:38]KKMSetOpenShiftData OK [00:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=214 [00:32:38]tlvbuf is 0173D7F0 [00:32:38]KKMLoadAndSignOpenShiftData [00:32:38]SAM_PROTO_ProcessDocument [00:32:38]wFMCommunicate request_size=9 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 15 01 00 04 02 00 D6 00 [00:32:38]Write to MH i2c: E2 0C 00 71 DC 80 15 01 00 04 00 02 00 D6 00 00 00 AC [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 71 DC 00 90 00 C1 [00:32:38]RAPDU: 90 00 [00:32:38]wFMCommunicate OK [00:32:38]wFMCommunicate request_size=23 [00:32:38]MH_SAM_APDU [00:32:38]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:32:38]Write to MH i2c: E2 1A 00 72 DC 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 C3 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 72 DC 00 90 00 C2 [00:32:38]RAPDU: 90 00 [00:32:38]wFMCommunicate OK [00:32:38]wFMCommunicate request_size=34 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 [00:32:38]Write to MH i2c: E2 25 00 73 DC 80 15 02 00 1D 00 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 00 00 C0 [00:32:38]OFD Sender: No OFD packet to send [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:38]Read from MH i2c: E2 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 [00:32:38]MH_I2C_Read... [00:32:38]Read from MH i2c: E2 03 00 73 DC 00 90 00 C3 [00:32:38]RAPDU: 90 00 [00:32:38]wFMCommunicate OK [00:32:38]wFMCommunicate request_size=98 [00:32:38]MH_SAM_APDU [00:32:38]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 [00:32:38]Write to MH i2c: E2 65 00 74 DC 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 00 00 67 [00:32:38]Write i2c OK [00:32:38]MH_I2C_Read... [00:32:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:39]Read from MH i2c: E2 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 74 DC 00 90 00 C4 [00:32:39]RAPDU: 90 00 [00:32:39]wFMCommunicate OK [00:32:39]wFMCommunicate request_size=51 [00:32:39]MH_SAM_APDU [00:32:39]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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:32:39]Write to MH i2c: E2 36 00 75 DC 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 7B [00:32:39]Write i2c OK [00:32:39]MH_I2C_Read... [00:32:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:39]Read from MH i2c: E2 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 75 DC 00 90 00 C5 [00:32:39]RAPDU: 90 00 [00:32:39]wFMCommunicate OK [00:32:39]wFMCommunicate request_size=13 [00:32:39]MH_SAM_APDU [00:32:39]CAPDU: 80 15 02 00 08 F4 03 04 00 B2 38 1C 67 [00:32:39]Write to MH i2c: E2 10 00 76 DC 80 15 02 00 08 00 F4 03 04 00 B2 38 1C 67 00 00 4A [00:32:39]Write i2c OK [00:32:39]MH_I2C_Read... [00:32:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:39]Read from MH i2c: E2 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 76 DC 00 90 00 C6 [00:32:39]RAPDU: 90 00 [00:32:39]wFMCommunicate OK [00:32:39]wFMCommunicate request_size=25 [00:32:39]MH_SAM_APDU [00:32:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:32:39]Write to MH i2c: E2 1C 00 77 DC 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 3A [00:32:39]Write i2c OK [00:32:39]MH_I2C_Read... [00:32:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:39]Read from MH i2c: E2 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 03 00 77 DC 00 90 00 C7 [00:32:39]RAPDU: 90 00 [00:32:39]wFMCommunicate OK [00:32:39]wFMCommunicate request_size=4 [00:32:39]MH_SAM_APDU [00:32:39]CAPDU: 80 15 03 00 [00:32:39]Write to MH i2c: E2 08 00 78 DC 80 15 03 00 00 00 00 00 D5 [00:32:39]Write i2c OK [00:32:39]MH_I2C_Read... [00:32:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:39]Read from MH i2c: E2 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 38 00 [00:32:39]MH_I2C_Read... [00:32:39]Read from MH i2c: E2 38 00 78 DC 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EC 02 00 0E 04 04 00 1D 02 00 00 35 04 06 00 F9 14 15 8C EC FE 90 00 DB [00:32:39]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EC 02 00 0E 04 04 00 1D 02 00 00 35 04 06 00 F9 14 15 8C EC FE 90 00 [00:32:39]wFMCommunicate OK [00:32:39]SAM_PROTO_ProcessDocument answer len = 51 [00:32:39]SAM_PROTO_ProcessDocument done [00:32:39]SetTLVBufToDocument [00:32:39]Processing tag 1209 (04B9) [00:32:39]Malloc new data [00:32:39]Processing tag 1041 (0411) [00:32:39]Processing tag 1040 (0410) [00:32:39]Malloc new data [00:32:39]Processing tag 1038 (040E) [00:32:39]Malloc new data [00:32:39]Processing tag 1077 (0435) [00:32:39]Malloc new data [00:32:39]SetTLVBufToDocument err=0 [00:32:39]KKMLoadAndSignOpenShiftData store KKM data [00:32:39]KKMLoadAndSignOpenShiftData err=0 [00:32:39]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асылбекова Ч. Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 Место: АЗС № 170 "Партнер Нефть" 26.10.2024 00:32 Смена: 541 РНМ: 0000000000091776 ЗНМ: 0300000110 ФД: 191637 ФМ: 0000000000871754 ФПД: 273864656219390 [00:32:39]StoreToDocumentArchive [00:32:39]shift 541 fd 191637 [00:32:39]Create dir for shift 0541 [00:32:39]save to /storage/0541/doc_00191637 [00:32:39]save last doc name /storage/0541/doc_00191637 to /storage/kkm_last_doc_name [00:32:39]save OK [00:32:39]Clear old archive folders... [00:32:39]Remove dir /storage/0540 [00:32:39]opendir ok [00:32:39]file . [00:32:39]file .. [00:32:39]file doc_00191261 [00:32:39]remove file /storage/0540/doc_00191261 [00:32:39]file doc_00191262 [00:32:39]remove file /storage/0540/doc_00191262 [00:32:39]file doc_00191263 [00:32:39]remove file /storage/0540/doc_00191263 [00:32:39]file doc_00191264 [00:32:39]remove file /storage/0540/doc_00191264 [00:32:39]file doc_00191265 [00:32:39]remove file /storage/0540/doc_00191265 [00:32:39]file doc_00191266 [00:32:39]remove file /storage/0540/doc_00191266 [00:32:39]file doc_00191267 [00:32:39]remove file /storage/0540/doc_00191267 [00:32:39]file doc_00191268 [00:32:39]remove file /storage/0540/doc_00191268 [00:32:39]file doc_00191269 [00:32:39]remove file /storage/0540/doc_00191269 [00:32:39]file doc_00191270 [00:32:39]remove file /storage/0540/doc_00191270 [00:32:39]file doc_00191271 [00:32:39]remove file /storage/0540/doc_00191271 [00:32:39]file doc_00191272 [00:32:39]remove file /storage/0540/doc_00191272 [00:32:39]file doc_00191273 [00:32:39]remove file /storage/0540/doc_00191273 [00:32:39]file doc_00191274 [00:32:39]remove file /storage/0540/doc_00191274 [00:32:39]file doc_00191275 [00:32:39]remove file /storage/0540/doc_00191275 [00:32:39]file doc_00191276 [00:32:39]remove file /storage/0540/doc_00191276 [00:32:39]file doc_00191277 [00:32:39]remove file /storage/0540/doc_00191277 [00:32:39]file doc_00191278 [00:32:39]remove file /storage/0540/doc_00191278 [00:32:39]file doc_00191279 [00:32:39]remove file /storage/0540/doc_00191279 [00:32:39]file doc_00191280 [00:32:39]remove file /storage/0540/doc_00191280 [00:32:39]file doc_00191281 [00:32:39]remove file /storage/0540/doc_00191281 [00:32:39]file doc_00191282 [00:32:39]remove file /storage/0540/doc_00191282 [00:32:39]file doc_00191283 [00:32:39]remove file /storage/0540/doc_00191283 [00:32:39]file doc_00191284 [00:32:39]remove file /storage/0540/doc_00191284 [00:32:39]file doc_00191285 [00:32:39]remove file /storage/0540/doc_00191285 [00:32:39]file doc_00191286 [00:32:39]remove file /storage/0540/doc_00191286 [00:32:39]file doc_00191287 [00:32:39]remove file /storage/0540/doc_00191287 [00:32:39]file doc_00191288 [00:32:39]remove file /storage/0540/doc_00191288 [00:32:39]file doc_00191289 [00:32:39]remove file /storage/0540/doc_00191289 [00:32:39]file doc_00191290 [00:32:39]remove file /storage/0540/doc_00191290 [00:32:39]file doc_00191291 [00:32:39]remove file /storage/0540/doc_00191291 [00:32:39]file doc_00191292 [00:32:39]remove file /storage/0540/doc_00191292 [00:32:39]file doc_00191293 [00:32:39]remove file /storage/0540/doc_00191293 [00:32:39]file doc_00191294 [00:32:39]remove file /storage/0540/doc_00191294 [00:32:39]file doc_00191295 [00:32:39]remove file /storage/0540/doc_00191295 [00:32:39]file doc_00191296 [00:32:39]remove file /storage/0540/doc_00191296 [00:32:39]file doc_00191297 [00:32:39]remove file /storage/0540/doc_00191297 [00:32:39]file doc_00191298 [00:32:39]remove file /storage/0540/doc_00191298 [00:32:39]file doc_00191299 [00:32:39]remove file /storage/0540/doc_00191299 [00:32:39]file doc_00191300 [00:32:39]remove file /storage/0540/doc_00191300 [00:32:39]file doc_00191301 [00:32:39]remove file /storage/0540/doc_00191301 [00:32:39]file doc_00191302 [00:32:39]remove file /storage/0540/doc_00191302 [00:32:39]file doc_00191303 [00:32:39]remove file /storage/0540/doc_00191303 [00:32:39]file doc_00191304 [00:32:39]remove file /storage/0540/doc_00191304 [00:32:39]file doc_00191305 [00:32:39]remove file /storage/0540/doc_00191305 [00:32:39]file doc_00191306 [00:32:39]remove file /storage/0540/doc_00191306 [00:32:39]file doc_00191307 [00:32:39]remove file /storage/0540/doc_00191307 [00:32:39]file doc_00191308 [00:32:39]remove file /storage/0540/doc_00191308 [00:32:39]file doc_00191309 [00:32:39]remove file /storage/0540/doc_00191309 [00:32:39]file doc_00191310 [00:32:39]remove file /storage/0540/doc_00191310 [00:32:40]file doc_00191311 [00:32:40]remove file /storage/0540/doc_00191311 [00:32:40]file doc_00191312 [00:32:40]remove file /storage/0540/doc_00191312 [00:32:40]file doc_00191313 [00:32:40]remove file /storage/0540/doc_00191313 [00:32:40]file doc_00191314 [00:32:40]remove file /storage/0540/doc_00191314 [00:32:40]file doc_00191315 [00:32:40]remove file /storage/0540/doc_00191315 [00:32:40]file doc_00191316 [00:32:40]remove file /storage/0540/doc_00191316 [00:32:40]file doc_00191317 [00:32:40]remove file /storage/0540/doc_00191317 [00:32:40]file doc_00191318 [00:32:40]remove file /storage/0540/doc_00191318 [00:32:40]file doc_00191319 [00:32:40]remove file /storage/0540/doc_00191319 [00:32:40]file doc_00191320 [00:32:40]remove file /storage/0540/doc_00191320 [00:32:40]file doc_00191321 [00:32:40]remove file /storage/0540/doc_00191321 [00:32:40]file doc_00191322 [00:32:40]remove file /storage/0540/doc_00191322 [00:32:40]file doc_00191323 [00:32:40]remove file /storage/0540/doc_00191323 [00:32:40]file doc_00191324 [00:32:40]remove file /storage/0540/doc_00191324 [00:32:40]file doc_00191325 [00:32:40]remove file /storage/0540/doc_00191325 [00:32:40]file doc_00191326 [00:32:40]remove file /storage/0540/doc_00191326 [00:32:40]file doc_00191327 [00:32:40]remove file /storage/0540/doc_00191327 [00:32:40]file doc_00191328 [00:32:40]remove file /storage/0540/doc_00191328 [00:32:40]file doc_00191329 [00:32:40]remove file /storage/0540/doc_00191329 [00:32:40]file doc_00191330 [00:32:40]remove file /storage/0540/doc_00191330 [00:32:40]file doc_00191331 [00:32:40]remove file /storage/0540/doc_00191331 [00:32:40]file doc_00191332 [00:32:40]remove file /storage/0540/doc_00191332 [00:32:40]file doc_00191333 [00:32:40]remove file /storage/0540/doc_00191333 [00:32:40]file doc_00191334 [00:32:40]remove file /storage/0540/doc_00191334 [00:32:40]file doc_00191335 [00:32:40]remove file /storage/0540/doc_00191335 [00:32:40]file doc_00191336 [00:32:40]remove file /storage/0540/doc_00191336 [00:32:40]file doc_00191337 [00:32:40]remove file /storage/0540/doc_00191337 [00:32:40]file doc_00191338 [00:32:40]remove file /storage/0540/doc_00191338 [00:32:40]file doc_00191339 [00:32:40]remove file /storage/0540/doc_00191339 [00:32:40]file doc_00191340 [00:32:40]remove file /storage/0540/doc_00191340 [00:32:40]file doc_00191341 [00:32:40]remove file /storage/0540/doc_00191341 [00:32:40]file doc_00191342 [00:32:40]remove file /storage/0540/doc_00191342 [00:32:40]file doc_00191343 [00:32:40]remove file /storage/0540/doc_00191343 [00:32:40]file doc_00191344 [00:32:40]remove file /storage/0540/doc_00191344 [00:32:40]file doc_00191345 [00:32:40]remove file /storage/0540/doc_00191345 [00:32:40]file doc_00191346 [00:32:40]remove file /storage/0540/doc_00191346 [00:32:40]file doc_00191347 [00:32:40]remove file /storage/0540/doc_00191347 [00:32:40]file doc_00191348 [00:32:40]remove file /storage/0540/doc_00191348 [00:32:40]file doc_00191349 [00:32:40]remove file /storage/0540/doc_00191349 [00:32:40]file doc_00191350 [00:32:40]remove file /storage/0540/doc_00191350 [00:32:40]file doc_00191351 [00:32:40]remove file /storage/0540/doc_00191351 [00:32:40]file doc_00191352 [00:32:40]remove file /storage/0540/doc_00191352 [00:32:40]file doc_00191353 [00:32:40]remove file /storage/0540/doc_00191353 [00:32:40]file doc_00191354 [00:32:40]remove file /storage/0540/doc_00191354 [00:32:40]file doc_00191355 [00:32:40]remove file /storage/0540/doc_00191355 [00:32:40]file doc_00191356 [00:32:40]remove file /storage/0540/doc_00191356 [00:32:40]file doc_00191357 [00:32:40]remove file /storage/0540/doc_00191357 [00:32:40]file doc_00191358 [00:32:40]remove file /storage/0540/doc_00191358 [00:32:40]file doc_00191359 [00:32:40]remove file /storage/0540/doc_00191359 [00:32:40]file doc_00191360 [00:32:40]remove file /storage/0540/doc_00191360 [00:32:40]file doc_00191361 [00:32:40]remove file /storage/0540/doc_00191361 [00:32:40]file doc_00191362 [00:32:40]remove file /storage/0540/doc_00191362 [00:32:40]file doc_00191363 [00:32:40]remove file /storage/0540/doc_00191363 [00:32:40]file doc_00191364 [00:32:40]remove file /storage/0540/doc_00191364 [00:32:40]file doc_00191365 [00:32:40]remove file /storage/0540/doc_00191365 [00:32:40]file doc_00191366 [00:32:40]remove file /storage/0540/doc_00191366 [00:32:40]file doc_00191367 [00:32:40]remove file /storage/0540/doc_00191367 [00:32:40]file doc_00191368 [00:32:40]remove file /storage/0540/doc_00191368 [00:32:40]file doc_00191369 [00:32:40]remove file /storage/0540/doc_00191369 [00:32:40]file doc_00191370 [00:32:40]remove file /storage/0540/doc_00191370 [00:32:40]file doc_00191371 [00:32:40]remove file /storage/0540/doc_00191371 [00:32:40]file doc_00191372 [00:32:40]remove file /storage/0540/doc_00191372 [00:32:40]file doc_00191373 [00:32:40]remove file /storage/0540/doc_00191373 [00:32:40]file doc_00191374 [00:32:40]remove file /storage/0540/doc_00191374 [00:32:40]file doc_00191375 [00:32:40]remove file /storage/0540/doc_00191375 [00:32:40]file doc_00191376 [00:32:40]remove file /storage/0540/doc_00191376 [00:32:40]file doc_00191377 [00:32:40]remove file /storage/0540/doc_00191377 [00:32:40]file doc_00191378 [00:32:40]remove file /storage/0540/doc_00191378 [00:32:40]file doc_00191379 [00:32:40]remove file /storage/0540/doc_00191379 [00:32:40]file doc_00191380 [00:32:40]remove file /storage/0540/doc_00191380 [00:32:40]file doc_00191381 [00:32:40]remove file /storage/0540/doc_00191381 [00:32:40]file doc_00191382 [00:32:40]remove file /storage/0540/doc_00191382 [00:32:40]file doc_00191383 [00:32:40]remove file /storage/0540/doc_00191383 [00:32:40]file doc_00191384 [00:32:40]remove file /storage/0540/doc_00191384 [00:32:40]file doc_00191385 [00:32:40]remove file /storage/0540/doc_00191385 [00:32:40]file doc_00191386 [00:32:40]remove file /storage/0540/doc_00191386 [00:32:40]file doc_00191387 [00:32:40]remove file /storage/0540/doc_00191387 [00:32:40]file doc_00191388 [00:32:40]remove file /storage/0540/doc_00191388 [00:32:40]file doc_00191389 [00:32:40]remove file /storage/0540/doc_00191389 [00:32:40]file doc_00191390 [00:32:40]remove file /storage/0540/doc_00191390 [00:32:40]file doc_00191391 [00:32:40]remove file /storage/0540/doc_00191391 [00:32:40]file doc_00191392 [00:32:40]remove file /storage/0540/doc_00191392 [00:32:40]file doc_00191393 [00:32:40]remove file /storage/0540/doc_00191393 [00:32:40]file doc_00191394 [00:32:40]remove file /storage/0540/doc_00191394 [00:32:40]file doc_00191395 [00:32:40]remove file /storage/0540/doc_00191395 [00:32:40]file doc_00191396 [00:32:40]remove file /storage/0540/doc_00191396 [00:32:40]file doc_00191397 [00:32:40]remove file /storage/0540/doc_00191397 [00:32:40]file doc_00191398 [00:32:40]remove file /storage/0540/doc_00191398 [00:32:40]file doc_00191399 [00:32:40]remove file /storage/0540/doc_00191399 [00:32:40]file doc_00191400 [00:32:40]remove file /storage/0540/doc_00191400 [00:32:40]file doc_00191401 [00:32:40]remove file /storage/0540/doc_00191401 [00:32:40]file doc_00191402 [00:32:40]remove file /storage/0540/doc_00191402 [00:32:40]file doc_00191403 [00:32:40]remove file /storage/0540/doc_00191403 [00:32:40]file doc_00191404 [00:32:40]remove file /storage/0540/doc_00191404 [00:32:40]file doc_00191405 [00:32:40]remove file /storage/0540/doc_00191405 [00:32:40]file doc_00191406 [00:32:40]remove file /storage/0540/doc_00191406 [00:32:40]file doc_00191407 [00:32:40]remove file /storage/0540/doc_00191407 [00:32:40]file doc_00191408 [00:32:40]remove file /storage/0540/doc_00191408 [00:32:40]file doc_00191409 [00:32:40]remove file /storage/0540/doc_00191409 [00:32:40]file doc_00191410 [00:32:40]remove file /storage/0540/doc_00191410 [00:32:40]file doc_00191411 [00:32:40]remove file /storage/0540/doc_00191411 [00:32:40]file doc_00191412 [00:32:40]remove file /storage/0540/doc_00191412 [00:32:40]file doc_00191413 [00:32:40]remove file /storage/0540/doc_00191413 [00:32:40]file doc_00191414 [00:32:40]remove file /storage/0540/doc_00191414 [00:32:40]file doc_00191415 [00:32:40]remove file /storage/0540/doc_00191415 [00:32:40]file doc_00191416 [00:32:40]remove file /storage/0540/doc_00191416 [00:32:40]file doc_00191417 [00:32:40]remove file /storage/0540/doc_00191417 [00:32:40]file doc_00191418 [00:32:40]remove file /storage/0540/doc_00191418 [00:32:40]file doc_00191419 [00:32:40]remove file /storage/0540/doc_00191419 [00:32:40]file doc_00191420 [00:32:40]remove file /storage/0540/doc_00191420 [00:32:40]file doc_00191421 [00:32:40]remove file /storage/0540/doc_00191421 [00:32:40]file doc_00191422 [00:32:40]remove file /storage/0540/doc_00191422 [00:32:40]file doc_00191423 [00:32:40]remove file /storage/0540/doc_00191423 [00:32:40]file doc_00191424 [00:32:40]remove file /storage/0540/doc_00191424 [00:32:40]file doc_00191425 [00:32:40]remove file /storage/0540/doc_00191425 [00:32:40]file doc_00191426 [00:32:40]remove file /storage/0540/doc_00191426 [00:32:40]file doc_00191427 [00:32:40]remove file /storage/0540/doc_00191427 [00:32:40]file doc_00191428 [00:32:40]remove file /storage/0540/doc_00191428 [00:32:40]file doc_00191429 [00:32:40]remove file /storage/0540/doc_00191429 [00:32:40]file doc_00191430 [00:32:40]remove file /storage/0540/doc_00191430 [00:32:40]file doc_00191431 [00:32:40]remove file /storage/0540/doc_00191431 [00:32:40]file doc_00191432 [00:32:40]remove file /storage/0540/doc_00191432 [00:32:40]file doc_00191433 [00:32:40]remove file /storage/0540/doc_00191433 [00:32:40]file doc_00191434 [00:32:40]remove file /storage/0540/doc_00191434 [00:32:40]file doc_00191435 [00:32:40]remove file /storage/0540/doc_00191435 [00:32:40]file doc_00191436 [00:32:40]remove file /storage/0540/doc_00191436 [00:32:40]file doc_00191437 [00:32:40]remove file /storage/0540/doc_00191437 [00:32:40]file doc_00191438 [00:32:40]remove file /storage/0540/doc_00191438 [00:32:40]file doc_00191439 [00:32:40]remove file /storage/0540/doc_00191439 [00:32:40]file doc_00191440 [00:32:40]remove file /storage/0540/doc_00191440 [00:32:40]file doc_00191441 [00:32:40]remove file /storage/0540/doc_00191441 [00:32:40]file doc_00191442 [00:32:40]remove file /storage/0540/doc_00191442 [00:32:40]file doc_00191443 [00:32:40]remove file /storage/0540/doc_00191443 [00:32:40]file doc_00191444 [00:32:40]remove file /storage/0540/doc_00191444 [00:32:40]file doc_00191445 [00:32:40]remove file /storage/0540/doc_00191445 [00:32:40]file doc_00191446 [00:32:40]remove file /storage/0540/doc_00191446 [00:32:40]file doc_00191447 [00:32:40]remove file /storage/0540/doc_00191447 [00:32:40]file doc_00191448 [00:32:40]remove file /storage/0540/doc_00191448 [00:32:40]file doc_00191449 [00:32:40]remove file /storage/0540/doc_00191449 [00:32:40]file doc_00191450 [00:32:40]remove file /storage/0540/doc_00191450 [00:32:40]file doc_00191451 [00:32:40]remove file /storage/0540/doc_00191451 [00:32:40]file doc_00191452 [00:32:40]remove file /storage/0540/doc_00191452 [00:32:40]file doc_00191453 [00:32:40]remove file /storage/0540/doc_00191453 [00:32:40]file doc_00191454 [00:32:40]remove file /storage/0540/doc_00191454 [00:32:40]file doc_00191455 [00:32:40]remove file /storage/0540/doc_00191455 [00:32:40]file doc_00191456 [00:32:40]remove file /storage/0540/doc_00191456 [00:32:40]file doc_00191457 [00:32:40]remove file /storage/0540/doc_00191457 [00:32:40]file doc_00191458 [00:32:40]remove file /storage/0540/doc_00191458 [00:32:40]file doc_00191459 [00:32:40]remove file /storage/0540/doc_00191459 [00:32:40]file doc_00191460 [00:32:40]remove file /storage/0540/doc_00191460 [00:32:40]file doc_00191461 [00:32:40]remove file /storage/0540/doc_00191461 [00:32:40]file doc_00191462 [00:32:40]remove file /storage/0540/doc_00191462 [00:32:40]file doc_00191463 [00:32:40]remove file /storage/0540/doc_00191463 [00:32:40]file doc_00191464 [00:32:40]remove file /storage/0540/doc_00191464 [00:32:40]file doc_00191465 [00:32:40]remove file /storage/0540/doc_00191465 [00:32:40]file doc_00191466 [00:32:40]remove file /storage/0540/doc_00191466 [00:32:40]file doc_00191467 [00:32:40]remove file /storage/0540/doc_00191467 [00:32:40]file doc_00191468 [00:32:40]remove file /storage/0540/doc_00191468 [00:32:40]file doc_00191469 [00:32:40]remove file /storage/0540/doc_00191469 [00:32:40]file doc_00191470 [00:32:40]remove file /storage/0540/doc_00191470 [00:32:40]file doc_00191471 [00:32:40]remove file /storage/0540/doc_00191471 [00:32:40]file doc_00191472 [00:32:40]remove file /storage/0540/doc_00191472 [00:32:40]file doc_00191473 [00:32:40]remove file /storage/0540/doc_00191473 [00:32:40]file doc_00191474 [00:32:40]remove file /storage/0540/doc_00191474 [00:32:40]file doc_00191475 [00:32:40]remove file /storage/0540/doc_00191475 [00:32:40]file doc_00191476 [00:32:40]remove file /storage/0540/doc_00191476 [00:32:40]file doc_00191477 [00:32:40]remove file /storage/0540/doc_00191477 [00:32:40]file doc_00191478 [00:32:40]remove file /storage/0540/doc_00191478 [00:32:40]file doc_00191479 [00:32:40]remove file /storage/0540/doc_00191479 [00:32:40]file doc_00191480 [00:32:40]remove file /storage/0540/doc_00191480 [00:32:40]file doc_00191481 [00:32:40]remove file /storage/0540/doc_00191481 [00:32:40]file doc_00191482 [00:32:40]remove file /storage/0540/doc_00191482 [00:32:40]file doc_00191483 [00:32:40]remove file /storage/0540/doc_00191483 [00:32:40]file doc_00191484 [00:32:40]remove file /storage/0540/doc_00191484 [00:32:40]file doc_00191485 [00:32:40]remove file /storage/0540/doc_00191485 [00:32:40]file doc_00191486 [00:32:40]remove file /storage/0540/doc_00191486 [00:32:40]file doc_00191487 [00:32:40]remove file /storage/0540/doc_00191487 [00:32:40]file doc_00191488 [00:32:40]remove file /storage/0540/doc_00191488 [00:32:40]file doc_00191489 [00:32:40]remove file /storage/0540/doc_00191489 [00:32:40]file doc_00191490 [00:32:40]remove file /storage/0540/doc_00191490 [00:32:40]file doc_00191491 [00:32:40]remove file /storage/0540/doc_00191491 [00:32:40]file doc_00191492 [00:32:40]remove file /storage/0540/doc_00191492 [00:32:40]file doc_00191493 [00:32:40]remove file /storage/0540/doc_00191493 [00:32:40]file doc_00191494 [00:32:40]remove file /storage/0540/doc_00191494 [00:32:40]file doc_00191495 [00:32:40]remove file /storage/0540/doc_00191495 [00:32:40]file doc_00191496 [00:32:40]remove file /storage/0540/doc_00191496 [00:32:40]file doc_00191497 [00:32:40]remove file /storage/0540/doc_00191497 [00:32:40]file doc_00191498 [00:32:40]remove file /storage/0540/doc_00191498 [00:32:40]file doc_00191499 [00:32:40]remove file /storage/0540/doc_00191499 [00:32:40]file doc_00191500 [00:32:40]remove file /storage/0540/doc_00191500 [00:32:41]file doc_00191501 [00:32:41]remove file /storage/0540/doc_00191501 [00:32:41]file doc_00191502 [00:32:41]remove file /storage/0540/doc_00191502 [00:32:41]file doc_00191503 [00:32:41]remove file /storage/0540/doc_00191503 [00:32:41]file doc_00191504 [00:32:41]remove file /storage/0540/doc_00191504 [00:32:41]file doc_00191505 [00:32:41]remove file /storage/0540/doc_00191505 [00:32:41]file doc_00191506 [00:32:41]remove file /storage/0540/doc_00191506 [00:32:41]file doc_00191507 [00:32:41]remove file /storage/0540/doc_00191507 [00:32:41]file doc_00191508 [00:32:41]remove file /storage/0540/doc_00191508 [00:32:41]file doc_00191509 [00:32:41]remove file /storage/0540/doc_00191509 [00:32:41]file doc_00191510 [00:32:41]remove file /storage/0540/doc_00191510 [00:32:41]file doc_00191511 [00:32:41]remove file /storage/0540/doc_00191511 [00:32:41]file doc_00191512 [00:32:41]remove file /storage/0540/doc_00191512 [00:32:41]file doc_00191513 [00:32:41]remove file /storage/0540/doc_00191513 [00:32:41]file doc_00191514 [00:32:41]remove file /storage/0540/doc_00191514 [00:32:41]file doc_00191515 [00:32:41]remove file /storage/0540/doc_00191515 [00:32:41]file doc_00191516 [00:32:41]remove file /storage/0540/doc_00191516 [00:32:41]file doc_00191517 [00:32:41]remove file /storage/0540/doc_00191517 [00:32:41]file doc_00191518 [00:32:41]remove file /storage/0540/doc_00191518 [00:32:41]file doc_00191519 [00:32:41]remove file /storage/0540/doc_00191519 [00:32:41]file doc_00191520 [00:32:41]remove file /storage/0540/doc_00191520 [00:32:41]file doc_00191521 [00:32:41]remove file /storage/0540/doc_00191521 [00:32:41]file doc_00191522 [00:32:41]remove file /storage/0540/doc_00191522 [00:32:41]file doc_00191523 [00:32:41]remove file /storage/0540/doc_00191523 [00:32:41]file doc_00191524 [00:32:41]remove file /storage/0540/doc_00191524 [00:32:41]file doc_00191525 [00:32:41]remove file /storage/0540/doc_00191525 [00:32:41]file doc_00191526 [00:32:41]remove file /storage/0540/doc_00191526 [00:32:41]file doc_00191527 [00:32:41]remove file /storage/0540/doc_00191527 [00:32:41]file doc_00191528 [00:32:41]remove file /storage/0540/doc_00191528 [00:32:41]file doc_00191529 [00:32:41]remove file /storage/0540/doc_00191529 [00:32:41]file doc_00191530 [00:32:41]remove file /storage/0540/doc_00191530 [00:32:41]file doc_00191531 [00:32:41]remove file /storage/0540/doc_00191531 [00:32:41]file doc_00191532 [00:32:41]remove file /storage/0540/doc_00191532 [00:32:41]file doc_00191533 [00:32:41]remove file /storage/0540/doc_00191533 [00:32:41]file doc_00191534 [00:32:41]remove file /storage/0540/doc_00191534 [00:32:41]file doc_00191535 [00:32:41]remove file /storage/0540/doc_00191535 [00:32:41]file doc_00191536 [00:32:41]remove file /storage/0540/doc_00191536 [00:32:41]file doc_00191537 [00:32:41]remove file /storage/0540/doc_00191537 [00:32:41]file doc_00191538 [00:32:41]remove file /storage/0540/doc_00191538 [00:32:41]file doc_00191539 [00:32:41]remove file /storage/0540/doc_00191539 [00:32:41]file doc_00191540 [00:32:41]remove file /storage/0540/doc_00191540 [00:32:41]file doc_00191541 [00:32:41]remove file /storage/0540/doc_00191541 [00:32:41]file doc_00191542 [00:32:41]remove file /storage/0540/doc_00191542 [00:32:41]file doc_00191543 [00:32:41]remove file /storage/0540/doc_00191543 [00:32:41]file doc_00191544 [00:32:41]remove file /storage/0540/doc_00191544 [00:32:41]file doc_00191545 [00:32:41]remove file /storage/0540/doc_00191545 [00:32:41]file doc_00191546 [00:32:41]remove file /storage/0540/doc_00191546 [00:32:41]file doc_00191547 [00:32:41]remove file /storage/0540/doc_00191547 [00:32:41]file doc_00191548 [00:32:41]remove file /storage/0540/doc_00191548 [00:32:41]file doc_00191549 [00:32:41]remove file /storage/0540/doc_00191549 [00:32:41]file doc_00191550 [00:32:41]remove file /storage/0540/doc_00191550 [00:32:41]file doc_00191551 [00:32:41]remove file /storage/0540/doc_00191551 [00:32:41]file doc_00191552 [00:32:41]remove file /storage/0540/doc_00191552 [00:32:41]file doc_00191553 [00:32:41]remove file /storage/0540/doc_00191553 [00:32:41]file doc_00191554 [00:32:41]remove file /storage/0540/doc_00191554 [00:32:41]file doc_00191555 [00:32:41]remove file /storage/0540/doc_00191555 [00:32:41]file doc_00191556 [00:32:41]remove file /storage/0540/doc_00191556 [00:32:41]file doc_00191557 [00:32:41]remove file /storage/0540/doc_00191557 [00:32:41]file doc_00191558 [00:32:41]remove file /storage/0540/doc_00191558 [00:32:41]file doc_00191559 [00:32:41]remove file /storage/0540/doc_00191559 [00:32:41]file doc_00191560 [00:32:41]remove file /storage/0540/doc_00191560 [00:32:41]file doc_00191561 [00:32:41]remove file /storage/0540/doc_00191561 [00:32:41]file doc_00191562 [00:32:41]remove file /storage/0540/doc_00191562 [00:32:41]file doc_00191563 [00:32:41]remove file /storage/0540/doc_00191563 [00:32:41]file doc_00191564 [00:32:41]remove file /storage/0540/doc_00191564 [00:32:41]file doc_00191565 [00:32:41]remove file /storage/0540/doc_00191565 [00:32:41]file doc_00191566 [00:32:41]remove file /storage/0540/doc_00191566 [00:32:41]file doc_00191567 [00:32:41]remove file /storage/0540/doc_00191567 [00:32:41]file doc_00191568 [00:32:41]remove file /storage/0540/doc_00191568 [00:32:41]file doc_00191569 [00:32:41]remove file /storage/0540/doc_00191569 [00:32:41]file doc_00191570 [00:32:41]remove file /storage/0540/doc_00191570 [00:32:41]file doc_00191571 [00:32:41]remove file /storage/0540/doc_00191571 [00:32:41]file doc_00191572 [00:32:41]remove file /storage/0540/doc_00191572 [00:32:41]file doc_00191573 [00:32:41]remove file /storage/0540/doc_00191573 [00:32:41]file doc_00191574 [00:32:41]remove file /storage/0540/doc_00191574 [00:32:41]file doc_00191575 [00:32:41]remove file /storage/0540/doc_00191575 [00:32:41]file doc_00191576 [00:32:41]remove file /storage/0540/doc_00191576 [00:32:41]file doc_00191577 [00:32:41]remove file /storage/0540/doc_00191577 [00:32:41]file doc_00191578 [00:32:41]remove file /storage/0540/doc_00191578 [00:32:41]file doc_00191579 [00:32:41]remove file /storage/0540/doc_00191579 [00:32:41]file doc_00191580 [00:32:41]remove file /storage/0540/doc_00191580 [00:32:41]file doc_00191581 [00:32:41]remove file /storage/0540/doc_00191581 [00:32:41]file doc_00191582 [00:32:41]remove file /storage/0540/doc_00191582 [00:32:41]file doc_00191583 [00:32:41]remove file /storage/0540/doc_00191583 [00:32:41]file doc_00191584 [00:32:41]remove file /storage/0540/doc_00191584 [00:32:41]file doc_00191585 [00:32:41]remove file /storage/0540/doc_00191585 [00:32:41]file doc_00191586 [00:32:41]remove file /storage/0540/doc_00191586 [00:32:41]file doc_00191587 [00:32:41]remove file /storage/0540/doc_00191587 [00:32:41]file doc_00191588 [00:32:41]remove file /storage/0540/doc_00191588 [00:32:41]file doc_00191589 [00:32:41]remove file /storage/0540/doc_00191589 [00:32:41]file doc_00191590 [00:32:41]remove file /storage/0540/doc_00191590 [00:32:41]file doc_00191591 [00:32:41]remove file /storage/0540/doc_00191591 [00:32:41]file doc_00191592 [00:32:41]remove file /storage/0540/doc_00191592 [00:32:41]file doc_00191593 [00:32:41]remove file /storage/0540/doc_00191593 [00:32:41]file doc_00191594 [00:32:41]remove file /storage/0540/doc_00191594 [00:32:41]file doc_00191595 [00:32:41]remove file /storage/0540/doc_00191595 [00:32:41]file doc_00191596 [00:32:41]remove file /storage/0540/doc_00191596 [00:32:41]file doc_00191597 [00:32:41]remove file /storage/0540/doc_00191597 [00:32:41]file doc_00191598 [00:32:41]remove file /storage/0540/doc_00191598 [00:32:41]file doc_00191599 [00:32:41]remove file /storage/0540/doc_00191599 [00:32:41]file doc_00191600 [00:32:41]remove file /storage/0540/doc_00191600 [00:32:41]file doc_00191601 [00:32:41]remove file /storage/0540/doc_00191601 [00:32:41]file doc_00191602 [00:32:41]remove file /storage/0540/doc_00191602 [00:32:41]file doc_00191603 [00:32:41]remove file /storage/0540/doc_00191603 [00:32:41]file doc_00191604 [00:32:41]remove file /storage/0540/doc_00191604 [00:32:41]file doc_00191605 [00:32:41]remove file /storage/0540/doc_00191605 [00:32:41]file doc_00191606 [00:32:41]remove file /storage/0540/doc_00191606 [00:32:41]file doc_00191607 [00:32:41]remove file /storage/0540/doc_00191607 [00:32:41]file doc_00191608 [00:32:41]remove file /storage/0540/doc_00191608 [00:32:41]file doc_00191609 [00:32:41]remove file /storage/0540/doc_00191609 [00:32:41]file doc_00191610 [00:32:41]remove file /storage/0540/doc_00191610 [00:32:41]file doc_00191611 [00:32:41]remove file /storage/0540/doc_00191611 [00:32:41]file doc_00191612 [00:32:41]remove file /storage/0540/doc_00191612 [00:32:41]file doc_00191613 [00:32:41]remove file /storage/0540/doc_00191613 [00:32:41]file doc_00191614 [00:32:41]remove file /storage/0540/doc_00191614 [00:32:41]file doc_00191615 [00:32:41]remove file /storage/0540/doc_00191615 [00:32:41]file doc_00191616 [00:32:41]remove file /storage/0540/doc_00191616 [00:32:41]file doc_00191617 [00:32:41]remove file /storage/0540/doc_00191617 [00:32:41]file doc_00191618 [00:32:41]remove file /storage/0540/doc_00191618 [00:32:41]file doc_00191619 [00:32:41]remove file /storage/0540/doc_00191619 [00:32:41]file doc_00191620 [00:32:41]remove file /storage/0540/doc_00191620 [00:32:41]file doc_00191621 [00:32:41]remove file /storage/0540/doc_00191621 [00:32:41]file doc_00191622 [00:32:41]remove file /storage/0540/doc_00191622 [00:32:41]file doc_00191623 [00:32:41]remove file /storage/0540/doc_00191623 [00:32:41]file doc_00191624 [00:32:41]remove file /storage/0540/doc_00191624 [00:32:41]file doc_00191625 [00:32:41]remove file /storage/0540/doc_00191625 [00:32:41]file doc_00191626 [00:32:41]remove file /storage/0540/doc_00191626 [00:32:41]file doc_00191627 [00:32:41]remove file /storage/0540/doc_00191627 [00:32:41]file doc_00191628 [00:32:41]remove file /storage/0540/doc_00191628 [00:32:41]file doc_00191629 [00:32:41]remove file /storage/0540/doc_00191629 [00:32:41]file doc_00191630 [00:32:41]remove file /storage/0540/doc_00191630 [00:32:41]file doc_00191631 [00:32:41]remove file /storage/0540/doc_00191631 [00:32:41]file doc_00191632 [00:32:41]remove file /storage/0540/doc_00191632 [00:32:41]file doc_00191633 [00:32:41]remove file /storage/0540/doc_00191633 [00:32:41]file doc_00191634 [00:32:41]remove file /storage/0540/doc_00191634 [00:32:41]file doc_00191635 [00:32:41]remove file /storage/0540/doc_00191635 [00:32:41]file doc_00191636 [00:32:41]remove file /storage/0540/doc_00191636 [00:32:41]remove dir /storage/0540 [00:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:32:41]tlvbuf is 019BA770 [00:32:41]SAM_PROTO_ClearQueue [00:32:41]wFMCommunicate request_size=4 [00:32:41]MH_SAM_APDU [00:32:41]CAPDU: 80 09 00 00 [00:32:41]Write to MH i2c: E2 08 00 79 DC 80 09 00 00 00 00 00 00 C7 [00:32:41]Write i2c OK [00:32:41]MH_I2C_Read... [00:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:41]Read from MH i2c: E2 [00:32:41]MH_I2C_Read... [00:32:41]Read from MH i2c: E2 03 00 [00:32:41]MH_I2C_Read... [00:32:41]Read from MH i2c: E2 03 00 79 DC 00 90 00 C9 [00:32:41]RAPDU: 90 00 [00:32:41]wFMCommunicate OK [00:32:41]SAM_PROTO_ClearQueue done [00:32:41]KKMCreateOFDPacket [00:32:41]OFDProtocolAddRootSTLVToBuf [00:32:41]FM_MakeSignedData [00:32:41]FM_MakeSignedData [00:32:41]SAM_PROTO_SignData [00:32:41]wFMCommunicate request_size=4 [00:32:41]MH_SAM_APDU [00:32:41]CAPDU: 80 0D 01 02 [00:32:41]Write to MH i2c: E2 08 00 7A DC 80 0D 01 02 00 00 00 00 CF [00:32:41]Write i2c OK [00:32:41]MH_I2C_Read... [00:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:41]Read from MH i2c: E2 [00:32:41]MH_I2C_Read... [00:32:41]Read from MH i2c: E2 03 00 [00:32:41]MH_I2C_Read... [00:32:41]Read from MH i2c: E2 03 00 7A DC 00 90 00 CA [00:32:41]RAPDU: 90 00 [00:32:41]wFMCommunicate OK [00:32:41]wFMCommunicate request_size=255 [00:32:41]MH_SAM_APDU [00:32:41]CAPDU: 80 0D 02 02 FA 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 B2 38 1C 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 [00:32:42]Write to MH i2c: E2 02 01 7B DC 80 0D 02 02 FA 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 B2 38 1C 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 00 00 30 [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:42]Read from MH i2c: E2 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 03 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 03 00 7B DC 00 90 00 CB [00:32:42]RAPDU: 90 00 [00:32:42]wFMCommunicate OK [00:32:42]wFMCommunicate request_size=24 [00:32:42]MH_SAM_APDU [00:32:42]CAPDU: 80 0D 02 02 13 30 30 30 38 37 31 37 35 34 35 04 06 00 F9 14 15 8C EC FE [00:32:42]Write to MH i2c: E2 1B 00 7C DC 80 0D 02 02 13 00 30 30 30 38 37 31 37 35 34 35 04 06 00 F9 14 15 8C EC FE 00 00 9F [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:42]Read from MH i2c: E2 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 03 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 03 00 7C DC 00 90 00 CC [00:32:42]RAPDU: 90 00 [00:32:42]wFMCommunicate OK [00:32:42]wFMCommunicate request_size=4 [00:32:42]MH_SAM_APDU [00:32:42]CAPDU: 80 0D 03 02 [00:32:42]Write to MH i2c: E2 08 00 7D DC 80 0D 03 02 00 00 00 00 D4 [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:42]Read from MH i2c: E2 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 0B 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 0B 00 7D DC 00 58 C3 89 D8 45 76 52 0A 90 00 68 [00:32:42]RAPDU: 58 C3 89 D8 45 76 52 0A 90 00 [00:32:42]wFMCommunicate OK [00:32:42]SAM_PROTO_SignData done [00:32:42]FM_MakeSignedData done [00:32:42]CreateOFDProtocolMessage [00:32:42]wFMCommunicate request_size=4 [00:32:42]MH_SAM_APDU [00:32:42]CAPDU: 80 11 00 00 [00:32:42]Write to MH i2c: E2 08 00 7E DC 80 11 00 00 00 00 00 00 D4 [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:42]Read from MH i2c: E2 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 17 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: E2 17 00 7E DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [00:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:32:42]wFMCommunicate OK [00:32:42]CreateOFDProtocolMessage done [00:32:42]OFDSenderStorePacket 191637 [00:32:42]StoreOFDPacket docnum=191637 [00:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1D 01 00 00 1A 14 15 01 C6 49 5A 02 01 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 B2 38 1C 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 F9 14 15 8C EC FE 58 C3 89 D8 45 76 52 0A [00:32:42]CheckFolder [00:32:42]dirname=/storage/ofd_packets [00:32:42]CheckFolder done [00:32:42]ProducePacketName [00:32:42]name=ofd_packets/00191637 [00:32:42]NVStorageSaveData ofd_packets/00191637 [00:32:42]File name is /storage/ofd_packets/00191637 [00:32:42]Write 315 bytes [00:32:42]NVStorageSaveData done [00:32:42]OFDSenderStorePacket done [00:32:42]KKMCreateOFDPacket done [00:32:42]NVStorageSaveData kkm_last_timestamp [00:32:42]File name is /storage/kkm_last_timestamp [00:32:42]Write 4 bytes [00:32:42]NVStorageSaveData done [00:32:42]ExternCall_PrintAddStr [00:32:42]wPrintStart [00:32:42]Write to MH i2c: 01 00 00 7F DC 5B [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 07 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 07 00 7F DC 00 00 00 00 00 FF 0F 70 [00:32:42]RasterBufferAndPrint [00:32:42]line Отчет об открытии смены [00:32:42]line ФФД: 1.0 [00:32:42]line ИНН: 02508201610067 [00:32:42]line Кассир: Асылбекова Ч. [00:32:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:32:42]line Место: АЗС № 170 "Партнер Нефть" [00:32:42]line 26.10.2024 00:32 [00:32:42]line Смена: 541 [00:32:42]line РНМ: 0000000000091776 [00:32:42]line ЗНМ: 0300000110 [00:32:42]line ФД: 191637 [00:32:42]line ФМ: 0000000000871754 [00:32:42]line ФПД: 273864656219390 [00:32:42]written 0, free lines is 4095 [00:32:42]OFD Sender: Processing packet 191637 [packets to send 75, broken 74] [00:32:42]ProducePacketName [00:32:42]name=ofd_packets/00191637 [00:32:42]OFD Sender: To server: pG, [00:32:42]CommunicateWithHost lk.salyk.kg:30040 [00:32:42]ConnectInit lk.salyk.kg [00:32:42]Connected sock=10 [00:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1D 01 00 00 1A 14 15 01 C6 49 5A 02 01 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 B2 38 1C 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 F9 14 15 8C EC FE 58 C3 89 D8 45 76 52 0A [00:32:42]Write to MH i2c: 01 00 00 91 DC 6D [00:32:42]Write i2c OK [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 07 00 [00:32:42]MH_I2C_Read... [00:32:42]Read from MH i2c: 01 07 00 91 DC 00 00 00 00 00 95 0E 17 [00:32:42]RasterBufferAndPrint [00:32:42]line [00:32:42]line [00:32:42]line [00:32:42]line [00:32:42]line [00:32:42]written 0, free lines is 3751 [00:32:42]MH_Cut [00:32:42]Write to MH i2c: D1 01 00 98 DC 01 46 [00:32:43]Write i2c OK [00:32:43]MH_I2C_Read... [00:32:43]Read from MH i2c: D1 [00:32:43]MH_I2C_Read... [00:32:43]Read from MH i2c: D1 01 00 [00:32:43]MH_I2C_Read... [00:32:43]Read from MH i2c: D1 01 00 98 DC 00 45 [00:32:43]Write to MH i2c: 01 00 00 99 DC 75 [00:32:43]Write i2c OK [00:32:43]MH_I2C_Read... [00:32:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F8 C5 47 00 D2 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EC 02 00 F4 03 04 00 81 DD 1B 67 B6 04 01 00 00 49 08 65 95 5B 2F 64 AD [00:32:43]CommunicateWithHost err = 0 [00:32:43]CheckOFDResponse [00:32:43]1017 (14) - 77093643461234 [00:32:43]1041 (16) - 0000000000871754 [00:32:43]1040 (4) - 191637 [00:32:43]1012 (4) - 25.10.2024 18:03 [00:32:43]1206 (1) - 0 [00:32:43]OFD Sender: Remove packet 191637 [00:32:43]ProducePacketName [00:32:43]name=ofd_packets/00191637 [00:32:43]NVStorageDeleteData [00:32:43]*** Cut start [00:32:43]*** Partial cut [00:32:43]*** CUTSNS_PIN = 1 [00:32:43]*** CUTSNS_PIN = 0 [00:32:43]*** Brake cut motor [00:32:43]OFD Sender: No OFD packet to send [00:32:44]Read from MH i2c: 01 [00:32:44]MH_I2C_Read... [00:32:44]*** Stop cut motor [00:32:44]*** Cut end [00:32:44]Read from MH i2c: 01 07 00 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: 01 07 00 99 DC 00 00 00 00 00 FF 0F 8A [00:32:44]process_action open_shift done [00:32:44]requested_data is exist [00:32:44]produce_requested_data [00:32:44]requested_item fd.num is exist - process it [00:32:44]SAM_PROTO_GetFieldsCounters [00:32:44]wFMCommunicate request_size=4 [00:32:44]MH_SAM_APDU [00:32:44]CAPDU: 80 13 00 00 [00:32:44]Write to MH i2c: E2 08 00 9A DC 80 13 00 00 00 00 00 00 F2 [00:32:44]Write i2c OK [00:32:44]MH_I2C_Read... [00:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:44]Read from MH i2c: E2 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 62 00 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 62 00 9A DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [00:32:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:44]wFMCommunicate OK [00:32:44]SAM_PROTO_GetFieldsCounters done [00:32:44]requested_item shift.num is exist - process it [00:32:44]requested_item shift.opened is exist - process it [00:32:44]req_shift_opened [00:32:44]FM_GetShiftState [00:32:44]SAM_PROTO_GetShiftState [00:32:44]wFMCommunicate request_size=4 [00:32:44]MH_SAM_APDU [00:32:44]CAPDU: 80 13 01 00 [00:32:44]Write to MH i2c: E2 08 00 9B DC 80 13 01 00 00 00 00 00 F4 [00:32:44]Write i2c OK [00:32:44]MH_I2C_Read... [00:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:44]Read from MH i2c: E2 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 0E 00 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 0E 00 9B DC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6D [00:32:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:32:44]wFMCommunicate OK [00:32:44]SAM_PROTO_GetShiftState done [00:32:44]FM_GetShiftState done [00:32:44]req_shift_opened done [00:32:44]requested_item shift.open_date is exist - process it [00:32:44]req_shift_open_date [00:32:44]req_shift_open_date done [00:32:44]produce_requested_data done [00:32:44]produce_requested_data return {"fd.num":191637,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:32:44]process_action_free open_shift [00:32:44]json_value_free [00:32:44]json_value_free done [00:32:44]process_json_proto returns [00:32:44]Send response to host [00:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191637,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:32:44]free response buf [00:32:44]execute_script done [00:32:44]execute_script returns [00:32:44]free content buf [00:32:44]Sock 8.Close socket [00:32:44]Sock 8.Thread stoped [00:32:44]accept exits with 9 [00:32:44]New connection [00:32:44]New thread 3066961252 created [00:32:44]Thread 3066817892 joined [00:32:44]Waiting for new connection... [00:32:44] Sock 9.Parse request [00:32:44]Sock 9.Check first char [00:32:44]Sock 9.First char is OK [00:32:44]request: POST /json_proto HTTP/1.0 [00:32:44]Method: POST [00:32:44]URL: /json_proto [00:32:44]Method is POST - this is cgi request [00:32:44]url: /json_proto [00:32:44]query_string will be loaded in cgi processing [00:32:44]execute_cgi json_proto POST (null) [00:32:44]execute_cgi path=json_proto method=POST [00:32:44]POST find Content-Length [00:32:44]Host: 172.17.63.131:8080 [00:32:44]Content-Length: 331 [00:32:44]Content-Type: application/json [00:32:44] [00:32:44]POST finish read [00:32:44]Found Content-Length = 331 [00:32:44]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:32:44]execute_script... [00:32:44]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:32:44]POST & json_proto [00:32:44]process_json_proto [00:32:44]json parsed OK: [00:32:44]protocol is kg_v1.0 [00:32:44]action value=get_value [00:32:44]process_action get_value [00:32:44]cmd_get_value [00:32:44]process_action get_value done [00:32:44]requested_data is exist [00:32:44]produce_requested_data [00:32:44]requested_item fm.sale.total is exist - process it [00:32:44]SAM_PROTO_GetFMData [00:32:44]wFMCommunicate request_size=4 [00:32:44]MH_SAM_APDU [00:32:44]CAPDU: 80 13 03 00 [00:32:44]Write to MH i2c: E2 08 00 9C DC 80 13 03 00 00 00 00 00 F7 [00:32:44]Write i2c OK [00:32:44]MH_I2C_Read... [00:32:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:44]Read from MH i2c: E2 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 FD 00 [00:32:44]MH_I2C_Read... [00:32:44]Read from MH i2c: E2 FD 00 9C DC 00 C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 A1 [00:32:44]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 5B E8 02 00 69 04 A3 00 6F 04 04 00 51 E8 02 00 B1 04 05 00 CE 0E 48 B3 03 70 04 05 00 2C 0E 41 86 03 72 04 04 00 A2 00 07 2D 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 DE 6F A2 64 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 26 B2 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 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 EF A9 04 EF 03 09 00 F6 03 90 00 [00:32:44]wFMCommunicate OK [00:32:44]wFMCommunicate request_size=4 [00:32:44]MH_SAM_APDU [00:32:44]CAPDU: 80 17 00 00 [00:32:44]Write to MH i2c: E2 08 00 9D DC 80 17 00 00 00 00 00 00 F9 [00:32:44]Write i2c OK [00:32:44]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 FD 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 FD 00 9D DC 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 0A [00:32:45]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:32:45]wFMCommunicate OK [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 17 00 00 [00:32:45]Write to MH i2c: E2 08 00 9E DC 80 17 00 00 00 00 00 00 FA [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 FD 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 FD 00 9E DC 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 9A [00:32:45]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:32:45]wFMCommunicate OK [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 17 00 00 [00:32:45]Write to MH i2c: E2 08 00 9F DC 80 17 00 00 00 00 00 00 FB [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 9F DC 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 80 [00:32:46]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:32:46]wFMCommunicate OK [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 17 00 00 [00:32:46]Write to MH i2c: E2 08 00 A0 DC 80 17 00 00 00 00 00 00 FC [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:32:46]Read from MH i2c: E2 DE 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 DE 00 A0 DC 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:32:46]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:46]wFMCommunicate OK [00:32:46]SAM_PROTO_GetFMData done [00:32:46]requested_item fm.sale_refund.total is exist - process it [00:32:46]requested_item fm.buy.total is exist - process it [00:32:46]requested_item shift.sale.total is exist - process it [00:32:46]SAM_PROTO_GetShiftData [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 13 02 00 [00:32:46]Write to MH i2c: E2 08 00 A1 DC 80 13 02 00 00 00 00 00 FB [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:47]Read from MH i2c: E2 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 A1 DC 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 6E [00:32:47]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:32:47]wFMCommunicate OK [00:32:47]wFMCommunicate request_size=4 [00:32:47]MH_SAM_APDU [00:32:47]CAPDU: 80 17 00 00 [00:32:47]Write to MH i2c: E2 08 00 A2 DC 80 17 00 00 00 00 00 00 FE [00:32:47]Write i2c OK [00:32:47]MH_I2C_Read... [00:32:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:47]Read from MH i2c: E2 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 A2 DC 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 06 [00:32:47]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:32:47]wFMCommunicate OK [00:32:47]wFMCommunicate request_size=4 [00:32:47]MH_SAM_APDU [00:32:47]CAPDU: 80 17 00 00 [00:32:47]Write to MH i2c: E2 08 00 A3 DC 80 17 00 00 00 00 00 00 FF [00:32:47]Write i2c OK [00:32:47]MH_I2C_Read... [00:32:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:48]Read from MH i2c: E2 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 A3 DC 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 D1 [00:32:48]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:32:48]wFMCommunicate OK [00:32:48]wFMCommunicate request_size=4 [00:32:48]MH_SAM_APDU [00:32:48]CAPDU: 80 17 00 00 [00:32:48]Write to MH i2c: E2 08 00 A4 DC 80 17 00 00 00 00 00 00 00 [00:32:48]Write i2c OK [00:32:48]MH_I2C_Read... [00:32:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:48]Read from MH i2c: E2 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 A4 DC 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 72 [00:32:48]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 OFD Sender: No OFD packet to send [00:32:48]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=4 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 17 00 00 [00:32:49]Write to MH i2c: E2 08 00 A5 DC 80 17 00 00 00 00 00 00 01 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 BD 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 BD 00 A5 DC 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 E7 [00:32:49]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:32:49]wFMCommunicate OK [00:32:49]SAM_PROTO_GetShiftData done [00:32:49]requested_item shift.sale.total_cash is exist - process it [00:32:49]requested_item shift.sale_refund.total is exist - process it [00:32:49]requested_item shift.sale_refund.total_cash is exist - process it [00:32:49]requested_item shift.buy.total is exist - process it [00:32:49]requested_item shift.buy.total_cash is exist - process it [00:32:49]produce_requested_data done [00:32:49]produce_requested_data return {"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.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:32:49]process_action_free get_value [00:32:49]json_value_free [00:32:49]json_value_free done [00:32:49]process_json_proto returns [00:32:49]Send response to host [00:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158927459.34,"fm.sale_refund.total":28777.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:32:49]free response buf [00:32:49]execute_script done [00:32:49]execute_script returns [00:32:49]free content buf [00:32:49]Sock 9.Close socket [00:32:49]Sock 9.Thread stoped [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:16]accept exits with 8 [01:39:16]New connection [01:39:16]New thread 3066817892 created [01:39:16]Thread 3066961252 joined [01:39:16]Waiting for new connection... [01:39:16] Sock 8.Parse request [01:39:16]Sock 8.Check first char [01:39:16]Sock 8.First char is OK [01:39:16]request: POST /json_proto HTTP/1.0 [01:39:16]Method: POST [01:39:16]URL: /json_proto [01:39:16]Method is POST - this is cgi request [01:39:16]url: /json_proto [01:39:16]query_string will be loaded in cgi processing [01:39:16]execute_cgi json_proto POST (null) [01:39:16]execute_cgi path=json_proto method=POST [01:39:16]POST find Content-Length [01:39:16]Host: 172.17.63.131:8080 [01:39:16]Content-Length: 676 [01:39:16]Content-Type: application/json [01:39:16] [01:39:16]POST finish read [01:39:16]Found Content-Length = 676 [01:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:16]execute_script... [01:39: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)30940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:16]POST & json_proto [01:39:16]process_json_proto [01:39:16]json parsed OK: [01:39:16]protocol is kg_v1.0 [01:39:16]action value=close_receipt [01:39:16]process_action close_receipt [01:39:16]cmd_close_receipt [01:39:16]MH_GetDate [01:39:16]Write to MH i2c: F0 00 00 A6 DC 71 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: F0 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: F0 09 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: F0 09 00 A6 DC 00 50 48 1C 67 22 05 6E 64 8E [01:39:16]GetLastDocTimeStamp 1729902770 [01:39:16]current date 1729906768 [01:39:16]FM_GetShiftState [01:39:16]SAM_PROTO_GetShiftState [01:39:16]wFMCommunicate request_size=4 [01:39:16]MH_SAM_APDU [01:39:16]CAPDU: 80 13 01 00 [01:39:16]Write to MH i2c: E2 08 00 A7 DC 80 13 01 00 00 00 00 00 00 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:16]Read from MH i2c: E2 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 0E 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: E2 0E 00 A7 DC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 79 [01:39:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:39:16]wFMCommunicate OK [01:39:16]SAM_PROTO_GetShiftState done [01:39:16]FM_GetShiftState done [01:39:16]opened in 1729902770 [01:39:16]opened+sec_in_day 1729989170 [01:39:16]quantity*price = 20003 [01:39:16]sum+1 = 20004 [01:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 1 26.10.2024 01:39 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191638 ФПД: 34912156012839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T013928&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191638&fm=34912156012839&tin=02508201610067®Number=0000000000091776&sum=20000 [01:39:17]StoreToDocumentArchive [01:39:17]shift 541 fd 191638 [01:39:17]save to /storage/0541/doc_00191638 [01:39:17]save last doc name /storage/0541/doc_00191638 to /storage/kkm_last_doc_name [01:39:17]save OK [01:39:17]Clear old archive folders... [01:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:39:17]tlvbuf is 016CE820 [01:39:17]SAM_PROTO_ClearQueue [01:39:17]wFMCommunicate request_size=4 [01:39:17]MH_SAM_APDU [01:39:17]CAPDU: 80 09 00 00 [01:39:17]Write to MH i2c: E2 08 00 B4 DC 80 09 00 00 00 00 00 00 02 [01:39:17]Write i2c OK [01:39:17]MH_I2C_Read... [01:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:17]Read from MH i2c: E2 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 03 00 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 03 00 B4 DC 00 90 00 04 [01:39:17]RAPDU: 90 00 [01:39:17]wFMCommunicate OK [01:39:17]SAM_PROTO_ClearQueue done [01:39:17]KKMCreateOFDPacket [01:39:17]OFDProtocolAddRootSTLVToBuf [01:39:17]FM_MakeSignedData [01:39:17]FM_MakeSignedData [01:39:17]SAM_PROTO_SignData [01:39:17]wFMCommunicate request_size=4 [01:39:17]MH_SAM_APDU [01:39:17]CAPDU: 80 0D 01 02 [01:39:17]Write to MH i2c: E2 08 00 B5 DC 80 0D 01 02 00 00 00 00 0A [01:39:17]Write i2c OK [01:39:17]MH_I2C_Read... [01:39:18]OFD Sender: No OFD packet to send [01:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:18]Read from MH i2c: E2 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 B5 DC 00 90 00 05 [01:39:18]RAPDU: 90 00 [01:39:18]wFMCommunicate OK [01:39:18]wFMCommunicate request_size=255 [01:39:18]MH_SAM_APDU [01:39:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 50 48 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EC 02 00 35 04 06 00 1F [01:39:18]Write to MH i2c: E2 02 01 B6 DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 50 48 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EC 02 00 35 04 06 00 1F 00 00 3E [01:39:18]Write i2c OK [01:39:18]MH_I2C_Read... [01:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:18]Read from MH i2c: E2 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 B6 DC 00 90 00 06 [01:39:18]RAPDU: 90 00 [01:39:18]wFMCommunicate OK [01:39:18]wFMCommunicate request_size=10 [01:39:18]MH_SAM_APDU [01:39:18]CAPDU: 80 0D 02 02 05 C0 9E A8 51 27 [01:39:18]Write to MH i2c: E2 0D 00 B7 DC 80 0D 02 02 05 00 C0 9E A8 51 27 00 00 95 [01:39:18]Write i2c OK [01:39:18]MH_I2C_Read... [01:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:18]Read from MH i2c: E2 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 03 00 B7 DC 00 90 00 07 [01:39:18]RAPDU: 90 00 [01:39:18]wFMCommunicate OK [01:39:18]wFMCommunicate request_size=4 [01:39:18]MH_SAM_APDU [01:39:18]CAPDU: 80 0D 03 02 [01:39:18]Write to MH i2c: E2 08 00 B8 DC 80 0D 03 02 00 00 00 00 0F [01:39:18]Write i2c OK [01:39:18]MH_I2C_Read... [01:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:18]Read from MH i2c: E2 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 0B 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 0B 00 B8 DC 00 AC E4 EF 91 1B 1A 6E A4 90 00 67 [01:39:18]RAPDU: AC E4 EF 91 1B 1A 6E A4 90 00 [01:39:18]wFMCommunicate OK [01:39:18]SAM_PROTO_SignData done [01:39:18]FM_MakeSignedData done [01:39:18]CreateOFDProtocolMessage [01:39:18]wFMCommunicate request_size=4 [01:39:18]MH_SAM_APDU [01:39:18]CAPDU: 80 11 00 00 [01:39:18]Write to MH i2c: E2 08 00 B9 DC 80 11 00 00 00 00 00 00 0F [01:39:18]Write i2c OK [01:39:18]MH_I2C_Read... [01:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:18]Read from MH i2c: E2 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 17 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: E2 17 00 B9 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [01:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:39:18]wFMCommunicate OK [01:39:18]CreateOFDProtocolMessage done [01:39:18]OFDSenderStorePacket 191638 [01:39:18]StoreOFDPacket docnum=191638 [01:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 94 07 01 DA C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 50 48 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EC 02 00 35 04 06 00 1F C0 9E A8 51 27 AC E4 EF 91 1B 1A 6E A4 [01:39:18]CheckFolder [01:39:18]dirname=/storage/ofd_packets [01:39:18]CheckFolder done [01:39:18]ProducePacketName [01:39:18]name=ofd_packets/00191638 [01:39:18]NVStorageSaveData ofd_packets/00191638 [01:39:18]File name is /storage/ofd_packets/00191638 [01:39:18]Write 301 bytes [01:39:18]NVStorageSaveData done [01:39:18]OFDSenderStorePacket done [01:39:18]KKMCreateOFDPacket done [01:39:18]NVStorageSaveData kkm_last_timestamp [01:39:18]File name is /storage/kkm_last_timestamp [01:39:18]Write 4 bytes [01:39:18]NVStorageSaveData done [01:39:18]ExternCall_PrintAddStr [01:39:18]wPrintStart [01:39:18]Write to MH i2c: 01 00 00 BA DC 96 [01:39:18]Write i2c OK [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: 01 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: 01 07 00 [01:39:18]MH_I2C_Read... [01:39:18]Read from MH i2c: 01 07 00 BA DC 00 00 00 00 00 FF 0F AB [01:39:18]RasterBufferAndPrint [01:39:18]line Счет N : (1)30940 [01:39:18]line ИНН: 02508201610067 [01:39:18]line Контрольно-Кассовый Чек [01:39:18]line ПРОДАЖА [01:39:18]line ТРК (МРК, ГНК) : 21 [01:39:18]line Товар: 2710124130 [01:39:18]line Аи-92-К-5 [01:39:18]line 2.990 * 66.90 [01:39:18]line = 200.03 [01:39:18]line НДС 12% НСП 1% [01:39:18]line > о реализуемом товаре [01:39:18]line ОКРУГЛЕНИЕ: -0.03 [01:39:18]line ИТОГО: 200.00 [01:39:18]line Внесено: 200.00 [01:39:18]line СДАЧА: 0.00 [01:39:18]line НСП 1% : 1.77 [01:39:18]line НДС 12% : 21.24 [01:39:18]line Наличными: 200.00 [01:39:18]line Безнал.: 0.00 [01:39:18]line Место: АЗС № 170 "Партнер Нефть" [01:39:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:39:18]line СНО: Общий режим [01:39:18]line Чек 1 26.10.2024 01:39 [01:39:18]line Смена: 541 ФФД: 1.0 [01:39:18]line ЗНМ: 0300000110 [01:39:18]line РНМ: 0000000000091776 [01:39:18]line Версия ККМ: 001 [01:39:18]line ФМ: 0000000000871754 [01:39:18]line ФД: 191638 [01:39:18]line ФПД: 34912156012839 [01:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T013928&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191638&fm=34912156012839&tin=02508201610067®Number=0000000000091776&sum=20000 [01:39:18]OFD Sender: Processing packet 191638 [packets to send 75, broken 74] [01:39:18]ProducePacketName [01:39:18]name=ofd_packets/00191638 [01:39:18]OFD Sender: To server: pG, [01:39:18]CommunicateWithHost lk.salyk.kg:30040 [01:39:18]ConnectInit lk.salyk.kg [01:39:18]written 0, free lines is 4095 [01:39:18]Connected sock=11 [01:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 94 07 01 DA C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 50 48 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EC 02 00 35 04 06 00 1F C0 9E A8 51 27 AC E4 EF 91 1B 1A 6E A4 [01:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CB 06 47 00 2A 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 31 37 35 34 10 04 04 00 96 EC 02 00 F4 03 04 00 1D ED 1B 67 B6 04 01 00 00 BF B2 85 21 62 06 CE 6A [01:39:19]CommunicateWithHost err = 0 [01:39:19]CheckOFDResponse [01:39:19]1017 (14) - 77093643461234 [01:39:19]1041 (16) - 0000000000871754 [01:39:19]1040 (4) - 191638 [01:39:19]1012 (4) - 25.10.2024 19:10 [01:39:19]1206 (1) - 0 [01:39:19]OFD Sender: Remove packet 191638 [01:39:19]ProducePacketName [01:39:19]name=ofd_packets/00191638 [01:39:19]NVStorageDeleteData [01:39:19]Write to MH i2c: 01 00 00 E5 DC C1 [01:39:19]Write i2c OK [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: 01 [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: 01 07 00 [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: 01 07 00 E5 DC 00 00 00 00 00 C3 0C 97 [01:39:19]RasterBufferAndPrint [01:39:19]line [01:39:19]line [01:39:19]line [01:39:19]line [01:39:19]line [01:39:19]written 0, free lines is 3273 [01:39:19]MH_Cut [01:39:19]Write to MH i2c: D1 01 00 EC DC 01 9A [01:39:19]Write i2c OK [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: D1 [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: D1 01 00 [01:39:19]MH_I2C_Read... [01:39:19]Read from MH i2c: D1 01 00 EC DC 00 99 [01:39:19]Write to MH i2c: 01 00 00 ED DC C9 [01:39:19]Write i2c OK [01:39:19]MH_I2C_Read... [01:39:19]OFD Sender: No OFD packet to send [01:39:20]*** Cut start [01:39:20]*** Partial cut [01:39:20]*** CUTSNS_PIN = 1 [01:39:20]*** CUTSNS_PIN = 0 [01:39:20]*** Brake cut motor [01:39:20]Read from MH i2c: 01 [01:39:20]MH_I2C_Read... [01:39:20]*** Stop cut motor [01:39:20]*** Cut end [01:39:20]Read from MH i2c: 01 07 00 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: 01 07 00 ED DC 00 00 00 00 00 FF 0F DE [01:39:20]process_action close_receipt done [01:39:20]requested_data is exist [01:39:20]produce_requested_data [01:39:20]requested_item fm.sn is exist - process it [01:39:20]wFMCommunicate request_size=4 [01:39:20]MH_SAM_APDU [01:39:20]CAPDU: 80 11 00 00 [01:39:20]Write to MH i2c: E2 08 00 EE DC 80 11 00 00 00 00 00 00 44 [01:39:20]Write i2c OK [01:39:20]MH_I2C_Read... [01:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:20]Read from MH i2c: E2 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 17 00 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 17 00 EE DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [01:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:39:20]wFMCommunicate OK [01:39:20]requested_item fd.num is exist - process it [01:39:20]SAM_PROTO_GetFieldsCounters [01:39:20]wFMCommunicate request_size=4 [01:39:20]MH_SAM_APDU [01:39:20]CAPDU: 80 13 00 00 [01:39:20]Write to MH i2c: E2 08 00 EF DC 80 13 00 00 00 00 00 00 47 [01:39:20]Write i2c OK [01:39:20]MH_I2C_Read... [01:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:20]Read from MH i2c: E2 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 62 00 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 62 00 EF DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [01:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:20]wFMCommunicate OK [01:39:20]SAM_PROTO_GetFieldsCounters done [01:39:20]requested_item shift.num is exist - process it [01:39:20]requested_item shift.opened is exist - process it [01:39:20]req_shift_opened [01:39:20]FM_GetShiftState [01:39:20]SAM_PROTO_GetShiftState [01:39:20]wFMCommunicate request_size=4 [01:39:20]MH_SAM_APDU [01:39:20]CAPDU: 80 13 01 00 [01:39:20]Write to MH i2c: E2 08 00 F0 DC 80 13 01 00 00 00 00 00 49 [01:39:20]Write i2c OK [01:39:20]MH_I2C_Read... [01:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:20]Read from MH i2c: E2 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 0E 00 [01:39:20]MH_I2C_Read... [01:39:20]Read from MH i2c: E2 0E 00 F0 DC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C2 [01:39:20]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:39:20]wFMCommunicate OK [01:39:20]SAM_PROTO_GetShiftState done [01:39:20]FM_GetShiftState done [01:39:20]req_shift_opened done [01:39:20]requested_item shift.open_date is exist - process it [01:39:20]req_shift_open_date [01:39:20]req_shift_open_date done [01:39:20]produce_requested_data done [01:39:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191638,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [01:39:20]process_action_free close_receipt [01:39:20]json_value_free [01:39:20]json_value_free done [01:39:20]process_json_proto returns [01:39:20]Send response to host [01:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191638,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [01:39:20]free response buf [01:39:20]execute_script done [01:39:20]execute_script returns [01:39:20]free content buf [01:39:20]Sock 8.Close socket [01:39:20]Sock 8.Thread stoped [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]accept exits with 9 [01:43:19]New connection [01:43:19]New thread 3066961252 created [01:43:19]Thread 3066817892 joined [01:43:19]Waiting for new connection... [01:43:19] Sock 9.Parse request [01:43:19]Sock 9.Check first char [01:43:19]Sock 9.First char is OK [01:43:19]request: POST /json_proto HTTP/1.0 [01:43:19]Method: POST [01:43:19]URL: /json_proto [01:43:19]Method is POST - this is cgi request [01:43:19]url: /json_proto [01:43:19]query_string will be loaded in cgi processing [01:43:19]execute_cgi json_proto POST (null) [01:43:19]execute_cgi path=json_proto method=POST [01:43:19]POST find Content-Length [01:43:19]Host: 172.17.63.131:8080 [01:43:19]Content-Length: 804 [01:43:19]Content-Type: application/json [01:43:19] [01:43:19]POST finish read [01:43:19]Found Content-Length = 804 [01:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:19]execute_script... [01:43: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)30941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:19]POST & json_proto [01:43:19]process_json_proto [01:43:19]json parsed OK: [01:43:19]protocol is kg_v1.0 [01:43:19]action value=close_receipt [01:43:19]process_action close_receipt [01:43:19]cmd_close_receipt [01:43:19]MH_GetDate [01:43:19]Write to MH i2c: F0 00 00 F1 DC BC [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: F0 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: F0 09 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: F0 09 00 F1 DC 00 43 49 1C 67 22 05 6E 64 CD [01:43:19]GetLastDocTimeStamp 1729906768 [01:43:19]current date 1729907011 [01:43:19]FM_GetShiftState [01:43:19]SAM_PROTO_GetShiftState [01:43:19]wFMCommunicate request_size=4 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 13 01 00 [01:43:19]Write to MH i2c: E2 08 00 F2 DC 80 13 01 00 00 00 00 00 4B [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 0E 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 0E 00 F2 DC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C4 [01:43:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:43:19]wFMCommunicate OK [01:43:19]SAM_PROTO_GetShiftState done [01:43:19]FM_GetShiftState done [01:43:19]opened in 1729902770 [01:43:19]opened+sec_in_day 1729989170 [01:43:19]quantity*price = 30038 [01:43:19]sum+1 = 30039 [01:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 2 26.10.2024 01:43 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 191639 ФПД: 111323115458689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T014331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191639&fm=111323115458689&tin=02508201610067®Number=0000000000091776&sum=30038 [01:43:20]StoreToDocumentArchive [01:43:20]shift 541 fd 191639 [01:43:20]save to /storage/0541/doc_00191639 [01:43:20]save last doc name /storage/0541/doc_00191639 to /storage/kkm_last_doc_name [01:43:20]save OK [01:43:20]Clear old archive folders... [01:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:43:20]tlvbuf is 019D2500 [01:43:20]SAM_PROTO_ClearQueue [01:43:20]wFMCommunicate request_size=4 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 09 00 00 [01:43:20]Write to MH i2c: E2 08 00 FF DC 80 09 00 00 00 00 00 00 4D [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 FF DC 00 90 00 4F [01:43:20]RAPDU: 90 00 [01:43:20]wFMCommunicate OK [01:43:20]SAM_PROTO_ClearQueue done [01:43:20]KKMCreateOFDPacket [01:43:20]OFDProtocolAddRootSTLVToBuf [01:43:20]FM_MakeSignedData [01:43:20]FM_MakeSignedData [01:43:20]SAM_PROTO_SignData [01:43:20]wFMCommunicate request_size=4 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 0D 01 02 [01:43:20]Write to MH i2c: E2 08 00 00 DD 80 0D 01 02 00 00 00 00 56 [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 00 DD 00 90 00 51 [01:43:20]RAPDU: 90 00 [01:43:20]wFMCommunicate OK [01:43:20]wFMCommunicate request_size=255 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 43 49 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EC 02 00 35 04 06 00 65 [01:43:20]Write to MH i2c: E2 02 01 01 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 43 49 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EC 02 00 35 04 06 00 65 00 00 44 [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 01 DD 00 90 00 52 [01:43:20]RAPDU: 90 00 [01:43:20]wFMCommunicate OK [01:43:20]wFMCommunicate request_size=10 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 0D 02 02 05 3F 6E C0 90 81 [01:43:20]Write to MH i2c: E2 0D 00 02 DD 80 0D 02 02 05 00 3F 6E C0 90 81 00 00 E1 [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 03 00 02 DD 00 90 00 53 [01:43:20]RAPDU: 90 00 [01:43:20]wFMCommunicate OK [01:43:20]wFMCommunicate request_size=4 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 0D 03 02 [01:43:20]Write to MH i2c: E2 08 00 03 DD 80 0D 03 02 00 00 00 00 5B [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 0B 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 0B 00 03 DD 00 F9 C3 79 44 E3 6B 83 F5 90 00 9B [01:43:20]RAPDU: F9 C3 79 44 E3 6B 83 F5 90 00 [01:43:20]wFMCommunicate OK [01:43:20]SAM_PROTO_SignData done [01:43:20]FM_MakeSignedData done [01:43:20]CreateOFDProtocolMessage [01:43:20]wFMCommunicate request_size=4 [01:43:20]MH_SAM_APDU [01:43:20]CAPDU: 80 11 00 00 [01:43:20]Write to MH i2c: E2 08 00 04 DD 80 11 00 00 00 00 00 00 5B [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:20]Read from MH i2c: E2 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 17 00 [01:43:20]MH_I2C_Read... [01:43:20]Read from MH i2c: E2 17 00 04 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [01:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:43:20]wFMCommunicate OK [01:43:20]CreateOFDProtocolMessage done [01:43:20]OFDSenderStorePacket 191639 [01:43:20]StoreOFDPacket docnum=191639 [01:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 87 07 01 22 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 43 49 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EC 02 00 35 04 06 00 65 3F 6E C0 90 81 F9 C3 79 44 E3 6B 83 F5 [01:43:20]CheckFolder [01:43:20]dirname=/storage/ofd_packets [01:43:20]CheckFolder done [01:43:20]ProducePacketName [01:43:20]name=ofd_packets/00191639 [01:43:20]NVStorageSaveData ofd_packets/00191639 [01:43:20]File name is /storage/ofd_packets/00191639 [01:43:20]Write 301 bytes [01:43:20]NVStorageSaveData done [01:43:20]OFDSenderStorePacket done [01:43:20]KKMCreateOFDPacket done [01:43:20]NVStorageSaveData kkm_last_timestamp [01:43:20]File name is /storage/kkm_last_timestamp [01:43:20]Write 4 bytes [01:43:20]NVStorageSaveData done [01:43:20]ExternCall_PrintAddStr [01:43:20]wPrintStart [01:43:20]Write to MH i2c: 01 00 00 05 DD E2 [01:43:20]Write i2c OK [01:43:20]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 07 00 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 07 00 05 DD 00 00 00 00 00 FF 0F F7 [01:43:21]RasterBufferAndPrint [01:43:21]line Счет N : (1)30941 [01:43:21]line ИНН: 02508201610067 [01:43:21]line Контрольно-Кассовый Чек [01:43:21]line ПРОДАЖА [01:43:21]line ТРК (МРК, ГНК) : 21 [01:43:21]line Товар: 2710124130 [01:43:21]line Аи-92-К-5 [01:43:21]line 4.490 * 66.90 [01:43:21]line = 300.38 [01:43:21]line НДС 12% НСП 1% [01:43:21]line > о реализуемом товаре [01:43:21]line ИТОГО: 300.38 [01:43:21]line НСП 1% : 2.66 [01:43:21]line НДС 12% : 31.90 [01:43:21]line Наличными: 0.00 [01:43:21]line Безнал.: 300.38 [01:43:21]line Место: АЗС № 170 "Партнер Нефть" [01:43:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:43:21]line СНО: Общий режим [01:43:21]line Чек 2 26.10.2024 01:43 [01:43:21]line Смена: 541 ФФД: 1.0 [01:43:21]line ЗНМ: 0300000110 [01:43:21]line РНМ: 0000000000091776 [01:43:21]line Версия ККМ: 001 [01:43:21]line Платежная система: О! деньги [01:43:21]line ФМ: 0000000000871754 [01:43:21]line ФД: 191639 [01:43:21]line ФПД: 111323115458689 [01:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T014331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191639&fm=111323115458689&tin=02508201610067®Number=0000000000091776&sum=30038 [01:43:21]OFD Sender: Processing packet 191639 [packets to send 75, broken 74] [01:43:21]ProducePacketName [01:43:21]name=ofd_packets/00191639 [01:43:21]OFD Sender: To server: pG, [01:43:21]CommunicateWithHost lk.salyk.kg:30040 [01:43:21]ConnectInit lk.salyk.kg [01:43:21]written 0, free lines is 4095 [01:43:21]Connected sock=10 [01:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 87 07 01 22 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 43 49 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EC 02 00 35 04 06 00 65 3F 6E C0 90 81 F9 C3 79 44 E3 6B 83 F5 [01:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 6F 47 00 4F 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 31 37 35 34 10 04 04 00 97 EC 02 00 F4 03 04 00 10 EE 1B 67 B6 04 01 00 00 1F F9 84 32 8D 86 DD BD [01:43:21]CommunicateWithHost err = 0 [01:43:21]CheckOFDResponse [01:43:21]1017 (14) - 77093643461234 [01:43:21]1041 (16) - 0000000000871754 [01:43:21]1040 (4) - 191639 [01:43:21]1012 (4) - 25.10.2024 19:14 [01:43:21]1206 (1) - 0 [01:43:21]OFD Sender: Remove packet 191639 [01:43:21]ProducePacketName [01:43:21]name=ofd_packets/00191639 [01:43:21]NVStorageDeleteData [01:43:21]Write to MH i2c: 01 00 00 2F DD 0C [01:43:21]Write i2c OK [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 07 00 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: 01 07 00 2F DD 00 00 00 00 00 D3 0C F2 [01:43:21]RasterBufferAndPrint [01:43:21]line [01:43:21]line [01:43:21]line [01:43:21]line [01:43:21]line [01:43:21]written 0, free lines is 3289 [01:43:21]MH_Cut [01:43:21]Write to MH i2c: D1 01 00 36 DD 01 E5 [01:43:21]Write i2c OK [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: D1 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: D1 01 00 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: D1 01 00 36 DD 00 E4 [01:43:21]Write to MH i2c: 01 00 00 37 DD 14 [01:43:21]Write i2c OK [01:43:21]MH_I2C_Read... [01:43:22]OFD Sender: No OFD packet to send [01:43:22]*** Cut start [01:43:22]*** Partial cut [01:43:22]*** CUTSNS_PIN = 1 [01:43:22]*** CUTSNS_PIN = 0 [01:43:22]*** Brake cut motor [01:43:23]Read from MH i2c: 01 [01:43:23]MH_I2C_Read... [01:43:23]*** Stop cut motor [01:43:23]*** Cut end [01:43:23]Read from MH i2c: 01 07 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: 01 07 00 37 DD 00 00 00 00 00 FF 0F 29 [01:43:23]process_action close_receipt done [01:43:23]requested_data is exist [01:43:23]produce_requested_data [01:43:23]requested_item fm.sn is exist - process it [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 11 00 00 [01:43:23]Write to MH i2c: E2 08 00 38 DD 80 11 00 00 00 00 00 00 8F [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 17 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 17 00 38 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [01:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:43:23]wFMCommunicate OK [01:43:23]requested_item fd.num is exist - process it [01:43:23]SAM_PROTO_GetFieldsCounters [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 13 00 00 [01:43:23]Write to MH i2c: E2 08 00 39 DD 80 13 00 00 00 00 00 00 92 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 62 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 62 00 39 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [01:43:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:43:23]wFMCommunicate OK [01:43:23]SAM_PROTO_GetFieldsCounters done [01:43:23]requested_item shift.num is exist - process it [01:43:23]requested_item shift.opened is exist - process it [01:43:23]req_shift_opened [01:43:23]FM_GetShiftState [01:43:23]SAM_PROTO_GetShiftState [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 13 01 00 [01:43:23]Write to MH i2c: E2 08 00 3A DD 80 13 01 00 00 00 00 00 94 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 0E 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 0E 00 3A DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0D [01:43:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:43:23]wFMCommunicate OK [01:43:23]SAM_PROTO_GetShiftState done [01:43:23]FM_GetShiftState done [01:43:23]req_shift_opened done [01:43:23]requested_item shift.open_date is exist - process it [01:43:23]req_shift_open_date [01:43:23]req_shift_open_date done [01:43:23]produce_requested_data done [01:43:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191639,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [01:43:23]process_action_free close_receipt [01:43:23]json_value_free [01:43:23]json_value_free done [01:43:23]process_json_proto returns [01:43:23]Send response to host [01:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191639,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [01:43:23]free response buf [01:43:23]execute_script done [01:43:23]execute_script returns [01:43:23]free content buf [01:43:23]Sock 9.Close socket [01:43:23]Sock 9.Thread stoped [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:33]accept exits with 8 [01:48:33]New connection [01:48:33]New thread 3066817892 created [01:48:33]Thread 3066961252 joined [01:48:33]Waiting for new connection... [01:48:33] Sock 8.Parse request [01:48:33]Sock 8.Check first char [01:48:33]Sock 8.First char is OK [01:48:33]request: POST /json_proto HTTP/1.0 [01:48:33]Method: POST [01:48:33]URL: /json_proto [01:48:33]Method is POST - this is cgi request [01:48:33]url: /json_proto [01:48:33]query_string will be loaded in cgi processing [01:48:33]execute_cgi json_proto POST (null) [01:48:33]execute_cgi path=json_proto method=POST [01:48:33]POST find Content-Length [01:48:33]Host: 172.17.63.131:8080 [01:48:33]Content-Length: 676 [01:48:33]Content-Type: application/json [01:48:33] [01:48:33]POST finish read [01:48:33]Found Content-Length = 676 [01:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:33]execute_script... [01:48: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)30942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:33]POST & json_proto [01:48:33]process_json_proto [01:48:33]json parsed OK: [01:48:33]protocol is kg_v1.0 [01:48:33]action value=close_receipt [01:48:33]process_action close_receipt [01:48:33]cmd_close_receipt [01:48:33]MH_GetDate [01:48:33]Write to MH i2c: F0 00 00 3B DD 07 [01:48:33]Write i2c OK [01:48:33]MH_I2C_Read... [01:48:33]Read from MH i2c: F0 [01:48:33]MH_I2C_Read... [01:48:33]Read from MH i2c: F0 09 00 [01:48:33]MH_I2C_Read... [01:48:33]Read from MH i2c: F0 09 00 3B DD 00 7D 4A 1C 67 22 05 6E 64 53 [01:48:33]GetLastDocTimeStamp 1729907011 [01:48:33]current date 1729907325 [01:48:33]FM_GetShiftState [01:48:33]SAM_PROTO_GetShiftState [01:48:33]wFMCommunicate request_size=4 [01:48:33]MH_SAM_APDU [01:48:33]CAPDU: 80 13 01 00 [01:48:33]Write to MH i2c: E2 08 00 3C DD 80 13 01 00 00 00 00 00 96 [01:48:33]Write i2c OK [01:48:33]MH_I2C_Read... [01:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:33]Read from MH i2c: E2 [01:48:33]MH_I2C_Read... [01:48:33]Read from MH i2c: E2 0E 00 [01:48:33]MH_I2C_Read... [01:48:33]Read from MH i2c: E2 0E 00 3C DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0F [01:48:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:48:33]wFMCommunicate OK [01:48:33]SAM_PROTO_GetShiftState done [01:48:33]FM_GetShiftState done [01:48:33]opened in 1729902770 [01:48:33]opened+sec_in_day 1729989170 [01:48:33]quantity*price = 30038 [01:48:33]sum+1 = 30039 [01:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 3 26.10.2024 01:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191640 ФПД: 160052277398583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T014845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191640&fm=160052277398583&tin=02508201610067®Number=0000000000091776&sum=30000 [01:48:35]StoreToDocumentArchive [01:48:35]shift 541 fd 191640 [01:48:35]save to /storage/0541/doc_00191640 [01:48:35]save last doc name /storage/0541/doc_00191640 to /storage/kkm_last_doc_name [01:48:35]save OK [01:48:35]Clear old archive folders... [01:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:48:35]tlvbuf is 017093C0 [01:48:35]SAM_PROTO_ClearQueue [01:48:35]wFMCommunicate request_size=4 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 09 00 00 [01:48:35]Write to MH i2c: E2 08 00 49 DD 80 09 00 00 00 00 00 00 98 [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 49 DD 00 90 00 9A [01:48:35]RAPDU: 90 00 [01:48:35]wFMCommunicate OK [01:48:35]SAM_PROTO_ClearQueue done [01:48:35]KKMCreateOFDPacket [01:48:35]OFDProtocolAddRootSTLVToBuf [01:48:35]FM_MakeSignedData [01:48:35]FM_MakeSignedData [01:48:35]SAM_PROTO_SignData [01:48:35]wFMCommunicate request_size=4 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 0D 01 02 [01:48:35]Write to MH i2c: E2 08 00 4A DD 80 0D 01 02 00 00 00 00 A0 [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 4A DD 00 90 00 9B [01:48:35]RAPDU: 90 00 [01:48:35]wFMCommunicate OK [01:48:35]wFMCommunicate request_size=255 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 7D 4A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EC 02 00 35 04 06 00 91 [01:48:35]Write to MH i2c: E2 02 01 4B DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 7D 4A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EC 02 00 35 04 06 00 91 00 00 AB [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 4B DD 00 90 00 9C [01:48:35]RAPDU: 90 00 [01:48:35]wFMCommunicate OK [01:48:35]wFMCommunicate request_size=10 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 0D 02 02 05 91 13 23 CC 37 [01:48:35]Write to MH i2c: E2 0D 00 4C DD 80 0D 02 02 05 00 91 13 23 CC 37 00 00 77 [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 03 00 4C DD 00 90 00 9D [01:48:35]RAPDU: 90 00 [01:48:35]wFMCommunicate OK [01:48:35]wFMCommunicate request_size=4 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 0D 03 02 [01:48:35]Write to MH i2c: E2 08 00 4D DD 80 0D 03 02 00 00 00 00 A5 [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 0B 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 0B 00 4D DD 00 62 73 C5 C4 FC 55 0B 16 90 00 76 [01:48:35]RAPDU: 62 73 C5 C4 FC 55 0B 16 90 00 [01:48:35]wFMCommunicate OK [01:48:35]SAM_PROTO_SignData done [01:48:35]FM_MakeSignedData done [01:48:35]CreateOFDProtocolMessage [01:48:35]wFMCommunicate request_size=4 [01:48:35]MH_SAM_APDU [01:48:35]CAPDU: 80 11 00 00 [01:48:35]Write to MH i2c: E2 08 00 4E DD 80 11 00 00 00 00 00 00 A5 [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:35]Read from MH i2c: E2 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 17 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: E2 17 00 4E DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [01:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:48:35]wFMCommunicate OK [01:48:35]CreateOFDProtocolMessage done [01:48:35]OFDSenderStorePacket 191640 [01:48:35]StoreOFDPacket docnum=191640 [01:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 F7 07 01 CE 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 7D 4A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EC 02 00 35 04 06 00 91 91 13 23 CC 37 62 73 C5 C4 FC 55 0B 16 [01:48:35]CheckFolder [01:48:35]dirname=/storage/ofd_packets [01:48:35]CheckFolder done [01:48:35]ProducePacketName [01:48:35]name=ofd_packets/00191640 [01:48:35]NVStorageSaveData ofd_packets/00191640 [01:48:35]File name is /storage/ofd_packets/00191640 [01:48:35]Write 301 bytes [01:48:35]NVStorageSaveData done [01:48:35]OFDSenderStorePacket done [01:48:35]KKMCreateOFDPacket done [01:48:35]NVStorageSaveData kkm_last_timestamp [01:48:35]File name is /storage/kkm_last_timestamp [01:48:35]Write 4 bytes [01:48:35]NVStorageSaveData done [01:48:35]ExternCall_PrintAddStr [01:48:35]wPrintStart [01:48:35]Write to MH i2c: 01 00 00 4F DD 2C [01:48:35]Write i2c OK [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: 01 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: 01 07 00 [01:48:35]MH_I2C_Read... [01:48:35]Read from MH i2c: 01 07 00 4F DD 00 00 00 00 00 FF 0F 41 [01:48:35]RasterBufferAndPrint [01:48:35]line Счет N : (1)30942 [01:48:35]line ИНН: 02508201610067 [01:48:35]line Контрольно-Кассовый Чек [01:48:35]line ПРОДАЖА [01:48:35]line ТРК (МРК, ГНК) : 21 [01:48:35]line Товар: 2710124130 [01:48:35]line Аи-92-К-5 [01:48:35]line 4.490 * 66.90 [01:48:35]line = 300.38 [01:48:35]line НДС 12% НСП 1% [01:48:35]line > о реализуемом товаре [01:48:35]line ОКРУГЛЕНИЕ: -0.38 [01:48:35]line ИТОГО: 300.00 [01:48:35]line Внесено: 300.00 [01:48:35]line СДАЧА: 0.00 [01:48:35]line НСП 1% : 2.66 [01:48:35]line НДС 12% : 31.90 [01:48:35]line Наличными: 300.00 [01:48:35]line Безнал.: 0.00 [01:48:35]line Место: АЗС № 170 "Партнер Нефть" [01:48:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:48:35]line СНО: Общий режим [01:48:35]line Чек 3 26.10.2024 01:48 [01:48:35]line Смена: 541 ФФД: 1.0 [01:48:35]line ЗНМ: 0300000110 [01:48:35]line РНМ: 0000000000091776 [01:48:35]line Версия ККМ: 001 [01:48:35]line ФМ: 0000000000871754 [01:48:35]line ФД: 191640 [01:48:35]line ФПД: 160052277398583 [01:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T014845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191640&fm=160052277398583&tin=02508201610067®Number=0000000000091776&sum=30000 [01:48:35]written 0, free lines is 4095 [01:48:35]OFD Sender: Processing packet 191640 [packets to send 75, broken 74] [01:48:35]ProducePacketName [01:48:35]name=ofd_packets/00191640 [01:48:35]OFD Sender: To server: pG, [01:48:35]CommunicateWithHost lk.salyk.kg:30040 [01:48:35]ConnectInit lk.salyk.kg [01:48:35]Connected sock=11 [01:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 F7 07 01 CE 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 7D 4A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EC 02 00 35 04 06 00 91 91 13 23 CC 37 62 73 C5 C4 FC 55 0B 16 [01:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 95 47 00 C3 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EC 02 00 F4 03 04 00 4A EF 1B 67 B6 04 01 00 00 AE 54 02 9B 8C 26 0A 4E [01:48:35]CommunicateWithHost err = 0 [01:48:35]CheckOFDResponse [01:48:35]1017 (14) - 77093643461234 [01:48:35]1041 (16) - 0000000000871754 [01:48:35]1040 (4) - 191640 [01:48:35]1012 (4) - 25.10.2024 19:19 [01:48:35]1206 (1) - 0 [01:48:35]OFD Sender: Remove packet 191640 [01:48:35]ProducePacketName [01:48:35]name=ofd_packets/00191640 [01:48:35]NVStorageDeleteData [01:48:36]Write to MH i2c: 01 00 00 7A DD 57 [01:48:36]Write i2c OK [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: 01 [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: 01 07 00 [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: 01 07 00 7A DD 00 00 00 00 00 CB 0C 35 [01:48:36]RasterBufferAndPrint [01:48:36]line [01:48:36]line [01:48:36]line [01:48:36]line [01:48:36]line [01:48:36]written 0, free lines is 3281 [01:48:36]MH_Cut [01:48:36]Write to MH i2c: D1 01 00 81 DD 01 30 [01:48:36]Write i2c OK [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: D1 [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: D1 01 00 [01:48:36]MH_I2C_Read... [01:48:36]Read from MH i2c: D1 01 00 81 DD 00 2F [01:48:36]Write to MH i2c: 01 00 00 82 DD 5F [01:48:36]Write i2c OK [01:48:36]MH_I2C_Read... [01:48:36]OFD Sender: No OFD packet to send [01:48:36]*** Cut start [01:48:36]*** Partial cut [01:48:36]*** CUTSNS_PIN = 1 [01:48:36]*** CUTSNS_PIN = 0 [01:48:37]*** Brake cut motor [01:48:37]Read from MH i2c: 01 [01:48:37]MH_I2C_Read... [01:48:37]*** Stop cut motor [01:48:37]*** Cut end [01:48:37]Read from MH i2c: 01 07 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 82 DD 00 00 00 00 00 FF 0F 74 [01:48:37]process_action close_receipt done [01:48:37]requested_data is exist [01:48:37]produce_requested_data [01:48:37]requested_item fm.sn is exist - process it [01:48:37]wFMCommunicate request_size=4 [01:48:37]MH_SAM_APDU [01:48:37]CAPDU: 80 11 00 00 [01:48:37]Write to MH i2c: E2 08 00 83 DD 80 11 00 00 00 00 00 00 DA [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:37]Read from MH i2c: E2 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 17 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 17 00 83 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [01:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:48:37]wFMCommunicate OK [01:48:37]requested_item fd.num is exist - process it [01:48:37]SAM_PROTO_GetFieldsCounters [01:48:37]wFMCommunicate request_size=4 [01:48:37]MH_SAM_APDU [01:48:37]CAPDU: 80 13 00 00 [01:48:37]Write to MH i2c: E2 08 00 84 DD 80 13 00 00 00 00 00 00 DD [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:37]Read from MH i2c: E2 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 62 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 62 00 84 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [01:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:48:37]wFMCommunicate OK [01:48:37]SAM_PROTO_GetFieldsCounters done [01:48:37]requested_item shift.num is exist - process it [01:48:37]requested_item shift.opened is exist - process it [01:48:37]req_shift_opened [01:48:37]FM_GetShiftState [01:48:37]SAM_PROTO_GetShiftState [01:48:37]wFMCommunicate request_size=4 [01:48:37]MH_SAM_APDU [01:48:37]CAPDU: 80 13 01 00 [01:48:37]Write to MH i2c: E2 08 00 85 DD 80 13 01 00 00 00 00 00 DF [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:37]Read from MH i2c: E2 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 0E 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: E2 0E 00 85 DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 58 [01:48:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:48:37]wFMCommunicate OK [01:48:37]SAM_PROTO_GetShiftState done [01:48:37]FM_GetShiftState done [01:48:37]req_shift_opened done [01:48:37]requested_item shift.open_date is exist - process it [01:48:37]req_shift_open_date [01:48:37]req_shift_open_date done [01:48:37]produce_requested_data done [01:48:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191640,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [01:48:37]process_action_free close_receipt [01:48:37]json_value_free [01:48:37]json_value_free done [01:48:37]process_json_proto returns [01:48:37]Send response to host [01:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191640,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [01:48:37]free response buf [01:48:37]execute_script done [01:48:37]execute_script returns [01:48:37]free content buf [01:48:37]Sock 8.Close socket [01:48:37]Sock 8.Thread stoped [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:39]accept exits with 9 [01:54:39]New connection [01:54:39]New thread 3066961252 created [01:54:39]Thread 3066817892 joined [01:54:39]Waiting for new connection... [01:54:39] Sock 9.Parse request [01:54:39]Sock 9.Check first char [01:54:39]Sock 9.First char is OK [01:54:39]request: POST /json_proto HTTP/1.0 [01:54:39]Method: POST [01:54:39]URL: /json_proto [01:54:39]Method is POST - this is cgi request [01:54:39]url: /json_proto [01:54:39]query_string will be loaded in cgi processing [01:54:39]execute_cgi json_proto POST (null) [01:54:39]execute_cgi path=json_proto method=POST [01:54:39]POST find Content-Length [01:54:39]Host: 172.17.63.131:8080 [01:54:39]Content-Length: 676 [01:54:39]Content-Type: application/json [01:54:39] [01:54:39]POST finish read [01:54:39]Found Content-Length = 676 [01:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [01:54:39]execute_script... [01: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)30943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [01:54:39]POST & json_proto [01:54:39]process_json_proto [01:54:39]json parsed OK: [01:54:39]protocol is kg_v1.0 [01:54:39]action value=close_receipt [01:54:39]process_action close_receipt [01:54:39]cmd_close_receipt [01:54:39]MH_GetDate [01:54:39]Write to MH i2c: F0 00 00 86 DD 52 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: F0 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: F0 09 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: F0 09 00 86 DD 00 EB 4B 1C 67 22 05 6E 64 0D [01:54:39]GetLastDocTimeStamp 1729907325 [01:54:39]current date 1729907691 [01:54:39]FM_GetShiftState [01:54:39]SAM_PROTO_GetShiftState [01:54:39]wFMCommunicate request_size=4 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 13 01 00 [01:54:39]Write to MH i2c: E2 08 00 87 DD 80 13 01 00 00 00 00 00 E1 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 0E 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 0E 00 87 DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5A [01:54:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:54:39]wFMCommunicate OK [01:54:39]SAM_PROTO_GetShiftState done [01:54:39]FM_GetShiftState done [01:54:39]opened in 1729902770 [01:54:39]opened+sec_in_day 1729989170 [01:54:39]quantity*price = 35055 [01:54:39]sum+1 = 35057 [01:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 4 26.10.2024 01:54 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191641 ФПД: 187539556283558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T015451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191641&fm=187539556283558&tin=02508201610067®Number=0000000000091776&sum=35000 [01:54:40]StoreToDocumentArchive [01:54:40]shift 541 fd 191641 [01:54:40]save to /storage/0541/doc_00191641 [01:54:40]save last doc name /storage/0541/doc_00191641 to /storage/kkm_last_doc_name [01:54:40]save OK [01:54:40]Clear old archive folders... [01:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:54:40]tlvbuf is 01789C20 [01:54:40]SAM_PROTO_ClearQueue [01:54:40]wFMCommunicate request_size=4 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 09 00 00 [01:54:40]Write to MH i2c: E2 08 00 94 DD 80 09 00 00 00 00 00 00 E3 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 94 DD 00 90 00 E5 [01:54:40]RAPDU: 90 00 [01:54:40]wFMCommunicate OK [01:54:40]SAM_PROTO_ClearQueue done [01:54:40]KKMCreateOFDPacket [01:54:40]OFDProtocolAddRootSTLVToBuf [01:54:40]FM_MakeSignedData [01:54:40]FM_MakeSignedData [01:54:40]SAM_PROTO_SignData [01:54:40]wFMCommunicate request_size=4 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 0D 01 02 [01:54:40]Write to MH i2c: E2 08 00 95 DD 80 0D 01 02 00 00 00 00 EB [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 95 DD 00 90 00 E6 [01:54:40]RAPDU: 90 00 [01:54:40]wFMCommunicate OK [01:54:40]wFMCommunicate request_size=255 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EB 4B 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EC 02 00 35 04 06 00 AA [01:54:40]Write to MH i2c: E2 02 01 96 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EB 4B 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EC 02 00 35 04 06 00 AA 00 00 97 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 96 DD 00 90 00 E7 [01:54:40]RAPDU: 90 00 [01:54:40]wFMCommunicate OK [01:54:40]wFMCommunicate request_size=10 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 0D 02 02 05 90 F4 A2 34 A6 [01:54:40]Write to MH i2c: E2 0D 00 97 DD 80 0D 02 02 05 00 90 F4 A2 34 A6 00 00 F8 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 03 00 97 DD 00 90 00 E8 [01:54:40]RAPDU: 90 00 [01:54:40]wFMCommunicate OK [01:54:40]wFMCommunicate request_size=4 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 0D 03 02 [01:54:40]Write to MH i2c: E2 08 00 98 DD 80 0D 03 02 00 00 00 00 F0 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 0B 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 0B 00 98 DD 00 BF C1 FC 41 E7 BC E4 5B 90 00 90 [01:54:40]RAPDU: BF C1 FC 41 E7 BC E4 5B 90 00 [01:54:40]wFMCommunicate OK [01:54:40]SAM_PROTO_SignData done [01:54:40]FM_MakeSignedData done [01:54:40]CreateOFDProtocolMessage [01:54:40]wFMCommunicate request_size=4 [01:54:40]MH_SAM_APDU [01:54:40]CAPDU: 80 11 00 00 [01:54:40]Write to MH i2c: E2 08 00 99 DD 80 11 00 00 00 00 00 00 F0 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:40]Read from MH i2c: E2 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 17 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: E2 17 00 99 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [01:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:54:40]wFMCommunicate OK [01:54:40]CreateOFDProtocolMessage done [01:54:40]OFDSenderStorePacket 191641 [01:54:40]StoreOFDPacket docnum=191641 [01:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 E6 07 01 F0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EB 4B 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EC 02 00 35 04 06 00 AA 90 F4 A2 34 A6 BF C1 FC 41 E7 BC E4 5B [01:54:40]CheckFolder [01:54:40]dirname=/storage/ofd_packets [01:54:40]CheckFolder done [01:54:40]ProducePacketName [01:54:40]name=ofd_packets/00191641 [01:54:40]NVStorageSaveData ofd_packets/00191641 [01:54:40]File name is /storage/ofd_packets/00191641 [01:54:40]Write 301 bytes [01:54:40]NVStorageSaveData done [01:54:40]OFDSenderStorePacket done [01:54:40]KKMCreateOFDPacket done [01:54:40]NVStorageSaveData kkm_last_timestamp [01:54:40]File name is /storage/kkm_last_timestamp [01:54:40]Write 4 bytes [01:54:40]NVStorageSaveData done [01:54:40]ExternCall_PrintAddStr [01:54:40]wPrintStart [01:54:40]Write to MH i2c: 01 00 00 9A DD 77 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 07 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 07 00 9A DD 00 00 00 00 00 FF 0F 8C [01:54:40]RasterBufferAndPrint [01:54:40]line Счет N : (1)30943 [01:54:40]line ИНН: 02508201610067 [01:54:40]line Контрольно-Кассовый Чек [01:54:40]line ПРОДАЖА [01:54:40]line ТРК (МРК, ГНК) : 12 [01:54:40]line Товар: 2710124130 [01:54:40]line Аи-92-К-5 [01:54:40]line 5.240 * 66.90 [01:54:40]line = 350.56 [01:54:40]line НДС 12% НСП 1% [01:54:40]line > о реализуемом товаре [01:54:40]line ОКРУГЛЕНИЕ: -0.56 [01:54:40]line ИТОГО: 350.00 [01:54:40]line Внесено: 350.00 [01:54:40]line СДАЧА: 0.00 [01:54:40]line НСП 1% : 3.10 [01:54:40]line НДС 12% : 37.23 [01:54:40]line Наличными: 350.00 [01:54:40]line Безнал.: 0.00 [01:54:40]line Место: АЗС № 170 "Партнер Нефть" [01:54:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:54:40]line СНО: Общий режим [01:54:40]line Чек 4 26.10.2024 01:54 [01:54:40]line Смена: 541 ФФД: 1.0 [01:54:40]line ЗНМ: 0300000110 [01:54:40]line РНМ: 0000000000091776 [01:54:40]line Версия ККМ: 001 [01:54:40]line ФМ: 0000000000871754 [01:54:40]line ФД: 191641 [01:54:40]line ФПД: 187539556283558 [01:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T015451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191641&fm=187539556283558&tin=02508201610067®Number=0000000000091776&sum=35000 [01:54:41]OFD Sender: Processing packet 191641 [packets to send 75, broken 74] [01:54:41]ProducePacketName [01:54:41]name=ofd_packets/00191641 [01:54:41]OFD Sender: To server: pG, [01:54:41]CommunicateWithHost lk.salyk.kg:30040 [01:54:41]ConnectInit lk.salyk.kg [01:54:41]written 0, free lines is 4095 [01:54:41]Connected sock=10 [01: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 31 37 35 34 0F 01 00 00 F3 E6 07 01 F0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EB 4B 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EC 02 00 35 04 06 00 AA 90 F4 A2 34 A6 BF C1 FC 41 E7 BC E4 5B [01:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF 52 47 00 7D B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EC 02 00 F4 03 04 00 B7 F0 1B 67 B6 04 01 00 00 D4 80 65 6E E2 D1 2A 6F [01:54:41]CommunicateWithHost err = 0 [01:54:41]CheckOFDResponse [01:54:41]1017 (14) - 77093643461234 [01:54:41]1041 (16) - 0000000000871754 [01:54:41]1040 (4) - 191641 [01:54:41]1012 (4) - 25.10.2024 19:25 [01:54:41]1206 (1) - 0 [01:54:41]OFD Sender: Remove packet 191641 [01:54:41]ProducePacketName [01:54:41]name=ofd_packets/00191641 [01:54:41]NVStorageDeleteData [01:54:41]Write to MH i2c: 01 00 00 C5 DD A2 [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: 01 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: 01 07 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: 01 07 00 C5 DD 00 00 00 00 00 C5 0C 7A [01:54:41]RasterBufferAndPrint [01:54:41]line [01:54:41]line [01:54:41]line [01:54:41]line [01:54:41]line [01:54:41]written 0, free lines is 3275 [01:54:41]MH_Cut [01:54:41]Write to MH i2c: D1 01 00 CC DD 01 7B [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: D1 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: D1 01 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: D1 01 00 CC DD 00 7A [01:54:41]Write to MH i2c: 01 00 00 CD DD AA [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]OFD Sender: No OFD packet to send [01:54:42]*** Cut start [01:54:42]*** Partial cut [01:54:42]*** CUTSNS_PIN = 1 [01:54:42]*** CUTSNS_PIN = 0 [01:54:42]*** Brake cut motor [01:54:42]Read from MH i2c: 01 [01:54:42]MH_I2C_Read... [01:54:42]*** Stop cut motor [01:54:42]*** Cut end [01:54:42]Read from MH i2c: 01 07 00 [01:54:42]MH_I2C_Read... [01:54:42]Read from MH i2c: 01 07 00 CD DD 00 00 00 00 00 FF 0F BF [01:54:42]process_action close_receipt done [01:54:42]requested_data is exist [01:54:42]produce_requested_data [01:54:42]requested_item fm.sn is exist - process it [01:54:42]wFMCommunicate request_size=4 [01:54:42]MH_SAM_APDU [01:54:42]CAPDU: 80 11 00 00 [01:54:42]Write to MH i2c: E2 08 00 CE DD 80 11 00 00 00 00 00 00 25 [01:54:42]Write i2c OK [01:54:42]MH_I2C_Read... [01:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:43]Read from MH i2c: E2 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 17 00 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 17 00 CE DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [01:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:54:43]wFMCommunicate OK [01:54:43]requested_item fd.num is exist - process it [01:54:43]SAM_PROTO_GetFieldsCounters [01:54:43]wFMCommunicate request_size=4 [01:54:43]MH_SAM_APDU [01:54:43]CAPDU: 80 13 00 00 [01:54:43]Write to MH i2c: E2 08 00 CF DD 80 13 00 00 00 00 00 00 28 [01:54:43]Write i2c OK [01:54:43]MH_I2C_Read... [01:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:54:43]Read from MH i2c: E2 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 62 00 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 62 00 CF DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [01: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:54:43]wFMCommunicate OK [01:54:43]SAM_PROTO_GetFieldsCounters done [01:54:43]requested_item shift.num is exist - process it [01:54:43]requested_item shift.opened is exist - process it [01:54:43]req_shift_opened [01:54:43]FM_GetShiftState [01:54:43]SAM_PROTO_GetShiftState [01:54:43]wFMCommunicate request_size=4 [01:54:43]MH_SAM_APDU [01:54:43]CAPDU: 80 13 01 00 [01:54:43]Write to MH i2c: E2 08 00 D0 DD 80 13 01 00 00 00 00 00 2A [01:54:43]Write i2c OK [01:54:43]MH_I2C_Read... [01:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:43]Read from MH i2c: E2 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 0E 00 [01:54:43]MH_I2C_Read... [01:54:43]Read from MH i2c: E2 0E 00 D0 DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A3 [01:54:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [01:54:43]wFMCommunicate OK [01:54:43]SAM_PROTO_GetShiftState done [01:54:43]FM_GetShiftState done [01:54:43]req_shift_opened done [01:54:43]requested_item shift.open_date is exist - process it [01:54:43]req_shift_open_date [01:54:43]req_shift_open_date done [01:54:43]produce_requested_data done [01:54:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191641,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [01:54:43]process_action_free close_receipt [01:54:43]json_value_free [01:54:43]json_value_free done [01:54:43]process_json_proto returns [01:54:43]Send response to host [01:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191641,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [01:54:43]free response buf [01:54:43]execute_script done [01:54:43]execute_script returns [01:54:43]free content buf [01:54:43]Sock 9.Close socket [01:54:43]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]accept exits with 8 [02:08:02]New connection [02:08:02]New thread 3066817892 created [02:08:02]Thread 3066961252 joined [02:08:02]Waiting for new connection... [02:08:02] Sock 8.Parse request [02:08:02]Sock 8.Check first char [02:08:02]Sock 8.First char is OK [02:08:02]request: POST /json_proto HTTP/1.0 [02:08:02]Method: POST [02:08:02]URL: /json_proto [02:08:02]Method is POST - this is cgi request [02:08:02]url: /json_proto [02:08:02]query_string will be loaded in cgi processing [02:08:02]execute_cgi json_proto POST (null) [02:08:02]execute_cgi path=json_proto method=POST [02:08:02]POST find Content-Length [02:08:02]Host: 172.17.63.131:8080 [02:08:02]Content-Length: 862 [02:08:02]Content-Type: application/json [02:08:02] [02:08:02]POST finish read [02:08:02]Found Content-Length = 862 [02:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:02]execute_script... [02:08: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)30944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:02]POST & json_proto [02:08:02]process_json_proto [02:08:02]json parsed OK: [02:08:02]protocol is kg_v1.0 [02:08:02]action value=close_receipt [02:08:02]process_action close_receipt [02:08:02]cmd_close_receipt [02:08:02]MH_GetDate [02:08:02]Write to MH i2c: F0 00 00 D1 DD 9D [02:08:02]Write i2c OK [02:08:02]MH_I2C_Read... [02:08:02]Read from MH i2c: F0 [02:08:02]MH_I2C_Read... [02:08:02]Read from MH i2c: F0 09 00 [02:08:02]MH_I2C_Read... [02:08:02]Read from MH i2c: F0 09 00 D1 DD 00 0E 4F 1C 67 22 05 6E 64 7F [02:08:02]GetLastDocTimeStamp 1729907691 [02:08:02]current date 1729908494 [02:08:02]FM_GetShiftState [02:08:02]SAM_PROTO_GetShiftState [02:08:02]wFMCommunicate request_size=4 [02:08:02]MH_SAM_APDU [02:08:02]CAPDU: 80 13 01 00 [02:08:02]Write to MH i2c: E2 08 00 D2 DD 80 13 01 00 00 00 00 00 2C [02:08:02]Write i2c OK [02:08:02]MH_I2C_Read... [02:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:02]Read from MH i2c: E2 [02:08:02]MH_I2C_Read... [02:08:02]Read from MH i2c: E2 0E 00 [02:08:02]MH_I2C_Read... [02:08:02]Read from MH i2c: E2 0E 00 D2 DD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A5 [02:08:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [02:08:02]wFMCommunicate OK [02:08:02]SAM_PROTO_GetShiftState done [02:08:02]FM_GetShiftState done [02:08:02]opened in 1729902770 [02:08:02]opened+sec_in_day 1729989170 [02:08:02]quantity*price = 30038 [02:08:02]sum+1 = 30039 [02:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 5 26.10.2024 02:08 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191642 ФПД: 220445389551681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T020814&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191642&fm=220445389551681&tin=02508201610067®Number=0000000000091776&sum=30038 [02:08:03]StoreToDocumentArchive [02:08:03]shift 541 fd 191642 [02:08:03]save to /storage/0541/doc_00191642 [02:08:03]save last doc name /storage/0541/doc_00191642 to /storage/kkm_last_doc_name [02:08:03]save OK [02:08:03]Clear old archive folders... [02:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:08:03]tlvbuf is 0183C600 [02:08:03]SAM_PROTO_ClearQueue [02:08:03]wFMCommunicate request_size=4 [02:08:03]MH_SAM_APDU [02:08:03]CAPDU: 80 09 00 00 [02:08:03]Write to MH i2c: E2 08 00 DF DD 80 09 00 00 00 00 00 00 2E [02:08:03]Write i2c OK [02:08:03]MH_I2C_Read... [02:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:03]Read from MH i2c: E2 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 DF DD 00 90 00 30 [02:08:03]RAPDU: 90 00 [02:08:03]wFMCommunicate OK [02:08:03]SAM_PROTO_ClearQueue done [02:08:03]KKMCreateOFDPacket [02:08:03]OFDProtocolAddRootSTLVToBuf [02:08:03]FM_MakeSignedData [02:08:03]FM_MakeSignedData [02:08:03]SAM_PROTO_SignData [02:08:03]wFMCommunicate request_size=4 [02:08:03]MH_SAM_APDU [02:08:03]CAPDU: 80 0D 01 02 [02:08:03]Write to MH i2c: E2 08 00 E0 DD 80 0D 01 02 00 00 00 00 36 [02:08:03]Write i2c OK [02:08:03]MH_I2C_Read... [02:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:03]Read from MH i2c: E2 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 E0 DD 00 90 00 31 [02:08:03]RAPDU: 90 00 [02:08:03]wFMCommunicate OK [02:08:03]wFMCommunicate request_size=255 [02:08:03]MH_SAM_APDU [02:08:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0E 4F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EC 02 00 35 04 06 00 C8 [02:08:03]Write to MH i2c: E2 02 01 E1 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0E 4F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EC 02 00 35 04 06 00 C8 00 00 5E [02:08:03]Write i2c OK [02:08:03]MH_I2C_Read... [02:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:03]Read from MH i2c: E2 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 [02:08:03]MH_I2C_Read... [02:08:03]Read from MH i2c: E2 03 00 E1 DD 00 90 00 32 [02:08:03]RAPDU: 90 00 [02:08:03]wFMCommunicate OK [02:08:03]wFMCommunicate request_size=10 [02:08:03]MH_SAM_APDU [02:08:03]CAPDU: 80 0D 02 02 05 7E 71 22 F8 41 [02:08:03]Write to MH i2c: E2 0D 00 E2 DD 80 0D 02 02 05 00 7E 71 22 F8 41 00 00 8D [02:08:03]Write i2c OK [02:08:03]MH_I2C_Read... [02:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:04]Read from MH i2c: E2 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 03 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 03 00 E2 DD 00 90 00 33 [02:08:04]RAPDU: 90 00 [02:08:04]wFMCommunicate OK [02:08:04]wFMCommunicate request_size=4 [02:08:04]MH_SAM_APDU [02:08:04]CAPDU: 80 0D 03 02 [02:08:04]Write to MH i2c: E2 08 00 E3 DD 80 0D 03 02 00 00 00 00 3B [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:04]Read from MH i2c: E2 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 0B 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 0B 00 E3 DD 00 95 38 5D 03 FC D5 0C F5 90 00 3B [02:08:04]RAPDU: 95 38 5D 03 FC D5 0C F5 90 00 [02:08:04]wFMCommunicate OK [02:08:04]SAM_PROTO_SignData done [02:08:04]FM_MakeSignedData done [02:08:04]CreateOFDProtocolMessage [02:08:04]wFMCommunicate request_size=4 [02:08:04]MH_SAM_APDU [02:08:04]CAPDU: 80 11 00 00 [02:08:04]Write to MH i2c: E2 08 00 E4 DD 80 11 00 00 00 00 00 00 3B [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:04]Read from MH i2c: E2 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 17 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: E2 17 00 E4 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [02:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:08:04]wFMCommunicate OK [02:08:04]CreateOFDProtocolMessage done [02:08:04]OFDSenderStorePacket 191642 [02:08:04]StoreOFDPacket docnum=191642 [02:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 41 07 01 9F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0E 4F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EC 02 00 35 04 06 00 C8 7E 71 22 F8 41 95 38 5D 03 FC D5 0C F5 [02:08:04]CheckFolder [02:08:04]dirname=/storage/ofd_packets [02:08:04]CheckFolder done [02:08:04]ProducePacketName [02:08:04]name=ofd_packets/00191642 [02:08:04]NVStorageSaveData ofd_packets/00191642 [02:08:04]File name is /storage/ofd_packets/00191642 [02:08:04]Write 301 bytes [02:08:04]NVStorageSaveData done [02:08:04]OFDSenderStorePacket done [02:08:04]KKMCreateOFDPacket done [02:08:04]NVStorageSaveData kkm_last_timestamp [02:08:04]File name is /storage/kkm_last_timestamp [02:08:04]Write 4 bytes [02:08:04]NVStorageSaveData done [02:08:04]ExternCall_PrintAddStr [02:08:04]wPrintStart [02:08:04]Write to MH i2c: 01 00 00 E5 DD C2 [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 07 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 07 00 E5 DD 00 00 00 00 00 FF 0F D7 [02:08:04]RasterBufferAndPrint [02:08:04]line Счет N : (1)30944 [02:08:04]line ИНН: 02508201610067 [02:08:04]line Контрольно-Кассовый Чек [02:08:04]line ПРОДАЖА [02:08:04]line ТРК (МРК, ГНК) : 12 [02:08:04]line Товар: 2710124130 [02:08:04]line Аи-92-К-5 [02:08:04]line 4.490 * 66.90 [02:08:04]line = 300.38 [02:08:04]line НДС 12% НСП 1% [02:08:04]line > о реализуемом товаре [02:08:04]line ИТОГО: 300.38 [02:08:04]line НСП 1% : 2.66 [02:08:04]line НДС 12% : 31.90 [02:08:04]line Наличными: 0.00 [02:08:04]line Безнал.: 300.38 [02:08:04]line Место: АЗС № 170 "Партнер Нефть" [02:08:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [02:08:04]line СНО: Общий режим [02:08:04]line Чек 5 26.10.2024 02:08 [02:08:04]line Смена: 541 ФФД: 1.0 [02:08:04]line ЗНМ: 0300000110 [02:08:04]line РНМ: 0000000000091776 [02:08:04]line Версия ККМ: 001 [02:08:04]line Платежная система: Кыргызкоммерцбанк [02:08:04]line ФМ: 0000000000871754 [02:08:04]line ФД: 191642 [02:08:04]line ФПД: 220445389551681 [02:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T020814&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191642&fm=220445389551681&tin=02508201610067®Number=0000000000091776&sum=30038 [02:08:04]written 0, free lines is 4095 [02:08:04]OFD Sender: Processing packet 191642 [packets to send 75, broken 74] [02:08:04]ProducePacketName [02:08:04]name=ofd_packets/00191642 [02:08:04]OFD Sender: To server: pG, [02:08:04]CommunicateWithHost lk.salyk.kg:30040 [02:08:04]ConnectInit lk.salyk.kg [02:08:04]Connected sock=10 [02:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 41 07 01 9F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0E 4F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EC 02 00 35 04 06 00 C8 7E 71 22 F8 41 95 38 5D 03 FC D5 0C F5 [02:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 91 D7 47 00 B2 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EC 02 00 F4 03 04 00 DB F3 1B 67 B6 04 01 00 00 32 05 48 C3 F7 BB 52 C4 [02:08:04]CommunicateWithHost err = 0 [02:08:04]CheckOFDResponse [02:08:04]1017 (14) - 77093643461234 [02:08:04]1041 (16) - 0000000000871754 [02:08:04]1040 (4) - 191642 [02:08:04]1012 (4) - 25.10.2024 19:39 [02:08:04]1206 (1) - 0 [02:08:04]OFD Sender: Remove packet 191642 [02:08:04]ProducePacketName [02:08:04]name=ofd_packets/00191642 [02:08:04]NVStorageDeleteData [02:08:04]Write to MH i2c: 01 00 00 0F DE ED [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 07 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: 01 07 00 0F DE 00 00 00 00 00 FC 0C FC [02:08:04]RasterBufferAndPrint [02:08:04]line [02:08:04]line [02:08:04]line [02:08:04]line [02:08:04]line [02:08:04]written 0, free lines is 3332 [02:08:04]MH_Cut [02:08:04]Write to MH i2c: D1 01 00 16 DE 01 C6 [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: D1 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: D1 01 00 [02:08:04]MH_I2C_Read... [02:08:04]Read from MH i2c: D1 01 00 16 DE 00 C5 [02:08:04]Write to MH i2c: 01 00 00 17 DE F5 [02:08:04]Write i2c OK [02:08:04]MH_I2C_Read... [02:08:05]OFD Sender: No OFD packet to send [02:08:05]*** Cut start [02:08:05]*** Partial cut [02:08:05]*** CUTSNS_PIN = 1 [02:08:05]*** CUTSNS_PIN = 0 [02:08:06]*** Brake cut motor [02:08:06]Read from MH i2c: 01 [02:08:06]MH_I2C_Read... [02:08:06]*** Stop cut motor [02:08:06]*** Cut end [02:08:06]Read from MH i2c: 01 07 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: 01 07 00 17 DE 00 00 00 00 00 FF 0F 0A [02:08:06]process_action close_receipt done [02:08:06]requested_data is exist [02:08:06]produce_requested_data [02:08:06]requested_item fm.sn is exist - process it [02:08:06]wFMCommunicate request_size=4 [02:08:06]MH_SAM_APDU [02:08:06]CAPDU: 80 11 00 00 [02:08:06]Write to MH i2c: E2 08 00 18 DE 80 11 00 00 00 00 00 00 70 [02:08:06]Write i2c OK [02:08:06]MH_I2C_Read... [02:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:06]Read from MH i2c: E2 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 17 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 17 00 18 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [02:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:08:06]wFMCommunicate OK [02:08:06]requested_item fd.num is exist - process it [02:08:06]SAM_PROTO_GetFieldsCounters [02:08:06]wFMCommunicate request_size=4 [02:08:06]MH_SAM_APDU [02:08:06]CAPDU: 80 13 00 00 [02:08:06]Write to MH i2c: E2 08 00 19 DE 80 13 00 00 00 00 00 00 73 [02:08:06]Write i2c OK [02:08:06]MH_I2C_Read... [02:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:06]Read from MH i2c: E2 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 62 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 62 00 19 DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [02:08:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:06]wFMCommunicate OK [02:08:06]SAM_PROTO_GetFieldsCounters done [02:08:06]requested_item shift.num is exist - process it [02:08:06]requested_item shift.opened is exist - process it [02:08:06]req_shift_opened [02:08:06]FM_GetShiftState [02:08:06]SAM_PROTO_GetShiftState [02:08:06]wFMCommunicate request_size=4 [02:08:06]MH_SAM_APDU [02:08:06]CAPDU: 80 13 01 00 [02:08:06]Write to MH i2c: E2 08 00 1A DE 80 13 01 00 00 00 00 00 75 [02:08:06]Write i2c OK [02:08:06]MH_I2C_Read... [02:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:06]Read from MH i2c: E2 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 0E 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 0E 00 1A DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EE [02:08:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [02:08:06]wFMCommunicate OK [02:08:06]SAM_PROTO_GetShiftState done [02:08:06]FM_GetShiftState done [02:08:06]req_shift_opened done [02:08:06]requested_item shift.open_date is exist - process it [02:08:06]req_shift_open_date [02:08:06]req_shift_open_date done [02:08:06]produce_requested_data done [02:08:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191642,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [02:08:06]process_action_free close_receipt [02:08:06]json_value_free [02:08:06]json_value_free done [02:08:06]process_json_proto returns [02:08:06]Send response to host [02:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191642,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [02:08:06]free response buf [02:08:06]execute_script done [02:08:06]execute_script returns [02:08:06]free content buf [02:08:06]Sock 8.Close socket [02:08:06]Sock 8.Thread stoped [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send